/* NoxDigi — Light-first design tokens */

:root {
    --surface-base: #f8fafc;
    --surface-raised: #ffffff;
    --text-primary: #334155;
    --text-muted: #64748b;
    --accent: #6366f1;
    --border-subtle: #e2e8f0;
}

html.dark {
    --surface-base: #020617;
    --surface-raised: #0f172a;
    --text-primary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Floating theme toggle — hidden until hovered */
.theme-toggle-wrap {
    opacity: 0.12;
    transition: opacity 0.25s ease;
}
.theme-toggle-wrap:hover,
.theme-toggle-wrap:focus-within {
    opacity: 1;
}

html.dark .theme-icon-light { display: none; }
html.dark .theme-icon-dark { display: block !important; }
html:not(.dark) .theme-icon-dark { display: none; }
html:not(.dark) .theme-icon-light { display: block; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

@keyframes progress-bar {
    from { width: 0%; }
    to { width: 100%; }
}

.animate-progress-bar {
    animation: progress-bar 4.5s linear forwards;
}

#cart-items::-webkit-scrollbar { width: 4px; }
#cart-items::-webkit-scrollbar-track { background: transparent; }
#cart-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
html.dark #cart-items::-webkit-scrollbar-thumb { background: #475569; }

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 60;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    animation: fade-in 0.3s ease-out;
}
.toast-success {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}
.toast-error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

/* Dashboard mobile sidebar slide-in */
#user-sidebar.open,
#admin-sidebar.open { transform: translateX(0); }

/*
 * Rich text (CMS pages + product descriptions)
 * Must override Tailwind Preflight (resets h1–h6 size/weight/margin and list styles).
 * Values mirror the TinyMCE product editor content_style so frontend matches admin.
 */
.cms-content,
.product-description {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.cms-content > *:first-child,
.product-description > *:first-child {
    margin-top: 0 !important;
}

.cms-content > *:last-child,
.product-description > *:last-child {
    margin-bottom: 0 !important;
}

/* Headings — Preflight sets font-size/weight/margin to inherit/0 */
.cms-content h1, .product-description h1,
.cms-content h2, .product-description h2,
.cms-content h3, .product-description h3,
.cms-content h4, .product-description h4,
.cms-content h5, .product-description h5,
.cms-content h6, .product-description h6 {
    display: block;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.cms-content h1, .product-description h1 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin: 1.5rem 0 0.75rem !important;
    line-height: 1.25 !important;
}

.cms-content h2, .product-description h2 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin: 1.35rem 0 0.65rem !important;
}

.cms-content h3, .product-description h3 {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin: 1.15rem 0 0.55rem !important;
}

.cms-content h4, .product-description h4 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 1rem 0 0.45rem !important;
}

.cms-content h5, .product-description h5,
.cms-content h6, .product-description h6 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin: 0.9rem 0 0.4rem !important;
}

/* Paragraphs & breaks */
.cms-content p, .product-description p {
    display: block;
    margin: 0 0 0.75rem !important;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.cms-content br, .product-description br {
    display: block;
    content: "";
    margin-top: 0;
}

/* Lists — Preflight sets list-style: none and padding: 0 */
.cms-content ul, .product-description ul {
    display: block;
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 1.5rem !important;
    margin: 0 0 0.85rem !important;
}

.cms-content ol, .product-description ol {
    display: block;
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 1.5rem !important;
    margin: 0 0 0.85rem !important;
}

.cms-content li, .product-description li {
    display: list-item !important;
    margin: 0 0 0.35rem !important;
    padding-left: 0.2rem;
    line-height: 1.65;
}

.cms-content li > ul, .cms-content li > ol,
.product-description li > ul, .product-description li > ol {
    margin-top: 0.35rem !important;
    margin-bottom: 0.35rem !important;
}

.cms-content a, .product-description a {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.cms-content a:hover, .product-description a:hover {
    color: #4f46e5;
}

html.dark .cms-content a, html.dark .product-description a {
    color: #818cf8;
}

html.dark .cms-content a:hover, html.dark .product-description a:hover {
    color: #a5b4fc;
}

.cms-content strong, .cms-content b,
.product-description strong, .product-description b {
    font-weight: 700 !important;
    color: var(--text-primary);
}

.cms-content em, .cms-content i,
.product-description em, .product-description i {
    font-style: italic;
}

.cms-content u, .product-description u {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cms-content s, .cms-content strike, .cms-content del,
.product-description s, .product-description strike, .product-description del {
    text-decoration: line-through;
    opacity: 0.85;
}

.cms-content img, .product-description img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.25rem 0 !important;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.cms-content table, .product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 !important;
    font-size: 0.9rem;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid var(--border-subtle);
}

.cms-content th, .cms-content td,
.product-description th, .product-description td {
    border: 1px solid var(--border-subtle);
    padding: 0.65rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.cms-content th, .product-description th {
    font-weight: 600 !important;
    background: var(--surface-raised);
    color: var(--text-primary);
}

.cms-content tbody tr:nth-child(even),
.product-description tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.06);
}

html.dark .cms-content tbody tr:nth-child(even),
html.dark .product-description tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.04);
}

.cms-content .table-wrap,
.product-description .table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.25rem 0 !important;
}

.cms-content .table-wrap table,
.product-description .table-wrap table {
    margin: 0 !important;
    min-width: 28rem;
}

.cms-content blockquote, .product-description blockquote {
    display: block;
    border-left: 3px solid #6366f1;
    padding: 0.35rem 0 0.35rem 1rem;
    margin: 1.15rem 0 !important;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(99, 102, 241, 0.04);
    border-radius: 0 0.5rem 0.5rem 0;
}

.cms-content hr, .product-description hr {
    display: block;
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 1.5rem 0 !important;
}

.cms-content code, .product-description code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875em;
    background: rgba(148, 163, 184, 0.15);
    padding: 0.15em 0.4em;
    border-radius: 0.3rem;
}

.cms-content pre, .product-description pre {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--border-subtle);
    border-radius: 0.65rem;
    padding: 0.9rem 1.1rem;
    margin: 1.1rem 0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cms-content pre code, .product-description pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.cms-content sub, .product-description sub { vertical-align: sub; font-size: 0.8em; }
.cms-content sup, .product-description sup { vertical-align: super; font-size: 0.8em; }

.cms-content div, .product-description div {
    display: block;
}

/* Product page description card */
.product-description-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 1.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 1024px) {
    .product-description-card {
        padding: 1.75rem 2rem 2rem;
    }
}

.product-description-card .product-description h2:first-child,
.product-description-card .product-description h3:first-child {
    margin-top: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   Premium Product Page (pp-*)
   ═══════════════════════════════════════════════════════════ */

.pp-page {
    --pp-radius: 1.25rem;
    --pp-radius-lg: 1.5rem;
    --pp-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    --pp-shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.14), 0 8px 20px -8px rgba(15, 23, 42, 0.08);
    --pp-border: rgba(148, 163, 184, 0.22);
}

html.dark .pp-page {
    --pp-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
    --pp-shadow-lg: 0 24px 50px -12px rgba(0, 0, 0, 0.5);
    --pp-border: rgba(255, 255, 255, 0.08);
}

/* Fade-in */
.pp-fade {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pp-fade.is-visible {
    opacity: 1;
    transform: none;
}

/* Section titles */
.pp-section-head { margin-bottom: 1rem; }
.pp-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.25;
}
html.dark .pp-section-title { color: #f8fafc; }
.pp-section-sub {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.2rem;
}
html.dark .pp-section-sub { color: #94a3b8; }

/* Badges */
.pp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    line-height: 1;
}
.pp-badge-category {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.18);
}
html.dark .pp-badge-category {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.25);
}
.pp-badge-hot {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(244, 63, 94, 0.45);
}
.pp-badge-sale {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.4);
}
.pp-badge-save {
    background: linear-gradient(135deg, #ffe4e6, #fecdd3);
    color: #e11d48;
    border: 1px solid rgba(244, 63, 94, 0.2);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.35rem;
}
html.dark .pp-badge-save {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.25);
}

