/* ============================================================
   Rapid Retail Solutions — "Aurora Commerce" design system
   A completely new layout: top navbar, gradient hero bands,
   card-grid sections, dialog-style bag & checkout.
   Palette: deep space navy / electric indigo / coral ember.
   ============================================================ */

:root {
    --ink: #151a3d;            /* deep space navy */
    --ink-soft: #232a5c;
    --primary: #4f46e5;        /* electric indigo */
    --primary-dark: #3b32c8;
    --primary-ghost: #eef0ff;
    --accent: #ff6b4a;         /* coral ember */
    --accent-dark: #e8532f;
    --teal: #0fb5a6;
    --bg: #f1f3fb;             /* frost blue */
    --surface: #ffffff;
    --line: #dfe3f2;
    --muted: #5d6480;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --shadow-card: 0 14px 34px -18px rgba(21, 26, 61, 0.28);
    --shadow-pop: 0 30px 70px -25px rgba(21, 26, 61, 0.45);
    --font-head: "Space Grotesk", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Outfit", "Segoe UI", Verdana, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 480px at 110% -5%, rgba(79, 70, 229, 0.10), transparent 60%),
        radial-gradient(900px 420px at -10% 30%, rgba(255, 107, 74, 0.08), transparent 55%),
        var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink-soft); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.shell { width: min(1240px, 92vw); margin: 0 auto; }

/* ------------------------------------------------------------
   HEADER — dark top bar + glassy nav (nothing like old sidebar)
   ------------------------------------------------------------ */
.topbar {
    background: linear-gradient(90deg, var(--ink) 0%, #26215e 55%, #43277a 100%);
    color: #e9ebff;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 9px 16px;
}
.topbar strong { color: #ffd9ce; font-weight: 600; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px;
    background: conic-gradient(from 210deg, var(--primary), #7c5cff, var(--accent), var(--primary));
    display: grid; place-items: center;
    color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 17px;
    box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.65);
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand-tag { display: block; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    font-weight: 500; font-size: 14.5px; color: var(--muted);
    padding: 9px 16px; border-radius: 999px; transition: all 0.25s ease;
}
.main-nav a:hover { color: var(--ink); background: var(--primary-ghost); }
.main-nav a.active { color: #fff; background: var(--ink); }

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

.bag-btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--primary); color: #fff; border: none; cursor: pointer;
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    padding: 10px 18px; border-radius: 999px;
    box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.7);
    transition: all 0.25s ease;
}
.bag-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.bag-count {
    background: var(--accent); color: #fff; min-width: 21px; height: 21px;
    border-radius: 999px; display: grid; place-items: center;
    font-size: 11.5px; font-weight: 700; padding: 0 6px;
    transition: transform 0.25s ease;
}
.bag-count.pulse { transform: scale(1.35); }

.menu-btn {
    display: none; background: var(--surface); border: 1px solid var(--line);
    width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
    align-items: center; justify-content: center; color: var(--ink);
}

/* Mobile dropdown panel (slides DOWN, unlike old left slide) */
.mobile-panel {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.mobile-panel.open { display: block; }
.mobile-panel a {
    display: block; padding: 15px 6vw; font-weight: 600; font-size: 16px;
    border-top: 1px dashed var(--line); color: var(--ink);
}
.mobile-panel a:hover { color: var(--primary); background: var(--primary-ghost); }

@media (max-width: 920px) {
    .main-nav { display: none; }
    .menu-btn { display: inline-flex; }
    .brand-tag { display: none; }
}

/* ------------------------------------------------------------
   PAGE HERO BANNERS
   ------------------------------------------------------------ */
.page-hero {
    padding: 64px 0 56px;
    text-align: center;
    position: relative;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); margin-bottom: 10px; }
.page-hero p.lead { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--primary-dark); font-weight: 600; font-size: 11.5px;
    letter-spacing: 0.2em; text-transform: uppercase;
    padding: 7px 16px; border-radius: 999px;
    box-shadow: 0 6px 14px -10px rgba(21, 26, 61, 0.4);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ------------------------------------------------------------
   HOME HERO — centered gradient stage (old one was split 5/7)
   ------------------------------------------------------------ */
.hero {
    position: relative;
    padding: 76px 0 0;
    text-align: center;
    overflow: hidden;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    margin: 20px auto 18px;
    max-width: 820px;
}
.hero h1 .grad {
    background: linear-gradient(95deg, var(--primary) 10%, #8b5cf6 50%, var(--accent) 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
    color: var(--muted); font-size: 1.1rem; max-width: 660px; margin: 0 auto 34px;
}
.hero-cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 58px; }

