/* ==========================================================================
   custom.css — theme / page-specific components

   Home hero, shop list, product detail, reviews, cart, checkout,
   account pages. Media queries for these live in responsive.css.
   ========================================================================== */

/* ── Account header (shared across account pages) ── */
.acc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-8); gap: var(--space-4); }
.acc-title { font-size: var(--text-3xl); font-weight: var(--weight-bold); margin: 0 0 var(--space-1); color: var(--text-primary); }
.acc-subtitle { color: var(--text-muted); margin: 0; font-size: var(--text-sm); }
.acc-link { font-size: var(--text-sm); color: var(--brand); text-decoration: none; }
.acc-link:hover { text-decoration: underline; }

.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.acc-stat { padding: var(--space-5); }
.acc-stat__label { font-size: var(--text-xs); text-transform: uppercase; color: var(--text-muted); letter-spacing: .05em; margin-bottom: var(--space-2); font-weight: var(--weight-semibold); }
.acc-stat__value { font-size: var(--text-3xl); font-weight: var(--weight-bold); color: var(--text-primary); }

.acc-section { margin-bottom: var(--space-8); }
.acc-section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-4); }
.acc-section__head h2 { font-size: var(--text-xl); font-weight: var(--weight-bold); margin: 0; }

.acc-order-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: var(--text-primary);
    transition: background .12s;
}
.acc-order-row:last-child { border-bottom: none; }
.acc-order-row:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.acc-order-row__num { font-weight: var(--weight-semibold); font-family: var(--font-mono, monospace); font-size: var(--text-sm); }
.acc-order-row__date { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.acc-order-row__total { font-weight: var(--weight-semibold); font-size: var(--text-sm); }

.acc-status { font-size: var(--text-xs); padding: 3px 10px; border-radius: 999px; font-weight: var(--weight-medium); text-transform: capitalize; display: inline-block; }
.acc-status--paid, .acc-status--completed { background: #dcfce7; color: #15803d; }
.acc-status--pending, .acc-status--processing { background: #fef3c7; color: #b45309; }
.acc-status--cancelled, .acc-status--refunded { background: #fee2e2; color: #b91c1c; }

/* ============================================ */
/* Home page                                     */
/* ============================================ */
/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: var(--space-24) 0 var(--space-20);
    overflow: hidden;
    background: var(--bg-canvas);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}
.hero__blob--1 { top: -10%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, #4f6ef7 0%, transparent 70%); }
.hero__blob--2 { bottom: -20%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, #a855f7 0%, transparent 70%); opacity: 0.3; }
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.hero__inner { position: relative; text-align: center; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(79, 110, 247, 0.08);
    border: 1px solid rgba(79, 110, 247, 0.20);
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--brand);
    margin-bottom: var(--space-6);
}
.hero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }

.hero__title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: var(--weight-bold);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-5);
    color: var(--text-primary);
}
.hero__title-grad {
    background: linear-gradient(135deg, #4f6ef7 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero__sub {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
}
.hero__cta { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-12); }

.hero__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 920px;
    margin: 0 auto;
    text-align: left;
}
.hero__feature {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    align-items: flex-start;
}
.hero__feature-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    background: var(--brand-muted);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__feature-title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); margin-bottom: 2px; }
.hero__feature-desc { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: var(--space-20) 0; }
.section--alt { background: var(--bg-surface); }
.section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-8);
    gap: var(--space-4);
    flex-wrap: wrap;
}
.section__eyebrow {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}
.section__title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}
.section__link { font-size: var(--text-sm); color: var(--brand); text-decoration: none; font-weight: var(--weight-medium); }
.section__link:hover { text-decoration: underline; }

/* ── Product card ────────────────────────────────────────── */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}
.prod-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.prod-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-muted);
    color: var(--text-primary);
}
.prod-card__img {
    aspect-ratio: 4/3;
    background: var(--bg-surface-2);
    position: relative;
    overflow: hidden;
}
.prod-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prod-card:hover .prod-card__img img { transform: scale(1.04); }
.prod-card__img-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.prod-card__sale {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 10px;
    border-radius: 999px;
}
.prod-card__body { padding: var(--space-4); }
.prod-card__name {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prod-card__price { display: flex; align-items: baseline; gap: var(--space-2); }
.prod-card__price-now { font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--text-primary); }
.prod-card__price-was { font-size: var(--text-sm); color: var(--text-muted); text-decoration: line-through; }

/* ── Category card ───────────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}
.cat-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cat-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}
.cat-card__name { flex: 1; font-size: var(--text-base); font-weight: var(--weight-semibold); }
.cat-card__count { font-size: var(--text-xs); color: var(--text-muted); }
.cat-card__arrow { color: var(--text-muted); transition: transform .2s, color .2s; }
.cat-card:hover .cat-card__arrow { transform: translateX(3px); color: var(--brand); }

/* ── CTA ─────────────────────────────────────────────────── */
.cta-section { padding: var(--space-16) 0 var(--space-24); }
.cta-card {
    background: linear-gradient(135deg, #4f6ef7 0%, #a855f7 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-16) var(--space-8);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.18), transparent 50%);
    pointer-events: none;
}
.cta-card__title { font-size: var(--text-3xl); font-weight: var(--weight-bold); margin: 0 0 var(--space-3); position: relative; }
.cta-card__sub { font-size: var(--text-lg); opacity: .9; margin: 0 0 var(--space-6); position: relative; }
.cta-card .btn { background: #fff; color: var(--brand); border-color: #fff; position: relative; }
.cta-card .btn:hover { background: rgba(255,255,255,0.92); color: var(--brand); }


/* ============================================ */
/* Shop list page                                */
/* ============================================ */
.shop-header { margin-bottom: var(--space-10); }
.shop-header__eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.shop-header__title { font-size: var(--text-4xl); font-weight: var(--weight-bold); color: var(--text-primary); margin: 0; letter-spacing: -0.02em; }

.shop-section { margin-bottom: var(--space-12); }
.shop-section__head { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-6); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border-subtle); }
.shop-section__title { font-size: var(--text-xl); font-weight: var(--weight-semibold); color: var(--text-primary); margin: 0; }
.shop-section__count { color: var(--text-muted); font-size: var(--text-sm); }

