/* ============================================================
   TRAM GRAPHICS STORE — Premium Editorial Theme
   Fonts: SF Pro Display / Inter (Apple-like) + system sans
   Palette: Off-white canvas, near-black, warm slate, gold accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* -- TOKENS ------------------------------------------------ */
:root {
    /* Inter for headings, SF Pro / system sans for body */
    --font-serif:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    /* Pure B&W + grey palette — no gold */
    --canvas:      #F5F5F7;   /* Apple's off-white */
    --white:       #FFFFFF;
    --ink:         #1D1D1F;   /* Apple's near-black */
    --ink-2:       #3A3A3C;
    --muted:       #6E6E73;   /* Apple's mid-grey */
    --rule:        #D2D2D7;   /* Apple's border grey */
    --rule-light:  #F0F0F2;
    --gold:        #1D1D1F;   /* remapped to ink — no gold used */
    --gold-light:  #6E6E73;   /* remapped to muted */
    --success:     #1C8A43;
    --danger:      #C0392B;
    --warning:     #8A6A00;

    --nav-h:       72px;
    --max-w:       1360px;
    --gutter:      clamp(1.5rem, 5vw, 2.5rem);

    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-xs:   0 1px 3px rgba(0,0,0,.05);
    --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
    --shadow-md:   0 8px 24px rgba(0,0,0,.08);
    --shadow-lg:   0 20px 48px rgba(0,0,0,.10);

    /* Apple-style fully rounded buttons */
    --radius-sm:   980px;   /* pill for buttons */
    --radius-md:   14px;    /* cards */
    --radius-lg:   18px;    /* large cards */
    --radius-xl:   24px;    /* hero/modal */
}

/* -- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* -- CONTAINER --------------------------------------------- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: max(var(--gutter), 1.25rem);
    padding-right: max(var(--gutter), 1.25rem);
    padding-top: 0;
    padding-bottom: 0;
}

/* -- NAV --------------------------------------------------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--nav-h);
    background: rgba(245,245,247,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    transition: box-shadow .3s var(--ease-in-out);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: max(var(--gutter), 1.25rem);
    padding-right: max(var(--gutter), 1.25rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.nav-logo {
    height: 54px;
    width: auto;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .01em;
    transition: color .2s;
    position: relative;
    padding-bottom: 2px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--ink);
    transition: width .25s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}
.nav-icon {
    position: relative;
    color: var(--muted);
    font-size: 1.1rem;
    transition: color .2s;
    line-height: 1;
}
.nav-icon:hover { color: var(--ink); }
.nav-badge {
    position: absolute;
    top: -7px; right: -8px;
    background: var(--ink);
    color: var(--white);
    font-size: .6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--ink);
    cursor: pointer;
}

/* -- MAIN OFFSET ------------------------------------------- */
.main { margin-top: var(--nav-h); min-height: 70vh; }

/* -- PAGE HEADER ------------------------------------------- */
.page-header {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--rule);
}
.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.page-header .breadcrumb a { transition: color .2s; }
.page-header .breadcrumb a:hover { color: var(--ink); }
.page-header .breadcrumb i { font-size: .65rem; }
.page-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
}
.page-header .subtitle {
    margin-top: .75rem;
    font-size: 1rem;
    color: var(--muted);
    font-weight: 300;
}

/* -- HERO -------------------------------------------------- */
/* -- HERO SLIDER ------------------------------------------- */
.hero-slider {
    position: relative;
    height: calc(100vh - var(--nav-h));
    min-height: 580px;
    overflow: hidden;
    background: #111;
}

/* Individual slide */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform-origin: center;
    /* Ken Burns pan on the active slide */
    transform: scale(1);
    transition: transform 7s ease;
}
.hero-slide.active .hero-slide-img {
    transform: scale(1.05);
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,.62) 0%,
        rgba(0,0,0,.30) 55%,
        rgba(0,0,0,.10) 100%
    );
}

