/* =========================================================
   shop.css — extends style.css tokens for the Shop-by-Part page
   ========================================================= */

/* =========================================================
   Placeholder image utility
   ========================================================= */
.ph {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ivory-deep), #EAE0CD);
  color: rgba(190, 91, 34, .32);
}

.ph::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* background-image: repeating-linear-gradient(45deg, rgba(190, 91, 34, .06) 0 2px, transparent 2px 16px); */
}

.ph svg {
  position: relative;
  z-index: 1;
  width: 30%;
  height: 30%;
}

.ph-dark {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: rgba(255, 255, 255, .22);
}

.ph-dark::after {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 16px);
}

.ph-hero {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.ph-hero svg {
  width: 90px;
  height: 90px;
}

.ph-wide svg {
  width: 70px;
  height: 70px;
}

.ph-logo {
  width: 100%;
  aspect-ratio: 2/1;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.ph-logo svg {
  width: 34px;
  height: 34px;
}

.ph-square {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ph-square svg {
  width: 40px;
  height: 40px;
}

.ph-blog {
  aspect-ratio: 16/10;
  border-radius: var(--radius) var(--radius) 0 0;
}

.ph-blog svg {
  width: 50px;
  height: 50px;
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb-bar {
  background: var(--ivory-deep);
  border-bottom: 1px solid var(--paper-line);
  padding: 14px 0;
}

.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.breadcrumb-bar a {
  color: var(--text-dim);
  transition: color .18s ease;
}

.breadcrumb-bar a:hover {
  color: var(--copper);
}

.breadcrumb-bar span:last-child {
  color: var(--text);
  font-weight: 600;
}

.main-nav a.is-current {
  color: var(--ink);
}

.main-nav a.is-current::after {
  transform: scaleX(1);
}

/* =========================================================
   Model finder hero
   ========================================================= */
.model-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;

  /* Background Image */
  background-image: url("assets/img/Untitled-1_2_1512x.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay for text readability */
.model-hero-scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background: rgba(22, 23, 27, 0.45);
}

.model-hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 20px;
}

.model-hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  color: #fff;
  margin: 6px 0 14px;
}

.model-hero-lede {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin-bottom: 34px;
}

.model-finder {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.model-finder-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 14px 4px 4px;
  flex: 1;
  min-width: 200px;
}

.model-finder-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.model-finder-field select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 12px 0;
  width: 100%;
  color: var(--text);
}

.model-finder .btn {
  flex-shrink: 0;
}

.btn-on-dark {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-on-dark:hover {
  background: #fff;
  color: var(--ink);
}

/* =========================================================
   Brand carousel
   ========================================================= */
.brand-carousel-section {
  padding: 44px 0 8px;
}

.brand-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 4px 2px;
}

.brand-carousel::-webkit-scrollbar {
  display: none;
}

.brand-slide {
  flex: 0 0 140px;
  scroll-snap-align: start;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.brand-slide:hover {
  transform: translateY(-3px);
  border-color: var(--copper);
  box-shadow: var(--shadow-card);
}

.brand-slide p {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
}

.brand-slide .ph-logo {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    padding: 12px;
}

.brand-slide .ph-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-slide p {
    margin: 0;
    text-align: center;
}

/* =========================================================
   Promo tiles — photo variant
   ========================================================= */
.promo-tile-photo {
  padding: 0;
  min-height: 270px;
  display: block;
  position: relative;
}

.promo-tile-photo .ph-dark {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.promo-tile-photo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(22, 23, 27, .88) 0%, rgba(22, 23, 27, .15) 60%);
}

.promo-tile-body {
  position: relative;
  z-index: 2;
  display: block;
  padding: 30px 34px;
}

.promo-tile-body-light {
  color: var(--text);
}

.promo-tile-body h3 {
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 8px 0 14px;
}

.promo-tile-photo .promo-eyebrow {
  position: static;
}

.promo-tile-photo .promo-cta {
  color: #fff;
}

.promo-price {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.promo-price s {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  opacity: .7;
}

.promo-tile .ph-dark {
    display: block;
    width: 100%;
    /* height: 200px; */
    overflow: hidden;
    /* position: relative; */
}

.promo-tile .ph-dark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.promo-tile:hover .ph-dark img {
    transform: scale(1.04);
}

.promo-tile .ph-dark img {
    transition: transform 0.4s ease;
}

/* =========================================================
   Section spacing tweak
   ========================================================= */
.section-tight {
  padding: 64px 0 8px;
}

/* =========================================================
   Popular categories
   ========================================================= */
.popular-cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.popular-cat-card {
  display: flex;
  gap: 22px;
  background: #fff;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.popular-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.popular-cat-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.popular-cat-body ul {
  margin-bottom: 12px;
}

.popular-cat-body li {
  margin-bottom: 6px;
}

.popular-cat-body a {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color .18s ease;
}

.popular-cat-body li a:hover {
  color: var(--copper);
}

.popular-cat-body .link-arrow {
  border-bottom-color: var(--copper);
  color: var(--copper);
  font-size: 12.5px;
}

.popular-cat-card .ph-square img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* =========================================================
   Category tab-slider sections
   ========================================================= */
.cat-slider-section {
  padding: 56px 0;
}

.cat-slider-tint {
  background: var(--ivory-deep);
}

.cat-slider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 26px;
}

.cat-slider-head h2 {
  font-size: 24px;
  flex-shrink: 0;
  margin-right: 6px;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  flex: 1;
}

.cat-tab {
  background: none;
  border: none;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.cat-tab:hover {
  color: var(--text);
}

.cat-tab.is-active {
  color: var(--copper);
  border-color: var(--copper);
}

.slider-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 22px;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper-line);
  border: none;
  padding: 0;
  transition: background-color .2s ease, transform .2s ease;
}