.prod-card__sold-out {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 10px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.shop-empty { text-align: center; padding: var(--space-20) 0; color: var(--text-muted); }
.shop-empty svg { color: var(--text-muted); opacity: .35; margin-bottom: var(--space-4); }
.shop-empty p { font-size: var(--text-xl); margin: 0; }
.shop-empty__sub { font-size: var(--text-sm) !important; margin-top: var(--space-2) !important; }

/* ============================================ */
/* Product detail page                           */
/* ============================================ */
.pdp-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:var(--space-10);
    align-items:start;
}

/* ── Gallery ───────────────────────────────────── */
.pdp-gallery { display:flex; flex-direction:column; gap:var(--space-3); }
.pdp-main {
    aspect-ratio:1;
    background:var(--bg-subtle, #f5f5f5);
    border-radius:var(--radius);
    overflow:hidden;
    border:1px solid var(--border, #e5e5e5);
}
.pdp-main img { width:100%; height:100%; object-fit:cover; display:block; }
.pdp-main--empty {
    display:flex; align-items:center; justify-content:center;
    color:var(--text-muted); font-size:80px;
}
.pdp-thumbs {
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:var(--space-2);
}
.pdp-thumb {
    aspect-ratio:1;
    border:2px solid var(--border, #e5e5e5);
    border-radius:var(--radius-sm, 6px);
    overflow:hidden;
    padding:0;
    background:none;
    cursor:pointer;
    transition:border-color .15s;
}
.pdp-thumb:hover { border-color:var(--text-muted); }
.pdp-thumb.is-active { border-color:var(--brand, #4f46e5); }
.pdp-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* ── Info ──────────────────────────────────────── */
.pdp-cat {
    font-size:var(--text-sm);
    color:var(--text-muted);
    text-transform:uppercase;
    letter-spacing:.06em;
    margin-bottom:var(--space-2);
}
.pdp-title {
    font-size:var(--text-3xl);
    font-weight:var(--weight-bold);
    margin-bottom:var(--space-3);
    line-height:1.2;
}
.pdp-price-row {
    display:flex; align-items:center; gap:var(--space-3);
    margin-bottom:var(--space-6);
}
.pdp-price {
    font-size:var(--text-2xl);
    font-weight:var(--weight-bold);
    color:var(--text-primary);
}
.pdp-compare {
    text-decoration:line-through;
    color:var(--text-muted);
    font-size:var(--text-lg);
}
.pdp-sale {
    background:var(--brand, #4f46e5);
    color:#fff;
    border-radius:var(--radius-sm, 6px);
    padding:2px 8px;
    font-size:var(--text-sm);
    font-weight:var(--weight-medium);
}
.pdp-desc {
    color:var(--text-secondary);
    line-height:1.7;
    margin-bottom:var(--space-6);
}

/* ── Variants ──────────────────────────────────── */
.pdp-variants { margin-bottom:var(--space-5); }
.pdp-label {
    display:block;
    font-size:var(--text-sm);
    font-weight:var(--weight-semibold);
    color:var(--text-primary);
    margin-bottom:var(--space-2);
}
.pdp-variant-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));
    gap:var(--space-2);
}
.pdp-variant {
    position:relative;
    display:flex; flex-direction:column;
    padding:var(--space-3) var(--space-4);
    border:2px solid var(--border, #e5e5e5);
    border-radius:var(--radius, 8px);
    cursor:pointer;
    transition:all .15s;
    background:#fff;
}
.pdp-variant:hover { border-color:var(--text-muted); }
.pdp-variant.is-selected {
    border-color:var(--brand, #4f46e5);
    background:var(--brand-muted, #eef2ff);
}
.pdp-variant input[type=radio] { position:absolute; opacity:0; pointer-events:none; }
.pdp-variant__name {
    font-size:var(--text-sm);
    font-weight:var(--weight-semibold);
    color:var(--text-primary);
    margin-bottom:2px;
}
.pdp-variant__price {
    font-size:var(--text-sm);
    color:var(--text-secondary);
}
.pdp-variant.is-out { opacity:.5; cursor:not-allowed; }
.pdp-variant__badge {
    position:absolute; top:6px; right:6px;
    font-size:10px; text-transform:uppercase; letter-spacing:.05em;
    background:var(--danger, #ef4444); color:#fff;
    padding:1px 6px; border-radius:3px;
}

/* ── Stock indicator ───────────────────────────── */
.pdp-stock {
    font-size:var(--text-sm);
    margin-bottom:var(--space-3);
    min-height:1em;
}
.pdp-stock--ok  { color:#16a34a; }
.pdp-stock--low { color:#ea580c; }
.pdp-stock--out { color:var(--danger, #ef4444); }

/* ── Qty stepper ───────────────────────────────── */
.pdp-qty-row { margin-bottom: var(--space-4); }
.pdp-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    width: fit-content;
}
.pdp-qty-btn {
    width: 38px;
    background: var(--bg-surface-2, #f9fafb);
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    transition: background .12s;
    user-select: none;
}
.pdp-qty-btn:hover { background: var(--border, #e5e5e5); }
.pdp-qty {
    width: 60px;
    padding: var(--space-3) 0;
    border: none;
    border-left: 1px solid var(--border, #e5e5e5);
    border-right: 1px solid var(--border, #e5e5e5);
    font-size: var(--text-base);
    text-align: center;
    -moz-appearance: textfield;
    background: transparent;
}
.pdp-qty::-webkit-outer-spin-button,
.pdp-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Actions ───────────────────────────────────── */
.pdp-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}
.pdp-cta-add, .pdp-cta-buy { width: 100%; justify-content: center; }
.pdp-cta-add:disabled, .pdp-cta-buy:disabled { opacity: .6; cursor: not-allowed; }

.pdp-sku {
    color:var(--text-muted);
    font-size:var(--text-sm);
    margin-top:var(--space-4);
}
.pdp-sku span { font-family:var(--font-mono, monospace); }


/* ── Reviews section ─────────────────────── */
.reviews {
    margin-top: var(--space-16);
    padding-top: var(--space-10);
    border-top: 1px solid var(--border);
}
.reviews__header { margin-bottom: var(--space-6); }
.reviews__title { font-size: var(--text-2xl); font-weight: var(--weight-bold); margin: 0; color: var(--text-primary); }

.reviews__summary {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}
.reviews__avg { text-align: center; }
.reviews__avg-num { font-size: 56px; font-weight: var(--weight-bold); color: var(--text-primary); line-height: 1; }
.reviews__avg-stars { font-size: 18px; margin: var(--space-2) 0 var(--space-1); }
.reviews__avg-count { font-size: var(--text-xs); color: var(--text-muted); }

.reviews__breakdown { display: flex; flex-direction: column; gap: 6px; }
.reviews__bar-row { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.reviews__bar-label { width: 36px; color: var(--text-secondary); white-space: nowrap; }
.reviews__bar { flex: 1; height: 8px; background: var(--bg-surface-2); border-radius: 4px; overflow: hidden; }
.reviews__bar-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #f97316); transition: width .3s; }
.reviews__bar-count { width: 28px; text-align: right; color: var(--text-muted); font-size: var(--text-xs); }

.reviews__form, .reviews__own, .reviews__cant {
    padding: var(--space-5) var(--space-6);
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}
.reviews__form-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin: 0 0 var(--space-4); }
.reviews__cant { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-secondary); }
.reviews__own-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }

.reviews__list { display: flex; flex-direction: column; gap: var(--space-4); }
.reviews__empty { text-align: center; padding: var(--space-10); color: var(--text-muted); font-size: var(--text-sm); }

.rev-item {
    padding: var(--space-5) var(--space-6);
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
.rev-item__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.rev-item__avatar {
    width: 40px; height: 40px;
    min-width: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    overflow: hidden;
    letter-spacing: 0.02em;
}
img.rev-item__avatar { object-fit: cover; padding: 0; display: block; }
.rev-item__name { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); }
.rev-item__date { font-size: var(--text-xs); color: var(--text-muted); }
.rev-item__title { font-size: var(--text-base); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.rev-item__body { color: var(--text-secondary); line-height: 1.6; font-size: var(--text-sm); }

/* Star picker for write-review form */
.rev-picker { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rev-picker input { display: none; }
.rev-picker__star { font-size: 28px; color: #d1d5db; cursor: pointer; transition: color .12s; line-height: 1; }
.rev-picker__star:hover, .rev-picker__star:hover ~ .rev-picker__star,
.rev-picker input:checked ~ .rev-picker__star { color: #f59e0b; }

.rev-stars { display: inline-flex; gap: 1px; }
.rev-star { color: #d1d5db; font-size: 14px; line-height: 1; }
.rev-star.is-on { color: #f59e0b; }

/* ============================================ */
/* Cart page                                     */
/* ============================================ */
.cart-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-6);
}
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-6);
    align-items: start;
}
.cart-items .card { overflow: hidden; }
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    align-items: center;
    border-bottom: 1px solid var(--border, #e5e5e5);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img { width: 80px; height: 80px; border-radius: var(--radius, 8px); overflow: hidden; background: var(--bg-subtle, #f5f5f5); display: block; border: 1px solid var(--border-subtle, #f0f0f0); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item__img-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 30px; }
.cart-item__info { min-width: 0; }
.cart-item__name { display: block; font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-primary); text-decoration: none; margin-bottom: 2px; }
.cart-item__name:hover { color: var(--brand); }
.cart-item__price { font-size: var(--text-sm); color: var(--text-muted); }
.cart-item__qty-form { margin: 0; }
.cart-qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border, #e5e5e5); border-radius: 6px; overflow: hidden; }
.cart-qty-btn { width: 30px; height: 32px; background: var(--bg-surface-2, #f9fafb); border: none; cursor: pointer; font-size: 16px; color: var(--text-secondary); user-select: none; }
.cart-qty-btn:hover { background: var(--border, #e5e5e5); }
.cart-qty-val { width: 40px; text-align: center; font-size: var(--text-sm); border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 32px; line-height: 32px; }
.cart-item__total { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-primary); min-width: 60px; text-align: right; }
.cart-remove-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 4px; display: flex; align-items: center; }
.cart-remove-btn:hover { color: var(--danger, #ef4444); background: rgba(239,68,68,.08); }

.cart-summary { position: sticky; top: 80px; }
.cart-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); color: var(--text-primary); padding: 6px 0; }
.cart-row--muted { color: var(--text-secondary); }
.cart-row--total { font-size: var(--text-lg); font-weight: var(--weight-bold); padding-top: 10px; }
.cart-divider { border: none; border-top: 1px solid var(--border, #e5e5e5); margin: 8px 0; }

.cart-empty { text-align: center; padding: var(--space-16) var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.cart-empty__title { font-size: var(--text-xl); color: var(--text-secondary); margin: 0; }

/* ============================================ */
/* Checkout page                                 */
/* ============================================ */
.co-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--space-6);
}
.co-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    margin: 0;
}
.co-back {
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
}
.co-back:hover { color: var(--text-primary); }

.co-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-6);
    align-items: start;
}

/* Item rows */
.co-items .card { overflow: hidden; }
.co-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    align-items: center;
    border-bottom: 1px solid var(--border, #e5e5e5);
}
.co-item:last-child { border-bottom: none; }

.co-item__img {
    width: 80px; height: 80px;
    border-radius: var(--radius, 8px);
    overflow: hidden;
    background: var(--bg-subtle, #f5f5f5);
    display: block;
    border: 1px solid var(--border-subtle, #f0f0f0);
}
.co-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-item__img-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 30px; }

.co-item__info { min-width: 0; }
.co-item__name { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-primary); margin-bottom: 2px; }
.co-item__variant { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 2px; }
.co-item__sku { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono, monospace); }
.co-item__price { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 4px; }

.co-item__qty { display: flex; flex-direction: column; gap: 4px; }
.co-qty-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.co-qty-stepper { display: inline-flex; border: 1px solid var(--border, #e5e5e5); border-radius: 6px; overflow: hidden; }
.co-qty-btn { width: 30px; background: var(--bg-surface-2, #f9fafb); border: none; cursor: pointer; font-size: 16px; color: var(--text-secondary); user-select: none; }
.co-qty-btn:hover { background: var(--border, #e5e5e5); }
.co-qty-input { width: 44px; padding: 6px 0; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: var(--text-sm); text-align: center; -moz-appearance: textfield; background: transparent; }
.co-qty-input::-webkit-outer-spin-button,
.co-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.co-item__total { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-primary); }

/* Summary */
.co-summary { position: sticky; top: 80px; }
.co-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); color: var(--text-primary); padding: 6px 0; }
.co-row--muted { color: var(--text-secondary); }
.co-row--total { font-size: var(--text-lg); font-weight: var(--weight-bold); padding-top: 10px; }
.co-divider { border: none; border-top: 1px solid var(--border, #e5e5e5); margin: 8px 0; }

.co-pay-method {
    display: flex; align-items: flex-start; gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--brand, #4f46e5);
    border-radius: var(--radius, 8px);
    background: var(--brand-muted, #eef2ff);
    cursor: pointer;
}
.co-pay-method input { margin-top: 4px; }
.co-pay-method__name { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); margin-bottom: 2px; }
.co-pay-method__desc { font-size: var(--text-xs); color: var(--text-secondary); }

.co-place-btn { width: 100%; margin-top: var(--space-4); }
.co-fineprint { text-align: center; font-size: var(--text-xs); color: var(--text-muted); margin: var(--space-2) 0 0; }

/* ============================================ */
/* Checkout success page                         */
/* ============================================ */
.success-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-8);
    background: var(--bg-surface, #fff);
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--border, #e5e5e5);
}
.success-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--space-5);
}
.success-title { font-size: var(--text-2xl); font-weight: var(--weight-bold); margin: 0 0 var(--space-2); }
.success-subtitle { color: var(--text-secondary); margin: 0 0 var(--space-6); }

.success-items {
    text-align: left;
    background: var(--bg-surface-2, #f9fafb);
    border-radius: var(--radius, 8px);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}
.success-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: var(--text-sm); color: var(--text-primary); }
.success-item--total { border-top: 1px solid var(--border, #e5e5e5); margin-top: 6px; padding-top: 10px; font-weight: var(--weight-bold); font-size: var(--text-base); }

.success-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ============================================ */
/* Account index                                 */
/* ============================================ */
.acc-header__user { display: flex; align-items: center; gap: var(--space-5); }
.acc-avatar-wrap { position: relative; flex-shrink: 0; }
.acc-avatar {
    width: 80px; height: 80px;
    min-width: 80px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.02em;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
img.acc-avatar { object-fit: cover; padding: 0; display: block; }
.acc-avatar__edit {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bg-canvas);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: transform .15s, color .15s;
}
.acc-avatar__edit:hover { transform: scale(1.08); color: var(--brand); }

/* ============================================ */
/* Account order page                            */
/* ============================================ */
.ord-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-6); align-items: start; }

.ord-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
    align-items: flex-start;
}
.ord-item:last-child { border-bottom: none; }
.ord-item__img { width: 80px; height: 80px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-surface-2); border: 1px solid var(--border-subtle); }
.ord-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ord-item__img-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 28px; }
.ord-item__body { min-width: 0; }
.ord-item__name { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-primary); margin-bottom: 2px; }
.ord-item__sku { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono, monospace); }
.ord-item__qty { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 4px; }
.ord-item__total { font-size: var(--text-base); font-weight: var(--weight-semibold); }

.ord-keys { margin-top: var(--space-3); padding: var(--space-3); background: var(--bg-surface-2); border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
.ord-keys__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: var(--space-2); font-weight: var(--weight-semibold); }
.ord-key { display: flex; align-items: center; gap: var(--space-2); padding: 4px 0; }
.ord-key code { flex: 1; font-family: var(--font-mono, monospace); font-size: var(--text-xs); background: #fff; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border-subtle); word-break: break-all; }
.ord-key__copy { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; border-radius: 4px; display: flex; align-items: center; }
.ord-key__copy:hover { color: var(--brand); background: var(--bg-surface-3); }

.ord-summary { position: sticky; top: 80px; }
.ord-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: var(--text-sm); }
.ord-row--total { font-size: var(--text-lg); font-weight: var(--weight-bold); padding-top: 10px; }
.ord-divider { border: none; border-top: 1px solid var(--border-subtle); margin: 8px 0; }


/* ═════════════════════════════════════════════════════════════════════
 *  FRONT REDESIGN — v2
 *
 *  Adds mobile nav (hamburger + slide-out drawer), refines the hero
 *  with animated blobs + stat strip, and ships five new sections:
 *  trust strip, testimonials, newsletter, refined category tiles,
 *  refined CTA card. Every value drives off theme CSS variables so
 *  the theme editor still steers the whole look.
 * ═════════════════════════════════════════════════════════════════════ */


/* ── Mobile nav — hamburger + drawer ─────────────────────────────── */

.nav__hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--bg-canvas);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: border-color .15s, background .15s;
}
.nav__hamburger:hover { border-color: var(--brand); }
.nav__hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}
.nav__hamburger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__drawer {
    position: fixed;
    inset: 0;
    z-index: 9998;
    visibility: hidden;
    pointer-events: none;
}
.nav__drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.nav__drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .25s;
}
.nav__drawer.is-open .nav__drawer-backdrop { opacity: 1; }

.nav__drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 90vw;
    background: var(--bg-canvas);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}
.nav__drawer.is-open .nav__drawer-panel { transform: translateX(0); }

.nav__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}
.nav__drawer-logo {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    text-decoration: none;
}
.nav__drawer-logo img { max-height: 32px; display: block; }

.nav__drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, color .12s;
}
.nav__drawer-close:hover { background: var(--bg-surface-2); color: var(--text-primary); }

.nav__drawer-links {
    display: flex;
    flex-direction: column;
    padding: 12px 12px;
    gap: 2px;
}

.nav__drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    transition: background .12s, color .12s;
}
.nav__drawer-link svg { color: var(--text-muted); flex-shrink: 0; }
.nav__drawer-link:hover,
.nav__drawer-link.is-active {
    background: var(--bg-surface);
    color: var(--brand);
}
.nav__drawer-link:hover svg,
.nav__drawer-link.is-active svg { color: var(--brand); }

.nav__drawer-badge {
    margin-left: auto;
    background: var(--brand);
    color: #fff;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: var(--weight-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav__drawer-sep {
    height: 1px;
    background: var(--border-subtle);
    margin: 8px 20px;
}

.nav__drawer-userCard {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.nav__drawer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--brand-muted);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--weight-bold);
}
.nav__drawer-userName { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); }
.nav__drawer-userEmail { font-size: var(--text-xs); color: var(--text-muted); }

