/* ==========================================================================
   Mansfield Trading — storefront styles
   Palette: deep pine + brass on warm stone. Type: Fraunces / Karla / IBM Plex Mono
   ========================================================================== */

:root {
  --ink: #101F1A;
  --pine: #14453A;
  --pine-600: #1B5C4A;
  --pine-100: #E3EBE6;
  --brass: #B4862B;
  --brass-200: #EFE0BF;
  --paper: #F6F4EE;
  --surface: #FFFFFF;
  --line: #DEDACE;
  --line-soft: #EAE6DC;
  --muted: #6C7269;
  --sale: #A4381F;
  --ok: #2E6B4F;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1240px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(16, 31, 26, .05), 0 8px 24px rgba(16, 31, 26, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .8rem;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .85rem 1.4rem; border: 1px solid var(--pine); background: var(--pine); color: #fff;
  border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--pine-600); border-color: var(--pine-600); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: #1A1305; }
.btn-brass:hover { background: #C9982F; border-color: #C9982F; }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: .82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #D6DDD6; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: center; justify-content: space-between; min-height: 40px; padding-top: .5rem; padding-bottom: .5rem; }
.topbar a { color: #D6DDD6; text-decoration: none; }
.topbar a:hover { color: var(--brass-200); }
.topbar-contact { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }

.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; flex: none; background: var(--pine); color: var(--brass-200);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
}
.logo-word { line-height: 1.05; }
.logo-word b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.logo-word span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }

.searchbar { flex: 1; display: flex; max-width: 560px; }
.searchbar input {
  flex: 1; border: 1px solid var(--line); border-right: 0; background: var(--surface);
  padding: .78rem 1rem; font-family: var(--font-body); font-size: .92rem; border-radius: var(--radius) 0 0 var(--radius);
}
.searchbar input:focus { outline: none; border-color: var(--pine); }
.searchbar button { border-radius: 0 var(--radius) var(--radius) 0; padding-left: 1.1rem; padding-right: 1.1rem; }

