/* ============ E-commerce stylesheet (minimal, solid) ============ */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-soft: #eef2ff;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg-soft: #f8fafc;
    --bg-hero: #fafafa;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(0,0,0,.07);

    /* Green hero palette */
    --hero-green-dark:  #0b3d2e;
    --hero-green-mid:   #2c7a5a;
    --hero-green-mid-h: #226c4d;
    --hero-green-soft:  #86efac;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; color: var(--text); background: #fff; line-height: 1.6; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; } .text-right { text-align: right; } .text-muted { color: var(--muted); }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; } .mb-2 { margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .55rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius);
       background: #fff; color: var(--text); cursor: pointer; font-size: .95rem; text-align: center; }
.btn:hover { background: var(--bg-soft); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { padding: .3rem .7rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .06); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: .9rem 16px;
    min-height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity .2s ease, transform .2s ease;
}
.logo:hover { text-decoration: none; opacity: .85; transform: translateY(-1px); }
.logo-img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: transform .3s ease;
}
.logo:hover .logo-img { transform: scale(1.04); }
.logo > span { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a,
.nav-dropdown > a {
    position: relative;
    color: var(--text);
    font-weight: 500;
    font-size: .95rem;
    padding: .35rem 0;
    transition: color .2s ease;
}
.main-nav > a:hover,
.nav-dropdown > a:hover { color: var(--primary); text-decoration: none; }
.main-nav > a::after,
.nav-dropdown > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .25s ease;
}
.main-nav > a:hover::after,
.nav-dropdown > a:hover::after { width: 100%; }

.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: .3rem; }
.nav-dropdown-toggle svg { transition: transform .2s ease; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .09);
    padding: .45rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
    display: block;
    padding: .55rem .8rem;
    color: var(--text);
    border-radius: 8px;
    font-size: .92rem;
    transition: background .15s ease, color .15s ease;
}
.nav-dropdown-menu a:hover { background: var(--bg-soft); color: var(--primary); text-decoration: none; }
.user-menu { min-width: 200px; left: auto; right: 0; }
.user-menu-header {
    padding: .7rem .8rem .5rem;
    font-size: .85rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    margin-bottom: .35rem;
}
.user-menu-header strong { color: var(--text); display: block; font-size: .95rem; }
.danger-link { color: var(--danger) !important; }
.danger-link:hover { background: #fef2f2 !important; color: var(--danger) !important; }

.search-form { position: relative; display: flex; align-items: center; flex: 1; max-width: 520px; margin: 0 auto; }
.search-form .search-icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search-form input {
    width: 100%;
    padding: .65rem 3.2rem .65rem 2.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-soft);
    font: inherit;
    font-size: .92rem;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.search-form input:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.search-submit:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.05); }

.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex-shrink: 0; }
.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    text-decoration: none;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--primary); text-decoration: none; }
.icon-btn:focus,
.icon-btn:focus-visible {
    outline: none;
    box-shadow: none;
    background: var(--bg-soft);
    color: var(--primary);
}
.user-dropdown > #userMenuToggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.user-dropdown > #userMenuToggle svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}
.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.search-toggle { display: none; }

.mobile-search { display: none; padding: .6rem 16px 1rem; border-top: 1px solid var(--border); background: #fff; }
.mobile-search.open { display: block; animation: slideDown .25s ease; }
.mobile-search .search-form { max-width: none; margin: 0; }
.search-cancel {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    padding: .3rem;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background .2s ease;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Flash ---------- */
.flash-wrap { padding: 1rem 0 0; margin: 0; }
.flash-wrap .container { padding: 0 16px; }
.flash-wrap:empty { display: none; }
.flash { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: .6rem; border: 1px solid transparent; }
.flash-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* =========================================================
   MAIN SECTIONS
   ========================================================= */
.site-main { min-height: 60vh; }
.section { padding: 4rem 0; }
.section-soft { background: #fff !important; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    margin-bottom: .25rem;
    line-height: 1.2;
}
.section-sub { color: var(--muted); font-size: .95rem; margin: 0; }
.section-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 600;
    transition: gap .2s ease;
}
.section-link:hover { text-decoration: none; gap: .6rem; }

.page-title { font-size: 1.8rem; margin-bottom: 1.2rem; }

/* =========================================================
   FULL-BLEED
   ========================================================= */
.full-bleed {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* =========================================================
   HERO — dark green, image background
   ========================================================= */
.hero-full {
    position: relative;
    background: var(--bg-hero);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 4.5rem 0 0;
}

.hero-dark {
    position: relative;
    background: var(--hero-green-dark);
    padding: 6rem 0 0;
    overflow: hidden;
    border-bottom: none;
    min-height: 620px;
    /*display: flex;*/
    flex-direction: column;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(6, 46, 34, 0.95) 0%,
        rgba(6, 46, 34, 0.88) 35%,
        rgba(6, 46, 34, 0.55) 65%,
        rgba(6, 46, 34, 0.15) 100%
    );
}

.hero-dark .hero-inner {
    position: relative;
    z-index: 2;
    display: block;
    padding-bottom: 5.5rem;
    padding-top: 1rem;
}

.hero-dark .hero-copy {
    max-width: 620px;
    color: #fff;
    text-align: left;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hero-green-soft);
    padding-bottom: 1.25rem;
    position: relative;
}
.hero-eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: .75rem;
    width: 48px;
    height: 2px;
    background: var(--hero-green-soft);
    opacity: .6;
}
.hero-eyebrow svg { flex-shrink: 0; }

.hero-dark .hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.035em;
    color: #fff;
    margin: 0 0 1.35rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero-dark .hero-title-accent { color: var(--hero-green-soft); }

.hero-dark .hero-subtitle {
    color: rgba(255, 255, 255, .82);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 540px;
    text-align: left;
}

.hero-dark .hero-ctas {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}
.hero-dark .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.7rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .98rem;
    background: var(--hero-green-mid);
    border: 1px solid var(--hero-green-mid);
    color: #fff;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.hero-dark .hero-cta:hover {
    background: var(--hero-green-mid-h);
    border-color: var(--hero-green-mid-h);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    text-decoration: none;
    color: #fff;
}
.hero-dark .hero-cta svg { transition: transform .2s ease; }
.hero-dark .hero-cta:hover svg { transform: translateX(4px); }

.hero-dark .hero-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.7rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .98rem;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.hero-dark .hero-cta-outline:hover {
    background: rgba(255, 255, 255, .08);
    border-color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}
.hero-dark .hero-cta-outline svg { transition: transform .2s ease; }
.hero-dark .hero-cta-outline:hover svg { transform: translateX(4px); }

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.6rem 16px;
}
.trust-item { display: flex; align-items: center; gap: .9rem; padding: .35rem 0; }
.trust-item + .trust-item { border-left: 1px solid var(--border); padding-left: 1.6rem; }
.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.trust-item strong { display: block; font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.trust-item span { font-size: .82rem; color: var(--muted); line-height: 1.3; }

/* Trust strip on dark hero */
.trust-strip-on-dark {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, .22);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: none;
    backdrop-filter: saturate(140%) blur(6px);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
}
.trust-strip-on-dark .trust-grid {
    padding: 1.5rem 16px;
}
.trust-strip-on-dark .trust-item { color: #fff; }
.trust-strip-on-dark .trust-item + .trust-item {
    border-left: 1px solid rgba(255, 255, 255, .12);
    padding-left: 1.6rem;
}
.trust-strip-on-dark .trust-icon {
    background: rgba(134, 239, 172, .12);
    color: var(--hero-green-soft);
}
.trust-strip-on-dark .trust-item strong { color: #fff; }
.trust-strip-on-dark .trust-item span { color: rgba(255, 255, 255, .72); }

/* =========================================================
   CATEGORY CARDS
   ========================================================= */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.8rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    transition: border-color .2s ease, transform .15s ease;
}
.category-card:hover { border-color: var(--primary); transform: translateY(-3px); text-decoration: none; }
.category-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: .9rem;
    transition: transform .25s ease;
}
.category-card:hover .category-thumb { transform: scale(1.08); }
.category-name { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.category-count { color: var(--muted); font-size: .82rem; }

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.product-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.product-card:hover { box-shadow: var(--shadow); }
.product-thumb-wrap { position: relative; display: block; }
.product-thumb { display: block; aspect-ratio: 1/1; background: var(--bg-soft); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
                     font-size: 3.5rem; font-weight: 700; color: #c7d2fe; background: var(--primary-soft); }
.thumb-placeholder.large { aspect-ratio: 1/1; height: auto; font-size: 6rem; border-radius: var(--radius); }
.badge-sale { position: absolute; top: 10px; right: 10px; background: var(--danger); color: #fff; font-size: .75rem;
              padding: .2rem .55rem; border-radius: 20px; }
.product-card-body { padding: .9rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-title { font-weight: 600; color: var(--text); }
.product-price s { color: var(--muted); margin-right: .4rem; }
.add-cart-form { margin-top: auto; }

.wish-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
    z-index: 3;
}
.wish-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .95);
    color: var(--muted);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: background .2s ease, color .2s ease, transform .15s ease;
}
.wish-toggle button:hover { color: var(--danger); transform: scale(1.08); }
.wish-toggle button.active { color: var(--danger); }