/* ── Gallery ── */
.pp-gallery { display: flex; flex-direction: column; gap: 0.85rem; }
.pp-gallery-frame {
    position: relative;
    border-radius: var(--pp-radius-lg);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--pp-border);
    box-shadow: var(--pp-shadow);
    padding: 0.5rem;
    transition: transform 0.25s ease, box-shadow 0.35s ease;
    will-change: transform;
    animation: pp-float 6s ease-in-out infinite;
}
html.dark .pp-gallery-frame {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}
@keyframes pp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
    .pp-gallery-frame { animation: none; }
}
.pp-gallery-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--pp-radius-lg) - 4px);
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
}
html.dark .pp-gallery-stage { background: #020617; }
.pp-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.pp-gallery-image.is-zoomed {
    transform: scale(1.55);
}
.pp-gallery-image.is-fading {
    opacity: 0.35;
}
.pp-gallery-shine {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 45%);
    opacity: 0.7;
}
.pp-gallery-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    z-index: 2;
}
.pp-gallery-zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #475569;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.pp-gallery-zoom-btn:hover {
    transform: scale(1.05);
    color: #4f46e5;
    background: #fff;
}
html.dark .pp-gallery-zoom-btn {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.pp-thumbs {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
}
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumb {
    flex: 0 0 auto;
    width: 5.5rem;
    aspect-ratio: 4 / 3;
    border-radius: 0.85rem;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
html.dark .pp-thumb { background: #0f172a; }
.pp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pp-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.pp-thumb.is-active {
    opacity: 1;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ── Purchase card ── */
.pp-purchase-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: var(--pp-shadow-lg);
}
html.dark .pp-purchase-card {
    background: #0f172a;
}
@media (min-width: 1024px) {
    .pp-purchase-card {
        padding: 1.75rem 1.85rem 1.5rem;
    }
}
.pp-purchase-glow {
    position: absolute;
    top: -4rem;
    right: -3rem;
    width: 12rem;
    height: 12rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
    pointer-events: none;
}

.pp-price-block {
    padding-bottom: 1.15rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
html.dark .pp-price-block {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.pp-price-current {
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1;
}
html.dark .pp-price-current { color: #fff; }
.pp-price-was {
    font-size: 1.05rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 0.2rem;
}
.pp-price-note {
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #64748b;
}
html.dark .pp-price-note { color: #94a3b8; }

/* Trust chips */
.pp-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
}
.pp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 0.38rem 0.7rem;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.pp-chip:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: #eef2ff;
    transform: translateY(-1px);
}
html.dark .pp-chip {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}
html.dark .pp-chip:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Buttons */
.pp-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}
.pp-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3.15rem;
    padding: 0.85rem 1.25rem;
    border-radius: 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.pp-btn:active:not(:disabled) {
    transform: scale(0.985);
}
.pp-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}
.pp-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
    box-shadow: 0 10px 24px -8px rgba(79, 70, 229, 0.55), 0 2px 6px rgba(79, 70, 229, 0.2);
    border: 1px solid transparent;
}
.pp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -10px rgba(79, 70, 229, 0.6), 0 4px 10px rgba(79, 70, 229, 0.25);
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
}
.pp-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}
.pp-btn-primary:hover::after {
    transform: translateX(120%);
}
.pp-btn-secondary {
    color: #1e293b;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pp-btn-secondary:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.45);
    background: #f8fafc;
    box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.12);
}
html.dark .pp-btn-secondary {
    color: #e2e8f0;
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}
html.dark .pp-btn-secondary:hover:not(:disabled) {
    background: #334155;
    border-color: rgba(129, 140, 248, 0.4);
}
.pp-btn-sm {
    min-height: 2.55rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
    border-radius: 0.75rem;
    width: auto;
}
.pp-btn-content,
.pp-btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.pp-btn.is-loading .pp-btn-content { display: none; }

.pp-wishlist-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    border-radius: 0.8rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    transition: background 0.2s ease, color 0.2s ease;
}
.pp-wishlist-btn:hover {
    background: #f8fafc;
    color: #e11d48;
}
.pp-wishlist-btn.is-active {
    color: #e11d48;
    background: #fff1f2;
}
html.dark .pp-wishlist-btn { color: #94a3b8; }
html.dark .pp-wishlist-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fb7185;
}
html.dark .pp-wishlist-btn.is-active {
    color: #fb7185;
    background: rgba(244, 63, 94, 0.1);
}

/* Include mini (mobile) */
.pp-include-strip {
    background: #f8fafc;
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    padding: 1rem 1.1rem;
}
html.dark .pp-include-strip {
    background: rgba(15, 23, 42, 0.7);
}
.pp-include-mini {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.75rem;
    padding: 0.55rem 0.65rem;
}
html.dark .pp-include-mini {
    color: #cbd5e1;
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.06);
}

