/* ==========================================================================
   Murph's Mitt Maintenance — styles-17
   Ground-up redesign. Typography-led, hairline dividers, minimal chrome.
   Palette: warm near-white bg, navy #092f4d, red #921a24 used sparingly
   (sold / out-of-stock / required markers only).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root{
  --bg: #fcfbf9;
  --bg-alt: #f6f4ef;
  --surface: #ffffff;

  --navy: #092f4d;
  --navy-deep: #06223a;
  --red: #921a24;

  --ink: #10222f;                      /* headings that aren't pure navy */
  --text: #333f4b;                     /* body copy */
  --muted: #64707c;                    /* secondary copy */
  --faint: #8a949e;                    /* captions, legal */

  --hairline: rgba(9, 47, 77, .14);
  --hairline-soft: rgba(9, 47, 77, .08);
  --tint: rgba(9, 47, 77, .045);       /* quiet panels */
  --focus-ring: rgba(9, 47, 77, .18);

  --ok-bg: #eef6ee;  --ok-text: #1e6b34;
  --warn-bg: #fdf6e7; --warn-text: #8a6116;
  --err-bg: #fbeeee;  --err-text: var(--red);

  --font-brand: "Montserrat", system-ui, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
             Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 980px;

  --headerH: 52px;
  --container: 1120px;
  --container-pad: clamp(20px, 4vw, 32px);

  --section-gap: clamp(64px, 9vw, 112px);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video{ max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6{
  margin: 0 0 .45em;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 650;
}

p{ margin: 0 0 1em; }
ul, ol{ margin: 0 0 1em; padding-left: 1.2em; }
li{ margin-bottom: .35em; }

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

button{ font-family: inherit; }

:focus-visible{
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection{ background: rgba(9,47,77,.16); }

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Anchors land below the fixed header with breathing room for eyebrows,
   so in-page links (e.g. FAQ) keep a consistent gap under the header bar */
[id]{ scroll-margin-top: calc(var(--headerH) + 64px); }
.legacy-anchor{ display: block; height: 0; }

.is-hidden{ display: none !important; }

/* --------------------------------------------------------------------------
   3. Buttons & links
   -------------------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 590;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .12s ease;
}
.btn:hover{ text-decoration: none; }
.btn:active{ transform: scale(.98); }

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

.btn-secondary{
  background: transparent;
  color: var(--navy);
  border-color: var(--hairline);
}
.btn-secondary:hover{ border-color: var(--navy); background: var(--tint); }

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

/* Quiet text link with chevron — the preferred secondary action */
.mm-link{
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 560;
  color: var(--navy);
  white-space: nowrap;
}
.mm-link::after{
  content: "\203A";                    /* › */
  font-size: 1.15em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .15s ease;
}
.mm-link:hover{ text-decoration: none; }
.mm-link:hover::after{ transform: translate(2px, -1px); }

.content-link,
.mm-text-link{
  color: var(--navy);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}
.content-link:hover,
.mm-text-link:hover{ text-decoration-color: var(--navy); }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--headerH);
  background: rgba(252, 251, 249, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
body.header-scrolled .site-header{ border-bottom-color: var(--hairline-soft); }

.header-inner{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand:hover{ text-decoration: none; }
.brand img{
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand-text{
  display: flex;
  gap: .4em;
  font-family: var(--font-brand);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--navy);
  white-space: nowrap;
}

.site-nav{
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.site-nav a{
  font-size: 13px;
  font-weight: 480;
  color: var(--muted);
  transition: color .15s ease;
  white-space: nowrap;
}
.site-nav a:hover{ color: var(--navy); text-decoration: none; }
.site-nav a.active,
.site-nav a[aria-current="page"]{ color: var(--navy); font-weight: 600; }

/* Hamburger */
.menu-btn{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-btn span{
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* The additional Glove Care destination needs the compact menu slightly sooner. */
@media (max-width: 1050px){
  .site-nav{ display: none; }
  .menu-btn{ display: flex; }
}

/* Mobile menu overlay */
.mobile-menu{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(252, 251, 249, .94);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}
.mobile-menu.open{ display: block; }
body.menu-open{ overflow: hidden; }

.mobile-menu-inner{
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--container-pad) 32px;
  overflow-y: auto;
}
.mobile-menu-top{
  height: var(--headerH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.mobile-menu .brand img{ width: 28px; height: 28px; }
.mobile-close{
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}
.mobile-links{
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}
.mobile-links a{
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.015em;
  color: var(--navy);
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-links a:hover{ text-decoration: none; }
.mobile-links a.active{ color: var(--muted); }

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */
.site-footer{
  margin-top: var(--section-gap);
  border-top: 1px solid var(--hairline-soft);
  background: var(--bg-alt);
}
.footer-inner{
  padding-top: 44px;
  padding-bottom: 36px;
}

.footer-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand-name{
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--navy);
  margin-bottom: 4px;
}
.footer-tagline{
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 2px;
}
.footer-service-area{
  font-size: 12.5px;
  color: var(--faint);
}

.footer-meta{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.footer-badge img{
  height: 52px;
  width: auto;
}

.social{
  display: flex;
  gap: 14px;
}
.social a{
  display: inline-flex;
  color: var(--muted);
  transition: color .15s ease;
}
.social a:hover{ color: var(--navy); }
.social svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom{
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--faint);
}
.footer-legal{
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-legal a{
  color: var(--faint);
  font-size: 12px;
}
.footer-legal a:hover{ color: var(--navy); }
.footer-contact{ font-size: 12px; color: var(--faint); }
.footer-contact:hover{ color: var(--navy); }

/* --------------------------------------------------------------------------
   6. Shared section primitives
   -------------------------------------------------------------------------- */
.page{ padding-bottom: 0; }
.page-under-header{ padding-top: calc(var(--headerH) + clamp(36px, 6vw, 64px)); }

.mm-eyebrow{
  font-family: var(--font-brand);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
}

.mm-section-title{
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: .4em;
}
h1.mm-section-title{ font-size: clamp(30px, 4.4vw, 44px); }

.mm-section-copy{
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: .8em;
}

.mm-section-intro{ margin-bottom: clamp(24px, 4vw, 40px); }

.note{
  font-size: 13px;
  color: var(--faint);
}

.mm-status-message{
  font-size: 13.5px;
  color: var(--muted);
  padding: 10px 0;
}

.mm-actions{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Final call-to-action — centered, typographic */
.mm-final-cta{
  margin-top: var(--section-gap);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--hairline-soft);
  text-align: center;
}
.mm-final-cta .mm-section-intro{ margin-bottom: 24px; }
.mm-final-cta .mm-section-copy{ margin-inline: auto; }
.mm-final-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. Home
   -------------------------------------------------------------------------- */
.hero{
  padding-top: calc(var(--headerH) + clamp(48px, 8vw, 96px));
}
.hero-inner{
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 56px);
}
.hero-content{
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}
.hero-content h1{
  font-size: clamp(36px, 5.6vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: .35em;
}
.hero-content > p{
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 1.4em;
}
.cta{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-media{
  margin: 0;
}
.hero-media img{
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.home-sections{
  display: block;
}
.home-section{
  margin-top: var(--section-gap);
}

/* Trust cues — quiet inline row under hero */
.home-trust-cues{
  margin-top: clamp(40px, 6vw, 64px);
}
.home-trust-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.home-trust-cue strong{
  display: block;
  font-size: 14px;
  font-weight: 620;
  color: var(--navy);
  margin-bottom: 2px;
}
.home-trust-cue span{
  font-size: 13px;
  color: var(--muted);
}

/* What I do */
.home-section-split{
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.home-trust-panel{
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
}
.home-trust-panel strong{
  display: block;
  font-size: 14px;
  font-weight: 620;
  color: var(--navy);
}
.home-trust-panel span{
  font-size: 13.5px;
  color: var(--muted);
}

.home-services-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 44px);
}
.home-service-item h3{
  font-size: 16px;
  margin-bottom: .3em;
}
.home-service-item p{
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.home-actions{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 4vw, 36px);
}

/* Recent work strip (JS-rendered thumbs) */
.home-gallery-status{
  font-size: 13.5px;
  color: var(--faint);
}
.home-gallery-status:empty{ display: none; }

/* "Similar gloves" mini search under the recent-work strip */
.home-similar-search{ margin-top: 20px; }
.home-similar-label{
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.home-similar-row{
  display: flex;
  gap: 8px;
  max-width: 380px;
}
.home-similar-row input{
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--tint);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  -webkit-appearance: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.home-similar-row input::placeholder{ color: var(--faint); }
.home-similar-row input:focus{
  outline: none;
  background: var(--surface);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.home-similar-row button{
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease;
}
.home-similar-row button:hover{ background: var(--navy-deep); }

/* Process preview */
.home-process-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.home-process-step span{
  display: block;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--faint);
  margin-bottom: 8px;
}
.home-process-step h3{
  font-size: 16px;
  margin-bottom: .3em;
}
.home-process-step p{
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Reviews (home + services)
   -------------------------------------------------------------------------- */
.reviews{
  margin-top: var(--section-gap);
}
.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 44px);
}
.review-card{
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.review-stars{
  font-size: 12px;
  letter-spacing: 2px;
  color: #c9962e;
  margin-bottom: 10px;
}
.review-text{
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}
.review-meta{
  margin-top: auto;
  font-size: 12.5px;
  color: var(--faint);
}
.reviews-actions{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 4vw, 36px);
}

/* --------------------------------------------------------------------------
   9. Services page
   -------------------------------------------------------------------------- */
.services-page .service-group{
  margin-top: var(--section-gap);
}
.services-page .services-hero{ margin-bottom: 0; }
.service-price-note{ font-size: 13px; color: var(--faint); }

.service-list{
  display: flex;
  flex-direction: column;
}
.service-item{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "heading heading" "body body";
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px solid var(--hairline);
}
.service-item:last-child{ border-bottom: 1px solid var(--hairline); }

.service-item-heading{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  grid-area: heading;
}
.service-item-heading h3{
  font-size: 17px;
  margin: 0;
}
.service-price{
  font-size: 15px;
  font-weight: 620;
  color: var(--navy);
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.service-item ul{
  grid-area: body;
  margin: 10px 0 0;
  padding-left: 1.1em;
  max-width: 640px;
}
.service-item li{
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: .3em;
}

.service-item-featured .service-item-heading h3::after{
  content: "Most requested";
  display: inline-block;
  vertical-align: 2px;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Lace colors */
.lace-section{
  margin-top: var(--section-gap);
}
.mm-lace-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 18px 14px;
}
.mm-lace-swatch{
  margin: 0;
  position: relative;
  text-align: center;
}
.mm-lace-swatch img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-soft);
}
.mm-lace-swatch[data-stock-state="out"] img{
  opacity: .45;
  filter: grayscale(.4);
}
.lace-label{
  display: block;
  font-size: 12px;
  font-weight: 560;
  color: var(--navy);
  margin-top: 7px;
  line-height: 1.3;
}
/* Availability sits ON the swatch photo, not under the color name */
.mm-availability-badge{
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 10px;
  font-weight: 640;
  letter-spacing: .03em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(9,47,77,.2);
}
.mm-availability-badge--in{ color: var(--ok-text); }
.mm-availability-badge--out{ color: var(--red); }
.mm-availability-badge--unknown{ color: var(--muted); }
.lace-loading{ grid-column: 1 / -1; }

/* Certification aside */
.service-certification{
  margin-top: var(--section-gap);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}
.service-certification img{
  width: clamp(88px, 12vw, 132px);
  flex-shrink: 0;
}
.service-certification .mm-section-title{ font-size: 21px; }
.service-certification .mm-section-copy{ font-size: 14px; margin-bottom: .6em; }

/* --------------------------------------------------------------------------
   10. Gallery + lightbox
   -------------------------------------------------------------------------- */
.gallery-group{
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--hairline-soft);
}
.gallery-group:first-child{ border-top: 0; padding-top: 0; }
.gallery-group .mm-section-title{ font-size: 20px; }
.gallery-group .mm-section-intro{ margin-bottom: 18px; }

.gallery-strip{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar{ display: none; }

.gallery-thumb{
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 22vw, 210px);
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Album tiles: photo count in the corner, iOS-style frosted pill */
.gallery-thumb-count{
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(9, 47, 77, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 620;
}
.gallery-thumb img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform .25s ease;
}
.gallery-thumb:hover img{ transform: scale(1.03); }

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.gallery-status{ padding: 20px 0; }
.gallery-status:empty{ display: none; }

/* Glove search (gallery page) — quiet pill field, results reuse the strip */
.glove-search-wrap{ margin: 0 0 24px; }
.glove-search-input{
  width: 100%;
  max-width: 420px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--tint);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  -webkit-appearance: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.glove-search-input::placeholder{ color: var(--faint); }
.glove-search-input:focus{
  outline: none;
  background: var(--surface);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.glove-search-empty{
  font-size: 13.5px;
  color: var(--muted);
  padding: 12px 0;
}
.glove-search-card{
  margin: 0;
  flex: 0 0 auto;
  width: clamp(150px, 22vw, 210px);
}
.glove-search-card .gallery-thumb{ width: 100%; }
.glove-search-caption{
  margin-top: 6px;
  font-size: 12px;
  color: var(--faint);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Lightbox (markup + classes consumed by main.js — keep mechanics intact) */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 24, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}
.lightbox.open{ display: flex; }

.lb-viewport{
  width: min(1100px, calc(100vw - 48px));
  height: min(88vh, calc(100dvh - 48px));
  max-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.lb-track{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  will-change: transform;
}
.lb-slide{
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-slide img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: zoom-in;
}
.lb-slide img.is-zoomed{ cursor: grab; }
.lb-slide img.is-panning{ cursor: grabbing; }

/* No chrome: click/tap outside or Esc closes; swipe, edge-taps, trackpad
   scroll, or arrow keys navigate; pinch/double-tap/ctrl+wheel zooms. */
.lb-close,
.lb-prev,
.lb-next{ display: none; }

.lb-hint{
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   11. Process page
   -------------------------------------------------------------------------- */
.process-hero .process-actions,
.relacing-hero .relacing-actions{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.process-gallery{
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.process-gallery::-webkit-scrollbar{ display: none; }
.process-shot{
  margin: 0;
  flex: 0 0 auto;
  width: clamp(170px, 24vw, 230px);
  scroll-snap-align: start;
}
.process-shot-media img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.process-shot figcaption{
  font-size: 12.5px;
  font-weight: 560;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.process-section{
  margin-top: var(--section-gap);
}

.process-journey-list{
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
}
.process-journey-item{
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline-soft);
  margin: 0;
}
.process-journey-item:last-child{ border-bottom: 1px solid var(--hairline-soft); }
.process-step-number{
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--faint);
  padding-top: 3px;
  flex-shrink: 0;
}
.process-journey-item h3{
  font-size: 16px;
  margin-bottom: .25em;
}
.process-journey-item p{
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.process-handoff-grid,
.relacing-split-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: 880px;
}
.process-info-panel h3,
.relacing-split-list h3{
  font-size: 16px;
}
.process-info-panel p,
.relacing-split-list p,
.relacing-split-list li{
  font-size: 13.5px;
  color: var(--muted);
}

.process-review-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.process-review-item h3{ font-size: 15px; }
.process-review-item p{ font-size: 13px; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   12. About page
   -------------------------------------------------------------------------- */
.about-layout{
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.about-photo{
  margin: 0;
  position: sticky;
  top: calc(var(--headerH) + 24px);
}
.about-photo img{
  width: 100%;
  border-radius: var(--radius-lg);
}
.about-story p{
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.2em;
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   13. Relacing / FAQ page
   -------------------------------------------------------------------------- */
.relacing-section{
  margin-top: var(--section-gap);
}
.relacing-info-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.relacing-info-grid-two{ grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.relacing-info-item h3{ font-size: 15px; }
.relacing-info-item p{ font-size: 13.5px; color: var(--muted); margin: 0; }

.relacing-faq-list{
  max-width: 720px;
}
.relacing-faq-item{
  padding: 20px 0;
  border-top: 1px solid var(--hairline-soft);
}
.relacing-faq-item:last-child{ border-bottom: 1px solid var(--hairline-soft); }
.relacing-faq-item h3{
  font-size: 15.5px;
  margin-bottom: .3em;
}
.relacing-faq-item p{
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. Gloves for sale
   -------------------------------------------------------------------------- */
.sale-grid-note{
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 20px;
}
.sale-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
}
.sale-card{ position: relative; }
.sale-card-link{ display: block; }
.sale-card-link:hover{ text-decoration: none; }
.sale-card-media{
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
}
.sale-card-img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .25s ease;
}
.sale-card-link:hover .sale-card-img{ transform: scale(1.03); }
.sale-photo-placeholder{
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--faint);
}
.sale-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.sale-card.is-sold .sale-card-img{ filter: grayscale(.55); opacity: .75; }
.sale-card-body{ padding-top: 12px; }
/* for-sale.js renders the card title as an h2 */
.sale-card-body h2,
.sale-card-body h3{
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 2px;
}
.sale-price{
  font-size: 14px;
  font-weight: 620;
  color: var(--navy);
  margin: 0 0 2px;
  font-variant-numeric: tabular-nums;
}
.sale-meta, .sale-condition{
  font-size: 12.5px;
  color: var(--faint);
  margin: 0;
}
.sale-empty{ grid-column: 1 / -1; }

/* Detail */
.sale-detail{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.sale-detail-gallery{
  display: grid;
  gap: 12px;
  max-width: 620px;
}
.sale-slider{
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.sale-slider-track{
  display: flex;
  width: 100%;
  transition: transform .22s ease;
}
.sale-slide{
  flex: 0 0 100%;
  width: 100%;
}
.sale-slide img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}
.sale-slider-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
}
.sale-slider-dot{
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(9,47,77,.22);
  cursor: pointer;
  transition: background-color .15s ease;
}
.sale-slider-dot.active{ background: var(--navy); }

.sale-detail-summary{
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.sale-detail-price{
  font-size: 21px;
  font-weight: 650;
  color: var(--navy);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.sale-detail-status{
  font-size: 12px;
  font-weight: 620;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ok-text);
  margin: 0;
}
.sale-detail-status.is-sold{ color: var(--red); }

.glove-specs{
  margin: 0 0 20px;
  border-top: 1px solid var(--hairline-soft);
}
.glove-specs > div{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.glove-specs dt{
  font-size: 13px;
  color: var(--faint);
}
.glove-specs dd{
  margin: 0;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text);
}

.sale-detail-description p{
  font-size: 14px;
  color: var(--muted);
}
.sale-detail-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   15. Contact page
   -------------------------------------------------------------------------- */
.contact-page .contact-hero{ margin-bottom: clamp(20px, 3vw, 32px); }

.contact-tab-card{
  max-width: 760px;
}

/* Segmented control (radio-driven — selector structure must match markup) */
.toggle-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle{
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--tint);
  border-radius: var(--radius-sm);
  margin-bottom: clamp(24px, 4vw, 36px);
}
.toggle-tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
#tab-questions:checked ~ .toggle label[for="tab-questions"],
#tab-service:checked ~ .toggle label[for="tab-service"]{
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(9,47,77,.14);
}
.toggle-panel{ display: none; }
#tab-questions:checked ~ .toggle-panel[data-panel="questions"]{ display: block; }
#tab-service:checked ~ .toggle-panel[data-panel="service"]{ display: block; }

.panel-title{
  font-size: 19px;
  margin-bottom: 18px;
}

/* Forms */
.mm-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mm-grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mm-field{
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.mm-field label,
.group-label{
  font-size: 13px;
  font-weight: 590;
  color: var(--navy);
}
.mm-field input:not([type="checkbox"]):not([type="radio"]),
.mm-field select,
.mm-field textarea{
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mm-field input::placeholder,
.mm-field textarea::placeholder{ color: var(--faint); }
.mm-field input:focus,
.mm-field select:focus,
.mm-field textarea:focus{
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.mm-field textarea{ resize: vertical; min-height: 80px; }
.compact-textarea{ min-height: 44px !important; }

.mm-field select{
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23092f4d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.req{ color: var(--red); font-weight: 480; font-size: 12px; }
.req-badge{
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 640;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--red);
}
.required-note{
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.required-note strong{ color: var(--red); font-weight: 600; }

.field-invalid{
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(146,26,36,.12) !important;
}
.group-invalid{
  border-left: 2px solid var(--red);
  padding-left: 12px;
}

/* Choice rows */
.mm-choice-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
/* Services have long labels — stack them as a checklist instead of ragged rows */
#servicesGroup .mm-choice-list,
[data-services-group] .mm-choice-list{
  flex-direction: column;
  align-items: flex-start;
}
.mm-choice{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 480;
  color: var(--text);
  cursor: pointer;
}
.mm-choice input{
  accent-color: var(--navy);
  width: 15px;
  height: 15px;
  margin: 0;
}
/* "Other:" always gets its own full-width row, input inline beside the box */
.mm-inline-other{
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.mm-inline-other .mm-choice{ flex-shrink: 0; }
.mm-inline-other input[type="text"]{
  flex: 1;
  min-width: 0;
  max-width: 320px;
  font-size: 14px;
  padding: 5px 10px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
}
.mm-inline-other input[type="text"]:focus{
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Service request structure */
.service-form-wrap{ max-width: 700px; }
.service-section{
  padding-top: 26px;
  margin-top: 10px;
  border-top: 1px solid var(--hairline);
}
.service-section-title{
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 16px;
}
.service-section-body{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-help{
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.glove-request-card{
  background: var(--tint);
  border-radius: var(--radius-md);
  padding: 18px;
}
/* A single glove reads as plain form fields — no "Glove 1" label, no panel box.
   Both appear only once "Add another glove" creates a second card. */
.glove-information-section:not(.is-multi-glove) [data-primary-glove-card]{
  background: none;
  border-radius: 0;
  padding: 0;
}
.glove-information-section:not(.is-multi-glove) [data-primary-glove-card] .glove-section-heading{
  display: none;
}
.glove-section-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.glove-card-title{
  font-size: 15px;
  margin: 0;
}
.glove-remove-btn{
  background: none;
  border: 0;
  font-size: 12.5px;
  font-weight: 590;
  color: var(--red);
  cursor: pointer;
  padding: 4px 6px;
}
.glove-card-body{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.glove-subgroup{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.glove-subgroup-title{
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}
.additional-gloves{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.glove-add-actions{ margin-top: 4px; }

/* Glove photo uploader (request form) — compact staged-photo tiles */
.glove-photo-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}
.glove-photo-add{
  width: 56px;
  height: 56px;
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.glove-photo-add:hover{ border-color: var(--navy); color: var(--navy); }
.glove-photo-thumb{
  position: relative;
  width: 56px;
  height: 56px;
}
.glove-photo-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.glove-photo-remove{
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(9,47,77,.3);
}

.lace-decision-support{
  font-size: 13px;
  color: var(--muted);
  padding: 0;
}
.inline-lace-reference summary{
  font-size: 13.5px;
  font-weight: 560;
  color: var(--navy);
  cursor: pointer;
}
.form-lace-reference-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 14px 10px;
  margin-top: 14px;
}
.lace-select-grid{ align-items: start; }
.custom-color-field{ margin-top: 2px; }

.dropoff-guidance{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dropoff-guidance .mm-status-message{
  padding: 0;
  font-size: 13px;
}
.dropoff-guidance strong{ color: var(--navy); }
.shipping-address-wrap{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sms-optin-label{ align-items: flex-start; }
.sms-optin-label input{ margin-top: 3px; }
.sms-optin-disclosure{
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--faint);
  margin-top: 6px;
}

.turnaround-expectation p{
  font-size: 12.5px;
  color: var(--faint);
  margin: 0;
}

/* Status + success */
.service-status{
  display: none;
  font-size: 13.5px;
  font-weight: 550;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.service-status.show{ display: block; }
.service-status.pending{ background: var(--warn-bg); color: var(--warn-text); }
.service-status.error{ background: var(--err-bg); color: var(--err-text); }
.service-status.success{ background: var(--ok-bg); color: var(--ok-text); }

.service-success-card{
  display: none;
  background: var(--ok-bg);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.service-success-card.show{ display: block; }
.service-success-card h3{
  font-size: 16px;
  color: var(--ok-text);
  margin-bottom: .3em;
}
.service-success-card p,
.service-success-card li{
  font-size: 13.5px;
  color: var(--text);
}
.service-success-card ul{ margin: 8px 0 0; }

.contact-switch-note,
.service-request-note{
  font-size: 12.5px;
  color: var(--faint);
}

.contact-mini{
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-mini-title{
  font-size: 13.5px;
  color: var(--muted);
}
.contact-mini-link{ font-weight: 560; }
.contact-social-icons{
  display: flex;
  gap: 12px;
}
.contact-social-icons img{
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

/* --------------------------------------------------------------------------
   16. Legal pages
   -------------------------------------------------------------------------- */
.legal-page{ max-width: 760px; }
.legal-page h1{ font-size: clamp(28px, 4vw, 38px); }
.legal-updated{
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 32px;
}
.legal-card{
  background: none;
  border: 0;
  padding: 0;
}
.legal-card h2{
  font-size: 17px;
  margin-top: 32px;
}
.legal-card p, .legal-card li{
  font-size: 14px;
  color: var(--muted);
}

/* Generic quiet card (rarely used) */
.card{ background: none; }

/* --------------------------------------------------------------------------
   17. Utilities & protections
   -------------------------------------------------------------------------- */
.no-save{ -webkit-user-drag: none; user-select: none; }

@media (prefers-reduced-motion: reduce){
  *{ transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html{ scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px){
  :root{ --headerH: 48px; }

  .site-nav{ display: none; }
  .menu-btn{ display: flex; }

  body{ font-size: 14.5px; }

  .hero-content h1{ font-size: clamp(31px, 9vw, 40px); }
  .hero-media img{ max-height: 420px; border-radius: var(--radius-md); }

  .home-trust-list{ grid-template-columns: 1fr; gap: 16px; }
  .home-section-split{ grid-template-columns: 1fr; }
  .home-trust-panel{
    padding-left: 0;
    border-left: 0;
    padding-top: 18px;
    border-top: 1px solid var(--hairline-soft);
    gap: 14px;
  }
  .home-services-list,
  .home-process-grid,
  .reviews-grid{ grid-template-columns: 1fr; gap: 20px; }

  .service-item-heading h3{ font-size: 16px; }
  .service-item-featured .service-item-heading h3::after{
    display: block;
    width: fit-content;
    margin: 6px 0 0;
  }

  .service-certification{
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }

  /* Tighter gallery rhythm on mobile: photos stay big, sections stop
     eating a full viewport each */
  .gallery-group{ padding: 18px 0; }
  .gallery-group .mm-section-title{ font-size: 17px; }
  .gallery-group .mm-section-intro{ margin-bottom: 12px; }

  .process-handoff-grid,
  .relacing-split-list,
  .relacing-info-grid,
  .relacing-info-grid-two,
  .process-review-grid{ grid-template-columns: 1fr; gap: 20px; }

  .about-layout{ grid-template-columns: 1fr; }
  .about-photo{
    position: static;
    max-width: 380px;
  }

  .sale-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sale-detail{ grid-template-columns: 1fr; }

  .mm-grid-2{ grid-template-columns: 1fr; }

  /* iOS zooms on focus if the control font is under 16px */
  .mm-field input:not([type="checkbox"]):not([type="radio"]),
  .mm-field select,
  .mm-field textarea,
  .mm-inline-other input[type="text"],
  .glove-search-input,
  .home-similar-row input{
    font-size: 16px;
  }

  /* Mobile footer: everything centered and deliberately stacked */
  .footer-top{ flex-direction: column; align-items: center; text-align: center; gap: 22px; }
  .footer-meta{ align-items: center; gap: 18px; }
  .footer-bottom{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .footer-legal{ justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px){
  .gallery-thumb{ width: 56vw; }
  .glove-search-card{ width: 56vw; }
  .process-shot{ width: 56vw; }
  .brand-text{ font-size: 11.5px; }
  .mm-final-actions, .cta{ flex-direction: column; gap: 14px; }
}

/* --------------------------------------------------------------------------
   Track page (3.2) — pizza-tracker timeline in the site's language
   -------------------------------------------------------------------------- */
.track-page{ max-width: 720px; }
.track-intro{ margin-bottom: 28px; }

.track-timeline{
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  gap: 4px;
}
.track-step{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  position: relative;
}
.track-step::before{
  content: "";
  position: absolute;
  top: 6px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--hairline);
}
.track-step:first-child::before{ display: none; }
.track-step.is-done::before,
.track-step.is-current::before{ background: var(--navy); }
.track-dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--hairline);
  z-index: 1;
}
.track-step.is-done .track-dot{
  background: var(--navy);
  border-color: var(--navy);
}
.track-step.is-current .track-dot{
  border-color: var(--navy);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(9,47,77,.15);
}
.track-step-label{
  font-size: 11px;
  font-weight: 560;
  color: var(--faint);
  text-align: center;
  line-height: 1.2;
}
.track-step.is-done .track-step-label,
.track-step.is-current .track-step-label{ color: var(--navy); }

.track-promise{
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.track-shipping{
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.track-photos-intro{ margin: 28px 0 14px; }
.track-photos-title{ font-size: 20px; }
.track-contact{ margin-top: 28px; }

@media (max-width: 480px){
  .track-step-label{ font-size: 9.5px; }
  .track-page .gallery-thumb{ width: 44vw; }
}

/* Track page: contextual status note under the timeline */
.track-status-note{
  font-size: 13.5px;
  color: var(--muted);
  background: var(--tint);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  margin-bottom: 12px;
}

/* Track page: note that finished photos land here when the work's done */
.track-photo-pending{
  font-size: 13.5px;
  color: var(--muted);
  background: var(--tint);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 18px 0 0;
}

/* Preview environment badge — only injected on non-production deployments */
.mm-preview-badge{
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(146, 26, 36, 0.35);
  pointer-events: none;
  user-select: none;
}

/* ===== Gallery: category overview + per-category full grid =====
   Overview shows a fixed row per category (no desktop horizontal scroll) with a
   "View all N →" link; a category opens into a responsive grid. Mobile keeps the
   swipe row. Appended block — scoped to gallery classes only. */
.gallery-category-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.gallery-view-all{
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.gallery-view-all:hover{ text-decoration: underline; }
.gallery-head-count{ color: var(--faint); font-weight: 600; }
.gallery-back-link{
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.gallery-back-link:hover{ text-decoration: underline; }

/* Full category grid — responsive; thumbs/cards fill the cell */
.gallery-full-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.gallery-full-grid .gallery-thumb,
.gallery-full-grid .glove-search-card{ width: 100%; }
/* Let items shrink below their content (e.g. the nowrap search caption) so a
   long caption ellipsis-truncates instead of blowing the column past the
   viewport. */
.gallery-full-grid > *{ min-width: 0; }

/* --------------------------------------------------------------------------
   Newsletter signup — homepage, site footer, and service-request opt-in
   -------------------------------------------------------------------------- */
.home-newsletter{
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(22px, 3vw, 30px);
  padding-bottom: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.home-newsletter-copy .mm-section-copy{ max-width: 600px; }
.newsletter-form{ min-width: 0; }
.newsletter-form-row{
  display: flex;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}
.newsletter-form-row input{
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: 13px;
}
.newsletter-form-row input:focus{
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.newsletter-form-row .btn{
  flex: 0 0 auto;
  min-height: 34px;
  padding: 5px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.newsletter-status{
  min-height: 1.4em;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.newsletter-status.is-success{ color: #27633c; }
.newsletter-status.is-error{ color: var(--red); }
.newsletter-honeypot{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}
.footer-newsletter{
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: center;
}
.footer-newsletter-title{
  font-size: 14px;
  font-weight: 620;
  color: var(--navy);
}
.footer-newsletter p{
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.newsletter-optin-group{ grid-column: 1 / -1; }
.newsletter-optin-label{ align-items: flex-start; }
.newsletter-optin-label input{ margin-top: 3px; }
.newsletter-optin-disclosure{
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--faint);
}

@media (max-width: 800px){
  .home-newsletter,
  .footer-newsletter{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .newsletter-form-row{ flex-direction: column; }
  .newsletter-form-row input{ font-size: 16px; }
  .newsletter-form-row .btn{ align-self: flex-start; }

  .newsletter-form-home .newsletter-form-row{
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 8px;
  }
  .newsletter-form-home .newsletter-form-row .btn{
    grid-column: 1 / -1;
    justify-self: start;
  }

  /* Keep the sitewide signup from turning the footer into another full section. */
  .site-footer .footer-inner{
    padding-top: 28px;
    padding-bottom: 22px;
  }
  .site-footer .footer-top{ gap: 14px; }
  .site-footer .footer-meta{ gap: 10px; }
  .site-footer .footer-badge img{ height: 44px; }
  .site-footer .footer-newsletter{
    margin-top: 18px;
    padding-top: 16px;
    gap: 10px;
    text-align: left;
  }
  .site-footer .footer-newsletter p{ display: none; }
  .site-footer .newsletter-form-row{
    flex-direction: row;
    gap: 8px;
  }
  .site-footer .newsletter-form-row .btn{
    align-self: stretch;
    padding-inline: 13px;
  }
  .site-footer .newsletter-status:empty{ display: none; }
  .site-footer .footer-bottom{
    margin-top: 18px;
    padding-top: 14px;
    gap: 6px;
  }
}

/* Past-customer newsletter invitation confirmation */
.newsletter-invite-page{
  min-height: 58vh;
  display: grid;
  place-items: start center;
}
.newsletter-invite-card{
  width: min(100%, 620px);
  margin-top: clamp(28px, 6vw, 64px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  background: var(--tint);
}
.newsletter-invite-card .mm-section-title{
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 38px);
}
.newsletter-invite-card .mm-section-copy{
  margin-bottom: 18px;
}
.newsletter-invite-disclosure{
  max-width: 500px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.newsletter-invite-card [hidden]{ display: none; }

/* Preview row — fixed grid on desktop (complete cards, no horizontal scroll) */
.gallery-preview-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.gallery-preview-row .gallery-thumb{ width: 100%; }

@media (max-width: 700px){
  /* Preview row — horizontal swipe on mobile */
  .gallery-preview-row{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .gallery-preview-row::-webkit-scrollbar{ display: none; }
  .gallery-preview-row .gallery-thumb{
    flex: 0 0 auto;
    width: 56vw;
    scroll-snap-align: start;
  }
  .gallery-full-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Keep the input at 16px so iOS Safari doesn't auto-zoom on focus; shrink
     ONLY the placeholder so the full hint still fits. */
  .glove-search-input{ font-size: 16px; padding: 9px 14px; }
  .glove-search-input::placeholder{ font-size: 12.5px; }
}

/* --------------------------------------------------------------------------
   Glove-care articles and compact homepage article link
   -------------------------------------------------------------------------- */
.home-latest-article{
  margin-top: clamp(28px, 4vw, 44px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline-soft);
}
.home-latest-article .mm-eyebrow{ margin-bottom: 6px; }
.home-latest-article-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.home-latest-article-row h2{
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -.01em;
}
.home-latest-article-row h2 a{ color: var(--navy); }
.home-latest-article-row h2 a:hover{ text-decoration-color: var(--hairline); }
.home-latest-article + .home-newsletter{
  margin-top: 0;
  border-top: 0;
}

.care-index-hero{ max-width: 680px; }
.care-index-list{ max-width: 760px; }
.care-index-item{
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  padding: clamp(24px, 4vw, 36px) 0;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.care-index-thumb{
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.care-index-thumb img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .2s ease;
}
.care-index-thumb:hover img{ transform: scale(1.015); }
.care-index-item h2{
  margin-bottom: 8px;
  font-size: clamp(21px, 3vw, 27px);
}
.care-index-item h2 a{ color: var(--navy); }
.care-index-item-copy > p:not(.mm-eyebrow){
  max-width: 620px;
  color: var(--muted);
  font-size: 14.5px;
}

.care-article{ max-width: 760px; margin-inline: auto; }
.care-article-header{ margin-bottom: clamp(36px, 6vw, 58px); }
.care-article-hero{
  margin: 0 0 clamp(36px, 6vw, 58px);
}
.care-article-hero img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.care-article-back{
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}
.care-article-back::before{ content: "\2039\00a0"; }
.care-article-header h1{
  max-width: 700px;
  margin-bottom: .4em;
}
.care-article-lede{
  max-width: 620px;
  margin: 0;
}
.care-article-body{ max-width: 680px; }
.care-article-body > p,
.care-article-body section > p,
.care-article-body li p{
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}
.care-article-body section{ margin-top: clamp(38px, 6vw, 56px); }
.care-article-body h2{
  margin-bottom: .4em;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -.02em;
}
.care-article-body blockquote{
  margin: clamp(32px, 5vw, 48px) 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--red);
  color: var(--navy);
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 600;
  line-height: 1.45;
}
.care-steps{
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: care-step;
}
.care-steps li{
  position: relative;
  padding: 22px 0 22px 48px;
  border-top: 1px solid var(--hairline-soft);
  counter-increment: care-step;
}
.care-steps li:last-child{ border-bottom: 1px solid var(--hairline-soft); }
.care-steps li::before{
  content: counter(care-step, decimal-leading-zero);
  position: absolute;
  top: 25px;
  left: 0;
  color: var(--faint);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}
.care-steps h3{ margin-bottom: 5px; font-size: 15.5px; }
.care-steps p{ margin: 0; }
.care-article-body ul{ padding-left: 22px; }
.care-article-body ul li{
  margin-bottom: 8px;
  padding-left: 4px;
  font-size: 15.5px;
  line-height: 1.65;
}
.care-warning{
  margin-top: clamp(38px, 6vw, 56px);
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  background: var(--tint);
}
.care-warning h2{ font-size: 21px; }
.care-warning p{ margin: 0; font-size: 15px; line-height: 1.7; }
.care-article-cta{
  padding-top: clamp(30px, 5vw, 44px);
  border-top: 1px solid var(--hairline-soft);
}
.care-article-cta .mm-eyebrow{ margin-bottom: 8px; }
.care-article-cta p:not(.mm-eyebrow){ max-width: 590px; color: var(--muted); }
.care-signoff{
  margin-top: 36px;
  color: var(--navy) !important;
  font-weight: 600;
  line-height: 1.45 !important;
}
.care-signoff span{ color: var(--muted); font-size: 13px; font-weight: 500; }

@media (max-width: 560px){
  .home-latest-article-row{
    align-items: flex-start;
    gap: 10px;
  }
  .home-latest-article-row h2{ font-size: 17px; }
  .home-latest-article-row .mm-link{ display: none; }
  .care-article-header{ margin-bottom: 36px; }
  .care-index-item{
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .care-index-item h2{ font-size: 18px; }
  .care-index-item-copy > p:not(.mm-eyebrow){ display: none; }
  .care-index-item .mm-link{ font-size: 13px; }
  .care-article-hero{ margin-bottom: 36px; }
  .care-article-hero img{ border-radius: var(--radius-md); }
  .care-article-back{ margin-bottom: 22px; }
  .care-steps li{ padding-left: 38px; }
}
