/* ==========================================================================
   Homistyle — storefront design system
   ========================================================================== */

:root{
  --ink:#2b1d14;
  --ink-soft:#5a4636;
  --muted:#8d7c6b;
  --line:#e6ddd0;
  --paper:#ffffff;
  --bg:#f4efe7;
  --header:#2e2018;
  --header-ink:#f4efe7;
  --brand:#8a5a34;
  --brand-dark:#6e4527;
  --accent:#c99a4a;
  --success:#1b6e3c;
  --success-bg:#e9f7ee;
  --error:#b1181f;
  --error-bg:#fdecea;
  --radius:4px;
  --radius-sm:4px;
  --shadow-sm:0 1px 2px rgba(43,29,20,.08);
  --shadow-md:0 10px 26px rgba(43,29,20,.12);
  --shadow-lg:0 20px 50px rgba(43,29,20,.22);
  --container:1320px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
body{
  margin:0;
  font-family:var(--font);
  font-weight:400;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  overflow-x:hidden;
  width:100%;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
button{ font-family:inherit; }

.wrap{ max-width:var(--container); margin:0 auto; padding:0 24px; }

/* ---------- Topbar ---------- */
.topbar{
  background:var(--accent); color:#2b1d14; font-size:12.5px;
}
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; padding:7px 24px; gap:16px; flex-wrap:wrap; }
.topbar a{ color:#2b1d14; text-decoration:none; font-weight:600; }
.topbar a:hover{ color:#000; }
.topbar-links{ display:flex; gap:18px; }

/* ---------- Header ---------- */
.site-header{ background:var(--header); border-bottom:1px solid #46351f; position:sticky; top:0; z-index:40; }
.header-row{ display:flex; align-items:center; gap:24px; padding:18px 24px; }
.logo{ display:inline-flex; align-items:center; gap:10px; font-family:var(--serif); font-size:25px; font-weight:700; letter-spacing:.3px; text-decoration:none; color:var(--header-ink); white-space:nowrap; }
.logo-mark{ height:44px; width:auto; object-fit:contain; flex-shrink:0; }
.footer-logo-mark{ height:48px; }
.logo-text{ line-height:1; display:inline-block; }
.logo-text::first-letter{ color:var(--accent); }

.main-nav{ display:flex; gap:30px; flex:1; }
.main-nav a{ text-decoration:none; color:#e9e2d6; font-size:14.5px; font-weight:600; padding:6px 0; border-bottom:2px solid transparent; }
.main-nav a:hover, .main-nav a.active{ color:#fff; border-color:var(--accent); }

.search-form{ max-width:280px; position:relative; }
.search-form input{
  width:100%; padding:10px 40px 10px 16px; border:1px solid #46351f; border-radius:999px;
  font-size:13.5px; background:#3a2b1c; color:#fff; outline:none; transition:border-color .15s;
}
.search-form input::placeholder{ color:#bfae9a; }
.search-form input:focus{ border-color:var(--accent); }
.search-form button{
  position:absolute; right:4px; top:4px; bottom:4px; width:32px; border:none; background:var(--accent);
  color:#2b1d14; border-radius:999px; cursor:pointer; font-size:13px;
}

.header-actions{ display:flex; align-items:center; gap:4px; }
.icon-btn{
  position:relative; display:inline-flex; flex-direction:column; align-items:center; gap:2px;
  text-decoration:none; color:var(--header-ink); font-size:10.5px; font-weight:600; padding:6px 10px;
  border:none; background:none; cursor:pointer; border-radius:var(--radius-sm);
}
.icon-btn:hover{ background:#3a2b1c; }
.icon-btn .ico{ font-size:18px; line-height:1; }
.icon-btn .ico i{ display:block; }
.badge{
  position:absolute; top:0; right:2px; background:var(--accent); color:#2b1d14; font-size:10px; font-weight:700;
  border-radius:999px; min-width:16px; height:16px; display:flex; align-items:center; justify-content:center; padding:0 4px;
}

.mobile-toggle{ display:none; background:none; border:1px solid #46351f; color:var(--header-ink); border-radius:var(--radius-sm); padding:8px 10px; cursor:pointer; font-size:16px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none;
  border-radius:999px; font-size:13.5px; font-weight:700; padding:14px 30px; cursor:pointer; border:1px solid transparent;
  transition:transform .1s ease, background .15s, box-shadow .15s; letter-spacing:.6px; text-transform:uppercase;
}
.btn:active{ transform:scale(.98); }
.btn-primary{ background:var(--ink); color:#fff; }
.btn-primary:hover{ background:#000; }
.btn-brand{ background:var(--brand); color:#fff; }
.btn-brand:hover{ background:var(--brand-dark); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:#fff; }
.btn-ghost{ background:none; color:var(--ink-soft); border-color:var(--line); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 16px; font-size:12px; }
.btn[disabled]{ background:#ddd; color:#888; cursor:not-allowed; }

/* ---------- Sections / typography ---------- */
.section{ padding:56px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:30px; gap:16px; flex-wrap:wrap; }
.section-title{ font-family:var(--serif); font-size:48px; line-height:1; margin:0; color:#341F16; text-transform:uppercase; letter-spacing:-0.96px; font-weight:400; }
.eyebrow{ text-transform:uppercase; letter-spacing:1.6px; font-size:11.5px; font-weight:700; color:var(--brand); margin:0 0 6px; }
.section-sub{ color:var(--muted); font-size:14.5px; margin:6px 0 0; max-width:560px; }
.view-all{ font-size:13.5px; font-weight:700; text-decoration:none; color:var(--ink); border-bottom:2px solid var(--brand); padding-bottom:2px; }

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden; background:linear-gradient(120deg,#241d19,#3a2a20 55%,#5b3a26) center/cover no-repeat;
  color:#fff; margin-top:0; min-height:480px; display:flex; align-items:center; justify-content:center; text-align:center;
}
.hero.has-image{ background-image:linear-gradient(0deg, rgba(24,16,10,.45), rgba(24,16,10,.35)), var(--hero-img); }
.hero-inner{ padding:56px; max-width:620px; }
.hero .eyebrow{ color:var(--accent); letter-spacing:3px; }
.hero h1{ font-family:var(--serif); font-size:20px; letter-spacing:5px; text-transform:uppercase; line-height:1.4; margin:0 0 10px; font-weight:400; }
.hero p{ color:#e8e1d8; font-size:15.5px; margin:0 0 28px; max-width:460px; margin-left:auto; margin-right:auto; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }

/* ---------- USP strip ---------- */
.usp-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-top:0; }
.usp{ background:#fff; padding:22px 20px; display:flex; gap:12px; align-items:center; }
.usp .ico{ font-size:22px; color:var(--brand); }
.usp strong{ display:block; font-size:13.5px; color:var(--ink); }
.usp span{ font-size:12px; color:var(--muted); }

/* ---------- Category tiles ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; }
.cat-tile{
  position:relative; overflow:hidden; text-decoration:none; color:var(--ink); display:flex; flex-direction:column;
  background:var(--bg); box-shadow:var(--shadow-sm); border:1px solid var(--line);
}
.cat-tile .img{ aspect-ratio:4/3; background:#d8d2c8 center/cover no-repeat; }
.cat-tile .lbl{
  padding:18px 16px; font-weight:700; font-size:14px; text-transform:uppercase; letter-spacing:1px; text-align:center; background:var(--bg);
}
.cat-tile .lbl small{ display:block; font-weight:400; font-size:11px; letter-spacing:.4px; text-transform:none; opacity:.7; margin-top:3px; }
.cat-tile:hover{ box-shadow:var(--shadow-md); }
.cat-pills{ display:flex; flex-wrap:wrap; gap:10px; }
.cat-pills a{ background:transparent; border:1px solid var(--brand); padding:9px 20px; border-radius:999px; text-decoration:none; color:var(--brand); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.cat-pills a:hover, .cat-pills a.active{ background:var(--brand); color:#fff; border-color:var(--brand); }

/* ---------- Product grid / card ---------- */
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:24px 20px; }
.card{
  background:transparent; border:none; border-radius:0; overflow:visible; position:relative;
  transition:box-shadow .15s, transform .15s; display:flex; flex-direction:column;
}
.card:hover{ transform:translateY(-2px); }
.card .thumb{ position:relative; aspect-ratio:1/1; background:#efece7; overflow:hidden; box-shadow:var(--shadow-sm); }
.card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.card:hover .thumb img{ transform:scale(1.05); }
.card .body{ padding:14px 2px 4px; display:flex; flex-direction:column; gap:4px; flex:1; }
.card .brand{ font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); }
.card h3{ font-size:14.5px; margin:0; font-weight:600; line-height:1.3; color:var(--ink-soft); }
.card h3 a{ text-decoration:none; color:var(--ink-soft); }
.card .stars{ font-size:12px; color:var(--accent); }
.card .stars .count{ color:var(--muted); }
.card .price-row{ display:flex; align-items:baseline; gap:8px; margin-top:2px; }
.card .price{ font-weight:700; color:var(--ink); font-size:15px; }
.card .price-old{ font-size:12.5px; color:var(--muted); text-decoration:line-through; }
.card .quick-add{ margin-top:auto; padding-top:10px; }

.ribbon{
  position:absolute; top:10px; left:10px; z-index:2; font-size:10.5px; font-weight:800; letter-spacing:.3px;
  color:#fff; padding:4px 9px; border-radius:5px; text-transform:uppercase;
}
.ribbon.sale{ background:var(--brand); }
.ribbon.new{ background:var(--success); }
.ribbon.oos{ background:#666; }

.wish-btn{
  position:absolute; top:8px; right:8px; z-index:2; width:32px; height:32px; border-radius:50%; border:1px solid var(--line);
  background:#fff; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm); color:var(--brand);
}
.wish-btn.active{ border-color:var(--brand); color:var(--brand); }

/* ---------- Filter bar / shop layout ---------- */
.shop-layout{ display:grid; grid-template-columns:230px 1fr; gap:40px; align-items:start; }
.filters{ background:transparent; border:none; padding:0; position:sticky; top:96px; }
.filters h4{ font-size:12px; text-transform:uppercase; letter-spacing:1.2px; margin:0 0 12px; color:var(--ink); font-weight:700; }
.filter-group{ padding:16px 0; border-top:1px solid var(--line); }
.filter-group:first-child{ border-top:none; padding-top:0; }
.filter-opt{ display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--ink-soft); padding:5px 0; cursor:pointer; }
.filter-opt input{ accent-color:var(--brand); }
.toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; gap:12px; flex-wrap:wrap; }
.result-count{ font-size:13px; color:var(--ink); text-transform:uppercase; letter-spacing:.6px; font-weight:700; }
.sort-select{ padding:9px 14px; border:1px solid var(--line); border-radius:var(--radius-sm); font-size:13.5px; background:#fff; color:var(--ink-soft); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{ font-size:12.5px; color:var(--muted); margin-bottom:18px; }
.breadcrumbs a{ color:var(--muted); text-decoration:none; }
.breadcrumbs a:hover{ color:var(--ink); text-decoration:underline; }
.breadcrumbs .sep{ margin:0 6px; }

/* ---------- Product detail ---------- */
.pdp{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:44px; }
.pdp-gallery .main-photo-wrap{ border-radius:var(--radius); overflow:hidden; background:#efece7; aspect-ratio:1/1; }
.pdp-gallery .main-photo-wrap img{ width:100%; height:100%; object-fit:cover; }
.thumb-strip{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.thumb-strip img{
  width:64px; height:64px; object-fit:cover; border-radius:var(--radius-sm); border:2px solid var(--line); cursor:pointer; background:#efece7;
}
.thumb-strip img.active, .thumb-strip img:hover{ border-color:var(--ink); }

.pdp-info .brand-link{ font-size:12.5px; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); text-decoration:none; }
.pdp-info h1{ font-family:var(--serif); font-size:28px; margin:6px 0 10px; }
.rating-row{ display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--muted); margin-bottom:14px; flex-wrap:wrap; }
.rating-row .stars{ color:var(--accent); font-size:14px; }
.price-block{ display:flex; align-items:baseline; gap:10px; margin:6px 0 18px; flex-wrap:wrap; }
.price-block .now{ font-size:28px; font-weight:800; color:var(--brand); }
.price-block .old{ font-size:16px; color:var(--muted); text-decoration:line-through; }
.pdp-desc{ color:var(--ink-soft); font-size:14.5px; line-height:1.7; margin-bottom:18px; }
.delivery-note{ font-size:13.5px; color:var(--ink-soft); background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-sm); padding:10px 14px; margin-bottom:20px; display:flex; gap:8px; align-items:center; }

.opt-group{ margin-bottom:20px; }
.opt-label{ font-weight:700; font-size:13.5px; margin-bottom:9px; display:flex; gap:6px; align-items:baseline; }
.opt-label .optional{ font-weight:400; color:var(--muted); font-size:12px; }
.opt-row{ display:flex; flex-wrap:wrap; gap:9px; }

/* ---------- PDP option dropdowns (Bed Size, Colour, etc.) ---------- */
.opt-dropdown{ border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; overflow:hidden; }
.opt-dropdown-toggle{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:none; border:none; cursor:pointer; padding:14px 16px; font-family:inherit; text-align:left;
}
.opt-dropdown-toggle:hover{ background:var(--bg); }
.opt-dropdown-label{ font-weight:700; font-size:13.5px; color:var(--ink); display:flex; gap:6px; align-items:baseline; flex-shrink:0; }
.opt-dropdown-label .optional{ font-weight:400; color:var(--muted); font-size:12px; }
.opt-dropdown-selected{ flex:1; text-align:right; font-size:13.5px; color:var(--muted); padding-right:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.opt-dropdown-selected.has-value{ color:var(--ink); font-weight:700; }
.opt-dropdown-chevron{ color:var(--muted); font-size:12px; transition:transform .2s ease; flex-shrink:0; }
.opt-dropdown.open .opt-dropdown-chevron{ transform:rotate(180deg); }
.opt-dropdown.open .opt-dropdown-toggle{ border-bottom:1px solid var(--line); }
.opt-dropdown-panel{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.opt-dropdown-panel .opt-row{ padding:14px 16px; margin:0; }
.swatch{
  width:34px; height:34px; border-radius:50%; border:2px solid var(--line); cursor:pointer; padding:0;
}
.swatch.selected{ border-color:var(--ink); box-shadow:0 0 0 2px #fff inset, 0 0 0 3px var(--ink); }
.chip{
  padding:9px 15px; border:1.5px solid var(--line); border-radius:999px; background:#fff; cursor:pointer; font-size:13px; color:var(--ink-soft);
  transition:border-color .15s, color .15s, background .15s;
}
.chip .mod{ color:var(--muted); }
.chip.selected{ background:#fff; color:var(--brand-dark); border-color:var(--brand); font-weight:700; box-shadow:0 0 0 1px var(--brand); }
.chip.selected .mod{ color:var(--brand); }

.qty-stepper{ display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; overflow:hidden; }
.qty-stepper button{ width:36px; height:44px; border:none; background:#fff; cursor:pointer; font-size:16px; }
.qty-stepper button:hover{ background:var(--bg); }
.qty-stepper input{ width:44px; text-align:center; border:none; font-size:14px; height:44px; }
.pdp-buy-row{ display:flex; align-items:center; gap:12px; margin-top:22px; flex-wrap:wrap; }

.mini-usp{ display:flex; gap:18px; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); flex-wrap:wrap; }
.mini-usp span{ font-size:12.5px; color:var(--ink-soft); display:flex; align-items:center; gap:6px; }

/* Tabs */
.tabs-nav{ display:flex; gap:8px; border-bottom:1px solid var(--line); margin:52px 0 24px; }
.tabs-nav button{
  background:none; border:none; padding:12px 6px; margin-right:22px; font-size:14.5px; font-weight:700; color:var(--muted);
  cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px;
}
.tabs-nav button.active{ color:var(--ink); border-color:var(--brand); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

.review-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px; margin-bottom:12px; }
.review-card .review-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.review-form{ max-width:520px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin-top:20px; }
.pdp-specs-scroll{ width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* ---------- Forms (generic) ---------- */
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:13px; font-weight:600; margin-bottom:6px; color:var(--ink-soft); }
.field input, .field select, .field textarea{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:var(--radius-sm); font-size:14px; background:#fff;
  font-family:inherit; outline:none; transition:border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--ink); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.span-2{ grid-column:1/-1; }
.radio-card{ display:flex; gap:12px; align-items:flex-start; border:1px solid var(--line); border-radius:var(--radius-sm); padding:13px 15px; cursor:pointer; margin-bottom:10px; }
.radio-card:has(input:checked){ border-color:var(--ink); background:var(--bg); }
.radio-card input{ margin-top:3px; accent-color:var(--ink); }
.radio-card strong{ display:block; font-size:14px; }
.radio-card small{ display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.wallet-icons{ display:flex; gap:10px; margin-top:8px; }
.wallet-icons i{ font-size:22px; color:var(--muted); }

/* ---------- Cart ---------- */
.cart-layout{ display:grid; grid-template-columns:1fr 340px; gap:32px; align-items:start; }
.cart-table{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.cart-row{ display:grid; grid-template-columns:74px 1fr auto auto auto; gap:16px; align-items:start; padding:16px; border-bottom:1px solid var(--line); }
.cart-row:last-child{ border-bottom:none; }
.cart-row img{ width:72px; height:72px; object-fit:cover; border-radius:var(--radius-sm); background:#efece7; }
.cart-row .qty-stepper, .cart-row .line-price, .cart-row .remove-link{ margin-top:2px; }
.cart-row .opts{ display:flex; flex-direction:column; gap:3px; font-size:12.5px; color:var(--muted); margin-top:6px; }
.cart-row .opts .opt-line{ line-height:1.5; }
.cart-row .opts .opt-k{ color:var(--ink-soft); font-weight:600; }
.cart-row .opts.opts-collapsed .opt-line:nth-child(n+5){ display:none; }
.opts-toggle{
  background:none; border:none; padding:0; margin-top:6px; font-size:12px; font-weight:700;
  color:var(--brand); cursor:pointer; text-decoration:underline; font-family:inherit;
}
.opts-toggle:hover{ color:var(--brand-dark); }
.cart-row .name{ font-weight:700; font-size:14px; text-decoration:none; color:var(--ink); }
.cart-row .line-price{ font-weight:700; white-space:nowrap; }
.remove-link{ background:none; border:none; color:var(--error); cursor:pointer; font-size:12.5px; text-decoration:underline; padding:0; }
.summary-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; position:sticky; top:96px; }
.summary-row{ display:flex; justify-content:space-between; font-size:14px; color:var(--ink-soft); margin-bottom:8px; }
.summary-row.total{ font-size:18px; font-weight:800; color:var(--ink); border-top:1px solid var(--line); padding-top:12px; margin-top:10px; }
.summary-row.total .amt{ color:var(--brand); }
.coupon-row{ display:flex; gap:8px; margin:14px 0; }
.coupon-row input{ flex:1; padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius-sm); text-transform:uppercase; font-size:13px; }
.empty-state{ text-align:center; padding:70px 20px; background:#fff; border:1px dashed var(--line); border-radius:var(--radius); }
.empty-state .ico{ font-size:44px; margin-bottom:14px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--header); color:#d7cdbf; margin-top:64px; padding: 20px;}
.footer-top{ padding:60px 0 44px; display:grid; grid-template-columns:1.15fr 1fr; gap:40px; align-items:start; }
.footer-left .logo{ margin-bottom:32px; }
.footer-nav-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:32px; }
.footer-col h5{ color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:1px; margin:0 0 16px; }
.footer-heading{ font-family:var(--serif); font-size:30px; color:#fff; text-transform:uppercase; letter-spacing:2px; font-weight:400; margin:0 0 24px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.footer-arrow{ flex:none; width:40px; height:40px; border-radius:50%; border:1px solid #4a3823; color:#fff; display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:14px; transition:background .15s ease, color .15s ease, border-color .15s ease; }
.footer-arrow:hover{ background:var(--accent); border-color:var(--accent); color:#2b1d14; }
.footer-col p{ font-size:13px; color:#b3a794; line-height:1.7; margin:0 0 14px; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:9px; }
.footer-col a{ color:#c9bda9; text-decoration:none; font-size:13.5px; }
.footer-col a:hover{ color:#fff; }
.footer-contact-label{ font-size:12px; text-transform:uppercase; letter-spacing:.6px; color:#a99a83; margin:0 0 4px; }
.footer-contact-value{ font-size:17px; color:#fff; margin:0 0 20px; word-break:break-word; }
.footer-newsletter{ display:flex; gap:8px; margin-top:6px; flex-wrap:wrap; }
.footer-newsletter input{ flex:1 1 160px; min-width:0; padding:11px 13px; border-radius:var(--radius-sm); border:1px solid #4a3823; background:#3a2b1c; color:#fff; font-size:13px; }
.footer-newsletter button{ background:var(--accent); color:#2b1d14; border:none; padding:0 18px; border-radius:var(--radius-sm); cursor:pointer; font-weight:700; font-size:13px; flex:none; }
.footer-bottom{  padding:20px 0; display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color:#a99a83; flex-wrap:wrap; gap:10px; }
.pay-icons{ display:flex; gap:8px; font-size:20px; flex-wrap:wrap; }
.social-row{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.social-row a{ width:34px; height:34px; border:1px solid #4a3823; border-radius:50%; display:flex; align-items:center; justify-content:center; text-decoration:none; color:#d7cdbf; font-size:14px; }
.social-row a:hover{ border-color:var(--accent); color:var(--accent); }

/* ---------- Flash / toasts ---------- */
.flash-status, .flash-error{ padding:12px 16px; border-radius:var(--radius-sm); margin-bottom:18px; font-size:13.5px; }
.flash-status{ background:var(--success-bg); border:1px solid #b7e2bf; color:var(--success); }
.flash-error{ background:var(--error-bg); border:1px solid #f3b7b0; color:var(--error); }
.flash-error ul{ margin:6px 0 0; padding-left:18px; }

#toast-stack{ position:fixed; bottom:20px; right:20px; z-index:200; display:flex; flex-direction:column; gap:10px; }
.toast{
  background:var(--ink); color:#fff; padding:13px 18px; border-radius:var(--radius-sm); font-size:13.5px; box-shadow:var(--shadow-lg);
  display:flex; align-items:center; gap:10px; min-width:220px; animation:toast-in .2s ease;
}
.toast.error{ background:var(--error); }
.toast.success{ background:var(--success); }
@keyframes toast-in{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:translateY(0);} }

/* ---------- Mini-cart drawer ---------- */
.drawer-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:90; opacity:0; pointer-events:none; transition:opacity .2s; }
.drawer-overlay.open{ opacity:1; pointer-events:auto; }
.mini-cart{
  position:fixed; top:0; right:0; bottom:0; width:380px; max-width:92vw; background:#fff; z-index:100;
  transform:translateX(100%); transition:transform .25s ease; display:flex; flex-direction:column; box-shadow:var(--shadow-lg);
}
.mini-cart.open{ transform:translateX(0); }
.mini-cart-head{ display:flex; justify-content:space-between; align-items:center; padding:18px 20px; border-bottom:1px solid var(--line); }
.mini-cart-body{ flex:1; overflow-y:auto; padding:14px 20px; }
.mini-cart-foot{ padding:16px 20px; border-top:1px solid var(--line); }
.mini-row{ display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.mini-row img{ width:56px; height:56px; object-fit:cover; border-radius:var(--radius-sm); background:#efece7; }
.close-x{ background:none; border:none; font-size:20px; cursor:pointer; color:var(--muted); }

/* ---------- Misc ---------- */
.skeleton{ background:linear-gradient(90deg,#eee,#f5f5f5,#eee); background-size:200% 100%; animation:sk 1.2s infinite; }
@keyframes sk{ 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ---------- Scroll-reveal (see bindScrollReveal() in store.js) ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
/* Stagger helpers — add alongside .reveal for a cascading effect across a
   row/grid of items (e.g. blog cards, FAQ rows) instead of everything
   fading in at the exact same instant. */
.reveal-d1{ transition-delay:.08s; }
.reveal-d2{ transition-delay:.16s; }
.reveal-d3{ transition-delay:.24s; }
.reveal-d4{ transition-delay:.32s; }
.reveal-d5{ transition-delay:.4s; }
.reveal-d6{ transition-delay:.48s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

main.page{ max-width:var(--container); margin:0 auto; padding:28px 24px 64px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px){
  .wrap{ padding:0 18px; }
  .blog-hero-inner{ padding:0 18px; }
  .pdp{ gap:30px; }
  .header-row{ gap:14px; }
  .main-nav{ gap:16px; }
}

@media (max-width: 980px){
  .pdp{ grid-template-columns:1fr; }
  .shop-layout{ grid-template-columns:1fr; }
  .filters{ position:static; }
  .cart-layout{ grid-template-columns:1fr; }
  .usp-strip{ grid-template-columns:1fr 1fr; }
  .hero h1{ font-size:36px; }
  .grid{ grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; }
  main.page{ padding:22px 18px 48px; }
}

@media (max-width: 860px){
  .search-form{ max-width:280px; }
  .header-actions .icon-btn span:not(.ico):not(.badge){ display:none; }
  .icon-btn{ padding:8px; }
  .footer-top{ gap:28px; }
  .footer-nav-grid{ gap:18px; }
}

@media (max-width: 760px){
  .topbar .wrap{ flex-direction:column; gap:6px; align-items:stretch; padding:8px 18px; }
  .topbar .wrap > span{ width:100%; white-space:normal; line-height:1.5;
  
   
  
  }
  .topbar-links{ gap:12px; flex-wrap:wrap; width:100%; }

  .header-row{ flex-wrap:wrap; padding:12px 18px; }
  .logo{ font-size:21px; order:2; }
  .logo-mark{ height:34px; width:auto; }
  .mobile-toggle{ display:inline-flex; order:1; }
  .header-actions{ order:3; margin-left:auto; }
  .search-form{ order:4; flex:1 1 100%; max-width:none; margin-top:10px; }

  .main-nav{
    display:none; order:5; flex-basis:100%; flex-direction:column; gap:0;
    background:#fff; border-top:1px solid var(--line); margin-top:10px;
  }
  .main-nav.open-mobile{ display:flex; }
  .main-nav a{ padding:12px 4px; border-bottom:1px solid var(--line); width:100%; color:var(--ink); }
  .main-nav a:hover, .main-nav a.active{ color:var(--brand); border-color:var(--line); }

  .hero{ min-height:auto; }
  .hero h1{ font-size:28px; }
  .hero-inner{ padding:30px 22px; }
  .hero-actions .btn{ width:100%; }

  .cat-grid{ grid-template-columns:repeat(2,1fr); }
  .grid{ grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
  .card h3{ font-size:13px; }
  .card .price{ font-size:14.5px; }

  .footer-top{ grid-template-columns:1fr; padding:36px 0 28px; gap:38px; text-align:left; }
  .footer-nav-grid{ grid-template-columns:1fr; gap:28px; margin-bottom:30px; }
  .footer-left .logo{ margin-bottom:28px; }
  .footer-left .social-row{ margin-top:6px; }
  .footer-heading{ font-size:24px; margin-bottom:28px; }
  .footer-arrow{ width:34px; height:34px; font-size:12px; }
  .footer-contact-value{ font-size:15.5px; }
  .footer-newsletter{ max-width:360px; }
  .footer-bottom{ flex-direction:column; align-items:center; text-align:center; }
  .footer-bottom .pay-icons{ justify-content:center; }

  .cart-row{
    grid-template-columns:60px 1fr; gap:10px 14px;
    grid-template-areas:"img name" "img qty" "img price" "img remove";
  }
  .cart-row img{ grid-area:img; }
  .cart-row > div:nth-child(2){ grid-area:name; }
  .cart-row .qty-stepper{ grid-area:qty; margin-top:8px; width:auto; max-width:140px; justify-self:start; }
  .cart-row .line-price{ grid-area:price; margin-top:4px; }
  .cart-row .remove-link{ grid-area:remove; justify-self:start; margin-top:2px; }

  .field-row{ grid-template-columns:1fr; }
  .field-row .span-2{ grid-column:1; }

  .pdp-info h1{ font-size:22px; }
  .price-block .now{ font-size:24px; }
  .pdp-buy-row{ flex-direction:column; align-items:stretch; }
  .pdp-buy-row .btn{ width:100%; }
  .pdp-buy-row .qty-stepper{ width:100%; justify-content:space-between; }
  .qty-stepper input{ flex:1; width:auto; }

  .thumb-strip img{ width:52px; height:52px; }
  .swatch{ width:32px; height:32px; }
  .chip{ padding:10px 14px; font-size:12.5px; }
  .delivery-note{ flex-wrap:wrap; }

  .opt-dropdown-toggle{ min-height:48px; padding:12px 14px; }
  .opt-dropdown-selected{ max-width:130px; }
  .opt-dropdown-panel .opt-row{ padding:12px 14px; gap:8px; }

  .tabs-nav{ overflow-x:auto; white-space:nowrap; gap:0; }
  .tabs-nav button{ margin-right:16px; flex:0 0 auto; }

  .review-form{ max-width:none; padding:16px; }

  .mini-cart{ width:100%; max-width:100%; }
  .usp-strip{ grid-template-columns:1fr; }
  .toolbar{ flex-direction:column; align-items:flex-start; }
  .sort-select{ width:100%; }

  #toast-stack{ left:12px; right:12px; bottom:12px; }
  .toast{ min-width:0; width:100%; }
}

@media (max-width: 420px){
  .cat-grid{ grid-template-columns:1fr 1fr; gap:10px; }
  .grid{ grid-template-columns:repeat(2,1fr); }
  .hero h1{ font-size:24px; }
  .section-title{ font-size:24px; }
  .footer-newsletter{ flex-direction:column; max-width:none; }
  .footer-newsletter button{ width:100%; padding:11px; }
  .footer-heading{ font-size:21px; }
}

@media (max-width: 480px){
  .topbar-sep{ display:none; }
}

/* ==========================================================================
   Auth pages (Login / Register / Forgot / Reset password)
   ========================================================================== */
.auth-wrap{ max-width:440px; margin:24px auto 60px; }
.auth-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:38px 36px; box-shadow:var(--shadow-sm); }
.auth-card h1{ font-family:var(--serif); font-size:25px; margin:0 0 6px; color:var(--ink); text-transform:uppercase; letter-spacing:.4px; }
.auth-card .auth-sub{ color:var(--muted); font-size:13.5px; margin:0 0 26px; line-height:1.6; }
.auth-card .field{ margin-bottom:18px; }
.auth-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; font-size:13px; gap:12px; flex-wrap:wrap; }
.auth-row .remember{ display:flex; align-items:center; gap:7px; cursor:pointer; color:var(--ink-soft); }
.auth-row .remember input{ accent-color:var(--brand); width:auto; }
.auth-row a{ color:var(--brand); font-weight:700; text-decoration:none; }
.auth-row a:hover{ text-decoration:underline; }
.auth-foot{ text-align:center; font-size:13.5px; color:var(--muted); margin-top:24px; }
.auth-foot a{ color:var(--brand); font-weight:700; text-decoration:none; }
.auth-foot a:hover{ text-decoration:underline; }
.auth-divider{ display:flex; align-items:center; text-align:center; color:var(--muted); font-size:12.5px; margin:22px 0; }
.auth-divider::before, .auth-divider::after{ content:""; flex:1; border-bottom:1px solid var(--line); }
.auth-divider span{ padding:0 12px; }
.social-login-buttons{ display:flex; flex-direction:column; gap:10px; }
.btn-social{ display:flex; align-items:center; justify-content:center; gap:10px; font-weight:600; }
.btn-social i{ font-size:16px; }
.btn-google i{ color:#EA4335; }
.btn-facebook i{ color:#1877F2; }
.btn-apple i{ color:#000; }
.auth-hint{ color:var(--muted); font-size:12px; margin-top:6px; }
.auth-back{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--ink-soft); text-decoration:none; margin-bottom:16px; }
.auth-back:hover{ color:var(--brand); }

/* ==========================================================================
   Simple content pages (FAQ / Contact / Legal)
   ========================================================================== */
.content-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:36px; max-width:820px; margin:0 auto; }
.content-card.narrow{ max-width:560px; }
.content-card h1{ font-family:var(--serif); font-size:27px; margin:0 0 6px; color:var(--ink); text-transform:uppercase; letter-spacing:.4px; }
.content-card .page-sub{ color:var(--muted); font-size:14px; margin:0 0 26px; line-height:1.7; }
.content-card h2{ font-size:16px; color:var(--ink); margin:26px 0 8px; }
.content-card p{ color:var(--ink-soft); font-size:14px; line-height:1.75; margin:0 0 4px; }
.content-card .updated{ color:var(--muted); font-size:12px; margin:0 0 22px; }
.content-card .faq-list{ max-width:none; }

/* ==========================================================================
   Blog
   ========================================================================== */

/* ---- Hero banner (dark image + overlay, used on both the index and a
   single post) ---- */
.blog-hero{
  position:relative; width:100vw; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw;
  overflow:hidden; margin-top:-28px; margin-bottom:44px; padding:70px 0 40px;
  background:linear-gradient(0deg, rgba(24,16,10,.62), rgba(24,16,10,.5)), var(--blog-hero-img, url('/images/home/Gemini_Generated_Image_vcqjorvcqjorvcqj 1.jpg')) center/cover no-repeat;
  color:#fff;
}
.blog-hero-inner{ max-width:var(--container); margin:0 auto; padding:0 24px; display:flex; justify-content:space-between; align-items:flex-end; gap:40px; flex-wrap:wrap; box-sizing:border-box; }
.blog-hero h1{ font-family:var(--serif); font-size:44px; line-height:1.15; text-transform:uppercase; margin:0 0 14px; font-weight:400; max-width:640px; }
.blog-hero .blog-breadcrumbs{ font-size:12.5px; color:#e8e1d8; display:flex; gap:8px; align-items:center; }
.blog-hero .blog-breadcrumbs a{ color:#e8e1d8; text-decoration:none; }
.blog-hero .blog-breadcrumbs a:hover{ color:#fff; text-decoration:underline; }
.blog-hero .blog-hero-desc{ color:#e8e1d8; font-size:14.5px; line-height:1.7; max-width:340px; margin:0; }

/* ---- Listing page: grid of cards ---- */
.blog-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:36px 28px; margin-top:8px; }
.blog-card{ text-decoration:none; color:inherit; display:flex; flex-direction:column; }
.blog-card .thumb{ aspect-ratio:1.4/2; background:#efece7; overflow:hidden; border-radius:var(--radius); margin-bottom:20px; }
.blog-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s; }
.blog-card:hover .thumb img{ transform:scale(1.04); }
.blog-card h3{ font-family:var(--serif); font-size:19px; text-transform:uppercase; margin:0 0 10px; color:var(--ink); line-height:1.35; font-weight:700; }
.blog-card .excerpt{ color:var(--ink-soft); font-size:13.5px; line-height:1.7; margin:0 0 14px; flex:1; }
.blog-card .meta{ font-size:12px; color:var(--muted); display:flex; gap:16px; flex-wrap:wrap; align-items:center; }
.blog-card .meta span{ display:flex; align-items:center; gap:6px; }
.blog-author-avatar{ width:20px; height:20px; border-radius:50%; background:var(--brand); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:9.5px; font-weight:700; flex:0 0 20px; }
.blog-empty{ text-align:center; padding:70px 20px; background:#fff; border:1px dashed var(--line); border-radius:var(--radius); color:var(--muted); }

/* ---- Single post: two-column layout (content + sidebar) ---- */
.blog-layout{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:56px; align-items:start; }
.blog-article-hero-img{ width:100%; aspect-ratio:16/18; object-fit:cover; border-radius:var(--radius); background:#efece7; margin:24px 0 30px; }
.blog-article .blog-meta-row{ display:flex; gap:16px; flex-wrap:wrap; align-items:center; font-size:13px; color:var(--muted); margin-top:16px; }
.blog-article .blog-meta-row span{ display:flex; align-items:center; gap:6px; }
.blog-article .blog-intro{ color:var(--ink-soft); font-size:15.5px; line-height:1.85; }

/* The post body itself — content comes from the admin's rich-text editor
   as raw HTML, so these rules style whatever tags Quill can produce. */
.blog-body{ color:var(--ink-soft); font-size:15.5px; line-height:1.85; }
.blog-body h2{ font-family:var(--serif); font-size:23px; color:var(--brand); margin:36px 0 14px; }
.blog-body h3{ font-size:18px; color:var(--brand); margin:28px 0 10px; font-weight:700; }
.blog-body p{ margin:0 0 18px; }
.blog-body a{ color:var(--brand); text-decoration:underline; }
.blog-body ul{ margin:0 0 18px; padding-left:22px; }
.blog-body li{ margin-bottom:6px; }
.blog-body img{ max-width:100%; height:auto; border-radius:var(--radius-sm); margin:8px 0 20px; display:block; }
.blog-body blockquote{ border-left:3px solid var(--brand); margin:0 0 20px; padding:4px 0 4px 18px; color:var(--ink); font-style:italic; }
.blog-body strong{ color:var(--ink); }

/* An ordered list in the editor becomes numbered "step" sections, matching
   the reference design's "1 Prioritize Flow & Movement" style — this is
   pure CSS driven off a normal <ol><li> the admin writes in the editor. */
.blog-body ol{ list-style:none; margin:28px 0; padding:0; counter-reset:blog-step; }
.blog-body ol > li{
  position:relative; padding-left:52px; margin-bottom:26px; counter-increment:blog-step;
}
.blog-body ol > li::before{
  content:counter(blog-step); position:absolute; left:0; top:0;
  width:34px; height:34px; border-radius:50%; background:var(--brand); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; font-family:var(--serif);
}
.blog-body ol > li strong, .blog-body ol > li b{
  display:block; font-family:var(--serif); font-size:17px; color:var(--brand); margin-bottom:6px; font-weight:700;
}

.blog-share{ display:flex; align-items:center; gap:10px; margin:34px 0; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); flex-wrap:wrap; }
.blog-share span{ font-size:12.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; }
.blog-share a{ width:36px; height:36px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--ink-soft); text-decoration:none; }
.blog-share a:hover{ border-color:var(--brand); color:var(--brand); }

.blog-back-link{ display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--ink-soft); text-decoration:none; margin-bottom:4px; }
.blog-back-link:hover{ color:var(--brand); }

/* ---- Sidebar widgets ---- */
.blog-sidebar{ display:flex; flex-direction:column; gap:40px; }
.widget-title{ font-family:var(--serif); font-size:18px; text-transform:uppercase; letter-spacing:.5px; margin:0 0 20px; color:var(--ink); font-weight:700; }
.related-post-item{ display:flex; gap:14px; text-decoration:none; color:inherit; margin-bottom:18px; }
.related-post-item:last-child{ margin-bottom:0; }
.related-post-item .thumb{ width:64px; height:64px; flex:0 0 64px; border-radius:var(--radius-sm); overflow:hidden; background:#efece7; }
.related-post-item .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.related-post-item h4{ font-size:13.5px; font-weight:700; line-height:1.4; margin:0 0 6px; color:var(--ink); }
.related-post-item .date{ font-size:11.5px; color:var(--muted); }
.tag-cloud{ display:flex; flex-wrap:wrap; gap:9px; }
.tag-pill{ display:inline-block; padding:7px 14px; background:var(--brand); border:1px solid var(--brand); border-radius:3px; font-size:12px; color:#fff; text-decoration:none; }
.tag-pill:hover{ background:var(--brand-dark); border-color:var(--brand-dark); color:#fff; }

/* ---- Comments ---- */
.blog-comments{ margin-top:50px; }
.blog-comments .widget-title{ margin-bottom:26px; }
.comment-item{ display:flex; gap:16px; padding:22px 0; border-bottom:1px solid var(--line); }
.comment-item:first-child{ padding-top:0; }
.comment-avatar{ width:48px; height:48px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-weight:700; font-size:17px; flex:0 0 48px; }
.comment-body{ flex:1; min-width:0; }
.comment-body .comment-head{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.comment-body .comment-name{ font-weight:700; color:var(--ink); font-size:14.5px; }
.comment-body .comment-time{ font-size:12px; color:var(--muted); }
.comment-body p{ margin:0; color:var(--ink-soft); font-size:14px; line-height:1.7; }
.comments-empty{ color:var(--muted); font-size:14px; padding:8px 0 4px; }

/* ---- Leave a comment form ---- */
.comment-form{ margin-top:36px; }
.comment-form .widget-title{ margin-bottom:20px; }
.comment-form .field-row{ margin-bottom:16px; }
.comment-form label{ display:block; font-size:12.5px; font-weight:700; color:var(--ink); margin-bottom:7px; text-transform:uppercase; letter-spacing:.3px; }
.comment-form input, .comment-form textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-sm); font-size:14px;
  font-family:inherit; background:var(--bg); outline:none; transition:border-color .15s;
}
.comment-form input:focus, .comment-form textarea:focus{ border-color:var(--brand); }
.comment-form textarea{ resize:vertical; min-height:120px; }

@media (max-width: 900px){
  .blog-layout{ grid-template-columns:1fr; }
  .blog-sidebar{ order:2; margin-top:8px; flex-direction:row; flex-wrap:wrap; gap:32px; }
  .blog-sidebar > div{ flex:1; min-width:240px; }
}

@media (max-width: 760px){
  .blog-hero{ margin-top:-22px; margin-bottom:32px; padding:44px 0 28px; }
  .blog-hero h1{ font-size:28px; }
  .blog-hero-inner{ align-items:flex-start; }
  .blog-hero .blog-hero-desc{ max-width:none; }

  .blog-grid{ grid-template-columns:1fr 1fr; gap:18px 14px; }
  .blog-card .thumb{ margin-bottom:12px; }
  .blog-card h3{ font-size:14.5px; }
  .blog-card .excerpt{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .blog-card .meta{ font-size:10.5px; gap:10px; }

  .blog-article h1{ font-size:25px; }
  .blog-article-hero-img{ aspect-ratio:16/10; margin:16px 0 20px; }
  .blog-body{ font-size:14.5px; }
  .blog-body h2{ font-size:20px; margin:28px 0 12px; }
  .blog-body ol > li{ padding-left:44px; }
  .blog-body ol > li::before{ width:28px; height:28px; font-size:12.5px; }

  .blog-sidebar{ flex-direction:column; }
  .comment-avatar{ width:38px; height:38px; flex-basis:38px; font-size:14px; }
  .comment-form input, .comment-form textarea{ font-size:16px; } /* prevents iOS Safari auto-zoom on focus */
  .comment-form .btn{ width:100%; }
  .comment-item{ gap:12px; }
}

@media (max-width: 480px){
  .blog-grid{ grid-template-columns:1fr; }
  .blog-hero h1{ font-size:24px; }
}

/* ==========================================================================
   Account area
   ========================================================================== */
.account-layout{ display:grid; grid-template-columns:230px 1fr; gap:30px; align-items:start; }
.account-side{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:8px 0; position:sticky; top:96px; }
.account-side .side-head{ padding:16px 20px; border-bottom:1px solid var(--line); }
.account-side .side-head strong{ display:block; font-size:14px; color:var(--ink); }
.account-side .side-head span{ display:block; font-size:12px; color:var(--muted); margin-top:2px; word-break:break-word; }
.account-nav{ display:flex; flex-direction:column; padding:6px 0; }
.account-nav a{ padding:11px 20px; text-decoration:none; font-size:13.5px; color:var(--ink-soft); font-weight:600; border-left:2px solid transparent; }
.account-nav a:hover{ color:var(--ink); background:var(--bg); }
.account-nav a.active{ color:var(--brand); border-color:var(--brand); background:var(--bg); }
.account-side form{ padding:12px 20px 16px; border-top:1px solid var(--line); margin-top:6px; }
.account-logout-btn{ width:100%; padding:9px; background:transparent; border:1px solid var(--line); border-radius:var(--radius-sm); color:var(--ink-soft); font-size:13px; cursor:pointer; font-family:inherit; }
.account-logout-btn:hover{ border-color:var(--error); color:var(--error); }
.account-main h1{ font-family:var(--serif); font-size:24px; margin:0 0 4px; color:var(--ink); text-transform:uppercase; letter-spacing:.4px; }
.account-main .page-sub{ color:var(--muted); font-size:13.5px; margin:0 0 22px; }

.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; margin-bottom:28px; }
.stat-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; }
.stat-card .num{ font-family:var(--serif); font-size:30px; font-weight:700; color:var(--ink); line-height:1; }
.stat-card .lbl{ color:var(--muted); font-size:12px; margin-top:8px; text-transform:uppercase; letter-spacing:.5px; }

.account-block{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:24px; margin-bottom:20px; }
.account-block h3{ font-size:13px; margin:0 0 18px; color:var(--ink); text-transform:uppercase; letter-spacing:.6px; font-weight:700; }
.account-block h2.sub-head{ font-size:16px; margin:0 0 14px; color:var(--ink); font-weight:700; }

.order-row{ display:flex; justify-content:space-between; align-items:center; gap:16px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px 20px; margin-bottom:10px; flex-wrap:wrap; }
.order-row .meta{ font-size:12.5px; color:var(--muted); margin-top:4px; }
.order-row .right{ text-align:right; }
.order-row .amt{ font-weight:800; color:var(--brand); font-size:15px; display:block; }
.order-row .view-link{ font-size:12.5px; font-weight:700; color:var(--ink); text-decoration:none; display:inline-block; margin-top:4px; }
.order-row .view-link:hover{ color:var(--brand); }

.status-pill{ display:inline-block; padding:4px 11px; border-radius:999px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; background:var(--bg); color:var(--ink-soft); }
.status-pill.paid, .status-pill.delivered, .status-pill.completed{ background:var(--success-bg); color:var(--success); }
.status-pill.pending, .status-pill.processing{ background:#fdf3e2; color:#8a5a10; }
.status-pill.unpaid, .status-pill.cancelled, .status-pill.failed{ background:var(--error-bg); color:var(--error); }

.order-detail-row{ display:flex; justify-content:space-between; gap:12px; font-size:13.5px; padding:10px 0; border-bottom:1px solid var(--line); color:var(--ink-soft); }
.order-detail-row:last-child{ border-bottom:none; }
.order-detail-row .opts{ color:var(--muted); font-size:12px; margin-top:3px; }
.order-summary-row{ display:flex; justify-content:space-between; font-size:13.5px; color:var(--ink-soft); padding:4px 0; }
.order-summary-row.total{ font-size:17px; font-weight:800; color:var(--ink); border-top:1px solid var(--line); padding-top:12px; margin-top:8px; }
.order-summary-row.total .amt{ color:var(--brand); }
.order-meta-grid{ display:flex; flex-wrap:wrap; gap:10px 26px; margin-bottom:22px; font-size:13px; color:var(--ink-soft); }
.order-meta-grid strong{ color:var(--ink); }
.back-link{ display:inline-flex; align-items:center; gap:6px; margin-top:18px; font-size:13.5px; color:var(--ink); text-decoration:none; font-weight:600; }
.back-link:hover{ color:var(--brand); }
.print-link{ font-size:13px; color:var(--ink-soft); text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.print-link:hover{ color:var(--brand); }

/* Pagination (Laravel default markup) */
nav[role="navigation"]{ margin-top:20px; }
nav[role="navigation"] a, nav[role="navigation"] span{
  display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 10px;
  border:1px solid var(--line); border-radius:var(--radius-sm); margin:0 4px 6px 0; font-size:13px; color:var(--ink-soft);
  text-decoration:none; background:#fff;
}
nav[role="navigation"] span[aria-current="page"] span{ background:var(--ink); color:#fff; border-color:var(--ink); }
nav[role="navigation"] a:hover{ border-color:var(--brand); color:var(--brand); }

/* ---------- Responsive: auth / content / account ---------- */
@media (max-width: 860px){
  .account-layout{ grid-template-columns:1fr; }
  .account-side{ position:static; }
  .account-nav{ flex-direction:row; flex-wrap:wrap; padding:10px 14px; gap:2px 4px; }
  .account-nav a{ border-left:none; border-bottom:2px solid transparent; padding:8px 12px; }
  .account-nav a.active{ border-color:var(--brand); background:none; }
  .account-side .side-head{ padding:14px 16px 10px; }
  .account-side form{ padding:10px 16px 14px; }
}

@media (max-width: 760px){
  .auth-wrap{ margin:14px auto 40px; }
  .auth-card{ padding:26px 22px; }
  .content-card{ padding:24px 20px; }
  .order-row{ flex-direction:column; align-items:flex-start; }
  .order-row .right{ text-align:left; width:100%; display:flex; align-items:center; justify-content:space-between; }
  .stat-grid{ grid-template-columns:1fr 1fr; }
  .order-meta-grid{ gap:8px 20px; font-size:12.5px; }
}

@media (max-width: 480px){
  .auth-card{ padding:22px 18px; }
  .stat-grid{ grid-template-columns:1fr; }
}

/* ==========================================================================
   Home page — extended marketing sections
   ========================================================================== */

/* ---------- Full-bleed helper (edge-to-edge sections inside a centered container) ---------- */
.full-bleed{ margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); width:100vw; }
body[data-page="home"] main.page{ padding-top:0; }

/* ---------- Promo hero (sale banner) ---------- */
.promo-hero{
  position:relative; min-height:520px; display:flex; align-items:center;
  background-size:cover; background-position:center; color:#fff; overflow:hidden;
}
.promo-hero::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,14,9,.35) 0%, rgba(20,14,9,.55) 100%); }
.promo-hero-wrap{ position:relative; z-index:1; width:100%; padding-top:64px; padding-bottom:150px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.promo-hero-inner{ max-width:760px; display:flex; flex-direction:column; align-items:center; }
.promo-hero h1{ font-family:var(--serif); font-size:34px; line-height:1.25; margin:0 0 10px; text-transform:uppercase; font-weight:400; }
.promo-hero p{ font-size:14px; color:#efe8de; max-width:460px; margin:0 auto 8px; line-height:1.6; }
.promo-hero .promo-hero-inner > p + p{ font-size:13px; font-weight:600; letter-spacing:.3px; margin-top:-4px; margin-bottom:8px; }
.promo-links{ position:absolute; z-index:1; left:24px; right:24px; bottom:18px; display:flex; justify-content:space-between; gap:16px; }
.promo-links a{ color:#fff; font-size:12.5px; text-decoration:underline; text-underline-offset:4px; opacity:.9; }
.promo-links a:hover{ opacity:1; }

/* ---------- Category "discover" hero (parent category landing page) ---------- */
.cat-hero{ min-height:340px; justify-content:center; text-align:center; }
.cat-hero::before{ background:linear-gradient(0deg, rgba(20,14,9,.55), rgba(20,14,9,.25)); }
.cat-hero-inner{ max-width:none; margin:0 auto; padding:64px 24px; display:flex; flex-direction:column; align-items:center; }
.cat-hero-inner h1{ font-size:30px; letter-spacing:3px; margin:0 0 14px; }
.cat-hero-inner a{ color:#fff; font-size:14px; text-decoration:underline; text-underline-offset:4px; opacity:.9; }
.cat-hero-inner a:hover{ opacity:1; }

/* ---------- Sub-tier category pills (child categories under the active parent) ---------- */
.cat-pills-sub a{ padding:7px 16px; font-size:12px; }
.cat-pills-sub a.active, .cat-pills-sub a:hover{ background:var(--ink); border-color:var(--ink); color:#fff; }

/* ---------- About / craftsmanship ---------- */
.about-grid{ display:grid; grid-template-columns:360px 1fr 260px; gap:44px; align-items:center; }
.about-grid .about-photo{ border-radius:var(--radius); overflow:hidden; aspect-ratio:4/3.6; }
.about-grid .about-photo img{ width:100%; height:100%; object-fit:cover; }
.about-grid .about-copy p{ color:var(--ink-soft); font-size:14.5px; line-height:1.75; margin-top:10px; max-width:460px; }
.about-grid .about-sketch{ opacity:.85; }
.about-grid .about-sketch img{ width:100%; max-width:260px; }
.stats-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:44px; border-top:1px solid var(--line); padding-top:40px; }
.stat-item strong{ display:block; font-family:var(--serif); font-size:40px; font-weight:700; color:var(--ink); }
.stat-item span{ display:block; font-size:13px; color:var(--muted); margin-top:6px; }

/* ---------- Carousels (Popular categories / New & trending) ---------- */
.carousel-head{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:32px; margin-bottom:28px; }
.carousel-head .head-title{ min-width:220px; }
.carousel-head .head-desc{ color:var(--ink-soft); font-size:14px; margin:0; text-align:left; text-wrap:pretty; }
.carousel-actions{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; flex:0 0 auto; justify-self:end; }
.carousel-arrows{ display:flex; gap:8px; }
.carousel-arrows button{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--brand); background:transparent; color:var(--brand);
  cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center;
}
.carousel-arrows button:hover{ background:var(--brand); color:#fff; }
.carousel-track{ display:flex; gap:18px; overflow-x:auto; scroll-behavior:smooth; padding-bottom:8px; scrollbar-width:none; }
.carousel-track::-webkit-scrollbar{ display:none; }
.carousel-track-bleed{
  margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); width:100vw;
  padding-left:max(24px, calc((100vw - var(--container)) / 2 + 24px));
  padding-right:24px;
  align-items:flex-start;
}

.cat-card{ position:relative; display:block; flex:0 0 300px; width:300px; height:340px; border-radius:var(--radius); overflow:hidden; text-decoration:none; color:#fff; background:var(--line); transition:height .2s ease; }
/* Staggered heights: even cards (Ottoman, Upholstered) sit taller than odd cards (Divan, Mattresses) */
.carousel-track-bleed .cat-card:nth-child(even){ height:460px; }
.carousel-track-bleed .cat-card:nth-child(odd){ height:340px; }
.cat-card img{ width:100%; height:100%; object-fit:cover; display:block; }
.cat-card::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 45%, rgba(20,14,9,.85) 100%); }
.cat-card .cat-card-label{ position:absolute; left:18px; bottom:18px; right:18px; z-index:1; font-weight:700; font-size:15px; text-transform:uppercase; letter-spacing:1px; }

.trend-card{
  position:relative; display:block; flex:0 0 280px; width:280px; aspect-ratio:4/5;
  border-radius:var(--radius); overflow:hidden; background:#efece7; text-decoration:none; color:#fff;
}
.trend-card .thumb{ position:absolute; inset:0; display:block; }
.trend-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.trend-card::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(20,14,9,.5) 0%, transparent 22%, transparent 42%, rgba(20,14,9,.88) 100%);
}
.trend-card .trend-name{
  position:absolute; top:18px; left:16px; right:16px; z-index:1; margin:0;
  font-size:23px; line-height:1.2; font-weight:700; text-transform:uppercase; letter-spacing:.3px; color:#fff;
}
.trend-card .body{ position:absolute; left:16px; bottom:16px; z-index:1; display:inline-flex; flex-direction:column; align-items:flex-start; width:fit-content; max-width:calc(100% - 32px); background:rgba(10,7,4,.6); backdrop-filter:blur(3px); padding:5px 9px; }
.trend-card .price-row{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.trend-card .price-old{ text-decoration:line-through; color:#f0ebe5; font-size:13px; }
.trend-card .price-now{ color:#fff; font-weight:700; font-size:18px; }
.trend-card .save-text{ font-size:12.5px; color:#f0ebe5; margin-top:2px; text-decoration:underline; }

/* ---------- Testimonial banner (auto-moving slider) ---------- */
.testimonial-banner{
  position:relative; min-height:480px; overflow:hidden; color:#fff;
}
.testimonial-slide{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background-size:cover; background-position:center;
  opacity:0; visibility:hidden; transition:opacity 1.1s ease, transform 6s ease-out; transform:scale(1); z-index:0;
}
.testimonial-slide.active{ opacity:1; visibility:visible; z-index:1; transform:scale(1.06); }
.testimonial-slide::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,14,9,.35) 0%, rgba(20,14,9,.55) 100%); }
.testimonial-inner{
  position:relative; z-index:1; padding:48px; max-width:1180px; width:100%;
  display:flex; align-items:flex-start; justify-content:space-between; gap:40px; flex-wrap:wrap;
}
.testimonial-eyebrow{ display:flex; align-items:center; gap:14px; font-size:11.5px; text-transform:uppercase; letter-spacing:1.6px; flex:0 0 auto; }
.testimonial-eyebrow .stars{ color:#fff; letter-spacing:2px; }
.testimonial-quote{ flex:1 1 480px; max-width:520px; text-align:left; }
.testimonial-quote blockquote{ font-family:var(--serif); font-size:28px; line-height:1.35; margin:0 0 16px; font-weight:600; }
.testimonial-quote cite{ font-style:normal; font-size:13px; color:#e6ddce; }
.testimonial-dots{ position:absolute; z-index:2; left:50%; bottom:24px; transform:translateX(-50%); display:flex; gap:8px; }
.testimonial-dots button{ width:7px; height:7px; padding:0; border-radius:50%; background:rgba(255,255,255,.4); border:none; cursor:pointer; }
.testimonial-dots button.active{ background:#fff; width:20px; border-radius:4px; transition:width .2s; }

/* ---------- Warranty / trust strip ---------- */
.trust-strip{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; text-align:center; }
.trust-item{ display:flex; flex-direction:column; align-items:center; gap:12px; }
.trust-item .circle{ width:56px; height:56px; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.trust-item .circle img{ width:100%; height:100%; object-fit:contain; display:block; }
.trust-item span{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--ink-soft); line-height:1.4; }

/* ---------- Feature banner (dark, 2-col checklist) ---------- */
.feature-banner{ position:relative; background-size:cover; background-position:center; border-radius:var(--radius); overflow:hidden; padding:56px 44px; color:#fff; }
.feature-banner::before{ content:""; position:absolute; inset:0; background:rgba(20,14,9,.68); }
.feature-eyebrow{ position:relative; z-index:1; color:var(--accent); margin-bottom:22px; }
.feature-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:36px 60px; }
.feature-col{ display:flex; flex-direction:column; gap:28px; }
.feature-block h4{ font-size:14.5px; text-transform:uppercase; letter-spacing:.6px; margin:0 0 10px; }
.feature-block p{ font-size:13.5px; color:#e2dacb; line-height:1.7; margin:0; }
.feature-btn{ align-self:flex-start; margin-top:4px; }

/* ---------- FAQ accordion ---------- */
.faq-list{ max-width:900px; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:20px 4px; font-size:15px; font-weight:600;
  color:var(--ink); display:flex; justify-content:space-between; align-items:center; gap:16px; font-family:inherit;
}
.faq-q .plus{ font-size:20px; color:var(--brand); transition:transform .2s; flex-shrink:0; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-item.open .faq-a{ max-height:220px; }
.faq-a p{ padding:0 4px 20px; margin:0; color:var(--ink-soft); font-size:13.5px; line-height:1.7; max-width:640px; }

/* ---------- Mattress feature cards ---------- */
.mattress-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:40px; margin-bottom:36px; flex-wrap:wrap; }
.mattress-head-copy{ color:var(--ink-soft); font-size:14.5px; line-height:1.7; max-width:420px; margin:0; }
.mattress-feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.mattress-feature{ }
.mattress-feature .photo{ aspect-ratio:3/4; border-radius:var(--radius); overflow:hidden; margin-bottom:16px; }
.mattress-feature .photo img{ width:100%; height:100%; object-fit:cover; }
.mattress-feature h4{ font-size:14.5px; text-transform:uppercase; letter-spacing:.4px; margin:0 0 8px; color:var(--ink); }
.mattress-feature p{ font-size:13.5px; color:var(--muted); line-height:1.7; margin:0; }

/* ---------- Responsive: home marketing sections ---------- */
@media (max-width: 980px){
  .about-grid{ grid-template-columns:1fr 1fr; text-align:left; gap:28px; }
  .about-grid .about-sketch{ display:none; }
  .about-grid .about-photo{ aspect-ratio:4/3; }
  .stats-row{ grid-template-columns:repeat(2,1fr); gap:24px 20px; }
  .stat-item strong{ font-size:34px; }
  .feature-grid{ grid-template-columns:1fr; gap:28px; }
  .mattress-feature-grid{ grid-template-columns:1fr 1fr; }
  .mattress-head{ flex-direction:column; gap:14px; }
  .mattress-head-copy{ max-width:none; }
  .trust-strip{ grid-template-columns:repeat(3,1fr); }
  .cat-card{ flex-basis:260px; width:260px; height:296px; }
  .carousel-track-bleed .cat-card:nth-child(even){ height:396px; }
  .carousel-track-bleed .cat-card:nth-child(odd){ height:296px; }
  .trend-card{ flex-basis:240px; }
  .trend-card .trend-name{ font-size:19px; }
}

@media (max-width: 760px){
  .promo-hero h1{ font-size:24px; }
  .promo-links{ position:static; flex-wrap:wrap; justify-content:center; gap:20px; padding:16px 0 0; background:none; 
    margin-top: 26px;
  }
  .promo-hero-wrap{ padding-top:36px; padding-bottom:28px; }
  .about-grid{ grid-template-columns:1fr; }
  .about-grid .about-photo{ aspect-ratio:16/10; }
  .stats-row{ grid-template-columns:1fr 1fr; margin-top:32px; padding-top:28px; }
  .stat-item strong{ font-size:30px; }
  .cat-card{ flex-basis:220px; width:220px; height:250px; }
  .carousel-track-bleed .cat-card:nth-child(even){ height:330px; }
  .carousel-track-bleed .cat-card:nth-child(odd){ height:250px; }
  .trend-card{ flex-basis:200px; }
  .trend-card .trend-name{ font-size:16px; top:12px; left:12px; right:12px; }
  /* The desktop version crossfades slides that sit on top of each other via
     position:absolute inside a FIXED-height banner (overflow:hidden). On
     mobile the text stacks into a single column and can easily need more
     vertical space than that fixed height allows, so the extra content was
     getting clipped clean off. Below 760px we switch the active slide back
     into normal document flow — the banner simply grows to fit whichever
     slide is showing, so nothing is ever cut off. */
  .testimonial-banner{ min-height:0; overflow:visible; }
  .testimonial-slide{
    position:relative; inset:auto; display:none; opacity:1; visibility:visible;
    transform:none; transition:none; min-height:420px;
  }
  .testimonial-slide.active{ display:flex; }
  .testimonial-inner{ padding:28px 28px 44px; flex-direction:column; align-items:flex-start; gap:16px; }
  .testimonial-quote{ max-width:none; }
  .testimonial-inner blockquote{ font-size:21px; }
  .feature-banner{ padding:32px 22px; }
  .mattress-feature-grid{ grid-template-columns:1fr; }
  .trust-strip{ grid-template-columns:1fr 1fr; }
  .carousel-head{ display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
  .carousel-head .head-desc{ text-align:left; }
  .carousel-actions{ justify-self:auto; }
  .cat-hero{ min-height:260px; }
  .cat-hero-inner{ padding:40px 22px; }
  .cat-hero-inner h1{ font-size:24px; }
  .cat-pills{ gap:8px; }
  .cat-pills a{ padding:8px 14px; font-size:12px; }
}
/* ==========================================================================
   Shop / Category listing — mobile filter drawer + compact grid
   ========================================================================== */
.cat-label{ display:none; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin:0 0 10px; }

.filter-toggle-btn{
  display:none; align-items:center; justify-content:center; flex:none; width:38px; height:38px;
  border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; color:var(--ink-soft);
  cursor:pointer; font-size:14px;
}
.filter-toggle-btn:hover{ border-color:var(--brand); color:var(--brand); }

.filters-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:105; opacity:0; pointer-events:none; transition:opacity .2s; }
.filters-overlay.open{ opacity:1; pointer-events:auto; }

.filters-head{ display:none; align-items:center; justify-content:space-between; margin-bottom:16px; }
.filters-head h4{ margin:0; }
.filters-close{ background:none; border:none; font-size:18px; color:var(--muted); cursor:pointer; padding:2px 4px; }

@media (max-width: 760px){
  .cat-label{ display:block; }

  .cat-pills{ flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding-bottom:2px; }
  .cat-pills::-webkit-scrollbar{ display:none; }
  .cat-pills a{ flex:none; white-space:nowrap; }

  .toolbar{ flex-wrap:nowrap; gap:10px; }
  .toolbar form{ flex:1; min-width:0; }
  .sort-select{ width:100%; }
  .filter-toggle-btn{ display:inline-flex; }

  .shop-layout{ display:block; }

  .filters{
    position:fixed; top:0; right:0; bottom:0; width:86vw; max-width:340px; z-index:110;
    background:#fff; overflow-y:auto; padding:20px 20px 100px; box-shadow:var(--shadow-lg);
    transform:translateX(100%); transition:transform .25s ease;
  }
  .filters.open{ transform:translateX(0); }
  .filters-head{ display:flex; }
  .filters-close{ display:inline-block; }
  .filters-title-inline{ display:none; }

  /* Compact product cards on the shop / category grid */
  .shop-grid.grid{ gap:10px 12px; }
  .shop-grid .wish-btn{ display:none; }
  .shop-grid .brand{ display:none; }
  .shop-grid .stars{ display:none; }
  .shop-grid .quick-add{ display:none; }
  .shop-grid .card .body{ padding:10px 2px 2px; gap:2px; }
  .shop-grid .card h3{ font-size:13px; font-weight:500; color:var(--ink-soft); }
  .shop-grid .card .price{ font-size:14px; }
}
/* ================= Quick View popup ================= */
.qv-overlay{
  position:fixed; inset:0; z-index:1000; background:rgba(20,14,9,.55);
  display:flex; align-items:center; justify-content:center; padding:24px;
  opacity:0; visibility:hidden; transition:opacity .2s ease;
}
.qv-overlay.open{ opacity:1; visibility:visible; }
.qv-box{
  position:relative; background:var(--bg, #f6f2ec); 
  border:1px solid var(--line); max-width:1100px; width:100%; max-height:90vh; overflow-y:auto;
  padding:40px; box-shadow:0 20px 60px rgba(0,0,0,.35);
}
.qv-close{
  position:absolute; top:18px; right:22px; width:auto; height:auto; border-radius:0;
  border:none; background:transparent; cursor:pointer; font-size:26px;
  color:var(--ink-soft); display:flex; align-items:center; justify-content:center; z-index:2;
}
.qv-close:hover{ color:var(--ink); background:transparent; }
.qv-content{ display:flex; gap:40px; flex-wrap:wrap; }
.qv-loading{ padding:80px; text-align:center; color:var(--muted); width:100%; }
.qv-left{ flex:1 1 380px; max-width:420px; display:flex; flex-direction:column; align-items:center; }
.qv-image{ width:100%; border-radius:12px; overflow:hidden; }
.qv-image img{ width:100%; height:100%; object-fit:cover; display:block; }
.qv-shop-btn-wrap{ margin-top:20px; }
.qv-shop-btn{ display:inline-block; }
.qv-details{ flex:1 1 380px; min-width:280px; }
.qv-eyebrow{ text-transform:uppercase; letter-spacing:1px; font-size:12px; color:var(--muted); margin:0 0 6px; }
.qv-title{ font-family:var(--serif); font-size:28px; margin:0 0 16px; color:var(--ink); }
.qv-description{ font-size:14.5px; line-height:1.7; color:var(--ink-soft); margin-bottom:18px; }
.qv-subhead{ font-size:15px; font-weight:700; margin:18px 0 8px; color:var(--ink); }
.qv-list{ margin:0 0 4px; padding-left:20px; }
.qv-list li{ font-size:14px; line-height:1.6; color:var(--ink-soft); margin-bottom:8px; }

@media (max-width:768px){
  .qv-box{ padding:24px; }
  .qv-content{ flex-direction:column; }
  .qv-title{ font-size:22px; }
}

/* ---------- PDP v2: icon tab-strip option selector (Homistyle style) ---------- */
.opt-tabs{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(84px, 1fr)); border:1px solid var(--line);
  border-radius:var(--radius-sm) var(--radius-sm) 0 0; overflow:hidden; background:#fff;
}
.opt-tab{
  display:flex; flex-direction:column; align-items:center; gap:6px; padding:14px 8px; background:#fff; border:none;
  border-right:1px solid var(--line); cursor:pointer; font-family:inherit; color:var(--ink-soft);
}
.opt-tab:last-child{ border-right:none; }
.opt-tab i, .opt-tab svg{ font-size:18px; color:var(--ink-soft); }
.opt-tab-label{ font-size:11.5px; font-weight:700; text-align:center; line-height:1.25; }
.opt-tab-value{ font-size:10.5px; color:var(--muted); text-align:center; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.opt-tab.active{ background:var(--bg); box-shadow:inset 0 -3px 0 var(--brand); }
.opt-tab.active i, .opt-tab.active svg, .opt-tab.active .opt-tab-label{ color:var(--ink); }

.opt-panel-wrap{
  border:1px solid var(--line); border-top:none; border-radius:0 0 var(--radius-sm) var(--radius-sm);
  background:#fff; padding:16px; margin-bottom:16px;
}
.opt-panel{ display:none; }
.opt-panel.active{ display:block; }
.opt-panel-note{ font-size:12px; color:var(--muted); margin:0 0 12px; line-height:1.5; }

/* Colour options as real product photos instead of plain circles */
.colour-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:10px; }
.colour-card{
  border:2px solid var(--line); border-radius:var(--radius-sm); overflow:hidden; cursor:pointer; background:#fff;
  padding:0; margin:0; text-align:center; font-family:inherit; display:block;
}
.colour-card img{ width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; display:block; background:#efece7; }
.colour-card .colour-card-label{ font-size:11.5px; padding:7px 6px; color:var(--ink-soft); line-height:1.25; }
.colour-card.selected{ border-color:var(--ink); }
.colour-card.selected .colour-card-label{ color:var(--ink); font-weight:700; }

/* Generic icon-card options (Headboard, Base, Storage, Mattress, etc.) — icon fills the top of the
   card edge-to-edge (no padding around it); only the label/price text underneath keeps a little
   breathing room so it doesn't touch the border. */
.option-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}



.option-card{
  border:2px solid var(--line); border-radius:var(--radius-sm); background:#fff; cursor:pointer; font-family:inherit;
  padding:0; margin:0; display:flex; flex-direction:column; align-items:center; text-align:center; overflow:hidden;
  position:relative;
}
.option-card i{ font-size:38px; color:var(--ink-soft); width:100%; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; }
.option-card .oc-icon-wrap{ width:100%; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; background:#faf8f5; }
.option-card img.oc-size-img{ width:100%; height:auto; object-fit:contain; display:block; }
.option-card .oc-label{ font-size:12.5px; font-weight:600; color:var(--ink); line-height:1.3; padding:7px 6px 2px; }
.option-card .oc-mod{ font-size:11px; color:var(--muted); padding:0 6px 10px; }
.option-card.selected{ border-color:var(--ink); background:var(--bg); }
.option-card.selected i{ color:var(--ink); }
.option-card.selected::after{
  content:"\f00c"; font-family:"Font Awesome 6 Free"; font-weight:900; position:absolute; top:6px; right:6px;
  font-size:9px; background:var(--ink); color:#fff; border-radius:50%; width:17px; height:17px;
  display:flex; align-items:center; justify-content:center;
}

/* Simple text pill list (used for Size) */
.size-list{ display:flex; flex-wrap:wrap; gap:9px; }
.size-list .chip{ border-radius:var(--radius-sm); }

@media (max-width:640px){
  .opt-tabs{ grid-template-columns:repeat(auto-fit, minmax(64px, 1fr)); }
  .opt-tab{ padding:10px 4px; }
  .opt-tab-label{ font-size:10px; }
  .colour-grid{ grid-template-columns:repeat(auto-fill, minmax(78px, 1fr)); }
  .option-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- PDP v3: mobile gallery swipe, discount badges, colour scroll strip, promo rows, dimensions modal ---------- */

/* Mobile swipeable gallery — hidden on desktop, main-photo-wrap/thumb-strip take over there */
.gallery-swipe{ position:relative; display:none; }
.gallery-swipe-track{
  display:flex; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  border-radius:var(--radius); background:#efece7; scrollbar-width:none;
}
.gallery-swipe-track::-webkit-scrollbar{ display:none; }
.gallery-swipe-slide{ flex:0 0 100%; scroll-snap-align:start; aspect-ratio:1/1; }
.gallery-swipe-slide img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery-expand-pill{
  position:absolute; bottom:34px; left:50%; transform:translateX(-50%); background:var(--brand); color:#fff;
  font-size:11.5px; font-weight:700; padding:7px 14px; border-radius:999px; display:flex; align-items:center; gap:6px;
  pointer-events:none; box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.gallery-dots{ display:flex; justify-content:center; gap:6px; margin-top:12px; }
.gallery-dot{ width:7px; height:7px; border-radius:50%; background:var(--line); transition:background .2s, width .2s; }
.gallery-dot.active{ background:var(--brand); width:18px; border-radius:4px; }

/* Discount badges under the price */
.discount-badges{ display:flex; gap:8px; flex-wrap:wrap; margin:-8px 0 16px; }
.badge-pill{
  font-size:11.5px; font-weight:700; padding:5px 11px; border-radius:999px; background:var(--bg); color:var(--brand-dark);
  border:1px solid var(--line); display:inline-flex; align-items:center; gap:4px;
}
.badge-pill-solid{ background:var(--brand); color:#fff; border-color:var(--brand); }
.badge-pill-sub{ font-weight:400; opacity:.85; }

/* Colour picker as a horizontal scroll strip with a heading above it */
.colour-heading{ font-size:13.5px; font-weight:700; color:var(--ink); margin:0 0 10px; }
.colour-heading span{ font-weight:400; color:var(--ink-soft); }
.colour-scroll{
  display:flex; gap:10px; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; scrollbar-width:thin;
}
.colour-scroll .colour-card{ flex:0 0 92px; scroll-snap-align:start; }
.colour-scroll .colour-card img{ aspect-ratio:1/1; }

.btn-view-dimensions{
  width:100%; margin-top:12px; padding:12px; border:1.5px solid var(--brand); border-radius:999px; background:var(--bg);
  color:var(--brand-dark); font-weight:700; font-size:13.5px; cursor:pointer; font-family:inherit;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.btn-view-dimensions:hover{ background:#fff; }

/* Add Mattress & Save / Professional Assembly promo rows */
.promo-row{
  width:100%; display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:var(--radius-sm);
  background:#fff; padding:12px 14px; margin-top:14px; cursor:pointer; font-family:inherit; text-align:left;
}
.promo-row-icon{ font-size:18px; color:var(--brand); flex-shrink:0; width:26px; text-align:center; }
.promo-row-text{ flex:1; font-size:13.5px; font-weight:700; color:var(--ink); }
.promo-row-cta{ font-size:12.5px; font-weight:700; color:var(--brand-dark); display:flex; align-items:center; gap:5px; white-space:nowrap; }

.promo-card{
  display:flex; align-items:flex-start; gap:12px; border:1px solid var(--line); border-radius:var(--radius-sm);
  background:#fff; padding:14px; margin-top:14px;
}
.promo-card .promo-row-icon{ font-size:20px; padding-top:2px; }
.promo-card-text{ flex:1; }
.promo-card-text strong{ font-size:13.5px; color:var(--ink); display:block; margin-bottom:3px; }
.promo-card-text p{ font-size:12px; color:var(--muted); margin:0; line-height:1.5; }
.promo-card-side{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; flex-shrink:0; }
.promo-card-price{ font-size:13px; font-weight:700; color:var(--brand-dark); }
.btn-sm{ padding:7px 16px; font-size:12.5px; }

/* Dimensions modal (bottom sheet on mobile, centered dialog on desktop) */
.modal-overlay{
  display:none; position:fixed; inset:0; background:rgba(43,29,20,.45); z-index:1000; align-items:flex-end; justify-content:center;
}
.modal-overlay.open{ display:flex; }
.modal-sheet{
  background:#fff; width:100%; max-width:480px; border-radius:var(--radius) var(--radius) 0 0; max-height:80vh; overflow-y:auto;
  padding:20px; animation:modal-slide-up .2s ease;
}
@keyframes modal-slide-up{ from{ transform:translateY(24px); opacity:0; } to{ transform:translateY(0); opacity:1; } }
.modal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.modal-head h3{ font-family:var(--serif); font-size:19px; margin:0; }
.modal-close{ background:var(--bg); border:none; width:32px; height:32px; border-radius:50%; cursor:pointer; color:var(--ink-soft); }

@media (min-width:769px){
  .modal-overlay{ align-items:center; }
  .modal-sheet{ border-radius:var(--radius); }
}

/* ---------- Mobile layout: switch gallery mode, stack pdp, sticky add-to-basket ---------- */
@media (max-width:768px){
  .gallery-swipe{ display:block; }
  .pdp-gallery .main-photo-wrap, .pdp-gallery .thumb-strip{ display:none; }

  .pdp{ display:block; }
  .pdp-info{ margin-top:18px; }

  .opt-tab-label{ font-size:10px; }
  .opt-tab-value{ display:none; } /* keeps mobile tabs compact; value still shown via colour-heading/oc selection */

  .pdp-buy-row{
    position:sticky; bottom:0; background:#fff; padding:12px 0; margin:18px -16px -16px; padding-left:16px; padding-right:16px;
    border-top:1px solid var(--line); z-index:20;
  }
}

/* ---------- PDP v4: mobile always-open colour block + working image lightbox ---------- */

/* The always-open mobile colour block: visible by default (mobile-first),
   hidden on desktop where colour instead stays as a tab (unchanged). */
.mobile-colour-block{ margin-bottom:18px; }

@media (min-width:769px){
  .mobile-colour-block{ display:none; }
}

@media (max-width:768px){
  /* Colour now lives in the always-open block above, so hide its
     duplicate tab button + panel inside the icon tab-strip on mobile —
     desktop is completely unaffected by this rule. */
  .opt-tab[data-opt-tab="colour"]{ display:none; }
  .opt-panel[data-opt-panel="colour"]{ display:none !important; }
}

/* Image lightbox — opened by tapping "Click to Expand" or the photo itself */
.lightbox-overlay{
  display:none; position:fixed; inset:0; background:rgba(20,14,9,.92); z-index:1100;
  align-items:center; justify-content:center; padding:20px;
}
.lightbox-overlay.open{ display:flex; }
.lightbox-overlay img{ max-width:100%; max-height:100%; object-fit:contain; border-radius:6px; }
.lightbox-close{
  position:absolute; top:16px; right:16px; width:38px; height:38px; border-radius:50%; border:none;
  background:rgba(255,255,255,.15); color:#fff; font-size:16px; cursor:pointer;
}
.gallery-expand-pill{ cursor:pointer; pointer-events:auto; }
.gallery-swipe-slide img{ cursor:zoom-in; }

/* ---------- PDP v5: custom PNG icons + one-by-one progressive option reveal ---------- */

/* Custom uploaded icons in the tab strip and option cards, sized to match
   the space the old FontAwesome/inline-SVG icons used to take. */
.opt-tab-icon-img{ width:20px; height:20px; object-fit:contain; }
.oc-size-img{ width:36px; height:24px; object-fit:contain; }

/* One-by-one reveal: a tab not yet reached in the flow stays hidden.
   showOptTab() in the inline script removes this class as each step is
   completed, so tabs appear progressively (Colour -> Size -> Headboard
   Height -> ...) instead of all at once. */
.opt-tab.locked{ display:none; }

/* ---------- Cart/checkout variant list: single horizontal line, scrolls sideways if it overflows (desktop and mobile alike) ---------- */
.cart-row .opts, .opts{
  display:flex; flex-wrap:nowrap; align-items:center; gap:0;
  font-size:12.5px; color:var(--muted); margin-top:6px; min-width:0;
  overflow-x:auto; -webkit-overflow-scrolling:touch; white-space:nowrap;
  scrollbar-width:thin; padding-bottom:2px;
}
.opts::-webkit-scrollbar{ height:5px; }
.opts::-webkit-scrollbar-thumb{ background:var(--line); border-radius:99px; }
.opts .opt-line{ line-height:1.5; white-space:nowrap; flex-shrink:0; }
.opts .opt-line:not(:first-child)::before{ content:"•"; margin:0 7px; color:var(--line); }
.cart-row .opts.opts-collapsed .opt-line:nth-child(n+5){ display:none; }

@media (max-width:480px){
  .opts{ font-size:11.5px; }
  .opts .opt-line:not(:first-child)::before{ margin:0 5px; }
}

/* ---------- PDP v6: vertical one-by-one option sections (replaces the horizontal icon-tab strip) ---------- */
.v-opts{ display:flex; flex-direction:column; gap:28px; margin:10px 0 22px; }
.v-opt-section.locked{ display:none; }
.v-opt-heading{ font-size:13.5px; font-weight:700; color:var(--ink); margin:0 0 12px; }
.v-opt-value{ font-weight:400; color:var(--ink-soft); margin-left:2px; }
.v-opt-optional{ font-weight:400; color:var(--muted); font-size:11.5px; margin-left:6px; }

/* Size icon cards — same footprint as the colour swatches, icon fills the
   top edge-to-edge, size name shown underneath (so it's still readable
   even if a custom icon image hasn't been uploaded yet). */
.v-size-row{ display:flex; gap:10px; flex-wrap:wrap; }
.v-size-card{
  width:92px; border:2px solid var(--line); border-radius:var(--radius-sm); background:#fff; overflow:hidden;
  cursor:pointer; padding:0; margin:0; display:flex; flex-direction:column; align-items:center; text-align:center;
  transition:border-color .15s; font-family:inherit;
}
.v-size-card .v-size-icon-wrap{ width:100%; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; background:#faf8f5;}
.v-size-card img, .v-size-card svg{ width:100%; height:100%; object-fit:contain; color:var(--ink-soft); }
.v-size-card .v-size-label{ font-size:11.5px; padding:7px 6px; color:var(--ink-soft); line-height:1.25; }
.v-size-card:hover{ border-color:var(--ink-soft); }
.v-size-card.selected{ border-color:var(--ink); }
.v-size-card.selected .v-size-label{ color:var(--ink); font-weight:700; }
.v-size-card.selected img, .v-size-card.selected svg{ color:var(--ink); }

@media (max-width:480px){
  .v-size-card{ width:78px; }
}

/* ---------- PDP v7: kill any leftover default <button> padding on ALL option boxes site-wide ---------- */
.colour-card, .option-card, .v-size-card{
  padding:0 !important; margin:0 !important; box-sizing:border-box;
}
