/* ============================================================
   Voltix — styles.css
   Design system: violet electric + navy, light/dark via [data-theme]
   Fără fonturi/imagini externe (self-contained).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --accent: #6d5ef6;
  --accent-600: #5a4cf0;
  --accent-700: #4a3ce0;
  --accent-soft: rgba(109, 94, 246, 0.10);
  --accent-ink: #ffffff;

  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #f0f1f8;
  --surface-3: #e9ebf5;

  --text: #11131f;
  --text-2: #5b6076;
  --text-3: #8a8fa6;

  --border: #e6e8f2;
  --border-2: #d8dbe9;

  --danger: #e23b5a;
  --success: #16a86b;
  --warn: #f59e0b;
  --star: #f5a623;

  --shadow-sm: 0 1px 2px rgba(17, 19, 31, 0.06), 0 1px 3px rgba(17, 19, 31, 0.04);
  --shadow-md: 0 4px 14px rgba(17, 19, 31, 0.08);
  --shadow-lg: 0 16px 40px rgba(17, 19, 31, 0.14);
  --shadow-accent: 0 8px 24px rgba(109, 94, 246, 0.30);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1240px;
  --hdr-h: 66px;
}

[data-theme="dark"] {
  --accent: #8174ff;
  --accent-600: #6f60ff;
  --accent-700: #5d4dff;
  --accent-soft: rgba(129, 116, 255, 0.14);
  --accent-ink: #ffffff;

  --bg: #0b0c12;
  --surface: #15161f;
  --surface-2: #1c1e2a;
  --surface-3: #242636;

  --text: #eef0f8;
  --text-2: #a4aabf;
  --text-3: #757b95;

  --border: #262838;
  --border-2: #32354a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 8px 24px rgba(0, 0, 0, 0.5);
  --star: #ffba3a;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-2); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 18px; font-weight: 600; font-size: 0.95rem;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.link-accent { color: var(--accent); font-weight: 600; }
.link-accent:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.hdr-top {
  display: flex; align-items: center; gap: 22px;
  height: var(--hdr-h);
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em; }
.logo-bolt { width: 30px; height: 30px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-700));
  border-radius: 9px; color: #fff; box-shadow: var(--shadow-accent); }
.logo-bolt svg { width: 17px; height: 17px; }
.logo-text { color: var(--text); }
.logo-accent { color: var(--accent); }

.search { position: relative; flex: 1; max-width: 560px; display: flex; }
.search input {
  width: 100%; border: 1px solid var(--border-2); background: var(--surface-2);
  border-radius: 12px; padding: 11px 46px 11px 16px; font-size: 0.95rem; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; background: transparent; color: var(--text-2);
  display: grid; place-items: center; border-radius: 9px;
}
.search-btn:hover { color: var(--accent); }
.search-btn svg { width: 19px; height: 19px; }

.search-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; padding: 6px;
}
.sd-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.sd-item:hover { background: var(--surface-2); }
.sd-thumb { width: 42px; height: 42px; border-radius: 9px; overflow: hidden; flex: none; }
.sd-thumb .prod-img-svg { width: 100%; height: 100%; }
.sd-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sd-name { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-brand { font-size: 0.78rem; color: var(--text-3); }
.sd-price { font-weight: 700; color: var(--accent); font-size: 0.9rem; white-space: nowrap; }
.sd-all { display: block; text-align: center; padding: 11px; font-weight: 600; color: var(--accent); border-top: 1px solid var(--border); margin-top: 4px; }
.sd-all:hover { background: var(--accent-soft); }
.sd-empty { padding: 18px; text-align: center; color: var(--text-2); font-size: 0.92rem; }

.hdr-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--text);
  transition: background .15s, border-color .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); color: var(--accent); }
.icon-btn svg { width: 21px; height: 21px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
.cart-badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center; line-height: 1;
  border: 2px solid var(--surface);
}

.catnav { border-top: 1px solid var(--border); background: var(--surface); }
.catnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav-inner a {
  padding: 11px 14px; font-size: 0.9rem; font-weight: 500; color: var(--text-2);
  white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.catnav-inner a:hover { color: var(--accent); }
.catnav-all { color: var(--text) !important; font-weight: 700 !important; }

/* ---------- Product image (placeholder SVG) ---------- */
.prod-img-svg { width: 100%; height: 100%; display: block; }

