/* ═══════════════════════════════════════════════════════
   SPRINT DRIVES — hero-carousel.css v5
   Desktop: contained image with side padding so full image shows
   Mobile:  natural aspect-ratio height so full image shows
   No Ken Burns · Slide transition · Shop Now CTA
═════════════════════════════════════════════════════════ */

/* ── HERO WRAPPER ── */
.sd-hero-imgonly {
  position: relative;
  z-index: 2;
  background: var(--N5); /* dark bg for letterbox areas if any */
}

/* ─────────────────────────────────────────────────────────
   DESKTOP CAROUSEL
   The sprint drives banner images are designed at roughly
   16:6 (wide banner) ratio. Using object-fit:cover at 70vh
   was cropping the top/bottom significantly.

   Fix: Use a max-height that lets the image breathe,
   add horizontal padding so the image "pops" on screen
   and the viewer sees the full composition.
   object-fit: contain with a dark/brand background shows
   the complete image at all times.
───────────────────────────────────────────────────────── */
.sd-hero-imgonly .sd-hero-swiper {
  /* Height driven by the image's natural aspect ratio via padding-trick below.
     We cap it so very wide screens don't get a tiny strip. */
  height: 70vh;
  max-height: 780px;
  min-height: 320px;
}

/* Slides — contain the image, pad the sides */
.sd-slide-img {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--N5);
}

/* Clickable overlay covers the full slide */
.sd-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* object-fit rules moved to v11-responsive-fixes.css
   (uses cover to fill frame edge-to-edge — no dark bars) */
.sd-slide-fullimg {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* v11 canonical — fills frame, no letterbox */
  object-position: center center;
  display: block;
}

/* ── MOBILE: show full image by using aspect-ratio height ──
   The banner images are roughly 16:5 wide banners.
   On mobile we let the swiper height follow the image's
   natural ratio so nothing is ever cropped.              */
@media (max-width: 768px) {
  .sd-hero-imgonly .sd-hero-swiper {
    /* aspect-ratio-based height: image is ~16:6 ≈ 37.5vw */
    /* Use a comfortable 56vw so it's tall enough to read */
    height: clamp(220px, 56vw, 420px);
    max-height: 420px;
    min-height: 200px;
  }
  /* v11: cover on mobile too — image fills frame cleanly */
  .sd-slide-fullimg {
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 480px) {
  .sd-hero-imgonly .sd-hero-swiper {
    height: clamp(180px, 58vw, 340px);
  }
}


/* ── SHOP NOW CTA — bottom-right ── */
.sd-slide-cta {
  position: absolute;
  bottom: 52px;
  right: 28px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--L);
  color: var(--N4);
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.sd-slide-cta:hover {
  background: var(--L2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(211,214,58,0.4);
}
.sd-slide-cta svg {
  width: 13px; height: 13px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

@media (max-width: 768px) {
  .sd-slide-cta {
    bottom: 42px;
    right: 12px;
    font-size: 9px;
    padding: 10px 14px;
    gap: 6px;
  }
  .sd-slide-cta svg { width: 11px; height: 11px; }
}


/* ── NAV ARROWS ── */
.swiper-button-prev,
.swiper-button-next { --swiper-navigation-size: 0px; }

.sd-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.sd-nav-btn:hover {
  background: var(--L);
  border-color: var(--L);
  transform: translateY(-50%) scale(1.07);
}
.sd-nav-btn:hover svg { stroke: var(--N4); }
.sd-nav-btn--prev { left: 16px; }
.sd-nav-btn--next { right: 16px; }
.sd-nav-btn svg {
  width: 18px; height: 18px;
  stroke: rgba(255,255,255,0.9);
  stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.2s;
}

@media (max-width: 480px) {
  .sd-nav-btn { width: 34px; height: 34px; }
  .sd-nav-btn svg { width: 14px; height: 14px; }
  .sd-nav-btn--prev { left: 6px; }
  .sd-nav-btn--next { right: 6px; }
}


/* ── PAGINATION ── */
.sd-pagination {
  position: absolute !important;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: auto !important;
  z-index: 10;
}
.sd-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  opacity: 1;
  transition: background 0.25s, width 0.3s;
  margin: 0 4px !important;
}
.sd-pagination .swiper-pagination-bullet-active {
  background: var(--L);
  width: 24px;
  border-radius: 4px;
}


/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .sd-slide-fullimg,
  .sd-slide-cta { transition: none !important; }
}


/* ═══════════════════════════════════════════════════════
   BEST SELLERS — WHITE BACKGROUND, DARK TEXT
   Overrides the dark .sec-tools styles so this section
   sits bright and clean after the image carousel.
═════════════════════════════════════════════════════════ */

/* White bg, remove dark grid pattern */
.sec-tools.sec-tools-light {
  background: #ffffff !important;
  padding: 56px 0 64px !important;
}
.sec-tools.sec-tools-light::before {
  display: none !important; /* remove dark grid pattern */
}

/* Dark heading */
.sec-tools.sec-tools-light .sh2 {
  color: var(--INK) !important;
}
.sec-tools.sec-tools-light .sh2 em {
  color: var(--N) !important;
}

/* Dark "Best Sellers" pill */
.tools-lead-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(51,52,127,0.08);
  border: 1px solid rgba(51,52,127,0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--N);
  margin-bottom: 18px;
}
.tools-lead-dark::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--N);
  box-shadow: 0 0 8px var(--N);
  animation: pulse 2.2s ease-in-out infinite;
}