.hero-stage {
    position: relative;
    width: min(980px, 92vw);
    margin: 0 auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(160deg, #1b2050 0%, #37307f 55%, #6d3a8f 100%);
    padding: 22px 22px 0;
    box-shadow: var(--shadow-pop);
}
.hero-stage::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px 220px at 75% 0%, rgba(255, 107, 74, 0.35), transparent 70%);
    border-radius: inherit; pointer-events: none;
}
.hero-stage img {
    width: 100%; height: clamp(260px, 42vw, 440px); object-fit: cover;
    border-radius: 14px 14px 0 0;
}
.hero-chip {
    position: absolute; background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 13px;
    box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 8px; z-index: 5;
}
.hero-chip svg { color: var(--teal); }
.chip-a { top: 14%; left: max(2vw, calc(50% - 560px)); }
.chip-b { bottom: 22%; right: max(2vw, calc(50% - 560px)); }
@media (max-width: 1100px) { .hero-chip { display: none; } }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    padding: 14px 30px; border-radius: 999px; border: none; cursor: pointer;
    transition: all 0.25s ease; text-align: center;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 26px -12px rgba(21, 26, 61, 0.6); }
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 14px 26px -12px rgba(255, 107, 74, 0.6); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------
   SECTIONS
   ------------------------------------------------------------ */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 16px 0 10px; }
.section-head p { color: var(--muted); margin: 0; }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Why-us — floating tile grid (old was 2-col icon rows) */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