/* =========================================================
   PROMO BAND
   ========================================================= */
.promo-band {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0;
    margin-top: 4rem;
}
.promo-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.promo-copy h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .4rem;
}
.promo-accent { color: #fbbf24; }
.promo-copy p { color: rgba(255, 255, 255, .85); font-size: .95rem; margin: 0; }
.promo-form {
    display: flex;
    gap: .5rem;
    background: rgba(255, 255, 255, .12);
    padding: .4rem;
    border-radius: 12px;
}
.promo-form input {
    flex: 1;
    padding: .8rem 1rem;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: .95rem;
}
.promo-form input:focus { outline: 2px solid #fff; }
.promo-form .btn { border-radius: 8px; font-weight: 600; padding: .8rem 1.3rem; white-space: nowrap; }

/* =========================================================
   OTHER SECTIONS
   ========================================================= */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; gap: 1rem; flex-wrap: wrap; }
.sort-form { display: flex; align-items: center; gap: .5rem; }
.sort-form select, .search-page-form input { padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); }
.pagination { display: flex; gap: .4rem; justify-content: center; margin: 2rem 0 1rem; flex-wrap: wrap; }
.pagination .page { padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
.pagination .page.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.breadcrumb { color: var(--muted); margin-bottom: 1.2rem; font-size: .92rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.breadcrumb a { color: var(--muted); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb .sep { color: #cbd5e1; }
.breadcrumb .current { color: var(--text); font-weight: 500; }
.empty-state { text-align: center; color: var(--muted); padding: 3rem 1rem; border: 1px dashed var(--border); border-radius: var(--radius); }
.search-page-form { display: flex; gap: .5rem; margin-bottom: 1.4rem; max-width: 540px; }
.search-page-form input { flex: 1; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .7rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
.table th { background: var(--bg-soft); font-size: .88rem; }
.qty-input { width: 68px; padding: .35rem; border: 1px solid var(--border); border-radius: 6px; }
.cart-table tfoot td { border-top: 2px solid var(--border); }
.cart-actions { display: flex; gap: .8rem; justify-content: flex-end; margin-top: 1.2rem; }
.status-badge { display: inline-block; padding: .15rem .6rem; border-radius: 20px; font-size: .78rem; font-weight: 600; text-transform: capitalize; }
.status-pending    { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped    { background: #e0e7ff; color: #3730a3; }
.status-delivered  { background: #dcfce7; color: #166534; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.status-active     { background: #dcfce7; color: #166534; }

/* ---------- Base Forms ---------- */
.form { max-width: 640px; }
.form-row { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { font-weight: 600; font-size: .92rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number],
.form input[type=tel], .form input[type=file], .form select, .form textarea {
    padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #c7d2fe; border-color: var(--primary); }
.checkbox-label { display: flex; align-items: center; gap: .5rem; font-weight: 400 !important; }

/* =========================================================
   AUTH PAGES
   ========================================================= */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px - 320px);
    padding: 3rem 1rem;
    background: #fff;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 16px;
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 1.2rem;
}
.auth-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin-bottom: .35rem; }
.auth-subtitle { color: var(--muted); font-size: .92rem; line-height: 1.5; }

.auth-form { display: flex; flex-direction: column; gap: 1.15rem; }
.auth-field { display: flex; flex-direction: column; gap: .45rem; }
.auth-field label { font-size: .85rem; font-weight: 600; color: var(--text); letter-spacing: .01em; }

.auth-field > input[type=text],
.auth-field > input[type=email],
.auth-field > input[type=password],
.auth-field > input[type=tel],
.auth-field > input[type=number] {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-field > input::placeholder { color: #9ca3af; }
.auth-field > input:hover { border-color: #d1d5db; }
.auth-field > input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .10);
}

.auth-field textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .10);
}

.auth-field select {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .10);
}

.label-row { display: flex; justify-content: space-between; align-items: center; }
.forgot-link { font-size: .82rem; color: var(--primary); font-weight: 500; }
.forgot-link:hover { text-decoration: underline; }

/* ---------- Input with icon ---------- */
.input-wrap { position: relative; display: flex; align-items: center; width: 100%; }
.input-icon {
    position: absolute;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    pointer-events: none;
    transition: color .2s ease;
    z-index: 2;
}
.input-wrap input {
    width: 100%;
    padding: .75rem 1rem .75rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.input-wrap input::placeholder { color: #9ca3af; }
.input-wrap input:hover { border-color: #d1d5db; }
.input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .10);
}
.input-wrap input:focus ~ .input-icon,
.input-wrap input:focus + .input-icon { color: var(--primary); }

.input-wrap:has(.password-toggle) input { padding-right: 2.75rem; }

.password-toggle {
    position: absolute;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    z-index: 2;
}
.password-toggle:hover { background: var(--bg-soft); color: var(--text); }
.password-toggle svg { pointer-events: none; display: block; }

.auth-remember {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    font-weight: 400;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    margin-top: -.25rem;
}
.auth-remember input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.auth-remember a { color: var(--primary); font-weight: 500; }
.auth-remember a:hover { text-decoration: underline; }

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 10px;
    transition: background .2s ease, transform .15s ease;
}
.auth-submit:hover { transform: translateY(-1px); }
.auth-submit svg { transition: transform .2s ease; }
.auth-submit:hover svg { transform: translateX(3px); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 1.75rem 0 1.4rem;
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-socials { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem .5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: .85rem;
    font-weight: 500;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.social-btn:hover { border-color: #d1d5db; background: var(--bg-soft); text-decoration: none; transform: translateY(-1px); }
.social-btn svg { flex-shrink: 0; }

.auth-footer { text-align: center; margin-top: 1.75rem; font-size: .9rem; color: var(--muted); }
.auth-footer a { color: var(--primary); font-weight: 600; margin-left: .25rem; }
.auth-footer a:hover { text-decoration: underline; }

.auth-card-wide { max-width: 460px; }
.pwd-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .55rem; }
.pwd-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pwd-bar span { display: block; height: 100%; width: 0; background: var(--border); border-radius: 2px; transition: width .25s ease, background .25s ease; }
.pwd-strength[data-level="1"] .pwd-bar:nth-child(-n+1) span { width: 100%; background: #ef4444; }
.pwd-strength[data-level="2"] .pwd-bar:nth-child(-n+2) span { width: 100%; background: #f59e0b; }
.pwd-strength[data-level="3"] .pwd-bar:nth-child(-n+3) span { width: 100%; background: #3b82f6; }
.pwd-strength[data-level="4"] .pwd-bar:nth-child(-n+4) span { width: 100%; background: #16a34a; }
.pwd-hint { font-size: .78rem; color: var(--muted); margin-top: .45rem; line-height: 1.4; }
.pwd-hint.pwd-match.ok   { color: var(--success); }
.pwd-hint.pwd-match.bad  { color: var(--danger); }

/* =========================================================
   CHECKOUT
   ========================================================= */
.checkout-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.order-summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; background: var(--bg-soft); }
.summary-total td { border-top: 2px solid var(--border); }

.payment-methods { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.4rem; }
.payment-option {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.payment-option:hover { border-color: #c7d2fe; }
.payment-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.payment-option > input[type=radio] { margin-top: .35rem; accent-color: var(--primary); flex-shrink: 0; }
.payment-option > span { display: block; line-height: 1.5; }
.payment-option strong { display: block; color: var(--text); font-weight: 700; margin-bottom: .15rem; }

.payment-details {
    margin-top: .65rem;
    padding: .75rem .9rem;
    border-radius: 10px;
    background: #fff;
    border: 1px dashed var(--border);
    font-size: .85rem;
    line-height: 1.6;
}
.payment-details p { margin: 0; color: var(--muted); }
.payment-details p + p { margin-top: .2rem; }
.payment-details p strong { color: var(--text); font-weight: 600; margin-right: .25rem; }

.addr-picker {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    background: var(--primary-soft);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
}
.addr-picker label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .5rem;
}
.addr-picker-select { position: relative; }
.addr-picker-select select {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: .93rem;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.addr-picker-select select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .10);
}

.save-address-check {
    padding: .75rem .9rem;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
    font-size: .9rem !important;
}

/* =========================================================
   PRODUCT DETAIL PAGE
   ========================================================= */
.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 1.5rem 0 3rem;
    align-items: start;
}

.pd-gallery {
    position: relative;
    position: sticky;
    top: 88px;
}
.pd-gallery-main {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 1 / 1;
}
.pd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-gallery-main .thumb-placeholder {
    aspect-ratio: 1/1;
    height: 100%;
    font-size: 8rem;
    border-radius: 0;
}
.pd-badge-sale {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--danger);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    padding: .35rem .75rem;
    border-radius: 999px;
    letter-spacing: .02em;
}

.pd-info { display: flex; flex-direction: column; gap: 1rem; }

.pd-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
}

.pd-meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--muted);
}
.pd-rating { display: inline-flex; align-items: center; gap: .35rem; }
.pd-rating .stars { display: inline-flex; gap: 1px; color: #f59e0b; }
.pd-rating .rating-text { color: var(--muted); font-size: .82rem; }
.pd-sep { color: var(--border); }
.pd-sku { font-size: .82rem; }

.pd-price {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pd-price s { color: var(--muted); font-size: 1.05rem; font-weight: 500; }
.pd-price strong { font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.pd-save {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 999px;
    letter-spacing: .02em;
}

.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .92rem;
    font-weight: 600;
    margin: 0;
}
.pd-stock.in-stock { color: var(--success); }
.pd-stock.out-stock { color: var(--danger); }

.pd-short {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.65;
    margin: 0;
}

.pd-buy-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}
.pd-qty {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.pd-qty label {
    font-weight: 600;
    font-size: .88rem;
    color: var(--text);
}
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.qty-stepper input {
    width: 56px;
    border: none;
    text-align: center;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    background: transparent;
    -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-stepper input:focus { outline: none; }
.qty-btn {
    width: 38px;
    border: none;
    background: #fff;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.qty-btn:hover { background: var(--primary-soft); color: var(--primary); }
.qty-btn:first-child { border-right: 1px solid var(--border); }
.qty-btn:last-child  { border-left: 1px solid var(--border); }

.pd-ctas {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: .6rem;
}
.pd-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
}
.pd-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .95rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    background: #111827;
    color: #fff;
    border-color: #111827;
}
.pd-buy-now:hover { background: #0b1220; color: #fff; text-decoration: none; }

.pd-out-notice {
    padding: 1.25rem;
    background: var(--bg-soft);
    border-radius: 12px;
    border: 1px dashed var(--border);
    text-align: center;
}
.pd-out-notice p { color: var(--muted); margin-bottom: 1rem; }

.pd-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--border);
    margin-top: .5rem;
}
.pd-trust-item {
    display: flex;
    align-items: center;
    gap: .7rem;
}
.pd-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.pd-trust-item strong {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.pd-trust-item span {
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.3;
}

/* =========================================================
   PRODUCT DETAIL TABS
   ========================================================= */
.pd-tabs-section {
    margin: 3rem 0;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}
.pd-tabs {
    display: flex;
    gap: .25rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.pd-tab {
    background: none;
    border: none;
    padding: .8rem 1.2rem;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    position: relative;
    transition: color .2s ease;
}
.pd-tab:hover { color: var(--text); }
.pd-tab.active { color: var(--primary); }
.pd-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--primary);
}

.pd-tab-panels { padding: 1.75rem 0; }
.pd-tab-panel { display: none; color: var(--text); font-size: .95rem; line-height: 1.75; }
.pd-tab-panel.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pd-specs-table {
    width: 100%;
    max-width: 640px;
    border-collapse: collapse;
    font-size: .92rem;
}
.pd-specs-table th,
.pd-specs-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.pd-specs-table th {
    width: 180px;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg-soft);
}

.pd-reviews-empty {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-page { padding: 1.5rem 0 3rem; }
.cart-page .page-title { margin-bottom: 1.75rem; }

.cart-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    border: 1px dashed var(--border);
    border-radius: 16px;
    background: var(--bg-soft);
    max-width: 520px;
    margin: 2rem auto;
}
.cart-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 1.25rem;
}
.cart-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: .4rem;
}
.cart-empty p { margin-bottom: 1.75rem; }
.cart-empty .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.cart-empty .btn svg { transition: transform .2s ease; }
.cart-empty .btn:hover svg { transform: translateX(4px); }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 88px 1fr 100px 130px 100px 32px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease;
}
.cart-item:hover { border-color: #d1d5db; }

.cart-item-thumb {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    flex-shrink: 0;
    text-decoration: none;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: #c7d2fe;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cart-item-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cart-item-title {
    font-weight: 600;
    color: var(--text);
    font-size: .98rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cart-item-title:hover { color: var(--primary); text-decoration: none; }
.cart-item-meta { color: var(--muted); font-size: .82rem; margin: 0; }
.cart-item-warn { color: var(--danger); font-size: .78rem; font-weight: 600; margin-top: .15rem; }

.cart-col-label {
    display: none;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: .15rem;
}

.cart-item-price,
.cart-item-qty,
.cart-item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.cart-item-price { font-size: .95rem; color: var(--muted); font-weight: 500; }
.cart-item-total strong { font-size: 1.02rem; color: var(--text); font-weight: 700; }

.cart-item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.cart-item-remove:hover { background: #fef2f2; color: var(--danger); }

.cart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.cart-continue {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: .92rem;
}
.cart-continue:hover { text-decoration: none; gap: .6rem; }
.cart-continue svg { transition: transform .2s ease; }
.cart-continue:hover svg { transform: translateX(-3px); }

.cart-summary {
    position: sticky;
    top: 88px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}
.cart-summary-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.cart-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.cart-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .93rem;
    color: var(--muted);
}
.cart-summary-list li strong { color: var(--text); font-weight: 600; }
.cart-free { color: var(--success); font-weight: 600; }

.cart-promo {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}
.cart-promo label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .5rem;
}
.cart-promo-row {
    display: flex;
    gap: .5rem;
}
.cart-promo-row input {
    flex: 1;
    padding: .6rem .8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    font-size: .9rem;
    background: #fff;
    transition: border-color .2s ease;
}
.cart-promo-row input:focus { outline: none; border-color: var(--primary); }
.cart-promo-row .btn { border-radius: 10px; }

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: .75rem 0 1.25rem;
    font-size: .95rem;
    color: var(--muted);
}
.cart-summary-total strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
}

.cart-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
}
.cart-checkout svg { transition: transform .2s ease; }
.cart-checkout:hover svg { transform: translateX(4px); }

