/* Northern Saints FC — shared site styles */

html { scroll-behavior: smooth; }
body { background: #FBF8F1; color: #162447; -webkit-font-smoothing: antialiased; }

.grain::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.07;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.stripes{
  background-image: repeating-linear-gradient(135deg, #C8221A 0 22px, #162447 22px 44px);
}
.stripes-soft{
  background-image: repeating-linear-gradient(135deg, rgba(215,42,30,.10) 0 14px, rgba(22,36,71,.10) 14px 28px);
}
.hoops{
  background:
    linear-gradient(#162447,#162447) 0 0/100% 100% no-repeat,
    linear-gradient(#C8221A,#C8221A) 0 35%/100% 18% no-repeat,
    linear-gradient(#1F7A3C,#1F7A3C) 0 53%/100% 18% no-repeat;
}

@keyframes marq { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.marq-track { animation: marq 38s linear infinite; }

@keyframes rise {
  from { opacity:0; transform: translateY(18px); }
  to   { opacity:1; transform: translateY(0); }
}
.rise > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.rise > *:nth-child(1){ animation-delay:.05s }
.rise > *:nth-child(2){ animation-delay:.18s }
.rise > *:nth-child(3){ animation-delay:.30s }
.rise > *:nth-child(4){ animation-delay:.42s }
.rise > *:nth-child(5){ animation-delay:.54s }

.display-tight { letter-spacing: -0.015em; line-height: .82; }
.display-mega  { font-weight: 900; letter-spacing: -0.02em; line-height: .8; }

.ul-link { position: relative; display:inline-block; }
.ul-link::after{
  content:""; position:absolute; left:0; right:0; bottom:-3px; height:2px;
  background: currentColor; transform-origin:left; transform:scaleX(.2); transition:transform .35s ease;
}
.ul-link:hover::after{ transform:scaleX(1); }

.lift { transition: transform .35s ease, box-shadow .35s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(22,36,71,.30); }

.num-outline      { -webkit-text-stroke: 2px #162447; color: transparent; }
.num-outline-cream{ -webkit-text-stroke: 2px #F4EFE4; color: transparent; }

.nav-btn{ color:#162447 }
.nav-btn:hover { color: #C8221A; }
.nav-btn.is-current{ color:#C8221A }

.logo-on-light{
  filter: drop-shadow(0 1px 0 rgba(22,36,71,.10)) drop-shadow(0 2px 6px rgba(22,36,71,.10));
}
.logo-on-dark{
  filter: drop-shadow(0 0 1px rgba(244,239,228,.55)) drop-shadow(0 4px 18px rgba(0,0,0,.45));
}

.photo-frame { position: relative; overflow: hidden; }
.photo-frame::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(244,239,228,.06);
}
.duotone img{ filter: contrast(1.05) saturate(.9); }
.duotone-dark img{ filter: brightness(.55) contrast(1.1) saturate(.85); }
.img-grayscale img{ filter: grayscale(.85) contrast(1.05); transition: filter .6s ease; }
.img-grayscale:hover img{ filter: grayscale(0) contrast(1.05); }

/* Bullet list pulled in by content blocks */
.bullets li{ position:relative; padding-left:1.75rem; margin-top:.9rem; }
.bullets li::before{
  content:""; position:absolute; left:0; top:.6rem; width:1.25rem; height:2px; background:#C8221A;
}

/* ============================================================
/* ============================================================
   MOBILE MENU SHEET
   ============================================================ */

/* Backdrop overlay behind the sheet */
[data-menu-backdrop]{
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(11, 11, 12, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
[data-menu-backdrop][data-open="true"]{
  opacity: 1;
  visibility: visible;
}

/* The sheet itself slides in from the right */
[data-menu-sheet]{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 420px);
  z-index: 60;
  background: #162447;
  color: #F4EFE4;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.5, 0, .2, 1);
  box-shadow: -12px 0 40px rgba(11, 11, 12, 0.5);
  /* iOS safe areas */
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  /* Hidden by default for screen readers via aria-hidden */
}
[data-menu-sheet][data-open="true"]{
  transform: translateX(0);
}

[data-menu-sheet] .sheet-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(244, 239, 228, 0.1);
  flex-shrink: 0;
}
[data-menu-sheet] .sheet-head img {
  display: block;
}

[data-menu-sheet] .sheet-body{
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
}

[data-menu-sheet] .sheet-section{
  margin-top: 1.75rem;
}
[data-menu-sheet] .sheet-section:first-child{ margin-top: 0; }

[data-menu-sheet] .sheet-label{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #F4B0AB;  /* lighter coral — readable on navy */
  margin-bottom: 0.75rem;
  display: block;
}

[data-menu-sheet] a.sheet-link{
  display: block;
  padding: 0.75rem 0;
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: #F4EFE4;
  border-bottom: 1px solid rgba(244, 239, 228, 0.08);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  /* Minimum tap-target for touch */
  min-height: 44px;
  display: flex;
  align-items: center;
}
[data-menu-sheet] a.sheet-link:last-child{
  border-bottom: 0;
}
[data-menu-sheet] a.sheet-link:hover,
[data-menu-sheet] a.sheet-link:focus,
[data-menu-sheet] a.sheet-link:active{
  color: #F4B0AB;
  transform: translateX(4px);
  outline: none;
}

/* Close button */
[data-menu-sheet] [data-menu-close]{
  background: transparent;
  border: 0;
  color: #F4EFE4;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 44px;
  min-width: 44px;
}
[data-menu-sheet] [data-menu-close]:hover,
[data-menu-sheet] [data-menu-close]:focus-visible{
  background: rgba(244, 239, 228, 0.08);
  color: #FFF;
  outline: none;
}

/* When body has menu-open, lock scroll. The JS sets this class on
   <html> — works on iOS where overflow:hidden alone doesn't. */
html.menu-open,
html.menu-open body{
  overflow: hidden;
  /* Prevent rubber-banding on iOS */
  position: relative;
  height: 100%;
}

   LIGHTBOX
   ============================================================ */
.lightbox-overlay{
  position:fixed; inset:0; z-index:100;
  background:rgba(11,11,12,.95);
  display:none; align-items:center; justify-content:center;
  padding:env(safe-area-inset-top, 1rem) env(safe-area-inset-right, 1rem) env(safe-area-inset-bottom, 1rem) env(safe-area-inset-left, 1rem);
}
.lightbox-overlay.is-open{ display:flex; }
.lightbox-img{
  max-width:min(92vw, 1200px); max-height:80vh; object-fit:contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position:absolute; background:transparent; color:#F4EFE4;
  border:1px solid rgba(244,239,228,.3); cursor:pointer;
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  font-size:24px; line-height:1; transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{
  background:rgba(215,42,30,.8); border-color:#C8221A;
}
.lightbox-close{ top:1rem; right:1rem; }
.lightbox-prev{  left:1rem;  top:50%; transform:translateY(-50%); }
.lightbox-next{ right:1rem;  top:50%; transform:translateY(-50%); }
.lightbox-caption{
  position:absolute; bottom:1rem; left:0; right:0; text-align:center;
  font-family:'JetBrains Mono', monospace; font-size:11px;
  letter-spacing:.2em; color:rgba(244,239,228,.7); text-transform:uppercase;
}

/* ============================================================
   MOBILE-FIRST FIXES
   ============================================================ */
/* Prevent any oversize content forcing horizontal scroll */
html, body{ overflow-x:hidden; }
/* Containers that hold the wide horizontal scroll content should respect viewport */
.no-overflow{ max-width:100%; }
/* Tap targets minimum size for touch */
@media (max-width: 1024px){
  a, button{ min-height:32px; }
}
/* Make absolutely-positioned decorative shapes not force scroll on mobile */
.stripes, .grain::before{ pointer-events:none; }
/* Hero text should never exceed viewport */
.display-mega{ word-break: break-word; overflow-wrap: anywhere; }
/* Improve readability of long form text on mobile */
@media (max-width: 640px){
  .font-serif{ line-height:1.5; }
}

/* Long-form prose sections (code of conduct, policy pages) */
.prose-content > * + * { margin-top: 0; }  /* spacing handled by utilities */
.prose-content ul.bullets > li { padding-left: 0.25rem; }
.prose-content ol > li::marker { color: var(--saint, #C8221A); font-weight: 700; }
.prose-content a:not([class*="bg-"]):not([class*="border-"]) { color: var(--saint, #C8221A); text-decoration: underline; text-underline-offset: 3px; }
.prose-content a:not([class*="bg-"]):not([class*="border-"]):hover { color: var(--blood, #9A1A12); }
/* ============================================================ */
/* MEGA MENU                                                    */
/* ============================================================ */

/* The sticky header already creates a containing block for the
   absolutely-positioned mega menu panels — no extra rule needed. */

/* Make each nav item fill the full header height so there's no
   visual gap between the trigger and the panel below it (which
   would break hover contiguity). */
[data-megamenu] { align-self: stretch; align-items: stretch; }

.megamenu-item {
  position: static;
  display: flex;
  align-items: center;
}

.megamenu-item > .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 14px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.megamenu-item .mega-caret {
  opacity: 0.55;
  transition: transform 180ms ease, opacity 180ms ease;
}

.megamenu-item.has-mega:hover .mega-caret,
.megamenu-item.has-mega:focus-within .mega-caret,
.megamenu-item.has-mega.is-open .mega-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* The panel — positioned to the header so it can span the full width. */
.megamenu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: #162447;          /* navy */
  color: #F4EFE4;
  border-top: 3px solid #C8221A;
  box-shadow: 0 14px 40px rgba(22,36,71,0.30);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  pointer-events: none;
}

.megamenu-item.has-mega:hover > .megamenu-panel,
.megamenu-item.has-mega:focus-within > .megamenu-panel,
.megamenu-item.has-mega.is-open > .megamenu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Inner content is centered & constrained to readable width */
.megamenu-panel-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 40px 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.megamenu-intro {
  border-right: 1px solid rgba(244,239,228,0.14);
  padding-right: 40px;
}
.megamenu-intro > .font-mono {
  color: #F4B0AB;  /* lighter accent for contrast on navy */
}
.megamenu-intro h3 { color: #F4EFE4 !important; }

.megamenu-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 18px;
  background: #C8221A;
  color: #F4EFE4 !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: background 160ms ease;
}
.megamenu-cta:hover { background: #9A1A12; color: #F4EFE4 !important; }

/* Link list — 3-column grid for items, breathable spacing */
.megamenu-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* If a section has few items, drop to 2 columns for a less sparse look */
.megamenu-list:has(li:nth-child(-n+3):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

.megamenu-link {
  display: block;
  padding: 12px 14px;
  border-left: 2px solid transparent;
  color: #F4EFE4;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.megamenu-link:hover,
.megamenu-link:focus-visible {
  background: rgba(244,239,228,0.06);
  border-left-color: #C8221A;
  outline: none;
}

.megamenu-link-label {
  display: block;
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #F4EFE4;
  text-transform: uppercase;
}
.megamenu-link:hover .megamenu-link-label,
.megamenu-link:focus-visible .megamenu-link-label { color: #FFFFFF; }

.megamenu-link-blurb {
  display: block;
  margin-top: 4px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(244,239,228,0.68);
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
}

/* Smaller viewports — collapse to single column and reduce padding */
@media (max-width: 1100px) {
  .megamenu-panel-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 24px 28px;
  }
  .megamenu-intro {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(244,239,228,0.14);
  }
  .megamenu-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .megamenu-list { grid-template-columns: 1fr; }
}

/* ====================================================================
   CLUB SHOP
   Custom components (Tailwind is precompiled, so shop UI is hand-rolled
   here using the club palette: navy #162447, saint #C8221A,
   pitch #1F7A3C, cream #F4EFE4, paper #FBF8F1).
   ==================================================================== */

/* Arbitrary max-widths the shop templates rely on (not in the TW build). */
.max-w-\[1400px\]{ max-width:1400px; }
.max-w-\[1200px\]{ max-width:1200px; }
.max-w-\[900px\] { max-width:900px; }

/* ---- Header cart link + badge ------------------------------------ */
.shop-cart-link{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; color:#162447; transition:color .25s ease;
}
.shop-cart-link:hover{ color:#C8221A; }
.shop-cart-link svg{ width:22px; height:22px; }
.shop-cart-badge{
  position:absolute; top:2px; right:2px; min-width:18px; height:18px; padding:0 4px;
  display:inline-flex; align-items:center; justify-content:center;
  background:#C8221A; color:#fff; font-family:"JetBrains Mono",monospace; font-size:10px;
  font-weight:700; line-height:1; border-radius:0;
}
/* On the dark mobile drawer, flip the icon to cream */
.is-dark .shop-cart-link{ color:#F4EFE4; }
.is-dark .shop-cart-link:hover{ color:#C8221A; }

/* ---- Shared buttons ---------------------------------------------- */
.shop-btn{
  display:inline-flex; align-items:center; gap:.5rem; padding:.85rem 1.5rem;
  background:#C8221A; color:#fff; font-family:"JetBrains Mono",monospace;
  font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
  border:2px solid #C8221A; cursor:pointer; transition:transform .25s ease, background .25s ease, color .25s ease;
}
.shop-btn:hover{ background:#9A1A12; border-color:#9A1A12; transform:translateY(-2px); }
.shop-btn-ghost{
  display:inline-flex; align-items:center; gap:.5rem; padding:.8rem 1.3rem;
  background:transparent; color:#162447; font-family:"JetBrains Mono",monospace;
  font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em;
  border:2px solid #162447; cursor:pointer; transition:background .25s ease, color .25s ease;
}
.shop-btn-ghost:hover{ background:#162447; color:#F4EFE4; }

/* ---- Toolbar: category filter + count ---------------------------- */
.shop-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  flex-wrap:wrap; border-bottom:2px solid #162447; padding-bottom:1rem;
}
.shop-filter{ display:flex; flex-wrap:wrap; gap:.5rem; }
.shop-filter-pill{
  padding:.45rem .9rem; font-family:"JetBrains Mono",monospace; font-size:.74rem;
  font-weight:600; text-transform:uppercase; letter-spacing:.06em;
  color:#162447; border:1.5px solid rgba(22,36,71,.25); background:transparent;
  transition:all .2s ease; white-space:nowrap;
}
.shop-filter-pill:hover{ border-color:#162447; }
.shop-filter-pill.is-active{ background:#162447; color:#F4EFE4; border-color:#162447; }
.shop-toolbar-count{ font-size:.78rem; color:rgba(22,36,71,.6); letter-spacing:.05em; white-space:nowrap; }

/* ---- Product grid + cards ---------------------------------------- */
.shop-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem;
}
.shop-card{
  display:flex; flex-direction:column; background:#fff; border:2px solid #162447;
  text-decoration:none; transition:transform .35s ease, box-shadow .35s ease;
}
.shop-card:hover{ transform:translateY(-4px); box-shadow:0 24px 50px -20px rgba(22,36,71,.30); }
.shop-card-media{
  position:relative; aspect-ratio:4/5; overflow:hidden;
  border-bottom:2px solid #162447; background:#162447;
}
.shop-card-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .5s ease;
}
.shop-card:hover .shop-card-img{ transform:scale(1.04); }
.shop-card.is-soldout .shop-card-img{ filter:grayscale(.7) opacity(.8); }
.shop-card-body{ padding:1rem 1.1rem 1.2rem; display:flex; flex-direction:column; gap:.35rem; flex:1; }
.shop-card-eyebrow{
  font-size:.66rem; text-transform:uppercase; letter-spacing:.12em; color:#C8221A; font-weight:600;
}
.shop-card-name{
  font-size:1.15rem; font-weight:900; text-transform:uppercase; line-height:1.02;
  letter-spacing:-.01em; color:#162447;
}
.shop-card-foot{
  margin-top:auto; padding-top:.6rem; display:flex; align-items:baseline; justify-content:space-between; gap:.5rem;
}
.shop-price{ font-size:1.05rem; font-weight:700; color:#162447; }
.shop-card-meta{ font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; color:rgba(22,36,71,.55); }

/* Badge ribbon + sold-out tag */
.shop-badge{
  position:absolute; top:0; left:0; z-index:2; padding:.35rem .7rem;
  background:#1F7A3C; color:#fff; font-family:"JetBrains Mono",monospace;
  font-size:.62rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em;
}
.shop-soldout-tag{
  position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center;
  background:rgba(22,36,71,.55); color:#F4EFE4; font-family:"Big Shoulders Display",sans-serif;
  font-weight:900; font-size:1.6rem; text-transform:uppercase; letter-spacing:.06em;
}

/* ---- Placeholder tile (no photo yet) ----------------------------- */
.shop-ph{
  position:absolute; inset:0; width:100%; height:100%; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.shop-ph-stripes{
  position:absolute; inset:0; opacity:.16;
  background-image:repeating-linear-gradient(135deg, currentColor 0 16px, transparent 16px 34px);
}
.shop-ph-grain{ position:absolute; inset:0; }
.shop-ph-mark{
  position:relative; z-index:1; font-size:2.8rem; line-height:1; letter-spacing:.02em; opacity:.92;
}
.shop-ph-cat{
  position:relative; z-index:1; margin-top:.5rem; font-size:.6rem; text-transform:uppercase;
  letter-spacing:.18em; opacity:.7;
}

/* ---- Reassurance strip ------------------------------------------- */
.shop-assure{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem;
  border-top:2px solid #162447; padding-top:2rem;
}
.shop-assure-k{ font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color:#C8221A; font-weight:700; }
.shop-assure-v{ margin-top:.4rem; color:rgba(22,36,71,.75); font-size:.95rem; line-height:1.5; }

/* ---- Empty states ------------------------------------------------ */
.shop-empty{
  border:2px dashed #162447; background:#fff; padding:4rem 2rem; text-align:center; margin-top:2.5rem;
}

/* ---- Flash / notices --------------------------------------------- */
.shop-note{
  padding:.85rem 1.1rem; border-left:4px solid #162447; background:#fff; margin-bottom:1.25rem;
  font-family:"Fraunces",serif; font-size:.95rem; color:#162447;
}
.shop-note.is-ok   { border-color:#1F7A3C; background:rgba(31,122,60,.06); }
.shop-note.is-error{ border-color:#C8221A; background:rgba(200,34,26,.06); }
.shop-note.is-warn { border-color:#b07a00; background:rgba(176,122,0,.07); }
.shop-note-tight{ margin-top:.8rem; margin-bottom:0; font-size:.85rem; }
.shop-note a{ font-weight:600; }

/* ---- Breadcrumb -------------------------------------------------- */
.shop-crumb{ display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; font-size:.72rem;
  text-transform:uppercase; letter-spacing:.07em; color:rgba(22,36,71,.55); }
.shop-crumb a{ color:rgba(22,36,71,.55); transition:color .2s ease; }
.shop-crumb a:hover{ color:#C8221A; }
.shop-crumb .is-current{ color:#162447; }

/* ---- Product detail ---------------------------------------------- */
.shop-pd{ display:grid; grid-template-columns:1fr 1fr; gap:3rem; margin-top:2rem; align-items:start; }
.shop-pd-media{ position:relative; }
.shop-pd-media-inner{
  position:relative; aspect-ratio:4/5; overflow:hidden;
  border:2px solid #162447; background:#162447;
}
.shop-pd-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.shop-pd-info{ padding-top:.5rem; }
.shop-pd-name{
  font-size:clamp(2rem,4vw,3rem); font-weight:900; text-transform:uppercase; line-height:.92;
  letter-spacing:-.02em; color:#162447; margin:.4rem 0 .6rem;
}
.shop-pd-price{ font-size:1.5rem; font-weight:700; color:#C8221A; margin-bottom:1.3rem; }
.shop-pd-desc{ display:flex; flex-direction:column; gap:.85rem; margin-bottom:1.75rem; }
.shop-pd-desc p{ color:rgba(22,36,71,.82); font-size:1.02rem; line-height:1.6; }

/* Form fields: size grid + qty */
.shop-pd-form{ display:flex; flex-direction:column; gap:1.5rem; }
.shop-field-label{
  display:block; font-family:"JetBrains Mono",monospace; font-size:.72rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.08em; color:#162447; margin-bottom:.6rem;
}
.shop-size-grid{ display:flex; flex-wrap:wrap; gap:.5rem; }
.shop-size{ position:relative; }
.shop-size input{ position:absolute; opacity:0; width:0; height:0; }
.shop-size span{
  display:inline-flex; align-items:center; justify-content:center; min-width:3rem; padding:.55rem .8rem;
  border:2px solid rgba(22,36,71,.3); font-family:"JetBrains Mono",monospace; font-size:.82rem;
  font-weight:600; color:#162447; cursor:pointer; transition:all .18s ease; user-select:none;
}
.shop-size span:hover{ border-color:#162447; }
.shop-size input:checked + span{ background:#162447; color:#F4EFE4; border-color:#162447; }
.shop-size input:focus-visible + span{ outline:2px solid #C8221A; outline-offset:2px; }

.shop-qty{ display:inline-flex; align-items:stretch; border:2px solid #162447; width:max-content; }
.shop-qty-btn{
  width:2.6rem; background:#fff; color:#162447; font-size:1.2rem; line-height:1; cursor:pointer;
  border:0; transition:background .2s ease, color .2s ease;
}
.shop-qty-btn:hover{ background:#162447; color:#F4EFE4; }
.shop-qty-input{
  width:3.2rem; text-align:center; border:0; border-left:2px solid #162447; border-right:2px solid #162447;
  font-family:"JetBrains Mono",monospace; font-size:.95rem; font-weight:700; color:#162447; background:#fff;
  -moz-appearance:textfield;
}
.shop-qty-input::-webkit-outer-spin-button,
.shop-qty-input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

.shop-add-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem; width:100%;
  padding:1.05rem 1.5rem; background:#C8221A; color:#fff; font-family:"JetBrains Mono",monospace;
  font-size:.9rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; border:2px solid #C8221A;
  cursor:pointer; transition:transform .25s ease, background .25s ease;
}
.shop-add-btn:hover{ background:#9A1A12; border-color:#9A1A12; transform:translateY(-2px); }
.shop-add-btn:disabled{ background:rgba(22,36,71,.25); border-color:transparent; color:#fff; cursor:not-allowed; transform:none; }

.shop-pd-trust{ margin-top:1.75rem; padding-top:1.5rem; border-top:1px solid rgba(22,36,71,.15);
  display:flex; flex-direction:column; gap:.55rem; }
.shop-pd-trust li{ display:flex; gap:.6rem; align-items:flex-start; font-family:"Fraunces",serif;
  font-size:.92rem; color:rgba(22,36,71,.75); }
.shop-pd-trust li::before{ content:"✓"; color:#1F7A3C; font-weight:700; }

/* ---- Cart -------------------------------------------------------- */
.shop-cart{ display:grid; grid-template-columns:1fr 360px; gap:2.5rem; align-items:start; }
.shop-cart-table{ border:2px solid #162447; background:#fff; }
.shop-cart-head{
  display:grid; grid-template-columns:1fr 130px 110px 44px; gap:1rem; align-items:center;
  padding:.8rem 1.1rem; background:#162447; color:#F4EFE4;
  font-size:.68rem; text-transform:uppercase; letter-spacing:.08em;
}
.shop-line{
  display:grid; grid-template-columns:1fr 130px 110px 44px; gap:1rem; align-items:center;
  padding:1.1rem; border-bottom:1px solid rgba(22,36,71,.12);
}
.shop-line:last-child{ border-bottom:0; }
.shop-line-item{ display:flex; gap:1rem; align-items:center; min-width:0; }
.shop-line-media{ position:relative; flex:0 0 auto; width:78px; height:78px; overflow:hidden;
  border:1.5px solid #162447; background:#162447; }
.shop-line-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.shop-line-info{ min-width:0; }
.shop-line-name{ display:block; font-family:"Big Shoulders Display",sans-serif; font-weight:900;
  font-size:1.05rem; text-transform:uppercase; line-height:1.05; color:#162447; }
.shop-line-name:hover{ color:#C8221A; }
.shop-line-variant{ font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; color:rgba(22,36,71,.6); margin-top:.2rem; }
.shop-line-unit{ font-size:.72rem; color:rgba(22,36,71,.5); margin-top:.15rem; }
.shop-line-qty{ display:flex; justify-content:flex-start; }
.shop-line-qty .shop-qty{ border-width:1.5px; }
.shop-line-qty .shop-qty-btn{ width:2rem; font-size:1rem; }
.shop-line-qty .shop-qty-input{ width:2.6rem; font-size:.85rem; }
.shop-line-total{ font-size:.95rem; font-weight:700; color:#162447; text-align:left; }
.shop-line-remove{ display:flex; justify-content:flex-end; }
.shop-line-x{
  width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center;
  background:transparent; border:1.5px solid rgba(22,36,71,.25); color:rgba(22,36,71,.6);
  font-size:1.1rem; line-height:1; cursor:pointer; transition:all .2s ease;
}
.shop-line-x:hover{ background:#C8221A; border-color:#C8221A; color:#fff; }

.shop-cart-actions{ display:flex; justify-content:space-between; gap:1rem; margin-top:1.25rem; flex-wrap:wrap; }

/* Cart summary */
.shop-summary{ position:sticky; top:1.5rem; }
.shop-summary-card{ border:2px solid #162447; background:#fff; padding:1.5rem; }
.shop-summary-title{ font-size:1.5rem; font-weight:900; text-transform:uppercase; color:#162447;
  letter-spacing:-.01em; margin-bottom:1.1rem; }
.shop-summary-row{ display:flex; justify-content:space-between; gap:1rem; font-size:.9rem;
  color:#162447; padding:.35rem 0; }
.shop-summary-row.is-muted{ color:rgba(22,36,71,.55); }
.shop-summary-divider{ height:2px; background:#162447; margin:.9rem 0; }
.shop-summary-row.is-total{ font-size:1.1rem; font-weight:700; }
.shop-summary-note{ font-size:.8rem; color:rgba(22,36,71,.6); line-height:1.5; margin:.6rem 0 1.2rem; }
.shop-checkout-btn{
  display:flex; align-items:center; justify-content:center; gap:.5rem; width:100%; padding:1.05rem 1.5rem;
  background:#1F7A3C; color:#fff; font-family:"JetBrains Mono",monospace; font-size:.88rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.07em; border:2px solid #1F7A3C; cursor:pointer;
  transition:transform .25s ease, background .25s ease;
}
.shop-checkout-btn:hover{ background:#176030; border-color:#176030; transform:translateY(-2px); }
.shop-checkout-btn:disabled{ background:rgba(22,36,71,.25); border-color:transparent; cursor:not-allowed; transform:none; }
.shop-summary-trust{ display:flex; align-items:center; justify-content:space-between; gap:.5rem;
  margin-top:1rem; font-size:.7rem; color:rgba(22,36,71,.55); letter-spacing:.04em; }
.shop-testmode{ padding:.1rem .45rem; background:#b07a00; color:#fff; font-size:.6rem; text-transform:uppercase; letter-spacing:.08em; }
.shop-clear-link{ display:block; width:100%; text-align:center; margin-top:1rem; padding:.4rem;
  background:transparent; border:0; color:rgba(22,36,71,.5); font-family:"JetBrains Mono",monospace;
  font-size:.7rem; text-transform:uppercase; letter-spacing:.07em; cursor:pointer; transition:color .2s ease; }
.shop-clear-link:hover{ color:#C8221A; }

/* ---- Receipt / confirmation -------------------------------------- */
.shop-receipt{ border:2px solid #162447; background:#fff; }
.shop-receipt-head{ display:flex; gap:1.1rem; align-items:center; padding:1.5rem; border-bottom:2px solid #162447;
  background:rgba(31,122,60,.05); }
.shop-receipt-tick{ flex:0 0 auto; width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  background:#1F7A3C; color:#fff; font-size:1.5rem; font-weight:700; }
.shop-receipt-id{ font-size:1.5rem; font-weight:900; text-transform:uppercase; color:#162447; line-height:1; margin:.15rem 0; }
.shop-receipt-items{ padding:.5rem 1.5rem; }
.shop-receipt-row{ display:grid; grid-template-columns:2.5rem 1fr auto; gap:.8rem; align-items:baseline;
  padding:.65rem 0; border-bottom:1px solid rgba(22,36,71,.1); font-size:.9rem; color:#162447; }
.shop-receipt-row:last-child{ border-bottom:0; }
.shop-receipt-qty{ color:rgba(22,36,71,.55); font-weight:700; }
.shop-receipt-amt{ font-weight:700; white-space:nowrap; }
.shop-receipt-totals{ padding:1rem 1.5rem; border-top:2px solid #162447; }
.shop-receipt-trow{ display:flex; justify-content:space-between; gap:1rem; padding:.3rem 0; font-size:.9rem; color:#162447; }
.shop-receipt-trow.is-total{ font-size:1.15rem; font-weight:700; border-top:1px solid rgba(22,36,71,.15);
  margin-top:.5rem; padding-top:.7rem; }
.shop-receipt-ship{ padding:1.25rem 1.5rem; border-top:1px solid rgba(22,36,71,.12); }
.shop-receipt-ship p{ margin-top:.4rem; line-height:1.5; }
.shop-receipt-foot{ display:flex; gap:1rem; flex-wrap:wrap; padding:1.5rem; border-top:2px solid #162447; }

/* ---- Responsive -------------------------------------------------- */
@media (max-width:1100px){
  .shop-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:860px){
  .shop-pd{ grid-template-columns:1fr; gap:2rem; }
  .shop-pd-media{ position:static; }
  .shop-cart{ grid-template-columns:1fr; gap:2rem; }
  .shop-summary{ position:static; }
  .shop-assure{ grid-template-columns:1fr; gap:1.25rem; }
}
@media (max-width:680px){
  .shop-grid{ grid-template-columns:repeat(2,1fr); gap:1rem; }
  .shop-card-name{ font-size:1rem; }
  .shop-card-body{ padding:.8rem .85rem 1rem; }
  /* Cart lines reflow: media+info on top, controls below */
  .shop-cart-head{ display:none; }
  .shop-line{ grid-template-columns:1fr auto; grid-template-areas:"item remove" "qty total"; gap:.75rem 1rem; }
  .shop-line-item{ grid-area:item; }
  .shop-line-qty{ grid-area:qty; }
  .shop-line-total{ grid-area:total; align-self:center; text-align:right; }
  .shop-line-remove{ grid-area:remove; align-self:start; }
}

/* ---- Shop: search + sort controls -------------------------------- */
.shop-controls{ display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.shop-search{ position:relative; display:flex; align-items:stretch; border:2px solid #162447; background:#fff; }
.shop-search-icon{ position:absolute; left:.7rem; top:50%; transform:translateY(-50%); color:rgba(22,36,71,.5); pointer-events:none; }
.shop-search-input{
  border:0; background:transparent; padding:.55rem .7rem .55rem 2.1rem; width:13rem; max-width:46vw;
  font-size:.82rem; color:#162447; outline:none;
}
.shop-search-input::placeholder{ color:rgba(22,36,71,.45); }
.shop-search-input::-webkit-search-cancel-button{ cursor:pointer; }
.shop-search-go{
  border:0; border-left:2px solid #162447; background:#162447; color:#F4EFE4; padding:0 .9rem;
  font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; cursor:pointer;
  transition:background .2s ease;
}
.shop-search-go:hover{ background:#C8221A; }
.shop-sort-select{
  border:2px solid #162447; background:#fff; color:#162447; padding:.55rem 2rem .55rem .7rem;
  font-size:.78rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; cursor:pointer;
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'><path d='m6 9 6 6 6-6' stroke='%23162447' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat; background-position:right .6rem center;
}
.shop-sort-select:focus{ outline:2px solid #C8221A; outline-offset:1px; }

.shop-resultline{
  display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  margin-top:1rem; font-size:.78rem; color:rgba(22,36,71,.6); letter-spacing:.04em;
}
.shop-resultline-clear{ color:#C8221A; text-transform:uppercase; letter-spacing:.06em; font-weight:600; }
.shop-resultline-clear:hover{ text-decoration:underline; }
.shop-assure-more{ margin-top:1.25rem; font-size:.8rem; letter-spacing:.05em; }

/* ---- Shop: size guide (product page) ----------------------------- */
.shop-sizeguide{ border:1.5px solid rgba(22,36,71,.25); background:#fff; }
.shop-sizeguide-summary{
  display:flex; align-items:center; justify-content:space-between; gap:1rem; cursor:pointer;
  padding:.7rem .9rem; font-size:.74rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em;
  color:#162447; list-style:none;
}
.shop-sizeguide-summary::-webkit-details-marker{ display:none; }
.shop-sizeguide-summary svg{ transition:transform .25s ease; flex:0 0 auto; }
.shop-sizeguide[open] .shop-sizeguide-summary svg{ transform:rotate(180deg); }
.shop-sizeguide-summary:hover{ color:#C8221A; }
.shop-sizeguide-body{ padding:0 .9rem .9rem; }
.shop-sizeguide-table{ width:100%; border-collapse:collapse; font-size:.8rem; }
.shop-sizeguide-table th, .shop-sizeguide-table td{
  border:1px solid rgba(22,36,71,.15); padding:.4rem .55rem; text-align:center; color:#162447;
}
.shop-sizeguide-table thead th{ background:#162447; color:#F4EFE4; font-size:.66rem; text-transform:uppercase; letter-spacing:.05em; }
.shop-sizeguide-table tbody th{ background:rgba(22,36,71,.05); font-weight:700; }
.shop-sizeguide-note{ margin-top:.6rem; font-size:.8rem; color:rgba(22,36,71,.6); line-height:1.5; }

/* ---- Shipping & returns policy page ------------------------------ */
.shop-policy-h{
  font-size:clamp(1.4rem,3vw,2rem); font-weight:900; text-transform:uppercase; color:#162447;
  letter-spacing:-.01em; line-height:1; margin:2.2rem 0 .8rem;
}
.shop-policy-h:first-of-type{ margin-top:0; }
.shop-policy p{ color:rgba(22,36,71,.85); font-size:1.02rem; line-height:1.65; margin-bottom:.9rem; }
.shop-policy-muted{ color:rgba(22,36,71,.6) !important; font-size:.92rem !important; }
.shop-policy-ship{ border:2px solid #162447; background:#fff; margin:.4rem 0 1rem; }
.shop-policy-ship-row{
  display:grid; grid-template-columns:1fr auto auto; gap:1rem; align-items:center;
  padding:.85rem 1.1rem; border-bottom:1px solid rgba(22,36,71,.12);
}
.shop-policy-ship-row:last-child{ border-bottom:0; }
.shop-policy-ship-name{ font-size:.82rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#162447; }
.shop-policy-ship-eta{ font-size:.92rem; color:rgba(22,36,71,.7); text-align:right; }
.shop-policy-ship-price{ font-size:.95rem; font-weight:700; color:#1F7A3C; min-width:4rem; text-align:right; }
.shop-policy-list{ margin:.2rem 0 1rem; display:flex; flex-direction:column; gap:.7rem; }
.shop-policy-list li{ position:relative; padding-left:1.4rem; color:rgba(22,36,71,.85); font-size:1rem; line-height:1.6; }
.shop-policy-list li::before{ content:""; position:absolute; left:0; top:.55rem; width:.8rem; height:2px; background:#C8221A; }
.shop-policy-cta{ margin-top:2rem; }
@media (max-width:560px){
  .shop-policy-ship-row{ grid-template-columns:1fr auto; }
  .shop-policy-ship-eta{ grid-column:1 / -1; text-align:left; }
}

/* ====================================================================
   SHOP — utility shims + late-added components
   The site's Tailwind build is precompiled, so a few utility classes the
   shop templates use weren't generated. We define them here (matching
   Tailwind's scale + the lg = 1024px breakpoint), plus the handful of
   shop components that needed their own styles.
   ==================================================================== */

/* Visually-hidden (screen-reader only) — hides the cart's remove/clear
   helper forms and a11y labels that were otherwise rendering as text. */
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Missing vertical-padding utilities (rem values per Tailwind's scale). */
.py-14{ padding-top:3.5rem; padding-bottom:3.5rem; }
.py-16{ padding-top:4rem;   padding-bottom:4rem; }
@media (min-width:1024px){
  .lg\:py-24{ padding-top:6rem; padding-bottom:6rem; }
  .lg\:pt-14{ padding-top:3.5rem; }
  .lg\:pb-28{ padding-bottom:7rem; }
}

/* Reassurance strip items — red accent rule. */
.shop-assure-item{ padding-left:1rem; border-left:2px solid #C8221A; }

/* Cart left column (grid child) — allow inner content to shrink. */
.shop-cart-main{ min-width:0; }

/* Product page: qty stepper + add-to-cart sit on one bottom-aligned row. */
.shop-pd-actions{ display:flex; align-items:flex-end; gap:1rem; margin-top:.25rem; }
.shop-pd-actions .shop-field{ flex:0 0 auto; margin:0; }
.shop-pd-actions .shop-add-btn{ flex:1 1 auto; }

/* "Back to the shop" link under the product. */
.shop-pd-back{
  display:inline-block; margin-top:1.5rem; font-size:.76rem; text-transform:uppercase;
  letter-spacing:.07em; color:rgba(22,36,71,.6);
}
.shop-pd-back:hover{ color:#C8221A; }

/* Related-products section. */
.shop-related{ margin-top:4rem; padding-top:3rem; border-top:2px solid #162447; }

/* Receipt line item name (grid middle column) — allow shrink. */
.shop-receipt-name{ min-width:0; }

@media (max-width:480px){
  /* Keep qty + button readable on very small screens. */
  .shop-pd-actions{ gap:.75rem; }
  .shop-pd-actions .shop-add-btn{ padding-left:.75rem; padding-right:.75rem; }
}