.tile {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 30px 26px;
    position: relative; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile::after {
    content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 4px;
    border-radius: 0 0 6px 6px; background: var(--tile-color, var(--primary));
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.tile-icon {
    width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px;
    display: grid; place-items: center; color: #fff;
    background: var(--tile-color, var(--primary));
    box-shadow: 0 10px 20px -10px var(--tile-color, var(--primary));
}
.tile h3 { font-size: 1.22rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ------------------------------------------------------------
   PRODUCT CARDS — landscape media + footer bar (new anatomy)
   ------------------------------------------------------------ */
.product-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
    transition: opacity 0.35s ease; min-height: 320px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .product-grid { grid-template-columns: 1fr; } }

.p-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: #c7cdeb; }

.p-media {
    background: linear-gradient(170deg, #f7f8ff 0%, #eceefc 100%);
    height: 215px; display: grid; place-items: center; padding: 22px; position: relative;
}
.p-media img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.5s ease; }
.p-card:hover .p-media img { transform: scale(1.07) rotate(-1deg); }
.p-sku {
    position: absolute; top: 12px; left: 12px;
    background: rgba(21, 26, 61, 0.85); color: #fff;
    font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
    padding: 4px 10px; border-radius: 999px;
}
.p-rating {
    position: absolute; top: 12px; right: 12px;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); font-size: 11.5px; font-weight: 700;
    padding: 4px 9px; border-radius: 999px; display: flex; align-items: center; gap: 4px;
}
.p-rating svg { color: #f5a623; }

.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; margin-bottom: 6px; }
.p-name {
    font-family: var(--font-head); font-weight: 600; font-size: 15.5px; line-height: 1.35;
    margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.6em;
}
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-price { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.p-add {
    background: var(--primary-ghost); color: var(--primary-dark);
    border: none; cursor: pointer; font-family: var(--font-body);
    font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 9px 15px; border-radius: 999px; transition: all 0.25s ease;
    display: inline-flex; align-items: center; gap: 6px;
}
.p-add:hover { background: var(--primary); color: #fff; }

/* Category pills — segmented rail */
.cat-rail {
    display: flex; gap: 10px; overflow-x: auto; padding: 6px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; margin-bottom: 40px;
    scrollbar-width: none;
    width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-pill {
    border: none; cursor: pointer; white-space: nowrap;
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    padding: 10px 22px; border-radius: 999px;
    background: transparent; color: var(--muted); transition: all 0.25s ease;
}
.cat-pill:hover { color: var(--ink); }
.cat-pill.active { background: linear-gradient(95deg, var(--primary), #7c5cff); color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.7); }

/* ------------------------------------------------------------
   FAQ — boxed cards (old was hairline accordion)
   ------------------------------------------------------------ */
.faq-wrap { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-md); overflow: hidden; transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-card.open { border-color: var(--primary); box-shadow: var(--shadow-card); }
.faq-q {
    width: 100%; background: none; border: none; cursor: pointer; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq-chev {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary-ghost); color: var(--primary-dark);
    display: grid; place-items: center; transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-card.open .faq-chev { transform: rotate(180deg); background: var(--primary); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-card.open .faq-a { max-height: 320px; }
.faq-a p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------
   ABOUT / CONTENT PAGES
   ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.framed-img {
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
    box-shadow: var(--shadow-pop);
    border: 6px solid var(--surface);
}
.framed-img img { width: 100%; height: 100%; object-fit: cover; }

.prose p { color: var(--muted); font-size: 1.03rem; margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 560px) { .stat-strip { grid-template-columns: 1fr; } }
.stat {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 18px 20px; text-align: center;
}
.stat b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--primary-dark); }
.stat span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

/* Policy pages */
.policy-shell {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 64px); max-width: 880px; margin: 0 auto; box-shadow: var(--shadow-card);
}
.policy-shell h3 {
    font-size: 1.3rem; margin: 2em 0 0.5em; padding-left: 16px; position: relative;
}
.policy-shell h3:first-child { margin-top: 0; }
.policy-shell h3::before {
    content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 4px;
    border-radius: 4px; background: linear-gradient(var(--primary), var(--accent));
}
.policy-shell p { color: var(--muted); margin: 0 0 1.1em; font-size: 15.5px; }
.policy-meta { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* ------------------------------------------------------------
   FORMS
   ------------------------------------------------------------ */
.form-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-card);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label {
    display: block; font-weight: 600; font-size: 12px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px;
}
.field input, .field textarea, .field select {
    width: 100%; background: #f7f8fd; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); padding: 13px 16px;
    font-family: var(--font-body); font-size: 15px; color: var(--ink);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa1bd; }
input[type="date"] { text-transform: uppercase; }

.check-row { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.check-row label { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.check-row a, .check-row .linkish { color: var(--primary-dark); text-decoration: underline; font-weight: 600; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; font-size: inherit; }

/* Contact info cards */
.info-cards { display: flex; flex-direction: column; gap: 16px; }
.info-card {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-md); padding: 20px 22px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover { transform: translateX(6px); box-shadow: var(--shadow-card); }
.info-ic {
    width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(140deg, var(--primary), #8b5cf6);
}
.info-card h4 { margin: 0 0 3px; font-size: 1rem; }
.info-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Newsletter page panel */
.news-panel {
    display: grid; grid-template-columns: 1fr 1.05fr; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-pop); border: 1px solid var(--line); background: var(--surface);
}
@media (max-width: 880px) { .news-panel { grid-template-columns: 1fr; } }
.news-media { position: relative; min-height: 320px; background: var(--ink); }
.news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.news-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(200deg, rgba(79, 70, 229, 0.45), rgba(21, 26, 61, 0.15));
}
.news-form { padding: clamp(28px, 4.5vw, 52px); }
.news-form h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.news-form > p { color: var(--muted); margin: 0 0 26px; }

/* ------------------------------------------------------------
   BAG & CHECKOUT — centered dialog (old was right drawer)
   ------------------------------------------------------------ */
.veil {
    position: fixed; inset: 0; z-index: 1500;
    background: rgba(13, 16, 38, 0.6); backdrop-filter: blur(5px);
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    display: grid; place-items: center; padding: 20px;
}
.veil.on { opacity: 1; visibility: visible; }

.dialog {
    width: 100%; background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop); overflow: hidden;
    transform: translateY(26px) scale(0.97); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex; flex-direction: column; max-height: 92vh;
}
.veil.on .dialog { transform: translateY(0) scale(1); }
.dialog-sm { max-width: 460px; }
.dialog-md { max-width: 620px; }
.dialog-lg { max-width: 820px; }

.dialog-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 26px; border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, #f7f8ff, #fff);
}
.dialog-head h3 { margin: 0; font-size: 1.3rem; }
.x-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--surface); cursor: pointer; display: grid; place-items: center;
    color: var(--muted); transition: all 0.25s ease;
}
.x-btn:hover { color: var(--ink); border-color: var(--ink); transform: rotate(90deg); }

.dialog-body { overflow-y: auto; padding: 24px 26px; flex: 1; }
.dialog-foot { padding: 20px 26px; border-top: 1px solid var(--line); background: #fafbff; }

.bag-line {
    display: flex; gap: 14px; align-items: center;
    border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 12px; margin-bottom: 12px; background: #fcfcff;
}
.bag-thumb {
    width: 68px; height: 68px; flex-shrink: 0; border-radius: 10px;
    background: linear-gradient(170deg, #f7f8ff, #eceefc);
    display: grid; place-items: center; padding: 8px; border: 1px solid var(--line);
}
.bag-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bag-info { flex: 1; min-width: 0; }
.bag-info h4 { margin: 0 0 2px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bag-info .bag-price { color: var(--primary-dark); font-weight: 700; font-family: var(--font-head); font-size: 15px; }
.qty-ctl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-ctl button {
    width: 30px; height: 30px; border: none; background: none; cursor: pointer;
    font-size: 16px; font-weight: 700; color: var(--muted);
}
.qty-ctl button:hover { background: var(--primary-ghost); color: var(--primary-dark); }
.qty-ctl span { width: 32px; text-align: center; font-weight: 700; font-size: 14px; }
.bag-remove { background: none; border: none; cursor: pointer; color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 0 0; }
.bag-remove:hover { text-decoration: underline; }
.bag-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.bag-empty { text-align: center; padding: 46px 10px; color: var(--muted); }
.bag-empty svg { margin: 0 auto 14px; color: #c3c9e6; }
.bag-empty p { font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); margin: 0; }

.subtotal-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.subtotal-row span { color: var(--muted); font-size: 14px; font-weight: 600; }
.subtotal-row b { font-family: var(--font-head); font-size: 1.7rem; }

.cod-note {
    background: var(--primary-ghost); border: 1px dashed #c0c4f5; border-radius: var(--radius-sm);
    padding: 13px 16px; font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 16px;
}
.cod-note strong { display: block; color: var(--ink); margin-top: 3px; }

.ck-step {
    display: flex; align-items: center; gap: 12px; margin: 26px 0 18px;
}
.ck-step:first-child { margin-top: 0; }
.ck-step .num {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(140deg, var(--primary), #8b5cf6); color: #fff;
    display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.ck-step h4 { margin: 0; font-size: 1.15rem; }

.pay-box {
    border: 1.5px solid var(--primary); background: var(--primary-ghost);
    border-radius: var(--radius-sm); padding: 15px 18px;
    display: flex; align-items: center; gap: 11px; margin-bottom: 14px;
}
.pay-box input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); }
.pay-box label { font-weight: 700; color: var(--primary-dark); }
.pay-fine { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.pay-fine strong { color: var(--ink); }

.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.total-row span { color: var(--muted); font-weight: 600; font-size: 14px; }
.total-row b { font-family: var(--font-head); font-size: 2rem; color: var(--primary-dark); }

.back-link { background: none; border: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); padding: 0; }
.back-link:hover { color: var(--ink); }

/* Success dialog */
.success-ic {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px;
    background: linear-gradient(140deg, var(--teal), #0a9488); color: #fff;
    display: grid; place-items: center; box-shadow: 0 16px 30px -14px rgba(15, 181, 166, 0.7);
}
.order-ref {
    background: #f7f8fd; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px; margin: 20px 0 24px;
}
.order-ref span { display: block; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.order-ref b { font-family: "Courier New", monospace; font-size: 1.25rem; letter-spacing: 0.06em; }

/* ------------------------------------------------------------
   TOASTS — top-center stack (old was single bottom-right)
   ------------------------------------------------------------ */
#toast-stack {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
    z-index: 99999; display: flex; flex-direction: column; gap: 10px; align-items: center;
    pointer-events: none; width: min(480px, 92vw);
}
.toast {
    display: flex; align-items: center; gap: 12px; width: 100%;
    background: var(--ink); color: #fff;
    border-radius: 14px; padding: 14px 20px;
    font-weight: 500; font-size: 14.5px;
    box-shadow: 0 20px 44px -16px rgba(13, 16, 38, 0.65);
    opacity: 0; transform: translateY(-16px) scale(0.97);
    transition: all 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
    border-left: 5px solid var(--teal);
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast.t-info { border-left-color: var(--primary); }
.toast.t-warn { border-left-color: var(--accent); }
.toast .t-ic { flex-shrink: 0; display: grid; place-items: center; }

/* ------------------------------------------------------------
   FOOTER — indigo gradient, 5 columns (old was flat charcoal)
   ------------------------------------------------------------ */
.site-footer {
    margin-top: 90px;
    background: linear-gradient(170deg, #171c45 0%, #101230 70%);
    color: #c6cbe8; position: relative; overflow: hidden;
}
.site-footer::before {
    content: ""; position: absolute; top: -140px; right: -120px; width: 420px; height: 420px;
    border-radius: 50%; background: radial-gradient(circle, rgba(79, 70, 229, 0.35), transparent 70%);
}
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 38px;
    padding: 70px 0 48px; position: relative;
}
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand-name { color: #fff; font-size: 1.35rem; }
.footer-brand p { font-size: 14px; color: #9aa1cd; max-width: 320px; }
.footer-col h5 {
    color: #fff; font-family: var(--font-head); font-size: 0.85rem;
    letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 18px;
}
.footer-col h5::after { content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--accent); margin-top: 8px; }
.footer-col a { display: block; font-size: 14.5px; color: #aab0d6; padding: 5px 0; transition: all 0.25s ease; }
.footer-col a:hover { color: #fff; padding-left: 6px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0; font-size: 13px; color: #7e85b3;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: relative;
}

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