/* ---------- Badges & stars ---------- */
.pbadge {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .01em; color: #fff;
}
.b-sale { background: var(--danger); }
.b-new { background: var(--accent); }
.b-best { background: #0e9f6e; }
.stars { display: inline-flex; gap: 1px; color: var(--border-2); font-size: 0.92rem; letter-spacing: 1px; }
.stars .star.on { color: var(--star); }
.stars .star.half { position: relative; color: var(--border-2); }
.stars .star.half::before { content: "★"; position: absolute; left: 0; width: 50%; overflow: hidden; color: var(--star); }
.rcount { color: var(--text-3); font-size: 0.82rem; }

/* ---------- Product card ---------- */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
}
.pcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.pcard-media { position: relative; aspect-ratio: 1 / 1; display: block; background: var(--surface-2); }
.pcard-media .pbadge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.pcard-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-brand { font-size: 0.74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.pcard-name { font-weight: 600; font-size: 0.96rem; color: var(--text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pcard-name:hover { color: var(--accent); }
.pcard-rating { display: flex; align-items: center; gap: 6px; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.price-now { font-size: 1.16rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.price-old { font-size: 0.88rem; color: var(--text-3); text-decoration: line-through; }
.pcard-add { width: 100%; margin-top: 10px; padding: 9px; font-size: 0.88rem; }
.pcard-add svg { width: 16px; height: 16px; }

/* ---------- Section headers ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 1.55rem; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.section-head .see-all { color: var(--accent); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.section-head .see-all:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 30px 0 8px; }
.hero-inner {
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(129,116,255,.22), transparent 55%),
    linear-gradient(135deg, var(--accent), var(--accent-700));
  border-radius: var(--radius-lg); color: #fff; padding: 48px 48px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center;
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.16);
  padding: 6px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; }
.hero-eyebrow svg { width: 14px; height: 14px; }
.hero h1 { font-size: 2.7rem; line-height: 1.08; margin-bottom: 14px; letter-spacing: -0.03em; }
.hero p { font-size: 1.08rem; opacity: .92; max-width: 460px; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--accent-700); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.hero .btn-primary:hover { background: #f3f1ff; }
.hero .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; box-shadow: none; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero-visual { position: relative; height: 280px; }
.hero-card {
  position: absolute; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius); backdrop-filter: blur(6px); padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.hero-card .prod-img-svg { border-radius: 10px; overflow: hidden; }
.hc1 { width: 180px; top: 10px; left: 30px; transform: rotate(-5deg); z-index: 2; }
.hc2 { width: 150px; bottom: 4px; right: 26px; transform: rotate(6deg); }
.hc3 { width: 120px; top: 96px; right: 120px; transform: rotate(-2deg); opacity: .92; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; }
.cat-tile {
  position: relative; border-radius: var(--radius); padding: 20px 18px; min-height: 132px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff;
  transition: transform .16s ease, box-shadow .16s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-tile .ct-icon { width: 40px; height: 40px; color: #fff; opacity: .95; }
.cat-tile .ct-icon svg { width: 100%; height: 100%; }
.cat-tile h3 { font-size: 1.05rem; }
.cat-tile span { font-size: 0.8rem; opacity: .85; }
.ct-name { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Strip / row scroll ---------- */
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(218px, 1fr); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.row-scroll .pcard { scroll-snap-align: start; }
.row-scroll::-webkit-scrollbar { height: 7px; }
.row-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.trust-item { display: flex; gap: 13px; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.trust-item .ti-ic { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); }
.trust-item .ti-ic svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: 0.95rem; }
.trust-item span { font-size: 0.82rem; color: var(--text-2); }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; align-items: center; gap: 8px; padding: 18px 0 4px; font-size: 0.85rem; color: var(--text-2); flex-wrap: wrap; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--text-3); }
.crumb .cur { color: var(--text); font-weight: 600; }

/* ---------- Listing layout ---------- */
.listing { display: grid; grid-template-columns: 264px 1fr; gap: 26px; align-items: start; padding: 14px 0 56px; }
.filters {
  position: sticky; top: calc(var(--hdr-h) + 60px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
}
.filters h3 { font-size: 1.05rem; margin-bottom: 4px; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--border); }
.fgroup:last-child { border-bottom: none; padding-bottom: 0; }
.fgroup > h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 11px; }
.fopt { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 0.92rem; cursor: pointer; }
.fopt input { accent-color: var(--accent); width: 16px; height: 16px; }
.fopt .fcount { margin-left: auto; color: var(--text-3); font-size: 0.8rem; }
.fopt:hover { color: var(--accent); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; border: 1px solid var(--border-2); background: var(--surface-2);
  border-radius: 9px; padding: 8px 10px; font-size: 0.9rem; outline: none; }
.price-range input:focus { border-color: var(--accent); }
.price-range span { color: var(--text-3); }
.filters-reset { margin-top: 16px; width: 100%; }

.listing-main { min-width: 0; }
.list-title { font-size: 1.6rem; margin-bottom: 4px; }
.list-sub { color: var(--text-2); margin-bottom: 16px; font-size: 0.95rem; }
.price-apply { width: 100%; margin-top: 10px; }
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.list-toolbar .count { font-weight: 600; }
.list-toolbar .count b { color: var(--accent); }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-wrap label { font-size: 0.86rem; color: var(--text-2); }
.sort-wrap select { border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 9px;
  padding: 8px 30px 8px 12px; font-size: 0.9rem; outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8fa6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.sort-wrap select:focus { border-color: var(--accent); }
.filters-toggle { display: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 5px 11px; font-size: 0.82rem; font-weight: 600; }
.chip button { background: none; border: none; color: inherit; line-height: 1; font-size: 1rem; padding: 0; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-2); }
.empty-state svg { width: 64px; height: 64px; color: var(--text-3); margin: 0 auto 14px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 14px 0 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--hdr-h) + 70px); }
.gallery-main { position: relative; aspect-ratio: 1/1; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface-2); }
.gallery-main .pbadge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid var(--border);
  background: var(--surface-2); padding: 0; transition: border-color .15s; }
