/* Historex Agents – public site styles (black & gold) */
:root {
  --navy: #111111;      /* headings, header */
  --purple: #0b7a34;    /* main buttons (Historex green) */
  --purple-2: #119a46;  /* links, hover */
  --gold: #fecd07;
  --gold-2: #ffd93d;
  --ink: #1b1b1b;
  --muted: #5f6368;
  --paper: #f6f5f1;
  --card: #ffffff;
  --line: #e2e0d8;
  --ok: #0b7a34;
  --err: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--purple-2); text-underline-offset: 2px; }
a:hover { color: var(--purple); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 1000px; }
.section { padding-top: 28px; padding-bottom: 28px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #000; color: #fff; padding: 10px 14px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.12rem; color: #3e3a4c; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

/* Top bar + header */
.topbar { background: var(--navy); color: #d8d3f0; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { background: linear-gradient(180deg, var(--purple), var(--navy)); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); position: relative; z-index: 5; }
.site-header__inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { background: #fff; border-radius: 50%; padding: 4px; flex: none; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.5rem; letter-spacing: .3px; }
.brand small { display: block; color: #cfc8f2; font-size: .82rem; }
.brand:hover { color: #fff; }
.search { flex: 1; display: flex; max-width: 440px; margin-left: auto; }
.search input { flex: 1; min-width: 0; padding: 10px 14px; border: 0; border-radius: 999px 0 0 999px; font: inherit; font-size: .95rem; }
.search button { border: 0; padding: 0 16px; border-radius: 0 999px 999px 0; background: var(--gold); color: var(--navy); cursor: pointer; }
.search-big { max-width: 640px; margin: 0 0 20px; }
.search-big input { border: 1px solid var(--line); }
.search-big .btn { border-radius: 0 999px 999px 0; }
.cart-link { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-weight: 600; white-space: nowrap; }
.cart-link:hover, .cart-link.is-active { background: rgba(255,255,255,.12); color: #fff; }
.cart-count { background: var(--gold); color: var(--navy); border-radius: 999px; min-width: 24px; text-align: center; font-size: .8rem; padding: 1px 7px; }
.menu-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.mainnav { background: rgba(0,0,0,.18); border-top: 1px solid rgba(255,255,255,.08); }
.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; padding-top: 4px; padding-bottom: 4px; margin-top: 0; margin-bottom: 0; }
.mainnav a { display: block; color: #eeeaff; text-decoration: none; padding: 9px 13px; border-radius: 8px; font-size: .93rem; font-weight: 600; }
.mainnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.mainnav a[aria-current] { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--purple); background: var(--purple); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--purple-2); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--purple); }
.btn-ghost:hover { background: rgba(44,26,114,.07); color: var(--purple); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-small { padding: 7px 12px; font-size: .85rem; }
.btn-large { padding: 13px 24px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.link-btn { background: none; border: 0; color: var(--err); cursor: pointer; font: inherit; font-size: .85rem; text-decoration: underline; padding: 4px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin: 16px 0; border: 1px solid; }
.alert ul { margin: 0; padding-left: 20px; }
.alert-success { background: #ecf8f0; border-color: #b6e2c5; color: #11502c; }
.alert-error { background: #fdeeee; border-color: #f2c0bd; color: #7a1610; }
.alert-info { background: #eef1fc; border-color: #c8d0f3; color: #22306b; }

/* Hero */
.hero { background: radial-gradient(800px 300px at 85% 10%, rgba(201,154,46,.25), transparent 60%), linear-gradient(135deg, var(--navy), var(--purple)); color: #fff; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); }
.hero .lead { color: #ddd8f5; max-width: 560px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--gold-2); font-weight: 700; margin-bottom: 8px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__image { justify-self: center; display: block; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.35); transform: rotate(1.5deg); max-width: 360px; }
.hero__image img { display: block; border-radius: 10px; max-height: 420px; width: auto; margin: 0 auto; }

/* Home */
.home-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-top: 28px; align-items: start; }
.home-grid.no-side { grid-template-columns: 1fr; }
.welcome { font-size: 1.04rem; }
.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.side-box { overflow: hidden; display: flex; flex-direction: column; }
.side-box .card-pad { padding: 16px 18px; }
.side-box h2, .notice-box h2 { font-size: 1.15rem; }
.side-box p:last-child { margin-bottom: 0; }
.side-box__img { display: flex; align-items: center; justify-content: center; height: 150px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px; }
.side-box__img img { max-height: 100%; width: auto; object-fit: contain; }
.notice-box { border-left: 5px solid var(--gold); }
.more { font-weight: 600; text-decoration: none; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 1.7rem; }

/* Prose (editable content) */
.prose { overflow-wrap: anywhere; }
.prose::after { content: ""; display: table; clear: both; }
.prose img { border-radius: 8px; }
.prose .img-left { float: left; margin: 4px 18px 12px 0; max-width: 45%; }
.prose .img-right { float: right; margin: 4px 0 12px 18px; max-width: 45%; }
.prose .img-center { display: block; margin: 12px auto; }
.prose .img-full { display: block; width: 100%; }
.prose h2 { margin-top: 1.2em; }
.prose blockquote { margin: 1em 0; padding: 10px 18px; border-left: 4px solid var(--gold); background: #faf7ef; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.prose .notice { background: #faf7ef; border: 1px solid #ecdcb4; border-radius: 10px; padding: 12px 16px; }
.prose .text-center { text-align: center; }
.prose .button { display: inline-block; background: var(--purple); color: #fff; padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.prose .two-col { columns: 2 260px; column-gap: 32px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; clear: both; }
.page-body h1 { margin-bottom: .8em; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,16,50,.12); }
.product-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: #fff; padding: 10px; border-bottom: 1px solid var(--line); }
.product-card__img img { max-height: 100%; width: auto; object-fit: contain; }
.product-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-family: var(--sans); font-size: .98rem; font-weight: 600; margin: 2px 0 10px; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a:hover { color: var(--purple-2); text-decoration: underline; }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.code { font-size: .78rem; color: var(--muted); letter-spacing: .05em; font-weight: 600; }
.price { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.price-big { font-size: 1.8rem; margin: 6px 0 16px; }
.tag { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.tag-new { background: var(--gold); color: var(--navy); }
.soldout { color: var(--err); font-weight: 600; font-size: .85rem; }
.soldout-big { font-size: 1rem; background: #fdeeee; padding: 12px; border-radius: 8px; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.cat-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; }
.cat-tile img { aspect-ratio: 1; object-fit: contain; background: #fff; padding: 10px; width: 100%; border-bottom: 1px solid var(--line); }
.cat-tile span { padding: 12px 14px; font-weight: 700; font-family: var(--serif); font-size: 1.05rem; }
.cat-tile small { display: block; font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .8rem; }
.cat-tile:hover span { color: var(--purple-2); }

/* Breadcrumbs, pager, list tools */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted); }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 16px; color: var(--muted); flex-wrap: wrap; }
.sort-form { display: flex; align-items: center; gap: 8px; }
select, input, textarea { font: inherit; }
.sort-form select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.pager a { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; }
.pager a[aria-current] { background: var(--purple); color: #fff; border-color: var(--purple); }

/* Product detail */
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.product-gallery__main { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-height: 360px; cursor: zoom-in; }
.product-gallery__main img { max-height: 620px; width: auto; }
.product-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.product-gallery__thumbs button { width: 76px; height: 76px; padding: 3px; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.product-gallery__thumbs button.is-active { border-color: var(--gold); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { margin-top: 4px; }
.buy-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px; background: #faf8f3; border: 1px solid var(--line); border-radius: var(--radius); }
.buy-form input { width: 80px; padding: 10px; border: 1px solid #cfc9bc; border-radius: 8px; }
.assurance { list-style: none; padding: 0; margin: 18px 0; color: #3e3a4c; font-size: .93rem; }
.assurance li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.assurance li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
.product-desc { border-top: 1px solid var(--line); padding-top: 18px; }

/* Cart / checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-img img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.qty { width: 70px; padding: 8px; border: 1px solid #cfc9bc; border-radius: 8px; }
.num { text-align: right; white-space: nowrap; }
.zones { border: 0; padding: 0; margin: 0 0 14px; }
.zones legend { font-weight: 700; margin-bottom: 8px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--purple-2); background: #f4f2fc; }
.radio input { margin-top: 5px; }
.radio small { display: block; color: var(--muted); font-size: .8rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 12px; }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .grand { font-size: 1.25rem; font-weight: 800; color: var(--navy); border-top: 1px solid var(--line); padding-top: 8px; }
.hint { background: #faf7ef; border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.empty-state { text-align: center; padding: 40px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.mini-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.mini-table td { padding: 7px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.mini-table .sep td { border-top: 1px solid var(--line); }
.mini-table .grand td { font-weight: 800; font-size: 1.15rem; border-bottom: 0; color: var(--navy); }
#paypal-buttons { margin: 18px 0; min-height: 50px; }
.pay-status { font-weight: 600; }
.pay-status.is-error { color: var(--err); }
.thanks h1 { color: var(--ok); }

/* Forms */
.form label { display: block; font-weight: 600; margin-bottom: 14px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #cfc9bc; border-radius: 8px; background: #fff; font-weight: 400; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }

/* Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.photo-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-grid figcaption { padding: 8px 10px; font-size: .88rem; color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(10,8,25,.92); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; flex-direction: column; gap: 10px; }
.lightbox img { max-height: 85vh; max-width: 95vw; width: auto; border-radius: 6px; }
.lightbox p { color: #fff; margin: 0; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 999px; width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* Footer */
.site-footer { background: var(--navy); color: #cfc9ec; margin-top: 40px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 36px; padding-bottom: 24px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.site-footer li { margin-bottom: 6px; }
.site-footer .muted { color: #a59fc8; }
.pay-logos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-logos img { background: #fff; border-radius: 6px; padding: 4px 8px; height: 32px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; padding-bottom: 18px; font-size: .85rem; color: #a59fc8; }

/* Responsive */
@media (max-width: 960px) {
  .home-grid, .cart-layout, .checkout-layout, .contact-layout, .product-detail { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 30px; }
  .hero__image { transform: none; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; gap: 8px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 1.08rem; white-space: nowrap; }
  .brand small { display: none; }
  .brand img { width: 40px; height: 40px; padding: 2px; }
  .menu-toggle { padding: 7px 10px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .cart-link { margin-left: auto; padding: 7px 10px; }
  .cart-link span:not(.cart-count) { display: none; }
  .menu-toggle { display: block; }
  .mainnav { display: none; }
  .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; }
  .topbar__right { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card__foot .btn { width: 100%; }
  .product-card__foot form { width: 100%; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .prose .img-left, .prose .img-right { float: none; display: block; margin: 10px auto; max-width: 100%; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 2px 0; }
  .cart-table td.cart-img { grid-row: span 4; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  .cart-table .num { text-align: left; }
  .card-pad { padding: 16px; }
}
@media print {
  .topbar, .site-header, .site-footer, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- Historex overrides ---------- */
a { color: #0a6a2d; }
a:hover { color: #075021; }
.topbar { background: #000; color: #e9e4c9; }
.site-header { background: linear-gradient(180deg, #1c1c1c, #0b0b0b); border-bottom: 3px solid var(--gold); }
.brand img { background: #fff; border-radius: 8px; padding: 2px; }
.brand strong { color: var(--gold); font-family: var(--serif); }
.brand small { color: #d7d2bd; }
.search button { background: var(--gold); color: #111; }
.cart-count { background: var(--gold); color: #111; }
.mainnav { background: #000; }
.mainnav a { color: #f2efe2; }
.mainnav a[aria-current] { box-shadow: inset 0 -3px 0 var(--gold); }
.btn-gold { color: #111; }
.hero { background: radial-gradient(800px 320px at 85% 10%, rgba(254,205,7,.22), transparent 60%), linear-gradient(135deg, #0b0b0b, #262626); }
.hero .lead { color: #e9e4c9; }
.hero h1 span { color: var(--gold); }
.price { color: #111; }
.tag-new { background: var(--gold); color: #111; }
.tag-offer { background: #b42318; color: #fff; }
.tag-soon { background: #111; color: var(--gold); }
.soldout { color: var(--err); font-weight: 600; font-size: .85rem; text-decoration: none; }
.soldout:hover { text-decoration: underline; }
.pager span { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 8px; }
.pager span[aria-current] { background: var(--purple); color: #fff; font-weight: 700; }
.site-footer { background: #0b0b0b; color: #d7d2bd; }
.site-footer h2 { color: var(--gold); }
.site-footer a { color: #fff; }
.footer-logo { max-width: 220px; margin-bottom: 10px; }
.hide-sm { }
@media (max-width: 700px) { .hide-sm { display: none; } }

/* status + notify box */
.status { display: inline-block; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: .9rem; }
.status-in { background: #e6f4ea; color: #0b5d27; }
.status-A { background: #fdeeee; color: #8a1a12; }
.status-S { background: #111; color: var(--gold); }
.notify { margin-top: 18px; padding: 18px; border: 2px solid var(--gold); border-radius: var(--radius); background: #fffbea; }
.notify h2 { margin-top: 0; }
.form-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: end; }
.form-inline label { display: block; font-weight: 600; font-size: .9rem; }
.form-inline input:not([type=hidden]) { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #cfc9bc; border-radius: 8px; }
.form-inline .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 600px) { .form-inline { grid-template-columns: 1fr; } }

/* manufacturers list */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 6px 0 18px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.filter-bar label { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.filter-bar input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--purple); }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.az a { min-width: 32px; text-align: center; padding: 4px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: #111; }
.maker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.maker { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.maker:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.maker strong { font-weight: 700; }
.maker small { color: var(--muted); white-space: nowrap; }
.maker-letter { grid-column: 1 / -1; margin: 14px 0 2px; font-size: 1.3rem; border-bottom: 2px solid var(--gold); }
.brand-head { display: flex; gap: 20px; align-items: center; margin-bottom: 14px; }
.brand-head img { max-height: 90px; width: auto; background: #fff; padding: 6px; border-radius: 8px; border: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.video-grid iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
details.faq summary { cursor: pointer; font-weight: 700; }
.chk-line { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600; }
.chk-line input { width: auto !important; display: inline-block !important; margin-top: 4px !important; }
.coupon-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.form select { font: inherit; }


/* checkout postage choices: radio beside its label */
.form label.radio { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 8px; }
.form label.radio input { width: auto; display: inline-block; margin: 0; flex: none; accent-color: var(--purple); }


/* privacy tick box on checkout: made obvious when it has not been ticked */
.privacy-box { margin-top: 10px; padding: 12px 14px; border: 2px solid transparent; border-radius: 10px; }
.privacy-box.is-missing { border-color: var(--err); background: #fdeeee; }
.privacy-box .chk-line input { width: 20px !important; height: 20px; accent-color: var(--purple); }
.privacy-msg { margin: 8px 0 0; color: var(--err); font-weight: 700; }


/* payment buttons on the thank-you page */
.btn-pay { min-width: 240px; min-height: 58px; }
.btn-pay span { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.btn-pay small { font-size: .78rem; font-weight: 500; margin-top: 3px; }


/* thank-you page: payment buttons on the right, logo above each */
.pay-box { display: flex; justify-content: space-between; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.pay-box__text { flex: 1 1 220px; }
.pay-buttons { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.pay-option { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.pay-logo { height: 40px; width: auto; max-width: 240px; object-fit: contain; background: #fff; padding: 6px 10px; border-radius: 8px; box-sizing: content-box; }
.pay-option .btn-pay { width: 100%; }
@media (max-width: 640px) { .pay-buttons { justify-content: center; margin: 0 auto; } }


/* coupon box messages (shown in the box, like the privacy warning) */
.coupon-box.privacy-box { margin-top: 14px; padding: 12px 14px; border-top: 2px solid transparent; }
.coupon-ok { margin: 8px 0 0; color: var(--ok); font-weight: 700; }


/* Small rounded corners on the product pictures themselves */
.product-card__img img,
.product-gallery__main img,
.product-gallery__thumbs img,
.side-box__img img,
.hero__image img,
.cat-tile img { border-radius: 6px; }

/* Bigger inset picture on the home page */
.hero__inner { grid-template-columns: 1.1fr 1fr; }
.hero__image { max-width: 540px; width: 100%; }
.hero__image img { max-height: 580px; width: 100%; height: auto; object-fit: contain; }
@media (max-width: 900px) { .hero__image { max-width: 420px; } .hero__image img { max-height: 460px; } }
/* Scrolling news bar under the menu (home page) */
.ticker { display: flex; align-items: stretch; background: #111; color: #f2efe4; border-bottom: 1px solid #333; font-size: .95rem; overflow: hidden; }
.ticker__label { flex: none; display: flex; align-items: center; padding: 0 16px; background: var(--gold); color: #111; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.ticker__window { flex: 1; overflow: hidden; position: relative; }
.ticker__track { display: flex; width: max-content; animation: ticker-scroll var(--ticker-time, 40s) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; align-items: center; white-space: nowrap; padding: 9px 0; }
.ticker__item strong { color: var(--gold); }
.ticker__sep { color: var(--gold); margin: 0 22px; font-size: .7rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__window { overflow-x: auto; }
}
/* Green header – the same Historex green as the Add to basket buttons */
.site-header { background: var(--purple); border-bottom: 3px solid var(--gold); }
.mainnav { background: rgba(0,0,0,.22); border-top: 1px solid rgba(255,255,255,.12); }
.mainnav a { color: #fff; }
.mainnav a:hover { background: rgba(255,255,255,.14); }
.mainnav a[aria-current] { background: rgba(0,0,0,.25); }.mainnav { background: var(--purple); }

/* Short note under the Basket button (Superadmin › Shop settings) */
.cart-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.header-note { font-size: .78rem; font-weight: 700; color: var(--gold); text-align: center; line-height: 1.2; max-width: 170px; }
/* The hidden anti-spam box must never take up room (it was making product pages scroll sideways) */
.hp, input.hp, .form-inline input.hp { position: absolute !important; left: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; opacity: 0 !important; overflow: hidden !important; }

/* Footer never wider than a phone screen */
.footer-grid > * { min-width: 0; }
.site-footer a, .site-footer p { overflow-wrap: anywhere; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr) !important; } }

/* Size / scale under the code on product cards */
.product-card__body .size { display: block; font-size: .8rem; font-weight: 700; color: #6b5300; margin-top: 2px; }
/* Add to basket: confirmation on the button */
.btn.is-added { background: #111; border-color: #111; color: var(--gold); }
.product-card { scroll-margin-top: 90px; }

/* Search: nothing found */
.no-results h2 { margin-top: 0; }
.chip { display: inline-block; margin: 3px 2px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; }
.chip:hover { border-color: var(--purple); }

/* USA estimated import charges at checkout */
.import-row td { background: #fffbe6; }
.import-note { border-left: 4px solid var(--gold); }