.hero-body {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--gutter) 5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Text animations — only fire when slide is active */
.hero-eyebrow,
.hero-title,
.hero-sub,
.hero-cta { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }

.hero-slide.active .hero-eyebrow { opacity: 1; transform: translateY(0); transition-delay: .15s; }
.hero-slide.active .hero-title   { opacity: 1; transform: translateY(0); transition-delay: .30s; }
.hero-slide.active .hero-sub     { opacity: 1; transform: translateY(0); transition-delay: .45s; }
.hero-slide.active .hero-cta     { opacity: 1; transform: translateY(0); transition-delay: .60s; }

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    margin-bottom: 1.25rem;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -.03em;
    max-width: 820px;
}
.hero-sub {
    margin-top: 1.25rem;
    font-size: clamp(.95rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,.80);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.75;
}
.hero-cta {
    margin-top: 2.25rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* -- Prev / Next buttons ----------------------------------- */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .2s, border-color .2s, transform .2s;
}
.hero-nav:hover {
    background: rgba(255,255,255,.28);
    border-color: rgba(255,255,255,.6);
    transform: translateY(-50%) scale(1.08);
}
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }

/* -- Dot indicators ---------------------------------------- */
.hero-dots {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: .6rem;
    align-items: center;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: none;
    cursor: pointer;
    transition: background .3s, transform .3s;
    padding: 0;
}
.hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* -- BUTTONS ----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .015em;
    border: 1.5px solid transparent;
    transition: all .25s var(--ease-out);
    white-space: nowrap;
    cursor: pointer;
}
.btn-primary {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--ink-2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule);
}
.btn-outline:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}
.btn-gold {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.btn-gold:hover {
    background: var(--ink-2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn-sm { padding: .5rem 1.1rem; font-size: .8rem; }
.btn-lg { padding: .95rem 2.25rem; font-size: 1rem; }
.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.btn i { transition: transform .2s; }
.btn:hover:not(:disabled) i.arrow { transform: translateX(3px); }

/* -- SECTION HEADERS --------------------------------------- */
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-sm { padding-top: 3rem; padding-bottom: 3rem; }
.section-lg { padding-top: 7rem; padding-bottom: 7rem; }

.section-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .75rem;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--ink);
}
.section-sub {
    margin-top: .75rem;
    font-size: 1rem;
    color: var(--muted);
    font-weight: 300;
    max-width: 520px;
}
.section-header-between {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* -- CATEGORY CARDS ---------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--rule);
    cursor: pointer;
    background: var(--white);
    display: flex;
    flex-direction: column;
}
/* Image area: fixed height, full image always visible */
.category-card-img-wrap {
    height: 200px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.category-card img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform .5s var(--ease-out);
}
.category-card:hover img { transform: scale(1.04); }
.category-card-scrim {
    display: none; /* scrim no longer needed with contain layout */
}
.category-card-body {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--rule);
    background: var(--white);
}
.category-card-name {
    font-family: var(--font-serif);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: .25rem;
}
.category-card-count {
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: 0;
}
.category-card-link { display: none; }
.category-card:hover .category-card-link { display: none; }
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: box-shadow .3s, transform .3s; }

