/* =====================================================================
   storefront.css
   Public-facing storefront. Shares the brand palette with admin.css
   (mint/indigo on near-black) but turned up for a premium, cinematic
   commercial feel: gradient orbs, glow, 3D card lift, animated hero.
===================================================================== */

:root {
    --bg: #0a0d13;
    --surface: #12161f;
    --surface-2: #171c28;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --mint: #6ee7b7;
    --mint-dim: rgba(110, 231, 183, 0.14);
    --indigo: #818cf8;
    --indigo-dim: rgba(129, 140, 248, 0.14);
    --amber: #fbbf24;
    --coral: #f87171;
    --text: #eef1f6;
    --text-dim: #9aa3b5;
    --text-faint: #5b6375;
    --radius: 18px;
    --radius-sm: 12px;
    --header-h: 76px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.015em;
    margin: 0;
    line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

.font-mono { font-family: 'JetBrains Mono', monospace; font-feature-settings: 'tnum' 1; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.ambient-orb.mint { background: var(--mint); animation: drift 14s ease-in-out infinite; }
.ambient-orb.indigo { background: var(--indigo); animation: drift 18s ease-in-out infinite reverse; }

.site-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 13, 19, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
}

.brand .mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--mint), var(--indigo));
}

.main-nav {
    display: flex;
    gap: 26px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
}

.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 26px rgba(0,0,0,0.22);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
    border-color: rgba(110, 231, 183, 0.55);
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(145deg, rgba(110,231,183,0.13), rgba(129,140,248,0.12));
    box-shadow: 0 16px 34px rgba(0,0,0,0.34), 0 0 0 1px rgba(110,231,183,0.08);
}

.btn-cta {
    background: linear-gradient(135deg, var(--mint), #4ade80);
    color: #062013;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(110, 231, 183, 0.45); }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 9px 18px;
    border-radius: 999px;
    transition: border-color 0.2s ease;
}

.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }

.mobile-nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; }

.header-actions .notification-header-icon { display: none; }

@media (max-width: 880px) {
    .main-nav { display: none; }
    .mobile-nav-toggle { display: block; }
    .site-header { height: auto; min-height: var(--header-h); padding: 10px 0; }
    .site-header .container { 
        flex-wrap: nowrap;
        justify-content: center;
        gap: 16px;
    }
    .mobile-nav-toggle { 
        order: -1;
        flex-shrink: 0;
    }
    .brand { 
        flex: 0 1 auto;
        justify-content: center;
    }
    .header-actions { 
        gap: 8px;
        order: 1;
        flex-shrink: 0;
    }
    /* Show wishlist, notification, and cart icons on mobile */
    .header-actions .icon-btn { display: flex; }
    .header-actions .icon-btn:first-child { display: none; }
    .header-actions .wishlist-header-icon { display: none; }
    .header-actions .notification-header-icon { display: flex; }
    .header-actions .cart-header-icon { display: flex; }
    .header-actions .btn-ghost,
    .header-actions .btn-cta { display: none; }

    .site-header { position: sticky; top: 0; z-index: 70; }
    .site-header .container { min-height: var(--header-h); }
    .site-header .brand { text-align: center; }
    .header-actions { align-items: center; }
}

@media (max-width: 400px) {
    .brand span:not(.mark) { font-size: 0.95rem; }
}

/* Mobile nav drawer (opened by the hamburger button) */
.mobile-nav-panel {
    display: none;
    flex-direction: column;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px 20px 16px;
    max-height: calc(100vh - var(--header-h) - 120px);
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
}

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

.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel a {
    padding: 14px 4px;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.mobile-nav-panel a:hover {
    color: var(--mint);
}

.mobile-nav-panel a:last-of-type { border-bottom: none; }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 8px 0; }

