body {
  margin: 0;
  font-family: "Inria Sans", sans-serif;
}

/* === Hero Section === */
.hero-section {
  width: 100%;
  overflow: hidden;
  margin-top: 80px; /* Account for fixed header */
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
}

/* PRODUCT */
.product-carousel {
  background: #fff;
  padding-top: 20px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.product-carousel .section-heading {
  font-family: "Inria Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 31.2px;
  text-transform: uppercase;
  margin: 0 12px 24px 12px;
  text-align: left;
}

.product-grid-section {
  background: #fff;
  padding: 20px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-grid .product-card {
  width: auto; /* Override slider-specific width */
}

.product-image.hover {
  display: none;
}

.add-to-cart.over-image {
  display: none;
}

.product-container {
  max-width: 1300px !important;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.carousel-frame {
  overflow: hidden; /* NEW: clips overflowing product-slider */
}

/* === Product Slider Layout === */
.product-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 10px;
  flex-wrap: nowrap;
}

.product-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  overflow-x: visible;
  padding: 0 4%;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 auto;
  width: clamp(280px, 33.33%, 400px); /* min, ideal, max */
  scroll-snap-align: center;
  border-radius: 10px;
  border: 1px solid #e7e7e7;
  overflow: hidden;
}

.product-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.product-image {
  width: 100%;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: -7px;
  left: -5px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 11px 10px;
  border-radius: 4px;
  z-index: 2;
  margin: 10px 8px;
}

.wishlist-btn {
  position: absolute;
  top: 5px;
  right: 2px;
  background: none;
  border: none;
  z-index: 2;
}
.wishlist-btn img {
  width: 26px;
  height: 27px;
}

.product-info {
  padding: 20px 21px 0 16px;
  text-align: left;
}

.product-name {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.product-inspired {
  font-size: 12px;
  font-weight: 400;
  color: #444;
  text-transform: uppercase;
  margin: 4px 0;
}
.product-notes {
  font-size: 14px;
  font-weight: 400;
  color: #121212;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.price-section {
  margin-bottom: 12px;
}

.current-prices .price {
  color: #ec1c1c;
  font-weight: bold;
  margin-right: 6px;
  font-size: 16px;
}
.original-prices .original {
  color: #9b9b9b;
  text-decoration: line-through;
  margin-right: 6px;
  font-size: 16px;
}

.add-to-cart {
  background: #000;
  color: #fff;
  margin-top: 8px;
  padding: 14px 0;
  width: 100%;
  border: none;
  border-radius: 36px;
  font-size: 14.267px;
  line-height: 11.208px;
  letter-spacing: 0.431px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 15px;
}

/* Arrows: fixed inside visible frame */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #121212;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15); /* optional: subtle depth */
  transition: background 0.2s;
}

.product-grid-container + .carousel-arrow {
  display: none;
}

/* Place the arrows just *inside* the edges of the product slider */
.carousel-arrow.prev {
  left: 22px; /* was -18px */
}

.carousel-arrow.next {
  right: 22px; /* was -18px */
}

.carousel-arrow:hover {
  background: #f5f5f5;
}

.carousel-arrow img {
  width: 16px;
  height: 16px;
}

/* === Arrows === */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #121212;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}

.carousel-arrow.prev {
  left: 22px;
}
.carousel-arrow.next {
  right: 22px;
}

.carousel-arrow:hover {
  background: #f5f5f5;
}

.carousel-arrow img {
  width: 16px;
  height: 16px;
}

/* === Text Content Section === */
.text-content-section {
  text-align: center;
  padding: 40px 16px;
  background: #fff;
  color: #121212;
  font-family: Inter, sans-serif;
}

.text-content-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.text-content-section .main-heading {
  font-size: 27.891px;
  font-weight: 600;
  line-height: 39px;
  margin-bottom: 16px;
}

.text-content-section .intro-paragraph {
  font-size: 13.344px;
  font-weight: 400;
  line-height: 22.4px;
}

.text-content-section .intro-paragraph strong {
  font-weight: 700;
}

.text-content-section .sub-heading {
  font-size: 13.781px;
  font-weight: 700;
  line-height: 22.4px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.text-content-section p {
  font-size: 13.016px;
  font-weight: 400;
  line-height: 22.4px;
  margin-bottom: 16px;
}

.text-content-section p strong {
  font-size: 13.125px;
  font-weight: 700;
}

/* Instagram Grid */
.social-grid .grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.social-grid img {
  width: 100%;
  display: block;
  object-fit: cover;
}

@media (min-width: 767px) {
  /* === Hero Section (Tablet) === */
  .product-grid-container {
    padding: 0 4%;
  }
}

@media (min-width: 960px) {
  body {
    overflow-x: hidden;
  }

  /* === Hero Section (Desktop) === */
  .hero-section {
    margin-top: 32px; /* Adjusted for desktop header height */
  }

  .product-grid-section {
    padding: 10px 0;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto;
    padding: 0;
  }

  .product-grid .product-card {
    /* Reset slider-specific styles for desktop */
    flex: none;
    max-width: none;
  }

  /* === Product Carousel Section === */
  .product-carousel {
    padding-top: 12px;
    background: #fff;
  }

  /* === Carousel Frame & Arrows === */
  .carousel-frame {
    overflow: hidden;
    position: relative;
    padding: 0 8px;
  }

  .carousel-arrow {
    position: absolute;
    top: 50%;
    background: #fff;
    border: 1px solid #121212;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
    transform: translateY(-50%);
  }

  .carousel-arrow.prev {
    left: 12px;
    transform: translateY(-50%) translateX(+24px); /* slight nudge in */
  }

  .carousel-arrow.next {
    right: 12px;
    transform: translateY(-50%) translateX(-24px);
  }

  .carousel-arrow:hover {
    background: #f5f5f5;
  }

  .carousel-arrow img {
    width: 16px;
    height: 16px;
  }

  /* === Product Slider === */
  .product-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0;
  }

  .product-slider::-webkit-scrollbar {
    display: none;
  }

  /* === Product Card === */
  .product-card {
    flex: 0 0 calc((100% - 3 * 8px) / 4);
    max-width: calc((100% - 3 * 8px) / 4);
    scroll-snap-align: center;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: none;
  }

  /* === Product Image Wrapper with Hover Swap === */
  .product-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
  }

  .product-image.default {
    display: block;
    width: 100%;
    transition: opacity 0.3s ease;
  }

  .product-image.hover {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  /* Only when hovering on the image wrapper */
  .product-image-wrapper:hover .product-image.hover {
    opacity: 1;
  }

  .product-image-wrapper:hover .product-image.default {
    opacity: 0;
  }

  /* === Badge & Wishlist === */
  .badge {
    position: absolute;
    top: -7px;
    left: -5px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 10px 10px;
    border-radius: 4px;
    z-index: 2;
    margin: 10px 8px;
  }

  .wishlist-btn {
    position: absolute;
    top: 5px;
    right: 2px;
    background: none;
    border: none;
    z-index: 2;
  }

  .wishlist-btn img {
    width: 24px;
    height: 24px;
  }

  /* === Add to Cart Over Image === */
  .add-to-cart.over-image {
    display: block;
    position: absolute;
    bottom: 12px; /* ⬅️ move it slightly up */
    left: 12px; /* ⬅️ give spacing from left */
    right: 12px; /* ⬅️ give spacing from right */
    width: auto; /* ⬅️ allow full width with spacing */
    background: #666;
    color: #fff;
    border: none;
    padding: 14px 20px; /* ⬅️ more vertical & horizontal padding */
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease;
    border-radius: 30px; /* optional: rounded corners */
    margin-bottom: 0;
  }

  .product-image-wrapper:hover .add-to-cart.over-image {
    opacity: 1;
    pointer-events: auto;
  }

  .add-to-cart.over-image:hover {
    background: #000;
  }

  /* === Product Info === */
  .product-info {
    padding: 12px 0 0 0;
    text-align: left;
  }

  .product-name {
    font-size: 17px; /* +1px */
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
  }

  .product-inspired,
  .product-notes {
    font-size: 14px; /* +1px */
    font-weight: 400;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
  }

  .price-section {
    margin-bottom: 12px;
  }

  .original-prices .original {
    color: #9b9b9b;
    text-decoration: line-through;
    margin-right: 6px;
    font-size: 15px; /* +1px */
  }

  .product-info .add-to-cart {
    display: none;
  }

  /* === Instagram Photos === */
  .social-grid .grid-wrapper {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1440px) {
  .product-carousel .section-heading {
    font-size: 16.5px;
  }
}