/* -- PRODUCT CARDS ----------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.products-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
/* Products page 2-col layout: sidebar + main */
.products-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}
.products-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}
.product-card {
    background: #FFFFFF;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.product-card-img {
    aspect-ratio: 1;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--rule);
}
.product-card-img img {
    max-width: 85%; max-height: 85%;
    width: auto; height: auto;
    object-fit: contain;
    transition: transform .5s var(--ease-out);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rule);
    font-size: 3rem;
}
.product-card-badges {
    position: absolute;
    top: .75rem; left: .75rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .6rem;
    border-radius: var(--radius-sm);
    font-size: .7rem;
    font-weight: 600;
    line-height: 1;
}
.badge-stock     { background: #EEF7F2; color: var(--success); }
.badge-low       { background: #FEF6E8; color: var(--warning); }
.badge-out       { background: #F5F5F5; color: var(--muted); }
.badge-brandable { background: #EBEBED; color: var(--ink-2); }

.product-card-body {
    padding: 1.1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.product-card-cat {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.product-card-name {
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
    min-height: 2.7rem;
    letter-spacing: -.01em;
}
.product-card-name a:hover { color: var(--ink-2); }
.product-card-code {
    font-size: .72rem;
    color: var(--muted);
    opacity: .7;
}
.product-card-price {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: .2rem;
}
.product-card-excl {
    font-size: .73rem;
    color: var(--muted);
    font-weight: 400;
}
.product-card-stock {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--muted);
    margin-top: auto;
    padding-top: .6rem;
}
.stock-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.stock-dot.in  { background: var(--success); box-shadow: 0 0 0 2px rgba(45,122,79,.15); }
.stock-dot.low { background: var(--warning); box-shadow: 0 0 0 2px rgba(192,122,26,.15); }
.stock-dot.out { background: var(--muted); }

.product-card-actions {
    display: flex;
    gap: .4rem;
    margin-top: 1rem;
}
.btn-add-cart {
    flex: 1;
    padding: .6rem .5rem;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: 980px;
    font-size: .78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    transition: background .2s, transform .2s;
    cursor: pointer;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}
.btn-add-cart:hover:not(:disabled) {
    background: var(--ink-2);
    transform: translateY(-1px);
}
.btn-add-cart.added { background: var(--success); }
.btn-add-cart:disabled { background: var(--rule); color: var(--muted); cursor: not-allowed; }
.btn-quick-view {
    width: 36px; height: 36px;
    flex-shrink: 0;
    background: var(--rule-light);
    border: 1px solid var(--rule);
    border-radius: 980px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    transition: all .2s;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}
.btn-quick-view:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* -- FILTER BAR -------------------------------------------- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.filter-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.filter-pill {
    padding: .4rem 1rem;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 500;
    border: 1px solid var(--rule);
    background: var(--white);
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.filter-pill:hover,
.filter-pill.active {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.filter-sort {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--muted);
}
.filter-sort select {
    padding: .4rem .75rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: .8rem;
    color: var(--ink);
    cursor: pointer;
}

/* -- CART -------------------------------------------------- */
/* ==========================================================
   CART PAGE
   Card-based layout — no table — works at all screen sizes
   ========================================================== */

/* Page-level spacing */
.cart-page { padding-top: 2.5rem; padding-bottom: 5rem; }

/* Two-column layout: items | summary */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

/* -- Items column ------------------------------------------ */
.cart-items-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Individual item card */
.cart-item-card {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    background: var(--white);
    transition: background .15s;
}
.cart-item-card:hover { background: #fafafa; }

/* Image */
.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.cart-item-img i { font-size: 1.5rem; color: var(--rule); }

/* Details */
.cart-item-details { min-width: 0; }
.cart-item-name {
    font-weight: 500;
    font-size: .875rem;
    line-height: 1.35;
    margin-bottom: .2rem;
}
.cart-item-name a { color: var(--ink); }
.cart-item-name a:hover { color: var(--ink-2); text-decoration: underline; }
.cart-item-meta {
    font-size: .72rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    align-items: center;
}
.cart-meta-sep { opacity: .4; }
.cart-item-warning {
    font-size: .72rem;
    margin-top: .3rem;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.cart-item-warning.danger  { color: var(--danger); }
.cart-item-warning.warning { color: var(--warning); }

/* Unit price column */
.cart-item-price-col { text-align: right; }
.cart-item-price { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.cart-item-price-excl { font-size: .7rem; color: var(--muted); white-space: nowrap; }

/* Qty stepper + line total + remove */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: 980px;
    overflow: hidden;
    background: var(--white);
}
.cart-qty-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: var(--ink);
    font-size: .7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.cart-qty-btn:hover { background: var(--rule-light); }
.cart-qty-val {
    min-width: 28px;
    text-align: center;
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink);
    padding: 0 2px;
    user-select: none;
}
.cart-item-line-total {
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    min-width: 64px;
    text-align: right;
}
.cart-item-remove {
    background: none;
    border: none;
    color: var(--muted);
    font-size: .85rem;
    cursor: pointer;
    padding: .3rem;
    border-radius: 50%;
    transition: color .2s, background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--danger); background: #fee2e2; }

/* Cart actions row */
.cart-actions {
    display: flex;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: var(--rule-light);
    flex-wrap: wrap;
}

/* -- Summary card ------------------------------------------ */
.cart-summary-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}
.cart-summary-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}
.summary-lines { display: flex; flex-direction: column; gap: 0; }
.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 0;
    font-size: .875rem;
    border-bottom: 1px solid var(--rule-light);
}
.summary-lines .summary-line:last-child { border-bottom: none; }
.summary-label { color: var(--muted); }
.summary-val   { font-weight: 500; color: var(--ink); }
.summary-free  { color: var(--success); font-weight: 500; }
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 .5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-top: 1.5px solid var(--ink);
    margin-top: .5rem;
}
.summary-note {
    font-size: .7rem;
    color: var(--muted);
    margin-top: .35rem;
    text-align: right;
}
.summary-cta {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: 1.5rem;
}
.summary-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* -- CHECKOUT ---------------------------------------------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
    padding: 3rem 0 5rem;
}
.form-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.form-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule);
    letter-spacing: -.02em;
}