/* Dark "View all" link */
.tools-link-dark {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--N);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(51,52,127,0.3);
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s;
}
.tools-link-dark:hover {
  border-color: var(--N);
  color: var(--N2);
}
.tools-link-dark svg {
  width: 13px; height: 13px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Product cards on white bg — give them proper card shadow */
.sec-tools-light .tool-card {
  background: #ffffff !important;
  border: 1px solid var(--BD) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}
.sec-tools-light .tool-card:hover {
  box-shadow: 0 8px 32px rgba(51,52,127,0.14) !important;
  border-color: rgba(51,52,127,0.2) !important;
}
/* Product card image on white bg */
.sec-tools-light .tool-card-img {
  background: #f6f6f4 !important;
}
.sec-tools-light .tool-card-img img {
  padding: 10px !important;
  object-fit: contain !important;
}
/* Card text on white bg */
.sec-tools-light .tool-title {
  color: var(--INK) !important;
}
.sec-tools-light .tool-price {
  color: var(--N) !important;
}
.sec-tools-light .tool-card-foot {
  border-top-color: var(--BD) !important;
}
.sec-tools-light .tool-view {
  color: var(--MUT) !important;
}
.sec-tools-light .tool-card:hover .tool-view {
  color: var(--N) !important;
}
/* Card accent bar on hover */
.sec-tools-light .tool-card::before {
  background: linear-gradient(90deg, var(--N), var(--L)) !important;
}


/* ═══════════════════════════════════════════════════════
   12-CATEGORY GRID
═════════════════════════════════════════════════════════ */
.sec-cats-12 {
  background: var(--N5);
  padding: 60px 0 68px;
}
.tools-cats-head { margin-bottom: 0; }

.cats-grid-12 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 36px;
}

.cat-card-sq {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s var(--e), box-shadow 0.3s var(--e), border-color 0.3s var(--e);
}
.cat-card-sq:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(211,214,58,0.2);
  border-color: rgba(211,214,58,0.25);
}
.cat-card-sq-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--e), filter 0.4s;
  filter: brightness(0.75) saturate(0.9);
}
.cat-card-sq:hover .cat-card-sq-img {
  transform: scale(1.07);
  filter: brightness(0.6) saturate(0.9);
}
.cat-card-sq-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,8,28,0.9) 0%, rgba(7,8,28,0.3) 45%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}
.cat-card-sq-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 12px 12px 14px;
}
.cat-card-sq-t {
  font-family: var(--fh);
  font-size: clamp(0.72rem, 1.3vw, 0.95rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 3px;
}
.cat-card-sq-d {
  font-family: var(--fb);
  font-size: clamp(8px, 0.9vw, 10px);
  color: rgba(255,255,255,0.48);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.cat-card-sq:hover .cat-card-sq-d { opacity: 1; transform: translateY(0); }
.cat-card-sq-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--fb);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--L);
  margin-top: 5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s 0.04s, transform 0.2s 0.04s;
}
.cat-card-sq:hover .cat-card-sq-go { opacity: 1; transform: translateY(0); }
.cat-card-sq-go svg {
  width: 10px; height: 10px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.cats-all-cta { text-align: center; margin-top: 32px; }

@media (max-width: 1280px) {
  .cats-grid-12 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .cats-grid-12 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .sec-cats-12 { padding: 44px 0 52px; }
  .cats-grid-12 {
    grid-template-columns: repeat(2, 1fr) !important;
    overflow: visible !important;
    display: grid !important;
    gap: 8px;
  }
  .cat-card-sq-d,
  .cat-card-sq-go { opacity: 1 !important; transform: none !important; }
  .cat-card-sq-t { font-size: 0.78rem; }
}


/* ═══════════════════════════════════════════════════════
   SINGLE PRODUCT + SHOP — top clearance
═════════════════════════════════════════════════════════ */
.sp-breadcrumb {
  padding-top: 22px !important;
  padding-bottom: 16px !important;
}
@media (max-width: 768px) {
  .sp-breadcrumb { padding-top: 16px !important; }
}




/* ===== HERO FIT FIX ===== */
.sd-hero-carousel,
.sd-hero-carousel .swiper,
.sd-hero-carousel .swiper-slide{
  width:100vw;
}

.sd-hero-carousel .swiper-slide{
  height:70vh;
  min-height:560px;
  overflow:hidden;
  position:relative;
}

.sd-hero-carousel .swiper-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}

@media (max-width:768px){
  .sd-hero-carousel .swiper-slide{
    height:45vh;
    min-height:320px;
  }

  .sd-hero-carousel .swiper-slide img{
    object-position:center center;
  }
}
