/* Wrenway — Nordic Crisp White & Deep Navy Lightweight WooCommerce CSS */
:root {
  --bg: #ffffff;
  --surface: #f5f8fa;
  --ink: #121e2b;
  --ink-soft: #566475;
  --navy: #002e66;
  --navy-hover: #001f47;
  --border: #dfe6ee;
  --sage: #1a4731;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.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; }

/* Layout */
.site-shell { display: flex; min-height: 100vh; flex-direction: column; background: var(--bg); }
.site-main { flex: 1 0 auto; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.wrn-sec { padding-block: 3.5rem; }
@media (min-width: 1024px) { .wrn-sec { padding-block: 5rem; } }
.page-head { padding-block: 2.75rem 2.25rem; border-bottom: 1px solid var(--border); background: var(--surface); }
@media (min-width: 1024px) { .page-head { padding-block: 3.75rem 2.75rem; } }

/* Typography */
.heading { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; color: var(--ink); }
.heading-xl { font-size: clamp(2.15rem, 4.4vw, 3.75rem); }
.heading-lg { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.heading-md { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); margin: 0;
}
.lede { font-size: 1.05rem; line-height: 1.65; color: var(--ink-soft); max-width: 36rem; margin: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 13.5px; line-height: 1.6; }
.underline-link { text-decoration: underline; text-underline-offset: 4px; color: var(--navy); }
.underline-link:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 3px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 11.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Fields & Panels */
.field {
  width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 3px;
  padding: 11px 13px; font-size: 15px; color: var(--ink); font-family: inherit;
}
.field:focus { outline: none; border-color: var(--navy); }
.field-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.panel-tint { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }

/* Announcement & Header */
.announce { background: var(--navy); color: #fff; }
.announce-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
}
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--border); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-main { display: flex; align-items: center; gap: 14px; padding-block: 14px; }
@media (min-width: 1024px) { .header-main { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; padding-block: 16px; } }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: -8px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
@media (min-width: 1024px) { .menu-btn { display: none; } }

.wrn-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.wrn-logo-word { font-size: 16px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1; }

.header-search { display: none; }
@media (min-width: 1024px) { .header-search { display: block; max-width: 460px; width: 100%; margin-inline: auto; } }
.search-form { position: relative; display: flex; align-items: center; width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 3px; }
.search-form:focus-within { border-color: var(--navy); background: #fff; }
.search-icon { position: absolute; left: 12px; color: var(--ink-soft); pointer-events: none; }
.search-input { flex: 1; min-width: 0; height: 40px; padding: 0 12px 0 36px; border: 0; background: transparent; font-size: 13.5px; color: var(--ink); outline: none; }
.search-submit { height: 40px; padding-inline: 14px; border: 0; border-left: 1px solid var(--border); background: transparent; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); cursor: pointer; }
.search-submit:hover { background: var(--border); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1024px) { .header-actions { margin-left: 0; gap: 20px; } }
.header-link, .cart-trigger {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding-inline: 4px;
  background: transparent; border: 0; cursor: pointer; color: var(--ink); font-size: 12.5px; font-weight: 500;
}
.header-link:hover, .cart-trigger:hover { color: var(--navy); }
.header-link-text, .cart-trigger-text { display: none; }
@media (min-width: 1024px) { .header-link-text, .cart-trigger-text { display: inline; } }
.cart-count {
  min-width: 20px; height: 20px; padding-inline: 6px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; border-radius: 999px; font-size: 10.5px; font-weight: 600;
}

.header-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); }
@media (min-width: 1024px) { .header-nav { display: block; } }
.header-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); padding-block: 11px; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link-active { color: var(--navy); border-bottom-color: var(--navy); }