/* -- CONTACT PAGE ------------------------------------------ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
}
.contact-cards {
    display: grid;
    gap: 1rem;
    margin-top: 0;
}
.contact-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-card-icon {
    width: 38px;
    height: 38px;
    background: var(--rule-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--ink);
    flex-shrink: 0;
}
.contact-card-title {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .3rem;
    color: var(--ink);
}
.contact-card-val {
    font-size: .83rem;
    color: var(--muted);
    display: block;
    line-height: 1.7;
}
a.contact-card-val:hover { color: var(--ink); }
.contact-hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .2rem .85rem;
    font-size: .8rem;
    color: var(--muted);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group.span-2 { grid-column: span 2; }
.form-label {
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink-2);
}
.form-label .req { color: var(--danger); }
.form-control {
    padding: .7rem 1rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.form-control:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(29,29,31,.10);
}
textarea.form-control { min-height: 90px; resize: vertical; }

/* -- PAYMENT OPTIONS --------------------------------------- */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin: .5rem 0 1rem;
}

/* Pesepay option spans full width */
.payment-option-pesepay { grid-column: 1 / -1; }

.payment-option { position: relative; }
.payment-option input[type="radio"] { position: absolute; opacity: 0; width: 0; }
.payment-option label {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1.1rem;
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: .85rem;
    color: var(--ink);
    transition: all .2s;
    line-height: 1.3;
}
.payment-option label i { font-size: 1.1rem; color: var(--muted); transition: color .2s; flex-shrink: 0; }
.payment-option-icon { display: flex; align-items: center; flex-shrink: 0; }
.payment-option-details { flex: 1; }
.payment-option-details strong { display: block; font-size: .875rem; font-weight: 600; }
.payment-option-details small  { display: block; font-size: .72rem; color: var(--muted); margin-top: .1rem; }
.payment-option-badge {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--ink);
    color: #fff;
    padding: .2rem .55rem;
    border-radius: 980px;
    flex-shrink: 0;
}

.payment-option input:checked + label {
    border-color: var(--ink);
    background: #F5F5F7;
}
.payment-option input:checked + label i { color: var(--ink); }

/* Info panels shown under the selected method */
.pesepay-info, .offline-payment-info {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .85rem 1.1rem;
    background: #F5F5F7;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    font-size: .8rem;
    color: var(--ink-2);
    line-height: 1.6;
    margin-top: .75rem;
}
.pesepay-info i, .offline-payment-info i { color: var(--muted); font-size: .9rem; flex-shrink: 0; margin-top: .1rem; }