.mobile-nav-logout {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--coral, #f87171);
    font-weight: 500;
    padding: 14px 4px;
    min-height: 44px;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.mobile-nav-logout:hover {
    color: #ff9999;
}

@media (min-width: 881px) {
    .mobile-nav-panel { display: none !important; }
}

.hero {
    position: relative;
    padding: 100px 0 90px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mint-dim);
    color: var(--mint);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--mint), var(--indigo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 1.08rem;
    color: var(--text-dim);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-actions .btn-cta, .hero-actions .btn-ghost { padding: 14px 28px; font-size: 0.95rem; }

.section { padding: 72px 0; position: relative; }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.section-header .section-tag {
    color: var(--mint);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 8px;
}

.section-header .see-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px 9px 18px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018)),
        rgba(18, 22, 31, 0.82);
    border: 1px solid rgba(255,255,255,0.11);
    box-shadow: 0 14px 30px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.section-header .see-all::after {
    content: '➜';
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    color: #07100c;
    background: linear-gradient(135deg, var(--mint), var(--indigo));
    box-shadow: 0 8px 18px rgba(110, 231, 183, 0.26), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-header .see-all:hover {
    color: var(--mint);
    border-color: rgba(110, 231, 183, 0.42);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(0,0,0,0.36), 0 0 0 1px rgba(110,231,183,0.08);
}

.section-header .see-all:hover::after {
    transform: translateX(2px) scale(1.06);
    box-shadow: 0 12px 24px rgba(110, 231, 183, 0.36), 0 0 0 5px rgba(110,231,183,0.08);
}

.category-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.category-scroll::-webkit-scrollbar { height: 6px; }
.category-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.category-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px 18px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover { transform: translateY(-4px); border-color: var(--mint); }

.category-card .cat-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--mint-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.category-card .cat-name { font-weight: 600; font-size: 0.92rem; }
.category-card .cat-count { color: var(--text-faint); font-size: 0.76rem; margin-top: 4px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    perspective: 1200px;
}

@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
    .product-grid {
        gap: 16px;
    }

    .product-card {
        border-radius: 18px;
        box-shadow: 0 20px 46px -34px rgba(0, 0, 0, 0.9);
    }

    .product-card:hover {
        transform: translateY(-6px);
    }

    .product-card .card-body {
        padding: 16px;
    }

    .product-card .card-cta {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 0;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-card .card-media {
        aspect-ratio: 1 / 0.86;
    }

    .product-card .card-body {
        padding: 12px;
    }

    .product-card h3 {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .product-card .card-meta {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    .product-card .price {
        font-size: 0.84rem;
    }

    .product-card .card-cta {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 0;
    }

    .product-card .card-cta::before { font-size: 0.9rem; }
}

/* ---------------------------------------------------------------------
   Site-wide premium responsive finishing layer
--------------------------------------------------------------------- */
@keyframes siteRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

main > * {
    animation: siteRise 0.28s ease both;
}

.glass-panel,
.auth-card,
.category-card,
.gallery-main,
.checkout-step {
    border-color: rgba(255,255,255,0.10);
    background:
        linear-gradient(155deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012) 46%),
        rgba(18,22,31,0.72);
    box-shadow: 0 22px 54px -34px rgba(0,0,0,0.88), inset 0 1px 0 rgba(255,255,255,0.045);
}

.glass-panel,
.category-card,
.auth-card,
.checkout-step,
.variation-option,
.filter-option {
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.glass-panel:hover,
.category-card:hover,
.checkout-step:hover {
    border-color: rgba(110,231,183,0.22);
    box-shadow: 0 28px 64px -38px rgba(0,0,0,0.92), 0 0 0 1px rgba(110,231,183,0.04);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(110,231,183,0.08);
}

.btn-cta,
.btn-ghost,
.account-action-link,
.section-header .see-all {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.btn-cta {
    background: linear-gradient(135deg, var(--mint), var(--indigo));
}

.btn-cta:active,
.btn-ghost:active,
.icon-btn:active,
.mobile-footer-btn:active {
    transform: translateY(0) scale(0.98);
}

.site-header {
    box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}

.announcement-bar {
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06), 0 8px 22px rgba(0,0,0,0.16);
}

.shop-layout aside,
.blog-layout aside {
    min-width: 0;
}

@media (max-width: 880px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 22px;
        align-items: flex-start;
    }

    .section-header .see-all {
        min-height: 38px;
        padding: 8px 10px 8px 14px;
        font-size: 0.78rem;
    }

    .glass-panel,
    .auth-card,
    .checkout-step {
        border-radius: 18px;
        padding: 20px;
    }

    .toolbar {
        align-items: stretch;
    }

    .toolbar > *,
    .toolbar form,
    .toolbar select,
    .search-bar {
        width: 100%;
        max-width: none;
    }

    .category-scroll {
        gap: 12px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-card {
        flex-basis: 152px;
        border-radius: 16px;
        padding: 18px 14px;
    }

    .product-detail-grid {
        gap: 22px;
    }

    .tabs {
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 2px;
    }

    .tab-btn {
        white-space: nowrap;
        min-height: 42px;
    }

    .hero {
        padding: 62px 0 56px;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .hero p.lead {
        font-size: 0.98rem;
    }

    .hero-actions .btn-cta,
    .hero-actions .btn-ghost {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .gallery-thumbs {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .variation-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .variation-option {
        min-width: 0;
        padding: 11px 10px;
    }
}

.product-card {
    background:
        linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0) 34%),
        linear-gradient(165deg, rgba(23, 28, 40, 0.96), rgba(12, 16, 24, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    box-shadow: 0 18px 50px -32px rgba(0, 0, 0, 0.75);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    transform-style: preserve-3d;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 0%, rgba(110,231,183,0.18), transparent 34%),
                radial-gradient(circle at 95% 18%, rgba(129,140,248,0.14), transparent 28%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(-2deg);
    border-color: rgba(110, 231, 183, 0.48);
    box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(110, 231, 183, 0.10);
}

.product-card:hover::before { opacity: 1; }

.product-card .card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, var(--surface-2), #0d1119);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .card-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(8, 10, 16, 0.72));
    pointer-events: none;
}

.product-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.product-card:hover .card-media img {
    transform: scale(1.07);
    filter: saturate(1.12) contrast(1.04);
}

.product-card .card-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    color: #06140d;
}

.product-card .card-body { padding: 18px; }

.product-card .card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    margin-bottom: 10px;
    background: var(--mint-dim);
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.product-card .card-meta {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.product-card .card-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.product-card .price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.05rem;
}

.product-card .price .compare {
    text-decoration: line-through;
    color: var(--text-faint);
    font-size: 0.78rem;
    margin-left: 6px;
    font-weight: 400;
}

.product-card .card-cta {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,0.92), rgba(255,255,255,0.10) 24%, transparent 38%),
        linear-gradient(135deg, var(--mint), var(--indigo));
    color: #06140d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0;
    border: none;
    box-shadow: 0 16px 30px rgba(110, 231, 183, 0.26), inset 0 1px 0 rgba(255,255,255,0.42);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    flex: 0 0 44px;
    position: relative;
    overflow: hidden;
}

.product-card .card-cta::before {
    content: '➜';
    font-size: 1.05rem;
    line-height: 1;
    transform: translateX(0);
    transition: transform 0.22s ease;
}

.product-card .card-cta::after {
    content: '';
    position: absolute;
    inset: -45%;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.42) 48%, transparent 62%);
    transform: translateX(-80%) rotate(18deg);
    transition: transform 0.45s ease;
}