/* Drawers */
.wrn-drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.wrn-drawer.is-open { display: block; }
.wrn-drawer-scrim { position: absolute; inset: 0; background: rgba(18,30,43,0.45); }
.wrn-drawer-panel {
  position: absolute; inset-block: 0; left: 0; width: 88%; max-width: 24rem;
  display: flex; flex-direction: column; background: #fff; overflow-y: auto;
}
.wrn-drawer-panel--right { left: auto; right: 0; max-width: 26rem; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.drawer-close { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.drawer-nav { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.drawer-nav a { border-bottom: 1px solid var(--border); padding: 14px 20px; font-size: 15px; font-weight: 500; color: var(--ink); }

/* Hero (Nordic Crisp White Split Banner) */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; padding-block: 3rem; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; padding-block: 4.5rem; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.75rem; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-card { aspect-ratio: 4 / 4; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }

/* Benefits Strip */
.benefits {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr;
  border-bottom: 1px solid var(--border); background: #fff;
}
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefit { padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .benefit { border-bottom: 0; border-right: 1px solid var(--border); } .benefit:last-child { border-right: 0; } }
.benefit-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin: 0 0 6px; }
.benefit-body { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* Product Grid & Tile */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem 1.5rem; }
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.tile {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: border-color 160ms ease;
}
.tile:hover { border-color: var(--navy); }
.tile-media { position: relative; aspect-ratio: 4 / 4; overflow: hidden; background: var(--surface); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; flex: 1; }
.tile-cat { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.tile-name { font-size: 15.5px; font-weight: 600; line-height: 1.35; margin: 0; color: var(--ink); }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 8px; }
.tile-price { font-size: 15px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; margin: 0; }
.tile-sku { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.tile-stock { font-size: 12px; color: var(--sage); margin: 2px 0 0; }

/* About Navy Band */
.about-band { background: var(--ink); color: #fff; padding-block: 4rem; }
.about-band-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .about-band-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }

/* Shop Toolbar & Chips */
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 3px; background: #fff;
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft); cursor: pointer;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[data-active="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.shop-bar { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .shop-bar { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Single Product */
.pdp-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 1.75rem; }
@media (min-width: 1024px) { .pdp-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; } }
.pdp-main-img { aspect-ratio: 4 / 4; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.pdp-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.pdp-thumb { aspect-ratio: 1/1; padding: 0; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); overflow: hidden; cursor: pointer; }
.pdp-thumb.is-active, .pdp-thumb:hover { border-color: var(--navy); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 3px; background: #fff; height: 46px; }
.qty-box button { width: 40px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--ink); }
.qty-box input { width: 40px; height: 100%; border: 0; text-align: center; font-size: 14px; color: var(--ink); -moz-appearance: textfield; }
.qty-box input::-webkit-inner-spin-button, .qty-box input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-tabs { margin-top: 3.25rem; border-top: 1px solid var(--border); padding-top: 1.75rem; }
.pdp-tabs-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; border-bottom: 1px solid var(--border); }
.pdp-tab-btn { background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; }
.pdp-tab-btn.is-active { border-bottom-color: var(--navy); color: var(--navy); }
.pdp-tab-panel { display: none; max-width: 48rem; padding-block: 1.75rem; }
.pdp-tab-panel.is-active { display: block; }

/* Policy & Split Layouts */
.policy-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2.75rem 4rem; }
@media (min-width: 1024px) { .policy-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 4rem; } }
.prose p { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.75; }
.prose li { margin-bottom: 0.35rem; }
.prose h2, .prose h3 { font-size: 1.25rem; font-weight: 600; margin: 1.85rem 0 0.6rem; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.nap-block { background: var(--surface); border: 1px solid var(--border); padding: 1.5rem; border-radius: 4px; }
.nap-block address { font-style: normal; margin: 0.6rem 0; font-size: 14px; color: var(--ink); }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* Footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.35fr 0.85fr 0.95fr 1.15fr; } }
.footer-title { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { font-size: 14px; color: var(--ink-soft); }
.footer-list a:hover { color: var(--navy); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.footer-badge {
  display: inline-flex; align-items: center; border: 1px solid var(--border); background: #fff; border-radius: 3px;
  padding: 5px 9px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 6px; padding-block: 1.25rem; font-size: 12.5px; color: var(--ink-soft); }
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* WooCommerce Cart & Checkout */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce #payment #place_order {
  background: var(--navy) !important; color: #fff !important; font-family: var(--font-sans) !important;
  font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.08em !important; text-transform: uppercase !important;
  padding: 13px 22px !important; border-radius: 3px !important; border: 1px solid transparent !important;
}
.woocommerce .button:hover, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover, .woocommerce #payment #place_order:hover { background: var(--navy-hover) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border: 1px solid var(--border) !important; border-radius: 3px !important; padding: 10px 12px !important; background: #fff !important;
}
.woocommerce-cart .cart_totals, .woocommerce-checkout #order_review {
  background: var(--surface); border: 1px solid var(--border); padding: 1.5rem; border-radius: 4px;
}
.woocommerce-message, .woocommerce-info { border-top-color: var(--navy) !important; background: var(--surface) !important; color: var(--ink) !important; }