/* Checkout submit row */
.checkout-submit {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}
.checkout-submit .btn-primary {
    flex: 1;
    justify-content: center;
    min-width: 160px;
}

/* Checkout order summary item list */
.checkout-items-list {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: .25rem;
}
.checkout-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .5rem .75rem;
    align-items: baseline;
    padding: .5rem 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: .83rem;
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-name  { color: var(--ink); font-weight: 500; }
.checkout-item-qty   { color: var(--muted); white-space: nowrap; font-size: .75rem; }
.checkout-item-total { font-weight: 600; white-space: nowrap; }


/* -- ACCOUNT PAGE ------------------------------------------ */
.account-page {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.account-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}
.account-avatar-block {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}
.account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .75rem;
    letter-spacing: -.03em;
}
.account-avatar-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink);
    line-height: 1.3;
    word-break: break-word;
}
.account-avatar-email {
    font-size: .72rem;
    color: var(--muted);
    margin-top: .2rem;
    word-break: break-all;
}

/* Nav */
.account-nav {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.account-nav-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1.1rem;
    font-size: .83rem;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid var(--rule-light);
    transition: background .15s, color .15s;
}
.account-nav-item:last-child { border-bottom: none; }
.account-nav-item i { width: 15px; text-align: center; font-size: .82rem; flex-shrink: 0; }
.account-nav-item:hover { background: var(--rule-light); color: var(--ink); }
.account-nav-item.active { background: var(--ink); color: var(--white); }
.account-nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.account-nav-logout { color: var(--danger); }
.account-nav-logout:hover { background: #fee2e2; color: var(--danger); }

/* Main content */
.account-main { min-width: 0; }
.account-section-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--ink);
}
.account-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats grid */
.account-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.account-stat-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
}
.account-stat-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: .25rem;
}
.account-stat-label {
    font-size: .7rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Card header reuse */
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); flex-wrap: wrap; gap: .75rem; }

/* Account table */
.account-table-wrap { overflow-x: auto; }
.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}
.account-table th {
    background: var(--rule-light);
    padding: .65rem 1rem;
    text-align: left;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
    white-space: nowrap;
}
.account-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--rule-light);
    vertical-align: middle;
}
.account-table tbody tr:last-child td { border-bottom: none; }
.account-table tbody tr:hover { background: #fafafa; }
.account-order-no { font-weight: 600; font-family: monospace; font-size: .8rem; }

/* Order detail */
.account-order-detail {}
.account-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.account-detail-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .4rem;
}

/* Quick links */
.account-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.account-quick-link {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink);
    transition: box-shadow .2s, transform .2s;
}
.account-quick-link i { font-size: 1.3rem; color: var(--muted); }
.account-quick-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Empty state */
.account-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
}
.account-empty i { font-size: 2.5rem; color: var(--rule); margin-bottom: 1rem; display: block; }
.account-empty h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.account-empty p { font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }

/* Responsive account */
@media (max-width: 900px) {
    .account-layout       { grid-template-columns: 1fr; }
    .account-sidebar      { position: static; }
    .account-stats        { grid-template-columns: repeat(2, 1fr); }
    .account-quick-links  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .account-stats        { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .account-quick-links  { grid-template-columns: 1fr 1fr; }
    .account-table th, .account-table td { padding: .65rem .75rem; }
}
@media (max-width: 400px) {
    .account-stats        { grid-template-columns: 1fr 1fr; }
    .account-quick-links  { grid-template-columns: 1fr 1fr; }
}

/* -- PRODUCT DETAIL ---------------------------------------- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 3rem 0 5rem;
    align-items: start;
}
.product-gallery { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.gallery-main {
    aspect-ratio: 1;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule);
    margin-bottom: .75rem;
    cursor: zoom-in;
}
.gallery-main img {
    max-width: 82%; max-height: 82%;
    object-fit: contain;
    transition: transform .4s var(--ease-out);
}
.gallery-main:hover img { transform: scale(1.08); }
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: .5rem;
}
.gallery-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1.5px solid transparent;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s;
}
.gallery-thumb img { max-width: 80%; max-height: 80%; object-fit: contain; }
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--ink); }

.product-info-panel { padding-top: .5rem; }
.product-info-cat {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .75rem;
}
.product-info-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: 1rem;
}
.product-info-code { font-size: .75rem; color: var(--muted); margin-bottom: 1.5rem; }
.product-info-price {
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .3rem;
}
.product-info-excl {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.product-info-stock {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    padding: .4rem 1rem;
    border-radius: 99px;
    margin-bottom: 2rem;
}
.product-info-stock.in  { background: #EEF7F2; color: var(--success); }
.product-info-stock.low { background: #FEF6E8; color: var(--warning); }
.product-info-stock.out { background: #F5F5F5; color: var(--muted); }

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
    margin-bottom: 1.25rem;
}
.qty-btn {
    width: 40px; height: 42px;
    background: var(--rule-light);
    border: none;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    transition: background .2s;
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--rule); }
.qty-field {
    width: 52px; height: 42px;
    border: none;
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    text-align: center;
    font-size: .9rem;
    background: var(--white);
}
.qty-field:focus { outline: none; }

.product-cta { display: flex; gap: .75rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.product-cta .btn { flex: 1; min-width: 140px; }

.product-divider {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 2rem 0;
}
.product-meta-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; font-size: .82rem; }
.product-meta-list dt { color: var(--muted); font-weight: 500; }
.product-meta-list dd { color: var(--ink); }

/* -- FORM MESSAGES ----------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: .875rem;
    margin-bottom: 1.5rem;
}
.alert-error   { background: #FEF2F2; color: var(--danger);  border-left: 3px solid var(--danger); }
.alert-success { background: #EEF7F2; color: var(--success); border-left: 3px solid var(--success); }
.alert-info    { background: #F0F0F2; color: var(--ink-2);   border-left: 3px solid var(--ink); }

/* -- TOAST ------------------------------------------------- */
.toast-stack {
    position: fixed;
    bottom: 2rem; right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    pointer-events: none;
}
.toast {
    background: var(--ink);
    color: var(--white);
    padding: .85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 220px;
    max-width: 340px;
    pointer-events: all;
    transform: translateX(120%);
    opacity: 0;
    transition: transform .35s var(--ease-out), opacity .35s;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast i { color: var(--ink-2); flex-shrink: 0; }
.toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    font-size: .85rem;
    cursor: pointer;
    margin-left: auto;
    transition: color .2s;
    flex-shrink: 0;
}
.toast-close:hover { color: var(--white); }

/* -- EMPTY STATES ------------------------------------------ */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}
.empty-state i { font-size: 3rem; color: var(--rule); margin-bottom: 1.25rem; }
.empty-state h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; margin-bottom: .5rem; }
.empty-state p { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* -- FOOTER ------------------------------------------------ */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.75);
    padding: 4.5rem 0 2rem;
    margin-top: 5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 2rem;
}
.footer-logo { height: 36px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); }
.footer-desc { font-size: .82rem; line-height: 1.8; color: rgba(255,255,255,.5); max-width: 260px; }
.footer-col h5 {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
    color: rgba(255,255,255,.35);
    flex-wrap: wrap;
    gap: .75rem;
}

/* -- PAGINATION -------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 2.5rem 0 .5rem;
}
.page-link {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: var(--muted);
    border: 1px solid var(--rule);
    background: var(--white);
    transition: all .2s;
    text-decoration: none;
}
.page-link:hover { border-color: var(--ink); color: var(--ink); }
.page-link.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.page-link.disabled { opacity: .35; pointer-events: none; }

/* -- VALUES / FEATURES ------------------------------------- */
.values-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.25rem; }
.value-card {
    padding: 2rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: box-shadow .3s, transform .3s;
}
.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.value-icon { font-size: 1.75rem; color: var(--ink); margin-bottom: 1rem; }
.value-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.value-text { font-size: .82rem; color: var(--muted); line-height: 1.7; }