.product-card:hover .card-cta {
    transform: translateX(3px) scale(1.1);
    filter: saturate(1.08);
    box-shadow: 0 20px 40px rgba(110, 231, 183, 0.38), 0 0 0 7px rgba(110, 231, 183, 0.08);
}

.product-card:hover .card-cta::before {
    transform: translateX(2px);
}

.product-card:hover .card-cta::after {
    transform: translateX(82%) rotate(18deg);
}

.glass-panel {
    background: rgba(23, 28, 40, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    padding: 32px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.96rem;
}

.faq-question .chevron { transition: transform 0.25s ease; color: var(--text-faint); }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-item.open .faq-answer { max-height: 400px; padding-top: 12px; }

.newsletter-form { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.newsletter-form input {
    flex: 1;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 20px;
    color: var(--text);
    font-size: 0.9rem;
}

.newsletter-form input:focus { outline: none; border-color: var(--mint); }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-col h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-dim); font-size: 0.86rem; }
.footer-col a:hover { color: var(--mint); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 10px;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.55);
    z-index: 60;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }

.announcement-bar {
    background: linear-gradient(90deg, var(--mint-dim), var(--indigo-dim));
    color: var(--text);
    text-align: center;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 10px 16px;
    position: relative;
}

.announcement-bar a { color: var(--mint); font-weight: 600; margin-left: 6px; }

.announcement-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

@media (max-width: 880px) { .shop-layout { grid-template-columns: 1fr; } }

.filter-group { margin-bottom: 26px; }
.filter-group h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 12px; }

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.filter-option:hover { color: var(--text); }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-bar { position: relative; width: 100%; max-width: 420px; }