/* Feature cards */
.pp-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .pp-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.pp-feature-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--pp-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pp-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.14);
    border-color: rgba(99, 102, 241, 0.28);
}
html.dark .pp-feature-card {
    background: #0f172a;
}
.pp-feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border: 1px solid rgba(99, 102, 241, 0.15);
}
html.dark .pp-feature-icon {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}
.pp-feature-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 0.15rem;
}
html.dark .pp-feature-title { color: #f1f5f9; }
.pp-feature-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}
html.dark .pp-feature-desc { color: #94a3b8; }

/* Tabs */
.pp-tabs-card {
    background: #fff;
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    box-shadow: var(--pp-shadow);
    overflow: hidden;
}
html.dark .pp-tabs-card { background: #0f172a; }
.pp-tabs {
    display: flex;
    gap: 0.15rem;
    overflow-x: auto;
    padding: 0.55rem 0.65rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    scrollbar-width: none;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
html.dark .pp-tabs {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.6) 0%, #0f172a 100%);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tab {
    flex: 0 0 auto;
    padding: 0.7rem 1rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 0.75rem 0.75rem 0 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.pp-tab:hover { color: #4f46e5; background: rgba(99, 102, 241, 0.06); }
.pp-tab.is-active {
    color: #4f46e5;
    border-bottom-color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}
html.dark .pp-tab { color: #94a3b8; }
html.dark .pp-tab:hover,
html.dark .pp-tab.is-active { color: #a5b4fc; }
.pp-tab-panels { padding: 1.35rem 1.5rem 1.55rem; }
.pp-tab-panel { display: none; animation: pp-panel-in 0.28s ease; }
.pp-tab-panel.is-active { display: block; }
.pp-tab-panel.product-description h2:first-child,
.pp-tab-panel.product-description h3:first-child {
    margin-top: 0 !important;
}
@keyframes pp-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* Mobile accordion */
.pp-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.pp-acc-item {
    background: #fff;
    border: 1px solid var(--pp-border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
html.dark .pp-acc-item { background: #0f172a; }
.pp-acc-item.is-open {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 24px -12px rgba(79, 70, 229, 0.25);
}
.pp-acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    background: transparent;
    transition: background 0.2s ease;
}
html.dark .pp-acc-trigger { color: #f1f5f9; }
.pp-acc-trigger:hover { background: rgba(99, 102, 241, 0.04); }
.pp-acc-chevron {
    color: #94a3b8;
    transition: transform 0.28s ease;
    flex-shrink: 0;
}
.pp-acc-item.is-open .pp-acc-chevron {
    transform: rotate(180deg);
    color: #6366f1;
}
.pp-acc-panel {
    padding: 0 1.1rem 1.15rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    animation: pp-panel-in 0.28s ease;
}
html.dark .pp-acc-panel {
    border-top-color: rgba(255, 255, 255, 0.06);
}
.pp-acc-panel .product-description h2:first-child,
.pp-acc-panel .product-description h3:first-child {
    margin-top: 0.75rem !important;
}

/* Related */
.pp-related {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}
html.dark .pp-related {
    border-top-color: rgba(255, 255, 255, 0.06);
}
@media (min-width: 1024px) {
    .pp-related {
        margin-top: 2.75rem;
        padding-top: 2rem;
    }
}

/* Mobile sticky bar */
.pp-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 -8px 30px -12px rgba(15, 23, 42, 0.18);
}
html.dark .pp-mobile-bar {
    background: rgba(2, 6, 23, 0.92);
    border-top-color: rgba(255, 255, 255, 0.08);
}
.pp-mobile-bar-inner {
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.pp-mobile-price {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.pp-mobile-price-now {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.1;
}
html.dark .pp-mobile-price-now { color: #fff; }
.pp-mobile-price-was {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.pp-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
.pp-mobile-actions .pp-btn-secondary { min-width: 4.5rem; }
.pp-mobile-actions .pp-btn-primary { min-width: 6.25rem; }

/* Lightbox */
.pp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.pp-lightbox.is-open { opacity: 1; }
.pp-lightbox-image {
    max-width: min(1100px, 100%);
    max-height: min(88vh, 100%);
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pp-lightbox.is-open .pp-lightbox-image { transform: scale(1); }
.pp-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
}
.pp-lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ── Premium product cards ── */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.28s ease,
                border-color 0.28s ease;
}
html.dark .product-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.18), 0 8px 16px -8px rgba(79, 70, 229, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}
html.dark .product-card:hover {
    box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.55);
    border-color: rgba(129, 140, 248, 0.35);
}
.product-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}
html.dark .product-card-media { background: #020617; }
.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-card-media img {
    transform: scale(1.08);
}
.product-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.4rem;
    pointer-events: none;
    z-index: 1;
}
.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.05rem 1.1rem;
}
.product-card-cat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6366f1;
}
html.dark .product-card-cat { color: #818cf8; }
.product-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin-top: 0.35rem;
    margin-bottom: 0.45rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}
html.dark .product-card-title { color: #f1f5f9; }
.product-card:hover .product-card-title { color: #4f46e5; }
html.dark .product-card:hover .product-card-title { color: #a5b4fc; }
.product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-top: 0.55rem;
    margin-bottom: 0.85rem;
}
.product-card-price {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #4f46e5;
}
html.dark .product-card-price { color: #a5b4fc; }
.product-card-price--solid {
    color: #0f172a;
}
html.dark .product-card-price--solid {
    color: #f8fafc;
}
.product-card-price-was {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.product-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}
.product-card-cart {
    flex: 1;
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.5);
    transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.product-card-cart:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, 0.55);
}
.product-card-wish {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #64748b;
    background: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.product-card-wish:hover {
    color: #e11d48;
    border-color: rgba(244, 63, 94, 0.4);
    background: #fff1f2;
    transform: scale(1.05);
}
.product-card-wish svg {
    transition: transform 0.25s ease;
}
.product-card-wish:hover svg {
    transform: scale(1.12);
}
html.dark .product-card-wish {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}
html.dark .product-card-wish:hover {
    color: #fb7185;
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.35);
}

/* Header scroll polish */
.site-header {
    transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled {
    box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.86) !important;
    border-bottom-color: rgba(148, 163, 184, 0.25);
}
html.dark .site-header.is-scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
    background: rgba(2, 6, 23, 0.88) !important;
}
.site-header .nav-link {
    position: relative;
}
.site-header .nav-link.is-active {
    color: #4f46e5;
}
html.dark .site-header .nav-link.is-active {
    color: #a5b4fc;
}
.site-header .nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #818cf8);
}

@media (prefers-reduced-motion: reduce) {
    .pp-fade,
    .product-card,
    .pp-feature-card,
    .pp-gallery-image,
    .pp-btn,
    .co-fade,
    .co-btn,
    .co-card {
        transition: none !important;
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   Premium Checkout (co-*)
   ═══════════════════════════════════════════════════════════ */

.co-page {
    --co-radius: 1.25rem;
    --co-radius-lg: 1.5rem;
    --co-shadow: 0 4px 24px -6px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    --co-shadow-lg: 0 18px 48px -14px rgba(15, 23, 42, 0.14), 0 6px 16px -8px rgba(15, 23, 42, 0.08);
    --co-border: rgba(148, 163, 184, 0.22);
}

html.dark .co-page {
    --co-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.35);
    --co-shadow-lg: 0 22px 48px -12px rgba(0, 0, 0, 0.5);
    --co-border: rgba(255, 255, 255, 0.08);
}

.co-fade {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.co-fade.is-visible {
    opacity: 1;
    transform: none;
}

/* Progress */
.co-progress { margin-bottom: 1.5rem; }
.co-progress-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.co-progress-step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}
.co-progress-step.is-done { color: #059669; }
.co-progress-step.is-current { color: #4f46e5; }
html.dark .co-progress-step.is-done { color: #34d399; }
html.dark .co-progress-step.is-current { color: #a5b4fc; }
.co-progress-dot {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: inherit;
}
.co-progress-step.is-done .co-progress-dot {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.35);
    color: #059669;
}
.co-progress-step.is-current .co-progress-dot {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.45);
}
html.dark .co-progress-dot {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}
.co-progress-line {
    width: 1.25rem;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
    flex-shrink: 0;
}
.co-progress-line.is-done { background: #34d399; }
html.dark .co-progress-line { background: #334155; }
@media (max-width: 480px) {
    .co-progress-label { display: none; }
    .co-progress-step.is-current .co-progress-label { display: inline; }
}

/* Header */
.co-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 0.35rem;
}
.co-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.15;
}
html.dark .co-title { color: #f8fafc; }
@media (min-width: 640px) {
    .co-title { font-size: 2.1rem; }
}

.co-currency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--co-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 0.8rem;
}
html.dark .co-currency-badge { background: #0f172a; }
.co-currency-code {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #4f46e5;
}
html.dark .co-currency-code { color: #a5b4fc; }
.co-currency-symbol {
    font-weight: 700;
    color: #0f172a;
}
html.dark .co-currency-symbol { color: #e2e8f0; }
.co-currency-rate {
    font-size: 0.7rem;
    color: #94a3b8;
    padding-left: 0.35rem;
    border-left: 1px solid rgba(148, 163, 184, 0.3);
}

.co-currency-switch {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: var(--co-radius);
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(254, 243, 199, 0.55));
}
html.dark .co-currency-switch {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.22);
}
@media (min-width: 640px) {
    .co-currency-switch {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Cards */
.co-card {
    background: #fff;
    border: 1px solid var(--co-border);
    border-radius: var(--co-radius-lg);
    padding: 1.25rem 1.25rem 1.35rem;
    box-shadow: var(--co-shadow);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.co-card:hover {
    box-shadow: var(--co-shadow-lg);
}
html.dark .co-card { background: #0f172a; }
.co-card-accent {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 8px 28px -12px rgba(79, 70, 229, 0.2), var(--co-shadow);
}
.co-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}
.co-card-flush {
    padding: 0;
}
.co-card-head-pad {
    padding: 1.15rem 1.25rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
html.dark .co-card-head-pad {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.co-card-head-border {
    margin: -1.25rem -1.25rem 0;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    margin-bottom: 0;
}
html.dark .co-card-head-border {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.co-card-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border: 1px solid rgba(99, 102, 241, 0.15);
}
.co-card-icon-soft {
    background: #f8fafc;
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.25);
}
html.dark .co-card-icon {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.2);
}
html.dark .co-card-icon-soft {
    background: #1e293b;
    color: #94a3b8;
}
.co-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.25;
}
html.dark .co-card-title { color: #f1f5f9; }
.co-card-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.4;
}
html.dark .co-card-sub { color: #94a3b8; }

/* Forms */
.co-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.co-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.co-input:focus {
    outline: none;
    border-color: #818cf8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
html.dark .co-input {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
html.dark .co-input:focus {
    background: #0f172a;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

/* Style phone partial inputs inside checkout guest card */
#guest-account-section input[type="text"],
#guest-account-section input[type="email"],
#guest-account-section input[type="password"],
#guest-account-section input[type="tel"],
#guest-account-section select {
    min-height: 2.85rem;
    border-radius: 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#guest-account-section input:focus,
#guest-account-section select:focus {
    outline: none;
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.co-divider {
    position: relative;
    text-align: center;
}
.co-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.co-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    background: #fff;
}
html.dark .co-divider span { background: #0f172a; }

/* Order items */
.co-items {
    display: flex;
    flex-direction: column;
}
.co-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
html.dark .co-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.co-item:last-child { border-bottom: none; }
.co-item-thumb {
    flex-shrink: 0;
    width: 4.75rem;
    aspect-ratio: 4 / 3;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
html.dark .co-item-thumb {
    background: #020617;
    border-color: rgba(255, 255, 255, 0.08);
}
.co-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.co-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html.dark .co-item-title { color: #f1f5f9; }
.co-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4f46e5;
    background: #eef2ff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}
html.dark .co-item-badge {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}
.co-item-price {
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
html.dark .co-item-price { color: #e2e8f0; }

/* Totals */
.co-totals {
    padding: 1rem 1.25rem 1.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
html.dark .co-totals {
    border-top-color: rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.5) 0%, #0f172a 100%);
}
.co-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}
.co-totals-row span:last-child {
    font-weight: 600;
    color: #0f172a;
}
html.dark .co-totals-row span:last-child { color: #e2e8f0; }
.co-totals-discount,
.co-totals-discount span:last-child {
    color: #059669 !important;
}
html.dark .co-totals-discount,
html.dark .co-totals-discount span:last-child {
    color: #34d399 !important;
}
.co-coupon-pill {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 0.65rem;
    padding: 0.4rem 0.7rem;
}
html.dark .co-coupon-pill { color: #34d399; }
.co-totals-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
}
html.dark .co-totals-total {
    border-top-color: rgba(255, 255, 255, 0.1);
}
.co-totals-total-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}
.co-totals-total-hint {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}
.co-totals-total-value {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #4f46e5;
    line-height: 1;
}
html.dark .co-totals-total-value { color: #a5b4fc; }

/* Coupon */
.co-coupon-row {
    display: flex;
    gap: 0.55rem;
    align-items: stretch;
}
.co-input-coupon {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.co-btn-apply {
    flex-shrink: 0;
    min-width: 6.5rem;
    background: #0f172a;
    color: #fff;
    border: none;
}
.co-btn-apply:hover:not(:disabled) {
    background: #1e293b;
    transform: translateY(-1px);
}
html.dark .co-btn-apply {
    background: #e2e8f0;
    color: #0f172a;
}
html.dark .co-btn-apply:hover:not(:disabled) {
    background: #fff;
}
.co-coupon-msg {
    border-radius: 0.65rem;
    padding: 0.5rem 0.7rem;
    font-weight: 500;
}
.co-coupon-msg.is-success {
    background: rgba(16, 185, 129, 0.08);
}
.co-coupon-msg.is-error {
    background: rgba(244, 63, 94, 0.08);
}
.co-link-remove {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e11d48;
    transition: opacity 0.15s ease;
}
.co-link-remove:hover { opacity: 0.8; }

/* Payment panel */
.co-pay-panel {
    background: #fff;
    border: 1px solid var(--co-border);
    border-radius: var(--co-radius-lg);
    padding: 1.35rem 1.25rem 1.25rem;
    box-shadow: var(--co-shadow-lg);
    position: relative;
    overflow: hidden;
}
html.dark .co-pay-panel { background: #0f172a; }
.co-pay-panel::before {
    content: '';
    position: absolute;
    top: -3rem;
    right: -2rem;
    width: 10rem;
    height: 10rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 70%);
    pointer-events: none;
}
.co-pay-panel-head { margin-bottom: 1rem; position: relative; }
.co-pay-panel-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}
html.dark .co-pay-panel-title { color: #f8fafc; }
.co-pay-panel-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.co-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
    position: relative;
}
.co-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 0.32rem 0.6rem;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.co-chip:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: #eef2ff;
    transform: translateY(-1px);
}
html.dark .co-chip {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.co-method-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.1rem;
    padding: 1.05rem 1rem 1.1rem;
    background: #fafbfc;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.co-method-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 22px -12px rgba(15, 23, 42, 0.12);
}
html.dark .co-method-card {
    background: rgba(2, 6, 23, 0.45);
    border-color: rgba(255, 255, 255, 0.08);
}
.co-method-card-primary {
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.55) 0%, #fff 55%);
    border-color: rgba(99, 102, 241, 0.22);
}
html.dark .co-method-card-primary {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0.6) 60%);
}
.co-method-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.95rem;
}
.co-method-icon {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.15);
}
.co-method-icon-wallet {
    background: #ecfdf5;
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}
.co-method-icon-free {
    background: #ecfdf5;
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}
.co-method-icon-rzp {
    background: #eef2ff;
    color: #4f46e5;
}
.co-method-icon-pp {
    background: #eff6ff;
    color: #2563eb;
}
html.dark .co-method-icon {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}
html.dark .co-method-icon-wallet,
html.dark .co-method-icon-free {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}
.co-method-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
html.dark .co-method-title { color: #f1f5f9; }
.co-method-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.4;
}
.co-wallet-balance {
    color: #4f46e5;
    font-weight: 700;
}
html.dark .co-wallet-balance { color: #a5b4fc; }

.co-wallet-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 0.9rem;
    background: #fff;
    border: 1px dashed rgba(148, 163, 184, 0.4);
}
html.dark .co-wallet-empty {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}
.co-wallet-empty-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
}
html.dark .co-wallet-empty-icon {
    background: #1e293b;
    color: #94a3b8;
}

.co-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
}

/* Buttons */
.co-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.35rem;
    padding: 0.8rem 1.25rem;
    border-radius: 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
.co-btn:active:not(:disabled) { transform: scale(0.985); }
.co-btn:disabled,
.co-btn.is-loading {
    cursor: wait;
    opacity: 0.85;
}
.co-btn-sm {
    min-height: 2.6rem;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    border-radius: 0.75rem;
}
.co-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
    box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.55);
}
.co-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(79, 70, 229, 0.6);
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
}
.co-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}
.co-btn-primary:hover::after { transform: translateX(120%); }
.co-btn-wallet {
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 24px -10px rgba(5, 150, 105, 0.55);
}
.co-btn-wallet:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.05);
}
.co-btn-wallet:disabled {
    opacity: 0.55;
    filter: grayscale(0.3);
    transform: none;
    box-shadow: none;
}
.co-btn-outline {
    color: #4f46e5;
    background: #fff;
    border-color: rgba(99, 102, 241, 0.35);
}
.co-btn-outline:hover {
    background: #eef2ff;
    border-color: #6366f1;
}
html.dark .co-btn-outline {
    background: transparent;
    color: #a5b4fc;
    border-color: rgba(129, 140, 248, 0.35);
}
.co-btn-google {
    width: 100%;
    color: #1e293b;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.co-btn-google:hover {
    background: #f8fafc;
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}
html.dark .co-btn-google {
    color: #e2e8f0;
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}
.co-btn-switch {
    min-height: 2.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 16px -6px rgba(5, 150, 105, 0.45);
}
.co-btn-switch:hover { filter: brightness(1.05); transform: translateY(-1px); }
.co-btn-disabled {
    color: #94a3b8 !important;
    background: #f1f5f9 !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}
html.dark .co-btn-disabled {
    background: #1e293b !important;
    color: #64748b !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.co-btn-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 999px;
    animation: co-spin 0.7s linear infinite;
}
@keyframes co-spin {
    to { transform: rotate(360deg); }
}

/* Mobile sticky bar */
.co-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 -10px 30px -12px rgba(15, 23, 42, 0.18);
}
html.dark .co-mobile-bar {
    background: rgba(2, 6, 23, 0.94);
    border-top-color: rgba(255, 255, 255, 0.08);
}
.co-mobile-bar-inner {
    max-width: 36rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}
.co-mobile-total-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.co-mobile-total-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.15;
}
html.dark .co-mobile-total-value { color: #fff; }
.co-mobile-bar .co-btn-primary {
    min-width: 7.5rem;
    flex-shrink: 0;
}
/* ═══════════════════════════════════════════════════════════
   Homepage redesign v2 (hp-*)
   ═══════════════════════════════════════════════════════════ */

.hp-page {
    --hp-radius: 1.25rem;
    --hp-radius-lg: 1.5rem;
    --hp-shadow: 0 4px 24px -6px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    --hp-shadow-lg: 0 20px 50px -16px rgba(15, 23, 42, 0.16);
    padding-bottom: 4.5rem;
}
@media (min-width: 1024px) {
    .hp-page { padding-bottom: 0; }
}

.hp-fade {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.hp-fade.is-visible {
    opacity: 1;
    transform: none;
}

/* Hero */
.hp-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 3rem;
}
@media (min-width: 640px) {
    .hp-hero { padding: 2.5rem 0 3.5rem; }
}
@media (min-width: 1024px) {
    .hp-hero { padding: 3rem 0 4.5rem; }
}
.hp-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(99, 102, 241, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(168, 85, 247, 0.1), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
}
html.dark .hp-hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(99, 102, 241, 0.2), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(139, 92, 246, 0.12), transparent 50%),
        linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
}
.hp-hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.55;
}
.hp-hero-orb-a {
    width: 18rem;
    height: 18rem;
    top: -4rem;
    left: -2rem;
    background: rgba(99, 102, 241, 0.35);
}
.hp-hero-orb-b {
    width: 16rem;
    height: 16rem;
    bottom: 0;
    right: -2rem;
    background: rgba(168, 85, 247, 0.25);
}
.hp-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.6;
}
html.dark .hp-hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.hp-hero-grid-layout {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .hp-hero-grid-layout {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3rem;
        min-height: 28rem;
    }
}

.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f46e5;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html.dark .hp-hero-badge {
    color: #a5b4fc;
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(99, 102, 241, 0.3);
}
.hp-hero-badge-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.hp-hero-title {
    font-size: clamp(2rem, 5vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: #0f172a;
    margin-bottom: 1rem;
    max-width: 18ch;
}
html.dark .hp-hero-title { color: #f8fafc; }
.hp-hero-gradient {
    display: inline;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hp-hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #64748b;
    max-width: 36rem;
    margin-bottom: 1.75rem;
}
html.dark .hp-hero-desc { color: #94a3b8; }

.hp-hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
@media (min-width: 480px) {
    .hp-hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0.8rem 1.35rem;
    border-radius: 0.95rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.hp-btn:active { transform: scale(0.985); }
.hp-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
    box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.55);
}
.hp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(79, 70, 229, 0.6);
    filter: brightness(1.04);
}
.hp-btn-secondary {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.hp-btn-secondary:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: #fff;
    transform: translateY(-1px);
}
html.dark .hp-btn-secondary {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}
.hp-btn-ghost {
    color: #4f46e5;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.hp-btn-ghost:hover {
    background: rgba(99, 102, 241, 0.08);
}

.hp-trust-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hp-trust-inline li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}
html.dark .hp-trust-inline li { color: #94a3b8; }
.hp-trust-inline svg { color: #10b981; flex-shrink: 0; }

/* Hero floating cards */
.hp-hero-visual {
    position: relative;
    min-height: 18rem;
}
@media (min-width: 1024px) {
    .hp-hero-visual { min-height: 26rem; }
}
.hp-hero-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}
.hp-float-card {
    position: absolute;
    display: block;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 50px -16px rgba(15, 23, 42, 0.25);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    animation: hp-float 6s ease-in-out infinite;
}
html.dark .hp-float-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.hp-float-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 28px 60px -18px rgba(79, 70, 229, 0.35);
    z-index: 5;
}
.hp-float-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.hp-float-meta {
    padding: 0.7rem 0.85rem 0.85rem;
}
.hp-float-cat {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6366f1;
}
.hp-float-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.dark .hp-float-title { color: #f1f5f9; }
.hp-float-price {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #4f46e5;
    margin-top: 0.25rem;
}
.hp-float-card-1 {
    width: min(72%, 20rem);
    left: 8%;
    top: 8%;
    z-index: 3;
    animation-delay: 0s;
}
.hp-float-card-2 {
    width: min(48%, 13rem);
    right: 2%;
    top: 0;
    z-index: 2;
    animation-delay: 1.2s;
}
.hp-float-card-3 {
    width: min(46%, 12rem);
    right: 8%;
    bottom: 4%;
    z-index: 1;
    animation-delay: 2.1s;
}
@media (max-width: 1023px) {
    .hp-float-card-1 {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
    }
    .hp-float-card-2,
    .hp-float-card-3 { display: none; }
    .hp-hero-visual { min-height: 0; }
    .hp-hero-stage { min-height: 0; }
}
.hp-hero-glow {
    position: absolute;
    left: 20%;
    right: 10%;
    bottom: 10%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.25), transparent 70%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}
@keyframes hp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    .hp-float-card { animation: none; }
}

