/* =========================================================================
   Buy Boxes Now — "Crafted Paper" design system
   Premium custom-packaging brand. Walnut brown + paper cream + amber accent.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Hanken+Grotesk:ital,wght@0,400..700;1,400..600&family=Spline+Sans+Mono:wght@400..600&display=swap");

:root {
  /* Brand */
  --walnut: #4a3526;          /* primary brand brown */
  --walnut-700: #3a2920;
  --walnut-900: #241812;
  --amber: #c47e2a;           /* accent / CTA highlight */
  --amber-600: #b06f1f;
  --amber-soft: #f2dfc3;

  /* Surfaces (warm, low chroma) */
  --paper: #f7f1e8;           /* page background */
  --paper-2: #efe6d8;         /* alt section */
  --card: #fffdf9;            /* card surface */
  --white: #ffffff;

  /* Ink */
  --ink: #211a13;             /* headings */
  --body: #5b5145;            /* body text */
  --muted: #8a7e6f;           /* meta */
  --line: #e4d9c8;            /* borders */
  --line-strong: #d4c6b1;

  /* Status */
  --success: #2f7d56;
  --success-soft: #e3f1e8;

  /* Type */
  --display: "Bricolage Grotesque", sans-serif;
  --sans: "Hanken Grotesk", sans-serif;
  --mono: "Spline Sans Mono", monospace;

  /* Radius / shadow */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(36,24,18,.05), 0 2px 6px rgba(36,24,18,.04);
  --shadow: 0 4px 14px rgba(36,24,18,.07), 0 10px 30px rgba(36,24,18,.05);
  --shadow-lg: 0 18px 50px rgba(36,24,18,.13);

  /* Layout */
  --maxw: 1240px;
  --gut: clamp(16px, 4vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--walnut); text-decoration: none; transition: color .18s ease; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); }