.search-bar input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 20px;
    color: var(--text);
    font-size: 0.9rem;
}

.search-bar input:focus { outline: none; border-color: var(--mint); }

.empty-state-storefront { text-align: center; padding: 60px 20px; color: var(--text-faint); }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

@media (max-width: 880px) { .product-detail-grid { grid-template-columns: 1fr; gap: 28px; } }

.gallery-main {
    aspect-ratio: 1;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs { display: flex; gap: 10px; }

.gallery-thumbs img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; border-color: var(--mint); }

.variation-grid { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

.variation-option {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    min-width: 110px;
    text-align: center;
}

.variation-option:hover { border-color: var(--border-strong); }
.variation-option.selected { border-color: var(--mint); background: var(--mint-dim); }
.variation-option .v-label { font-weight: 600; font-size: 0.88rem; }
.variation-option .v-price { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: var(--text-dim); margin-top: 4px; }
.variation-option .v-badge { font-size: 0.65rem; color: var(--mint); text-transform: uppercase; margin-top: 2px; }

/* Checkout payment method selector */
.payment-method-card {
    display: grid;
    grid-template-columns: auto 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
        rgba(18, 22, 31, 0.72);
    box-shadow: 0 14px 30px rgba(0,0,0,0.20);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-card:hover,
.payment-method-card.selected {
    transform: translateY(-2px);
    border-color: rgba(110,231,183,0.45);
    background:
        radial-gradient(circle at 0 0, rgba(110,231,183,0.13), transparent 36%),
        linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.018)),
        rgba(18, 22, 31, 0.88);
    box-shadow: 0 20px 42px rgba(0,0,0,0.32), 0 0 0 1px rgba(110,231,183,0.08);
}

.payment-method-card input[type="radio"] {
    accent-color: var(--mint);
}

.payment-method-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #07100c;
    font-weight: 800;
    background: linear-gradient(135deg, var(--mint), var(--indigo));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 12px 24px rgba(110,231,183,0.18);
}

.payment-method-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.payment-method-summary {
    min-width: 0;
}

.payment-method-detail {
    margin: -2px 0 16px 30px;
    padding: 16px;
    border: 1px solid rgba(110,231,183,0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(129,140,248,0.14), transparent 34%),
        linear-gradient(160deg, rgba(23,28,40,0.92), rgba(12,16,24,0.96));
    box-shadow: 0 20px 46px rgba(0,0,0,0.34);
    animation: paymentDetailIn 0.24s ease;
}

