/* index.css
   Page-specific styles for homepage / product listing / hero
   Anything header/footer/global moved to styles.css
*/

/* Hero styles */
.hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 120%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.2s ease-out;
}

.hero-content {
  z-index: 2;
}

/* Product cards */
.product-card {
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--card-bg);
  box-shadow: 0 0 15px var(--card-shadow);
  transition: box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 0 25px var(--card-hover-shadow);
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.product-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(200, 160, 120, 0.3);
}

/* "View Details" / "Add to Cart" buttons under cards */
.product-card button {
  margin-top: 0.5rem;
  transition: background 0.3s, color 0.3s;
}

.product-card button:hover {
  background-color: rgba(205, 127, 50, 0.85);
  color: #fff;
  border-color: rgba(205, 127, 50, 0.85);
}

/* Big CTA button in hero */
.btn-shop {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.85), rgba(205, 127, 50, 0.85));
  color: #fff;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-shop:hover {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.85), rgba(205, 127, 50, 0.85));
  transform: scale(1.05);
}

/* Section Titles on this page */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: rgba(205, 127, 50, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  animation: titleFade 1.2s ease both;
}

@keyframes titleFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-in animation blocks used on homepage sections */
.elegant-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
  will-change: opacity, transform;
}

.elegant-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* In-view utility */
.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Accent background card blocks used in homepage sections */
.accent-bg {
  background: linear-gradient(to right, #f0b6d5, #e0c68e);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(205, 127, 50, 0.85);
  color: #fff;
}

/* Circular glow logo block on homepage intro */
.logo-circle {
  border-radius: 50%;
  border: 4px solid #e0c68e;
  padding: 8px;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.85);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.logo-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(205, 127, 50, 0.85);
}

/* SALE BADGE overlay on product cards */
.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(205, 127, 50, 0.95);
  color: #fff;
  padding: 6px 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 1.2rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: skew(-12deg);
  cursor: default;
  transition: box-shadow 0.3s ease;
  z-index: 20;
}

.sale-badge .old-price {
  position: relative;
  font-size: 0.8rem;
  opacity: 0.75;
  color: #fff;
  text-transform: uppercase;
  padding-right: 12px;
  transform: skew(12deg);
}

.sale-badge .old-price::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  border-top: 2.5px solid #fff;
  transform: rotate(-15deg);
  transform-origin: center;
  opacity: 0.85;
}

.sale-badge .new-price {
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: skew(12deg);
}

/* ── Mobile “swipe carousel” for products ── */
@media (max-width: 1024px) {

  /* make the row a horizontal scroller */
  .product-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* smooth native scrolling */
    gap: 1rem;
    /* keep gutters */
    padding-bottom: 0.5rem;
    /* give some space below cards */
  }

  /* hide the default Bootstrap gutters on the flex row */
  .product-carousel.g-4 {
    margin-left: 0;
    margin-right: 0;
  }

  .product-carousel.g-4>[class^="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  /* force exactly two cards per “page” */
  .product-carousel>.col-md-4 {
    flex: 0 0 50%;
    /* take up half the viewport width */
    max-width: 50%;
    scroll-snap-align: start;
    /* optional—pins cards to edges */
  }

  /* enable scroll snapping if you like */
  .product-carousel {
    scroll-snap-type: x mandatory;
  }
}