.cart-trust {
    list-style: none;
    padding: 1.25rem 0 0;
    margin: 1.25rem 0 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.cart-trust li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    color: var(--muted);
}
.cart-trust svg { color: var(--success); flex-shrink: 0; }

/* =========================================================
   ACCOUNT DASHBOARD
   ========================================================= */
.account-page { padding: 1.5rem 0 3rem; }

.account-welcome {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 2rem;
}
.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    flex-shrink: 0;
}
.account-welcome-line {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
    line-height: 1.2;
}
.account-welcome-name {
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    margin: .15rem 0 .3rem;
    line-height: 1.15;
}
.account-welcome-sub {
    color: var(--muted);
    font-size: .92rem;
    margin: 0;
}

.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.account-sidebar { position: sticky; top: 88px; }
.account-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .5rem;
}
.account-nav-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem .9rem;
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    font-size: .92rem;
    transition: background .15s ease, color .15s ease;
    text-decoration: none;
}
.account-nav-item:hover {
    background: var(--bg-soft);
    color: var(--primary);
    text-decoration: none;
}
.account-nav-item.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}
.account-nav-item.active svg { color: var(--primary); }
.account-nav-item svg { flex-shrink: 0; color: var(--muted); transition: color .15s ease; }
.account-nav-item:hover svg { color: var(--primary); }
.account-nav-item.danger-link { color: var(--danger); }
.account-nav-item.danger-link svg { color: var(--danger); }
.account-nav-item.danger-link:hover { background: #fef2f2; color: var(--danger); }

.account-main { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.account-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color .2s ease, transform .15s ease;
}
.account-stat:hover { border-color: var(--primary); transform: translateY(-2px); }
.account-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.account-stat-body { display: flex; flex-direction: column; min-width: 0; }
.account-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.15;
}
.account-stat-label {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.3;
}