@keyframes paymentDetailIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.payment-detail-kicker {
    color: var(--mint);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.payment-qr {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 16px;
    background: white;
    padding: 6px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.payment-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    margin-top: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.payment-copy-row span {
    display: block;
    color: var(--text-faint);
    font-size: 0.72rem;
    margin-bottom: 3px;
}

.payment-copy-row strong {
    display: block;
    color: var(--text);
    overflow-wrap: anywhere;
}

.payment-copy-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 13px;
    min-height: 36px;
    color: #07100c;
    font-weight: 800;
    background: linear-gradient(135deg, var(--mint), var(--indigo));
    box-shadow: 0 10px 22px rgba(110,231,183,0.22), inset 0 1px 0 rgba(255,255,255,0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.payment-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(110,231,183,0.30);
}

.payment-copy-btn.copied {
    background: linear-gradient(135deg, #4ade80, var(--mint));
}

.payment-instructions {
    margin-top: 12px;
    color: var(--text-dim);
    font-size: 0.86rem;
    line-height: 1.6;
    padding: 12px;
    border-radius: 14px;
    background: rgba(129,140,248,0.08);
    border: 1px solid rgba(129,140,248,0.14);
}

.payment-fields-group {
    margin-top: 14px;
}

@media (max-width: 560px) {
    .payment-method-card {
        grid-template-columns: auto 42px minmax(0, 1fr);
        padding: 12px;
    }

    .payment-method-logo {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .payment-method-detail {
        margin-left: 0;
        padding: 14px;
    }

    .payment-detail-head {
        align-items: center;
    }

    .payment-qr {
        width: 76px;
        height: 76px;
    }

    .payment-copy-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-copy-btn {
        width: 100%;
    }
}

.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.spec-list li span:first-child { color: var(--text-faint); }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn {
    background: none;
    border: none;
    color: var(--text-faint);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--mint); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.review-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.review-item:last-child { border-bottom: none; }
.review-stars { color: var(--amber); font-size: 0.9rem; }
.review-author { font-weight: 600; font-size: 0.88rem; margin-top: 4px; }
.review-text { color: var(--text-dim); font-size: 0.88rem; margin-top: 6px; line-height: 1.6; }

/* ---------------------------------------------------------------------
   Status pill (order status on the invoice/success page)
--------------------------------------------------------------------- */

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
}

.status-pill.pending { background: var(--amber-dim, rgba(251,191,36,0.14)); color: var(--amber); }
.status-pill.completed { background: var(--mint-dim); color: var(--mint); }
.status-pill.cancelled, .status-pill.refunded { background: rgba(248,113,113,0.14); color: var(--coral); }
.status-pill.processing, .status-pill.awaiting_payment { background: var(--indigo-dim); color: var(--indigo); }

/* Account action links: View, View all */
.account-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 9px 7px 14px;
    border-radius: 999px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018)),
        rgba(18, 22, 31, 0.82);
    border: 1px solid rgba(255,255,255,0.11);
    box-shadow: 0 12px 24px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.account-action-link::after {
    content: '➜';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #07100c;
    background: linear-gradient(135deg, var(--mint), var(--indigo));
    box-shadow: 0 8px 18px rgba(110, 231, 183, 0.24), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-action-link:hover {
    color: var(--mint);
    border-color: rgba(110, 231, 183, 0.42);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.34), 0 0 0 1px rgba(110,231,183,0.08);
}

.account-action-link:hover::after {
    transform: translateX(2px) scale(1.05);
}

.account-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 700px) {
    .account-order-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .account-order-row > .font-mono:not(a) {
        justify-self: end;
    }

    .account-order-row > .status-pill {
        justify-self: start;
    }

    .account-order-row > .account-action-link {
        justify-self: end;
    }
}

/* ---------------------------------------------------------------------
   Blog article (public /blog/{slug} page)
--------------------------------------------------------------------- */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-toc { display: none; }
}

.blog-article {
    max-width: 760px;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.75;
}
.blog-article h2, .blog-article h3 {
    color: var(--text);
    scroll-margin-top: calc(var(--header-h) + 20px);
    margin: 36px 0 14px;
    line-height: 1.35;
}
.blog-article h2 { font-size: 1.4rem; }
.blog-article h3 { font-size: 1.15rem; }
.blog-article p { margin: 0 0 18px; }
.blog-article a { color: var(--mint); }
.blog-article ul, .blog-article ol { margin: 0 0 18px; padding-left: 22px; }
.blog-article li { margin-bottom: 8px; }
.blog-article img { max-width: 100%; border-radius: var(--radius-sm); margin: 20px 0; }
.blog-article blockquote {
    border-left: 3px solid var(--mint);
    margin: 20px 0;
    padding: 4px 20px;
    color: var(--text);
    background: var(--mint-dim);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-article pre {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
}
.blog-article code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--mint);
}
.blog-article pre code { background: none; padding: 0; color: inherit; }

/* ---------------------------------------------------------------------
   Auth pages (login / register / forgot / reset password)
--------------------------------------------------------------------- */
.auth-shell {
    min-height: calc(100vh - var(--header-h) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}
.auth-shell::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--mint-dim) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(23, 28, 40, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    padding: 40px 36px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.auth-card .auth-subtitle {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 28px;
}
.auth-card .form-group { margin-bottom: 18px; }
.auth-card label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-weight: 500;
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color 0.2s ease;
}
.auth-card input:focus {
    outline: none;
    border-color: var(--mint);
}
.auth-card .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}
.auth-card .checkbox-row input { width: auto; }
.auth-card button[type="submit"] {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    margin-top: 4px;
    cursor: pointer;
}
.auth-card #form-message:not(:empty) {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--coral, #f87171);
    text-align: center;
}
.auth-card .auth-footer-links {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-card .auth-footer-links a { color: var(--mint); text-decoration: none; }
.auth-card .alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.auth-card .alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* ---------------------------------------------------------------------
   Header cart icon badge
--------------------------------------------------------------------- */
.cart-icon-btn { position: relative; }
.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mint), var(--indigo));
    color: #08110c;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--bg);
}