.gallery-thumbs button.active { border-color: var(--accent); }

.pdp-info h1 { font-size: 1.9rem; margin: 4px 0 10px; }
.pdp-brand { color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 0.8rem; }
.pdp-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--text-2); font-size: 0.9rem; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.pdp-price .price-now { font-size: 2rem; }
.pdp-price .price-old { font-size: 1.1rem; }
.pdp-price .save { background: var(--danger); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pdp-vat { color: var(--text-3); font-size: 0.82rem; margin-bottom: 22px; }
.pdp-stock { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; }
.pdp-stock .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--success); }
.pdp-desc { color: var(--text-2); margin-bottom: 24px; }
.buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 26px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 42px; height: 46px; background: var(--surface-2); border: none; font-size: 1.2rem; color: var(--text-2); }
.qty button:hover { background: var(--surface-3); color: var(--accent); }
.qty input { width: 48px; height: 46px; text-align: center; border: none; background: var(--surface); font-weight: 700; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn-primary { flex: 1; min-width: 200px; }

.specs { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.specs h3 { padding: 14px 18px; background: var(--surface-2); font-size: 1rem; border-bottom: 1px solid var(--border); }
.specs ul { display: grid; }
.specs li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 18px; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.specs li:last-child { border-bottom: none; }
.specs li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Cart ---------- */
.cart-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; padding: 24px 0 60px; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.cart-item .ci-img { width: 92px; height: 92px; border-radius: 11px; overflow: hidden; background: var(--surface-2); }
.cart-item .ci-name { font-weight: 600; }
.cart-item .ci-brand { font-size: 0.78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.cart-item .ci-unit { color: var(--text-2); font-size: 0.88rem; margin-top: 4px; }
.cart-item .ci-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item .ci-total { font-weight: 800; font-size: 1.1rem; }
.ci-remove { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--text-3); font-size: 0.82rem; padding: 0; }
.ci-remove:hover { color: var(--danger); }
.ci-remove svg { width: 15px; height: 15px; }
.cart-item .qty button { height: 38px; width: 36px; }
.cart-item .qty input { height: 38px; width: 40px; }

.summary { position: sticky; top: calc(var(--hdr-h) + 24px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.summary h3 { font-size: 1.2rem; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; color: var(--text-2); }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 1.2rem; font-weight: 800; color: var(--text); }
.sum-row .free { color: var(--success); font-weight: 700; }
.sum-row .disc { color: var(--success); font-weight: 600; }
.ship-bar { margin: 14px 0; }
.ship-bar p { font-size: 0.84rem; color: var(--text-2); margin-bottom: 7px; }
.ship-bar p b { color: var(--accent); }
.ship-track { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.ship-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-700)); border-radius: 99px; transition: width .3s ease; }
.promo { display: flex; gap: 8px; margin: 16px 0; }
.promo input { flex: 1; border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 9px;
  padding: 10px 12px; outline: none; text-transform: uppercase; }
.promo input:focus { border-color: var(--accent); }
.promo-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--accent-soft); color: var(--accent); border-radius: 9px; padding: 9px 12px; margin: 16px 0; font-size: 0.88rem; font-weight: 600; }
.promo-applied button { background: none; border: none; color: inherit; text-decoration: underline; font-size: 0.8rem; }
.promo-hint { font-size: 0.78rem; color: var(--text-3); margin-top: -6px; }

