/* ATH Supplies — palette taken from the logo: navy #001322, orange #F58F1B */

:root {
  --navy: #001322;
  --navy-2: #0a2438;
  --navy-3: #143650;
  --orange: #f58f1b;
  --orange-dark: #d9760a;
  --ink: #10202c;
  --body: #46596a;
  --muted: #6b7f8f;
  --line: #dde4ea;
  --line-2: #eef2f5;
  --bg: #f4f6f8;
  --white: #fff;
  --green: #157a4a;
  --green-bg: #e7f5ee;
  --amber: #8a5a00;
  --amber-bg: #fdf3e2;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 19, 34, .06), 0 4px 14px rgba(0, 19, 34, .06);
  --shadow-lg: 0 10px 34px rgba(0, 19, 34, .14);
  --wrap: 1320px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 15px/1.55 "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 30px; letter-spacing: -.02em; }
h2 { font-size: 24px; letter-spacing: -.015em; }
h3 { font-size: 17px; }

a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }
sup { font-size: .62em; vertical-align: super; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange); color: var(--navy); padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }

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

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .13s, border-color .13s, color .13s;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--orange); color: #1a1206; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #1a1206; }

.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-3); border-color: var(--navy-3); color: #fff; }

.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: #fbfcfd; color: var(--navy); }

.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* ---------------- Top bars ---------------- */

