/* =========================================================
   Anatolia Agro — Tractor & Farm Machinery Theme
   Edit the tokens below (or use Appearance → Customize → Brand colours).
   ========================================================= */
:root {
  /* Palette (from the approved design) */
  --green-900: #0e2b1e;
  --green-800: #143d2b;          /* primary: deep forest green */
  --green-700: #1e5a3f;
  --green-600: #2a6b4c;
  --green-100: #e8f1ec;          /* primary light */
  --gold-500: #d98a1a;           /* accent: harvest gold */
  --gold-600: #b87212;
  --gold-100: #fef6e7;
  --red-600: #b91c1c;
  --ink-900: #181c19;            /* text */
  --ink-700: #2f3631;
  --ink-500: #4e5650;            /* muted text (7:1) */
  --ink-300: #9da498;            /* strong border */
  --line: #d2d6ce;               /* border */
  --surface-alt: #eaece8;
  --bg: #f4f5f3;
  --surface: #ffffff;
  --success: #1b7a43; --success-bg: #e5f5ec;
  --info: #1d4ed8; --info-bg: #dbeafe;
  --error-bg: #fee2e2;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --shadow-sm: 0 1px 3px rgba(20, 61, 43, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 10px 25px -5px rgba(20, 61, 43, .14), 0 4px 10px -2px rgba(0, 0, 0, .06);
  --focus-ring: 0 0 0 3px rgba(217, 138, 26, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1380px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.375rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-500); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; transition: .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--gold-500); color: var(--green-900); }
