/* TM TRADING — wholesale distributor design system
   Layout and components adapted from the goldencountry-b2b build
   deep-green header · warm sand hero · gold accents · red promo ribbons */
:root {
  --paper: #ffffff;
  --card: #ffffff;
  --tile: #f6f2e9;
  --sand: #e9dcc2;
  --sand-2: #f3ecdb;
  --ink: #22301f;
  --ink-2: #16241a;
  --ink-3: #2e4030;
  --muted: #6f7768;
  --hairline: #e6e2d5;
  --line-2: #eeeae0;
  --green: #2c8159;
  --green-dark: #1d5f3f;
  --green-header: #2c7d57;
  --green-soft: #e8f3ec;
  --gold: #cc9a2b;
  --gold-dark: #a97f16;
  --gold-soft: #fbf3dd;
  --red: #d8442f;
  --red-soft: #fdecea;
  --blue-soft: #e8f1fd;
  --blue: #1d5fbf;
  --r-card: 10px;
  --r-btn: 6px;
  --shadow: 0 1px 2px rgba(20, 30, 18, 0.05), 0 8px 24px rgba(20, 30, 18, 0.07);
  --shadow-lg: 0 12px 40px rgba(14, 24, 16, 0.22);
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --w: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); }

/* ---------- buttons ---------- */
.btn {
  border: none; border-radius: var(--r-btn); padding: 10px 18px;
  font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s, color .15s, transform .1s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: .01em;
}
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-gold { background: var(--gold); color: var(--ink-2); font-weight: 700; }
.btn-gold:hover { background: #dba82f; }
.btn-outline-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn-ghost:hover { border-color: var(--green); background: var(--green-soft); }
.btn-ghost-lite { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost-lite:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-secondary { background: var(--card); color: var(--ink); border: 1px solid var(--hairline); }
.btn-secondary:hover { border-color: var(--green); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 14px 22px; font-size: 15px; width: 100%; }
.btn-cta { padding: 13px 26px; font-size: 15px; font-family: var(--font-display); }
.linklike { background: none; border: none; color: inherit; font-size: inherit; padding: 0; text-align: left; }
.icon-btn { background: none; border: none; font-size: 16px; color: var(--muted); padding: 6px 10px; border-radius: 6px; }
.icon-btn:hover { background: var(--tile); color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; }
.header-bar { background: var(--green-header); color: #fff; }
.header-inner {
  max-width: var(--w); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 22px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 46px; width: auto; display: block; background: #fff; border-radius: 8px; padding: 5px 9px; }


.header-search { flex: 1; position: relative; display: flex; align-items: center; max-width: 640px; }
.search-ico { position: absolute; left: 16px; font-size: 15px; opacity: .55; pointer-events: none; }
.search-input {
  width: 100%; padding: 13px 16px 13px 42px; border-radius: 8px;
  border: none; background: #fff; font-size: 15px; outline: none; color: var(--ink);
}
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow-lg);
  z-index: 50; overflow: hidden; max-height: 380px; overflow-y: auto;
}
.search-suggest .suggest-item { padding: 10px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.search-suggest .suggest-item:hover, .search-suggest .suggest-item.active { background: var(--green-soft); }
.search-suggest img { width: 34px; height: 34px; object-fit: contain; background: var(--tile); border-radius: 5px; }
/* The header bar sets white text; the dropdown sits on white, so it has to
   state its own colour rather than inherit. */
.search-suggest { color: var(--ink, #16211b); }
.search-suggest .s-name { font-size: 13px; font-weight: 600; flex: 1; color: var(--ink, #16211b); }
.search-suggest .s-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.search-suggest .s-all { padding: 10px 14px; font-weight: 600; color: var(--green); background: var(--tile); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.header-phone:hover { color: var(--gold-soft); }
.account-box { display: flex; align-items: center; gap: 8px; }
.account-chip {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; cursor: pointer;
  color: #fff; padding: 2px 4px;
}
.account-chip .acc-id { font-size: 11px; opacity: .8; letter-spacing: .08em; }
.account-chip .acc-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.cart-btn {
  position: relative; background: rgba(255,255,255,.14); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 8px; font-size: 20px; display: grid; place-items: center;
}
.cart-btn:hover { background: rgba(255,255,255,.24); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; background: var(--gold); color: var(--ink-2);
  border-radius: 99px; font-size: 11px; font-weight: 800; padding: 2px 7px; min-width: 20px; text-align: center;
}

.main-nav { background: #fff; border-bottom: 1px solid var(--hairline); box-shadow: 0 1px 0 rgba(20,30,18,.03); }
.nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: center; gap: 42px;
}
.main-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink);
  padding: 15px 2px; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.main-nav a:hover { color: var(--green); }
.main-nav a.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%); border-bottom: 1px solid var(--hairline); overflow: hidden; }
.hero-inner {
  max-width: var(--w); margin: 0 auto; padding: 54px 24px 58px;
  display: grid; grid-template-columns: minmax(360px, 5fr) 6fr; gap: 40px; align-items: center;
}
.eyebrow { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 14px; }
.hero-copy h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; color: var(--ink-2); margin-bottom: 16px; }
.hero-copy p { color: #55604c; font-size: 16.5px; max-width: 46ch; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* animated floating product showcase (constellation of circular product frames) */
.hero-showcase { position: relative; align-self: stretch; width: 100%; min-height: 470px; }
.hero-showcase::before { content: ''; position: absolute; left: 50%; top: 48%; width: 62%; height: 62%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(44,129,89,.14), transparent); filter: blur(8px); pointer-events: none; }
.bubble-slot { position: absolute; aspect-ratio: 1; transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px))); transition: transform .4s ease-out; will-change: transform; }
.bubble-float { width: 100%; height: 100%; animation: bob 5.5s ease-in-out infinite; }
.bubble { position: relative; width: 100%; height: 100%; border-radius: 50%; background: #fff; box-shadow: 0 12px 28px rgba(20, 40, 20, .14); border: 1px solid rgba(20,40,20,.04); overflow: hidden; animation: popIn .6s cubic-bezier(.2, .8, .3, 1.2) backwards; transition: transform .25s, box-shadow .25s; cursor: default; }
.bubble:hover { transform: scale(1.07); box-shadow: 0 18px 42px rgba(20, 40, 20, .26); z-index: 6; }
/* explicit % box (replaced elements ignore inset-only sizing) keeps tall shots contained */
.bubble img { position: absolute; top: 16%; left: 16%; width: 68%; height: 68%; object-fit: contain; }
.stat-bubble { background: linear-gradient(150deg, var(--green), var(--green-dark)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12%; }
.stat-bubble .stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2.2vw, 30px); line-height: 1; }
.stat-bubble .stat-label { font-size: clamp(9px, .8vw, 12px); color: rgba(255,255,255,.9); letter-spacing: .02em; margin-top: 4px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bubble-float { animation: none; } .bubble { animation: none; } }

/* ---------- section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 6px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,.75); }

/* ---------- horizontal rails ---------- */
.rail-section { max-width: var(--w); margin: 0 auto; padding: 46px 24px 10px; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.rail-head h2 { font-size: 26px; font-weight: 700; }
.rail-viewall { background: none; border: none; color: var(--green); font-weight: 600; font-size: 14px; }
.rail-viewall:hover { color: var(--green-dark); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.rail .product-card { scroll-snap-align: start; }

/* ---------- product cards ---------- */
.product-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; position: relative; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { aspect-ratio: 1; background: #fff; position: relative; display: block; overflow: hidden; padding: 14px; border-bottom: 1px solid var(--line-2); }
.card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.card-img .img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.img-placeholder { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #cfc9b6; letter-spacing: .02em; text-align: center; padding: 0 14px; line-height: 1.3; }
.ribbon { position: absolute; top: 10px; left: 0; background: var(--red); color: #fff; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px 4px 12px; text-transform: uppercase; border-radius: 0 4px 4px 0; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.stock-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px; letter-spacing: .03em; background: var(--green-soft); color: var(--green-dark); }
.stock-badge.out { background: var(--tile); color: var(--muted); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-sku-top { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.card-name { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.card-brand { display: inline-block; align-self: flex-start; font-family: inherit; background: none; border: none; padding: 0; cursor: pointer; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--green-dark); text-transform: uppercase; text-align: left; transition: color .12s; }
.card-brand:hover { color: var(--green); text-decoration: underline; }
.card-pack { font-size: 12px; color: var(--muted); }
.card-bottom { margin-top: auto; padding-top: 11px; }
.card-cart { display: block; }
.add-btn { background: var(--green); color: #fff; border: none; border-radius: var(--r-btn); padding: 10px 14px; font-weight: 600; font-size: 13px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s; }
.add-btn:hover { background: var(--green-dark); }
.qty-stepper { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--green); border-radius: var(--r-btn); overflow: hidden; background: #fff; width: 100%; }
.qty-stepper button { border: none; background: var(--green-soft); width: 40px; height: 38px; font-size: 17px; font-weight: 700; color: var(--green-dark); flex-shrink: 0; }
.qty-stepper button:hover { background: #d6ecdd; }
.qty-stepper input { flex: 1; border: none; text-align: center; font-weight: 700; font-size: 14px; outline: none; height: 38px; -moz-appearance: textfield; background: transparent; min-width: 0; color: var(--ink); }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- product categories showcase ---------- */
.cat-showcase { background: #fff; }
.cat-showcase-inner { max-width: var(--w); margin: 0 auto; padding: 52px 24px 22px; }
.section-head.left { text-align: left; margin: 0 0 24px; max-width: none; }
.cat-showcase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 18px; }
.cat-show-card { background: none; border: none; font-family: inherit; cursor: pointer; text-align: center; }
.cat-show-media { display: flex; align-items: flex-end; justify-content: center; gap: 5%; padding: 18px 16px 14px; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: var(--cat-tile, #f2f0e8); transition: transform .18s, box-shadow .2s; }
.cat-show-card:hover .cat-show-media { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(20,30,18,.14); }
.cat-prod { flex: 0 1 auto; max-height: 88%; max-width: 30%; width: auto; height: auto; object-fit: contain; object-position: bottom; mix-blend-mode: multiply; display: block; transition: transform .2s; }
.cat-prod:nth-child(1) { max-height: 76%; }
.cat-prod:nth-child(2) { max-height: 92%; }
.cat-prod:nth-child(3) { max-height: 70%; }
.cat-show-card:hover .cat-prod { transform: translateY(-2px); }
.cat-show-label { display: block; margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.cat-show-count { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
@media (max-width: 1000px) { .cat-showcase-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .cat-showcase-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- shop by category tiles (legacy) ---------- */
.range { max-width: var(--w); margin: 0 auto; padding: 46px 24px 20px; }
.range-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.range-tile { text-align: center; background: none; border: none; font-family: inherit; }
.range-img { aspect-ratio: 1; border-radius: var(--r-card); background: #fff; display: block; overflow: hidden; padding: 16px; border: 1px solid var(--hairline); transition: transform .18s, box-shadow .18s; }
.range-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.range-img .img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.range-tile:hover .range-img { transform: translateY(-3px); box-shadow: var(--shadow); }
.range-label { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.range-count { font-size: 11.5px; color: var(--muted); }

/* ---------- promotions / specials ---------- */
.promos { background: var(--green-dark); margin-top: 34px; }
.promos-inner { max-width: var(--w); margin: 0 auto; padding: 52px 24px 44px; }
.promo-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.promo-row .product-card { scroll-snap-align: start; }
.promos-cta { text-align: center; margin-top: 26px; }

/* ---------- brands wall ---------- */
.brands-section { max-width: var(--w); margin: 0 auto; padding: 48px 24px 20px; }
.brand-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px; }
.brand-logo-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 16px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: box-shadow .18s, transform .18s, border-color .18s; cursor: pointer; }
.brand-logo-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--green); }
.brand-logo-img { width: 100%; aspect-ratio: 16 / 11; display: block; overflow: hidden; }
.brand-logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-logo-img .img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 14px; }
.brand-logo-name { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-align: center; color: var(--ink); letter-spacing: .02em; line-height: 1.25; }
.brand-logo-count { font-size: 11.5px; color: var(--muted); }
.brands-all { text-align: center; margin-top: 22px; }

/* ---------- products page (catalog + sidebar) ---------- */
.products-layout { max-width: var(--w); margin: 0 auto; padding: 24px 24px 70px; display: grid; grid-template-columns: 244px 1fr; gap: 26px; align-items: start; }
.cat-sidebar { position: sticky; top: 132px; font-size: 14px; max-height: calc(100vh - 150px); overflow-y: auto; padding-right: 4px; }
.side-group { margin-bottom: 22px; }
.side-group h4 { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.side-group h4 .clear-link { font-size: 11px; font-weight: 600; color: var(--green); text-transform: none; letter-spacing: 0; cursor: pointer; }
.side-link { display: block; padding: 5px 0; color: var(--ink-3); cursor: pointer; }
.side-link:hover { color: var(--green); }
.cat-node > .cat-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; cursor: pointer; }
.cat-node > .cat-row:hover { color: var(--green); }
.cat-row .twist { font-size: 10px; color: var(--muted); transition: transform .15s; }
.cat-node.open > .cat-row .twist { transform: rotate(90deg); }
.cat-children { display: none; padding-left: 12px; border-left: 1px solid var(--hairline); margin-left: 3px; }
.cat-node.open > .cat-children { display: block; }
.cat-children .side-link { font-size: 13px; color: var(--muted); }
.cat-children .side-link.active { color: var(--green); font-weight: 700; }
.filter-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; color: var(--ink-3); }
.filter-check input { accent-color: var(--green); }
.filter-check:hover { color: var(--green); }
.filter-scroll { max-height: 200px; overflow-y: auto; padding-right: 4px; }

.products-main { min-width: 0; }
.products-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.crumbs { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.crumbs .crumb-term { color: var(--green); }
.sort-box { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.filter-select { padding: 8px 10px; border-radius: var(--r-btn); border: 1px solid var(--hairline); background: var(--card); font-size: 13px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.active-chip { background: var(--green-soft); color: var(--green-dark); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.active-chip .x { font-weight: 700; }
.results-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.results-meta strong { color: var(--ink); }
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.load-more-wrap { text-align: center; margin-top: 30px; }
.load-more-wrap .btn { padding: 12px 32px; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); color: #cdd6c8; margin-top: 20px; }
.footer-inner { max-width: var(--w); margin: 0 auto; padding: 44px 24px 30px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.footer-col a:hover, .footer-col .linklike:hover { color: var(--gold); }

.footer-brand p { margin-top: 10px; line-height: 1.6; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 14px; font-size: 12px; color: rgba(255,255,255,.6); }

/* ---------- drawer (cart) ---------- */
.drawer-overlay, .modal-overlay { position: fixed; inset: 0; background: rgba(14, 24, 16, .5); z-index: 50; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--card); z-index: 51; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slideIn .2s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--hairline); }
.drawer-header h2 { font-size: 18px; font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.drawer-footer { border-top: 1px solid var(--hairline); padding: 16px 22px 20px; }
.cart-empty { color: var(--muted); text-align: center; padding: 48px 12px; font-size: 14px; }
.cart-line { display: flex; gap: 10px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.cart-line-meta { font-size: 11.5px; color: var(--muted); margin: 3px 0 7px; }
.cart-line-meta .mono { font-family: var(--font-mono); }
.cart-line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-remove { background: none; border: none; color: var(--muted); font-size: 12px; }
.line-remove:hover { color: var(--red); }
.cart-summary { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.order-note { font-size: 12.5px; color: var(--gold-dark); text-align: center; background: var(--gold-soft); border-radius: var(--r-btn); padding: 9px 12px; margin-bottom: 12px; }

/* ---------- checkout (Sales Quote Review) ---------- */
.checkout-page { max-width: var(--w); margin: 0 auto; padding: 24px 24px 70px; }
.checkout-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.checkout-crumbs a:hover { color: var(--green); }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.checkout-main { min-width: 0; }
.co-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 20px 22px; margin-bottom: 18px; }
.co-card h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.co-card h3 .co-ico { color: var(--green); }
.delivery-toggle { display: flex; gap: 10px; }
.delivery-opt { flex: 1; border: 1.5px solid var(--hairline); border-radius: var(--r-btn); padding: 12px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.delivery-opt.sel { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.delivery-opt input { accent-color: var(--green); }
.address-block { line-height: 1.6; }
.address-block .addr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.change-link { color: var(--green); font-weight: 600; font-size: 13px; cursor: pointer; }
.co-textarea { width: 100%; border: 1.5px solid var(--hairline); border-radius: var(--r-btn); padding: 11px 12px; outline: none; resize: vertical; min-height: 70px; background: var(--tile); }
.co-textarea:focus { border-color: var(--green); background: #fff; }
.callback-btn { background: var(--green-soft); color: var(--green-dark); border: none; border-radius: var(--r-btn); padding: 7px 14px; font-weight: 600; font-size: 13px; }
.co-items-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.co-items-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
.co-items-table td { padding: 10px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.co-items-table .mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.co-items-table .num { text-align: right; }
.co-items-table .co-qty { width: 108px; }
.co-items-table img { width: 40px; height: 40px; object-fit: contain; background: var(--tile); border-radius: 5px; }
.co-line-prod { display: flex; align-items: center; gap: 10px; }
.co-remove { color: var(--muted); background: none; border: none; font-size: 15px; }
.co-remove:hover { color: var(--red); }

.summary-card { position: sticky; top: 132px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.summary-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; padding: 18px 20px 6px; }
.bill-to { padding: 0 20px 14px; border-bottom: 1px solid var(--line-2); }
.bill-to .bt-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.bill-to .bt-body { font-size: 13.5px; line-height: 1.5; }
.summary-stats { padding: 14px 20px; }
.stat-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.stat-line .sl-label { color: var(--muted); }
.stat-line .sl-val { font-weight: 700; font-family: var(--font-display); }
.summary-cta { padding: 4px 20px 20px; }
.place-order-btn { width: 100%; background: var(--green); color: #fff; border: none; border-radius: var(--r-btn); padding: 15px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.place-order-btn:hover { background: var(--green-dark); }
.summary-sub { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.po-btn { width: 100%; margin-top: 12px; background: var(--card); border: 1.5px dashed var(--hairline); border-radius: var(--r-btn); padding: 12px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; }
.po-btn:hover { border-color: var(--green); color: var(--green); }
.po-input { width: 100%; margin-top: 12px; padding: 11px 12px; border: 1.5px solid var(--green); border-radius: var(--r-btn); outline: none; }
.cart-id { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 14px; }
.co-confirm { text-align: center; padding: 60px 20px; max-width: 520px; margin: 0 auto; }
.co-confirm .big { font-size: 52px; }
.co-confirm h2 { font-size: 26px; font-weight: 700; margin: 12px 0 6px; }
.co-confirm .order-no { font-family: var(--font-mono); background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: var(--r-btn); padding: 10px 18px; display: inline-block; margin: 14px 0; font-size: 17px; }
.co-confirm p { color: var(--muted); }

/* ---------- cart page ---------- */
.cart-page { max-width: var(--w); margin: 0 auto; padding: 20px 24px 70px; }
.cart-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.cart-crumbs a:hover { color: var(--green); }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-main { min-width: 0; }
.cart-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.qadd { display: flex; gap: 8px; align-items: center; }
.qadd .qadd-sku { width: 230px; padding: 11px 16px; border: 1px solid var(--hairline); border-radius: 99px; outline: none; }
.qadd .qadd-sku:focus { border-color: var(--green); }
.qadd .qadd-qty { width: 72px; padding: 11px 10px; border: 1px solid var(--hairline); border-radius: 99px; text-align: center; outline: none; -moz-appearance: textfield; }
.qadd .btn { border-radius: 99px; white-space: nowrap; }
.cart-search { position: relative; flex: 1; min-width: 180px; }
.cart-search input { width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--hairline); border-radius: 99px; outline: none; }
.cart-search input:focus { border-color: var(--green); }
.cart-search .si { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.cart-viewopts { display: flex; gap: 10px; }
.cart-pillbtn { border: 1px solid var(--hairline); background: #fff; border-radius: 99px; padding: 10px 16px; font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 8px; align-items: center; color: var(--ink); }
.cart-pillbtn:hover { border-color: var(--green); color: var(--green); }
.cart-cols { display: grid; grid-template-columns: 34px 1fr 132px 70px 76px 84px 34px; gap: 8px; align-items: center; }
.cart-table-head { padding: 10px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--hairline); }
.cart-table-head .c-center { text-align: center; }
.cart-group-head { display: flex; align-items: center; gap: 8px; background: var(--gold-soft); border-radius: 8px; padding: 12px 15px; margin: 14px 0 2px; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.cart-group-head .gtwist { margin-left: auto; transition: transform .15s; font-size: 11px; color: var(--muted); }
.cart-group.collapsed .gtwist { transform: rotate(-90deg); }
.cart-row { padding: 13px 14px; border-bottom: 1px solid var(--line-2); }
.cart-row .cr-prod { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cart-row .cr-prod img { width: 54px; height: 54px; object-fit: contain; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; flex-shrink: 0; }
.cr-item { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.cr-name { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.cr-pack { font-size: 12px; color: var(--muted); }
.cr-uom, .cr-price, .cr-ext { font-size: 13px; text-align: center; }
.cr-tbd { color: var(--muted); font-weight: 700; letter-spacing: .03em; }
.cr-check { accent-color: var(--green); }
.stepper-pill { display: inline-flex; align-items: center; background: #fff; border-radius: 99px; box-shadow: 0 2px 10px rgba(20, 30, 18, .13); padding: 3px; }
.stepper-pill button { width: 32px; height: 32px; border: none; background: none; border-radius: 50%; font-size: 18px; font-weight: 700; color: var(--green-dark); }
.stepper-pill button:hover { background: var(--green-soft); }
.stepper-pill input { width: 42px; border: none; text-align: center; font-weight: 700; font-size: 14px; outline: none; -moz-appearance: textfield; background: transparent; }
.stepper-pill input::-webkit-outer-spin-button, .stepper-pill input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cr-trash { background: none; border: none; color: var(--muted); font-size: 15px; }
.cr-trash:hover { color: var(--red); }
.pallet-nudge { font-size: 13px; color: var(--gold-dark); background: var(--gold-soft); border-radius: 8px; padding: 11px 13px; margin: 12px 0 4px; line-height: 1.45; }
.cart-side .summary-card { position: sticky; top: 132px; }
@media (max-width: 1000px) { .cart-layout { grid-template-columns: 1fr; } .cart-side .summary-card { position: static; } }
@media (max-width: 720px) {
  .cart-cols { grid-template-columns: 30px 1fr 116px 40px; }
  .cart-table-head .c-uom, .cart-table-head .c-price, .cart-table-head .c-ext, .cart-row .cr-uom, .cart-row .cr-price, .cart-row .cr-ext { display: none; }
}

/* ---------- content pages ---------- */
.content-page { max-width: 820px; margin: 0 auto; padding: 48px 24px 70px; }
.back-link { color: var(--green); font-weight: 600; font-size: 13.5px; display: inline-block; margin-bottom: 18px; }
.back-link:hover { color: var(--green-dark); }
.content-page h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.015em; margin-bottom: 18px; }
.content-body { font-size: 15.5px; line-height: 1.7; color: #3a4034; }
.content-body .lead { font-size: 18px; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.content-body p { margin-bottom: 14px; }
.content-body h3 { font-size: 19px; font-weight: 700; margin: 26px 0 10px; }
.content-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.content-body ul { margin: 0 0 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.content-body a { color: var(--green); font-weight: 600; }
.content-body a.btn { color: #fff; display: inline-flex; margin-top: 8px; }
.content-body .muted { color: var(--muted); font-size: 13px; font-style: italic; margin-top: 22px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 22px 0; }
.contact-block { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 16px 18px; }
.contact-block p { margin: 0; }
.map-wrap { margin-top: 20px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }
.footer-map { margin-top: 12px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.footer-map iframe { display: block; width: 100%; height: 130px; border: 0; filter: grayscale(.2); }

/* purchase history */
.history-page { max-width: var(--w); margin: 0 auto; padding: 40px 24px 70px; }
.history-page h1 { font-size: 30px; font-weight: 700; margin-bottom: 18px; }
.history-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; font-size: 14px; }
.history-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.history-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.history-table .mono { font-family: var(--font-mono); font-size: 12px; }
.hist-reorder { background: var(--green-soft); color: var(--green-dark); border: none; border-radius: 5px; padding: 6px 12px; font-weight: 600; font-size: 12.5px; }
.hist-reorder:hover { background: #d6ecdd; }

/* ---------- quick order + account modals ---------- */
.modal { position: fixed; top: 8vh; left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); background: var(--card); border-radius: 14px; z-index: 52; box-shadow: var(--shadow-lg); padding: 22px; max-height: 82vh; display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-header h2 { font-weight: 700; font-size: 19px; }
.modal-hint { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.quick-row { display: flex; gap: 8px; }
.quick-input { flex: 1; padding: 11px 12px; border: 1.5px solid var(--hairline); border-radius: var(--r-btn); outline: none; }
.quick-input:focus { border-color: var(--green); }
.quick-qty { width: 64px; padding: 11px 8px; border: 1.5px solid var(--hairline); border-radius: var(--r-btn); text-align: center; outline: none; }
.quick-suggest { margin-top: 6px; border: 1px solid var(--hairline); border-radius: var(--r-btn); overflow: hidden; display: none; max-height: 220px; overflow-y: auto; }
.quick-suggest.open { display: block; }
.suggest-item { padding: 10px 12px; font-size: 13px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.suggest-item:hover, .suggest-item.active { background: var(--green-soft); }
.suggest-item .mono { font-family: var(--font-mono); color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.quick-added { margin-top: 10px; overflow-y: auto; }
.quick-added-line { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 2px; border-bottom: 1px dashed var(--line-2); }
.quick-added-line .ok { color: var(--green); font-weight: 600; }

.account-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.form-field label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; }
.form-field input, .form-field textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--hairline); border-radius: var(--r-btn); outline: none; background: var(--tile); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--green); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-error { color: var(--red); font-size: 13px; }
.form-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-switch button { background: none; border: none; color: var(--green); font-weight: 600; cursor: pointer; }
.account-perk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.account-perk .pk { color: var(--green); font-weight: 700; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink-2); color: #fff; padding: 12px 20px; border-radius: 99px; font-size: 14px; font-weight: 500; z-index: 60; box-shadow: var(--shadow-lg); animation: toastIn .18s ease; }
@keyframes toastIn { from { transform: translate(-50%, 8px); opacity: 0; } }

/* ---------- admin (kept from before) ---------- */
.admin-shell { max-width: 1180px; margin: 0 auto; padding: 0 24px 60px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hairline); margin-bottom: 20px; flex-wrap: wrap; }
.admin-nav { display: flex; gap: 6px; }
.admin-tab { border: none; background: none; padding: 9px 16px; border-radius: var(--r-btn); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--muted); }
.admin-tab.active { background: var(--green); color: #fff; }
.logo-img { }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-tile { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 15px 17px; }
.stat-tile .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-tile .value { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-top: 2px; }
.login-card { max-width: 380px; margin: 10vh auto; background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.checkout-form { display: flex; flex-direction: column; gap: 11px; }
.order-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); margin-bottom: 12px; overflow: hidden; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 17px; cursor: pointer; flex-wrap: wrap; }
.order-head:hover { background: var(--tile); }
.order-id { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.order-biz { font-weight: 700; }
.order-meta { color: var(--muted); font-size: 12.5px; }
.status-pill { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.status-new { background: var(--gold-soft); color: var(--gold-dark); }
.status-confirmed { background: var(--blue-soft); color: var(--blue); }
.status-fulfilled { background: var(--green-soft); color: var(--green-dark); }
.status-archived { background: var(--tile); color: var(--muted); }
.order-detail { border-top: 1px solid var(--hairline); padding: 15px 17px; background: var(--tile); }
.order-items-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0; background: var(--card); border-radius: 8px; overflow: hidden; }
.order-items-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 9px 11px; border-bottom: 1px solid var(--hairline); }
.order-items-table td { padding: 9px 11px; border-bottom: 1px solid var(--line-2); }
.order-items-table .mono { font-family: var(--font-mono); font-size: 11.5px; }
.order-items-table .num { text-align: right; }
.order-items-table tfoot td { border-top: 2px solid var(--hairline); border-bottom: none; padding-top: 11px; }
.order-items-table .price-input { width: 92px; }
.price-hint { background: var(--gold-soft); border-radius: var(--r-btn); padding: 8px 11px; margin: 4px 0 10px; color: var(--gold-dark); font-weight: 500; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.admin-toolbar input[type="search"] { flex: 1; min-width: 200px; padding: 11px 13px; border: 1.5px solid var(--hairline); border-radius: var(--r-btn); outline: none; background: var(--card); }
.admin-toolbar input[type="search"]:focus { border-color: var(--green); }
.products-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--card); }
.products-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--hairline); background: var(--card); position: sticky; top: 0; z-index: 1; }
.products-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.products-table .mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.products-table img { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; background: var(--tile); }
.price-input { width: 84px; padding: 6px 8px; border: 1px solid var(--hairline); border-radius: 5px; text-align: right; font-weight: 600; outline: none; }
.price-input:focus { border-color: var(--green); }
.price-input.dirty { border-color: var(--gold); background: var(--gold-soft); }
.mini-toggle { cursor: pointer; }
.table-wrap { max-height: 68vh; overflow: auto; border-radius: var(--r-card); border: 1px solid var(--hairline); }
.admin-empty { color: var(--muted); text-align: center; padding: 40px; }
.refresh-note { font-size: 12px; color: var(--muted); }
.form-field { }
.role-chip { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-dark); }
.role-chip.super { background: var(--green); color: #fff; }
.cust-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cust-card .cc-main { flex: 1; min-width: 200px; }
.cust-card .cc-biz { font-weight: 700; }
.cust-card .cc-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cust-card .cc-meta .mono { font-family: var(--font-mono); }
.cust-card .cc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-pending { background: var(--gold-soft); color: var(--gold-dark); }
.status-approved { background: var(--green-soft); color: var(--green-dark); }
.status-rejected { background: var(--red-soft); color: var(--red); }
.temp-cred { background: var(--green-soft); border: 1px dashed var(--green); border-radius: 8px; padding: 12px 14px; margin-top: 12px; font-size: 13.5px; }
.temp-cred .mono { font-family: var(--font-mono); font-weight: 700; }
.staff-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 13px 16px; margin-bottom: 9px; display: flex; align-items: center; gap: 12px; }
.staff-card .st-email { font-weight: 600; }
.staff-card .st-meta { font-size: 12px; color: var(--muted); }
.admin-modal-form { display: flex; flex-direction: column; gap: 11px; margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .products-layout { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; }
  .hero-collage { grid-auto-rows: 96px; }
  .main-nav .nav-inner { gap: 22px; overflow-x: auto; justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-phone { display: none; }
  .account-box .btn { padding: 8px 12px; font-size: 13px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .admin-toolbar, .order-actions, .admin-nav, .stat-tiles { display: none !important; }
}

/* ---------- TM TRADING wordmark ----------
   The Golden Country build used a logo image; this one is typographic. */
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #0f2a1c;
  border: 2px solid #a8c62f;
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .02em;
  flex: none;
}
.logo-text b {
  display: block;
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: #0f2a1c;
  line-height: 1.1;
}
.logo-text span {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6b7a71;
}
.footer-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.footer-logo b { font-family: Poppins, system-ui, sans-serif; font-weight: 800; letter-spacing: .04em; color: #fff; }

/* ---------- product detail page ---------- */
.card-img[data-detail], .card-name[data-detail] { cursor: pointer; }
.card-name[data-detail]:hover { color: var(--green-dark); text-decoration: underline; }
.card-photo-count {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(34, 48, 31, .72); color: #fff;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
  pointer-events: none;
}
.pdp { max-width: var(--w); margin: 0 auto; padding: 22px 20px 60px; }
.pdp-crumbs { margin-bottom: 14px; font-size: 13.5px; }
.pdp-crumbs a { color: var(--green); font-weight: 600; text-decoration: none; }
.pdp-crumbs a:hover { text-decoration: underline; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: start; }
.pdp-main {
  aspect-ratio: 1; background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 24px; display: grid; place-items: center;
}
.pdp-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-main .img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb {
  width: 68px; height: 68px; padding: 6px; background: #fff; cursor: pointer;
  border: 1px solid var(--hairline); border-radius: 8px;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-thumb:hover { border-color: var(--green); }
.pdp-thumb.active { border: 2px solid var(--green); padding: 5px; }
.pdp-sku { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.pdp-name { font-family: var(--font-display); font-size: 26px; line-height: 1.2; margin: 4px 0 8px; }
.pdp-cart { display: flex; align-items: center; gap: 14px; margin: 16px 0 20px; flex-wrap: wrap; }
.pdp-cart .add-btn { font-size: 14px; padding: 10px 18px; }
.pdp-cart-note { font-size: 12.5px; color: var(--muted); }
.pdp-facts { border-collapse: collapse; width: 100%; max-width: 460px; margin-bottom: 18px; }
.pdp-facts th, .pdp-facts td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; vertical-align: top; }
.pdp-facts th { color: var(--muted); font-weight: 500; padding-right: 18px; white-space: nowrap; width: 1%; }
.pdp-mono { font-family: var(--font-mono); font-size: 12.5px; }
.pdp-flag { background: var(--gold-soft); color: var(--gold-dark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.pdp-section h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 14px 0 4px; }
.pdp-section p { font-size: 13.5px; color: var(--ink); max-width: 560px; }
@media (max-width: 760px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 20px; }
  .pdp-name { font-size: 21px; }
}
