/* ========================
   home.css — Homepage CSS
======================== */

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 580px;
  max-height: 820px;
  overflow: hidden;
  background: #1a0c0a;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
  user-select: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

/* Slide overlay — subtle gradient only at edges for text readability */
.slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(15, 7, 5, 0.55) 0%, rgba(15, 7, 5, 0.2) 35%, transparent 60%);
}

/* Slide 2 overlay — text on left, image focus right */
.slide-overlay--mid {
  background:
    linear-gradient(to right, rgba(15, 7, 5, 0.6) 0%, rgba(15, 7, 5, 0.2) 45%, transparent 65%);
}

/* Slide 3 overlay — text on right */
.slide-overlay--right {
  background:
    linear-gradient(to left, rgba(15, 7, 5, 0.55) 0%, rgba(15, 7, 5, 0.2) 35%, transparent 60%);
}

/* Slide Center overlay — text in middle */
.slide-overlay--center {
  background:
    linear-gradient(to bottom, rgba(15, 7, 5, 0.3) 0%, transparent 40%, transparent 60%, rgba(15, 7, 5, 0.15) 100%);
}

/* Slide text content */
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-top: 3rem;
  padding-bottom: 2rem;
}
.slide-content--right {
  margin-left: auto;
  text-align: right;
}
.slide-content--right .slide-actions {
  justify-content: flex-end;
}

.slide-content--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 720px;
}
.slide-content--center .slide-actions {
  justify-content: center;
}
.slide-content--center .slide-label {
  justify-content: center;
}
.slide-content--center .slide-label::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Gold accent bar above label */
.slide-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.slide-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}
.slide-content--right .slide-label {
  flex-direction: row-reverse;
}

.slide-title {
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.slide-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.75;
  max-width: 440px;
}
.slide-content--right .slide-sub {
  margin-left: auto;
}

.slide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Carousel Navigation Arrows ---- */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}
.carousel-prev { left: 2rem; }
.carousel-next { right: 2rem; }

/* ---- Carousel Dots ---- */
.carousel-dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 20;
}
.cdot {
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}
.cdot.active {
  background: var(--gold);
  width: 56px;
}
.cdot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.65);
}

/* ---- btn-outline-light ---- */

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}


/* ===== OFFER STRIP ===== */
.offer-strip-section {
  background: var(--cream);
  padding: 3rem 0;
}
.offer-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.offer-card {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1.5rem;
  position: relative;
  min-height: 200px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.offer-card--dark {
  background: linear-gradient(135deg, var(--dark-brown) 0%, #2a1a17 100%);
}
.offer-card--cream {
  background: var(--white);
  border: 1.5px solid var(--border);
}
.offer-card--gold {
  background: linear-gradient(135deg, var(--gold) 0%, #aa8840 100%);
}
.offer-card-content { flex: 1; z-index: 1; }
.offer-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.offer-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.offer-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.offer-card-img {
  width: 110px;
  flex-shrink: 0;
  position: relative;
}
.offer-card-img img {
  width: 110px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transform: rotate(3deg);
  transition: transform 0.4s ease;
}
.offer-card:hover .offer-card-img img { transform: rotate(0deg) scale(1.05); }

/* ===== SHOP BY CATEGORY (new) ===== */
.shop-by-cat-section { background: var(--cream); padding-top: 1rem; }

/* Round Category Pills â€” Zouk style */
.cat-pills {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.8rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  flex-wrap: wrap;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--transition);
}
.cat-pill-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.cat-pill-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-pill:hover .cat-pill-circle,
.cat-pill.active .cat-pill-circle {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,106,0.25);
}
.cat-pill:hover .cat-pill-circle img,
.cat-pill.active .cat-pill-circle img { transform: scale(1.1); }
.cat-pill span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--transition);
  text-align: center;
}
.cat-pill:hover span, .cat-pill.active span { color: var(--gold); }

/* --- Categories image grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.category-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1; /* Square cards fit most images better */
  cursor: pointer;
  /* ---------- Product Card (Premium Reference Style) ---------- */
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 46, 42, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  box-shadow: 0 15px 45px rgba(74, 46, 42, 0.12);
  transform: translateY(-8px);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

/* Badge (Best Seller) */
.product-badge-ref {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--dark-brown);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-info {
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

/* Rating Stars */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.stars-gold {
  color: var(--gold);
  font-size: 0.9rem;
  display: flex;
  gap: 2px;
}
.rating-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Price & Button Row */
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.price-current {
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-brown);
}
.price-old {
  font-family: var(--font-num);
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.btn-cart-ref {
  background: var(--dark-brown);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-cart-ref:hover {
  background: var(--gold);
  transform: scale(1.05);
}
  transition: var(--transition);
  animation-delay: var(--delay, 0s);
  background: #f0f0f0; /* Fallback background color */
}
.category-card:hover { 
  box-shadow: var(--shadow-md); 
  transform: translateY(-8px); 
}
.category-img { 
  position: absolute; 
  inset: 0; 
  width: 100%;
  height: 100%;
}
.category-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
}
.category-card:hover .category-img img { 
  transform: scale(1.12); 
}
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,12,10,0.9) 0%, rgba(26,12,10,0.3) 50%, transparent 100%);
  transition: opacity 0.4s ease;
}
.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(26,12,10,0.95) 0%, rgba(26,12,10,0.4) 60%, transparent 100%);
}
.category-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.8rem 1.5rem;
  z-index: 1;
  transition: transform 0.4s ease;
}
.category-card:hover .category-info {
  transform: translateY(-5px);
}
.category-info h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.category-info span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.category-info span i {
  transition: transform 0.3s ease;
}
.category-card:hover .category-info span i {
  transform: translateX(4px);
}