.nav__drawer-foot {
    margin-top: auto;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
    .nav__desktop-only { display: none !important; }
    .nav__links        { display: none; }
    .nav__hamburger    { display: flex; }
}


/* ── Hero refresh — animated blobs + stat strip ─────────────────── */

@keyframes hero-float-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -20px) scale(1.08); }
}
@keyframes hero-float-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-20px, 30px) scale(1.1); }
}
@keyframes hero-float-c {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    50%      { transform: translate(15px, 20px) scale(0.95); opacity: 0.5; }
}

.hero__blob--1 {
    background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
    animation: hero-float-a 14s ease-in-out infinite;
}
.hero__blob--2 {
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    animation: hero-float-b 18s ease-in-out infinite;
}
.hero__blob--3 {
    position: absolute;
    top: 20%;
    left: 40%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
    opacity: 0.35;
    animation: hero-float-c 16s ease-in-out infinite;
}

.hero__badge {
    background: var(--bg-canvas);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hero__title-grad {
    background: linear-gradient(135deg, var(--brand) 0%, #a855f7 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero__stats {
    list-style: none;
    padding: 0;
    margin: var(--space-10) 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-4) 0;
    border-left: 1px solid var(--border-subtle);
}
.hero__stat:first-child { border-left: none; }
.hero__stat-num {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}
.hero__stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--weight-medium);
}