.hp-hero-placeholder {
    border-radius: 1.5rem;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.6);
    min-height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
html.dark .hp-hero-placeholder {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}
.hp-hero-placeholder-inner { text-align: center; padding: 2rem; }

/* Promo strip */
.hp-promo {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 40%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 16px 40px -14px rgba(79, 70, 229, 0.55);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hp-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px -14px rgba(79, 70, 229, 0.6);
}
.hp-promo[style*="background-image"] {
    background-size: cover;
    background-position: center;
}
.hp-promo-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.18), transparent 40%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.15), transparent 50%);
    pointer-events: none;
}
.hp-promo-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 1rem 1.15rem;
}
@media (min-width: 768px) {
    .hp-promo-inner { padding: 1.15rem 1.5rem; gap: 1.25rem; }
}
.hp-promo-kicker {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}
.hp-promo-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
@media (min-width: 640px) {
    .hp-promo-title { font-size: 1.15rem; }
}
.hp-promo-desc {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.15rem;
    display: none;
}
@media (min-width: 640px) {
    .hp-promo-desc { display: block; }
}
.hp-promo-code {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px dashed rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    color: inherit;
    transition: background 0.2s ease, transform 0.15s ease;
}
.hp-promo-code:hover { background: rgba(255, 255, 255, 0.25); }
.hp-promo-code.is-copied {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.hp-promo-timer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.hp-timer-cell {
    min-width: 2.4rem;
    padding: 0.35rem 0.4rem;
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(6px);
}
.hp-timer-cell span {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.hp-timer-cell small {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 0.1rem;
}
.hp-timer-sep {
    font-weight: 800;
    opacity: 0.6;
    font-size: 0.9rem;
}
.hp-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    padding: 0.65rem 1rem;
    border-radius: 0.8rem;
    background: #fff;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}
.hp-promo:hover .hp-promo-cta { transform: translateX(2px); }

/* Search */
.hp-search { position: relative; max-width: 42rem; margin: 0 auto; }
.hp-search-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 1.15rem;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    box-shadow: var(--hp-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hp-search-field:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), var(--hp-shadow-lg);
}
html.dark .hp-search-field {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}
.hp-search-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8;
    flex-shrink: 0;
}
.hp-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #0f172a;
    padding: 0.65rem 0.25rem;
    outline: none;
}
html.dark .hp-search-input { color: #e2e8f0; }
.hp-search-submit {
    flex-shrink: 0;
    min-height: 2.75rem;
    padding: 0 1.15rem;
    border-radius: 0.9rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.5);
    transition: filter 0.2s ease, transform 0.15s ease;
}
.hp-search-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.hp-search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 30;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    box-shadow: var(--hp-shadow-lg);
}
html.dark .hp-search-suggest {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}
.hp-suggest-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.45rem;
}
.hp-suggest-block + .hp-suggest-block { margin-top: 0.85rem; }
.hp-suggest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.hp-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hp-chip:hover {
    background: #eef2ff;
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.25);
}
html.dark .hp-chip {
    color: #cbd5e1;
    background: #1e293b;
}
html.dark .hp-chip:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

