/* =====================================================================
   Pandarocket — Global Stylesheet
   Purple "CRESCENDO"-inspired e-commerce design system
   ===================================================================== */

:root {
  /* Brand palette */
  --violet-50:  #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-800: #5b21b6;
  --violet-900: #4c1d95;

  --primary:        #7c3aed;
  --primary-dark:   #5b21b6;
  --primary-light:  #a78bfa;
  --grad-start:     #8b5cf6;
  --grad-end:       #6d28d9;

  --ink:    #1a1423;
  --ink-2:  #4b445c;
  --muted:  #8b8595;
  --line:   #ece8f3;
  --bg:     #ffffff;
  --bg-soft:#faf8ff;
  --bg-soft-2:#f5f3ff;

  --success: #16a34a;
  --warn:    #f59e0b;
  --danger:  #ef4444;

  --radius:  16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(76,29,149,.06), 0 2px 8px rgba(76,29,149,.06);
  --shadow:    0 10px 30px -12px rgba(76,29,149,.22);
  --shadow-lg: 0 24px 60px -18px rgba(76,29,149,.35);
  --ring: 0 0 0 3px rgba(124,58,237,.22);

  --container: 1200px;
  --nav-h: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 15px; transition: .22s ease;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: none; border: 1.5px solid var(--violet-200); }