/* ── Trust strip ───────────────────────────────────────────────── */

.trust {
    padding: var(--space-12) 0;
    background: var(--bg-canvas);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}
.trust__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}
.trust__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--brand-muted);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trust__body { min-width: 0; }
.trust__title {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: 2px;
}
.trust__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.5;
}


/* ── Categories — refined tile w/ icon + body ──────────────────── */

.cat-card {
    display: flex !important;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) !important;
}
.cat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--brand-muted);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.cat-card__body {
    flex: 1;
    min-width: 0;
}
.cat-card:hover .cat-card__icon {
    background: var(--brand);
    color: #fff;
}


/* ── Section head variant — centered ───────────────────────────── */

.section__head--center {
    justify-content: center;
    text-align: center;
}
.section__head--center > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ── Testimonials ──────────────────────────────────────────────── */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}
.testimonial {
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.testimonial:hover {
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.testimonial__stars {
    color: #f59e0b;
    font-size: var(--text-lg);
    letter-spacing: 2px;
    line-height: 1;
}
.testimonial__quote {
    margin: 0;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: var(--weight-medium);
}
.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
}
.testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--weight-bold);
    font-size: var(--text-base);
    flex-shrink: 0;
}
.testimonial__name {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    line-height: 1.2;
}
.testimonial__role {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 2px;
}


