/* Hero slider — full-width banner carousel above the promo grid */
.home .hero-slider {
  width: var(--ss-container);
  margin: 18px auto 24px;
  padding: 0;
}

.home .hero-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--ss-radius);
  background: #0a0d14;
  isolation: isolate;
  height: 520px;
  min-height: 520px;
  touch-action: pan-y;
  /* Mouse/pen drag should not select the headline text mid-swipe. */
  -webkit-user-select: none;
  user-select: none;
}

.home .hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  background: linear-gradient(135deg, #0a0d14 0%, #11161f 60%, #161c27 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease-in-out, visibility 0s linear 0.7s;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.home .hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.home .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.7s ease-in-out, visibility 0s linear 0s;
  z-index: 2;
}

.home .hero-slide-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 36px 44px 12px;
  min-height: 0;
  height: 100%;
  container-type: size;
}

/* Locked 1:1 product stage — every slide uses the same box regardless of photo ratio */
.home .hero-slide-stage {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: min(100cqw, 100cqh);
  height: min(100cqw, 80cqh);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--ss-radius);
}

@supports not (width: 1cqh) {

  .home .hero-slide-stage {
    width: min(100%, 432px);
    height: auto;
    max-height: 100%;
  }
}

.home .hero-slide-product {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  box-sizing: border-box;
  border-radius: 0;
}

