/* Lyfe Hack Prints  -  static mock styles */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1a1d23;
  --ink-muted: #5a6270;
  --border: #e4e7ec;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --success: #059669;
  --success-bg: #ecfdf5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 4px 12px rgba(16, 24, 40, 0.1), 0 12px 28px rgba(16, 24, 40, 0.08);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }


.wip-note {
  background: #fef3c7;
  color: #78350f;
  text-align: center;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #fcd34d;
}
.wip-note p { margin: 0; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/*  -  -  Header  -  -  */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover { text-decoration: none; }

.brand-logo {
  height: 92px;
  width: auto;
  max-width: min(320px, 70vw);
  object-fit: contain;
  object-position: left center;
}

.brand-micro {
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  display: none;
}

@media (min-width: 768px) {
  .brand-micro { display: block; }
  .brand-logo { height: 112px; max-width: 400px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  flex: 1 1 auto;
  flex-wrap: wrap;
  margin-left: auto;
}

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header-checkout {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.header-checkout-btn {
  min-width: 7.25rem;
  min-height: 44px;
  white-space: nowrap;
}

.header-checkout .is-disabled {
  background: #e7e9ee;
  color: #6b7280;
  border: 1px solid #d5d8e0;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.header-checkout [aria-current="page"] {
  cursor: default;
  pointer-events: none;
}

.header-checkout [hidden] {
  display: none !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

@media (min-width: 1080px) {
  .header-end { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
}

@media (max-width: 720px) {
  /* LYF-146 M01: keep logo + Cart/Checkout/Menu on one row (incl. after ATC) */
  .brand-logo { height: 36px; max-width: 34vw; }
  .header-inner { align-items: center; gap: 0.35rem; }
  .header-end {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-left: auto;
  }
  .header-checkout-btn { min-width: 0; padding: 0.35rem 0.5rem; font-size: 0.8rem; }
  .nav-toggle { display: inline-flex; order: 3; padding: 0.35rem 0.45rem; font-size: 0.8rem; }
  .header-cart { display: inline-flex; order: 1; }
  .header-cart .nav-cart { font-size: 0.8rem; }
  .header-checkout { order: 2; }
  .nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    order: 4;
  }
  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav a,
  .nav-cart {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav a { width: 100%; }
  .nav-cart { min-width: 44px; }
}

/*  -  -  Buttons  -  -  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  line-height: 1.2;
}

.btn:hover { text-decoration: none; }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: #c5cad3;
  background: #fafbfc;
  color: var(--ink);
}

/* Hero CTAs: pill buttons. Scoped so other pages keep the default button shape. */
.hero-ctas .btn {
  border-radius: 999px;
  padding-inline: 1.35rem;
  min-height: 44px;
}

@media (max-width: 560px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}

.hero-ctas .btn-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  display: block;
}

.hero-ctas .btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}

.hero-ctas .btn-secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-inline: 0.75rem;
}

.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }

.btn-lg { padding: 0.8rem 1.4rem; font-size: 1rem; }

.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

/*  -  -  Hero  -  -  */
.hero {
  background: #f3f7fd;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0 1.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy {
  max-width: 62rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 auto 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: none;
}
@media (min-width: 960px) {
  .hero h1 { white-space: nowrap; }
}

.hero-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.hero-visual:hover,
.hero-visual:focus {
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-hover);
}

.hero-visual:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero-rotator-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  background: #f7fafc;
}

.hero-rotator-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-rotator-stage img.is-active {
  opacity: 1;
}