.promo-bar { background: var(--navy); color: #cbd8e2; font-size: 13px; }
.promo-track {
  display: flex; gap: 40px; justify-content: center; align-items: center;
  padding: 9px 20px; flex-wrap: wrap;
}
.promo strong { color: var(--orange); }

.util-bar { background: var(--navy-2); color: #9fb3c4; font-size: 12.5px; border-top: 1px solid rgba(255,255,255,.07); }
.util-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 20px; gap: 16px; }
.util-badge { display: inline-flex; align-items: center; gap: 7px; color: #cbd8e2; }
.util-badge .mark { flex: none; }
.util-links { display: flex; gap: 22px; }
.util-links a { color: #9fb3c4; }
.util-links a:hover { color: var(--orange); text-decoration: none; }

/* ---------------- Header ---------------- */

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; padding: 16px 20px; }
.logo { flex: none; display: block; }
.logo img { display: block; }

.search { flex: 1; display: flex; max-width: 720px; position: relative; }
.search input {
  flex: 1; height: 46px; padding: 0 52px 0 16px;
  border: 2px solid var(--navy); border-radius: var(--radius) 0 0 var(--radius);
  font: inherit; color: var(--ink); background: #fff; min-width: 0;
}
.search input::placeholder { color: #93a5b3; }
.search button {
  width: 56px; border: 2px solid var(--navy); border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--navy); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.search button:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }

.header-actions { display: flex; gap: 6px; margin-left: auto; }
.hdr-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; color: var(--navy); font-size: 12px; font-weight: 600;
  border-radius: var(--radius); position: relative;
}
.hdr-btn:hover { background: var(--bg); color: var(--navy); text-decoration: none; }
.cart-count {
  position: absolute; top: 0; right: 4px;
  background: var(--orange); color: #1a1206;
  min-width: 19px; height: 19px; border-radius: 10px;
  font-size: 11.5px; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}
.cart-count.empty { display: none; }

/* ---------------- Main nav ---------------- */

.mainnav { background: var(--navy); position: relative; z-index: 60; }
.mainnav-inner { display: flex; align-items: stretch; gap: 2px; padding: 0 20px; }
.nav-item { position: static; display: flex; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 18px; color: #e4ecf2; font: inherit; font-weight: 600; font-size: 14.5px;
  background: none; border: 0; cursor: pointer; text-decoration: none;
}
.nav-link:hover, .nav-item:hover .nav-link { background: var(--navy-3); color: #fff; text-decoration: none; }
.nav-products { background: var(--orange); color: #1a1206; font-weight: 800; }
.nav-products:hover, .nav-item:hover .nav-products { background: var(--orange-dark); color: #1a1206; }
.nav-deals { color: var(--orange); }

.megamenu, .dropdown {
  display: none; position: absolute; top: 100%; background: #fff;
  box-shadow: var(--shadow-lg); border-top: 3px solid var(--orange); z-index: 70;
}
/* Hover for mice, .open (set by app.js on click/Enter) for keyboards.
   Deliberately NOT :focus-within — a mouse click leaves focus on the button,
   which pinned the menu open while a sibling menu was also being hovered. */
.nav-item:hover > .megamenu,
.nav-item:hover > .dropdown,
.nav-item.open > .megamenu,
.nav-item.open > .dropdown { display: block; }

.megamenu { left: 0; right: 0; }
.megamenu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2px 24px; padding: 22px 20px 26px;
}
.megamenu-grid a {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 7px 10px; border-radius: 4px; color: var(--ink); font-size: 14px;
}
.megamenu-grid a:hover { background: var(--bg); color: var(--navy); text-decoration: none; }
.megamenu-grid em { color: var(--muted); font-style: normal; font-size: 12px; }
.mm-all { font-weight: 700; color: var(--navy-3) !important; }

.dropdown { left: auto; min-width: 300px; padding: 8px 0; }
.dropdown a { display: block; padding: 9px 20px; color: var(--ink); font-size: 14px; }
.dropdown a:hover { background: var(--bg); color: var(--navy); text-decoration: none; }
.nav-item.has-menu { position: relative; }
.nav-item.has-menu:first-child { position: static; }

/* ---------------- Breadcrumbs ---------------- */

.crumbs { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; }
.crumbs .wrap { padding-top: 10px; padding-bottom: 10px; }
.crumbs i { color: #b9c6d1; font-style: normal; margin: 0 9px; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------------- Hero ---------------- */

.hero {
  background: linear-gradient(105deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #dce7ef; padding: 56px 0 60px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: 42px; margin-bottom: 14px; letter-spacing: -.03em; }
.hero h1 span { color: var(--orange); }
.hero p.lede { font-size: 17px; max-width: 52ch; margin: 0 0 26px; color: #b8cad8; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 36px; }
.hero-stats div b { display: block; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats div span { font-size: 13px; color: #93aabd; }
.hero-panel {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 26px;
}
.hero-panel h2 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.hero-panel li { display: flex; gap: 12px; font-size: 14.5px; color: #cdddE8; }
.hero-panel li svg { flex: none; color: var(--orange); margin-top: 2px; }

/* ---------------- Sections ---------------- */

.section { padding: 54px 0; }
.section.alt { background: var(--bg); }
.section-head { margin-bottom: 28px; }
.eyebrow {
  color: var(--orange-dark); font-size: 12.5px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; margin: 0 0 8px;
}
.section-head h2 { margin-bottom: 6px; }
.section-head p { margin: 0; color: var(--muted); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.cat-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 18px; min-height: 128px; color: var(--ink);
  transition: border-color .13s, box-shadow .13s, transform .13s;
}
.cat-tile:hover {
  border-color: var(--navy); box-shadow: var(--shadow); text-decoration: none;
  color: var(--navy); transform: translateY(-2px);
}
.cat-tile .cat-icon { color: var(--orange); }
.cat-tile b { font-size: 15.5px; display: block; }
.cat-tile em { font-style: normal; color: var(--muted); font-size: 12.5px; }

/* Category tile with a photo instead of an icon */
.cat-tile.has-photo { padding: 0; overflow: hidden; gap: 0; min-height: 168px; position: relative; }
.cat-tile.has-photo img {
  width: 100%; height: 116px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--line);
}
.cat-tile.has-photo span { display: block; padding: 12px 16px 14px; }
.cat-tile.has-photo:hover img { opacity: .92; }

/* Hero with a background photo. Text stays readable via the overlay set inline. */
.hero.hero-photo { background-size: cover; background-position: center; }

/* Banner across the top of a content page.
   min-height rather than padding, so the photo gets room to breathe and the
   heading stays vertically centred whatever length it is. */
.page-banner {
  background: var(--navy); background-size: cover; background-position: center;
  min-height: 450px; margin-bottom: 8px;
  display: flex; align-items: center;
}
.page-banner h1 { color: #fff; margin: 0; font-size: 40px; letter-spacing: -.02em; }
@media (max-width: 720px) {
  .page-banner { min-height: 300px; }
  .page-banner h1 { font-size: 28px; }
}

/* Brand strip */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.brand-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 14px; text-align: center; color: var(--ink); font-weight: 600; font-size: 14px;
}
.brand-chip:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.brand-chip span { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 3px; }

/* Services band */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px;
  display: flex; flex-direction: column;
}
.svc-card .svc-icon {
  width: 46px; height: 46px; border-radius: 8px; background: #fdf1e0; color: var(--orange-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { margin: 0 0 18px; color: var(--body); font-size: 14.5px; }
.svc-card a.svc-link { margin-top: auto; font-weight: 700; color: var(--navy); }
.svc-card a.svc-link:hover { color: var(--orange-dark); }

/* ---------------- Product grid ---------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .13s, box-shadow .13s;
}
.card:hover { border-color: #c3d0da; box-shadow: var(--shadow); }
.card-media {
  display: grid; place-items: center; height: 190px; padding: 14px;
  background: #fff; border-bottom: 1px solid var(--line-2);
}
.p-img { max-height: 162px; object-fit: contain; }
.p-img-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: var(--bg); color: #a9bac6; border-radius: 4px;
}
.p-img-ph span { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #8fa3b1; }

.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.brand { margin: 0 0 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 14.5px; line-height: 1.38; margin: 0 0 7px; font-weight: 600; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--orange-dark); }
.model { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.model b { color: var(--ink); }

.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.price strong { font-size: 21px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.price s { color: var(--muted); font-size: 13px; }
.price .unit { font-size: 12.5px; color: var(--muted); }
.price .cfp { font-size: 15px; font-weight: 700; color: var(--navy-3); }

.stock { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }
.stock em { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; }
.stock.in { color: var(--green); }
.stock.order { color: var(--amber); }
.stock.unknown { color: var(--muted); font-weight: 600; }

.card-actions { margin-top: auto; }
.add-form { display: flex; gap: 8px; }
.qty {
  width: 62px; height: 36px; padding: 0 8px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--ink);
}
.add-form .btn { flex: 1; }

/* ---------------- Listing layout ---------------- */

.listing { display: grid; grid-template-columns: 258px 1fr; gap: 30px; padding: 28px 0 60px; }
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.listing-head h1 { margin: 0 0 4px; }
.result-count { color: var(--muted); font-size: 14px; margin: 0; }

.filters { font-size: 14px; }
.filters-title { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.clear-filters { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.filter-group { border-top: 1px solid var(--line); padding: 16px 0; }
.filter-group h3 { font-size: 14px; margin-bottom: 10px; }
.filter-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.filter-group li a {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 5px 8px; border-radius: 4px; color: var(--body); font-size: 13.5px;
}
.filter-group li a:hover { background: var(--bg); text-decoration: none; color: var(--navy); }
.filter-group li a.on { background: var(--navy); color: #fff; font-weight: 600; }
.filter-group li a.on em { color: #b9cddc; }
.filter-group em { font-style: normal; color: var(--muted); font-size: 12px; }
.price-filter .price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-filter input { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; font: inherit; min-width: 0; }
.price-filter span { color: var(--muted); font-size: 13px; }

.sortbar { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sortbar select { height: 36px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 10px; font: inherit; color: var(--ink); background: #fff; }

.pagination { display: flex; gap: 5px; align-items: center; justify-content: center; margin: 36px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--body); background: #fff;
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.pg-cur { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; }
.pagination .disabled, .pg-gap { opacity: .45; border-color: transparent; background: none; }

.empty { text-align: center; padding: 70px 20px; }
.empty h2 { margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0; }

/* ---------------- Product detail ---------------- */

.pdp { display: grid; grid-template-columns: 1.05fr 1fr 320px; gap: 34px; padding: 30px 0 20px; align-items: start; }
.pdp-media { border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; place-items: center; min-height: 380px; background: #fff; }
.pdp-media .p-img { max-height: 400px; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumbs img { width: 62px; height: 62px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; padding: 4px; cursor: pointer; }
.pdp-thumbs img:hover { border-color: var(--navy); }

.pdp-info h1 { font-size: 25px; margin-bottom: 10px; }
.pdp-meta { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; display: grid; gap: 5px; }
.pdp-meta b { color: var(--ink); }
.pdp-brand { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.bullets { margin: 0 0 20px; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.bullets li::marker { color: var(--orange); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 600; }
.spec-table td { color: var(--ink); }
.spec-table tr:nth-child(odd) { background: #fafbfc; }

.buybox { border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: #fff; box-shadow: var(--shadow); position: sticky; top: 16px; }
.buybox .price { margin-bottom: 6px; }
.buybox .price strong { font-size: 30px; }
.buybox .save { display: inline-block; background: var(--green-bg); color: var(--green); font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 4px; margin-bottom: 12px; }
.buybox .stock { margin: 14px 0 16px; }
.buy-form { display: grid; gap: 10px; }
.buy-row { display: flex; gap: 10px; align-items: center; }
.buy-row label { font-size: 13.5px; color: var(--muted); }
.buy-row .qty { width: 82px; height: 44px; font-size: 16px; }
.buybox .note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.buybox .note svg { color: var(--green); vertical-align: -2px; margin-right: 5px; }

.warehouse-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; display: grid; gap: 5px; }
.warehouse-list li { display: flex; justify-content: space-between; gap: 10px; }
.warehouse-list b { color: var(--ink); font-weight: 600; }

.pdp-tabs { border-top: 1px solid var(--line); margin-top: 20px; padding: 34px 0 50px; }
.pdp-tabs h2 { font-size: 19px; }

/* ---------------- Cart & checkout ---------------- */

.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 30px; padding: 30px 0 60px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.cart-item { display: flex; gap: 14px; }
.cart-item .thumb { width: 78px; height: 78px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 4px; }
.cart-item .thumb .p-img { max-height: 70px; }
.cart-item h3 { font-size: 14.5px; margin: 0 0 4px; font-weight: 600; }
.cart-item .model { margin: 0; }
.cart-qty { display: flex; gap: 6px; align-items: center; }
.cart-qty .qty { width: 66px; }
.line-total { font-weight: 700; color: var(--ink); white-space: nowrap; }
.remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 4px 0; }
.remove:hover { color: #b3261e; }

.summary { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: #fff; box-shadow: var(--shadow); position: sticky; top: 16px; }
.summary h2 { font-size: 18px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 19px; font-weight: 800; color: var(--ink); }
.sum-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 16px; }
.ship-bar { background: var(--green-bg); color: var(--green); border-radius: 6px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.ship-bar.away { background: var(--amber-bg); color: var(--amber); }

.notice { border-radius: 6px; padding: 13px 16px; font-size: 14px; margin-bottom: 20px; }
.notice-warn { background: var(--amber-bg); color: var(--amber); border: 1px solid #f0dcb6; }
.notice-ok { background: var(--green-bg); color: var(--green); border: 1px solid #bfe3d0; }
.notice-err { background: #fdecea; color: #b3261e; border: 1px solid #f5c9c4; }

/* ---------------- Content pages / forms ---------------- */

.page-body { padding: 34px 0 64px; max-width: 780px; }
.page-body h1 { margin-bottom: 18px; }
.page-body h2 { font-size: 20px; margin-top: 32px; }
.page-body p, .page-body li { font-size: 15.5px; line-height: 1.7; }
.page-body ul { padding-left: 22px; }

.form-grid { display: grid; gap: 16px; max-width: 560px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------------- Signup + footer ---------------- */

.signup { background: var(--orange); color: #1a1206; }
.signup-inner { display: flex; justify-content: space-between; align-items: center; gap: 26px; padding: 26px 20px; flex-wrap: wrap; }
.signup p { margin: 0; font-size: 16px; }
.signup-form { display: flex; gap: 10px; }
.signup-form input { height: 44px; padding: 0 14px; border: 1px solid #1a1206; border-radius: var(--radius); font: inherit; min-width: 250px; }
.signup .btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.signup .btn-primary:hover { background: #000c16; color: #fff; }

.site-footer { background: var(--navy); color: #9fb3c4; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 36px; padding: 46px 20px 40px; }
.footer-logo { filter: brightness(0) invert(1); opacity: .95; }
.footer-tag { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; font-size: 13.5px; }
.footer-contact a { color: #cfe0ec; font-weight: 600; }
.footer-col h3 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #9fb3c4; }
.footer-col a:hover, .footer-contact a:hover { color: var(--orange); text-decoration: none; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; padding: 16px 20px; flex-wrap: wrap; align-items: center; }
.legal { display: flex; gap: 18px; }
.legal a { color: #9fb3c4; }
.legal a:hover { color: var(--orange); text-decoration: none; }
.pay { color: #7d94a7; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1100px) {
  .pdp { grid-template-columns: 1fr 1fr; }
  .buybox { grid-column: 1 / -1; position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .filters { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .util-badge { display: none; }
}

@media (max-width: 720px) {
  h1 { font-size: 25px; }
  .hero h1 { font-size: 31px; }
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  .mainnav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-link { white-space: nowrap; }
  .megamenu-grid { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table td { display: block; border: 0; padding: 6px 0; }
  .cart-table tbody tr { display: block; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .promo-track { gap: 16px; font-size: 12px; }
}

@media print {
  .promo-bar, .util-bar, .mainnav, .signup, .site-footer, .filters, .buy-form { display: none; }
}