/* Opaque product photo (no cutout): frame it as a white card instead of a bare rectangle */
.home .hero-slide-stage--photo {
  background: var(--ss-white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.home .hero-slide-stage--photo .hero-slide-product {
  padding: 6%;
  border-radius: var(--ss-radius);
}

.home .hero-slide-card {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--ss-radius);
  background: var(--ss-white);
  color: var(--ss-ink);
  font-family: inherit;
  font-size: var(--ss-text-sm);
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.home .hero-slide-card--price {
  top: 12px;
  right: 12px;
  flex-wrap: wrap;
  max-width: calc(100% - 24px);
}

.home .hero-slide-card--reviews {
  bottom: 12px;
  left: 12px;
}

.home .hero-slide-card__old,
.home .hero-slide-card__old .amount,
.home .hero-slide-card__old .woocommerce-Price-amount {
  color: #94a3b8;
  font-weight: 500;
  font-size: var(--ss-text-sm);
  text-decoration: line-through;
}

.home .hero-slide-card__now {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ss-ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.home .hero-slide-card__now .amount,
.home .hero-slide-card__now .woocommerce-Price-amount {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.home .hero-slide-card__save {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: var(--ss-success);
  font-size: var(--ss-text-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home .hero-slide-card__stars {
  position: relative;
  display: inline-block;
  font-size: var(--ss-text-sm);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ss-border-cool);
}

.home .hero-slide-card__stars-bg,
.home .hero-slide-card__stars-fill {
  display: block;
}

.home .hero-slide-card__stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--ss-warning);
}

.home .hero-slide-card__rating {
  font-weight: 700;
  color: var(--ss-ink);
}

.home .hero-slide-card__count {
  color: var(--ss-muted);
  font-weight: 500;
}

.home .hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 30px 56px;
  max-width: 620px;
  color: var(--ss-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

/* Homepage topical H1 — echoes the title tag; slide titles are H2. */
.home .hero-site-h1 {
  margin: 0;
  max-width: 36em;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
}

.home .hero-slide-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #fecaca;
  font-size: var(--ss-text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.home .hero-slide-badge-star {
  color: #fbbf24;
  font-size: var(--ss-text-sm);
  line-height: 1;
}

.home .hero-slide-title {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  /* Reserve vertical space so slide-to-slide title layout doesn’t change overall slide height */
  min-height: calc(2 * 1.02 * clamp(34px, 5.4vw, 68px) + 2px);
}

.home .hero-slide-title-line {
  color: var(--ss-white);
}

.home .hero-slide-title-accent {
  color: var(--ss-warning);
  background: linear-gradient(180deg, #fbbf24 0%, var(--ss-warning) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home .hero-slide-text {
  margin: 4px 0 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.78);
  max-width: 480px;
  font-weight: 400;
  flex-shrink: 0;
  /* Always exactly two lines so slide height stays consistent */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 3.2em;
  max-height: 3.2em;
}

.home .hero-slide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.home .hero-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--ss-radius);
  font-weight: 600;
  font-size: var(--ss-text-md);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.home .hero-slide-cta--primary {
  background: linear-gradient(180deg, #fbbf24 0%, var(--ss-warning) 100%);
  color: #1f1300;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

.home .hero-slide-cta--primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
  color: #1f1300;
}

.home .hero-slide-cta--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.home .hero-slide-cta--secondary:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--ss-white);
  transform: translateY(-1px);
}

.home .hero-slide-cta-arrow {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.home .hero-slide-cta--primary:hover .hero-slide-cta-arrow {
  transform: translateX(3px);
}

.home .hero-slide-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-family: inherit;
  max-width: 100%;
}

.home .hero-slide-proof__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: var(--ss-text-sm);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: rgba(226, 232, 240, 0.72);
  white-space: nowrap;
}

.home .hero-slide-proof__icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: block;
  color: #4ade80;
}

.home .hero-slide-proof__icon--pay {
  color: #facc15;
}

.home .hero-slide-proof__text strong {
  color: var(--ss-white);
  font-weight: 600;
}

.home .hero-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.home .hero-dot {
  width: 34px;
  height: 25px;
  padding: 0;
  border-radius: 999px;
  border: 10px solid transparent;
  background: rgba(255, 255, 255, 0.28);
  background-clip: padding-box;
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.25s ease, background 0.25s ease;
}

.home .hero-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.home .hero-dot.is-active {
  width: 52px;
  background: var(--ss-white);
  background-clip: padding-box;
}

@media (max-width: 900px) {

  .home .hero-slider {
    width: calc(100% - 16px);
    margin: 12px auto 18px;
  }

  .home .hero-slider-viewport {
    border-radius: var(--ss-radius);
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .home .hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: start;
    align-items: start;
    overflow: hidden;
  }

  .home .hero-slide.is-active {
    position: relative;
    inset: auto;
    height: auto;
  }

  .home .hero-slide-content {
    padding: 20px 16px 8px;
    max-width: 100%;
    gap: 10px;
    justify-content: flex-start;
  }

  .home .hero-site-h1 {
    font-size: var(--ss-text-2xs);
    letter-spacing: 0.05em;
  }

  .home .hero-slide-title {
    font-size: clamp(26px, 7.5vw, 36px);
    min-height: 0;
  }

  .home .hero-slide-text {
    font-size: var(--ss-text-base);
    -webkit-line-clamp: 3;
    line-clamp: 3;
    min-height: 0;
    max-height: none;
  }

  .home .hero-slide-media {
    padding: 8px 16px 48px;
    height: auto;
    min-height: 0;
    container-type: normal;
  }

  .home .hero-slide-stage {
    width: min(68vw, 260px);
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .home .hero-slide-product {
    padding: 10px;
  }

  .home .hero-slide-card {
    font-size: var(--ss-text-xs);
    padding: 7px 9px;
    gap: 6px;
  }

  .home .hero-slide-card--price {
    top: 8px;
    right: 8px;
  }

  .home .hero-slide-card--reviews {
    bottom: 8px;
    left: 8px;
  }

  .home .hero-slide-card__now {
    font-size: var(--ss-text-md);
  }

  .home .hero-slider-dots {
    bottom: 12px;
  }

  .home .hero-slide-actions {
    gap: 10px;
    margin-top: 8px;
  }

  .home .hero-slide-actions .hero-slide-cta {
    padding: 12px 16px;
    font-size: var(--ss-text-base);
    min-height: 44px;
  }

  .home .hero-slide-proof {
    gap: 8px 14px;
    margin-top: 2px;
  }

  .home .hero-slide-proof__item {
    font-size: var(--ss-text-xs);
  }
}

@media (max-width: 480px) {

  .home .hero-slider-viewport {
    height: auto;
    min-height: 0;
  }

  .home .hero-slide-stage {
    width: min(72vw, 220px);
  }

  .home .hero-slide-badge {
    font-size: var(--ss-text-2xs);
    padding: 6px 12px;
  }

  .home .hero-slide-actions .hero-slide-cta {
    width: 100%;
    justify-content: center;
  }

  .home .hero-slide-proof {
    gap: 8px 12px;
  }

  .home .hero-slide-proof__item {
    white-space: normal;
  }
}

@media (max-width: 767px) {

  .home .hero-slide-cta--secondary {
    background: rgba(10, 13, 20, 0.88);
    border-color: rgba(255, 255, 255, 0.48);
    color: var(--ss-white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .home .hero-slide-cta--secondary:hover,
  .home .hero-slide-cta--secondary:active {
    background: rgba(10, 13, 20, 0.96);
    border-color: rgba(251, 191, 36, 0.62);
    color: var(--ss-white);
    text-decoration: none;
  }
}

/* Trust bar — 4 feature highlights below the hero */
.home .trust-bar {
  width: var(--ss-container);
  margin: 16px auto 24px;
}

.home .trust-bar-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 22px;
  background: var(--ss-white);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.home .trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.home .trust-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--ss-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home .trust-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.home .trust-icon--red {
  background: #fef2f2;
  color: var(--ss-brand);
}

.home .trust-icon--green {
  background: #ecfdf5;
  color: #16a34a;
}

.home .trust-icon--blue {
  background: #eff6ff;
  color: var(--ss-info);
}

.home .trust-icon--pink {
  background: #fdf2f8;
  color: #db2777;
}

.home .trust-text {
  min-width: 0;
}

.home .trust-title {
  margin: 0;
  font-size: var(--ss-text-md);
  font-weight: 600;
  color: var(--ss-ink);
  line-height: 1.25;
}

.home .trust-subtitle {
  margin: 2px 0 0;
  font-size: var(--ss-text-sm);
  color: var(--ss-muted-alt);
  line-height: 1.35;
}

@media (max-width: 900px) {

  .home .trust-bar {
    width: calc(100% - 16px);
  }

  .home .trust-bar-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 16px;
  }
}

@media (max-width: 480px) {

  .home .trust-bar-card {
    grid-template-columns: 1fr;
  }
}

/* Featured Categories — asymmetric magazine grid */
.home .featured-categories {
  width: var(--ss-container);
  margin: 52px auto 60px;
}

.home .featured-categories-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.home .featured-categories-intro {
  grid-column: 2;
  text-align: center;
}

.home .featured-categories-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ss-ink);
}

.home .featured-categories-head p {
  margin: 0 auto;
  color: var(--ss-muted-alt);
  font-size: var(--ss-text-base);
  line-height: 1.45;
  max-width: 40rem;
}

.home .featured-categories-view-all {
  grid-column: 3;
  justify-self: end;
  align-self: end;
  color: var(--ss-ink);
  font-size: var(--ss-text-base);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.home .featured-categories-view-all:hover {
  color: var(--ss-warning);
  text-decoration: none;
  transform: translateX(2px);
}

.home .featured-categories-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 400px;
  gap: 14px;
}

.home .category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--ss-radius);
  text-decoration: none;
  color: var(--ss-white);
  background: #f3f4f6;
  isolation: isolate;
}

