/* ============================================================
   ARULUDAIYAN — Salt House & Trading Co.
   Design system: complementary teal/coral, 60-30-10 balance
   Display: Fraunces · UI: Inter · Data: IBM Plex Mono
   ============================================================ */

:root {
  /* --- Palette --------------------------------------------- */
  --brine:  #0C3B47;   /* deep sea teal — dark sections   */
  --brine-2:#0A2E38;   /* deeper                          */
  --tide:   #17697C;   /* secondary teal (30%)            */
  --tide-2: #1E869E;   /* lighter teal for hover          */
  --halite: #E9714E;   /* coral accent (10%) — CTAs       */
  --halite-2:#D65B38;  /* accent hover                    */
  --mist:   #EBF1F2;   /* pale salt mist (neutral 60%)    */
  --paper:  #FBFCFC;   /* near white                      */
  --sand:   #EFE7DA;   /* warm neutral band               */
  --ink:    #142329;   /* near-black text                 */
  --stone:  #5E7076;   /* muted text                      */
  --line:   #D8E1E3;   /* hairline borders                */
  --line-dk:#1C4E5C;   /* borders on dark                 */

  /* --- Type ------------------------------------------------ */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* --- Spacing / shape ------------------------------------- */
  --wrap: 1200px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(12,59,71,.06), 0 12px 30px -18px rgba(12,59,71,.28);
  --shadow-lg: 0 30px 60px -30px rgba(12,59,71,.45);
}

/* ---------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
ul { list-style: none; padding: 0; }
table { max-width: 100%; }

/* visible keyboard focus everywhere (mouse users unaffected) */
:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 2px;
  border-radius: 3px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--brine); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .9rem; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 84px; }
.section--tight { padding-block: 52px; }
.dark { background: var(--brine); color: var(--mist); }
.dark .eyebrow { color: var(--halite); }
.band-sand { background: var(--sand); }
.band-mist { background: var(--mist); }

/* ---------------------------------------------------------- type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
.display { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 400; }
h2.title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
.lede { font-size: 1.15rem; color: var(--stone); max-width: 60ch; }
.dark .lede { color: #B9CDD2; }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--tide);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  transform: rotate(45deg);
  background: var(--halite);
  display: inline-block;
}
.mono { font-family: var(--mono); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 14px 26px; border-radius: var(--r-sm);
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--halite); color: #fff; }
.btn--primary:hover { background: var(--halite-2); box-shadow: 0 10px 24px -12px rgba(233,113,78,.8); }
.btn--dark { background: var(--brine); color: #fff; }
.btn--dark:hover { background: var(--brine-2); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--tide); color: var(--tide); }
.btn--light { background: #fff; color: var(--brine); }
.btn--light:hover { background: var(--mist); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.link-arrow { font-weight: 600; color: var(--tide); display: inline-flex; gap: 8px; align-items: center; }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,252,252,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 34px; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 1.5rem; letter-spacing: .02em; }
.brand b { font-weight: 600; }
.brand .brand-mark { width: 14px; height: 14px; background: var(--halite); transform: rotate(45deg); position: relative; top: -1px; }
.brand small { font-family: var(--mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { font-size: .93rem; font-weight: 500; color: var(--ink); padding: 6px 0; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--halite); transition: width .22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-right > * { flex-shrink: 0; } /* never let quote/account/cart/hamburger get compressed or pushed off-screen */
.acct-greet {
  font-size: .9rem; color: var(--stone); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 120px; margin-right: 10px; display: inline-block; vertical-align: middle;
}
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; padding: 8px 6px; flex-shrink: 0; }
.cart-btn .count {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--halite); color: #fff; border-radius: 999px; font-family: var(--mono);
  font-size: .68rem; display: grid; place-items: center; font-weight: 600;
}
.menu-toggle { display: none; font-size: 1.6rem; line-height: 1; padding: 4px 8px; flex-shrink: 0; }