/* ── Newsletter ────────────────────────────────────────────────── */

.newsletter {
    position: relative;
    border-radius: var(--radius-lg);
    padding: var(--space-16) var(--space-10);
    background:
        radial-gradient(circle at 15% 50%, rgba(79, 110, 247, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 85% 50%, rgba(168, 85, 247, 0.35) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #fff;
    overflow: hidden;
    text-align: center;
}
.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.newsletter__inner {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.newsletter__eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--weight-semibold);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--space-4);
}
.newsletter__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: var(--weight-bold);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 var(--space-3);
}
.newsletter__sub {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 var(--space-6);
}
.newsletter__form {
    display: flex;
    gap: var(--space-2);
    max-width: 440px;
    margin: 0 auto;
}
.newsletter__input {
    flex: 1;
    height: 48px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: var(--text-base);
    outline: none;
    transition: border-color .15s, background .15s;
}
.newsletter__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter__input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}
.newsletter__btn {
    height: 48px;
    flex-shrink: 0;
}


/* ── CTA card refresh ──────────────────────────────────────────── */

.cta-card__eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--weight-semibold);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: var(--space-4);
}
.cta-card__actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-6);
}
.cta-card__ghost {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}
.cta-card__ghost:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}


/* ── Responsive — everything above ─────────────────────────────── */

@media (max-width: 900px) {
    .hero__stats       { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
    .hero__stat        { border-left: none; border-top: 1px solid var(--border-subtle); padding-top: var(--space-4); }
    .hero__stat:nth-child(2) { border-top: none; }
    .hero__stat:first-child  { border-top: none; }
    .trust__grid       { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
    .testimonial-grid  { grid-template-columns: 1fr; }
    .cat-grid          { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero__stats       { grid-template-columns: 1fr 1fr; }
    .trust__grid       { grid-template-columns: 1fr; gap: var(--space-5); }
    .newsletter        { padding: var(--space-10) var(--space-5); }
    .newsletter__form  { flex-direction: column; }
    .newsletter__btn   { width: 100%; }
    .cta-card__actions { flex-direction: column; }
    .cta-card__actions .btn { width: 100%; }
}


/* ═════════════════════════════════════════════════════════════════════
 *  FRONT REDESIGN — v3  (product card · shop · PDP · cart · auth)
 *
 *  Appended after the original `.prod-*` / `.shop-*` / `.cart-*` /
 *  `.pdp-*` / `.auth-*` blocks so the CSS cascade overrides them with
 *  the polished versions below.
 * ═════════════════════════════════════════════════════════════════════ */


/* ── Product card — refined ────────────────────────────────────── */

.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}
.prod-card {
    position: relative;
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.prod-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}
.prod-card__img {
    aspect-ratio: 4 / 3;
    width: 100%;
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prod-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prod-card:hover .prod-card__img img { transform: scale(1.06); }
.prod-card__img-empty {
    color: var(--text-muted);
    opacity: 0.4;
}
.prod-card__sale,
.prod-card__sold-out {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: 5px 10px;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    line-height: 1;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.prod-card__sale     { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.prod-card__sold-out { background: var(--text-primary); top: var(--space-3); left: auto; right: var(--space-3); }

.prod-card__body {
    padding: var(--space-4) var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}
.prod-card__name {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(var(--text-base) * 1.35 * 2);
}
.prod-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-top: auto;
}
.prod-card__price-now {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--brand);
    letter-spacing: -0.02em;
}
.prod-card__price-was {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}


/* ── Shop page — polished header + section rhythm ─────────────── */

.shop-header {
    padding: var(--space-10) 0 var(--space-8);
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-10);
}
.shop-header__eyebrow {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-3);
}
.shop-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.shop-section { margin-bottom: var(--space-16); }
.shop-section:last-child { margin-bottom: var(--space-10); }

.shop-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}
.shop-section__title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin: 0;
}
.shop-section__count {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--weight-medium);
}

