/* ============================================================
   Sole Thread — Storefront styles
   ============================================================ */
:root {
  --ink: #17150f;
  --ink-soft: #4b463c;
  --muted: #8a8474;
  --bg: #f7f5f0;
  --card: #ffffff;
  --line: #e7e3d9;
  --accent: #e4572e;
  --accent-dark: #c8431f;
  --accent-soft: #fdeee8;
  --green: #1e9e5a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(23, 21, 15, .07);
  --shadow-md: 0 10px 30px rgba(23, 21, 15, .10);
  --shadow-lg: 0 24px 60px rgba(23, 21, 15, .22);
  --header-h: 68px;
  --header-bg: #f7f5f0;
  --nav-text: #4b463c;
  --footer-bg: #17150f;
  --footer-text: #cfc9bc;
  --footer-heading: #ffffff;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(228, 87, 46, .35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: #cfc9bc; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .28); }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.icon-btn:hover { background: rgba(23, 21, 15, .07); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  background: color-mix(in srgb, var(--header-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 26px; margin-inline: auto; }
.nav-link { font-weight: 600; font-size: .93rem; color: var(--nav-text); position: relative; padding: 4px 0; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width .2s ease;
}
.nav-link:hover { color: var(--nav-text); opacity: .72; }
.nav-link:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; width: 220px;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.search-box input { border: none; outline: none; background: none; width: 100%; font-size: .9rem; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease; }
.cart-btn:hover { background: rgba(23, 21, 15, .07); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.cart-count.bump { animation: bump .3s ease; }
@keyframes bump { 50% { transform: scale(1.4); } }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 13, 9, .72) 0%, rgba(15, 13, 9, .45) 42%, rgba(15, 13, 9, .05) 75%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-block: 64px; }
.hero-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #ffb59d; }
.hero-sub { margin: 18px 0 30px; max-width: 460px; font-size: 1.06rem; color: rgba(255, 255, 255, .85); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Features ---------- */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: -46px; position: relative; z-index: 3;
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-md);
}
.feature svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.feature h3 { font-size: .98rem; margin-bottom: 4px; }
.feature p { font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 64px 0 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--accent); }
.link-more:hover { color: var(--accent-dark); }

/* ---------- Category cards ---------- */
.category-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cat-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 8px 0 60px; }
.cat-index-grid .cat-card { min-height: 260px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 190px;
  display: flex; align-items: flex-end; padding: 26px; color: #fff; cursor: pointer;
  box-shadow: var(--shadow-md);
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,13,9,0) 30%, rgba(15,13,9,.78) 100%);
  transition: background .3s ease;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card-body { position: relative; z-index: 2; }
.cat-card-body h3 { font-size: 1.45rem; font-weight: 800; }
.cat-card-body p { font-size: .88rem; opacity: .85; }
.cat-card-body .cat-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: .88rem; }
.cat-card-body .cat-cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.cat-card:hover .cat-cta svg { transform: translateX(4px); }