h4 { font-size: 1.2rem; }
p { text-wrap: pretty; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-sm { padding-block: clamp(40px, 5vw, 64px); }
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-600);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); display: inline-block; }
.lead { font-size: 1.15rem; color: var(--body); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 100px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1; cursor: pointer;
}
.btn i { font-size: 1.15em; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--walnut); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--walnut-700); color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: var(--amber); color: #fff; box-shadow: 0 6px 18px rgba(196,126,42,.28); }
.btn-accent:hover { background: var(--amber-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--walnut); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--walnut); background: var(--card); }
.btn-light { background: #fff; color: var(--walnut); }
.btn-light:hover { background: #fff; color: var(--walnut-900); box-shadow: var(--shadow); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Badges / chips ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
}
.badge-amber { background: var(--amber-soft); color: var(--amber-600); }
.badge-walnut { background: rgba(74,53,38,.08); color: var(--walnut); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-new { background: var(--amber); color: #fff; }

/* ---- Cards ---- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* ---- Striped image placeholder ---- */
.ph {
  position: relative; overflow: hidden;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(45deg, transparent 0 11px, rgba(74,53,38,.05) 11px 22px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: var(--mono); font-size: .72rem;
  letter-spacing: .04em; text-align: center; padding: 16px;
  aspect-ratio: 4 / 3;
}
.ph span { background: rgba(255,253,249,.7); padding: 4px 10px; border-radius: 100px; }
.ph.round { border-radius: 50%; aspect-ratio: 1; }

/* ---- Section heading ---- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head .lead { margin-top: 12px; }
.sec-head h2 { margin-top: 10px; }

/* =========================================================================
   HEADER
   ========================================================================= */
.topbar { background: var(--walnut-900); color: #d8cdbd; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #d8cdbd; }
.topbar a:hover { color: #fff; }
.topbar ul { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar .trust-mini { display: inline-flex; align-items: center; gap: 7px; }
.topbar .trust-mini i { color: var(--amber); font-size: 1rem; }
.topbar .socials { display: flex; gap: 14px; }
.topbar .socials a { font-size: 1.05rem; }

.head-main { background: var(--card); border-bottom: 1px solid var(--line); }
.head-main .wrap { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--walnut); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.25rem; letter-spacing: -0.03em; line-height: 1; }
.brand-name small { display: block; font-family: var(--mono); font-weight: 400; font-size: .6rem; letter-spacing: .14em; color: var(--amber-600); text-transform: uppercase; margin-top: 4px; }

.searchbar { flex: 1; display: flex; max-width: 560px; position: relative; }
.searchbar input {
  width: 100%; border: 1.5px solid var(--line-strong); background: var(--paper);
  border-radius: 100px; padding: 12px 52px 12px 20px; color: var(--ink); outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar input:focus { border-color: var(--walnut); background: #fff; }
.searchbar button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--walnut); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem;
}
.searchbar button:hover { background: var(--amber); }

.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.head-phone { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 100px; }
.head-phone i { font-size: 1.7rem; color: var(--walnut); }
.head-phone .lbl { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; }
.head-phone .num { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1; }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-size: 1.4rem; transition: background .2s; }
.icon-btn:hover { background: var(--paper-2); color: var(--walnut); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 100px; background: var(--amber); color: #fff; font-family: var(--mono); font-size: .62rem; display: grid; place-items: center; font-weight: 600; }

/* Nav row */
.head-nav { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-nav .wrap { display: flex; align-items: stretch; gap: 8px; }
.nav-menu { display: flex; align-items: stretch; gap: 2px; }
.nav-menu > li { position: relative; display: flex; }
.nav-menu > li > a {
  display: inline-flex; align-items: center; gap: 7px; padding: 16px 18px; color: var(--ink);
  font-weight: 600; font-size: .96rem; border-bottom: 2.5px solid transparent;
}
.nav-menu > li > a:hover { color: var(--walnut); }
.nav-menu > li.active > a { color: var(--walnut); border-bottom-color: var(--amber); }
.nav-menu > li > a .chev { font-size: .85rem; transition: transform .2s; }
.nav-menu > li:hover > a .chev { transform: rotate(180deg); }
.nav-menu .tag { font-family: var(--mono); font-size: .55rem; background: var(--amber); color: #fff; padding: 2px 6px; border-radius: 6px; letter-spacing: .06em; }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s ease; z-index: 60;
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; color: var(--body); font-weight: 500; font-size: .92rem; }
.dropdown a i { color: var(--amber-600); font-size: 1.15rem; }
.dropdown a:hover { background: var(--paper); color: var(--walnut); }

.nav-secure { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--success); font-weight: 600; }
.nav-secure i { font-size: 1.2rem; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; place-items: center; font-size: 1.6rem; color: var(--ink); }

/* Mobile menu drawer */
.mobile-drawer { position: fixed; inset: 0 30% 0 0; max-width: 360px; background: var(--card); z-index: 200; transform: translateX(-105%); transition: transform .28s ease; padding: 24px; overflow-y: auto; box-shadow: var(--shadow-lg); }
.mobile-drawer.open { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(36,24,18,.45); z-index: 199; opacity: 0; visibility: hidden; transition: opacity .28s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer .m-nav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.mobile-drawer .m-sub a { padding-left: 18px; font-weight: 500; color: var(--body); font-size: .92rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--walnut-900); color: #c4b7a6; }
.footer a { color: #c4b7a6; }
.footer a:hover { color: #fff; }
.foot-top { padding-block: clamp(48px, 6vw, 76px); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 40px; }
.footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; font-family: var(--display); }
.foot-brand .brand-mark { background: var(--amber); }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { margin: 18px 0; font-size: .92rem; max-width: 38ch; }
.foot-menu li { margin-bottom: 11px; }
.foot-menu a { font-size: .92rem; }
.foot-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .9rem; align-items: flex-start; }
.foot-contact i { color: var(--amber); font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; }
.foot-socials { display: flex; gap: 10px; margin-top: 22px; }
.foot-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 1.15rem; color: #fff; transition: background .2s; }
.foot-socials a:hover { background: var(--amber); }
.foot-trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.trust-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 8px 12px; font-size: .78rem; color: #e6ddd0; }
.trust-chip i { color: var(--amber); font-size: 1.1rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px; }
.foot-bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-bottom p { font-size: .85rem; }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badge { background: #fff; border-radius: 6px; padding: 5px 10px; font-family: var(--mono); font-size: .68rem; font-weight: 600; color: var(--walnut-900); letter-spacing: .03em; }

/* =========================================================================
   BREADCRUMB
   ========================================================================= */
.crumb { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.crumb .wrap { padding-block: 22px; }
.crumb-trail { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.crumb-trail a { color: var(--body); }
.crumb-trail a:hover { color: var(--walnut); }
.crumb-trail .sep { color: var(--line-strong); }
.crumb-trail .current { color: var(--walnut); font-weight: 600; }
.crumb h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); margin-top: 8px; }

/* =========================================================================
   PRODUCT CARD
   ========================================================================= */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.prod-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.prod-card .thumb { position: relative; aspect-ratio: 1; background: var(--paper); overflow: hidden; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-card .thumb .ph { border: 0; border-radius: 0; aspect-ratio: 1; height: 100%; }
.prod-card .thumb .badge { position: absolute; top: 12px; left: 12px; }
.prod-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-card .cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-600); }
.prod-card h3 { font-size: 1.08rem; line-height: 1.25; }
.prod-card h3 a { color: var(--ink); }
.prod-card h3 a:hover { color: var(--walnut); }
.prod-card .stars { display: flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--muted); }
.prod-card .stars i { color: var(--amber); }
.prod-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.prod-card .price-row .btn, .prod-card .price-row .button, .prod-card .price-row a.button { flex-shrink: 0; padding: 10px 14px !important; min-width: 0; }
.prod-card .price { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.25rem; }
.prod-card .price small { font-family: var(--sans); font-weight: 500; color: var(--muted); font-size: .72rem; }
.prod-card .price del { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }

/* =========================================================================
   FEATURE / TRUST band
   ========================================================================= */
.trust-band { background: var(--card); border-block: 1px solid var(--line); }
.trust-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.trust-cell { background: var(--card); padding: 28px 24px; display: flex; gap: 16px; align-items: flex-start; }
.trust-cell i { font-size: 2rem; color: var(--amber); flex-shrink: 0; }
.trust-cell h4 { font-size: 1.02rem; margin-bottom: 4px; }
.trust-cell p { font-size: .85rem; color: var(--muted); }

/* ---- Category circles ---- */
.cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px; }
.cat-item { text-align: center; }
.cat-item .ph { aspect-ratio: 1; border-radius: 50%; margin-bottom: 14px; transition: transform .2s ease, box-shadow .2s; }
.cat-item:hover .ph { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-item .name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.cat-item .qty { font-family: var(--mono); font-size: .72rem; color: var(--muted); }

/* ---- Accordion ---- */
.acc-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.acc-btn { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.acc-btn .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; flex-shrink: 0; transition: .2s; color: var(--walnut); }
.acc-btn.open .ic { background: var(--walnut); color: #fff; transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.acc-body p { padding: 0 24px 22px; color: var(--body); font-size: .96rem; }

/* ---- Tabs (policy hub) ---- */
.tab-nav { display: flex; flex-direction: column; gap: 4px; }
.tab-nav button { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; color: var(--body); font-weight: 600; text-align: left; transition: .18s; }
.tab-nav button i { font-size: 1.3rem; color: var(--muted); }
.tab-nav button:hover { background: var(--card); }
.tab-nav button.active { background: var(--walnut); color: #fff; box-shadow: var(--shadow-sm); }
.tab-nav button.active i { color: var(--amber-soft); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Prose (policy text) ---- */
.prose h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: none; margin: 0 0 18px; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); transform: rotate(45deg); }
.prose a { color: var(--amber-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.policy-note { background: var(--success-soft); border: 1px solid #bfe0cd; border-radius: var(--r); padding: 18px 22px; display: flex; gap: 14px; margin: 22px 0; }
.policy-note i { color: var(--success); font-size: 1.5rem; flex-shrink: 0; }
.policy-note strong { color: var(--ink); }

/* ---- Forms ---- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .9rem; }
.field label .req { color: var(--amber-600); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line-strong); background: var(--card);
  border-radius: var(--r-sm); padding: 13px 16px; color: var(--ink); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--walnut); box-shadow: 0 0 0 3px rgba(74,53,38,.1); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Utility ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.divider { height: 1px; background: var(--line); border: 0; }
.tag-spec { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.hero-art { position: relative; }
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: revealUp .6s ease both; }
}
@keyframes revealUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-band .wrap { grid-template-columns: 1fr 1fr; }
  .head-phone { display: none; }
}
@media (max-width: 860px) {
  .head-nav { display: none; }
  .burger { display: grid; }
  .head-main .wrap { gap: 16px; }
  .searchbar { order: 3; flex-basis: 100%; max-width: none; }
  .head-main .wrap { flex-wrap: wrap; padding-block: 14px; min-height: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .foot-grid { grid-template-columns: 1fr; }
  .trust-band .wrap { grid-template-columns: 1fr; }
  .topbar ul.left-links { display: none; }
}

/* =========================================================================
   MOBILE OVERFLOW HARDENING — prevent any horizontal scroll / side gaps
   ========================================================================= */
@media (max-width: 860px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  /* Long product names / SKUs wrap on spaces, never mid-word */
  h1, h2, h3, h4, .product_title, .crumb-trail { overflow-wrap: break-word; word-break: normal; hyphens: none; }
  /* Header: drop the inline quote button (it's in the drawer) to save room */
  .head-actions .btn-accent { display: none; }
  .head-main .wrap { gap: 12px; }
  /* WooCommerce gallery: never exceed the viewport (FlexSlider can lock a wide px width) */
  .bbn-single div.product { gap: 26px; }
  .woocommerce-product-gallery,
  .woocommerce-product-gallery .flex-viewport,
  .woocommerce-product-gallery ul.slides,
  .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
  .woocommerce-product-gallery img { max-width: 100% !important; }
  /* Hero floating badge: stack it instead of overhanging on small screens */
  .hero-art .card { position: static !important; margin-top: 14px; left: auto; bottom: auto; }
  /* Inline two-column grids collapse cleanly */
  .field-row { grid-template-columns: 1fr !important; }
  /* Tables (cart, description specs) scroll inside their own box, not the page */
  .woocommerce table.shop_table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
  :root { --gut: 16px; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .related ul.products, .upsells ul.products, .woocommerce ul.products { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  /* Compact product cards so titles wrap cleanly and the cart button isn't clipped */
  .prod-card .body { padding: 12px 12px 14px; gap: 6px; }
  .prod-card h3 { font-size: .95rem; line-height: 1.3; }
  .prod-card .cat { font-size: .6rem; }
  .prod-card .price { font-size: 1rem; }
  .prod-card .price small { display: block; }
  .prod-card .price-row { gap: 8px; padding-top: 6px; }
  .prod-card .btn-sm { padding: 9px 12px; flex-shrink: 0; }
}

/* =========================================================================
   WOOCOMMERCE — style default Woo markup to match the design system
   ========================================================================= */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-radius: var(--r); border: 1px solid var(--line); background: var(--card);
  padding: 16px 20px; list-style: none; margin-bottom: 20px; color: var(--ink);
  border-left: 4px solid var(--amber);
}
.woocommerce-error { border-left-color: #c0392b; }
.woocommerce-message { border-left-color: var(--success); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--walnut); color: #fff; border-radius: 100px; font-family: var(--sans);
  font-weight: 600; padding: 13px 26px; line-height: 1; border: 0; transition: background .2s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--walnut-700); }
.woocommerce .button.single_add_to_cart_button { background: var(--amber); padding: 16px 32px; font-size: 1.05rem; }
.woocommerce .button.single_add_to_cart_button:hover { background: var(--amber-600); }

/* =========================================================================
   SINGLE PRODUCT — fully responsive
   ========================================================================= */
.bbn-single div.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
/* Kill WooCommerce's default 48% float widths so gallery + summary fill columns */
.bbn-single div.product > .woocommerce-product-gallery,
.bbn-single div.product > .images,
.bbn-single div.product > .summary,
.bbn-single div.product > .entry-summary { width: 100% !important; float: none !important; margin: 0 !important; }
/* Row 1 = gallery + summary; everything WooCommerce hooks in after spans full width */
.bbn-single div.product > .woocommerce-product-gallery { grid-column: 1; }
.bbn-single div.product > .summary,
.bbn-single div.product > .entry-summary { grid-column: 2; display: flex; flex-direction: column; }
.bbn-single div.product > .bbn-pdp-policies,
.bbn-single div.product > .woocommerce-tabs,
.bbn-single div.product > .upsells,
.bbn-single div.product > .related,
.bbn-single div.product > .clear { grid-column: 1 / -1; }

/* Gallery main image */
.bbn-single .woocommerce-product-gallery { margin: 0; }
.bbn-single .woocommerce-product-gallery__wrapper,
.bbn-single .woocommerce-product-gallery__image,
.bbn-single .woocommerce-product-gallery__image img { width: 100%; }
.bbn-single .woocommerce-product-gallery__image img { border-radius: var(--r-lg); }

/* Thumbnails = single-row horizontal CAROUSEL (5th/6th reachable by scroll) */
.bbn-single .woocommerce-product-gallery { position: static; }
.bbn-single .woocommerce-product-gallery .flex-control-nav,
.bbn-single .flex-control-thumbs {
  position: static !important; display: flex !important; flex-wrap: nowrap; gap: 10px;
  margin: 14px 0 0; padding: 4px 0 8px; list-style: none; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.bbn-single .flex-control-thumbs li { flex: 0 0 22%; margin: 0 !important; float: none !important; scroll-snap-align: start; }
.bbn-single .flex-control-thumbs img {
  opacity: 1 !important; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: border-color .15s ease; aspect-ratio: 1; object-fit: cover; width: 100%;
}
.bbn-single .flex-control-thumbs img:hover { border-color: var(--line-strong); }
.bbn-single .flex-control-thumbs img.flex-active { border-color: var(--walnut); }
.bbn-single .flex-control-thumbs::-webkit-scrollbar { height: 6px; }
.bbn-single .flex-control-thumbs::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 100px; }

/* Summary typography */
.bbn-single .product_title { font-size: clamp(1.7rem,1.1rem+1.7vw,2.5rem); margin: 6px 0 12px; }
.bbn-single .woocommerce-product-rating { margin-bottom: 14px; }
.bbn-single .star-rating { color: var(--amber); }
.bbn-single p.price, .bbn-single .price { color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.8rem; }
.bbn-single p.price del { color: var(--muted); font-weight: 400; font-size: 1.1rem; }
.bbn-single p.price ins { text-decoration: none; }
.bbn-single .woocommerce-product-details__short-description { color: var(--body); margin: 16px 0; }
.bbn-single form.cart { margin: 22px 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bbn-single form.cart .quantity input.qty {
  width: 84px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 12px 10px; text-align: center; background: var(--card); color: var(--ink);
}
.bbn-single .product_meta { font-size: .85rem; color: var(--muted); margin-top: 16px; }

/* Quote box compact fields */
.bbn-quote-box .field { margin-bottom: 12px; }
.bbn-quote-box .field label { font-size: .82rem; margin-bottom: 5px; }
.bbn-quote-box .field input, .bbn-quote-box .field textarea { padding: 10px 13px; }

/* Description tab = full-width internal scroller (desktop) */
.woocommerce-Tabs-panel--description { max-height: 460px; overflow-y: auto; padding-right: 14px; }
.woocommerce-Tabs-panel--description::-webkit-scrollbar { width: 8px; }
.woocommerce-Tabs-panel--description::-webkit-scrollbar-track { background: var(--paper-2); border-radius: 100px; }
.woocommerce-Tabs-panel--description::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 100px; }

/* Product tabs */
.woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; border: 0; }
.woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce-tabs ul.tabs li { background: transparent; border: 1px solid var(--line-strong); border-radius: 100px; margin: 0; padding: 0; }
.woocommerce-tabs ul.tabs li.active { background: var(--walnut); border-color: var(--walnut); }
.woocommerce-tabs ul.tabs li a { color: var(--body); font-weight: 600; padding: 10px 20px; }
.woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce-Tabs-panel h2 { font-size: 1.4rem; }

/* Related / upsells use the same grid as the shop */
.woocommerce .related ul.products, .woocommerce .upsells ul.products,
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 22px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; margin: 0; float: none; }
.related.products h2, .upsells.products h2 { margin-bottom: 24px; }

/* Ordering + result count */
.woocommerce-ordering select { border: 1.5px solid var(--line-strong); border-radius: 100px; padding: 9px 16px; background: var(--card); color: var(--ink); }
.woocommerce-result-count { color: var(--muted); margin: 0; }

/* Pagination */
.woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span {
  border-radius: 10px; border: 1px solid var(--line-strong) !important; padding: 10px 16px;
  color: var(--ink); background: var(--card);
}
.woocommerce-pagination ul li span.current { background: var(--walnut); color: #fff; border-color: var(--walnut) !important; }

/* Cart & checkout */
.woocommerce table.shop_table { border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.woocommerce table.shop_table th { color: var(--ink); }
.woocommerce-cart table.cart img { border-radius: 10px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order { border-radius: var(--r); border: 1px solid var(--line); background: var(--card); padding: 22px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  border: 1.5px solid var(--line-strong) !important; border-radius: var(--r-sm); padding: 12px 14px; background: var(--card); color: var(--ink);
}
.woocommerce #payment, .woocommerce-checkout #payment { background: var(--paper-2); border-radius: var(--r); }

/* ---- Single product responsive: stack + reorder for tablet/mobile ---- */
@media (max-width: 980px) {
  .bbn-single div.product { grid-template-columns: 1fr; gap: 28px; }
  .bbn-single div.product > .woocommerce-product-gallery { position: static; grid-column: 1; }
  .bbn-single div.product > .summary,
  .bbn-single div.product > .entry-summary { grid-column: 1; }
  /* Mobile content order:
     media (gallery, above) → title → rating → price → add to cart → quote → short description → trust → meta */
  .bbn-single .summary .product_title,
  .bbn-single .entry-summary .product_title { order: 1; }
  .bbn-single .summary .woocommerce-product-rating { order: 2; }
  .bbn-single .summary .price { order: 3; }
  .bbn-single .summary form.cart { order: 4; }
  .bbn-single .summary .bbn-quote-box { order: 5; }
  .bbn-single .summary .woocommerce-product-details__short-description { order: 6; }
  .bbn-single .summary .bbn-trust-strip { order: 7; }
  .bbn-single .summary .product_meta { order: 8; }
  /* Description flows naturally on mobile (no nested scroller) */
  .woocommerce-Tabs-panel--description { max-height: none; overflow: visible; padding-right: 0; }
  /* Slightly larger thumbs so ~3 show before scrolling */
  .bbn-single .flex-control-thumbs li { flex-basis: 28%; }
}