.shop-empty {
    padding: var(--space-16) var(--space-8);
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-subtle);
}
.shop-empty svg { color: var(--text-muted); opacity: 0.4; margin-bottom: var(--space-4); }
.shop-empty p   { margin: 0; font-size: var(--text-base); color: var(--text-primary); font-weight: var(--weight-medium); }
.shop-empty__sub { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-2) !important; font-weight: normal !important; }

.shop-header__back {
    color: var(--brand);
    text-decoration: none;
    font-weight: var(--weight-semibold);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.15s ease;
}
.shop-header__back:hover { color: var(--brand-hover); }

/* ── Category tile grid (grouping display mode) ──────────────── */

.cat-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-6);
}
.cat-tile {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.cat-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.cat-tile:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--brand) 35%, transparent);
}
.cat-tile:hover::before { opacity: 1; }
.cat-tile__img {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-subtle);
}
.cat-tile__img--empty { color: var(--text-muted); opacity: 0.35; }
.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile__body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}
.cat-tile__name {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.cat-tile__desc {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-tile__count {
    margin-top: auto;
    font-size: var(--text-xs);
    color: var(--brand);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ── Product detail page (PDP) ─────────────────────────────────── */

.pdp-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-10);
    align-items: start;
}

.pdp-gallery { position: sticky; top: calc(var(--nav-height) + var(--space-4)); }

.pdp-main {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdp-main--empty { color: var(--text-muted); }
.pdp-main--empty span { font-size: 96px; opacity: 0.25; }

.pdp-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
    margin-top: var(--space-3);
}
.pdp-thumb {
    aspect-ratio: 1 / 1;
    border: 2px solid var(--border-subtle);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
}
.pdp-thumb:hover { transform: translateY(-1px); }
.pdp-thumb.is-active { border-color: var(--brand); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdp-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.pdp-cat {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--weight-semibold);
    color: var(--brand);
    margin: 0;
}
.pdp-name {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: var(--weight-bold);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 0;
}

.pdp-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.pdp-price-now {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--brand);
    letter-spacing: -0.02em;
}
.pdp-price-was {
    font-size: var(--text-lg);
    color: var(--text-muted);
    text-decoration: line-through;
}
.pdp-price-save {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pdp-desc {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
}
.pdp-desc p:first-child { margin-top: 0; }
.pdp-desc p:last-child  { margin-bottom: 0; }

.pdp-variants,
.pdp-qty {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.pdp-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}
.pdp-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.pdp-variant {
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    background: var(--bg-canvas);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.pdp-variant:hover           { border-color: var(--text-muted); }
.pdp-variant.is-active       { border-color: var(--brand); background: var(--brand-muted); color: var(--brand); }
.pdp-variant.is-disabled     { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }

.pdp-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: fit-content;
    background: var(--bg-canvas);
}
.pdp-qty-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    font-size: var(--text-xl);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .12s, color .12s;
}
.pdp-qty-btn:hover { background: var(--bg-surface); color: var(--brand); }
.pdp-qty-val {
    min-width: 50px;
    text-align: center;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    padding: 0 var(--space-2);
}

.pdp-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
}
.pdp-actions .btn { flex: 1; }

.pdp-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}
.pdp-stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.pdp-stock.is-low::before   { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }
.pdp-stock.is-out::before   { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }

.pdp-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-sm);
    color: var(--text-muted);
}
.pdp-meta-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
}
.pdp-meta-row strong { color: var(--text-primary); font-weight: var(--weight-medium); }


/* ── Cart page — cleaner rows + summary ─────────────────────────── */

.cart-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: var(--weight-bold);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 var(--space-8);
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-6);
    align-items: start;
}

.cart-items .card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto auto auto;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img-empty {
    font-size: 40px;
    color: var(--text-muted);
    opacity: 0.4;
}

.cart-item__info { min-width: 0; }
.cart-item__name {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 4px;
}
.cart-item__name:hover { color: var(--brand); }
.cart-item__price {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.cart-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-canvas);
}
.cart-qty-btn {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .12s, color .12s;
}
.cart-qty-btn:hover { background: var(--bg-surface); color: var(--brand); }
.cart-qty-val {
    min-width: 40px;
    text-align: center;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.cart-item__total {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    min-width: 80px;
    text-align: right;
}

.cart-remove-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, color .12s;
}
.cart-remove-btn:hover { background: #fee2e2; color: #dc2626; }

.cart-summary .card {
    border-radius: var(--radius-lg);
    position: sticky;
    top: calc(var(--nav-height) + var(--space-4));
}
.cart-summary .card-header {
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
}
.cart-summary .card-title {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin: 0;
}
.cart-summary .card-body { padding: var(--space-5); }

.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--text-primary);
    padding: 8px 0;
}
.cart-row--muted span:last-child { color: #16a34a; font-weight: var(--weight-semibold); }
.cart-row--total {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    padding-top: var(--space-3);
}
.cart-row--total span:last-child { color: var(--brand); font-size: var(--text-xl); }
.cart-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: var(--space-3) 0;
}

.cart-empty {
    padding: var(--space-16) var(--space-8);
    text-align: center;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-subtle);
}
.cart-empty svg { color: var(--text-muted); opacity: 0.4; margin-bottom: var(--space-4); }
.cart-empty__title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-5) !important;
}


/* ── Auth pages — login / register polish ──────────────────────── */