/* ---------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--brine); color: var(--mist); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 92px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lede { color: #C3D6DB; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line-dk); }
.hero-stats .stat b { font-family: var(--serif); font-size: 2rem; display: block; color: #fff; }
.hero-stats .stat span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8FB0B8; }
.hero-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(10,46,56,.55)); }
.hero-chip {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: rgba(251,252,252,.92); color: var(--ink); border-radius: var(--r-md);
  padding: 12px 16px; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; display:flex; gap:12px; align-items:center;
}
.hero-chip b { color: var(--tide); }
/* crystalline backdrop */
.hero::before {
  content:""; position:absolute; inset:0; opacity:.06; z-index:0;
  background-image: linear-gradient(45deg, #fff 1px, transparent 1px), linear-gradient(-45deg, #fff 1px, transparent 1px);
  background-size: 42px 42px;
}
.hero .wrap { position: relative; z-index: 1; }

/* ---------------------------------------------------------- trust strip */
.trust { border-block: 1px solid var(--line); background: var(--paper); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-block: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--stone); overflow-wrap: break-word; word-break: break-word; min-width: 0; }
.trust-item svg { color: var(--tide); flex: none; }
.trust-item b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------- section head */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 42px; flex-wrap: wrap; }
.sec-head .lede { margin-top: 12px; }