/* Visible only before paint / flash — photo covers entirely after load */
.home .category-card--cover {
  background-color: #161a22;
}

.home .category-card:hover {
  text-decoration: none;
  color: var(--ss-white);
}

.home .category-card--xl {
  grid-column: span 6;
}

.home .category-card--sm {
  grid-column: span 3;
}

.home .category-card--md {
  grid-column: span 5;
}

.home .category-card--lg {
  grid-column: span 7;
}

.home .category-card img {
  display: block;
  transition: transform 0.45s ease;
  max-width: none;
}

.home .category-card--cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  transform: none;
  transform-origin: center center;
  object-fit: cover;
  object-position: center center;
}

.home .category-card--cover:hover img {
  transform: scale(1.045);
}

.home .category-card--cover .category-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 72px 18px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home .category-card-title {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.home .category-card-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ss-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ss-text-lg);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home .category-card:hover .category-card-arrow {
  background: var(--ss-warning);
  color: #1f1300;
  transform: translateX(2px);
}

@media (max-width: 900px) {

  .home .featured-categories {
    width: calc(100% - 16px);
  }

  .home .featured-categories-grid {
    grid-auto-rows: 240px;
    gap: 10px;
  }

  /* One shared DOM order: shoe first (full width), remaining four at 50%. */
  .home .featured-categories-grid>.category-card {
    grid-column: span 6;
  }

  .home .featured-categories-grid>.category-card:first-child {
    grid-column: span 12;
  }
}

@media (max-width: 480px) {

  .home .featured-categories {
    margin: 32px auto 40px;
  }

  .home .featured-categories-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .home .featured-categories-intro,
  .home .featured-categories-view-all {
    grid-column: auto;
    justify-self: center;
  }

  .home .featured-categories-grid {
    grid-auto-rows: 180px;
    gap: 8px;
  }

  .home .category-card-title {
    font-size: var(--ss-text-md);
  }

  .home .category-card-arrow {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
  }

  .home .category-card--cover .category-card-overlay {
    padding: 48px 12px 12px;
  }
}

/* Home — about / SEO copy (Star Tech–style full-width article) */
.home .sft-home-story {
  width: var(--ss-container);
  margin: 0 auto 64px;
  padding: 48px clamp(28px, 4vw, 56px) 52px;
  background: var(--ss-white);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius);
}