/* Sticky categories */
.hp-cat-sticky {
    position: sticky;
    top: 4rem;
    z-index: 30;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: 1.25rem;
}
html.dark .hp-cat-sticky {
    background: rgba(2, 6, 23, 0.85);
}
.hp-cat-sticky.is-stuck {
    border-bottom-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}
.hp-cat-rail {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.75rem 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hp-cat-rail::-webkit-scrollbar { display: none; }
.hp-cat-pill {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.hp-cat-pill:hover {
    border-color: rgba(99, 102, 241, 0.35);
    color: #4f46e5;
    transform: translateY(-1px);
}
.hp-cat-pill.is-active {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.5);
}
html.dark .hp-cat-pill {
    color: #cbd5e1;
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}
html.dark .hp-cat-pill.is-active {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* Sections */
.hp-section {
    padding-top: 2.25rem;
    padding-bottom: 0.5rem;
}
@media (min-width: 640px) {
    .hp-section { padding-top: 3rem; }
}
.hp-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 0.4rem;
}
.hp-eyebrow-rose { color: #e11d48; }
.hp-live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #f43f5e;
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5);
    animation: hp-ping 1.6s ease infinite;
}
@keyframes hp-ping {
    0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}
.hp-section-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    line-height: 1.2;
}
@media (min-width: 640px) {
    .hp-section-title { font-size: 1.75rem; }
}
html.dark .hp-section-title { color: #f8fafc; }
.hp-section-sub {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 0.3rem;
    max-width: 36rem;
}
html.dark .hp-section-sub { color: #94a3b8; }
.hp-link-all {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #4f46e5;
    transition: gap 0.2s ease, color 0.2s ease;
}
.hp-link-all:hover { gap: 0.5rem; color: #4338ca; }
html.dark .hp-link-all { color: #a5b4fc; }

/* Mobile product rail */
.hp-rail {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hp-rail::-webkit-scrollbar { display: none; }
.hp-rail-item {
    flex: 0 0 min(72vw, 16.5rem);
    scroll-snap-align: start;
}
.hp-rail-item .product-card {
    height: 100%;
}

/* Deal timer (standalone) */
.hp-deal-timer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.9rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html.dark .hp-deal-timer {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.hp-deal-timer .hp-timer-cell {
    background: #f8fafc;
    color: #4f46e5;
}
html.dark .hp-deal-timer .hp-timer-cell {
    background: #1e293b;
    color: #a5b4fc;
}
.hp-deal-timer .hp-timer-sep { color: #cbd5e1; }

/* Category cards */
.hp-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .hp-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 1024px) {
    .hp-cat-grid { grid-template-columns: repeat(4, 1fr); }
}
.hp-cat-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.1rem 1rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.hp-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}
html.dark .hp-cat-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.hp-cat-card-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
html.dark .hp-cat-card-icon {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
}
.hp-cat-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
html.dark .hp-cat-card-name { color: #f1f5f9; }
.hp-cat-card-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Trust */
.hp-trust-section {
    margin-top: 2.5rem;
    padding: 2rem 1.25rem;
    border-radius: 1.5rem;
    background:
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.08), transparent 55%),
        #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--hp-shadow);
}
@media (min-width: 640px) {
    .hp-trust-section { padding: 2.5rem 2rem; margin-top: 3rem; }
}
html.dark .hp-trust-section {
    background:
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.12), transparent 55%),
        #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.hp-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .hp-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .hp-trust-grid { grid-template-columns: repeat(5, 1fr); gap: 0.85rem; }
}
.hp-trust-card {
    padding: 1.1rem 1rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hp-trust-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.15);
}
html.dark .hp-trust-card {
    background: rgba(2, 6, 23, 0.5);
    border-color: rgba(255, 255, 255, 0.06);
}
.hp-trust-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    margin-bottom: 0.7rem;
}
html.dark .hp-trust-icon {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
}
.hp-trust-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
html.dark .hp-trust-title { color: #f1f5f9; }
.hp-trust-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}
html.dark .hp-trust-desc { color: #94a3b8; }

/* Back to top */
.hp-back-top {
    position: fixed;
    right: 1rem;
    bottom: 5.5rem;
    z-index: 40;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: #4f46e5;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.hp-back-top:hover { transform: translateY(-2px); }
html.dark .hp-back-top {
    background: #0f172a;
    color: #a5b4fc;
    border-color: rgba(255, 255, 255, 0.1);
}
@media (min-width: 1024px) {
    .hp-back-top { bottom: 1.5rem; right: 1.5rem; }
}

/* Mobile bottom nav */
.hp-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.15rem;
    padding: 0.4rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 -8px 28px -12px rgba(15, 23, 42, 0.15);
}
html.dark .hp-mobile-nav {
    background: rgba(2, 6, 23, 0.94);
    border-top-color: rgba(255, 255, 255, 0.08);
}
.hp-mnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.4rem 0.2rem;
    border-radius: 0.75rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.15s ease, background 0.15s ease;
    min-height: 3.1rem;
    background: transparent;
    border: none;
    cursor: pointer;
}
.hp-mnav-item:hover,
.hp-mnav-item.is-active {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.08);
}
html.dark .hp-mnav-item { color: #94a3b8; }
html.dark .hp-mnav-item:hover,
html.dark .hp-mnav-item.is-active {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
}

/* Homepage product card polish */
.hp-page .product-card {
    border-radius: 1.25rem;
}
.hp-page .product-card-media {
    aspect-ratio: 4 / 3;
}

@media (prefers-reduced-motion: reduce) {
    .hp-fade,
    .hp-float-card,
    .hp-live-dot,
    .hp-btn,
    .hp-cat-card,
    .hp-trust-card {
        animation: none !important;
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   Navigation Header (nh-*) — desktop / tablet / mobile
   Independent layouts per breakpoint (not scaled desktop)
   ═══════════════════════════════════════════════════════════ */

:root {
    --nh-h-desktop: 4.5rem;
    --nh-h-tablet: 4rem;
    --nh-h-mobile: 3.5rem;
    --nh-z: 50;
    --nh-radius: 1rem;
    --nh-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.12);
}

/* Ensure fixed mega sits under sticky chrome cleanly on short viewports */
@media (min-width: 1024px) and (max-height: 700px) {
    .nh-mega {
        max-height: calc(100vh - var(--nh-h-desktop) - 1rem);
    }
    .nh-mega-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nh-mega-promo {
        display: none;
    }
}


.nh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--nh-z);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
html.dark .nh-header {
    background: rgba(2, 6, 23, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.nh-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--nh-shadow);
    border-bottom-color: rgba(148, 163, 184, 0.28);
}
html.dark .nh-header.is-scrolled {
    background: rgba(2, 6, 23, 0.92);
    box-shadow: 0 10px 32px -12px rgba(0, 0, 0, 0.5);
}

/* Visibility by breakpoint — each region is a real layout */
.nh-desktop { display: none; }
.nh-tablet { display: none; }
.nh-mobile { display: block; }
.nh-bottom-nav { display: grid; }

@media (min-width: 768px) {
    .nh-mobile { display: none; }
    .nh-tablet { display: block; }
    .nh-bottom-nav { display: none; }
}
@media (min-width: 1024px) {
    .nh-tablet { display: none; }
    .nh-desktop { display: block; }
}

/* ── Logo ── */
.nh-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nh-logo:hover { transform: scale(1.02); }
.nh-logo-img {
    height: 2rem;
    width: auto;
    max-width: 9.5rem;
    object-fit: contain;
}
.nh-logo-img-mobile {
    height: 1.65rem;
    max-width: 7.5rem;
}
.nh-logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.55);
}
.nh-logo-mark-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    border-radius: 0.65rem;
}
.nh-logo-text {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #0f172a;
    white-space: nowrap;
}
html.dark .nh-logo-text { color: #f1f5f9; }

/* ── Shared icon buttons / badges ── */
.nh-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.nh-icon-btn:hover {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.08);
}
html.dark .nh-icon-btn { color: #94a3b8; }
html.dark .nh-icon-btn:hover {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
}
.nh-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nh-badge-brand { background: #4f46e5; }
.nh-badge-rose { background: #e11d48; }
.nh-cart-btn:hover .nh-badge,
.nh-badge.is-bump {
    animation: nh-badge-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes nh-badge-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.nh-text-btn {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    padding: 0.45rem 0.7rem;
    border-radius: 0.7rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.nh-text-btn:hover {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.06);
}
html.dark .nh-text-btn { color: #cbd5e1; }

.nh-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.55);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.nh-cta-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.nh-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    border: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}
.nh-avatar-lg { width: 2.5rem; height: 2.5rem; font-size: 0.9rem; }
.nh-avatar-link:hover { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
html.dark .nh-avatar {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
}

/* ════════════ DESKTOP ════════════ */
.nh-desktop-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nh-h-desktop);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nh-desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
    margin-left: 0.5rem;
}
.nh-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.7rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nh-nav-link:hover {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.06);
}
.nh-nav-link.is-active {
    color: #4f46e5;
}
.nh-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
}
.nh-nav-link-accent { color: #e11d48; }
.nh-nav-link-accent:hover {
    color: #be123c;
    background: rgba(244, 63, 94, 0.06);
}
html.dark .nh-nav-link { color: #94a3b8; }
html.dark .nh-nav-link:hover,
html.dark .nh-nav-link.is-active { color: #a5b4fc; }
.nh-chevron { transition: transform 0.2s ease; opacity: 0.7; }
.nh-mega-wrap.is-open .nh-chevron { transform: rotate(180deg); }

.nh-desktop-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* Desktop search */
.nh-search-desktop {
    position: relative;
    width: min(17rem, 22vw);
    transition: width 0.25s ease;
}
.nh-search-desktop:focus-within {
    width: min(20rem, 28vw);
}
.nh-search-desktop .nh-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}
.nh-search-input {
    width: 100%;
    height: 2.5rem;
    padding: 0 2.25rem 0 2.25rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #f8fafc;
    font-size: 0.85rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nh-search-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
html.dark .nh-search-input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
.nh-search-kbd {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.35rem;
    padding: 0.1rem 0.35rem;
    pointer-events: none;
}
.nh-search-desktop:focus-within .nh-search-kbd { opacity: 0; }

.nh-search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 60;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    padding: 0.85rem;
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.2);
}
html.dark .nh-search-suggest {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}
.nh-suggest-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}
.nh-suggest-block + .nh-suggest-block { margin-top: 0.75rem; }
.nh-suggest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.nh-chip {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.nh-chip:hover,
.nh-chip.is-active {
    background: #eef2ff;
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.25);
}
html.dark .nh-chip {
    color: #cbd5e1;
    background: #1e293b;
}