.account-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem;
}
.account-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.account-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text);
    margin: 0;
}
.account-panel-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    transition: gap .2s ease;
}
.account-panel-link:hover { text-decoration: none; gap: .5rem; }

.account-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.account-empty {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
}
.account-empty.small { padding: 1.5rem 1rem; }
.account-empty p { color: var(--muted); margin-bottom: 1rem; font-size: .92rem; }
.account-empty .btn { display: inline-flex; align-items: center; gap: .4rem; }

.account-table-wrap { overflow-x: auto; }
.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.account-table thead th {
    text-align: left;
    padding: .65rem .75rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 700;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.account-table thead th:first-child { border-top-left-radius: 10px; }
.account-table thead th:last-child  { border-top-right-radius: 10px; }
.account-table tbody td {
    padding: .9rem .75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.account-table tbody tr:last-child td { border-bottom: none; }
.account-table tbody tr:hover td { background: var(--bg-soft); }
.account-view-link {
    color: var(--primary);
    font-weight: 600;
    font-size: .88rem;
}
.account-view-link:hover { text-decoration: underline; }

.account-address {
    position: relative;
    padding: 1.1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.account-address-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .25rem .6rem;
    border-radius: 999px;
}
.account-address-line {
    margin: 0;
    font-size: .9rem;
    color: var(--text);
    line-height: 1.5;
}
.account-address-line:first-of-type strong { font-weight: 700; }
.account-address-actions {
    display: flex;
    gap: 1rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px dashed var(--border);
}
.account-text-link {
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
}
.account-text-link:hover { text-decoration: underline; }

.account-wishlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.account-wishlist-item {
    display: grid;
    grid-template-columns: 56px 1fr 20px;
    gap: .85rem;
    align-items: center;
}
.account-wishlist-thumb {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    text-decoration: none;
}
.account-wishlist-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-wishlist-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    font-size: 1.25rem;
    color: #c7d2fe;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.account-wishlist-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.account-wishlist-title {
    font-weight: 600;
    color: var(--text);
    font-size: .9rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.account-wishlist-title:hover { color: var(--primary); text-decoration: none; }
.account-wishlist-price {
    font-size: .85rem;
    color: var(--muted);
    font-weight: 500;
}
.account-wishlist-heart { color: var(--danger); flex-shrink: 0; }

/* =========================================================
   ORDERS PAGE
   ========================================================= */
.orders-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.orders-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    margin: 0 0 .15rem;
}
.orders-sub {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
}
.orders-head .btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.orders-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 1px dashed var(--border);
    border-radius: 16px;
    background: var(--bg-soft);
}
.orders-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 1.25rem;
}
.orders-empty h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    margin-bottom: .4rem;
}
.orders-empty p {
    color: var(--muted);
    margin-bottom: 1.75rem;
}
.orders-empty .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.orders-empty .btn svg { transition: transform .2s ease; }
.orders-empty .btn:hover svg { transform: translateX(4px); }

.orders-tabs {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    margin-bottom: 1.25rem;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
}
.orders-tabs::-webkit-scrollbar { display: none; }
.orders-tab {
    background: none;
    border: none;
    padding: .6rem .9rem;
    border-radius: 8px;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
    flex-shrink: 0;
}
.orders-tab:hover { background: var(--bg-soft); color: var(--text); }
.orders-tab.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease, transform .15s ease;
}
.order-card:hover { border-color: #d1d5db; }

.order-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.order-card-id {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.order-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 700;
}
.order-card-id strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .02em;
}
.order-card-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.order-meta-item {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.order-meta-item span:not(.order-label),
.order-meta-item strong {
    font-size: .88rem;
    color: var(--text);
    font-weight: 500;
}
.order-meta-item strong { font-weight: 700; }

.order-card-status {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    font-size: .78rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: .01em;
    white-space: nowrap;
}
.order-card-status svg { flex-shrink: 0; }

.order-card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}
.order-card-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.order-card-info { min-width: 0; }
.order-card-desc {
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 .15rem;
}
.order-card-hint {
    font-size: .82rem;
    color: var(--muted);
    margin: 0;
}

.order-card-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #fff;
}
.order-view-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    border-radius: 8px;
}
.order-view-btn svg { transition: transform .2s ease; }
.order-view-btn:hover svg { transform: translateX(3px); }

.orders-filter-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--muted);
    font-size: .92rem;
}

/* =========================================================
   ADDRESSES
   ========================================================= */
.inline-form { display: inline; margin: 0; }

.form-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    padding-top: .5rem;
}

.addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.addr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, transform .15s ease;
}
.addr-card:hover { border-color: #d1d5db; }
.addr-card.is-default {
    border-color: var(--primary);
    background: linear-gradient(180deg, #fbfaff 0%, #fff 40%);
}
.addr-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .25rem .6rem;
    border-radius: 999px;
}
.addr-head {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.addr-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.addr-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}
.addr-label {
    font-size: .78rem;
    color: var(--muted);
    margin: .1rem 0 0;
}
.addr-body {
    font-size: .9rem;
    color: var(--text);
    line-height: 1.55;
    border-top: 1px dashed var(--border);
    padding-top: 1rem;
}
.addr-body p { margin: 0; }
.addr-phone {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .6rem !important;
    color: var(--muted);
    font-size: .85rem;
}
.addr-foot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: .85rem;
    border-top: 1px dashed var(--border);
    margin-top: auto;
}
.addr-action {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
}
.addr-action:hover { text-decoration: underline; }
.addr-action.danger { color: var(--danger); }

/* =========================================================
   WISHLIST PAGE
   ========================================================= */
.wish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}
.wish-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.wish-card:hover {
    border-color: #d1d5db;
    box-shadow: var(--shadow);
}
.wish-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    background: var(--bg-soft);
    overflow: hidden;
}
.wish-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.wish-card:hover .wish-thumb img { transform: scale(1.05); }
.wish-thumb .badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
}
.wish-body {
    padding: .9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}
.wish-title {
    font-weight: 600;
    color: var(--text);
    font-size: .95rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.wish-title:hover { color: var(--primary); text-decoration: none; }
.wish-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    font-size: .95rem;
    color: var(--text);
    margin-top: auto;
}
.wish-price s { color: var(--muted); font-size: .85rem; }
.wish-price strong { font-weight: 700; }
.wish-foot {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem 1rem;
    border-top: 1px solid var(--border);
}
.wish-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.wish-remove:hover {
    background: #fef2f2;
    color: var(--danger);
    border-color: #fecaca;
}

/* =========================================================
   SETTINGS — Danger zone
   ========================================================= */
.danger-panel {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}
.danger-panel .account-panel-title { color: var(--danger); }
.danger-text {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    max-width: 560px;
}

/* =========================================================
   SUCCESS PAGE
   ========================================================= */
.success-page { max-width: 640px; margin: 3rem auto; text-align: center; }
.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

/* =========================================================
   ERROR PAGES — 404, 403, 500
   ========================================================= */
.error-page {
    max-width: 560px;
    margin: 4rem auto 6rem;
    padding: 0 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    border-radius: 28px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 1.75rem;
    position: relative;
}
.error-icon::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 36px;
    border: 1px dashed rgba(79, 70, 229, .25);
    z-index: -1;
}
.error-icon svg { display: block; }

.error-icon-warn { background: #fef3c7; color: #b45309; }
.error-icon-warn::after { border-color: rgba(217, 119, 6, .28); }

.error-icon-danger { background: #fee2e2; color: #b91c1c; }
.error-icon-danger::after { border-color: rgba(220, 38, 38, .28); }

.error-code {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.error-title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 .75rem;
}

.error-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 2rem;
    max-width: 440px;
}

.error-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}
.error-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: transform .15s ease;
}
.error-actions .btn:hover { transform: translateY(-2px); text-decoration: none; }