.slider-dots .dot.is-active {
  background: var(--copper);
  transform: scale(1.3);
}

/* =========================================================
   Full-width promo carousel
   ========================================================= */
.promo-carousel {
  position: relative;
  overflow: hidden;
}

.promo-carousel-track {
  position: relative;
  min-height: 360px;
}

.promo-carousel-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
}

.promo-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.promo-carousel-slide .ph-dark {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.promo-carousel-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.promo-carousel-content h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  color: #fff;
  margin: 8px 0 26px;
}

.promo-carousel-content h2 span {
  color: var(--copper-tint);
  font-style: italic;
}

.promo-carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.promo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  border: none;
  padding: 0;
  transition: background-color .2s ease, transform .2s ease;
}

.promo-dot.is-active {
  background: var(--copper);
  transform: scale(1.3);
}

/* =========================================================
   Bottom promo duo — shipping tile
   ========================================================= */
.promo-duo-bottom {
  padding: 64px 0;
}

.ship-tile {
  background: linear-gradient(135deg, var(--copper), var(--copper-deep));
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  min-height: 220px;
}

.ship-tile-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ship-tile-icon svg {
  width: 30px;
  height: 30px;
}

.ship-tile-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 8px;
}

.ship-tile h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
}

/* =========================================================
   Guide grid — 3-up variant with placeholder + CTA
   ========================================================= */
.guide-grid-3 .guide-card {
  display: flex;
  flex-direction: column;
}

.guide-grid-3 .guide-card .btn {
  margin: 12px 20px 22px;
  align-self: flex-start;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .popular-cats-grid {
    grid-template-columns: 1fr;
  }

  .promo-duo-bottom .promo-duo-grid {
    grid-template-columns: 1fr;
  }

  .model-finder {
    flex-direction: column;
    align-items: stretch;
  }

  .model-finder-field {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .cat-slider-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cat-slider-head .slider-controls {
    align-self: flex-end;
  }

  .model-hero {
    min-height: 0;
  }

  .model-hero-content {
    padding: 48px 20px;
  }

  .popular-cat-card {
    flex-direction: column;
  }

  .ph-square {
    width: 100%;
    height: 160px;
  }

  .ship-tile {
    flex-direction: column;
    text-align: center;
  }
}