.nh-currency {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.7rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}
html.dark .nh-currency {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.nh-currency-code { color: #4f46e5; letter-spacing: 0.04em; }
html.dark .nh-currency-code { color: #a5b4fc; }
.nh-currency-btn {
    font-size: 0.68rem;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 0.45rem;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
}
.nh-currency-btn:hover { background: rgba(16, 185, 129, 0.18); }

/* Mega menu — fixed under header so it never clips/overflows viewport */
.nh-mega-wrap { position: static; }
.nh-mega {
    position: fixed;
    left: 50%;
    top: calc(var(--nh-h-desktop) + 0.35rem);
    width: min(56rem, calc(100vw - 2rem));
    max-height: min(70vh, 28rem);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.22);
    padding: 1.15rem;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nh-mega-wrap.is-open .nh-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nh-mega[hidden] {
    display: none !important;
}
html.dark .nh-mega {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.nh-mega-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.95fr;
    gap: 1rem;
}
.nh-mega-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.65rem;
}
.nh-mega-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: 18rem;
    overflow-y: auto;
}
.nh-mega-cat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.75rem;
    transition: background 0.15s ease;
}
.nh-mega-cat:hover { background: rgba(99, 102, 241, 0.06); }
.nh-mega-cat-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
    flex-shrink: 0;
}
html.dark .nh-mega-cat-icon {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}
.nh-mega-cat-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}
html.dark .nh-mega-cat-name { color: #f1f5f9; }
.nh-mega-cat-count {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
}
.nh-mega-cat-arrow {
    margin-left: auto;
    color: #cbd5e1;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.nh-mega-cat:hover .nh-mega-cat-arrow {
    opacity: 1;
    transform: translateX(2px);
}
.nh-mega-all {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4f46e5;
}
.nh-mega-products {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.nh-mega-product {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem;
    border-radius: 0.75rem;
    transition: background 0.15s ease;
}
.nh-mega-product:hover { background: rgba(99, 102, 241, 0.06); }
.nh-mega-product img {
    width: 3.25rem;
    height: 2.45rem;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    flex-shrink: 0;
}
.nh-mega-product-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html.dark .nh-mega-product-title { color: #e2e8f0; }
.nh-mega-product-price {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #4f46e5;
    margin-top: 0.15rem;
}
.nh-mega-promo-card {
    height: 100%;
    min-height: 14rem;
    padding: 1.15rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px -12px rgba(79, 70, 229, 0.5);
}
.nh-mega-promo-kicker {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}
.nh-mega-promo-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0.4rem;
    line-height: 1.25;
}
.nh-mega-promo-desc {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.4rem;
    line-height: 1.45;
    flex: 1;
}
.nh-mega-promo-cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.75rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.65rem;
    background: #fff;
    color: #4f46e5;
    font-size: 0.8rem;
    font-weight: 800;
}
.nh-mega-promo-thumbs {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.85rem;
}
.nh-mega-promo-thumbs img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.45rem;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

/* User menu desktop */
.nh-user { position: relative; }
.nh-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.45rem 0.25rem 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nh-user-btn:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 12px -6px rgba(79, 70, 229, 0.35);
}
html.dark .nh-user-btn {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}
.nh-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.dark .nh-user-name { color: #e2e8f0; }
.nh-user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 16.5rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.2);
    padding: 0.5rem;
    z-index: 70;
}
html.dark .nh-user-menu {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.nh-user-menu-head {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.55rem 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
html.dark .nh-user-menu-head { border-bottom-color: rgba(255, 255, 255, 0.06); }
.nh-user-menu-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}
html.dark .nh-user-menu-name { color: #f1f5f9; }
.nh-user-menu-email {
    font-size: 0.72rem;
    color: #94a3b8;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nh-user-menu a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    transition: background 0.15s ease, color 0.15s ease;
}
.nh-user-menu a:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
}
html.dark .nh-user-menu a { color: #cbd5e1; }
html.dark .nh-user-menu a:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
}
.nh-user-menu hr {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    margin: 0.35rem 0;
}
.nh-user-logout { color: #e11d48 !important; }
.nh-user-admin { color: #4f46e5 !important; }

/* ════════════ TABLET ════════════ */
.nh-tablet-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: var(--nh-h-tablet);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nh-tablet-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.nh-tablet-nav::-webkit-scrollbar { display: none; }
.nh-pill {
    flex: 0 0 auto;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nh-pill:hover,
.nh-pill.is-active {
    color: #4f46e5;
    background: #eef2ff;
    border-color: rgba(99, 102, 241, 0.2);
}
.nh-pill-accent {
    color: #e11d48;
    background: #fff1f2;
}
.nh-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    cursor: pointer;
}
html.dark .nh-pill {
    color: #cbd5e1;
    background: #1e293b;
}
html.dark .nh-pill:hover,
html.dark .nh-pill.is-active {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
}
.nh-tablet-cats { position: relative; }
.nh-tablet-cats-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 0.4rem);
    width: 14rem;
    max-height: 18rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.9rem;
    box-shadow: var(--nh-shadow);
    padding: 0.4rem;
    z-index: 60;
}
html.dark .nh-tablet-cats-menu {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.nh-tablet-cats-menu a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 0.55rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}
.nh-tablet-cats-menu a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
}
.nh-tablet-cats-all {
    font-weight: 700 !important;
    color: #4f46e5 !important;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    margin-top: 0.25rem;
    padding-top: 0.65rem !important;
}
.nh-tablet-actions {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

/* ════════════ MOBILE TOP BAR ════════════ */
.nh-mobile-inner {
    padding: 0 0.75rem;
    height: var(--nh-h-mobile);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.nh-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}
.nh-mobile .nh-icon-btn {
    width: 2.65rem;
    height: 2.65rem;
}

/* ════════════ SEARCH OVERLAY (tablet + mobile) ════════════ */
.nh-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.nh-search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.nh-search-overlay[hidden] {
    display: none !important;
}
.nh-search-overlay-panel {
    background: #fff;
    border-radius: 0 0 1.25rem 1.25rem;
    box-shadow: 0 20px 50px -16px rgba(15, 23, 42, 0.3);
    max-height: min(85vh, 36rem);
    overflow: auto;
    transform: translateY(-12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nh-search-overlay.is-open .nh-search-overlay-panel {
    transform: translateY(0);
}
html.dark .nh-search-overlay-panel { background: #0f172a; }
.nh-search-overlay-bar {
    position: sticky;
    top: 0;
    background: inherit;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    z-index: 1;
}
.nh-search-overlay-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.9rem;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
}
html.dark .nh-search-overlay-form {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}
.nh-search-overlay-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 0.55rem 0;
    color: #0f172a;
    outline: none;
}
html.dark .nh-search-overlay-input { color: #e2e8f0; }
.nh-search-cancel {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4f46e5;
    padding: 0.4rem 0.55rem;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nh-search-overlay-body { padding: 1rem; }
.nh-overlay-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.nh-overlay-cat {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
}
html.dark .nh-overlay-cat {
    color: #cbd5e1;
    background: #1e293b;
}

/* ════════════ DRAWER ════════════ */
.nh-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 62;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.nh-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.nh-drawer-overlay[hidden] {
    display: none !important;
}
.nh-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 63;
    width: min(20.5rem, 88vw);
    background: #fff;
    box-shadow: -16px 0 40px -16px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nh-drawer.is-open { transform: translateX(0); }
html.dark .nh-drawer { background: #0f172a; }
.nh-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.nh-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}
.nh-drawer-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 1rem;
}
html.dark .nh-drawer-user {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.06);
}
.nh-drawer-user-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
}
html.dark .nh-drawer-user-name { color: #f1f5f9; }
.nh-drawer-user-sub {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
}
.nh-drawer-auth {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.nh-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 1.25rem;
}
.nh-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    min-height: 2.85rem;
    transition: background 0.15s ease;
}
.nh-drawer-nav a:hover,
.nh-drawer-nav a.is-active {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
}
html.dark .nh-drawer-nav a { color: #e2e8f0; }
.nh-drawer-nav-dense a {
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 2.5rem;
}
.nh-drawer-section { margin-bottom: 1.25rem; }
.nh-drawer-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.55rem;
    padding-left: 0.35rem;
}
.nh-drawer-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.nh-drawer-cat {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid transparent;
}
.nh-drawer-cat:hover {
    background: #eef2ff;
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.2);
}
html.dark .nh-drawer-cat {
    color: #cbd5e1;
    background: #1e293b;
}
.nh-drawer-currency {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.15);
    font-size: 0.85rem;
    color: #64748b;
}
html.dark .nh-drawer-currency {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.06);
}