/* ---------- Checkout ---------- */
.checkout-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; padding: 24px 0 60px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.form-card .sub { color: var(--text-2); font-size: 0.9rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 10px;
  padding: 11px 13px; font-size: 0.95rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.row2 > div { margin: 0; }
.field .err { color: var(--danger); font-size: 0.8rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border-radius: 11px; padding: 13px 15px; font-size: 0.86rem; color: var(--text-2); margin-top: 6px; }
.pay-note svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.co-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.co-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 11px; align-items: center; font-size: 0.9rem; }
.co-item .co-img { width: 48px; height: 48px; border-radius: 9px; overflow: hidden; background: var(--surface-2); position: relative; }
.co-item .co-qty { position: absolute; top: -7px; right: -7px; background: var(--text); color: var(--bg); font-size: 0.7rem; font-weight: 700; width: 19px; height: 19px; border-radius: 99px; display: grid; place-items: center; }
.co-item .co-name { font-weight: 600; line-height: 1.25; }
.co-item .co-line { font-weight: 700; white-space: nowrap; }

/* ---------- Success screen ---------- */
.success { max-width: 640px; margin: 0 auto; padding: 50px 0 70px; text-align: center; }
.success .check { width: 88px; height: 88px; border-radius: 50%; background: var(--success); color: #fff;
  display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 12px 30px rgba(22,168,107,.35); animation: pop .4s ease; }
.success .check svg { width: 46px; height: 46px; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success h1 { font-size: 1.9rem; margin-bottom: 8px; }
.success > p { color: var(--text-2); margin-bottom: 26px; }
.order-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: left; margin-bottom: 26px; }
.order-box .ob-head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.order-box .ob-num { font-weight: 800; color: var(--accent); }

/* ---------- About / Contact ---------- */
.page-hero { padding: 40px 0 10px; }
.page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { color: var(--text-2); max-width: 620px; font-size: 1.05rem; }
.prose { max-width: 760px; padding: 10px 0 50px; }
.prose p { color: var(--text-2); margin-bottom: 16px; }
.prose h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 28px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat b { display: block; font-size: 2rem; color: var(--accent); letter-spacing: -0.03em; }
.stat span { font-size: 0.88rem; color: var(--text-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; padding: 14px 0 56px; }
.contact-info .ci-block { display: flex; gap: 13px; margin-bottom: 22px; }
.contact-info .ci-block .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-info .ci-block .ic svg { width: 21px; height: 21px; }
.contact-info strong { display: block; }
.contact-info span { color: var(--text-2); font-size: 0.92rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px);
  background: var(--text); color: var(--bg); padding: 13px 20px; border-radius: 12px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 300; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 19px; height: 19px; color: #16d989; flex: none; }

/* ---------- Footer ---------- */
.ftr { background: var(--surface); border-top: 1px solid var(--border); margin-top: 30px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 30px; padding: 46px 20px 36px; }
.ftr-col h4 { font-size: 0.92rem; margin-bottom: 14px; }
.ftr-col ul li { margin-bottom: 9px; }
.ftr-col ul a { color: var(--text-2); font-size: 0.9rem; }
.ftr-col ul a:hover { color: var(--accent); }
.ftr-brand p { color: var(--text-2); font-size: 0.9rem; margin: 14px 0 16px; max-width: 280px; }
.ftr-brand .logo { font-size: 1.2rem; }
.ftr-pay { display: flex; gap: 8px; }
.ftr-pay span { font-size: 0.68rem; font-weight: 700; color: var(--text-3); border: 1px solid var(--border-2); border-radius: 6px; padding: 4px 8px; }
.ftr-news { display: flex; gap: 8px; }
.ftr-news input { flex: 1; min-width: 0; border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 9px; padding: 10px 12px; outline: none; font-size: 0.88rem; }
.ftr-news input:focus { border-color: var(--accent); }
.ftr-news .btn { padding: 10px 14px; font-size: 0.86rem; }
.ftr-bottom { border-top: 1px solid var(--border); }
.ftr-bottom-inner { display: flex; justify-content: space-between; gap: 14px; padding: 18px 20px; font-size: 0.83rem; color: var(--text-3); flex-wrap: wrap; }
.ftr-credit a { color: var(--accent); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .cart-wrap { grid-template-columns: 1fr; }
  .checkout-wrap { grid-template-columns: 1fr; }
  .summary { position: static; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hdr-top { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .listing { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0; z-index: 200; border-radius: 0; overflow-y: auto;
    transform: translateX(-100%); transition: transform .25s ease; max-width: 320px;
  }
  .filters.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .filters-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 199; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .filters-backdrop.open { opacity: 1; pointer-events: auto; }
  .filters-toggle { display: inline-flex; }
}
@media (max-width: 620px) {
  .container { padding: 0 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard-add span { display: none; }
  .pcard-add { padding: 9px; }
  .section { padding: 30px 0; }
  .section-head h2 { font-size: 1.3rem; }
  .hero h1 { font-size: 1.85rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item .ci-controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .cart-item .ci-img { width: 70px; height: 70px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
