:root {
  color-scheme: light;
  --ink: #131b2e;
  --navy: #283044;
  --yellow: #facc15;
  --paper: #faf8ff;
  --soft: #f2f3ff;
  --line: #e2e7ff;
  --muted: #575e70;
  --gold: #735c00;
  --red: #b91a24;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 14px/1.55 "Plus Jakarta Sans", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #806700; outline-offset: 3px; }
h1, h2, h3, p { margin: 0 0 .65em; }
h1, h2, h3 { line-height: 1.2; }
h1, h2 { font-weight: 800; letter-spacing: -.035em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1rem; }
.wrap { width: min(100% - 32px, 1248px); margin-inline: auto; }
.section { margin-block: 28px; }
.inner { padding-block: 32px 44px; min-height: 50vh; }
.skip { position: fixed; top: 4px; left: 4px; z-index: 20; background: white; padding: 10px; transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { position: sticky; z-index: 5; top: 0; background: var(--ink); color: white; box-shadow: 0 5px 18px #131b2e22; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(.95rem, 2vw, 1.2rem); font-weight: 800; }
.brand img { object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--yellow); color: var(--ink); font-size: .8rem; }
.search { display: flex; flex: 1; min-width: 0; }
.search input { width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 8px 0 0 8px; padding: 9px 12px; background: white; }
.search button { border: 0; border-radius: 0 8px 8px 0; padding: 9px 14px; color: var(--ink); background: var(--yellow); font-weight: 800; white-space: nowrap; }
.header-link { white-space: nowrap; font-weight: 700; }
.count { display: inline-block; min-width: 21px; margin-left: 4px; border-radius: 20px; background: var(--yellow); color: var(--ink); text-align: center; }
.menu { background: var(--soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.menu-row { display: flex; align-items: center; gap: 20px; overflow-x: auto; }
.menu-row a { padding: 11px 0; white-space: nowrap; font-size: .83rem; font-weight: 700; }
.menu-row .menu-all { background: var(--yellow); padding-inline: 14px; }

.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 18px; }
.hero-main, .side-card, .promo { position: relative; overflow: hidden; isolation: isolate; border-radius: 12px; }
.hero-main { display: flex; align-items: center; min-height: 345px; background: var(--navy); color: white; }
.hero-main > img, .promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #131b2ef5, #131b2eae 53%, #131b2e36); }
.hero-copy { padding: clamp(20px, 4vw, 42px); }
.hero-copy p:not(.eyebrow) { max-width: 43ch; color: #eef0ff; }
.hero-copy em { color: var(--yellow); font-style: normal; }
.eyebrow { margin-bottom: 6px; color: var(--gold); font-size: .71rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.badge { display: inline-block; padding: 5px 10px; background: #131b2eaf; border: 1px solid #facc1580; border-radius: 30px; color: var(--yellow); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; background: var(--yellow); color: var(--ink); font-weight: 800; }
.button:hover { background: #ffe083; }
.button:disabled { background: var(--line); color: var(--muted); cursor: default; }
.button-outline { background: white; border-color: var(--line); }
.hero-side { display: grid; gap: 14px; grid-auto-rows: 1fr; }
.side-card { display: flex; align-items: center; padding: 18px; background: #fff4cb; min-height: 120px; }
.side-blue { background: #e2e7ff; }
.side-card img { position: absolute; inset: 0 0 0 auto; width: 43%; height: 100%; object-fit: cover; z-index: -1; }
.side-card div { width: 62%; }
.side-card h2 { font-size: clamp(.95rem, 2vw, 1.25rem); }
.side-card span, .promo span { font-weight: 800; }

.brands { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 14px; }
.brands img { width: 100%; height: 57px; padding: 10px; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 9px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h2 { margin: 0; }
.section-title > a { color: var(--gold); font-weight: 800; font-size: .81rem; }
.categories, .services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.category { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.category img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--soft); }
.category > span, .text-category { display: flex; justify-content: space-between; gap: 7px; padding: 11px 12px; font-weight: 800; }
.category span span { color: var(--gold); }
.shelf--featured .shelf-inner { background: var(--ink); padding: 16px; border-radius: 12px; }
.shelf--dark { padding: 25px 0; background: var(--navy); }
.shelf--featured .section-title, .shelf--dark .section-title { color: white; }
.shelf--featured .section-title a, .shelf--dark .section-title a,
.shelf--featured .section-title .eyebrow, .shelf--dark .section-title .eyebrow { color: var(--yellow); }
.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.product-card, .article-card, .panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.product-image { display: block; position: relative; aspect-ratio: 1; background: var(--soft); }
.product-image img { width: 100%; height: 100%; object-fit: contain; background: white; }
.sale-badge { position: absolute; top: 8px; left: 8px; background: var(--red); color: white; padding: 3px 7px; border-radius: 6px; font-weight: 800; font-size: .75rem; }
.product-card-copy { padding: 10px; overflow-wrap: anywhere; }
.product-card h3 { margin-bottom: .45em; font-size: .89rem; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price { color: var(--red); font-size: 1.04rem; }
del, .muted { color: var(--muted); }
del { font-size: .8rem; }
.promos, .detail, .cart-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.promo { display: flex; align-items: center; padding: 24px; min-height: 170px; background: #f8e6ac; }
.promo img { opacity: .26; }
.promo-dark { background: var(--navy); color: white; }
.promo-dark .eyebrow { color: var(--yellow); }
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.article-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.article-card div, .panel { padding: 16px; }
.services a { display: flex; align-items: center; gap: 10px; background: var(--soft); padding: 12px; border-radius: 9px; font-weight: 700; }
.services span { color: var(--gold); }

.rte { overflow-wrap: anywhere; margin-bottom: 16px; }
.rte img { height: auto; }
.reading { max-width: 860px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.pagination a { padding: 8px 12px; background: var(--line); border-radius: 8px; }
.gallery > img { width: 100%; max-height: 560px; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs button { width: 62px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.detail-copy .price { font-size: 1.55rem; }
.stack { display: grid; gap: 9px; }
.stack :is(select, input, textarea), .cart-line input { width: 100%; min-height: 40px; border: 1px solid #a7aec3; border-radius: 7px; background: white; color: var(--ink); padding: 7px 9px; }
.stack input[type=number] { max-width: 90px; }
.cart-layout { grid-template-columns: 2fr 1fr; }
.cart-line { display: grid; grid-template-columns: 65px minmax(0, 1fr) 78px auto; align-items: center; gap: 10px; padding: 10px 0; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line p { margin: 2px 0; }
.cart-photo img { aspect-ratio: 1; object-fit: contain; }
.site-footer { padding: 30px 0 12px; background: var(--navy); color: #eef0ff; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-row nav { display: grid; gap: 6px; }
.copyright { padding-top: 12px; margin-top: 18px; border-top: 1px solid #ffffff33; font-size: .78rem; }
.mobile-dock { display: none; }

@media (max-width: 900px) {
  .header-row { gap: 12px; }
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 24px); }
  .header-row { flex-wrap: wrap; padding: 9px 0; gap: 8px; }
  .search { flex-basis: 100%; }
  .header-link { display: none; }
  .menu-row { gap: 12px; }
  .menu-row a { padding-block: 8px; }
  .hero, .detail, .cart-layout { grid-template-columns: 1fr; }
  .hero { margin-top: 12px; gap: 9px; }
  .hero-main { min-height: 265px; }
  .hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .side-card { padding: 10px; }
  .side-card .eyebrow { font-size: .59rem; }
  .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brands img { height: 45px; }
  .products, .categories, .services, .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shelf--featured .shelf-inner { padding: 10px; }
  .promos { gap: 8px; }
  .promo { min-height: 150px; padding: 12px; }
  .promo h2 { font-size: 1.02rem; }
  .cart-line { grid-template-columns: 50px minmax(0, 1fr) 64px; }
  .cart-line > strong { grid-column: 2 / -1; }
  .site-footer { padding-bottom: 74px; }
  .mobile-dock { position: fixed; inset: auto 0 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 0 env(safe-area-inset-bottom); background: white; border-top: 1px solid var(--line); text-align: center; font-size: .69rem; font-weight: 700; }
  .mobile-dock a { min-height: 44px; }
  .mobile-dock span { display: block; font-size: 1.13rem; line-height: 1.25; }
}
@media (max-width: 355px) {
  .hero-side, .promos { grid-template-columns: 1fr; }
}
.quick-cart { position: relative; }
.quick-cart summary { cursor: pointer; white-space: nowrap; font-weight: 700; }
.quick-cart-panel { position: absolute; z-index: 6; top: calc(100% + 16px); right: 0; width: min(340px, 90vw); color: var(--ink); box-shadow: 0 12px 32px #131b2e33; }
.quick-cart-panel h2 { font-size: 1.15rem; }
.quick-cart-panel ul { margin: 0 0 12px; padding: 0; list-style: none; }
.quick-cart-panel li { display: grid; gap: 2px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.quick-cart-panel li span { color: var(--muted); font-size: .8rem; }
@media (max-width: 680px) {
  .quick-cart { display: none; }
}