.error-help { font-size: .88rem; color: var(--muted); margin: 0; }
.error-help a { color: var(--primary); font-weight: 600; }
.error-help a:hover { text-decoration: underline; }

/* =========================================================
   PAGE HERO (About / Contact)
   ========================================================= */
.page-hero {
    background: var(--bg-hero);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0;
    text-align: center;
}
.page-hero .container { max-width: 760px; }
.page-hero-badge {
    display: inline-block;
    padding: .35rem .85rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.page-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 .85rem;
}
.page-hero-sub {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.about-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .75rem;
}
.about-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
    color: var(--text);
    margin: 0 0 1rem;
}
.about-copy p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}
.about-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.about-visual-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    font-size: .9rem;
    font-weight: 600;
}
.about-visual-tile svg { color: var(--primary); }

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.vm-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
}
.vm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 1rem;
}
.vm-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text);
    margin: 0 0 .5rem;
}
.vm-card p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.7;
    margin: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.value-card {
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, transform .15s ease;
}
.value-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.value-card h4 {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--primary);
    margin: 0 0 .35rem;
}
.value-card p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
    margin: 0;
}

.biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.biz-card {
    padding: 1.6rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s ease, transform .15s ease;
}
.biz-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.biz-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 1rem;
}
.biz-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .4rem;
}
.biz-card p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
}