.mast-actions { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.mast-link { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.mast-link:hover { color: var(--pine-600); }
.cart-pill { display: flex; align-items: center; gap: .6rem; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; background: var(--brass); color: #1A1305;
  border-radius: 11px; display: grid; place-items: center; font-size: .7rem; font-family: var(--font-mono);
}
.cart-total { font-family: var(--font-mono); font-size: .8rem; }

.mainnav { background: var(--pine); position: sticky; top: 0; z-index: 60; }
.mainnav .wrap { display: flex; align-items: center; }
.navlist { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.navlist > li { position: relative; }
.navlist a {
  display: block; padding: .95rem 1rem; color: #EDF1EC; text-decoration: none;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
}
.navlist a:hover, .navlist a.is-active { background: var(--pine-600); color: #fff; }
.navlist .has-sub > a::after { content: ' ▾'; color: var(--brass-200); }
.subnav {
  position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); list-style: none; margin: 0; padding: .35rem 0;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .16s;
}
.navlist .has-sub:hover .subnav, .navlist .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { color: var(--ink); padding: .6rem 1rem; }
.subnav a:hover { background: var(--pine-100); color: var(--pine); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: .9rem 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: var(--pine-600); }
.hero-lede { font-size: 1.08rem; color: #38443A; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Signature element: the manifest panel */
.manifest { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.manifest-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--ink); color: #EDF1EC;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.manifest-head span:last-child { color: var(--brass-200); }
.manifest-row {
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 1rem; align-items: center;
  padding: .72rem 1.25rem; border-bottom: 1px solid var(--line-soft); text-decoration: none;
  font-family: var(--font-mono); font-size: .8rem;
}
.manifest-row:last-child { border-bottom: 0; }
.manifest-row:hover { background: var(--pine-100); }
.manifest-row .idx { color: var(--brass); }
.manifest-row .nm { font-family: var(--font-body); font-size: .98rem; }
.manifest-row .ct { color: var(--muted); font-size: .74rem; letter-spacing: .06em; }
.manifest-foot { padding: .9rem 1.25rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #FBFAF6; border-top: 1px solid var(--line); }

/* ---------- Strip of promises ---------- */
.promises { background: var(--ink); color: #DCE3DC; }
.promises .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.promise b { display: block; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-200); margin-bottom: .2rem; }
.promise span { font-size: .88rem; color: #B9C3B9; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.4rem, 5vw, 3.8rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; padding-bottom: .9rem; border-bottom: 2px solid var(--ink); }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: .35rem; }
.section-head a { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--pine); white-space: nowrap; }
.section-head a:hover { color: var(--brass); }

/* ---------- Product grid & card ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; transition: border-color .18s, box-shadow .18s, transform .18s; }
.card:hover { border-color: var(--pine); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--pine-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--sale); color: #fff;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; padding: .2rem .5rem;
}
.card-body { padding: .95rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.card-sku { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.card-title { font-family: var(--font-body); font-size: .96rem; font-weight: 600; line-height: 1.35; margin: 0 0 .55rem; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--pine-600); }
.price { font-family: var(--font-mono); font-size: 1.02rem; color: var(--ink); margin-bottom: .9rem; }
.price del { color: var(--muted); font-size: .82rem; margin-left: .45rem; text-decoration-thickness: 1px; }
.card .btn { margin-top: auto; width: 100%; }

/* ---------- Category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cat-tile { position: relative; display: block; text-decoration: none; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16 / 10; background: var(--pine-100); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile-label { position: absolute; left: 0; bottom: 0; right: 0; padding: 1.1rem 1.25rem; background: linear-gradient(to top, rgba(16,31,26,.88), rgba(16,31,26,0)); color: #fff; }
.cat-tile-label b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.cat-tile-label span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-200); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--pine); color: #fff; }
.newsletter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding-top: 3rem; padding-bottom: 3rem; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #C3D2C9; margin-bottom: 0; }
.newsletter form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 220px; padding: .95rem 1rem; border: 1px solid #2C6353; background: #0F3B31; color: #fff; font-family: var(--font-body); border-radius: var(--radius); }
.newsletter input::placeholder { color: #86A093; }

/* ---------- Page header ---------- */
.pagehead { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2.2rem 0 2rem; }
.crumbs { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.crumbs a { text-decoration: none; color: var(--pine); }
.pagehead h1 { margin-bottom: .2rem; }
.pagehead p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2.5rem; align-items: start; }
.sidebar { position: sticky; top: 76px; }
.sidebar h3 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: .6rem; margin-bottom: .8rem; }
.sidebar ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.sidebar li a { display: flex; justify-content: space-between; gap: .5rem; padding: .42rem 0; text-decoration: none; font-size: .94rem; border-bottom: 1px solid var(--line-soft); }
.sidebar li a:hover { color: var(--pine-600); }
.sidebar li a.is-active { color: var(--brass); font-weight: 700; }
.sidebar li ul { margin: 0 0 0 .9rem; }
.sidebar .count { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.shop-toolbar .result-count { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.shop-toolbar select { padding: .55rem .8rem; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-body); font-size: .88rem; border-radius: var(--radius); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-gallery { border: 1px solid var(--line); background: var(--surface); }
.product-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .5rem; }
.thumb { padding: 0; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.thumb.is-on { border-color: var(--pine); box-shadow: 0 0 0 2px rgba(20,69,58,.15); }
.product-meta { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.product-price { font-family: var(--font-mono); font-size: 1.7rem; margin: .8rem 0 1.2rem; }
.product-price del { font-size: 1rem; color: var(--muted); margin-left: .6rem; }
.qty-row { display: flex; gap: .8rem; align-items: stretch; margin: 1.5rem 0; flex-wrap: wrap; }
.qty { display: flex; border: 1px solid var(--line); background: var(--surface); }
.qty button { width: 42px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--pine); }
.qty input { width: 56px; border: 0; text-align: center; font-family: var(--font-mono); background: none; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.spec-table th { width: 40%; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

/* ---------- Tables (cart) ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.table th, .table td { padding: 1rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.table thead th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: #EDF1EC; font-weight: 400; }
.table tbody tr:last-child td { border-bottom: 0; }
.cart-thumb { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); }
.cart-line { display: flex; gap: 1rem; align-items: center; }
.cart-line b { font-weight: 600; font-size: .96rem; display: block; }
.cart-line small { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); letter-spacing: .08em; }
.link-remove { background: none; border: 0; color: var(--sale); cursor: pointer; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 0; }
.link-remove:hover { text-decoration: underline; }

.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 1.5rem; }
.panel h2, .panel h3 { font-size: 1.15rem; padding-bottom: .8rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.1rem; }
.totals { width: 100%; border-collapse: collapse; font-size: .95rem; }
.totals th, .totals td { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 400; }
.totals td { text-align: right; font-family: var(--font-mono); }
.totals tr:last-child th, .totals tr:last-child td { border-bottom: 0; font-size: 1.15rem; padding-top: 1rem; }
.totals tr:last-child th { font-family: var(--font-display); font-weight: 600; }
.shipping-choice { display: block; font-size: .9rem; padding: .25rem 0; cursor: pointer; }
.shipping-choice input { margin-right: .5rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #47513F; }
.field label .req { color: var(--sale); }
.field input, .field select, .field textarea {
  padding: .8rem .9rem; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-body); font-size: .95rem; border-radius: var(--radius); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(20,69,58,.1); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field.error input, .field.error select { border-color: var(--sale); }
.field .msg { font-size: .78rem; color: var(--sale); display: none; }
.field.error .msg { display: block; }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin: 1rem 0; }
.checkline input { margin-top: .28rem; }

.coupon { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.coupon input { flex: 1; min-width: 180px; padding: .8rem .9rem; border: 1px solid var(--line); font-family: var(--font-body); border-radius: var(--radius); }

.checkout-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: start; }
.pay-method { border: 1px solid var(--line); padding: 1rem; margin-bottom: .7rem; cursor: pointer; display: block; }
.pay-method.is-on { border-color: var(--pine); background: #FAFBF9; }
.pay-method b { display: inline-block; margin-left: .4rem; }
.pay-method p { margin: .6rem 0 0 1.7rem; font-size: .88rem; color: var(--muted); }

.notice { border-left: 3px solid var(--brass); background: #FBF7EC; padding: 1rem 1.2rem; font-size: .92rem; margin-bottom: 1.5rem; }
.notice.ok { border-color: var(--ok); background: #F1F7F3; }
.empty { text-align: center; padding: 4rem 1rem; background: var(--surface); border: 1px solid var(--line); }
.empty h2 { margin-bottom: .6rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-block { border-top: 2px solid var(--ink); padding-top: 1rem; margin-bottom: 1.8rem; }
.contact-block h3 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .6rem; }
.contact-block address { font-style: normal; line-height: 1.75; }
.contact-block a { color: var(--pine-600); }

/* ---------- Prose (policy pages) ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C3B9; padding: 3.2rem 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer a { color: #B9C3B9; text-decoration: none; }
.site-footer a:hover { color: var(--brass-200); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .logo-word b { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.9; font-size: .93rem; }
.footer-about { font-size: .93rem; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid #26362F; margin-top: 2.6rem; padding: 1.2rem 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 300; background: var(--ink); color: #fff;
  padding: .95rem 1.2rem; border-left: 3px solid var(--brass); box-shadow: var(--shadow);
  font-size: .92rem; max-width: 330px; transform: translateY(140%); opacity: 0; transition: .28s ease;
}
.toast.show { transform: none; opacity: 1; }
.toast a { color: var(--brass-200); }

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

@media (max-width: 900px) {
  .masthead .wrap { flex-wrap: wrap; }
  .searchbar { order: 3; max-width: none; width: 100%; }
  .hero-grid, .newsletter .wrap, .product-detail, .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .promises .wrap { grid-template-columns: 1fr 1fr; }
  .cat-tiles { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .navlist { display: none; width: 100%; flex-direction: column; padding-bottom: .6rem; }
  .navlist.open { display: flex; }
  .mainnav .wrap { flex-wrap: wrap; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 1rem; }
  .subnav a { color: #C3D2C9; }
  .navlist .has-sub > a::after { content: ''; }
}

@media (max-width: 680px) {
  .grid-4, .grid-3, .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .promises .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .table td { border: 0; padding: .45rem 1rem; }
  .table td::before { content: attr(data-label); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; }
}

@media (max-width: 420px) {
  .grid-4, .grid-3, .cat-tiles { grid-template-columns: 1fr; }
}

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