/* ---------------------------------------------------------- category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 230px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); transition: transform .25s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cat-card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(12,59,71,.15), rgba(10,46,56,.85)); z-index: 1; }
.cat-card .cat-body { position: relative; z-index: 2; padding: 22px; width: 100%; }
.cat-card h3 { color:#fff; font-size: 1.3rem; }
.cat-card .cat-count { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #C9DDE1; }
.cat-card .cat-go { margin-top: 8px; display: inline-flex; gap: 8px; align-items:center; font-weight: 600; font-size: .88rem; color: #fff; }

/* ---------------------------------------------------------- product grid + card */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); 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: #C4D3D6; }
.prod-media { position: relative; aspect-ratio: 4/3; background: var(--mist); overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prod-card:hover .prod-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--brine); color: #fff; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 9px; border-radius: 4px;
}
.badge--accent { background: var(--halite); }
.prod-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tide); }
.prod-name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; margin: 6px 0 8px; }
.prod-name a:hover { color: var(--tide); }
.prod-short { font-size: .86rem; color: var(--stone); margin-bottom: 14px; flex: 1; }
.spec-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 10px 0; margin-bottom: 14px;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  font-family: var(--mono); font-size: .68rem; color: var(--stone);
}
.spec-strip span b { color: var(--ink); font-weight: 600; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--mono); font-weight: 600; }
.price .amt { font-size: 1.25rem; color: var(--ink); }
.price .unit { display: block; font-size: .68rem; color: var(--stone); letter-spacing: .04em; }
.moq-note { font-family: var(--mono); font-size: .64rem; color: var(--halite-2); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------- shop layout */
.shop-head { background: var(--brine); color: #fff; padding-block: 54px; }
.shop-head h1 { color: #fff; }
.shop-head .lede { color: #C3D6DB; }
.shop-layout { display: grid; grid-template-columns: 232px 1fr; gap: 34px; align-items: start; }
.filters { position: sticky; top: 92px; }
.filters h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.filter-list button {
  display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 10px 12px;
  border-radius: var(--r-sm); font-size: .92rem; color: var(--ink); transition: background .15s ease, color .15s ease;
}
.filter-list button .c { font-family: var(--mono); font-size: .72rem; color: var(--stone); }
.filter-list button:hover { background: var(--mist); }
.filter-list button.active { background: var(--brine); color: #fff; }
.filter-list button.active .c { color: #9EC0C8; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.shop-toolbar .result-count { font-family: var(--mono); font-size: .8rem; color: var(--stone); }
.toolbar-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.shop-toolbar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); min-width: 0; }
.search-box { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; background:#fff; flex: 1 1 200px; min-width: 0; }
.search-box input { border:none; outline:none; width: 100%; min-width: 0; }
.search-box svg { color: var(--stone); flex:none; }

/* ---------------------------------------------------------- product detail */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdp-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1/1; background: var(--mist); box-shadow: var(--shadow); position: sticky; top: 92px; }
.pdp-media img { width:100%; height:100%; object-fit: cover; }
.pdp h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 14px; }
.pdp .price .amt { font-size: 2rem; }
.pdp-specs { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .92rem; }
.pdp-specs th, .pdp-specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pdp-specs th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); font-weight: 500; width: 42%; }
.pdp-specs td { font-weight: 500; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 24px 0; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.stepper button { width: 44px; height: 48px; font-size: 1.3rem; color: var(--tide); background: #fff; }
.stepper button:hover { background: var(--mist); }
.stepper input { width: 64px; height: 48px; text-align: center; border: none; border-inline: 1px solid var(--line); font-family: var(--mono); font-weight: 600; }
.qty-hint { font-family: var(--mono); font-size: .74rem; color: var(--stone); }
.breadcrumb { font-family: var(--mono); font-size: .74rem; color: var(--stone); letter-spacing: .06em; padding-block: 20px; }
.breadcrumb a:hover { color: var(--tide); }
.breadcrumb span { color: var(--halite-2); }

/* ---------------------------------------------------------- cart */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; min-width: 0; }
.cart-layout > * { min-width: 0; }
.cart-lines { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cart-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: none; }
.cart-line .thumb { width: 92px; height: 92px; border-radius: var(--r-sm); overflow: hidden; background: var(--mist); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .c-name { font-family: var(--serif); font-size: 1.1rem; }
.cart-line .c-sku { font-family: var(--mono); font-size: .7rem; color: var(--stone); letter-spacing: .06em; }
.cart-line .c-controls { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.cart-line .stepper button { width: 36px; height: 38px; font-size: 1.1rem; }
.cart-line .stepper input { width: 48px; height: 38px; }
.cart-line .remove { font-size: .82rem; color: var(--stone); text-decoration: underline; }
.cart-line .remove:hover { color: var(--halite-2); }
.cart-line .line-total { font-family: var(--mono); font-weight: 600; font-size: 1.15rem; text-align: right; }
.cart-line .line-each { font-family: var(--mono); font-size: .72rem; color: var(--stone); }

.summary { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; background: var(--paper); position: sticky; top: 92px; }
.summary h3 { font-size: 1.25rem; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .95rem; color: var(--stone); }
.sum-row b { color: var(--ink); font-family: var(--mono); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.sum-row.total b { font-size: 1.4rem; }
.summary .btn { margin-top: 20px; }
.summary .fine { font-size: .76rem; color: var(--stone); text-align: center; margin-top: 12px; }

.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .ico { width: 64px; height: 64px; margin: 0 auto 20px; color: var(--tide); }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 10px; }
.empty-state p { color: var(--stone); margin-bottom: 22px; }

/* ---------------------------------------------------------- forms / checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; min-width: 0; }
.checkout-layout > * { min-width: 0; }
.form-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; margin-bottom: 24px; background: #fff; }
.form-card > h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 20px; }
.form-card .step-num {
  width: 28px; height: 28px; background: var(--brine); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: .82rem; font-weight: 600; flex: none;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--halite-2); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--tide); box-shadow: 0 0 0 3px rgba(23,105,124,.14); background: #fff;
}
.field .err-msg { font-size: .74rem; color: var(--halite-2); display: none; }
.field.invalid input, .field.invalid select { border-color: var(--halite); }
.field.invalid .err-msg { display: block; }

.pay-options { display: grid; gap: 12px; }
.pay-option {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.pay-option:hover { border-color: var(--tide); }
.pay-option input { accent-color: var(--tide); width: 18px; height: 18px; }
.pay-option.selected { border-color: var(--tide); background: rgba(23,105,124,.05); }
.pay-option > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.pay-option .p-name { font-weight: 600; }
.pay-option .p-desc { font-size: .8rem; color: var(--stone); }
.pay-option svg { margin-left: auto; color: var(--tide); flex: none; }

.mini-lines { margin-bottom: 16px; min-width: 0; }
.mini-line { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; min-width: 0; }
.mini-line:last-child { border-bottom: none; }
.mini-line .m-thumb { width: 46px; height: 46px; border-radius: 6px; overflow: hidden; background: var(--mist); flex: none; }
.mini-line .m-thumb img { width:100%; height:100%; object-fit: cover; }
.mini-line > div:not(.m-thumb):not(.m-total) { min-width: 0; flex: 1 1 auto; overflow-wrap: break-word; }
.mini-line .m-qty { font-family: var(--mono); font-size: .72rem; color: var(--stone); }
.mini-line .m-total { margin-left: auto; font-family: var(--mono); font-weight: 600; flex: none; white-space: nowrap; }

/* ---------------------------------------------------------- confirmation / invoice */
.confirm-hero { text-align: center; padding: 60px 20px 30px; }
.confirm-check { width: 76px; height: 76px; margin: 0 auto 22px; background: var(--tide); border-radius: 50%; display: grid; place-items: center; color: #fff; }
.confirm-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.confirm-hero .order-id { font-family: var(--mono); font-size: 1rem; color: var(--halite-2); letter-spacing: .08em; margin-top: 10px; }
.invoice {
  max-width: 760px; margin: 30px auto 0; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; overflow: hidden; box-shadow: var(--shadow);
}
.invoice-head { display: flex; justify-content: space-between; padding: 30px; background: var(--brine); color: #fff; gap: 20px; flex-wrap: wrap; }
.invoice-head .brand { color: #fff; }
.invoice-head .brand small { color: #9EC0C8; }
.invoice-meta { text-align: right; font-family: var(--mono); font-size: .8rem; color: #C3D6DB; }
.invoice-meta b { color: #fff; display: block; font-size: 1.05rem; letter-spacing: .04em; }
.invoice-body { padding: 30px; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 26px; }
.invoice-parties h5 { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.invoice-parties p { font-size: .92rem; line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 20px; }
.inv-table { width: 100%; min-width: 480px; border-collapse: collapse; margin-bottom: 0; }
.inv-table th { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--line); }
.inv-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
.inv-table .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.inv-totals { margin-left: auto; width: 280px; max-width: 100%; }
.inv-totals .sum-row { padding: 7px 0; }
.print-actions { display: flex; gap: 12px; justify-content: center; margin: 28px 0 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------- feature blocks */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.feature .f-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--mist); color: var(--tide); display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { font-size: .92rem; color: var(--stone); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* two-column prose / info layouts (about, contact) — was inline & non-responsive */
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: start; }
.feature-grid--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* guard: grid/flex items default to min-width:auto, which lets long unbroken
   text (or an unwrapped label) force a whole column wider than the viewport.
   This resets that for every multi-column layout on the site. */
.prod-grid, .cat-grid, .feature-grid, .feature-grid--split, .prose-grid,
.contact-layout, .hero-grid, .pdp, .split, .field-grid, .foot-grid, .stat-band,
.shop-layout, .invoice-parties, .cart-line {
  min-width: 0;
}
.prod-grid > *, .cat-grid > *, .feature-grid > *, .feature-grid--split > *,
.prose-grid > *, .contact-layout > *, .hero-grid > *, .pdp > *, .split > *,
.field-grid > *, .foot-grid > *, .stat-band > *, .shop-layout > *,
.invoice-parties > *, .cart-line > * {
  min-width: 0;
}

.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat-band .s b { font-family: var(--serif); font-size: 2.6rem; display: block; color: #fff; }
.stat-band .s span { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #9EC0C8; }

/* quote / cta band */
.cta-band { background: var(--tide); color: #fff; border-radius: var(--r-lg); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 2rem; max-width: 20ch; }
.cta-band p { color: #DDEDF0; margin-top: 8px; }

/* ---------------------------------------------------------- footer */
.site-footer { background: var(--brine-2); color: #B9CDD2; padding-block: 56px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: .9rem; max-width: 34ch; }
.foot-col h5 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #7FA3AC; margin-bottom: 14px; }
.foot-col a { display: block; padding: 5px 0; font-size: .92rem; color: #B9CDD2; overflow-wrap: break-word; word-break: break-word; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid var(--line-dk); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: .74rem; color: #7FA3AC; }

/* ---------------------------------------------------------- toast */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--brine); color: #fff; padding: 14px 18px; border-radius: var(--r-sm); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: .9rem; min-width: 240px;
  animation: toast-in .28s ease; border-left: 3px solid var(--halite);
}
.toast svg { color: var(--halite); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- misc */
.page-head { padding-block: 54px 10px; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 18px; color: var(--stone); }
.prose h3 { margin: 34px 0 12px; color: var(--ink); }
.hidden { display: none !important; }

/* ---------------------------------------------------------- responsive */

/* ---- large tablet / small desktop ---- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .cart-layout { grid-template-columns: 1fr 320px; gap: 28px; }
  .checkout-layout { grid-template-columns: 1fr 340px; gap: 28px; }
}

/* ---- tablet / nav collapses to hamburger ---- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 2px; margin: 0;
    box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav-links.open a:last-child { border-bottom: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero-grid, .pdp, .split, .cart-layout, .checkout-layout,
  .prose-grid, .contact-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 56px; }
  .hero-visual { max-height: 360px; }
  .split img { max-height: 360px; width: 100%; object-fit: cover; }

  .cat-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .feature-grid--split { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; margin-bottom: 8px; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-list button { width: auto; justify-content: flex-start; gap: 8px; }
  .filter-list button .c { background: rgba(20,35,41,.08); padding: 2px 7px; border-radius: 999px; }
  .filter-list button.active .c { background: rgba(255,255,255,.2); color: #fff; }
  .summary, .pdp-media, .filters { position: static; }
  .invoice-parties, .field-grid { grid-template-columns: 1fr; }

  .sec-head { margin-bottom: 30px; }
  .section { padding-block: 64px; }
}

/* ---- large phone / small tablet ---- */
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .qty-row { flex-wrap: wrap; }
  .qty-row .btn { flex: 1 1 auto; }
  .cta-band, .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-band .btn, .cta-actions .btn { width: 100%; }
  .toolbar-controls { width: 100%; }
  .toolbar-controls .search-box { flex: 1 1 auto; }
  .toolbar-controls select { flex: 1 1 auto; }
  .invoice-head { flex-direction: column; gap: 14px; }
  .invoice-meta { text-align: left; }
}

/* ---- phones ---- */
@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .section { padding-block: 48px; }
  .section--tight { padding-block: 38px; }
  .cat-grid, .prod-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; gap: 12px; padding: 16px; }
  .cart-line .thumb { width: 64px; height: 64px; }
  .cart-line .c-price { grid-column: 2; margin-top: 6px; }
  .cart-line .line-total { text-align: left; }
  .cart-line .c-controls { flex-wrap: wrap; row-gap: 10px; }
  .cta-band { padding: 26px 22px; }
  .form-card { padding: 20px; }
  .invoice-head, .invoice-body { padding: 20px; }
  .empty-state { padding: 56px 16px; }
  .pdp h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .confirm-hero { padding: 44px 16px 24px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hero-stats .stat b { font-size: 1.6rem; }
  .trust-row { justify-content: flex-start; gap: 22px 28px; }
  .toast-wrap { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .toast { min-width: 0; width: 100%; }
}

/* ---- small phones ---- */
@media (max-width: 480px) {
  .brand small { display: none; }
  .brand { font-size: 1.2rem; }
  .nav-right { gap: 8px; }
  /* Hide only the "Request a quote" link (it's reachable via Contact in the
     menu) — do NOT hide all .btn--ghost, or Login/Logout disappear too. */
  .nav-right .quote-link { display: none; }
  .acct-greet { display: none; }
}

/* ---- larger touch targets on touch devices ---- */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .stepper button { min-width: 44px; min-height: 44px; }
  .menu-toggle { min-width: 44px; min-height: 44px; }
  .cart-btn { min-width: 44px; min-height: 44px; justify-content: center; }
  .filter-list button { min-height: 42px; }
  .pay-option { min-height: 44px; }
  .nav-links a { padding-block: 10px; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------- print (invoice) */
@media print {
  .site-header, .site-footer, .print-actions, .confirm-hero, .toast-wrap { display: none !important; }
  body { background: #fff; }
  .invoice { border: none; box-shadow: none; max-width: 100%; }
  .invoice-head { background: var(--brine) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}