.md-message {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    padding: 2.5rem 2rem 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
}
.md-quote-mark {
    position: absolute;
    top: -28px;
    left: 2rem;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    opacity: .15;
    font-family: Georgia, serif;
}
.md-quote {
    margin: 0;
    padding: 0;
    border: 0;
}
.md-quote p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}
.md-quote p:first-child {
    font-size: 1.15rem;
    font-weight: 500;
}
.md-quote em { color: var(--primary); font-style: normal; font-weight: 600; }
.md-signature {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.md-signature strong { color: var(--text); font-size: .95rem; font-weight: 700; }
.md-signature span { color: var(--muted); font-size: .85rem; }

.about-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2.5rem;
    background: var(--primary);
    border-radius: 20px;
    color: #fff;
}
.about-cta-band h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 .35rem;
}
.about-cta-band p { color: rgba(255, 255, 255, .85); margin: 0; font-size: .95rem; }
.about-cta-band-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.about-cta-band .btn {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}
.about-cta-band .btn:hover { background: rgba(255, 255, 255, .2); }
.about-cta-band .btn-primary { background: #fff; border-color: #fff; color: var(--primary); }
.about-cta-band .btn-primary:hover { background: #f3f4f6; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-form-wrap,
.contact-info { min-width: 0; }

.contact-heading {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    margin: 0 0 .5rem;
}
.contact-sub {
    color: var(--muted);
    font-size: .95rem;
    margin: 0 0 1.75rem;
    line-height: 1.65;
}

.contact-form textarea {
    font-family: inherit;
    resize: vertical;
    min-height: 130px;
}
.contact-form select { cursor: pointer; }

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-item {
    display: flex;
    gap: .9rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}
.contact-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.contact-item strong {
    display: block;
    font-size: .85rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: .15rem;
}
.contact-item a,
.contact-item span {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}
.contact-item a:hover { color: var(--primary); }

.contact-social p {
    font-size: .85rem;
    color: var(--muted);
    margin: 0 0 .65rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
}

.contact-map {
    border: 1px dashed var(--border);
    border-radius: 20px;
    background: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--muted);
}
.contact-map-inner svg { color: var(--primary); margin: 0 auto .75rem; }
.contact-map-inner h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .35rem;
}
.contact-map-inner p { margin: 0; font-size: .92rem; }
.contact-map-hint {
    margin-top: .65rem !important;
    font-size: .78rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.faq-grid {
    display: grid;
    gap: .75rem;
    max-width: 820px;
}
.faq {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease;
}
.faq[open] { border-color: var(--primary); }
.faq summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    transition: transform .25s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p {
    padding: 0 1.25rem 1.1rem;
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 4rem; border-top: none; }
.site-footer .container { padding: 0 16px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
    gap: 2.5rem;
    padding: 3.5rem 0 2.5rem;
}
.footer-col h4 {
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.footer-brand .footer-logo { display: inline-flex; align-items: center; margin-bottom: 1rem; text-decoration: none; }
.footer-logo-img { height: 38px; width: auto; max-width: 160px; object-fit: contain; opacity: .95; border-radius: 8px; }
.footer-tagline { color: #94a3b8; font-size: .9rem; line-height: 1.6; margin-bottom: 1.4rem; max-width: 280px; }

.footer-socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #cbd5e1;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-icon:hover { background: var(--primary); color: #fff; transform: translateY(-2px); text-decoration: none; }

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: #94a3b8; font-size: .9rem; transition: color .2s ease, padding-left .2s ease; display: inline-block; }
.footer-links a:hover { color: #fff; text-decoration: none; padding-left: 4px; }

.newsletter-text { color: #94a3b8; font-size: .9rem; margin-bottom: 1rem; line-height: 1.5; }
.newsletter-form { display: flex; flex-direction: column; gap: .5rem; }
.newsletter-form input[type=email] {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid #1e293b;
    background: #1e293b;
    color: #fff;
    border-radius: 8px;
    font: inherit;
    font-size: .9rem;
    transition: border-color .2s ease, background .2s ease;
}
.newsletter-form input[type=email]::placeholder { color: #64748b; }
.newsletter-form input[type=email]:focus { outline: none; border-color: var(--primary); background: #0f172a; }
.newsletter-form .btn { border-radius: 8px; font-weight: 600; padding: .65rem 1rem; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.2rem;
    color: #94a3b8;
    font-size: .85rem;
}
.footer-bottom-left p { margin: 0; }
.footer-bottom-center { display: flex; justify-content: center; }
.footer-bottom-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.footer-bottom-right a { color: #94a3b8; transition: color .2s ease; }
.footer-bottom-right a:hover { color: #fff; text-decoration: none; }
.footer-bottom-right .dot { color: #334155; }

.payment-badges { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    overflow: hidden;
}
.pay-badge svg { display: block; }
.pay-badge-secure {
    background: rgba(255, 255, 255, .08);
    color: #cbd5e1;
    padding: 4px 8px;
    gap: 4px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.pay-badge-secure svg { color: #10b981; }

/* ---------- Mobile Money & COD badges ---------- */
.pay-badge-momo,
.pay-badge-cod {
    background: #fff;
    padding: 3px;
    min-width: 40px;
    height: 26px;
}

.pay-badge-text {
    background: rgba(255, 255, 255, .08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: none;
}

/* =========================================================
   PRODUCT PAGE — variant selector
   ========================================================= */
.pd-variants { margin: 1.1rem 0 .9rem; }

.pd-variants-label {
    font-size: .82rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 .6rem;
}

.pd-variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .55rem;
}

.pd-variant-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    padding: .7rem .8rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: #0f172a;
    transition: border-color .15s ease, background .15s ease, transform .1s ease, box-shadow .15s ease;
}

.pd-variant-card:hover:not(:disabled) {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.pd-variant-card.is-selected {
    border-color: var(--primary);
    background: var(--primary-soft, #eef2ff);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.pd-variant-card.is-out,
.pd-variant-card:disabled {
    opacity: .55;
    cursor: not-allowed;
    background: #f8fafc;
}

.pd-variant-card:disabled { filter: grayscale(0.3); }

.pd-variant-label { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.pd-variant-price { font-size: .92rem; font-weight: 700; color: var(--primary); }
.pd-variant-perkg { font-size: .74rem; color: #64748b; font-weight: 600; }
.pd-variant-stock {
    font-size: .7rem;
    font-weight: 600;
    margin-top: .15rem;
    letter-spacing: .01em;
}
.pd-variant-stock.in  { color: #16a34a; }
.pd-variant-stock.out { color: #dc2626; }

.pd-line-total {
    display: block;
    margin-top: .35rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--primary);
    min-height: 1.1em;
}

.pd-per-kg {
    font-size: .82rem;
    color: #64748b;
    font-weight: 600;
    margin-left: .4rem;
}

/* =========================================================
   CART — variant labels
   ========================================================= */
.cart-variant-label {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 4px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
    font-size: .78rem;
}
.cart-variant-weight {
    color: #94a3b8;
    font-size: .78rem;
    margin-left: .25rem;
}
.cart-muted { color: #94a3b8; font-size: .85rem; }

/* =========================================================
   CHECKOUT — shipping method selector
   ========================================================= */
.shipping-methods-wrap {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.5rem;
}
.shipping-method-option {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: .85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.shipping-method-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.shipping-method-option input[type="radio"] {
    margin: 0;
    accent-color: var(--primary);
}
.shipping-method-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft, #eef2ff);
}
.sm-body {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}
.sm-body strong { font-size: .92rem; color: #0f172a; }
.sm-body small { font-size: .82rem; color: #64748b; }
.sm-eta { color: #16a34a !important; }
.sm-cost {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}
.shipping-empty,
.shipping-loading {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    padding: .9rem 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: .88rem;
}
.shipping-empty p,
.shipping-loading { margin: 0; }

/* =========================================================
   ORDERS — variant labels in summaries
   ========================================================= */
.order-line-variant {
    color: #64748b;
    font-weight: 500;
    font-size: .82rem;
    margin-left: .25rem;
}
.order-line-qty {
    color: #94a3b8;
    font-size: .82rem;
    margin-left: .35rem;
}

/* =========================================================
   ORDER — shipping method chips and meta
   ========================================================= */
.order-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}
.order-chip svg { color: #94a3b8; flex-shrink: 0; }

.order-totals-sub {
    display: block;
    font-size: .76rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: .1rem;
}

.order-item-variant {
    display: inline-block;
    margin-top: .15rem;
    font-size: .78rem;
    color: #4338ca;
    font-weight: 600;
    background: #eef2ff;
    padding: .1rem .45rem;
    border-radius: 4px;
}

.order-meta-method {
    margin-top: .85rem;
    padding-top: .75rem;
    border-top: 1px dashed rgba(148, 163, 184, .4);
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.order-meta-method-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    font-weight: 700;
}
.order-meta-method strong {
    font-size: .9rem;
    color: #0f172a;
    font-weight: 700;
}
.order-meta-method-eta {
    font-size: .8rem;
    color: #16a34a;
    font-weight: 600;
}
.order-card-meta { flex-wrap: wrap; gap: .75rem 1.1rem; }

/* =========================================================
   ORDER NUMBER + TRACKING DISPLAY
   ========================================================= */
.order-card-number {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .88rem;
    color: #0f172a;
    letter-spacing: -.01em;
    word-break: break-all;
}

.order-card-tracking {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .25rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.order-chip-tracking { background: #eef2ff; color: #4338ca; }
.order-chip-tracking strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    letter-spacing: .03em;
}

.success-tracking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem;
    font-size: .9rem;
}
.success-tracking-label { color: #64748b; font-weight: 500; }
.success-tracking code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: #eef2ff;
    color: #4338ca;
    padding: .2rem .6rem;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: .85rem;
}

/* =========================================================
   ORDER DETAIL PAGE
   ========================================================= */
.order-status-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.order-hint {
    color: var(--muted);
    font-size: .92rem;
    margin: 0 0 1.5rem;
    padding-left: .15rem;
}

.order-pay-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    border-radius: 16px;
}
.order-pay-copy { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.order-pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    color: #d97706;
    flex-shrink: 0;
    border: 1px solid #fed7aa;
}
.order-pay-copy strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: .15rem;
}
.order-pay-copy span {
    display: block;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.4;
}
.order-pay-btn { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.order-pay-btn svg { transition: transform .2s ease; }
.order-pay-btn:hover svg { transform: translateX(4px); }

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.order-meta-card {
    padding: 1.25rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}
.order-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: .85rem;
}
.order-meta-card h4 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 .65rem;
}
.order-meta-card p {
    font-size: .92rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}
.order-meta-card p strong { font-weight: 700; }
.order-meta-card p a { color: var(--primary); }
.order-meta-card p a:hover { text-decoration: underline; }

.order-items-panel { padding: 1.4rem; }
.order-items-count { font-size: .85rem; color: var(--muted); font-weight: 500; }

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.order-item {
    display: grid;
    grid-template-columns: 72px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease;
}
.order-item:hover { border-color: #d1d5db; }

.order-item-thumb {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.order-item-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    font-weight: 700;
    color: #c7d2fe;
    background: var(--primary-soft);
}

.order-item-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.order-item-title {
    font-weight: 600;
    color: var(--text);
    font-size: .98rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.order-item-title:hover { color: var(--primary); text-decoration: none; }
.order-item-meta { font-size: .82rem; color: var(--muted); line-height: 1.3; }

.order-item-qty,
.order-item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .15rem;
    text-align: right;
}
.order-item-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.order-item-qty strong,
.order-item-total strong { font-size: .98rem; font-weight: 700; color: var(--text); }

.order-totals {
    margin-left: auto;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.order-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .93rem;
    color: var(--muted);
}
.order-totals-row strong { color: var(--text); font-weight: 700; }
.order-totals-grand {
    padding-top: .6rem;
    border-top: 1px solid var(--border);
    font-size: 1rem;
}
.order-totals-grand strong {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.order-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* =========================================================
   TRACK ORDER PAGE
   ========================================================= */
.track-head {
    text-align: center;
    margin: 0 auto 1.5rem;
    max-width: 620px;
}
.track-head .page-title { margin-bottom: .35rem; }
.track-head .page-sub { color: #64748b; font-size: .92rem; margin: 0; }

.track-form { max-width: 620px; margin: 0 auto 2rem; }

.track-input-wrap {
    display: flex;
    align-items: stretch;
    gap: .5rem;
    position: relative;
}

.track-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.track-input-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: .85rem 1rem .85rem 2.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font: inherit;
    font-size: .95rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: #fff;
    color: #0f172a;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.track-input-wrap input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.track-input-wrap .btn {
    padding: .85rem 1.4rem;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
}

.track-form-hint {
    margin: .5rem 0 0;
    font-size: .82rem;
    color: #94a3b8;
    text-align: center;
}

.track-error {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    max-width: 620px;
    margin: 0 auto;
    padding: 1rem 1.15rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
}
.track-error-icon { flex-shrink: 0; color: #dc2626; margin-top: .1rem; }
.track-error strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.track-error p { margin: 0; font-size: .88rem; line-height: 1.5; }

.track-status-card {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.4rem 1.6rem;
    margin: 0 auto 2rem;
    max-width: 900px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}
.track-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
}
.track-status-pending    .track-status-icon { background: #fef3c7; color: #b45309; }
.track-status-processing .track-status-icon { background: #e0e7ff; color: #4338ca; }
.track-status-shipped    .track-status-icon { background: #dbeafe; color: #0369a1; }
.track-status-delivered  .track-status-icon { background: #dcfce7; color: #15803d; }
.track-status-cancelled  .track-status-icon { background: #fee2e2; color: #b91c1c; }

.track-status-body { min-width: 0; }
.track-status-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    font-weight: 700;
}
.track-status-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
    margin: .1rem 0 .25rem;
}
.track-status-hint { margin: 0; font-size: .88rem; color: #64748b; }

.track-status-side {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    align-items: flex-end;
    flex-shrink: 0;
}
.track-ref {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .15rem;
}
.track-ref-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    font-weight: 700;
}
.track-ref-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
    background: #f1f5f9;
    color: #0f172a;
    padding: .25rem .55rem;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: .03em;
}

.track-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
}
.track-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}
.track-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 88px;
    min-width: 0;
}

/* =========================================================
   ADMIN
   ========================================================= */
.admin-body { background: var(--bg-soft); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: #111827; color: #d1d5db; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-logo { font-size: 1.25rem; font-weight: 700; color: #fff; padding: 1.3rem 1.2rem; border-bottom: 1px solid #1f2937; }
.admin-nav { display: flex; flex-direction: column; padding: .8rem 0; flex: 1; }
.admin-nav a { color: #d1d5db; padding: .65rem 1.2rem; }
.admin-nav a:hover { background: #1f2937; color: #fff; text-decoration: none; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-sidebar-footer { border-top: 1px solid #1f2937; padding: .8rem 0; display: flex; flex-direction: column; }
.admin-sidebar-footer a { color: #9ca3af; padding: .4rem 1.2rem; font-size: .9rem; }
.admin-content { flex: 1; min-width: 0; }

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.6rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.admin-topbar h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    margin: 0 0 .15rem;
}
.admin-topbar-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.admin-topbar-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.admin-page { padding: 1.6rem; }
.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem;
    margin-bottom: 1.4rem;
    overflow: hidden;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text);
    margin: 0 0 .15rem;
}
.panel-sub { color: var(--muted); font-size: .85rem; margin: 0; }
.panel-head .btn-sm {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}
.panel-head .btn-sm svg { transition: transform .2s ease; }
.panel-head .btn-sm:hover svg { transform: translateX(3px); }

.table-wrap { overflow-x: auto; }
.panel .table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.panel .table th,
.panel .table td {
    padding: .75rem .5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.panel .table th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 700;
    background: transparent;
    padding-bottom: .6rem;
}
.panel .table tbody tr:last-child td { border-bottom: none; }
.panel .table tbody tr:hover td { background: var(--bg-soft); }

.table-link { color: var(--primary); font-weight: 600; font-size: .85rem; }
.table-link:hover { text-decoration: underline; }

.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem !important;
    font-size: .9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color .2s ease, transform .15s ease;
}
.stat-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.stat-card-accent .stat-icon {
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    color: #fff;
}
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.15;
}
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 500; }

.admin-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}
.quick-link {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s ease, transform .15s ease;
}
.quick-link:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    text-decoration: none;
}
.quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.quick-link strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.quick-link small { font-size: .8rem; color: var(--muted); line-height: 1.3; }

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    align-items: start;
}
.status-form { display: flex; gap: .7rem; align-items: flex-end; margin: 1rem 0; }
.status-form select { padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); }
.actions { white-space: nowrap; }

.payment-admin-form .panel { padding: 1.5rem; }
.payment-panel { display: flex; flex-direction: column; gap: 1rem; }
.payment-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.payment-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .2rem;
}
.payment-panel-desc { color: var(--muted); font-size: .9rem; margin: 0; }
.payment-panel-config {
    border-top: 1px dashed var(--border);
    padding-top: 1rem;
}
.payment-panel-note { margin: 0; font-size: .88rem; }

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d1d5db;
    transition: background .2s ease;
    flex-shrink: 0;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    transition: transform .2s ease;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label { font-size: .85rem; color: var(--muted); font-weight: 600; min-width: 60px; }
.toggle-switch input:checked ~ .toggle-label { color: var(--success); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .checkout-grid, .admin-two-col { grid-template-columns: 1fr; }
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .form-row-2col { grid-template-columns: 1fr; }

    .header-inner { gap: .5rem; padding: .6rem 16px; }
    .nav-toggle { display: flex; order: -1; }
    .logo-img { height: 34px; max-width: 140px; }
    .header-inner > .search-form { display: none; }
    .search-toggle { display: inline-flex; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }
    .main-nav.open { max-height: 520px; }
    .main-nav > a,
    .nav-dropdown > a {
        padding: 1rem 1.2rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
        justify-content: space-between;
    }
    .main-nav > a::after,
    .nav-dropdown > a::after { display: none; }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: var(--bg-soft);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    #categoriesDropdown.open .nav-dropdown-menu { max-height: 400px; }
    .nav-dropdown-menu a { padding: .7rem 2rem; border-radius: 0; }

    .user-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        min-width: 220px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
        padding: .45rem;
        max-height: none;
        overflow: visible;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
        z-index: 250;
    }
    .user-dropdown { position: relative; }

    .user-dropdown:hover .user-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
    }
    .user-dropdown.open:hover .user-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .user-dropdown.open .user-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .user-menu-header {
        padding: .6rem .8rem .45rem;
        font-size: .8rem;
        color: var(--muted);
        border-bottom: 1px solid var(--border);
        margin-bottom: .35rem;
    }
    .user-menu-header strong { color: var(--text); display: block; font-size: .92rem; }

    .user-menu a {
        display: block;
        padding: .6rem .8rem;
        color: var(--text);
        border-radius: 8px;
        font-size: .9rem;
    }
    .user-menu a:hover { background: var(--bg-soft); color: var(--primary); text-decoration: none; }

    .header-actions { gap: 0; }
    .icon-btn { width: 40px; height: 40px; }
    .hide-mobile { display: none !important; }

    /* ---------- Hero (legacy light hero) ---------- */
    .hero-full:not(.hero-dark) .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 3.5rem;
        text-align: center;
    }
    .hero-full:not(.hero-dark) .hero-copy { max-width: 100%; margin: 0 auto; }
    .hero-full:not(.hero-dark) .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-full:not(.hero-dark) .hero-ctas { justify-content: center; }

    /* ---------- Hero (dark green) ---------- */
    .hero-dark {
        padding: 4rem 0 0;
        min-height: auto;
    }
    .hero-dark .hero-inner { padding-bottom: 3.5rem; }
    .hero-bg-overlay {
        background: linear-gradient(
            180deg,
            rgba(6, 46, 34, .92) 0%,
            rgba(6, 46, 34, .82) 55%,
            rgba(6, 46, 34, .65) 100%
        );
    }
    .hero-dark .hero-title {
        font-size: clamp(1.9rem, 6vw, 2.6rem);
    }
    .hero-dark .hero-subtitle { font-size: .98rem; }

    .trust-grid { grid-template-columns: 1fr; gap: 1rem; padding: 1.4rem 16px; }
    .trust-item + .trust-item {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 1rem;
    }
    .trust-strip-on-dark .trust-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem 16px;
    }
    .trust-strip-on-dark .trust-item + .trust-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, .1);
        padding-left: 0;
        padding-top: 1rem;
    }

    .section { padding: 3rem 0; }
    .section-title { font-size: 1.35rem; }

    .promo-inner { grid-template-columns: 1fr; text-align: center; }
    .promo-form { flex-direction: column; padding: .5rem; }
    .promo-form .btn { width: 100%; }

    .pd-grid { grid-template-columns: 1fr; gap: 2rem; }
    .pd-gallery { position: static; }
    .pd-gallery-main { border-radius: 14px; }
    .pd-title { font-size: 1.5rem; }
    .pd-price strong { font-size: 1.5rem; }
    .pd-ctas { grid-template-columns: 1fr; }
    .pd-trust { grid-template-columns: 1fr; gap: .9rem; }
    .pd-trust-item { padding: .5rem 0; border-bottom: 1px solid var(--border); }
    .pd-trust-item:last-child { border-bottom: none; }
    .pd-tab { padding: .7rem .9rem; font-size: .88rem; }
    .pd-specs-table th { width: 130px; }

    .cart-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .cart-summary { position: static; top: auto; }
    .cart-item {
        grid-template-columns: 80px 1fr 32px;
        grid-template-areas:
            "thumb info remove"
            "thumb price price"
            "thumb qty   total";
        row-gap: .65rem;
        column-gap: .9rem;
        padding: .9rem;
    }
    .cart-item-thumb { grid-area: thumb; width: 80px; height: 80px; }
    .cart-item-info { grid-area: info; }
    .cart-item-price { grid-area: price; flex-direction: row; align-items: baseline; gap: .4rem; }
    .cart-item-qty { grid-area: qty; }
    .cart-item-total { grid-area: total; align-items: flex-end; }
    .cart-item-remove { grid-area: remove; align-self: start; }
    .cart-col-label { display: inline; margin: 0; }
    .cart-item-price .cart-col-label,
    .cart-item-qty .cart-col-label { margin-right: .35rem; }
    .cart-item-total .cart-col-label { margin-right: .35rem; align-self: flex-end; }
    .cart-summary-title { font-size: 1.05rem; }
    .cart-summary-total strong { font-size: 1.25rem; }

    .account-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .account-sidebar { position: static; }
    .account-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: .4rem;
        padding: .5rem;
        overflow-x: visible;
    }
    .account-nav-item {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: .35rem;
        padding: .7rem .4rem;
        font-size: .78rem;
        line-height: 1.2;
        white-space: normal;
        border-radius: 10px;
    }
    .account-nav-item svg { width: 18px; height: 18px; }

    .account-stats { grid-template-columns: 1fr 1fr; }
    .account-stat:last-child { grid-column: 1 / -1; }

    .account-two-col { grid-template-columns: 1fr; }

    .account-table thead { display: none; }
    .account-table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: .35rem 1rem;
        padding: .9rem;
        border-bottom: 1px solid var(--border);
    }
    .account-table tbody tr:last-child { border-bottom: none; }
    .account-table tbody td {
        padding: 0;
        border: none;
        display: flex;
        align-items: center;
        gap: .4rem;
    }
    .account-table tbody td::before {
        content: attr(data-label);
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--muted);
        font-weight: 700;
    }
    .account-table tbody td[data-label=""]::before { display: none; }
    .account-table tbody td[data-label=""] { justify-self: end; }

    .order-card-head {
        grid-template-columns: 1fr auto;
        gap: .75rem 1rem;
    }
    .order-card-id { grid-column: 1; }
    .order-card-status { grid-column: 2; grid-row: 1; justify-self: end; }
    .order-card-meta {
        grid-column: 1 / -1;
        gap: 1.25rem;
        padding-top: .5rem;
        border-top: 1px dashed var(--border);
    }

    .addr-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .wish-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

    .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
    .vm-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 2.5rem 0; }
    .md-message { padding: 2rem 1.5rem 1.5rem; }

    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-cta-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
        padding: 2.5rem 0 1.5rem;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-tagline { max-width: none; }
    .footer-newsletter { grid-column: 1 / -1; }
    .newsletter-form { flex-direction: row; gap: .5rem; }
    .newsletter-form input[type=email] { flex: 1; }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .footer-bottom-left,
    .footer-bottom-right { justify-content: center; }
    .footer-bottom-center { justify-content: center; }

    .admin-topbar { padding: 1rem 1.1rem; }
    .admin-topbar h1 { font-size: 1.2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-value { font-size: 1.25rem; }

    .order-meta-grid { grid-template-columns: 1fr; }

    .track-status-card {
        grid-template-columns: 52px 1fr;
        grid-template-areas:
            "icon body"
            "side side";
        row-gap: 1rem;
        padding: 1.2rem;
    }
    .track-status-icon { grid-area: icon; width: 52px; height: 52px; }
    .track-status-body { grid-area: body; }
    .track-status-side {
        grid-area: side;
        align-items: stretch;
        flex-direction: row;
        justify-content: space-between;
        padding-top: .9rem;
        border-top: 1px dashed #e2e8f0;
    }
    .track-ref { align-items: flex-start; }

    .track-grid { grid-template-columns: minmax(0, 1fr); }
    .track-side { position: static; }
}

@media (max-width: 520px) {
    .hero-full { padding: 3rem 0 0; }
    .hero-dark { padding: 3rem 0 0; }
    .hero-dark .hero-inner { padding-bottom: 2.5rem; }
    .hero-dark .hero-title { font-size: 1.9rem; }
    .hero-dark .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-dark .hero-cta,
    .hero-dark .hero-cta-outline {
        width: 100%;
        justify-content: center;
    }

    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .category-card { padding: 1.2rem .8rem; }
    .category-thumb { width: 46px; height: 46px; }

    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .footer-bottom-right { flex-direction: column; gap: .4rem; }
    .footer-bottom-right .dot { display: none; }

    .auth-page { padding: 1.5rem 1rem; min-height: auto; }
    .auth-card { padding: 2rem 1.5rem; border-radius: 14px; }
    .auth-title { font-size: 1.4rem; }
    .auth-socials { grid-template-columns: 1fr; }
    .social-btn { padding: .7rem 1rem; }

    .pd-grid { gap: 1.5rem; margin: 1rem 0 2rem; }
    .pd-qty { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .pd-trust-icon { width: 36px; height: 36px; }
    .pd-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 1px; }
    .pd-tab { white-space: nowrap; }
    .pd-variant-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-variant-card { padding: .6rem .65rem; }
    .pd-variant-label { font-size: .9rem; }
    .pd-variant-price { font-size: .82rem; }

    .cart-page { padding: 1rem 0 2rem; }
    .cart-page .page-title { font-size: 1.35rem; margin-bottom: 1.25rem; }
    .cart-item {
        grid-template-columns: 64px 1fr 28px;
        padding: .8rem;
    }
    .cart-item-thumb { width: 64px; height: 64px; border-radius: 8px; }
    .cart-item-title { font-size: .92rem; }
    .cart-item-price { font-size: .85rem; }
    .cart-item-total strong { font-size: .95rem; }

    .cart-toolbar {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: .75rem;
    }
    .cart-toolbar .btn { width: 100%; }
    .cart-continue { justify-content: center; }

    .cart-summary { padding: 1.25rem; border-radius: 14px; }
    .cart-promo-row { flex-direction: column; }
    .cart-promo-row .btn { width: 100%; }

    .account-page { padding: 1rem 0 2rem; }
    .account-welcome {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    .account-avatar { width: 56px; height: 56px; font-size: 1.4rem; }
    .account-welcome-name { font-size: 1.35rem; }

    .account-stats { grid-template-columns: 1fr; }
    .account-stat:last-child { grid-column: auto; }
    .account-stat { padding: 1rem; }
    .account-stat-value { font-size: 1.2rem; }

    .account-panel { padding: 1.15rem; border-radius: 12px; }
    .account-panel-title { font-size: 1rem; }

    .account-address-badge { position: static; display: inline-block; margin-bottom: .5rem; }

    .orders-head { flex-direction: column; align-items: flex-start; }
    .orders-head .btn { width: 100%; justify-content: center; }

    .order-card-head { padding: .9rem 1rem; }
    .order-card-id strong { font-size: .95rem; }
    .order-card-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }
    .order-meta-item:last-child { grid-column: 1 / -1; }

    .order-card-body {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: .75rem;
    }
    .order-card-thumb { width: 48px; height: 48px; }

    .order-card-foot { padding: .85rem 1rem; }
    .order-view-btn { width: 100%; justify-content: center; }

    .orders-tabs { margin-bottom: 1rem; }
    .orders-tab { padding: .5rem .75rem; font-size: .82rem; }

    .addr-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    .form-actions .btn { width: 100%; }

    .wish-grid { grid-template-columns: 1fr; }

    .error-page { margin: 2.5rem auto 4rem; }
    .error-icon { width: 84px; height: 84px; border-radius: 22px; }
    .error-icon svg { width: 44px; height: 44px; }
    .error-icon::after { inset: -10px; border-radius: 28px; }
    .error-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .error-actions .btn { width: 100%; }

    .about-visual { grid-template-columns: 1fr; }
    .biz-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .about-cta-band-actions { width: 100%; }
    .about-cta-band-actions .btn { width: 100%; }

    .contact-form .form-row-2col { grid-template-columns: 1fr; }
    .contact-item { padding: .85rem; }

    .stats-grid { grid-template-columns: 1fr; }
    .admin-quick-links { grid-template-columns: 1fr; }
    .panel { padding: 1.1rem; border-radius: 12px; }
    .panel-title { font-size: 1rem; }
    .admin-topbar-actions { width: 100%; }
    .admin-topbar-actions .btn { width: 100%; justify-content: center; }

    .order-pay-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1.1rem;
    }
    .order-pay-btn { width: 100%; justify-content: center; }

    .order-item {
        grid-template-columns: 64px 1fr;
        grid-template-areas:
            "thumb info"
            "thumb qty"
            "thumb total";
        row-gap: .35rem;
        column-gap: .85rem;
        padding: .8rem;
    }
    .order-item-thumb { grid-area: thumb; width: 64px; height: 64px; }
    .order-item-info { grid-area: info; }
    .order-item-qty { grid-area: qty; flex-direction: row; align-items: baseline; gap: .35rem; text-align: left; }
    .order-item-total { grid-area: total; flex-direction: row; align-items: baseline; gap: .35rem; text-align: left; }
    .order-item-label { min-width: 48px; }

    .order-totals { max-width: none; width: 100%; }
    .order-actions { flex-direction: column-reverse; }
    .order-actions .btn { width: 100%; justify-content: center; }

    .track-input-wrap { flex-direction: column; }
    .track-input-wrap input[type="text"] { padding-left: 1rem; padding-top: 2.6rem; }
    .track-input-icon { top: .75rem; }

    .track-status-card { padding: 1rem; gap: .85rem; }
    .track-status-title { font-size: 1.15rem; }
    .track-status-side { flex-direction: column; align-items: stretch; }
}