/* ---------------------------------------------------------------------
   Wishlist heart toggle
--------------------------------------------------------------------- */
.wishlist-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(11, 14, 20, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--text);
    cursor: pointer;
    z-index: 2;
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
}
.wishlist-heart:hover { transform: scale(1.08); border-color: var(--coral, #f87171); }
.wishlist-heart.saved { color: var(--coral, #f87171); border-color: var(--coral, #f87171); }

/* On the product detail page the heart sits inline next to the
   Add to Cart button rather than floating over an image. */
.wishlist-heart.wishlist-heart-inline {
    position: static;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Fixed bottom mobile navigation bar
--------------------------------------------------------------------- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    background: rgba(10, 13, 19, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
}
.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    min-height: 52px;
    color: var(--text-faint);
    font-size: 0.66rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease;
}
.mobile-bottom-nav a.active { color: var(--mint); }
.mobile-bottom-nav-icon {
    position: relative;
    font-size: 1.2rem;
    line-height: 1;
}
.mobile-bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mint), var(--indigo));
    color: #08110c;
    font-size: 0.58rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile User Footer Bar (logged-in users only) */
.mobile-user-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    background: rgba(10, 13, 19, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
    gap: 4px;
}

.mobile-footer-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 2px;
    min-height: 56px;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.mobile-footer-btn:hover {
    color: var(--mint);
    border-color: var(--mint);
    background: var(--mint-dim);
}

.mobile-footer-btn-center {
    order: 3;
    flex: 1.1;
    border: 2px solid var(--mint-dim);
    background: var(--mint-dim);
    color: var(--mint);
}

.mobile-footer-btn-center:hover {
    border-color: var(--mint);
    background: rgba(110, 231, 183, 0.2);
}

.mobile-footer-btn span:first-child {
    font-size: 1.4rem;
    line-height: 1;
}

.mobile-footer-btn span:last-child {
    line-height: 1.1;
}

@media (max-width: 880px) {
    .mobile-bottom-nav { display: flex; }
    .mobile-user-footer { display: flex; }
    body { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
    .whatsapp-float { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 50px; height: 50px; font-size: 1.3rem; }

    /* Comfortable touch targets (44px is the accepted minimum from
       Apple/Google's own accessibility guidelines) — the desktop
       sizes below that were fine for a mouse cursor but genuinely
       hard to tap accurately on a phone. */
    .icon-btn { width: 44px; height: 44px; }
    .wishlist-heart { width: 40px; height: 40px; top: 8px; right: 8px; }
    .btn-cta, .btn-ghost { min-height: 44px; padding-top: 12px; padding-bottom: 12px; }
}

/* Mobile customer shell shared by storefront and account pages */
@media (max-width: 880px) {
    .user-logged-in .site-header {
        min-height: 64px;
        padding: 0;
        background: rgba(10, 13, 19, 0.96);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    }

    .user-logged-in .site-header .container {
        min-height: 64px;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 0 12px;
    }

    .user-logged-in .mobile-nav-toggle {
        width: 44px;
        height: 44px;
        border-radius: 16px;
        background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
        border: 1px solid rgba(255,255,255,0.12);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        box-shadow: 0 14px 28px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.10);
    }

    .user-logged-in .site-header .brand {
        min-width: 0;
        justify-content: center;
        text-align: center;
        font-size: 1rem;
        line-height: 1.15;
    }

    .user-logged-in .site-header .brand .mark { display: none; }
    .user-logged-in .site-header .brand span:not(.mark) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .user-logged-in .header-actions {
        gap: 7px;
        justify-content: flex-end;
    }

    .user-logged-in .header-actions .search-header-icon,
    .user-logged-in .header-actions .cart-header-icon,
    .user-logged-in .header-actions .account-header-icon,
    .user-logged-in .header-actions a[aria-label="Search"],
    .user-logged-in .header-actions a[aria-label="Cart"],
    .user-logged-in .header-actions a[aria-label="My Account"] {
        display: none;
    }

    .user-logged-in .header-actions .wishlist-header-icon,
    .user-logged-in .header-actions .notification-header-icon {
        display: flex;
        border-radius: 16px;
        background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025));
        border-color: rgba(255,255,255,0.12);
        font-size: 1.12rem;
    }

    .user-guest .mobile-user-footer { display: none !important; }
    body.user-guest { padding-bottom: 0; }

    .mobile-nav-panel {
        position: fixed;
        top: 64px;
        left: 10px;
        right: 10px;
        max-height: calc(100dvh - 88px - env(safe-area-inset-bottom, 0px));
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(18, 22, 31, 0.98);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    }

    .mobile-nav-panel a,
    .mobile-nav-logout {
        border-bottom: 0;
        border-radius: 14px;
        padding: 12px 14px;
        margin: 2px 0;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
        border: 1px solid rgba(255,255,255,0.055);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }

    .mobile-nav-panel a:hover,
    .mobile-nav-logout:hover {
        background: var(--mint-dim);
    }

    .mobile-user-footer {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0)),
            linear-gradient(180deg, rgba(23, 28, 40, 0.97), rgba(10, 13, 19, 0.97));
        box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-footer-btn {
        min-height: 54px;
        border-radius: 18px;
        font-size: 0.64rem;
        position: relative;
        overflow: hidden;
    }

    .mobile-footer-btn::before {
        content: '';
        position: absolute;
        inset: 7px 10px auto 10px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
        opacity: 0.45;
    }

    .mobile-footer-btn-center {
        order: 0;
        transform: translateY(-12px);
        background: linear-gradient(135deg, var(--mint), var(--indigo));
        color: #07100c;
        border: none;
        box-shadow: 0 14px 28px rgba(110, 231, 183, 0.28);
    }

    .mobile-footer-btn span:first-child {
        width: 30px;
        height: 30px;
        border-radius: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.055);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .mobile-footer-btn-center span:first-child {
        background: rgba(8, 16, 12, 0.16);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.26);
    }

    .account-page-header {
        min-height: 64px !important;
        padding: 0 12px !important;
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .account-page-header .brand {
        justify-content: center;
        min-width: 0;
        text-align: center;
    }

    .account-page-header .brand .mark { display: none; }
    .account-page-header .brand span:not(.mark) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-header-actions {
        display: flex;
        gap: 7px;
    }

    .account-old-cart-link { display: none !important; }

    .account-sidebar {
        inset: 64px 10px auto 10px !important;
        max-height: calc(100dvh - 88px - env(safe-area-inset-bottom, 0px));
        border: 1px solid var(--border) !important;
        border-radius: 18px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
        flex-direction: column !important;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    .account-sidebar.open {
        display: flex !important;
        flex-direction: column !important;
    }

    .account-sidebar > .brand,
    .account-sidebar > .account-nav-link,
    .account-sidebar > form {
        width: 100%;
        flex: 0 0 auto;
    }

    .account-sidebar .account-nav-link {
        white-space: normal;
        min-height: 48px;
        gap: 10px;
    }

}

/* Cart mobile containment */
.cart-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.cart-item-media {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-info {
    flex: 1;
    min-width: 140px;
    overflow-wrap: anywhere;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.cart-item-price {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .cart-items-panel { padding: 18px 14px; }
    .cart-item-row {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
    }
    .cart-item-media { width: 58px; height: 58px; }
    .cart-item-info { min-width: 0; grid-column: 2 / 4; }
    .cart-item-qty { grid-column: 1 / 3; }
    .cart-item-price {
        grid-column: 3;
        max-width: 110px;
        overflow-wrap: anywhere;
        white-space: normal;
        font-size: 0.9rem;
    }
    .remove-item-btn { grid-column: 3; justify-self: end; }
}

/* Final mobile product-card overrides live at the end so they win the cascade. */
@media (max-width: 760px) {
    .product-grid { gap: 16px; }
    .product-card {
        border-radius: 18px;
        box-shadow: 0 20px 46px -34px rgba(0, 0, 0, 0.9);
    }
    .product-card:hover { transform: translateY(-6px); }
    .product-card .card-body { padding: 16px; }
    .product-card .card-cta {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .product-card { border-radius: 16px; }
    .product-card .card-media { aspect-ratio: 1 / 0.86; }
    .product-card .card-body { padding: 12px; }
    .product-card h3 {
        font-size: 0.88rem;
        line-height: 1.25;
    }
    .product-card .card-meta {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    .product-card .price { font-size: 0.84rem; }
    .product-card .card-cta {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 0;
    }

    .product-card .card-cta::before { font-size: 0.9rem; }
}