/* --- Best Sellers grid --- */
.bestsellers-section { background: #FAF7F3; }
.section-header.space-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- Brand Story --- */
.brand-story-section { background: var(--cream); }
.brand-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.brand-story-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.brand-story-img img { width: 100%; height: 100%; object-fit: cover; }
.brand-story-badge {
  position: absolute;
  bottom: 2rem; right: -1.5rem;
  background: var(--gold);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.badge-num { display: block; font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.badge-txt { font-size: 0.72rem; letter-spacing: 0.05em; opacity: 0.9; }
.brand-story-content h2 { margin-bottom: 1.2rem; }
.brand-story-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.brand-feat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.brand-feat i { color: var(--gold); font-size: 0.9rem; width: 16px; }

/* --- Why Choose --- */
.why-section { background: var(--dark-brown); }
.why-section .section-title { color: var(--white); }
.why-section .section-label { color: var(--gold-light); }
.why-section .section-sub { color: rgba(255,255,255,0.65); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  animation-delay: var(--delay, 0s);
}
.why-card:hover {
  background: rgba(200,169,106,0.12);
  border-color: rgba(200,169,106,0.3);
  transform: translateY(-6px);
}
.why-icon {
  width: 64px; height: 64px;
  background: rgba(200,169,106,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.3rem;
  font-size: 1.4rem;
  color: var(--gold);
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--gold); color: var(--white); }
.why-card h4 { color: var(--white); margin-bottom: 0.7rem; }
.why-card p { color: rgba(255,255,255,0.6); font-size: 0.875rem; }

/* --- Testimonials --- */
.testimonials-section { background: var(--cream); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.author-avatar {
  width: 44px; height: 44px;
  background: var(--dark-brown);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--dark-brown); }
.testimonial-author span { font-size: 0.75rem; color: var(--text-muted); }

/* --- Gallery --- */
.gallery-section { background: #FAF7F3; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 2rem;
  padding-bottom: 2rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: #ffffff;
  height: 480px;
  box-shadow: 0 12px 40px rgba(74, 46, 42, 0.08);
  border: 1px solid rgba(74, 46, 42, 0.03);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(74, 46, 42, 0.15);
}
.gallery-item iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block;
}
.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(74, 46, 42, 0.05); /* Very subtle overlay */
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.gallery-item:hover .gallery-hover { opacity: 1; }

/* --- Newsletter --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--dark-brown) 0%, #2d1a17 100%);
  padding: 5rem 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.newsletter-content .section-label { color: var(--gold); }
.newsletter-content h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.8rem; }
.newsletter-content p { color: rgba(255,255,255,0.65); }
.newsletter-input-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.9rem 1.5rem;
  margin-bottom: 1rem;
}
.newsletter-input-wrap i { color: rgba(255,255,255,0.5); }
.newsletter-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
}
.newsletter-input-wrap input::placeholder { color: rgba(255,255,255,0.45); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-carousel { height: 80vh; }
  .offer-strip { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; }
  .brand-story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand-story-badge { right: 1rem; }
  .carousel-stats { gap: 1.5rem; }
}
@media (max-width: 768px) {
  .hero-carousel { height: 70vh; min-height: 480px; }
  .offer-strip { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .brand-story-features { grid-template-columns: 1fr; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 0.85rem; }
  .carousel-prev { left: 0.75rem; }
  .carousel-next { right: 0.75rem; }
  .carousel-stats { gap: 0.75rem; padding: 0.9rem 1rem; flex-wrap: wrap; }
  .cstat-div { display: none; }
  .cat-pills { justify-content: flex-start; flex-wrap: nowrap; padding-bottom: 1rem; }
}
@media (max-width: 480px) {
  .hero-carousel { height: 60vh; }
  .slide-title { font-size: 2rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .offer-card-img { display: none; }
  .cat-pill-circle { width: 64px; height: 64px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery-item { height: 400px; }
}

/* ===== WISHLIST BUTTON ===== */
/* Default State: Black icon, smooth transitions prepared */
.wishlist-btn .wish-elephant {
    transition: all 0.3s ease;
    transform: scale(1);
    filter: none;
}

/* Active/Wishlisted State: Pink icon, zoomed slightly */
.wishlist-btn.wishlisted .wish-elephant,
.wishlist-btn.active .wish-elephant {
    /* Shifts pure black into vivid pink (#E91E63) */
    filter: invert(27%) sepia(85%) saturate(2256%) hue-rotate(320deg) brightness(97%) contrast(97%);
    transform: scale(1.15);
}