/* Storefront and collection additions. Product-page layouts use their own styles. */
.storefront .section { padding-block: clamp(2.5rem, 5vw, 4.75rem); }
.storefront .hero { padding-top: clamp(2rem, 4vw, 4.5rem); }
.storefront .hero__title { max-width: 18ch; }
.storefront .eyebrow, .catalog .eyebrow { color: #a5b2c5; font-size: .8rem; }
.sf-feature-label { color: var(--color-text-soft); font-size: .8125rem; text-align: center; margin: 0 0 1rem; }
.sf-section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.sf-section-head > p { color: var(--color-text-soft); max-width: 34ch; font-size: 1rem; }
.sf-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sf-product-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--color-line); border-radius: 10px; background: #101116; overflow: hidden; scroll-margin-top: 5rem; }
.sf-product-card--featured { border-color: var(--color-accent-line); }
.sf-product-card--kit { --product-accent: #9fc2ee; --product-accent-line: rgba(124, 156, 198, .58); }
.sf-product-card--tracker { --product-accent: #9fc8f5; --product-accent-line: rgba(142, 185, 233, .58); }
.sf-product-card--templates { --product-accent: #9bd5df; --product-accent-line: rgba(138, 200, 215, .58); }
.sf-product-card--kit, .sf-product-card--tracker, .sf-product-card--templates { border-color: var(--product-accent-line); }
.sf-product-media { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; background: #0a0d12; border-bottom: 1px solid var(--color-line); }
.sf-product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sf-product-body { flex: 1; display: flex; flex-direction: column; align-items: start; padding: 1.35rem; }
.sf-product-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-content: space-between; width: 100%; font-size: .75rem; color: #adb7c6; margin-bottom: 1.1rem; }
.sf-status { display: inline-block; padding: .15rem .5rem; border: 1px solid var(--product-accent-line, #464c59); border-radius: 999px; color: var(--product-accent, #c8cbd3); font-size: .75rem; white-space: nowrap; }
.sf-status--available { color: #b6d4f6; border-color: #466386; background: #172230; }
.sf-product-body h3 { font-size: 1.2rem; line-height: 1.4; letter-spacing: -.02em; min-height: 5.1em; margin: 0 0 .7rem; }
.sf-product-body h3 a { text-decoration: none; }
.sf-product-body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sf-product-body > p:not(.sf-product-price):not(.sf-coming-soon) { color: #b6b5be; font-size: 1rem; line-height: 1.6; margin-bottom: 1.4rem; }
.sf-product-price { margin-top: auto; padding-top: .5rem; margin-bottom: 1.15rem; display: flex; flex-direction: column; gap: .15rem; }
.sf-product-price strong { font-size: 1.75rem; font-weight: 600; }
.sf-product-price span { font-size: .75rem; color: var(--color-text-soft); }
.sf-product-body .btn { padding-inline: .9rem; font-size: .875rem; }
.sf-coming-soon { display: flex; align-items: center; justify-content: center; padding: .9rem; min-height: 54px; width: 100%; font-size: .8125rem; color: #b1b2bd; border-top: 1px solid var(--color-line); text-align: center; }
.sf-exclusive { font-size: .875rem; color: #b9bfca; border-left: 2px solid var(--color-accent); padding: .5rem 0 .5rem 1rem; margin-top: 1.7rem; }
.sf-exclusive strong { color: #e9eef5; }
.sf-all-products { margin-top: 1.4rem; }
.sf-text-link { color: #c1d7f2; text-underline-offset: 5px; font-size: .9375rem; }
@media (max-width: 1100px) and (min-width: 901px) { .sf-product-body { padding: 1rem; } .sf-product-status { min-height: 3.5rem; } }
@media (max-width: 900px) {
 .sf-product-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; gap: 1.5rem; }
 .sf-product-body h3 { min-height: 0; font-size: 1.3rem; }
 .sf-section-head { display: block; }
 .sf-section-head > p { max-width: 45ch; margin-top: 1rem; }
 .sf-product-body { padding: 1.4rem; }
 .sf-product-price { margin-top: .5rem; }
}
@media (max-width: 380px) { .sf-product-body { padding: 1rem; } .sf-product-status { gap: .65rem; } }

/* Mobile-only swipe hint, shown just below the carousel. Hidden by default;
   revealed only inside the ≤700px carousel breakpoint below. */
.sf-swipe-hint { display: none; }

/* Mobile: horizontal swipe carousel instead of the stacked single column
   above — homepage showcase only (#products is this section's own id;
   /products/'s comparison grid uses the same .sf-product-grid/.sf-product-card
   class names in a different section, and must stay a stacked single column,
   so every rule here is scoped under #products to avoid touching it). Same
   full-bleed scroll-snap technique already used by .vehicles and
   .kit-carousel elsewhere on this page — proven not to cause page-level
   overflow, since the negative margin only bleeds out to the .container's
   own gutter (never past it) and overflow-x on this same element contains
   its own scrolling. No JS, no autoplay, no external library. */
@media (max-width: 700px) {
  #products .sf-product-grid {
    display: flex;
    grid-template-columns: none;
    max-width: none;
    gap: 1rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-block: 0.25rem 0.75rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  #products .sf-product-grid::-webkit-scrollbar { display: none; } /* Chrome/Safari */
  #products .sf-product-grid:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

  #products .sf-product-card {
    /* 80vw, not 80%: a %-basis resolves against this flex container's own
       content-box (i.e. minus its side padding), which visually undershoots
       the intended ~80%-of-screen card width. vw sizes directly against the
       viewport, matching the peeking-carousel proportion exactly. */
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }

  /* Compact card interior — the shared desktop/tablet rules above (image
     area sized by aspect-ratio, ~1.35rem body padding, larger type) read as
     oversized once cards are this narrow. Every rule below only takes effect
     ≤700px and only inside #products, so desktop, tablet-stack (701–900px)
     and /products/ are all unaffected. */
  #products .sf-product-media {
    aspect-ratio: auto;
    height: 190px; /* ~175–200px target regardless of the 320–430px width range */
  }
  #products .sf-product-media img {
    /* Inset instead of the base rule's edge-to-edge inset:0, so the artwork
       doesn't touch the card edges. object-fit:contain (inherited, untouched)
       still shows the complete cover, just within a smaller padded box. */
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }

  #products .sf-product-body { padding: 15px; }

  #products .sf-product-status {
    font-size: 11px;
    margin-bottom: 8px;
  }

  #products .sf-product-body h3 {
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 6px;
  }

  #products .sf-product-body > p:not(.sf-product-price):not(.sf-coming-soon) {
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  #products .sf-product-price {
    margin-bottom: 10px;
  }
  #products .sf-product-price strong { font-size: 29px; }
  #products .sf-product-price span { font-size: 12px; }

  #products .sf-product-body .btn {
    min-height: 46px;
    padding-block: 0.55rem;
    font-size: 14.5px;
  }

  #products .sf-coming-soon {
    min-height: 46px;
    padding: 0.6rem;
    font-size: 12.5px;
  }

  .sf-swipe-hint {
    display: block;
    margin: 0.1rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: var(--color-text-faint);
  }
}

.sf-catalog-title { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -.025em; }
.sf-catalog-intro { font-size: 1.125rem; max-width: 60ch; margin-top: 1.2rem; color: #b5b8c2; }
.sf-product-jumps { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; margin: 1.7rem 0 2.5rem; }
.sf-product-jumps a { font-size: .875rem; color: #c1d7f2; text-underline-offset: 5px; padding-block: .35rem; }
.sf-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--color-line-strong); border-radius: 8px; }
.sf-comparison { width: 100%; border-collapse: collapse; min-width: 650px; text-align: left; font-size: .875rem; }
.sf-comparison caption { text-align: left; padding: 1rem 1.25rem; color: #b7becc; }
.sf-comparison th, .sf-comparison td { padding: 1rem 1.25rem; border-top: 1px solid var(--color-line); vertical-align: top; }
.sf-comparison thead { background: #171e29; color: #eef3fb; }
.sf-comparison tbody th { font-weight: 500; width: 30%; }
.sf-comparison tbody td { color: #b8c5d8; }
.sf-comparison td:nth-child(2) { background: #15203088; color: #e2eaf7; }
.sf-table-note { margin-top: 1rem; color: #b5b8c2; font-size: .8125rem; }
.storefront .hero__visual { flex-direction: column; min-width: 0; }
.storefront .sf-feature-label { width: 100%; flex: 0 0 auto; }
.storefront .sf-section-head > div { min-width: 0; flex: 1; }
.storefront .sf-section-head > p { flex: 0 1 30ch; }

.sf-table-hint { display: none; }
@media (max-width: 700px) { .sf-table-hint { display: block; font-size: .875rem; color: #b5b8c2; margin-bottom: .8rem; } }