.btn-ghost:hover { background: var(--violet-50); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--violet-50); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--violet-900); color: #fff; font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { opacity: .85; }
.topbar a:hover { opacity: 1; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { height: 80px; width: 80px; border-radius: 10px; object-fit: cover; }
.brand .name { color: var(--ink); }
.brand .name b { color: var(--primary); }
.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  color: var(--ink-2); transition: .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--violet-50); }
.nav-search {
  flex: 1; max-width: 420px; position: relative; margin-left: auto;
}
.nav-search input {
  width: 100%; height: 44px; border-radius: 999px; border: 1.5px solid var(--line);
  padding: 0 18px 0 44px; font-size: 14.5px; background: var(--bg-soft); outline: none; transition: .2s;
}
.nav-search input:focus { border-color: var(--primary-light); background: #fff; box-shadow: var(--ring); }
.nav-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--ink-2); transition: .2s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--violet-200); background: var(--violet-50); }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center; border: 2px solid #fff;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 80% -10%, rgba(167,139,250,.45), transparent 60%),
    linear-gradient(120deg, var(--violet-50), #fff 55%);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 64px 20px 72px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px;
  color: var(--primary-dark); background: #fff; border: 1px solid var(--violet-200);
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: 54px; line-height: 1.05; margin: 20px 0 16px; letter-spacing: -.03em; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(100deg, var(--grad-start), var(--grad-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; }
.hero-stats .stat b { display: block; font-size: 26px; font-weight: 800; color: var(--ink); }
.hero-stats .stat span { font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual .card-img {
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero-visual .card-img img { display: block; width: 100%; height: auto; }
.hero-float {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px;
}
.hero-float .dot { width: 36px; height: 36px; border-radius: 10px; background: var(--violet-100); display: grid; place-items: center; color: var(--primary); }
.hero-float.f1 { left: -22px; bottom: 36px; }
.hero-float.f2 { right: -18px; top: 30px; }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head h2 { font-size: 34px; letter-spacing: -.02em; margin: 0; font-weight: 800; }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.section-head .link { color: var(--primary); font-weight: 600; white-space: nowrap; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4;
  background: var(--violet-100); display: flex; align-items: flex-end; padding: 16px; color: #fff;
  transition: .25s; box-shadow: var(--shadow-sm);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .4s; opacity: .92; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(76,29,149,.85), transparent 60%); }
.cat-tile span { position: relative; z-index: 1; font-weight: 700; font-size: 15px; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile .count { position: relative; z-index: 1; display: block; font-size: 12px; font-weight: 500; opacity: .85; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .22s; display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet-200); }
.product-thumb { position: relative; aspect-ratio: 1/1; background: var(--bg-soft-2); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: #fff; z-index: 2;
}
.badge.sale { background: var(--danger); }
.badge.new { background: var(--primary); }
.badge.best { background: var(--violet-800); }
.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.product-title { font-size: 15px; font-weight: 600; margin: 4px 0 10px; color: var(--ink); line-height: 1.35; min-height: 41px; }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.stars { color: var(--warn); letter-spacing: 1px; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product-price .now { font-size: 21px; font-weight: 800; color: var(--ink); }
.product-price .was { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.product-price .off { font-size: 12px; font-weight: 700; color: var(--danger); }
.add-btn {
  margin-top: 14px; width: 100%; padding: 11px; border-radius: 999px; border: 0;
  background: var(--violet-50); color: var(--primary-dark); font-weight: 700; font-size: 14px; transition: .2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.add-btn:hover { background: var(--primary); color: #fff; }
.add-btn.added { background: var(--success); color: #fff; }

/* ---------- Deals band ---------- */
.deals {
  background: linear-gradient(120deg, var(--violet-800), var(--violet-600)); color: #fff; border-radius: 26px;
  padding: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; overflow: hidden; position: relative;
}
.deals::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: rgba(255,255,255,.12); border-radius: 50%; }
.deals h3 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.deals p { opacity: .9; margin: 0 0 20px; }
.deals .big-price { font-size: 46px; font-weight: 800; }
.deals .big-price small { font-size: 18px; opacity: .8; text-decoration: line-through; font-weight: 500; margin-left: 10px; }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { text-align: center; padding: 14px; }
.feature .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--violet-100); color: var(--primary); display: grid; place-items: center; margin: 0 auto 14px; font-size: 24px; }
.feature h4 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfc7dd; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding: 56px 0 36px; }
.footer .brand { color: #fff; margin-bottom: 14px; align-items: center; }
.footer .brand .name { color: var(--violet-600); }
.footer .brand .name b { color: var(--violet-500); }
.footer p.desc { font-size: 14px; max-width: 320px; color: #b6add0; }
.footer h5 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a:hover { color: var(--violet-300); }
.footer .news input { width: 100%; height: 44px; border-radius: 999px; border: 1.5px solid #2c2435; background: #221b2e; color: #fff; padding: 0 18px; outline: none; }
.footer .news input:focus { border-color: var(--primary-light); }
.footer-bottom { border-top: 1px solid #2c2435; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8f86a8; }
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom b { color: #fff; }
.footer .reg { font-size: 12px; color: #8f86a8; margin-top: 10px; }

/* ---------- Product list page ---------- */
.page-head { background: linear-gradient(120deg, var(--violet-50), #fff); padding: 40px 0 22px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 36px; margin: 0 0 6px; letter-spacing: -.02em; }
.page-head .crumbs { font-size: 13px; color: var(--muted); }
.page-head .crumbs a:hover { color: var(--primary); }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 32px 0 72px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.filters h4 { margin: 0 0 12px; font-size: 14px; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); margin-bottom: 9px; cursor: pointer; }
.filter-group input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); }
.filter-group .price-row { display: flex; align-items: center; gap: 8px; }
.filter-group input[type=number] { width: 100%; height: 38px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 10px; outline: none; }
.filter-group input[type=number]:focus { border-color: var(--primary-light); }
.shop-main .shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 14px; flex-wrap: wrap; }
.shop-main select { height: 42px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 14px; outline: none; background: #fff; }
.result-count { font-size: 14px; color: var(--muted); }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; padding: 40px 0 72px; }
.gallery .main-img { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft-2); border: 1px solid var(--line); }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumbs img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 2px solid var(--line); cursor: pointer; transition: .2s; background: var(--bg-soft-2); }
.thumbs img.active, .thumbs img:hover { border-color: var(--primary); }
.pd-info .brand { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.pd-info h1 { font-size: 30px; margin: 8px 0 12px; letter-spacing: -.02em; }
.pd-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pd-price .now { font-size: 34px; font-weight: 800; }
.pd-price .was { color: var(--muted); text-decoration: line-through; }
.pd-price .off { color: var(--danger); font-weight: 700; }
.pd-desc { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
.pd-features { list-style: none; padding: 0; margin: 0 0 26px; }
.pd-features li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.pd-features li::before { content: "✓"; color: var(--primary); font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: #fff; font-size: 18px; color: var(--ink-2); }
.qty button:hover { background: var(--violet-50); color: var(--primary); }
.qty input { width: 50px; height: 46px; border: 0; text-align: center; font-size: 16px; font-weight: 700; outline: none; }
.pd-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.pd-meta { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.pd-meta b { color: var(--ink-2); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; padding: 36px 0 72px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; align-items: center; }
.cart-item img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; background: var(--bg-soft-2); }
.cart-item .ci-title { font-weight: 600; font-size: 15px; }
.cart-item .ci-brand { font-size: 12px; color: var(--primary); font-weight: 700; text-transform: uppercase; }
.cart-item .ci-price { color: var(--muted); font-size: 14px; margin-top: 4px; }
.ci-controls { display: flex; align-items: center; gap: 16px; }
.ci-controls .qty { border-color: var(--violet-200); }
.ci-line-total { font-size: 18px; font-weight: 800; min-width: 96px; text-align: right; }
.ci-remove { background: none; border: 0; color: var(--muted); font-size: 13px; margin-top: 8px; }
.ci-remove:hover { color: var(--danger); }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; box-shadow: var(--shadow-sm); }
.cart-summary h3 { margin: 0 0 18px; font-size: 18px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); padding: 8px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; font-size: 19px; font-weight: 800; color: var(--ink); }
.cart-empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.cart-empty .ico { font-size: 56px; margin-bottom: 14px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; padding: 36px 0 72px; align-items: start; }
.checkout-form h3 { font-size: 19px; margin: 0 0 18px; }
.checkout-form .block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; font-size: 14.5px; outline: none; background: #fff;
}
.field textarea { height: 80px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary-light); box-shadow: var(--ring); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.order-summary h3 { margin: 0 0 16px; font-size: 18px; }
.os-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.os-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--bg-soft-2); }
.os-item .os-t { font-size: 13.5px; font-weight: 600; }
.os-item .os-s { font-size: 12px; color: var(--muted); }
.os-item .os-p { margin-left: auto; font-weight: 700; font-size: 14px; }
.pay-methods { display: flex; gap: 12px; margin: 16px 0; }
.pay-method { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; transition: .2s; font-weight: 600; font-size: 14px; }
.pay-method .pm-ico { font-size: 22px; margin-bottom: 6px; }
.pay-method.active { border-color: var(--primary); background: var(--violet-50); color: var(--primary-dark); box-shadow: var(--ring); }

/* ---------- Payment (Stripe/PayPal mock) ---------- */
.pay-wrap { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.pay-wrap .pm-title { text-align: center; font-weight: 800; font-size: 20px; margin: 0 0 4px; }
.pay-wrap .pm-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.pay-amt { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 22px; }
.pay-amt small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.card-mock { border: 1px solid var(--violet-200); border-radius: 14px; padding: 18px; background: var(--violet-50); margin-bottom: 18px; }
.card-mock input { background: #fff; }
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.brand-foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.brand-foot b { color: var(--primary); }

/* ---------- Order success ---------- */
.success-box { text-align: center; max-width: 560px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 44px; box-shadow: var(--shadow); }
.success-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--violet-100); color: var(--primary); display: grid; place-items: center; font-size: 44px; margin: 0 auto 18px; }
.success-box h1 { font-size: 28px; margin: 0 0 8px; }
.success-box p { color: var(--ink-2); }
.order-card { text-align: left; background: var(--bg-soft); border-radius: 14px; padding: 20px; margin: 24px 0; }
.order-card .oc-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.order-card .oc-row:last-child { border-bottom: 0; }
.order-card .oc-row b { color: var(--ink); }
.order-card .brand-inline { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.order-card .brand-inline img { height: 26px; width: 26px; border-radius: 7px; }

/* ---------- Toast ---------- */
.toast-zone { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; display: flex; gap: 9px; align-items: center; }
.toast.ok { background: var(--success); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Misc ---------- */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-muted { color: var(--muted); }
.center-msg { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: grid; }
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; }
  .hero h1 { font-size: 40px; }
  .hero-visual { order: -1; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .pd-layout { grid-template-columns: 1fr; gap: 24px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .order-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .deals { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .product-grid, .cat-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item .ci-controls { grid-column: 1/-1; justify-content: space-between; }
}