.home .sft-home-story__inner {
  max-width: none;
}

.home .sft-home-story__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #111827;
}

.home .sft-home-story h3 {
  margin: 28px 0 10px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.home .sft-home-story p {
  margin: 0 0 12px;
  font-size: var(--ss-text-md);
  line-height: 1.7;
  color: var(--ss-ink-soft);
}

.home .sft-home-story p:last-child {
  margin-bottom: 0;
}

.home .sft-home-story a {
  color: #ac1e1e;
  font-weight: 500;
  text-decoration: none;
}

.home .sft-home-story a:hover {
  color: var(--ss-brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {

  .home .sft-home-story {
    width: calc(100% - 16px);
    margin-bottom: 40px;
    padding: 28px 18px 32px;
  }

  .home .sft-home-story h3 {
    margin-top: 22px;
  }

  .home .industry-grid {
    grid-template-columns: 1fr;
  }

  .home .industry-card {
    border-right: 0;
    border-bottom: 1px solid #d8dde3;
  }

  .home .industry-card:last-child {
    border-bottom: 0;
  }

  .home .hero-promo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home .categories-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home .categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .home .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .cta-grid {
    grid-template-columns: 1fr;
  }
}

.home .sft-bestsellers {
  width: var(--ss-container);
  margin: 52px auto 60px;
}

.home .sft-bestsellers__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.home .sft-bestsellers__intro {
  grid-column: 2;
  text-align: center;
}

.home .sft-bestsellers__title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ss-ink);
}

.home .sft-bestsellers__lede {
  margin: 0 auto;
  color: var(--ss-muted-alt);
  font-size: var(--ss-text-base);
  line-height: 1.45;
  max-width: 36rem;
}

.home .sft-bestsellers__view-all {
  grid-column: 3;
  justify-self: end;
  align-self: end;
  color: var(--ss-ink);
  font-size: var(--ss-text-base);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.home .sft-bestsellers__view-all:hover {
  color: var(--ss-warning);
  text-decoration: none;
  transform: translateX(2px);
}

.home .sft-bestsellers .woocommerce,
.home .sft-bestsellers .woocommerce-notices-wrapper {
  margin: 0;
}

.home .sft-bestsellers ul.products,
.home .sft-bestsellers .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
  clear: both;
}

.home .sft-bestsellers ul.products::before,
.home .sft-bestsellers ul.products::after,
.home .sft-bestsellers .woocommerce ul.products::before,
.home .sft-bestsellers .woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}

.home .sft-bestsellers ul.products li.product,
.home .sft-bestsellers ul.products li.sft-product-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  list-style: none;
}

/* Equal-height cards + consistent media framing for mixed product photos */
.home .sft-bestsellers .sft-product-card {
  height: 100%;
}

.home .sft-bestsellers .sft-product-card__media {
  background: var(--ss-surface);
}

.home .sft-bestsellers .sft-product-card__img,
.home .sft-bestsellers .sft-product-card__media-link img {
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
}

.home .sft-bestsellers .sft-product-card:hover .sft-product-card__img,
.home .sft-bestsellers .sft-product-card:hover .sft-product-card__media-link img,
.home .sft-bestsellers .sft-product-card:focus-within .sft-product-card__img,
.home .sft-bestsellers .sft-product-card:focus-within .sft-product-card__media-link img {
  transform: scale(1.03);
}

@media (max-width: 1280px) {

  .home .sft-bestsellers ul.products,
  .home .sft-bestsellers .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 18px;
  }
}

@media (max-width: 1080px) {

  .home .sft-bestsellers ul.products,
  .home .sft-bestsellers .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 16px;
  }
}

@media (max-width: 820px) {

  .home .sft-bestsellers {
    width: calc(100% - 24px);
  }

  .home .sft-bestsellers ul.products,
  .home .sft-bestsellers .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
}