/* ════════════ MOBILE BOTTOM NAV ════════════ */
.nh-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 0.1rem;
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 -8px 28px -14px rgba(15, 23, 42, 0.15);
}
html.dark .nh-bottom-nav {
    background: rgba(2, 6, 23, 0.94);
    border-top-color: rgba(255, 255, 255, 0.08);
}
.nh-bottom-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-height: 3.15rem;
    padding: 0.3rem 0.15rem;
    border-radius: 0.75rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.nh-bottom-item:hover,
.nh-bottom-item.is-active {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.08);
}
html.dark .nh-bottom-item { color: #94a3b8; }
html.dark .nh-bottom-item:hover,
html.dark .nh-bottom-item.is-active {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
}
.nh-bottom-search {
    margin-top: -0.85rem;
}
.nh-bottom-search-orb {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.55);
    margin-bottom: 0.1rem;
}
.nh-bottom-cart-count {
    position: absolute;
    top: 0.2rem;
    right: calc(50% - 1.1rem);
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Body lock when overlays open */
body.nh-lock { overflow: hidden; }

/* Main content offset — independent per breakpoint */
body.main-layout-pad main,
.main-with-nh {
    padding-top: var(--nh-h-mobile);
    padding-bottom: 4.75rem;
}
@media (min-width: 768px) {
    body.main-layout-pad main,
    .main-with-nh {
        padding-top: var(--nh-h-tablet);
        padding-bottom: 0;
    }
}
@media (min-width: 1024px) {
    body.main-layout-pad main,
    .main-with-nh {
        padding-top: var(--nh-h-desktop);
    }
}

/* Homepage: no second bottom nav */
.hp-page { padding-bottom: 0 !important; }
.hp-mobile-nav { display: none !important; }
.hp-back-top { bottom: 5.25rem; }
@media (min-width: 768px) {
    .hp-back-top { bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .nh-header,
    .nh-drawer,
    .nh-search-overlay,
    .nh-mega,
    .nh-badge {
        transition: none !important;
        animation: none !important;
    }
}

/* Avoid double sticky bars: product purchase bar & checkout pay bar own the bottom */
@media (max-width: 767px) {
    body:has(.pp-mobile-bar) .nh-bottom-nav,
    body:has(.co-mobile-bar) .nh-bottom-nav,
    body:has(.pp-page) .nh-bottom-nav,
    body:has(.co-page) .nh-bottom-nav {
        display: none !important;
    }
    body:has(.pp-mobile-bar).main-layout-pad main,
    body:has(.co-mobile-bar).main-layout-pad main,
    body:has(.pp-page).main-layout-pad main,
    body:has(.co-page).main-layout-pad main {
        padding-bottom: 0;
    }
}

/* Flash toast position under sticky header */
@media (min-width: 768px) {
    .nh-flash-toast { top: calc(var(--nh-h-tablet, 4rem) + 0.75rem) !important; }
}
@media (min-width: 1024px) {
    .nh-flash-toast { top: calc(var(--nh-h-desktop, 4.5rem) + 0.75rem) !important; }
}


/* Zero-count badges stay hidden until items exist */
.nh-badge[data-zero="1"],
.nh-bottom-cart-count[data-zero="1"] {
    display: none !important;
}

/* Desktop density: progressive nav collapse (not scaled-down desktop) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .nh-nav-lg-only,
    .nh-nav-xl-only {
        display: none !important;
    }
    .nh-search-desktop {
        width: 11.5rem;
    }
    .nh-search-desktop:focus-within {
        width: 14rem;
    }
    .nh-user-name {
        display: none;
    }
    .nh-support-btn {
        display: none;
    }
    .nh-desktop-inner {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    .nh-nav-link {
        padding: 0.45rem 0.5rem;
        font-size: 0.82rem;
    }
    .nh-mega-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nh-mega-promo {
        display: none;
    }
}
@media (min-width: 1200px) and (max-width: 1359px) {
    .nh-nav-xl-only {
        display: none !important;
    }
    .nh-search-desktop {
        width: 13.5rem;
    }
    .nh-user-name {
        max-width: 4.5rem;
    }
}
@media (min-width: 1360px) {
    .nh-search-desktop {
        width: min(18rem, 20vw);
    }
}

/* Tablet: prevent action cluster overflow */
@media (min-width: 768px) and (max-width: 1023px) {
    .nh-tablet-inner {
        gap: 0.45rem;
        padding: 0 0.75rem;
    }
    .nh-logo-text {
        max-width: 6.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nh-pill {
        padding: 0.4rem 0.7rem;
        font-size: 0.78rem;
    }
    .nh-tablet-login {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Drawer must stay flex when visible (override any leftover [hidden] conflicts after open) */
.nh-drawer:not([hidden]) {
    display: flex;
}

/* Header sits under overlays but above page content */
.nh-header {
    z-index: 50;
}

/* Desktop actions don't wrap awkwardly */
.nh-desktop-actions {
    flex-wrap: nowrap;
}
.nh-desktop-nav {
    overflow: visible;
}

/* Mega product meta block */
.nh-mega-product > span {
    min-width: 0;
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   Footer (nf-*) — independent desktop / tablet / mobile
   ═══════════════════════════════════════════════════════════ */

.nf-footer {
    --nf-radius: 1.25rem;
    --nf-radius-lg: 1.5rem;
    position: relative;
    margin-top: 3.5rem;
    padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #64748b;
    overflow: hidden;
}
html.dark .nf-footer {
    background: #0f172a;
    border-top-color: rgba(255, 255, 255, 0.06);
}
.nf-footer-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(99, 102, 241, 0.08), transparent 55%),
        radial-gradient(ellipse 50% 35% at 90% 100%, rgba(139, 92, 246, 0.06), transparent 50%);
}
html.dark .nf-footer-bg {
    background:
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 35% at 90% 100%, rgba(139, 92, 246, 0.08), transparent 50%);
}
.nf-inner {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .nf-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .nf-inner { padding: 0 2rem; }
}

/* Breakpoint visibility — separate layouts, not scaled desktop */
.nf-desktop { display: none; }
.nf-tablet { display: none; }
.nf-mobile { display: block; padding-top: 2rem; }

@media (min-width: 768px) {
    .nf-mobile { display: none; }
    .nf-tablet { display: block; padding-top: 2.5rem; }
}
@media (min-width: 1024px) {
    .nf-tablet { display: none; }
    .nf-desktop { display: block; padding-top: 3.25rem; }
}

/* Brand */
.nf-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    transition: transform 0.2s ease;
}
.nf-brand-logo:hover { transform: translateY(-1px); }
.nf-brand-img {
    height: 2.1rem;
    width: auto;
    max-width: 9.5rem;
    object-fit: contain;
}
.nf-brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.55);
}
.nf-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}
html.dark .nf-brand-name { color: #f8fafc; }
.nf-brand-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #64748b;
    max-width: 20rem;
    margin-bottom: 1rem;
}
html.dark .nf-brand-desc { color: #94a3b8; }
.nf-brand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.nf-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
}
html.dark .nf-trust-chip {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Headings & links */
.nf-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
    margin-bottom: 1rem;
}
html.dark .nf-heading { color: #f1f5f9; }
.nf-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.nf-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    padding: 0.15rem 0;
    transition: color 0.15s ease, transform 0.15s ease;
}
.nf-link:hover {
    color: #4f46e5;
    transform: translateX(2px);
}
html.dark .nf-link { color: #94a3b8; }
html.dark .nf-link:hover { color: #a5b4fc; }
.nf-link-list-mobile {
    gap: 0.15rem;
}
.nf-link-list-mobile .nf-link {
    display: flex;
    min-height: 2.75rem;
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    transform: none;
}
.nf-link-list-mobile .nf-link:hover { transform: none; }
html.dark .nf-link-list-mobile .nf-link {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Newsletter cards */
.nf-newsletter {
    position: relative;
    overflow: hidden;
    border-radius: var(--nf-radius-lg);
    background: linear-gradient(145deg, #4f46e5 0%, #6366f1 42%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 16px 40px -16px rgba(79, 70, 229, 0.5);
}
.nf-newsletter-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
}
.nf-newsletter-inner {
    position: relative;
    padding: 1.25rem;
}
.nf-newsletter-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.35rem;
}
.nf-newsletter-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}
.nf-newsletter-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 1rem;
}
.nf-news-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.nf-news-fields {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.nf-news-input {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.7rem 0.95rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    backdrop-filter: blur(6px);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.nf-news-input::placeholder { color: rgba(255, 255, 255, 0.7); }
.nf-news-input:focus {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.nf-news-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.85rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.85rem;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4f46e5;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.nf-news-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}
.nf-news-note {
    margin-top: 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.nf-news-note.is-ok { color: #bbf7d0; }
.nf-news-note.is-error { color: #fecdd3; }

/* Desktop 4-column */
.nf-desktop-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr 0.85fr 1.15fr;
    gap: 2.25rem 2rem;
    align-items: start;
    padding-bottom: 2.5rem;
}
.nf-desktop .nf-newsletter-card .nf-newsletter-inner {
    padding: 1.35rem 1.25rem 1.4rem;
}
.nf-desktop .nf-newsletter-title {
    font-size: 1.2rem;
}

/* Tablet: newsletter band first, then 3-up */
.nf-tablet .nf-newsletter-inline {
    margin-bottom: 2rem;
}
.nf-tablet .nf-newsletter-inline .nf-newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.25rem 1.75rem;
    align-items: center;
    padding: 1.5rem 1.65rem;
}
.nf-tablet .nf-newsletter-inline .nf-newsletter-copy {
    min-width: 0;
}
.nf-tablet .nf-newsletter-inline form {
    min-width: 0;
}
.nf-tablet .nf-newsletter-inline .nf-newsletter-desc {
    margin-bottom: 0;
}
.nf-news-form-inline .nf-news-fields {
    flex-direction: row;
    align-items: stretch;
}
.nf-news-form-inline .nf-news-input {
    flex: 1;
    min-width: 0;
}
.nf-news-form-inline .nf-news-btn {
    flex-shrink: 0;
    min-width: 7.5rem;
}
.nf-news-form-inline .nf-news-note {
    width: 100%;
}
.nf-tablet-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.75rem 1.5rem;
    padding-bottom: 2rem;
}

/* Mobile stacked + accordion */
.nf-mobile .nf-brand {
    margin-bottom: 1.35rem;
}
.nf-mobile .nf-brand-desc {
    max-width: none;
    font-size: 0.92rem;
}
.nf-mobile .nf-newsletter-mobile {
    margin-bottom: 1.25rem;
}
.nf-mobile .nf-newsletter-mobile .nf-newsletter-inner {
    padding: 1.35rem 1.2rem 1.4rem;
}
.nf-mobile .nf-newsletter-title {
    font-size: 1.25rem;
}
.nf-mobile .nf-news-form {
    gap: 0.65rem;
}
.nf-mobile .nf-news-input,
.nf-mobile .nf-news-btn {
    min-height: 3.1rem;
    font-size: 0.95rem;
}

/* Accordion (mobile only) */
.nf-acc-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}
.nf-acc {
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
}
html.dark .nf-acc {
    background: rgba(2, 6, 23, 0.45);
    border-color: rgba(255, 255, 255, 0.08);
}
.nf-acc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
html.dark .nf-acc-summary { color: #f1f5f9; }
.nf-acc-summary::-webkit-details-marker { display: none; }
.nf-acc-chevron {
    color: #94a3b8;
    transition: transform 0.22s ease;
    flex-shrink: 0;
}
.nf-acc[open] .nf-acc-chevron {
    transform: rotate(180deg);
    color: #6366f1;
}
.nf-acc-body {
    padding: 0 1rem 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}
html.dark .nf-acc-body {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* Bottom bar */
.nf-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.35rem 0 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}
html.dark .nf-bottom {
    border-top-color: rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
    .nf-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 1.5rem 0 0.75rem;
        margin-top: 0.25rem;
    }
}
@media (min-width: 1024px) {
    .nf-bottom {
        padding: 1.75rem 0 1rem;
    }
}
.nf-copy {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
    margin: 0;
}
.nf-bottom-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
}
@media (min-width: 768px) {
    .nf-bottom-meta { justify-content: flex-end; }
}
.nf-currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}
html.dark .nf-currency-pill {
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}
.nf-bottom-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4f46e5;
    transition: color 0.15s ease;
}
.nf-bottom-link:hover { color: #4338ca; }
html.dark .nf-bottom-link { color: #a5b4fc; }

/* Mobile bottom-nav clearance (footer sits above sticky nav) */
@media (max-width: 767px) {
    body.main-layout-pad .nf-footer {
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
        margin-bottom: 0;
    }
    /* Extra space so footer content isn't tight against bottom nav */
    body.main-layout-pad:not(:has(.pp-page)):not(:has(.co-page)) .nf-footer {
        margin-bottom: 4.25rem;
    }
}

/* Tablet newsletter stack on narrow tablet if needed */
@media (min-width: 768px) and (max-width: 900px) {
    .nf-tablet .nf-newsletter-inline .nf-newsletter-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .nf-tablet-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nf-tablet-grid .nf-col-brand {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nf-link,
    .nf-news-btn,
    .nf-brand-logo,
    .nf-acc-chevron {
        transition: none !important;
    }
}


/* Inactive footer layouts: hide from paint + a11y until JS sets inert */
.nf-desktop[aria-hidden="true"],
.nf-tablet[aria-hidden="true"],
.nf-mobile[aria-hidden="true"] {
    /* display already none via breakpoint; reinforce pointer-events */
    pointer-events: none;
}

/* Prefer reduced paint for off-breakpoint sections when browser supports it */
@supports (content-visibility: hidden) {
    @media (max-width: 767px) {
        .nf-desktop, .nf-tablet { content-visibility: hidden; }
    }
    @media (min-width: 768px) and (max-width: 1023px) {
        .nf-desktop, .nf-mobile { content-visibility: hidden; }
    }
    @media (min-width: 1024px) {
        .nf-tablet, .nf-mobile { content-visibility: hidden; }
    }
}