.btn-primary:hover { background: var(--gold-600); color: var(--green-900); }
.btn-dark { background: var(--green-800); color: #fff; }
.btn-dark:hover { background: var(--green-700); color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink-300); color: var(--ink-900); }
.btn-outline:hover { border-color: var(--green-700); color: var(--green-700); }
.btn-ghost-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--green-900); color: #cfe0d4; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.topbar select {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px; padding: 3px 6px; font-size: 12px;
}
.topbar select option { color: var(--ink-900); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--green-900); font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: .5px; }
.logo:hover { color: var(--green-900); }
.logo-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--green-800); display: grid; place-items: center; }
.logo small { display: block; font: 500 11px/1 var(--font); letter-spacing: 1.5px; color: var(--ink-500); text-transform: uppercase; margin-top: 3px; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { color: var(--ink-700); font-weight: 600; padding: 8px 12px; border-radius: 6px; }
.main-nav a:hover, .main-nav a.active { color: var(--green-800); background: var(--green-100); }
.header-search { flex: 1; display: flex; max-width: 380px; margin-left: auto; }
.header-search input {
  flex: 1; border: 1px solid var(--ink-300); border-right: 0; border-radius: 6px 0 0 6px;
  padding: 10px 12px; font: inherit; min-width: 0;
}
.header-search input:focus { outline: 2px solid var(--gold-500); outline-offset: -1px; }
.header-search button { border-radius: 0 6px 6px 0; padding: 0 14px; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-900);
}
.icon-btn:hover { border-color: var(--green-700); color: var(--green-700); }
.badge-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red-600); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.menu-toggle { display: none; }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; gap: 12px; align-items: center; padding: 20px 16px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item .ti-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { font-size: 12.5px; color: var(--ink-500); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink-500); max-width: 560px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px;
  text-align: center; color: var(--ink-900); transition: .15s ease;
}
.cat-tile:hover { border-color: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink-900); }
.cat-tile .cat-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--gold-100); display: grid; place-items: center; color: var(--green-800); }
.cat-tile strong { display: block; font-size: 14px; }
.cat-tile span { font-size: 12px; color: var(--ink-500); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .15s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--ink-300); }
.pc-media { position: relative; aspect-ratio: 4/3; background: #eef2ef; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 4px 8px; border-radius: 4px; background: var(--surface); color: var(--ink-900); }
.tag-new { background: var(--green-700); color: #fff; }
.tag-used { background: var(--gold-500); color: var(--green-900); }
.tag-ce { background: #1d3f8f; color: #fff; }
.tag-sale { background: var(--red-600); color: #fff; }
.pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-500); }
.pc-title { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.pc-title:hover { color: var(--green-700); }
.pc-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-specs span { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; color: var(--ink-700); }
.pc-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.price { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--green-800); line-height: 1; }
.price small { display: block; font: 500 11px/1.4 var(--font); color: var(--ink-500); }
.price-old { font-size: 13px; color: var(--ink-500); text-decoration: line-through; font-family: var(--font); }
.stock { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-in { color: #1e8a4c; } .stock-order { color: var(--gold-600); } .stock-out { color: var(--red-600); }

/* ---------- Banner / why us ---------- */
.ship-banner { background: var(--green-800); color: #fff; border-radius: 14px; padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.ship-banner p { color: #cfe0d4; }
.ship-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; list-style: none; padding: 0; margin: 0; }
.ship-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.ship-list li span.flag { font-size: 20px; }
.ship-list li em { margin-left: auto; font-style: normal; color: var(--gold-500); font-weight: 600; font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--gold-500); line-height: 1; display: block; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--ink-500); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #b9cfc0; padding: 56px 0 0; font-size: 14px; }
.site-footer a { color: #dfeae3; }
.site-footer a:hover { color: var(--gold-500); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span { border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 700; color: #fff; }
.newsletter { display: flex; margin-top: 10px; }
.newsletter input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; border-radius: 6px 0 0 6px; font: inherit; }
.newsletter button { border-radius: 0 6px 6px 0; }

/* ---------- Breadcrumb / page head ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 26px 0; }
.page-head h1 { font-size: 2.2rem; margin: 6px 0 0; }
.breadcrumb { font-size: 13px; color: var(--ink-500); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--green-700); }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding: 28px 0 64px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 90px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-700); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; }
.check input { accent-color: var(--green-700); width: 16px; height: 16px; }
.check .count { margin-left: auto; font-size: 12px; color: var(--ink-500); }
.range-row { display: flex; gap: 8px; }
.range-row input { width: 100%; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-toolbar select { padding: 9px 10px; border: 1px solid var(--ink-300); border-radius: 6px; font: inherit; background: var(--surface); }
.filter-toggle { display: none; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--ink-300); border-radius: var(--radius); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--ink-700); }
.field .hint { font-size: 12px; color: var(--ink-500); }
.req { color: var(--red-600); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--ink-300); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface); color: var(--ink-900);
}
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-500); outline-offset: -1px; border-color: var(--gold-500); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red-600); }
.field .error { display: none; font-size: 12px; color: var(--red-600); }
.field.invalid .error { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.span-2 { grid-column: span 2; }
.input-group { display: flex; }
.input-group input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon { padding: 0 12px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--ink-300); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13px; color: var(--ink-500); }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; padding: 28px 0 40px; align-items: start; }
.gallery-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--surface); }
.thumbs button.active { border-color: var(--gold-500); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 2.3rem; margin-bottom: 6px; }
.pd-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-500); margin-bottom: 16px; }
.pd-price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.pd-price-box .price { font-size: 36px; }
.vat-note { font-size: 12.5px; color: var(--ink-500); margin-top: 6px; }
.qty { display: inline-flex; border: 1px solid var(--ink-300); border-radius: 6px; overflow: hidden; }
.qty button { width: 38px; border: 0; background: var(--bg); cursor: pointer; font-size: 18px; }
.qty input { width: 52px; text-align: center; border: 0; font: inherit; }
.buy-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 150px; }
.key-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.key-spec { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.key-spec span { display: block; font-size: 11.5px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .5px; }
.key-spec strong { font-size: 16px; }
.ship-estimator { background: var(--green-100); border: 1px solid #cfe1d5; border-radius: var(--radius); padding: 16px 18px; }
.ship-estimator h4 { font-family: var(--font); font-size: 14px; margin-bottom: 10px; }
.ship-result { margin-top: 10px; font-size: 14px; display: grid; gap: 4px; }
.ship-result b { color: var(--green-800); }
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 16px; font: 600 14px var(--font); color: var(--ink-500); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--green-800); border-bottom-color: var(--gold-500); }
.tab-panel { display: none; padding: 24px 0; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table th { width: 40%; background: var(--bg); font-weight: 600; color: var(--ink-700); }
.spec-table tr.group th { background: var(--green-800); color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.doc-list li a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink-900); }

/* ---------- Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: .2s; z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); z-index: 100; transform: translateX(100%); transition: .25s ease; display: flex; flex-direction: column; }
body.cart-open .drawer { transform: none; }
body.cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.cart-line .t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.cart-line .s { font-size: 12px; color: var(--ink-500); }
.link-btn { background: none; border: 0; color: var(--red-600); cursor: pointer; font-size: 12px; padding: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 120%); background: var(--green-900); color: #fff; padding: 12px 18px; border-radius: 8px; box-shadow: var(--shadow-md); z-index: 200; transition: .25s ease; font-size: 14px; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Admin ---------- */
.admin-body { background: #eef1ee; }
.admin-header { background: var(--green-900); color: #fff; }
.admin-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.admin-header .logo { color: #fff; font-size: 20px; }
.admin-header a { color: #cfe0d4; font-size: 14px; }
.admin-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 24px 0 120px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-head h3 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.panel-head h3 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; font: 700 13px var(--font); }
.panel-body { padding: 20px; display: grid; gap: 14px; }
.mode-switch { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.mode-switch button { border: 0; background: none; padding: 8px 16px; border-radius: 6px; font: 600 14px var(--font); cursor: pointer; color: var(--ink-500); }
.mode-switch button.active { background: var(--green-800); color: #fff; }
body.mode-quick .adv-only { display: none !important; }
.dropzone { border: 2px dashed var(--ink-300); border-radius: var(--radius); padding: 30px 20px; text-align: center; background: var(--bg); cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--green-600); background: var(--green-100); }
.dropzone strong { display: block; margin: 8px 0 4px; }
.img-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.img-prev { position: relative; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); aspect-ratio: 4/3; background: var(--bg); cursor: grab; }
.img-prev.cover { border-color: var(--gold-500); }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-prev .cover-label { position: absolute; left: 6px; bottom: 6px; background: var(--gold-500); color: var(--green-900); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; }
.img-prev .img-actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.img-prev .img-actions button { width: 24px; height: 24px; border-radius: 4px; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; }
.spec-rows { display: grid; gap: 8px; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr 110px 36px; gap: 8px; }
.spec-row button { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; cursor: pointer; color: var(--red-600); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--ink-300); border-radius: 20px; font-size: 13px; cursor: pointer; user-select: none; background: var(--surface); }
.chip input { display: none; }
.chip:has(input:checked) { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.preview-card { position: sticky; top: 20px; }
.preview-card .panel-body { padding: 14px; }
.completeness { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.completeness div { height: 100%; background: var(--gold-500); transition: .3s; }
.checklist { list-style: none; padding: 0; margin: 0; font-size: 13px; display: grid; gap: 5px; }
.checklist li::before { content: "○"; margin-right: 8px; color: var(--ink-300); }
.checklist li.ok::before { content: "✓"; color: #1e8a4c; font-weight: 700; }
.save-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 0; z-index: 40; box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
.save-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.listing-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.listing-table th, .listing-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.listing-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-500); }
.listing-table img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; }
.table-wrap { overflow-x: auto; }
.lang-tabs { display: flex; gap: 6px; }
.lang-tabs button { border: 1px solid var(--line); background: var(--surface); padding: 5px 10px; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 700; }
.lang-tabs button.active { background: var(--gold-500); border-color: var(--gold-500); }
.lang-pane { display: none; gap: 14px; }
.lang-pane.active { display: grid; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .preview-card { position: static; }
}
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 10px 20px 16px; border-bottom: 1px solid var(--line); margin: 0; }
  body.nav-open .main-nav { display: flex; }
  .menu-toggle { display: grid; }
  .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .trust .container { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ship-banner { grid-template-columns: 1fr; padding: 28px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  body.filters-open .filters { display: block; }
  .filter-toggle { display: inline-flex; }
  .pd-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .topbar-left span:not(:first-child) { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .trust .container, .footer-grid, .steps, .grid-2, .grid-3, .grid-4, .ship-list { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .span-2 { grid-column: auto; }
  .key-specs { grid-template-columns: 1fr 1fr; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .spec-row select { grid-column: 1; } .spec-row button { grid-column: 2; height: 38px; }
  .logo small { display: none; }
  .section { padding: 44px 0; }
}

/* ---------- WordPress additions ---------- */
.eyebrow-dark { color: var(--gold-600); }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a { display: block; }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--green-800); background: var(--green-100); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-md); padding: 6px; flex-direction: column; z-index: 60; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.custom-logo { max-height: 56px; width: auto; }
.logo .custom-logo-link { display: block; }
.home-quote { margin-top: 14px; font-size: 16px; }
.home-quote strong { color: var(--gold-500); font-size: 20px; }
.cat-icon img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.entry-content { max-width: 1240px; }
article.entry-content:not(.page) { max-width: 820px; }
.entry-content img { height: auto; border-radius: var(--radius-sm); }
.entry-thumb { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.nav-links { display: flex; gap: 6px; margin-top: 24px; }
.nav-links .page-numbers { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; background: var(--surface); }
.nav-links .current { background: var(--green-800); color: #fff; }
.alignwide { max-width: var(--max); } .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 8px 12px; background: var(--gold-500); color: var(--green-900); z-index: 300; }
@media (max-width: 900px) {
  .main-nav ul { flex-direction: column; }
  .main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 12px; }
}
.site-footer .widget { margin-bottom: 20px; }
.site-footer .widget h2, .site-footer .widget .wp-block-heading { font-family: var(--font-head); color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.filters .widget h2, .filters .widget .wp-block-heading { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-700); margin-bottom: 10px; }
.key-spec strong { display: block; }

/* ---------- Quote request form ---------- */
.aa-quote-form { max-width: 920px; margin-top: 24px; }
.aa-quote-form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.aa-quote-form legend { float: left; width: 100%; padding: 0; }
.aa-quote-form legend + * { clear: both; }
.aa-quote-form .check { align-items: flex-start; }
.aa-quote-form .check input { margin-top: 3px; flex: none; }
.aa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aa-quote-alert { background: #fdecee; border: 1px solid #f3c2c9; color: #8c0b20; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; }
.aa-quote-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.aa-quote-submit .btn { padding: 14px 28px; font-size: 15px; }
.aa-quote-done { background: var(--green-100); border: 1px solid #cfe1d5; border-radius: var(--radius); padding: 28px; max-width: 920px; }
.aa-quote-done .btn { margin: 4px 8px 4px 0; }
.woocommerce .aa-cart-quote { display: block; text-align: center; margin-top: 10px; background: var(--surface); color: var(--green-800); border: 1px solid var(--ink-300); }

.aa-quote-form .check { display: flex; gap: 10px; font-size: 14px; }
.aa-quote-form .check input[type=checkbox] { width: 18px; height: 18px; padding: 0; }
.aa-quote-form .check > span { flex: 1; }
/* Header: keep logo and menu on one line */
.site-header .logo { flex: none; white-space: nowrap; }
.main-nav a { white-space: nowrap; padding: 8px 10px; }
.header-search { flex: 1 1 220px; min-width: 0; }
@media (max-width: 1240px) and (min-width: 901px) { .header-search { display: none; } .header-actions { margin-left: auto; } }

/* =========================================================
   Showroom design layer (approved design)
   ========================================================= */
.container { padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .container { padding-left: 24px; padding-right: 24px; } }
.page-section { padding-top: 24px; padding-bottom: 48px; } /* keep the container's side margins */
.mono, .price, .hero-stats strong { font-family: var(--font-mono); }

/* Buttons */
.btn { min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); border-width: 1.5px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-500); color: #141815; font-weight: 700; }
.btn-primary:hover { background: var(--gold-600); color: #141815; }
.btn-dark, .btn-forest { background: var(--green-800); color: #fff; }
.btn-dark:hover, .btn-forest:hover { background: var(--green-900); color: #fff; }
.btn-secondary, .btn-outline { background: var(--surface); color: var(--green-800); border-color: var(--ink-300); }
.btn-secondary:hover, .btn-outline:hover { background: var(--green-100); border-color: var(--green-800); color: var(--green-800); }
.btn-secondary.in-compare { background: var(--green-100); border-color: var(--green-800); }
.btn-ghost { background: transparent; color: var(--ink-500); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-alt); color: var(--ink-900); }
.btn-whatsapp { background: #1f7a4c; color: #fff; }
.btn-whatsapp:hover { background: #165b38; color: #fff; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 12.5px; }
.btn-lg { min-height: 50px; font-size: 15px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.badge-new { background: var(--green-800); color: #fff; }
.badge-used { background: #334155; color: #fff; }
.badge-refurb { background: var(--info-bg); color: var(--info); }
.badge-sale { background: var(--gold-500); color: #141815; }
.badge-ce { background: var(--success-bg); color: var(--success); border: 1px solid #a7f3d0; }
.badge-sold { background: var(--error-bg); color: var(--red-600); }
.badge-stock { background: var(--success-bg); color: var(--success); }

/* Chips & form controls */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: 13px; font-weight: 600; border: 1px solid #b7d4c4; }
.chip:hover { background: #d4e6dc; color: var(--green-800); }
.input, .select, .field input, .field select, .field textarea { min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.input:focus, .select:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-800); box-shadow: var(--focus-ring); }
.select { width: 100%; padding: 8px 12px; background: var(--surface); color: var(--ink-900); font: inherit; font-size: 14px; }

/* Top bar */
.topbar { background: var(--green-900); color: #d6e3dc; font-size: 12px; }
.topbar .container { min-height: 34px; }
.topbar-right a { color: #fff; }

/* Header: forest green with gold underline */
.site-header { background: var(--green-800); border-bottom: 3px solid var(--gold-500); color: #fff; }
.site-header .container.header-inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.site-header .logo { color: #fff; font-size: 18px; letter-spacing: .03em; gap: 12px; }
.site-header .logo:hover { color: #fff; }
.site-header .logo-mark { background: var(--gold-500); border-radius: var(--radius-sm); }
.site-header .logo-mark svg { stroke: var(--green-900); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 800; }
.site-header .logo small { color: #b7d4c4; font-size: 10.5px; letter-spacing: .08em; margin-top: 3px; }
.site-header .main-nav { margin-left: 4px; }
.site-header .main-nav a { color: #fff; font-weight: 600; font-size: 14px; }
.site-header .main-nav a:hover, .site-header .main-nav .current-menu-item > a { background: rgba(255,255,255,.1); color: #fff; }
.site-header .main-nav .sub-menu a { color: var(--ink-900); }
.site-header .main-nav .sub-menu a:hover { background: var(--green-100); color: var(--green-800); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-header .icon-btn { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.site-header .icon-btn:hover { border-color: var(--gold-500); color: var(--gold-500); }
.compare-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border-radius: var(--radius-xs); background: var(--gold-500); color: #141815; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.compare-pill:hover { color: #141815; background: #e8a23f; }
.compare-pill[hidden] { display: none; }
.header-cta { white-space: nowrap; }
@media (max-width: 1240px) { .header-cta { display: none; } }
@media (max-width: 900px) {
  .site-header .main-nav { background: var(--green-800); border-bottom: 3px solid var(--gold-500); padding: 8px 16px 16px; }
  .site-header .main-nav .sub-menu a { color: #fff; }
  .compare-pill { padding: 4px 8px; }
}
@media (max-width: 560px) { .site-header .icon-btn[aria-label] { width: 38px; height: 38px; } .site-header .logo { font-size: 15px; } }

/* Hero & sections use the same tokens */
.hero-stats strong { font-weight: 700; }
.eyebrow-dark { color: var(--gold-600); }
.step::before { font-family: var(--font-mono); }
.site-footer { background: var(--green-900); }
.ship-banner { background: var(--green-800); }
.trust-item .ti-icon { background: var(--green-100); color: var(--green-800); }

/* =========================================================
   Homepage banner (photo / slider) — v1.2
   ========================================================= */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--green-800); isolation: isolate; }
.hero--compact { --hero-h: 380px; }
.hero--medium  { --hero-h: 520px; }
.hero--large   { --hero-h: 640px; }
.hero--full    { --hero-h: min(86vh, 860px); }
.hero-slides { position: relative; min-height: var(--hero-h, 520px); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.hero-slide.is-active { position: relative; min-height: var(--hero-h, 520px); opacity: 1; visibility: visible; transition: opacity .7s ease; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 24, 16, calc(var(--overlay, .55) + .15)) 0%, rgba(10, 24, 16, var(--overlay, .55)) 55%, rgba(10, 24, 16, calc(var(--overlay, .55) * .6)) 100%); }
.hero--center .hero-slide::after { background: rgba(10, 24, 16, var(--overlay, .55)); }
.hero--plain .hero-slide::after { display: none; }
.hero-content { padding-top: 56px; padding-bottom: 56px; width: 100%; }
.hero-content > * { max-width: 640px; }
.hero--center .hero-content { text-align: center; }
.hero--center .hero-content > * { margin-left: auto; margin-right: auto; }
.hero--has-search .hero-content { padding-bottom: 130px; }
.hero-label { font-size: 13px; font-weight: 600; color: #e8d6b5; margin: 0 0 10px; }
.hero-title { font: 800 clamp(1.9rem, 4.2vw, 3.2rem)/1.1 var(--font-head); letter-spacing: -.02em; color: #fff; margin: 0 0 14px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.hero .lead { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.9); margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero--center .hero-cta { justify-content: center; }
.btn-ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; }
.hero--center .hero-stats { justify-content: center; }
.hero-stats strong { display: block; font: 700 26px/1 var(--font-mono); color: #fff; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.75); }
.hero-nav { position: absolute; top: calc(50% - 22px); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(10,24,16,.35); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-nav:hover { background: rgba(10,24,16,.6); }
.hero--has-search .hero-nav { top: calc(50% - 70px); }
.hero-prev { left: 16px; } .hero-next { right: 16px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero--has-search .hero-dots { bottom: 112px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dots button.is-active { background: #fff; width: 26px; border-radius: 5px; }
.hero-search-wrap { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 4; }
.hero-search { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr auto; gap: 10px; align-items: end; background: var(--surface); color: var(--ink-900); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-md); }
.hs-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hs-field span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); }
.hs-field select, .hs-field input { min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; font: 14px var(--font); background: var(--surface); color: var(--ink-900); width: 100%; }
.hs-field select:focus, .hs-field input:focus { outline: none; border-color: var(--green-800); box-shadow: var(--focus-ring); }
.hero-search .btn { min-height: 44px; padding: 10px 22px; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide.is-active { transition: none; } }
@media (max-width: 960px) {
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hs-text { grid-column: 1 / -1; }
  .hero-search .btn { grid-column: 1 / -1; }
  .hero--has-search .hero-content { padding-bottom: 48px; }
  .hero-search-wrap { position: relative; bottom: auto; margin-top: -32px; padding-bottom: 8px; }
  .hero--has-search .hero-dots { bottom: 46px; }
  .hero--has-search .hero-nav { top: calc(50% - 40px); }
  .hero--compact, .hero--medium { --hero-h: 440px; }
  .hero--large, .hero--full { --hero-h: 540px; }
}
@media (max-width: 560px) {
  .hero-nav { display: none; }
  .hero-content { padding-top: 40px; }
  .hero-search { grid-template-columns: 1fr; }
}

/* ---------- Category tiles: photos instead of identical icons ---------- */
.cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat-tile { position: relative; padding: 0; overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.cat-tile .cat-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; transition: transform .35s ease; }
.cat-tile:hover .cat-photo { transform: scale(1.04); }
.cat-tile .cat-icon { margin: 22px auto 6px; }
.cat-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; }
.cat-tile:not(.has-photo) .cat-label { justify-content: center; flex-direction: column; align-items: center; padding-top: 0; }
.cat-label strong { font-size: 14.5px; }
.cat-label span { font-size: 12px; color: var(--ink-500); white-space: nowrap; }
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-label { flex-direction: column; gap: 2px; } }

/* ---------- Calmer section styling ---------- */
.section-head { align-items: center; }
.section-head h2 { margin: 0; }
.section-head p { margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step::before { content: counter(step); font: 700 14px/1 var(--font-mono); color: #fff; background: var(--green-800); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }
.ship-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mini-icon { display: inline-block; vertical-align: -2px; opacity: .85; }
.footer-contact { line-height: 1.9; }

/* =========================================================
   Scroll / loading glitch fixes
   ========================================================= */
/* Sticky header and panels sit below the WordPress admin bar when logged in. */
.admin-bar .site-header { top: 32px; }
.admin-bar .filter-sidebar, .admin-bar.woocommerce div.product .buy-box.summary, .admin-bar .woocommerce div.product .buy-box.summary { top: 122px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } } /* admin bar scrolls away on small screens */

/* ---------- Page content: About us, FAQ, any page built in the editor ---------- */
.entry-content > * { max-width: 860px; }
.entry-content > .alignwide, .entry-content > .wp-block-columns, .entry-content > .aa-quote-form, .entry-content > .aa-compare, .entry-content > .woocommerce { max-width: none; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.wp-block-columns { display: flex; gap: 20px; margin: 1em 0 1.6em; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 220px; min-width: 0; }
.aa-about-cols .wp-block-column { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green-800); border-radius: var(--radius-sm); padding: 18px 20px; }
.aa-about-cols h3 { margin-top: 0; }
.aa-about-cols p { margin: 0; color: var(--ink-500); font-size: 14.5px; }
.wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.2em 0; }
.wp-block-button__link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm); background: var(--gold-500); color: #141815; font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid transparent; }
.wp-block-button__link:hover { background: var(--gold-600); color: #141815; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--green-800); border-color: var(--ink-300); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--green-100); border-color: var(--green-800); }
/* FAQ accordion (core Details block) */
.wp-block-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 10px; padding: 0; }
.wp-block-details summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font: 600 15.5px/1.4 var(--font-head); color: var(--ink-900); position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--green-800); border-bottom: 2px solid var(--green-800); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.wp-block-details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.wp-block-details summary:hover { color: var(--green-800); }
.wp-block-details summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.wp-block-details[open] { border-color: var(--green-800); }
.wp-block-details > :not(summary) { padding: 0 18px; color: var(--ink-700); }
.wp-block-details > :last-child { padding-bottom: 16px; margin-bottom: 0; }
.aa-quote-form .check input[type=checkbox], .field .check input[type=checkbox] { min-height: 0; flex: none; margin-top: 2px; }
.aa-quote-form .check { align-items: flex-start; }

/* Legal pages */
mark.aa-fill { background: #fee2e2; color: #991b1b; padding: 1px 6px; border-radius: 3px; font-size: .9em; }
.aa-updated { color: var(--ink-500); font-size: 13px; }
.entry-content .wp-block-quote { border-left: 4px solid var(--green-800); background: var(--surface); padding: 14px 18px; margin: 1em 0; }
.aa-ship-table { max-width: 520px; }
.aa-ship-table td:last-child { text-align: left; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal a { color: #b9cfc0; }
.footer-legal a:hover { color: var(--gold-500); }
.footer-bottom { align-items: center; }

/* ---------- Mobile menu fix: readable, scrollable, collapsible sub-menus ---------- */
@media (max-width: 900px) {
  .site-header .main-nav { max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .site-header .main-nav ul { gap: 0; }
  .site-header .main-nav li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-header .main-nav a { padding: 13px 4px; }
  .site-header .main-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
  .site-header .main-nav .menu-item-has-children > a { flex: 1; }
  .site-header .main-nav .sub-menu { display: none; width: 100%; background: transparent; border: 0; border-left: 2px solid var(--gold-500); border-radius: 0; box-shadow: none; padding: 0 0 6px 14px; margin: 0 0 8px; position: static; min-width: 0; }
  .site-header .main-nav li.is-open > .sub-menu { display: flex; }
  .site-header .main-nav .sub-menu li { border-bottom: 0; }
  .site-header .main-nav .sub-menu a { color: #e6efe9; padding: 9px 4px; font-weight: 500; }
  .site-header .main-nav li:hover > .sub-menu, .site-header .main-nav li:focus-within > .sub-menu { display: none; }
  .site-header .main-nav li.is-open:hover > .sub-menu, .site-header .main-nav li.is-open:focus-within > .sub-menu { display: flex; }
  .submenu-toggle { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
  .is-open > .submenu-toggle { background: rgba(255,255,255,.1); }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 901px) { .submenu-toggle { display: none; } }

/* Legal notice details & category SEO text */
.aa-imprint { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1.6em; }
.aa-imprint dt { color: var(--ink-500); font-size: 14px; }
.aa-imprint dd { margin: 0; }
.aa-imprint .aa-imprint-main { grid-column: 1 / -1; font-weight: 600; }
.aa-imprint .aa-imprint-main:first-child { font-size: 1.1em; }
.seo-text { max-width: 900px; padding-top: 8px; padding-bottom: 32px; color: var(--ink-700); }
.seo-text h2 { font-size: 1.25rem; margin-top: 1.4em; }
@media (max-width: 560px) { .aa-imprint { grid-template-columns: 1fr; } .aa-imprint dt { margin-top: 6px; } }
.empty-cta { text-align: center; max-width: 640px; margin: 0 auto; padding: 12px 0; }
.empty-cta p { color: var(--ink-500); margin-bottom: 20px; }

/* Header fit on laptop screens + readable "current section" highlight */
.site-header .main-nav ul { flex-wrap: nowrap; }
.site-header .main-nav .current-menu-item > a, .site-header .main-nav .current-menu-ancestor > a, .site-header .main-nav .current-menu-parent > a, .site-header .main-nav .current_page_item > a { background: rgba(255,255,255,.14); color: #fff; }
.site-header .main-nav .sub-menu .current-menu-item > a { background: var(--green-100); color: var(--green-800); }
@media (max-width: 1599px) { .site-header .logo small { display: none; } }
@media (max-width: 1380px) and (min-width: 901px) { .site-header .main-nav a { padding: 8px 8px; font-size: 13.5px; } .header-actions .icon-btn[aria-label] { width: 38px; height: 38px; } }
@media (max-width: 1240px) { .header-cta { display: none; } }
@media (max-width: 900px) { .site-header .main-nav .current-menu-item > a, .site-header .main-nav .current-menu-ancestor > a { background: transparent; color: var(--gold-500); } }
.empty-category { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.empty-category h2 { margin-top: 0; }
.empty-category p { color: var(--ink-500); max-width: 560px; margin: 0 auto 18px; }
.empty-category .btn { margin: 4px; }

/* Floating compare bar */
.compare-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 16px; width: min(640px, calc(100% - 32px)); padding: 10px 12px 10px 18px; border-radius: var(--radius); background: #141815; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.compare-bar[hidden] { display: none; }
.compare-bar-text { flex: 1; font-size: 14px; line-height: 1.35; }
.compare-bar-text strong { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 6px; border-radius: 50%; background: var(--gold-500); color: #141815; font-size: 13px; }
.compare-bar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.compare-bar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.compare-bar .btn.is-disabled { opacity: .55; }
body.has-compare-bar .site-footer { padding-bottom: 90px; }
@media (max-width: 768px) {
  .compare-bar { bottom: calc(12px + env(safe-area-inset-bottom)); gap: 10px; padding: 8px 8px 8px 12px; }
  body.single-product .compare-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .compare-bar-text { font-size: 13px; }
}

@media print { .compare-bar { display: none !important; } }

.compare-pill { white-space: nowrap; }
@media (max-width: 768px) { .compare-pill { display: none !important; } }

/* Customer rating badge */
.aa-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-700, #333); text-decoration: none; }
.aa-rating .aa-stars { color: #e3a72f; letter-spacing: 1px; }
a.aa-rating:hover { text-decoration: underline; }