/* -- CONFIRMATION ------------------------------------------ */
.confirm-card {
    max-width: 720px;
    margin: 3rem auto 5rem;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-xl);
    padding: 3rem;
}
.confirm-icon { font-size: 3.5rem; color: var(--success); margin-bottom: 1.25rem; }
.confirm-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: .5rem;
}
.confirm-order-no { font-size: .875rem; color: var(--ink); font-weight: 500; margin-bottom: 1.5rem; }
.confirm-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .875rem; }
.confirm-table th {
    text-align: left;
    padding: .6rem .75rem;
    background: var(--rule-light);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.confirm-table td {
    padding: .75rem;
    border-bottom: 1px solid var(--rule-light);
    vertical-align: middle;
}
.confirm-table tr:last-child td { border-bottom: none; }

/* -- RESPONSIVE -------------------------------------------- */
/* -- TRUSTED BRANDS SCROLLING BANNER ----------------------- */
.brands-section {
    padding: 2.5rem 0;
    background: var(--white);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
}
.brands-label {
    text-align: center;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.brands-track-wrap {
    overflow: hidden;
    position: relative;
    /* fade edges */
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.brands-track {
    display: flex;
    align-items: center;
    gap: 5rem;
    width: max-content;
    animation: scrollBrands 28s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }
.brands-track img {
    height: 54px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .55;
    transition: opacity .3s, filter .3s;
    flex-shrink: 0;
}
.brands-track img:hover { filter: grayscale(0%); opacity: 1; }

@keyframes scrollBrands {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   Strategy: mobile-first with 4 breakpoints
   Products grid: 1col (mobile) → 2col (480px+) → 3col (900px+)
   ============================================================ */

/* -- 1280px -- */
@media (max-width: 1280px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* -- 1100px -- */
@media (max-width: 1100px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid   { grid-template-columns: repeat(3, 1fr); }
    .values-grid     { grid-template-columns: repeat(3, 1fr); }
    .footer-grid     { grid-template-columns: 1fr 1fr; }
}

/* -- 900px: tablet -- */
@media (max-width: 900px) {
    /* Nav */
    .nav-links         { display: none; }
    .nav-mobile-toggle { display: flex; }

    /* Grids */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .products-grid   { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .values-grid     { grid-template-columns: repeat(2, 1fr); }
    .footer-grid     { grid-template-columns: 1fr 1fr; }

    /* Page layouts */
    .cart-layout             { grid-template-columns: 1fr; gap: 1.5rem; }
    .cart-summary-card       { position: static; }
    .checkout-layout         { grid-template-columns: 1fr; }
    .product-detail-layout   { grid-template-columns: 1fr; gap: 2rem; }
    .product-gallery         { position: static; }
    .products-layout         { grid-template-columns: 1fr; gap: 1.5rem; }
    .products-sidebar        { position: static; }

    /* Contact page: info cards above form */
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }

    /* About page */
    .about-story-grid { grid-template-columns: 1fr !important; }
    .about-story-img  { max-height: 260px; }
    .team-grid        { grid-template-columns: repeat(3, 1fr) !important; }
    .pillars-grid     { grid-template-columns: 1fr !important; gap: 1rem; }

    /* Forms */
    .form-grid          { grid-template-columns: 1fr; }
    .form-group.span-2  { grid-column: 1; }
    .form-group.span-3  { grid-column: 1; }

    /* Section spacing */
    .section    { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .section-lg { padding-top: 4.5rem; padding-bottom: 4.5rem; }

    /* Hero */
    .hero-body  { padding: 0 var(--gutter) 3.5rem; }
    .hero-title { font-size: clamp(2rem, 7vw, 3.2rem); }
}

/* -- 680px: large phone -- */
@media (max-width: 680px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .products-grid   { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .values-grid     { grid-template-columns: repeat(2, 1fr); }
    .footer-grid     { grid-template-columns: 1fr 1fr; }
    .team-grid       { grid-template-columns: repeat(2, 1fr) !important; }

    .section-title   { font-size: clamp(1.5rem, 5vw, 1.9rem); }
    .hero-title      { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero-sub        { font-size: .875rem; max-width: 100%; }
    .hero-body       { padding: 0 var(--gutter) 3rem; }
    .hero-cta        { gap: .6rem; }

    /* Cart: reflow item card to 2-row at 680px */
    .cart-item-card {
        grid-template-columns: 72px 1fr;
        grid-template-rows: auto auto;
        gap: .75rem .875rem;
    }
    .cart-item-price-col {
        display: none; /* price visible in actions row */
    }
    .cart-item-actions {
        grid-column: 1 / -1;
        border-top: 1px solid var(--rule-light);
        padding-top: .75rem;
        margin-top: -.25rem;
        justify-content: space-between;
    }
    .cart-item-line-total { font-size: .875rem; }
}

/* -- 480px: small phone -- */
@media (max-width: 480px) {
    /* Products: 1 column on small phones */
    .products-grid   { grid-template-columns: 1fr; gap: .75rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: .625rem; }
    .values-grid     { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .footer-grid     { grid-template-columns: 1fr; }
    .team-grid       { grid-template-columns: repeat(2, 1fr) !important; }

    /* Section spacing */
    .section    { padding-top: 2.75rem; padding-bottom: 2.75rem; }
    .section-sm { padding-top: 2rem; padding-bottom: 2rem; }
    .page-header { padding: 2rem 0 1.75rem; }
    .page-header h1 { font-size: clamp(1.5rem, 7vw, 2rem); }

    /* Hero */
    .hero-title   { font-size: clamp(1.65rem, 8vw, 2.2rem); letter-spacing: -.025em; }
    .hero-sub     { font-size: .83rem; margin-top: .85rem; }
    .hero-body    { padding: 0 var(--gutter) 2.75rem; }
    .hero-cta     { margin-top: 1.5rem; gap: .5rem; }
    .hero-nav     { width: 36px; height: 36px; font-size: .8rem; }
    .hero-prev    { left: .625rem; }
    .hero-next    { right: .625rem; }
    .btn-lg       { padding: .75rem 1.5rem; font-size: .875rem; }

    /* Product card: single column — show full button text */
    .btn-add-cart .btn-label { display: inline; }
    .btn-add-cart { font-size: .85rem; padding: .7rem 1rem; }

    /* Cart at small phone */
    .cart-item-card { padding: .875rem 1rem; gap: .625rem; }
    .cart-item-img  { width: 64px; height: 64px; }
    .cart-item-name { font-size: .82rem; }
    .cart-actions   { padding: .75rem 1rem; }
    .cart-summary-card { padding: 1.25rem; }

    /* Category image area smaller */
    .category-card-img-wrap { height: 150px; }

    /* Payment grid */
    .payment-grid { grid-template-columns: 1fr 1fr; }
    .toast-stack  { left: 1rem; right: 1rem; bottom: 1rem; }

    /* Section label/header between */
    .section-header-between { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* -- 380px: very small phone -- */
@media (max-width: 380px) {
    .categories-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .products-grid   { grid-template-columns: 1fr; gap: .625rem; }
    .nav-logo        { height: 44px; }
    .category-card-img-wrap { height: 130px; }
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: 980px;
    overflow: hidden;
    background: var(--white);
}
.cart-qty-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: var(--ink);
    font-size: .7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.cart-qty-btn:hover:not(:disabled) { background: var(--rule-light); }
.cart-qty-btn:disabled {
    color: var(--rule);
    cursor: not-allowed;
}
.cart-qty-input {
    width: 42px;
    text-align: center;
    font-size: .82rem;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--ink);
    border: none;
    outline: none;
    background: transparent;
    padding: 0 2px;
    /* hide browser spinner arrows */
    -moz-appearance: textfield;
}
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-input:focus {
    background: var(--rule-light);
    border-radius: 3px;
}