.auth-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-4);
    position: relative;
    background: var(--bg-surface);
}
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(79, 110, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-10) var(--space-8);
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}
.auth-logo__text {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
}

.auth-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--weight-bold);
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-2);
}
.auth-sub {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0 0 var(--space-6);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-5) 0;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-footer {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-6);
}
.auth-footer a {
    color: var(--brand);
    font-weight: var(--weight-semibold);
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }


/* ── Refined section rhythm — extra breathing room ─────────────── */

.section { padding: var(--space-20) 0; }
.section--alt { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }


/* ── Responsive — new v3 breakpoints ───────────────────────────── */

@media (max-width: 1000px) {
    .prod-grid { grid-template-columns: repeat(3, 1fr); }
    .pdp-grid  { grid-template-columns: 1fr; gap: var(--space-6); }
    .pdp-gallery { position: static; }
    .cart-grid   { grid-template-columns: 1fr; }
    .cart-summary .card { position: static; }
}

@media (max-width: 768px) {
    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
    .shop-header { padding: var(--space-8) 0 var(--space-6); margin-bottom: var(--space-6); }
    .shop-section { margin-bottom: var(--space-10); }
    .cart-item {
        grid-template-columns: 72px 1fr auto;
        grid-template-areas:
            "img info remove"
            "img qty  total";
        gap: var(--space-3);
        padding: var(--space-4);
    }
    .cart-item__img     { width: 72px; height: 72px; grid-area: img; }
    .cart-item__info    { grid-area: info; }
    .cart-item__qty-form { grid-area: qty; justify-self: start; }
    .cart-item__total   { grid-area: total; justify-self: end; }
    .cart-item__remove  { grid-area: remove; justify-self: end; }
    .pdp-name { font-size: var(--text-2xl); }
    .pdp-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .prod-grid { grid-template-columns: 1fr; }
    .auth-card { padding: var(--space-8) var(--space-5); }
}


/* ═════════════════════════════════════════════════════════════════════
 *  FRONT REDESIGN — v4 · FUTURIST
 *
 *  Crank everything up. Space Grotesk display font on big headings,
 *  animated mesh gradient backgrounds, glowing gradient buttons,
 *  holographic title effects, glass-surface buy panels, magnetic
 *  hover states, subtle noise overlay. Every accent drives off the
 *  same three-stop palette so themes can recolor the whole vibe.
 * ═════════════════════════════════════════════════════════════════════ */


/* ── Global palette extension ─────────────────────────────────── */

:root {
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

    /* Accent stack used by gradients/glows — all drive off --brand
       plus a fixed purple + cyan so dark-themed stores get a cool
       neon vibe and warm-themed ones still look tasteful. */
    --accent-1: var(--brand);
    --accent-2: #a855f7;
    --accent-3: #22d3ee;

    --glow-brand:   0 0 0 0 rgba(79, 110, 247, 0);
    --glow-brand-h: 0 12px 40px rgba(79, 110, 247, 0.35), 0 0 0 1px rgba(79, 110, 247, 0.2);

    /* Grainy overlay used by .grain::after — pure CSS, no image fetch. */
    --grain:
        radial-gradient(ellipse at 20% 10%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(34, 211, 238, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(79, 110, 247, 0.10) 0%, transparent 60%);
}


/* ── Body: subtle page-wide mesh tint ─────────────────────────── */

body {
    font-family: var(--font-body, var(--font-sans));
    background: var(--bg-canvas);
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: var(--grain);
    opacity: 0.4;
}
main { position: relative; z-index: 1; }


/* ── Display typography — Space Grotesk on headings ───────────── */

h1, h2, h3, .hero__title, .section__title, .cta-card__title,
.shop-header__title, .cart-title, .pdp-title, .newsletter__title {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    font-weight: 700;
}


/* ── Reusable: holographic gradient text ──────────────────────── */

.holo,
.hero__title-grad,
.pdp-price,
.pdp-price-now,
.cart-row--total span:last-child,
.prod-card__price-now {
    background: linear-gradient(120deg,
        var(--accent-1) 0%,
        var(--accent-2) 40%,
        var(--accent-3) 80%,
        var(--accent-1) 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: holo-shift 8s ease-in-out infinite;
}
@keyframes holo-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}


/* ── Buttons — glow + gradient border on hover ────────────────── */

.btn--primary {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%) !important;
    border: none !important;
    color: #fff !important;
    position: relative;
    box-shadow: 0 8px 24px rgba(79, 110, 247, 0.25), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transition: box-shadow .3s, transform .2s;
    overflow: hidden;
}
.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%);
    opacity: 0;
    transition: opacity .3s;
    z-index: 0;
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover {
    box-shadow: 0 14px 40px rgba(79, 110, 247, 0.45), 0 0 0 1px rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
}
.btn--primary:hover::before { opacity: 1; }

.btn--outline {
    background: var(--bg-canvas) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.btn--outline:hover {
    border-color: transparent !important;
    box-shadow:
        inset 0 0 0 1.5px transparent,
        0 0 0 1.5px var(--accent-1),
        0 8px 24px rgba(79, 110, 247, 0.15);
    transform: translateY(-1px);
}

.btn--lg { height: 56px !important; padding: 0 var(--space-7) !important; font-size: var(--text-base) !important; }


/* ── Hero — mesh gradient + huge display title ────────────────── */

.hero {
    padding: var(--space-24) 0 var(--space-20);
    background: var(--bg-canvas);
    position: relative;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
}
.hero__blob--1 {
    top: -15%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 60%);
}
.hero__blob--2 {
    bottom: -25%;
    left: -10%;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%);
    opacity: 0.35;
}
.hero__blob--3 {
    top: 30%;
    left: 45%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--accent-3) 0%, transparent 60%);
    opacity: 0.35;
}
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero__inner { position: relative; z-index: 1; text-align: center; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-6);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
}
.hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-5);
}
.hero__sub {
    font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
}


/* ── Product card — holographic hover border ──────────────────── */

.prod-card {
    position: relative;
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .35s;
}
.prod-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
    z-index: 2;
}
.prod-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 22px 50px rgba(79, 110, 247, 0.18),
        0 0 0 1px rgba(79, 110, 247, 0.1);
}
.prod-card:hover::before { opacity: 1; }