@media (max-width: 480px) {

  .home .sft-bestsellers {
    width: calc(100% - 16px);
    margin: 32px auto 40px;
  }

  .home .sft-bestsellers__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 14px;
  }

  .home .sft-bestsellers__intro,
  .home .sft-bestsellers__view-all {
    grid-column: auto;
    justify-self: center;
  }

  .home .sft-bestsellers__grid {
    margin-inline: -8px;
    padding-inline: 8px;
  }

  .home .sft-bestsellers ul.products,
  .home .sft-bestsellers .woocommerce ul.products {
    display: flex !important;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    /* Dots replace the native scrollbar as the position cue. */
    scrollbar-width: none;
  }

  .home .sft-bestsellers ul.products::-webkit-scrollbar,
  .home .sft-bestsellers .woocommerce ul.products::-webkit-scrollbar {
    display: none;
  }

  .home .sft-bestsellers ul.products li.product,
  .home .sft-bestsellers ul.products li.sft-product-card {
    /* Peek the next card so the row reads as scrollable. */
    flex: 0 0 82%;
    width: 82% !important;
    max-width: 82% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home .sft-bestsellers .sft-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
  }

  .home .sft-bestsellers .sft-slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid #e2e6ec;
    border-radius: 50%;
    background: var(--ss-white);
    color: var(--ss-ink);
    cursor: pointer;
    transition: opacity .18s ease, border-color .18s ease;
  }

  .home .sft-bestsellers .sft-slider-arrow:disabled {
    opacity: .32;
    cursor: default;
  }

  .home .sft-bestsellers .sft-slider-arrow:focus-visible {
    outline: 2px solid var(--ss-brand);
    outline-offset: 2px;
  }

  .home .sft-bestsellers .sft-slider-dots {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .home .sft-bestsellers .sft-slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d3d8e0;
    cursor: pointer;
    transition: width .18s ease, background-color .18s ease;
  }

  .home .sft-bestsellers .sft-slider-dot.is-active {
    width: 20px;
    background: var(--ss-brand);
  }

  .home .sft-bestsellers .sft-slider-dot:focus-visible {
    outline: 2px solid var(--ss-brand);
    outline-offset: 2px;
  }

  .home .sft-bestsellers .sft-product-card {
    padding: 10px 10px 14px;
  }

  .home .sft-bestsellers .sft-product-card__title {
    font-size: var(--ss-text-sm);
  }

  .home .sft-bestsellers .sft-product-card__price {
    font-size: var(--ss-text-lg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .home .sft-bestsellers .sft-slider-dot,
  .home .sft-bestsellers .sft-slider-arrow {
    transition: none;
  }
}

/* Contain paint for clearly below-the-fold blocks (skip trust-bar — near LCP) */
.home .featured-categories,
.sft-site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}

.home .sft-home-story {
  content-visibility: auto;
  contain-intrinsic-size: 1px 880px;
}

@media (hover: none),
(pointer: coarse) {

  .home .category-card--cover:hover img,
  .home .category-card--contain:hover img {
    transform: none;
  }

  .home .hero-slide-cta--primary:hover,
  .home .hero-slide-cta--secondary:hover {
    transform: none;
  }
}

@media (max-width: 720px) {

  .home .trust-bar-card {
    gap: 12px;
  }
}
/* -------------------------------------------------------------------------
   Fire Safety & Fire Protection band (templates/home/fire-safety.php)
   ------------------------------------------------------------------------- */
.home .sg-fire {
  width: var(--ss-container);
  margin: 0 auto 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f0a0a 0%, #3b0d0d 55%, #7f1d1d 100%);
  color: var(--ss-white);
  overflow: hidden;
}

.home .sg-fire__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr);
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
}

.home .sg-fire__eyebrow {
  margin: 0 0 8px;
  font-size: var(--ss-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fca5a5;
}

.home .sg-fire__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  color: var(--ss-white);
}

.home .sg-fire__lede {
  margin: 0 0 20px;
  color: #fde2e2;
  font-size: var(--ss-text-md);
  line-height: 1.55;
}

.home .sg-fire__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home .sg-fire__btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--ss-radius);
  font-weight: 600;
  font-size: var(--ss-text-base);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.home .sg-fire__btn--primary {
  background: var(--ss-brand);
  color: var(--ss-white);
}

.home .sg-fire__btn--primary:hover,
.home .sg-fire__btn--primary:focus-visible {
  background: var(--ss-brand-dark);
}

.home .sg-fire__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--ss-white);
}

.home .sg-fire__btn--ghost:hover,
.home .sg-fire__btn--ghost:focus-visible {
  border-color: var(--ss-white);
  background: rgba(255, 255, 255, 0.08);
}

.home .sg-fire__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home .sg-fire__item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ss-white);
  font-size: var(--ss-text-sm);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.home .sg-fire__item:hover,
.home .sg-fire__item:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.home .sg-fire__icon {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.9);
}

.home .sg-fire__icon svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 900px) {
  .home .sg-fire {
    width: calc(100% - 16px);
    margin-bottom: 40px;
  }

  .home .sg-fire__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home .sg-fire__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
