/* ============================================================
   Silk – Visual Polish & Animations  (always loaded last)
   ============================================================ */

/* ── 1. Page Load Fade-in ── */
@keyframes silk-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
body { animation: silk-fade-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── 2. Hero – taller + Ken Burns on active slide ── */
.hero-slider { height: 600px; }

@keyframes ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.hero-slide.is-active img {
  animation: ken-burns 7s ease-in-out forwards;
}

/* ── 3. Scroll Reveal System ── */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }
.reveal-d5 { transition-delay: 0.35s; }
.reveal-d6 { transition-delay: 0.42s; }

/* ── 4. Section Title – gradient ornament line ── */
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  border-radius: 2px;
  margin: 14px auto 0;
}
/* Left-aligned titles (category section) */
.shop-by-category .section-title::after {
  margin-left: 0;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

/* ── 5. Section Label – flanking decorative lines ── */
.section-label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.section-label::before,
.section-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

/* ── 6. Offer Cards – accent left bar + lift ── */
.offer-card {
  border-left: 3px solid var(--color-accent) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
}

/* ── 7. Quick Shop Cards – accent top bar on hover ── */
.quick-shop-card {
  border-top: 3px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}
.quick-shop-card:hover { border-top-color: var(--color-accent); }

/* ── 8. Category Cards – lift + shadow under image ── */
.category-card { transition: transform 0.3s ease; }
.category-card:hover { transform: translateY(-5px); }
.category-img-wrap { transition: box-shadow 0.35s ease !important; }
.category-card:hover .category-img-wrap {
  box-shadow: 0 14px 36px rgba(0,0,0,0.14);
}

/* ── 9. Occasion Cards – pink accent on hover overlay ── */
.occasion-overlay { transition: background 0.35s ease; }
.occasion-card:hover .occasion-overlay {
  background: linear-gradient(transparent 25%, rgba(232,46,96,0.52)) !important;
}

/* ── 10. Trend "Shop Now" – slide up from bottom ── */
.trend-shop-btn {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease !important;
}
.trend-card:hover .trend-shop-btn {
  opacity: 1;
  transform: none;
}

/* ── 11. Product Cards – accent top border + sharper shadow ── */
.product-card {
  border-top: 2.5px solid transparent;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease !important;
}
.product-card:hover { border-top-color: var(--color-accent); }

/* ── 12. Wishlist Heart – pop animation ── */
@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.product-wishlist:hover { animation: heart-pop 0.32s ease !important; }

/* ── 13. Nav Links – animated underline ── */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-item:hover > .nav-link::after { width: 100%; }

/* ── 14. Buttons – subtle lift on hover ── */
.btn:hover,
.section-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.1);
}

/* ── 15. Social Icons – accent tint ── */
.social-link:hover { background: rgba(232,46,96,0.15) !important; }

/* ── 16. Header icon buttons – scale on hover ── */
.header-icon-btn {
  transition: color var(--transition-fast), transform 0.2s ease;
}
.header-icon-btn:hover { transform: translateY(-1px); }

/* ── 17. Footer – subtle top border accent ── */
.site-footer {
  border-top: 3px solid var(--color-accent);
}

/* ── Mobile: disable animations for users who prefer reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide.is-active img { animation: none; }
}

@media (max-width: 768px) {
  .hero-slider { height: 320px; }
  .section-title::after { margin-top: 10px; }
}