.hero-rotator-caption {
  padding: 0.9rem 1.1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.hero-rotator-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-rotator-line {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.hero-rotator-price {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator-stage img {
    transition: none;
  }
}

/*  -  -  Trust strip  -  -  */
.trust-strip {
  padding: 1.1rem 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.trust-tile {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.trust-icon svg { display: block; }

.trust-tile h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.trust-tile p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/*  -  -  Sections  -  -  */
.section {
  padding: 2.25rem 0;
}

.shop-top {
  padding: 0.75rem 0 2rem;
}
.shop-top .catalog-note {
  margin-bottom: 0.65rem;
}
.shop-top .shop-toolbar {
  margin-bottom: 0.75rem;
}
.shop-top .shop-categories {
  margin-bottom: 0.55rem;
}
.shop-top .shop-status {
  margin-bottom: 0.55rem;
}

.section-header {
  margin-bottom: 1.15rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.015em;
}

.section-header p {
  margin: 0;
  color: var(--ink-muted);
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-cta-row {
  margin-top: 1.75rem;
  text-align: center;
}

/*  -  -  Product cards  -  -  */
.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-card a { color: inherit; text-decoration: none; }
.product-card a:hover { text-decoration: none; }

.product-img {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #eef2f7, #dde4ef);
  display: grid;
  place-items: center;
  position: relative;
  font-size: 2.75rem;
  color: #94a3b8;
}

.product-card .product-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: none;
  flex: 0 0 auto;
}

.product-img img.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
}

.product-img {
  overflow: hidden;
}

.product-img .product-thumb-fallback {
  position: relative;
  z-index: 0;
}


.product-badge {
  position: absolute;
  z-index: 4;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem; /* LYF-146 M05: >= 12px */
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-badge.alt { background: var(--ink); }

.product-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.product-card .product-body h3 {
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.product-benefit {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  flex: 1;
}

.product-card .product-benefit {
  flex: 0 1 auto;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.product-card .product-card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding-top: 0.35rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.product-price {
  font-weight: 700;
  font-size: 1rem;
}

/*  -  -  Steps  -  -  */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/*  -  -  Banners / bands  -  -  */
.band {
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 720px) {
  .band { grid-template-columns: 1fr auto; padding: 2.25rem 2.5rem; }
}

.band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.band p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 40rem;
}

.band-accent {
  background: var(--accent-soft);
  border: 1px solid #dbeafe;
}

.band-dark {
  background: var(--ink);
  color: #fff;
}

.band-dark p { color: #c5cad3; }
.band-dark h2 { color: #fff; }

.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.band-dark .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.band-dark .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

/*  -  -  Page header  -  -  */
.page-header {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 40rem;
}

/*  -  -  Shop filters  -  -  */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: 0.25rem;
}

.filter-chip,
.select-wrap select {
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  min-height: 44px; /* LYF-146 M07 */
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.select-wrap select {
  border-radius: var(--radius-sm);
  padding-right: 1.75rem;
}

.shop-note {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/*  -  -  Custom form  -  -  */
.custom-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .custom-layout {
    grid-template-columns: 1.4fr 0.85fr;
    align-items: start;
  }
}

.form-card,
.tips-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.form-card h2,
.tips-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field .hint {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #bfdbfe;
  border-color: var(--accent);
}

.field textarea { min-height: 120px; resize: vertical; }

.field-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.field-check input {
  margin-top: 0.2rem;
  width: auto;
  accent-color: var(--accent);
}

.form-actions { margin-top: 0.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.form-actions .field-help { margin: 0; }

.file-drop {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-muted);
  background: #fafbfc;
  cursor: pointer;
}

.file-drop:hover { border-color: #c5cad3; }

.file-drop input { display: none; }

.tips-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.tips-card li { margin-bottom: 0.4rem; }

.tips-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.process-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.process-strip span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.success-panel {
  display: none;
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}

.success-panel.is-visible { display: block; }

.success-panel .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.success-panel h2 {
  margin: 0 0 0.5rem;
  color: var(--success);
  font-size: 1.25rem;
}

.success-panel p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  max-width: 28rem;
  margin-inline: auto;
}

.form-card.is-submitted .form-grid,
.form-card.is-submitted .form-actions,
.form-card.is-submitted > h2 {
  display: none;
}

.form-card.is-submitted .success-panel { display: block; }

.section.custom-section {
  padding: 1.5rem 0 1rem;
}

.page-header .lede,
.page-header .page-note {
  max-width: 42rem;
}

.page-header .page-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.field-help {
  margin: 0.4rem 0 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.material-guidance {
  margin-top: 0.55rem;
}

.compare-materials,
.limits-accordion,
.rough-estimate {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-materials,
.limits-accordion {
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--accent-soft);
}

.compare-materials summary,
.limits-accordion summary,
.rough-estimate summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.compare-materials p,
.limits-accordion ul,
.process-list {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.compare-materials p + p { margin-top: 0.45rem; }

.limits-accordion ul,
.process-list {
  padding-left: 1.15rem;
}

.limits-accordion { margin-bottom: 1.1rem; }

.process-list li,
.limits-accordion li { margin: 0.3rem 0; }

.help-cols {
  display: grid;
  gap: 0.85rem 1.25rem;
}

@media (min-width: 640px) {
  .help-cols { grid-template-columns: 1fr 1fr; }
}

.tips-card .help-cols ul { margin-bottom: 0; }

.tips-card .tips-foot {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

.rough-estimate {
  margin: 0.15rem 0 0.15rem;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
}

.rough-estimate .rough-intro,
.quote-empty {
  margin: 0.65rem 0 0.35rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.rough-estimate .quote-grid { margin-top: 0.75rem; }

.rough-estimate .field-help { margin-top: 0.65rem; }

.compat-material { display: none !important; }

/*  -  -  About  -  -  */
.about-prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 42rem;
}

.about-prose p {
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.about-prose p:last-of-type { margin-bottom: 0; }

.about-prose strong { color: var(--ink); }

/* LYF-138: in-paragraph links need a non-color cue (axe link-in-text-block) */
.about-prose p a {
  text-decoration: underline;
}

/* LYF-139: shop note + cart page in-paragraph links (axe link-in-text-block) */
.shop-note a {
  text-decoration: underline;
}
.checkout-mock-note a {
  text-decoration: underline;
}

/* LYF-143: underline in-text Privacy link on custom.html agree disclosure */
.field-check span a[href$="privacy.html"] {
  text-decoration: underline;
}

.parent-credit {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.about-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/*  -  -  Footer  -  -  */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.75rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
  }
}

.footer-brand .brand-logo {
  height: 84px;
  max-width: 300px;
  margin-bottom: 0.75rem;
}

.footer-brand .division {
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.footer-brand .tagline {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-brand .parent {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.footer-bottom a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--accent); }

/*  -  -  Utilities  -  -  */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }


/*  -  -  Catalog shop (dynamic)  -  -  */
.catalog-note {
  margin-bottom: 1.25rem;
}
.catalog-note code {
  font-size: 0.78rem;
  word-break: break-all;
}
.shop-search {
  flex: 1 1 14rem;
  min-width: 12rem;
}
.shop-search input[type="search"] {
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
  max-width: 22rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
.shop-categories {
  margin-bottom: 1rem;
}
.shop-status {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.shop-load-more {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}
.product-badge.risk {
  background: #b45309;
  left: auto;
  right: 0.65rem;
}
.product-img .product-badge + .product-badge,
.product-img .product-badge.risk {
  z-index: 1;
}

/*  -  -  Cart nav badge  -  -  */
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
}
.nav-cart:hover,
.nav-cart[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}
.nav-cart[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.cart-badge[hidden] { display: none !important; }
/* Ship address note: UA [hidden] can lose to layout; force like cart-badge */
#ship-address-note[hidden],
.ship-address-note[hidden] {
  display: none !important;
}
#ship-address-note:not([hidden]),
.ship-address-note:not([hidden]) {
  display: block;
}


.lhp-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 200;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
  pointer-events: none;
  max-width: min(90vw, 22rem);
  text-align: center;
}
.lhp-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-card .product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding: 0 1rem 1rem;
}
.product-card .product-actions .btn { flex: 1 1 auto; }
.product-card a.product-view,
a.product-view {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.product-card .product-actions .product-view { flex: 1 1 100%; }
.product-card .product-card-foot .btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.product-card .product-card-foot .product-view {
  min-height: 44px;
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
}
.product-card .product-card-foot .product-view:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}


/*  -  -  Bloom Stack / single featured product gallery  -  -  */
.product-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}
@media (min-width: 700px) {
  .product-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .product-grid--featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.product-grid--featured .product-card--gallery .product-img {
  aspect-ratio: 1;
  max-height: none;
}
.product-card--gallery .product-img {
  aspect-ratio: 1 / 1;
  max-height: none;
}
/* Media column: hero + caption + thumb strip in normal document flow (LYF-131). */
.product-page .product-media {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.product-page .product-media > .product-img.card-photo {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.product-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0.25rem;
  padding: 0.15rem 0.1rem 0.35rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.product-gallery[hidden] { display: none !important; }
.product-gallery-item {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 4.75rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f7;
  color: inherit;
  font: inherit;
  text-align: center;
  scroll-snap-align: start;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 641px) {
  .product-gallery-item { width: 5.25rem; }
}
.product-gallery-item.is-active,
.product-gallery-item:hover,
.product-gallery-item:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.product-gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.product-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  background: #eef2f7;
}
.product-gallery-item-label {
  display: block;
  font-size: 0.62rem;
  line-height: 1.2;
  padding: 0.25rem 0.3rem 0.35rem;
  color: var(--ink-muted);
  text-align: center;
  overflow-wrap: anywhere;
}
.product-price:has(+ *),
.product-card .product-price {
  letter-spacing: 0.01em;
}



/*  -  -  Homepage featured carousel  -  -  */
.feature-carousel {
  max-width: none;
  margin: 0 auto;
}
.feature-carousel-frame {
  position: relative;
  padding-inline: 52px;
}
.feature-carousel-frame.is-static { padding-inline: 0; }
.feature-carousel-viewport {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
}
@media (min-width: 700px) {
  .feature-carousel-viewport {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .feature-carousel-viewport {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.feature-carousel-viewport .product-card {
  margin: 0;
  min-width: 0;
}
.feature-carousel-viewport .product-card > a {
  display: block;
}
.feature-carousel-viewport .product-body {
  padding: 0.7rem 0.8rem 0.85rem;
}
.feature-carousel-viewport .product-body h3 {
  font-size: 0.95rem;
  line-height: 1.3;
}
.feature-carousel-viewport .product-price {
  font-size: 0.9rem;
}
.feature-carousel-btn {
  position: absolute;
  top: 28%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.feature-carousel-prev { left: 0; }
.feature-carousel-next { right: 0; }
.feature-carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.feature-carousel-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.feature-carousel-count {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin: 0.85rem 0 0;
}
@media (max-width: 699px) {
  .feature-carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
    top: 22%;
  }
  .feature-carousel-prev { left: 0; }
  .feature-carousel-next { right: 0; }
}

/*  -  -  Cart page  -  -  */
.cart-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1.4fr 0.75fr; align-items: start; }
}
.cart-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.85rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-row > :nth-child(2) {
  min-width: 0;
}
.cart-row:last-child { border-bottom: none; }
.cart-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}
.cart-thumb-fallback {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 1.5rem;
}
.cart-row h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}
.cart-row .meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0 0 0.5rem;
}
.qty-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.qty-controls input {
  width: 3rem;
  text-align: center;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}
.cart-line-total {
  font-weight: 700;
  white-space: nowrap;
  justify-self: end;
}
@media (max-width: 520px) {
  .cart-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.55rem 0.75rem;
    align-items: start;
    padding: 0.85rem;
  }
  .cart-thumb,
  .cart-thumb-fallback {
    width: 64px;
    height: 64px;
  }
  .cart-line-total {
    grid-column: 2;
    margin-top: 0.15rem;
  }
  .summary-row span:last-child,
  .order-lines li span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5rem;
}
.cart-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-muted);
}
.checkout-mock-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0.75rem 0 0;
}

/*  -  -  Formspree dry-run / fail notes (mock only)  -  -  */
.formspree-mock-box {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border: 2px dashed #b45309;
  background: #fffbeb;
  border-radius: 10px;
}
.formspree-mock-box h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #92400e;
}
.formspree-mock-box p { margin: 0.35rem 0; color: #78350f; font-size: 0.95rem; }
.formspree-mock-box details { margin-top: 0.65rem; }
.formspree-mock-box summary {
  cursor: pointer;
  font-weight: 600;
  color: #92400e;
}
.formspree-mock-box pre {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  overflow: auto;
  font-size: 0.78rem;
  max-height: 280px;
  white-space: pre-wrap;
  word-break: break-word;
}
.formspree-fail-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  border-radius: 10px;
  color: #7f1d1d;
  font-size: 0.95rem;
}

/*  -  -  Checkout  -  -  */
.checkout-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .checkout-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.order-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.confirm-box {
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 40rem;
}
.confirm-box h2 { color: var(--success); margin-top: 0; }
.confirm-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0.5rem 0 1rem;
}
.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/*  -  -  Admin  -  -  */
.admin-body { background: #f0f2f5; }
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-header {
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 0;
}
.admin-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-header a { color: #bfdbfe; }
.admin-header .brand-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.admin-demo-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  font-weight: 600;
}
.admin-login-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.admin-login-card {
  width: min(100%, 380px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.admin-login-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.admin-login-card .sub {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.admin-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: none;
}
.admin-error.is-visible { display: block; }
.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table th {
  background: #f8fafc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  position: sticky;
  top: 0;
}
.admin-table tr:last-child td { border-bottom: none; }
.stock-low { color: #b45309; font-weight: 700; }
.stock-zero { color: #b91c1c; font-weight: 700; }
.admin-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 1.5rem;
}
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.admin-stat .label {
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-stat .value {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.2rem;
}
.footer-owner {
  font-size: 0.75rem;
  opacity: 0.55;
}
.footer-owner a { color: inherit; }

.product-details {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.product-closer {
  margin: 0.85rem 0 0;
  font-weight: 600;
}
.product-detail-group { margin-top: 0.95rem; }
.product-detail-group h2 {
  font-size: 1.02rem;
  margin: 0 0 0.2rem;
  color: var(--ink);
}
.product-detail-group .product-details { margin-top: 0.3rem; }

.card-photo-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.card-photo-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.card-photo-prev { left: 0.45rem; }
.card-photo-next { right: 0.45rem; }
.card-photo-btn:hover { border-color: var(--accent); color: var(--accent); }
.product-page {
  display: grid;
  gap: 1.5rem;
  padding: 1rem 0 2.5rem;
}
@media (min-width: 800px) {
  .product-page { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
}
.product-page .card-photo {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eef2f7;
}
.product-page h1 { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.product-back { display: inline-block; margin-bottom: 0.75rem; }

/*  -  -  Snipcart above sticky site header  -  -  */
/* Site header is sticky at z-index: 100; Snipcartâ€™s modal container defaults to z-index: 20, so the cart panel was clipped under the header. */
.snipcart-modal__container,
.snipcart-modal__overlay {
  z-index: 10000 !important;
}

/*  -  -  Droid product photos: show full figure  -  -  */
/* Pit Droid / B2 (and other Display Droids) are tall portraits; square cover was cropping heads/feet. */
.product-img.product-img--contain,
.product-card .product-img.product-img--contain,
.product-card--gallery .product-img.product-img--contain,
.product-grid--featured .product-card--gallery .product-img.product-img--contain,
.product-page .product-img.product-img--contain {
  aspect-ratio: 3 / 4;
}
.product-img.product-img--contain .product-thumb {
  object-fit: contain;
  object-position: center center;
}

.formspree-ok-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #86efac;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.92rem;
}
.formspree-ok-note p { margin: 0 0 0.5rem; }
.formspree-ok-note p:last-child { margin-bottom: 0; }

/*  -  -  Snipcart Test: â€œSkip to local pickupâ€ bar (injected by js/snipcart.js)  -  -  */
.lhp-pickup-bar {
  position: relative;
  z-index: 10001;
  font-family: var(--font);
  margin: 0.65rem 0.75rem 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--ink);
}
.lhp-pickup-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.lhp-pickup-bar__btn { min-height: 40px; white-space: nowrap; }
.lhp-pickup-bar__btn[disabled] { opacity: 0.7; cursor: progress; }
.lhp-pickup-bar__help { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.35; }
.lhp-pickup-bar__status,
.lhp-pickup-status {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
}
.lhp-pickup-bar__status[data-kind="ok"],
.lhp-pickup-status[data-kind="ok"] { color: var(--success); }
.lhp-pickup-bar__status[data-kind="error"],
.lhp-pickup-status[data-kind="error"] { color: #b42318; font-weight: 600; }


.lhp-pickup-bar__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.lhp-pickup-bar__fields input {
  font: inherit;
  font-size: 0.875rem;
  min-height: 38px;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
.lhp-pickup-bar__fields input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 520px) { .lhp-pickup-bar__fields { grid-template-columns: 1fr; } }
.lhp-pickup-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483000;
  max-width: min(92vw, 30rem);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  box-shadow: var(--shadow-hover);
}
.lhp-pickup-toast[data-kind="error"] { background: #b42318; }
.lhp-pickup-toast[data-kind="ok"] { background: var(--success); }


/* Buy me a coffee / custom tip */
.tip-coffee { padding: 2.5rem 0 3rem; border-top: 1px solid var(--border, #e5e7eb); background: #fafafa; }
.tip-coffee__inner { max-width: 28rem; }
.tip-coffee__title { margin: 0 0 0.5rem; font-size: 1.25rem; }
.tip-coffee__lede { margin: 0 0 1rem; color: #4b5563; font-size: 0.95rem; line-height: 1.45; }
.tip-coffee__label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.tip-coffee__row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tip-coffee__prefix { font-weight: 700; color: #374151; }
.tip-coffee__row input[type="number"] {
  width: 7.5rem; padding: 0.55rem 0.65rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem;
}
.tip-coffee__btn { white-space: nowrap; }
.tip-coffee__hint { margin: 0.65rem 0 0; font-size: 0.85rem; color: #4b5563; min-height: 1.2em; }
.tip-coffee__hint.is-error { color: #b91c1c; }
.tip-coffee__hint.is-ok { color: #047857; }


/*  -  -  Attribution (MakerWorld CC BY / CC BY-SA)  -  -  */
.product-attribution {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.8rem;
  background: var(--accent-soft, #f3f0ff);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.85rem;
  color: var(--ink-muted, #555);
  line-height: 1.45;
  word-break: break-word;
}
.product-attribution a {
  color: var(--accent, #6c4cff);
  text-decoration: underline;
}

/*  -  -  Review filter row (Newly priced)  -  -  */
.shop-review-filters {
  margin-top: 0.5rem;
}

/* Careers */
.careers-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .careers-layout {
    grid-template-columns: 1.35fr 0.9fr;
  }
}
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.job-card__header {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.job-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.job-card__meta {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.job-card__body h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1rem;
}
.job-card__body ul {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.2rem;
}
.job-card__body li {
  margin: 0.25rem 0;
}
/* Careers on phones (<=480px): one full-width card instead of a box inside a box,
   so the listing text runs nearly edge to edge (16px side padding). Desktop unchanged. */
@media (max-width: 480px) {
  .job-card {
    margin-inline: -1rem;
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
  .job-card__body.about-prose {
    max-width: none;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
.careers-status--error {
  color: #991b1b;
}

/*  -  -  Homepage Featured carousel v2 (js/featured-carousel.js)  -  -  */
/* min-height reserves the carousel's rendered height before JS fills it (no layout shift);
   values fitted to the card layout at each breakpoint. */
.feature-carousel { --fc-per-view: 2; --fc-gap: 0.75rem; min-height: calc(40.4vw + 340px); }
@media (min-width: 700px) { .feature-carousel { --fc-per-view: 3; min-height: calc(33.2vw + 262px); } }
@media (min-width: 1000px) { .feature-carousel { --fc-per-view: 4; min-height: min(calc(25vw + 270px), 560px); } }
.fc-frame { position: relative; padding-inline: 52px; }
.fc.fc-static .fc-frame { padding-inline: 0; }
.fc-viewport { overflow: hidden; touch-action: pan-y; }
.fc-track {
  display: flex;
  gap: var(--fc-gap);
  transition: transform 0.45s ease;
  will-change: transform;
}
.fc-track.fc-no-anim { transition: none; }
.fc-slide {
  flex: 0 0 calc((100% - (var(--fc-per-view) - 1) * var(--fc-gap)) / var(--fc-per-view));
  min-width: 0;
  display: flex;
}
.fc-slide > .product-card { margin: 0; width: 100%; min-width: 0; }
.fc-slide .product-card > a { display: block; }
.fc-slide .product-body { padding: 0.7rem 0.8rem 0.85rem; }
.fc-slide .product-body h3 { font-size: 0.95rem; line-height: 1.3; }
.fc-slide .product-price { font-size: 0.9rem; }
.fc-btn {
  position: absolute;
  top: 28%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.fc-prev { left: 0; }
.fc-next { right: 0; }
.fc-btn:hover, .fc-toggle:hover { border-color: var(--accent); color: var(--accent); }
.fc-btn:focus-visible, .fc-dot:focus-visible, .fc-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  min-height: 32px;
}
.fc-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem; }
.fc-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.fc-dot::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}
.fc-dot[aria-current="true"]::before { background: var(--accent); transform: scale(1.25); }
.fc-toggle {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
}
.fc-counter {
  margin: 0;
  min-width: 7.5em;
  text-align: center;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}
@media (max-width: 699px) {
  .fc-frame { padding-inline: 0; }
  .fc-btn { width: 38px; height: 38px; font-size: 1.3rem; top: 22%; opacity: 0.92; }
  .fc-prev { left: -6px; }
  .fc-next { right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-track, .fc-dot::before { transition: none; }
}

.ib { margin-top: 1rem; display: grid; gap: .6rem; }
.ib-title { font-size: 1.15rem; margin: 0; }
.ib-help, .ib-sub { margin: 0; font-size: .9rem; }
.ib-presets { display: flex; flex-wrap: wrap; gap: .35rem; }
.ib-preset { font: inherit; font-size: .85rem; padding: .35rem .6rem; border: 1px solid #bbb; border-radius: 999px; background: #fff; cursor: pointer; }
.ib-main { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start; }
.ib-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; aspect-ratio: 1; }
.ib-cell { border: 1px solid #ccc; border-radius: 3px; background: #f3f3f3; padding: 0; min-width: 0; cursor: pointer; }
.ib-preview { width: 100%; aspect-ratio: 1; background: #fafafa; border: 1px solid #ddd; border-radius: 6px; }
.ib-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: 0; }
.ib-counts div { border: 1px solid #ddd; border-radius: 6px; padding: .3rem; text-align: center; }
.ib-counts dt { font-size: .75rem; } .ib-counts dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.ib-todo { margin: 0; padding: .5rem; border: 1px dashed #c90; background: #fff8e6; font-size: .85rem; }
.ib select, .ib input[type=text] { width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .ib-main { grid-template-columns: 1fr; } .ib-counts { grid-template-columns: repeat(2, 1fr); } }

/* Design-your-own guide (product page) */
.product-guide .guide-intro { margin: 0.3rem 0 0.6rem; }
.product-guide .guide-option { margin: 0.8rem 0 1rem; }
.product-guide h3 { font-size: 1rem; margin: 0 0 0.3rem; }
.product-guide .guide-link a { font-weight: 600; }
.product-guide .guide-steps { margin: 0.3rem 0 0.6rem 1.3rem; padding: 0; }
.product-guide .guide-steps li { margin: 0.25rem 0; }
.product-guide .guide-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem; }
.product-guide figure { margin: 0; }
.product-guide figure img { width: 100%; height: auto; border-radius: 6px; border: 1px solid rgba(0,0,0,0.12); display: block; }
.product-guide figcaption { font-size: 0.8rem; opacity: 0.8; margin-top: 0.2rem; }

/* LYF-135 (mock only): site-wide free-shipping promo banner */
.promo-banner {
  background: var(--accent-soft);
  color: var(--ink);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--border);
}
.promo-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* LYF-146 M04 */
  padding: 0.5rem 0.75rem;
}
.promo-banner a:hover,
.promo-banner a:focus-visible {
  color: var(--accent-hover);
}

/* LYF-135 (mock only): free-shipping line near Add to cart on product pages */
.product-free-ship {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-muted);
}
.product-free-ship a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.product-free-ship a:hover,
.product-free-ship a:focus-visible {
  color: var(--accent);
}


/* LYF-146 M02: hide grey empty-cart Checkout pill; real link shows via snipcart.js when count > 0 */
.header-checkout [data-checkout-disabled] {
  display: none !important;
}

/* ,, LYF-158 surge Level 2 busy banner ,, */
.surge-banner {
  background: #fff7ed;
  border-bottom: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 0.65rem 0;
}
.surge-banner-inner {
  max-width: var(--max, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}
.surge-banner a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* LYF-158 Level 3 custom intake pause */
.surge-custom-pause {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.45;
}
a.surge-custom-cta-paused {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