/* ---------- Filter pills ---------- */
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.shop-page { padding-bottom: 40px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.shop-toolbar .filter-pills { margin-bottom: 0; }
.pill {
  padding: 9px 20px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-weight: 600; font-size: .88rem; color: var(--ink-soft);
  transition: .2s ease;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill .count { opacity: .55; font-weight: 700; margin-left: 4px; font-size: .78rem; }

.sort-select {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-weight: 600; font-size: .88rem; color: var(--ink-soft); outline: none; cursor: pointer;
}

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 80px; }
.grid-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-media { position: relative; aspect-ratio: 1; background: #eee; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.07); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.badge-new { background: var(--green); color: #fff; }
.badge-bestseller { background: var(--accent); color: #fff; }
.qv-btn {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  padding: 10px; border-radius: var(--radius-sm);
  background: rgba(23, 21, 15, .82); color: #fff; font-weight: 700; font-size: .84rem;
  backdrop-filter: blur(4px); opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.product-card:hover .qv-btn { opacity: 1; transform: translateY(0); }
@media (hover: none) { .qv-btn { opacity: 1; transform: none; background: rgba(23,21,15,.55); } }
.product-info { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.product-cat { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.product-name { font-size: .98rem; font-weight: 700; }
.product-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.product-price { font-weight: 800; font-size: 1.05rem; }
.product-price .old { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); text-decoration: line-through; }
.stock-note { font-size: .74rem; font-weight: 700; }
.stock-note.low { color: var(--accent); }
.stock-note.out { color: #b91c1c; }
.add-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .15s ease;
}
.add-btn:hover { background: var(--accent); }
.add-btn:active { transform: scale(.9); }
.add-btn svg { width: 18px; height: 18px; }
.add-btn:disabled { background: #d8d3c8; cursor: not-allowed; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 0; color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-bottom: 6px; }

.shop-notice {
  margin: 10px 0 80px; padding: 22px 26px; border-radius: var(--radius);
  background: #fff4ec; border: 1px solid #ffd9c4; color: #9a3c1b; font-size: .93rem;
}

/* ---------- Why Choose Us ---------- */
.section-eyebrow {
  font-size: .76rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.why-section { margin-top: 10px; }
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.why-media { position: relative; }
.why-media img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 22px; box-shadow: var(--shadow-md); position: relative; z-index: 1;
}
.why-media::before {
  content: ''; position: absolute; z-index: 0;
  inset: 26px -18px -18px 26px; border-radius: 28px; background: var(--accent-soft);
}
.why-float-card {
  position: absolute; z-index: 2; left: 18px; bottom: 18px;
  background: #fff; border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 1px;
}
.why-float-stars { color: #f5a623; letter-spacing: 2px; font-size: .8rem; }
.why-float-card strong { font-size: 1.02rem; }
.why-float-card small { color: var(--muted); font-size: .78rem; }
.why-content h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -.01em;
}
.why-text { color: var(--ink-soft); margin: 14px 0 18px; max-width: 480px; }
.why-list { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; }
.why-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.why-list svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.why-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.why-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.why-stat strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.why-stat span { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ---------- Special Offer ---------- */
.offer-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #221f16, #17150f 55%, #2b2013);
  color: #fff; margin-top: 70px; padding: 58px 0;
}
.offer-band::before {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 87, 46, .35), transparent 70%);
}
.offer-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.offer-eyebrow {
  color: #ffb59d; font-size: .78rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px;
}
.offer-content h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -.01em;
}
.offer-text { margin: 14px 0 22px; color: rgba(255, 255, 255, .8); }
.offer-code {
  display: inline-block; background: rgba(228, 87, 46, .18);
  border: 1.5px dashed var(--accent); color: #ffb59d;
  font-weight: 800; letter-spacing: .14em; padding: 3px 12px;
  border-radius: 8px; cursor: pointer; transition: background .2s ease;
}
.offer-code:hover { background: rgba(228, 87, 46, .32); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.btn-light:hover { background: #f1ede3; }
.offer-countdown { display: flex; gap: 12px; }
.cd-box {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; min-width: 76px; padding: 14px 10px; text-align: center;
  backdrop-filter: blur(4px);
}
.cd-box strong { display: block; font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-box span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #d14a22 100%); color: #fff; padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
.cta-text p { margin-top: 8px; color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-outline-dark {
  background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .55); color: #fff;
}
.btn-outline-dark:hover { background: rgba(255, 255, 255, .28); }

/* ---------- Logo ---------- */
.logo-img { height: 38px; width: auto; display: block; }
.logo-chip {
  display: inline-block; background: #fff; border-radius: 12px; padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}
.logo-chip img { height: 26px; width: auto; display: block; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: .86rem; font-weight: 600; color: var(--muted); margin: 26px 0 6px;
}
.breadcrumb a { color: var(--ink-soft); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #c9c3b5; }
.breadcrumb .current { color: var(--ink); }

/* ---------- Product detail page ---------- */
.pdp-wrap { min-height: 40vh; }
.pdp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; margin-top: 12px; }
.pdp-media {
  position: relative; border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pdp-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp-cat {
  display: inline-block; font-size: .76rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.pdp-cat:hover { text-decoration: underline; }
.pdp-info h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800;
  letter-spacing: -.01em; line-height: 1.15; margin: 6px 0 10px;
}
.pdp-price { font-size: 1.7rem; font-weight: 800; margin-bottom: 14px; }
.pdp-desc { color: var(--ink-soft); margin-bottom: 22px; max-width: 520px; }
.pdp-buy { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pdp-buy .qty-stepper button { width: 44px; height: 48px; }
.pdp-buy .btn { flex: 1; min-width: 180px; }
.pdp-stock { margin-bottom: 20px; font-size: .9rem; }
.pdp-perks { list-style: none; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.pdp-perks li { display: flex; gap: 9px; align-items: center; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.pdp-perks svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; }
.pdp-error { padding: 70px 0; text-align: center; }
.pdp-error h3 { margin-bottom: 8px; }
.pdp-error p { color: var(--muted); margin-bottom: 20px; }

.related-section { margin-top: 30px; }
.related-section .product-grid { padding-bottom: 60px; }

/* ---------- Category page ---------- */
.cat-page .product-grid { padding-bottom: 60px; }
.cat-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.cat-hero p { color: var(--muted); font-weight: 600; margin-top: 2px; }
.cat-toolbar { display: flex; justify-content: flex-end; margin: 20px 0 18px; }

/* ---------- Footer ---------- */
footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 60px 0 40px; }
.logo-light { color: #fff; }
.footer-col h4 { color: var(--footer-heading); font-size: .95rem; margin-bottom: 14px; letter-spacing: .04em; }
.footer-col a { display: block; font-size: .9rem; padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--footer-heading); }
.footer-col p { font-size: .9rem; margin-top: 12px; max-width: 300px; }
.admin-link { color: var(--accent); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-top: 1px solid color-mix(in srgb, var(--footer-text) 20%, transparent);
  padding: 18px 0; font-size: .84rem;
}

/* ---------- Overlay / Drawer / Modals ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 13, 9, .5); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease;
}
.overlay.show { opacity: 1; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(420px, 100%);
  background: var(--card); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.1rem; }
.cart-head span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.cart-body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.cart-empty svg { width: 46px; height: 46px; margin-bottom: 12px; color: var(--line); }
.cart-item { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 74px; height: 74px; border-radius: var(--radius-sm); object-fit: cover; background: #eee; flex-shrink: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 700; font-size: .92rem; }
.ci-price { color: var(--muted); font-size: .84rem; margin: 2px 0 8px; }
.ci-controls { display: flex; align-items: center; justify-content: space-between; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 30px; height: 30px; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.qty-stepper button:hover { background: var(--bg); }
.qty-stepper span { min-width: 30px; text-align: center; font-weight: 700; font-size: .9rem; }
.ci-remove { color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: underline; }
.ci-remove:hover { color: #b91c1c; }
.ci-line { font-weight: 800; font-size: .92rem; }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 20px 22px; background: #fff; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 6px; }
.cart-total-row strong { font-size: 1.25rem; }
.cart-note { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-card {
  position: relative; background: var(--card); border-radius: 18px;
  width: 100%; box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
@keyframes pop { from { transform: scale(.96) translateY(10px); opacity: 0; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; background: rgba(255,255,255,.85); }
.modal-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 16px; }

.qv-card { max-width: 780px; display: grid; grid-template-columns: 1fr 1fr; }
.qv-media { background: #eee; }
.qv-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.qv-info { padding: 30px 28px; }
.qv-category { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.qv-info h3 { font-size: 1.5rem; line-height: 1.2; }
.qv-price { font-size: 1.35rem; font-weight: 800; margin: 10px 0 14px; }
.qv-desc { color: var(--ink-soft); font-size: .94rem; margin-bottom: 12px; }
.qv-stock { font-size: .83rem; font-weight: 700; margin-bottom: 20px; color: var(--green); }
.qv-stock.out { color: #b91c1c; }
.qv-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qv-actions .qty-stepper button { width: 38px; height: 44px; }
.qv-actions .btn { flex: 1; min-width: 150px; }

.co-card { max-width: 560px; padding: 30px 28px; }
.co-summary { background: var(--bg); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; font-size: .9rem; }
.co-summary .co-line { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-soft); }
.co-summary .co-line-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 9px; font-weight: 800; color: var(--ink); font-size: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: .83rem; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; font-size: .94rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-error { color: #b91c1c; font-size: .86rem; font-weight: 600; margin: 4px 0 12px; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}

.success-icon { width: 66px; height: 66px; margin: 8px auto 16px; color: var(--green); }
.success-icon svg { width: 100%; height: 100%; }
#checkoutSuccess { text-align: center; }
.success-text { color: var(--muted); margin: -6px 0 18px; }
.success-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.success-meta > div { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; }
.success-meta span { display: block; font-size: .76rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.success-meta strong { font-size: 1.02rem; }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: toast-in .25s ease; max-width: 92vw; text-align: center;
}
.toast.success { background: var(--green); }
.toast.error { background: #b91c1c; }
.toast.leaving { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(14px); opacity: 0; } }

/* ---------- New sections: responsive ---------- */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-media { max-width: 480px; }
  .why-media::before { inset: 16px -12px -12px 16px; }
  .why-stats { margin-top: 40px; }
  .offer-inner { flex-direction: column; align-items: flex-start; }
  .pdp-grid { grid-template-columns: 1fr; gap: 26px; }
  .pdp-media { max-width: 520px; }
  .cat-index-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .logo-img { height: 30px; }
  .logo-chip { padding: 7px 12px; border-radius: 10px; }
  .logo-chip img { height: 21px; }
  .why-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .why-stat { padding: 14px 10px; }
  .why-stat strong { font-size: 1.3rem; }
  .offer-band { padding: 44px 0; }
  .offer-countdown { width: 100%; justify-content: space-between; gap: 8px; }
  .cd-box { min-width: 0; flex: 1; padding: 10px 6px; }
  .cd-box strong { font-size: 1.4rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .pdp-buy .btn { min-width: 140px; }
  .breadcrumb { font-size: .8rem; }
  .cat-index-grid { grid-template-columns: 1fr; }
  .cat-index-grid .cat-card { min-height: 200px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 55;
    background: var(--header-bg); flex-direction: column; gap: 0; padding: 8px 4%;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s ease;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-link:last-child { border-bottom: none; }
  .search-box { width: auto; flex: 1; }
  .hero { min-height: 520px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(15,13,9,.25) 0%, rgba(15,13,9,.72) 78%); }
  .hero-content { padding-block: 120px 48px; margin-top: auto; align-self: flex-end; }
  .category-cards { grid-template-columns: 1fr; }
  .qv-card { grid-template-columns: 1fr; }
  .qv-media img { max-height: 300px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 11px 12px 13px; }
  .product-name { font-size: .87rem; }
  .product-price { font-size: .95rem; }
  .add-btn { width: 34px; height: 34px; }
  .features { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -30px; }
  .feature { padding: 16px 14px; }
  .feature h3 { font-size: .88rem; }
  .feature p { font-size: .78rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 44px 0 30px; }
  .section-head { margin-top: 44px; }
  .co-card { padding: 24px 18px; }
  .header-inner { gap: 10px; }
  .logo { font-size: 1.1rem; }
}

/* ---------- Contact page ---------- */
.contact-page { margin: 28px 0 70px; }
.contact-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start;
}
.contact-info h2,
.contact-form-card h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -.01em;
}
.contact-lede { color: var(--ink-soft); margin: 8px 0 22px; max-width: 420px; }
.contact-items { display: grid; gap: 12px; }
.contact-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
a.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ci-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.ci-icon svg { width: 20px; height: 20px; }
.contact-card > div > span {
  display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.contact-card strong { display: block; font-size: .97rem; word-break: break-word; }
.contact-card p { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.contact-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--accent-soft); color: #9a3c1b; font-size: .86rem; font-weight: 600;
}
.contact-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.contact-form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 34px; box-shadow: var(--shadow-md);
}
.contact-form-sub { color: var(--muted); font-size: .92rem; margin: 6px 0 22px; }
.contact-form-card textarea { resize: vertical; min-height: 130px; }
.contact-success { text-align: center; padding: 34px 6px; }
.contact-success h2 { margin-bottom: 8px; }
.contact-success p { color: var(--ink-soft); max-width: 380px; margin: 0 auto 22px; }
.contact-success strong { word-break: break-word; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { max-width: 560px; }
}

@media (max-width: 560px) {
  .contact-page { margin-top: 18px; }
  .contact-form-card { padding: 24px 18px; border-radius: 18px; }
  .contact-card { padding: 15px 16px; }
  .contact-success { padding: 18px 2px; }
}

/* ---------- Header & footer designs (Admin → Appearance) ---------- */
/* Every storefront page gets data-header-design / data-footer-design on
   <body> from the saved settings; a missing attribute renders the classic
   layout. */

@media (min-width: 769px) {
  /* Centered: logo on its own row, nav centered below */
  body[data-header-design="centered"] .header-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: auto; padding-top: 14px; row-gap: 10px;
  }
  body[data-header-design="centered"] .nav-toggle { display: none; }
  body[data-header-design="centered"] .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  body[data-header-design="centered"] .header-actions { grid-column: 3; grid-row: 1; justify-self: end; }
  body[data-header-design="centered"] .main-nav {
    grid-column: 1 / -1; grid-row: 2; justify-content: center;
    margin-inline: 0; padding-bottom: 13px;
  }

  /* Minimal: borderless bar with an uppercase nav pushed right */
  body[data-header-design="minimal"] .site-header {
    border-bottom: none; backdrop-filter: none; background: var(--header-bg);
  }
  body[data-header-design="minimal"] .main-nav { margin-left: auto; margin-right: 6px; }
  body[data-header-design="minimal"] .nav-link {
    font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  }
  body[data-header-design="minimal"] .nav-link::after { bottom: -5px; }

  /* Floating: rounded pill bar on a frosted strip */
  body[data-header-design="floating"] .site-header {
    background: color-mix(in srgb, var(--header-bg) 45%, transparent);
  }
  body[data-header-design="floating"] .header-inner {
    height: 60px; margin-top: 12px; padding-inline: 20px;
    background: var(--header-bg); border: 1px solid var(--line);
    border-radius: 999px; box-shadow: var(--shadow-md);
  }
}

/* Centered footer: brand block on top, link columns gathered beneath it */
body[data-footer-design="centered"] .footer-grid {
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: center; gap: 24px 56px;
}
body[data-footer-design="centered"] .footer-col:first-child {
  grid-column: 1 / -1; justify-self: center; text-align: center;
}
body[data-footer-design="centered"] .footer-col:first-child p { margin-inline: auto; }
body[data-footer-design="centered"] .footer-col:not(:first-child) { text-align: center; }

/* Compact footer: everything inline on one row */
body[data-footer-design="compact"] .footer-grid {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px 28px; padding: 32px 0 26px;
}
body[data-footer-design="compact"] .footer-col {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px 16px;
}
body[data-footer-design="compact"] .footer-col h4 { margin: 0; }
body[data-footer-design="compact"] .footer-col a { display: inline-block; padding: 4px 0; }
body[data-footer-design="compact"] .footer-col p { display: none; }

/* Cards footer: each column boxed in a soft tile */
body[data-footer-design="cards"] .footer-grid { gap: 14px; }
body[data-footer-design="cards"] .footer-col {
  background: color-mix(in srgb, var(--footer-text) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--footer-text) 16%, transparent);
  border-radius: var(--radius); padding: 20px;
}
body[data-footer-design="cards"] .footer-col p { max-width: none; }

@media (max-width: 640px) {
  body[data-footer-design="centered"] .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  body[data-footer-design="cards"] .footer-grid { grid-template-columns: 1fr; }
}