.prod-card__img { aspect-ratio: 4 / 3; }
.prod-card__body { padding: var(--space-5); gap: var(--space-2); }
.prod-card__name {
    font-family: var(--font-display);
    font-size: var(--text-base);
    letter-spacing: -0.01em;
}
.prod-card__price-now {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    /* holo applied via the reusable rule above */
}
.prod-card__sale {
    background: linear-gradient(135deg, #f59e0b, #ec4899) !important;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}


/* ── PDP — the big one ────────────────────────────────────────── */

.pdp-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-12);
    align-items: start;
    position: relative;
}

/* Decorative gradient mesh behind the PDP */
.pdp-grid::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    right: -80px;
    bottom: -80px;
    background:
        radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(34, 211, 238, 0.12) 0%, transparent 40%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.pdp-gallery {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-5));
}
.pdp-main {
    aspect-ratio: 1 / 1;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
    transition: transform .4s;
}
.pdp-main::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    z-index: 2;
}
.pdp-main:hover::before { opacity: 1; }
.pdp-main img { transition: transform .6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pdp-main:hover img { transform: scale(1.04); }

.pdp-thumbs { margin-top: var(--space-3); grid-template-columns: repeat(5, 1fr); }
.pdp-thumb {
    aspect-ratio: 1 / 1;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-surface);
    padding: 0;
    transition: border-color .2s, transform .2s;
}
.pdp-thumb.is-active {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.15);
}
.pdp-thumb:hover { transform: translateY(-2px); }

.pdp-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.pdp-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-1);
    font-weight: var(--weight-semibold);
    margin: 0;
    padding: 6px 12px;
    background: rgba(79, 110, 247, 0.08);
    border: 1px solid rgba(79, 110, 247, 0.2);
    border-radius: 999px;
    align-self: flex-start;
}
.pdp-cat::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.3);
}

.pdp-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.pdp-price-row {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    margin: var(--space-2) 0;
}
.pdp-price, .pdp-price-now {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    /* holo gradient from reusable rule above */
}
.pdp-compare {
    font-size: var(--text-lg);
    color: var(--text-muted);
    text-decoration: line-through;
    font-family: var(--font-display);
    font-weight: 500;
}
.pdp-sale {
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
}

.pdp-desc {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Variant pills with gradient-border active state */
.pdp-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: var(--weight-semibold);
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--space-2);
}
.pdp-variants { margin-top: var(--space-2); }
.pdp-variant-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.pdp-variant {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px;
    border: 1.5px solid var(--border);
    background: var(--bg-canvas);
    border-radius: var(--radius-md);
    cursor: pointer;
    min-width: 110px;
    transition: border-color .2s, transform .2s, box-shadow .3s;
}
.pdp-variant input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pdp-variant__name {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.pdp-variant__price {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}
.pdp-variant:hover { transform: translateY(-2px); border-color: var(--text-muted); }
.pdp-variant.is-selected {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(79, 110, 247, 0.08), rgba(168, 85, 247, 0.08));
    box-shadow:
        0 0 0 2px transparent,
        0 0 0 2px var(--accent-1),
        0 10px 24px rgba(79, 110, 247, 0.2);
}
.pdp-variant.is-selected .pdp-variant__name {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pdp-variant.is-out {
    opacity: 0.5;
    cursor: not-allowed;
}
.pdp-variant.is-out .pdp-variant__name { text-decoration: line-through; }
.pdp-variant__badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--text-primary);
    color: #fff;
    font-size: 9px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
}

/* Stock indicator as a monospace pill with pulsing dot */
.pdp-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--weight-semibold);
    color: #15803d;
    padding: 6px 14px;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: 999px;
    width: fit-content;
}
.pdp-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: dot-pulse 2s ease-in-out infinite;
}
.pdp-stock.is-low {
    color: #b45309;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}
.pdp-stock.is-low::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.pdp-stock.is-out {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}
.pdp-stock.is-out::before { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }

/* Qty stepper — glass panel */
.pdp-qty-row { margin-top: var(--space-2); }
.pdp-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--bg-canvas);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
}
.pdp-qty-btn {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.pdp-qty-btn:hover { background: rgba(79, 110, 247, 0.08); color: var(--accent-1); }
.pdp-qty {
    width: 56px;
    height: 48px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
}

/* Action buttons — stacked huge with glow */
.pdp-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-3);
}
.pdp-actions .btn {
    width: 100%;
    height: 60px !important;
    font-size: var(--text-base) !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}
.pdp-cta-buy {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2)) !important;
    box-shadow:
        0 0 0 1px rgba(79, 110, 247, 0.2),
        0 20px 40px rgba(79, 110, 247, 0.3),
        0 0 60px rgba(168, 85, 247, 0.25) !important;
    position: relative;
    overflow: hidden;
}
.pdp-cta-buy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left .7s;
}
.pdp-cta-buy:hover::after { left: 100%; }
.pdp-cta-buy:hover {
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.3),
        0 24px 48px rgba(79, 110, 247, 0.4),
        0 0 80px rgba(168, 85, 247, 0.35) !important;
    transform: translateY(-2px);
}

.pdp-cta-add {
    background: var(--bg-canvas) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}
.pdp-cta-add:hover {
    border-color: var(--accent-1) !important;
    color: var(--accent-1) !important;
    box-shadow: 0 10px 30px rgba(79, 110, 247, 0.15) !important;
}

.pdp-sku {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: var(--space-2) 0 0;
    padding-top: var(--space-4);
    border-top: 1px dashed var(--border);
}
.pdp-sku span { color: var(--text-primary); font-weight: var(--weight-semibold); }


/* ── Hero stats — refined with gradient numbers ────────────────── */

.hero__stat-num {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ── Section titles — display font + tight tracking ────────────── */

.section__title,
.shop-header__title,
.cart-title {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}


/* ── Nav — subtle glass effect ─────────────────────────────────── */

.nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}


/* ── Responsive tweaks for the futurist layer ─────────────────── */

@media (max-width: 1000px) {
    .pdp-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .pdp-gallery { position: static; }
    .pdp-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
    .pdp-price, .pdp-price-now { font-size: clamp(2rem, 6vw, 2.75rem); }
}
