/* =========================================
   PRODUCT SECTIONS
========================================= */

.product-section {
  padding: 42px 24px 52px;
  overflow: hidden;
  color: #111;
  background: #fff;
}

/* Section header */

.product-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.product-section-heading h2 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.product-section-heading p {
  margin: 8px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

/* Hide carousel arrows */

.product-section-actions,
.product-slider-arrow {
  display: none !important;
}

/* Horizontal slider */

.product-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 4px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

/* Medium product cards */

.product-card {
  flex: 0 0 220px;
  min-width: 0;
  scroll-snap-align: start;
}

.product-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}

.product-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card-image:hover .product-card-photo {
  transform: scale(1.035);
}

/* Product badge */

.product-card-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 2px;
  background: #d5b56a;
  color: #111;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Product details */

.product-card-details {
  padding-top: 11px;
}

.product-card-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.product-card-title a {
  color: #171717;
  text-decoration: none;
}

.product-card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-card-price {
  color: #555;
  font-size: 12px;
  line-height: 1.6;
}

.product-card-price del {
  margin-right: 5px;
  color: #999;
}

.product-card-price ins {
  color: #111;
  text-decoration: none;
}

/* View all */

.product-section-footer {
  display: flex;
  justify-content: center;
  padding-top: 26px;
}

.product-view-all {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  border: 1px solid #d5b56a;
  border-radius: 100px;
  color: #111;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.product-view-all:hover {
  background: #111;
  color: #d5b56a;
}

/* Tablet */

@media (max-width: 900px) {
  .product-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .product-card {
    flex-basis: 200px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .product-section {
    padding: 30px 16px 38px;
  }

  .product-section-header {
    margin-bottom: 16px;
  }

  .product-slider {
    gap: 12px;
  }

  .product-card {
    flex-basis: 66%;
  }

  .product-card-title {
    font-size: 12px;
  }

  .product-card-price {
    font-size: 12px;
  }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
  .product-slider {
    scroll-behavior: auto;
  }

  .product-card-photo {
    transition: none;
  }
}
