/* Vante Cosmetics — storefront styles (loaded after Bootstrap 5 CDN, AOS CDN, Swiper CDN) */

:root {
  --brand: #a13b5c;
  --brand-dark: #7d2d47;
  --brand-soft: #f3dee4;
  --ink: #221b20;
  --ink-soft: #6b5d62;
  --bg-soft: #faf8f6;
}

body {
  color: var(--ink);
  background: #fff;
  font-family: 'Karla', system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.btn-brand {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-brand:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(161,59,92,.55); }

.btn-outline-brand {
  border-color: var(--brand);
  color: var(--brand);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn-outline-brand:hover { background-color: var(--brand); color: #fff; transform: translateY(-2px); }

.text-brand { color: var(--brand) !important; }
.bg-brand { background-color: var(--brand) !important; color: #fff !important; }
.bg-brand-soft { background-color: var(--brand-soft) !important; }

/* Top utility bar */
.topbar {
  background: var(--ink);
  color: #f4e9ec;
  font-size: .82rem;
}
.topbar a { color: #f4e9ec; text-decoration: none; }
.topbar a:hover { color: #fff; }

/* Main navbar — shrinks and gains a shadow once the page scrolls */
.site-navbar {
  border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 1030;
  background: #fff;
  transition: box-shadow .25s ease, padding .25s ease;
}
.site-navbar.is-scrolled { box-shadow: 0 8px 24px -16px rgba(34,27,32,.35); }
.site-navbar .navbar-brand img { height: 34px; transition: height .25s ease; }
.site-navbar.is-scrolled .navbar-brand img { height: 28px; }
.site-navbar .nav-link { color: var(--ink); font-weight: 500; position: relative; }
.site-navbar .nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brand); transition: width .2s ease;
}
.site-navbar .nav-link:hover::after, .site-navbar .nav-link.active::after { width: 100%; }
.site-navbar .nav-link:hover, .site-navbar .nav-link.active { color: var(--brand); }
.site-navbar .icon-link { position: relative; color: var(--ink); font-size: 1.15rem; transition: color .15s ease, transform .15s ease; display: inline-block; }
.site-navbar .icon-link:hover { color: var(--brand); transform: translateY(-1px); }
.site-navbar .icon-link .badge {
  position: absolute; top: -6px; right: -10px; font-size: .62rem;
}

/* Hero (Swiper) */
.hero-swiper { position: relative; }
.hero-slide {
  background-size: cover;
  background-position: center;
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(34,27,32,.6), rgba(34,27,32,.15));
  z-index: 1;
}
.hero-slide .hero-bg {
  position: absolute; inset: -3%;
  background-size: cover; background-position: center;
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-caption { position: relative; z-index: 2; max-width: 560px; }
.hero-caption .eyebrow { color: #f3c9d6; }
.hero-caption .eyebrow::before { background: #f3c9d6; }
.hero-caption h1, .hero-caption p, .hero-caption .btn {
  opacity: 0; transform: translateY(24px);
}
.swiper-slide-active .hero-caption h1 { animation: heroFadeUp .7s .15s ease forwards; }
.swiper-slide-active .hero-caption p { animation: heroFadeUp .7s .32s ease forwards; }
.swiper-slide-active .hero-caption .btn { animation: heroFadeUp .7s .48s ease forwards; }
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-swiper .swiper-pagination-bullet { background: #fff; opacity: .6; }
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--brand-soft); }
.hero-swiper .swiper-button-next, .hero-swiper .swiper-button-prev { color: #fff; opacity: .75; transition: opacity .2s ease; }
.hero-swiper:hover .swiper-button-next, .hero-swiper:hover .swiper-button-prev { opacity: 1; }
.hero-swiper .swiper-button-next:after, .hero-swiper .swiper-button-prev:after { font-size: 1.4rem; }

/* Features strip */
.features-strip { border-bottom: 1px solid #eee; }
.features-strip .feature-item { display: flex; align-items: center; gap: .85rem; }
.features-strip .feature-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  transition: transform .2s ease;
}
.features-strip .feature-item:hover .feature-icon { transform: scale(1.1) rotate(-6deg); }
.features-strip .feature-title { font-weight: 600; font-size: .92rem; margin: 0; }
.features-strip .feature-sub { font-size: .8rem; color: var(--ink-soft); margin: 0; }

/* Product card */
.product-card { border: 1px solid #eee; border-radius: .75rem; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; height: 100%; background: #fff; }
.product-card:hover { box-shadow: 0 16px 32px -16px rgba(34,27,32,.3); transform: translateY(-4px); }
.product-thumb-wrap { position: relative; overflow: hidden; background: var(--bg-soft); }
.product-card .product-thumb { aspect-ratio: 1/1; object-fit: cover; width: 100%; display: block; transition: transform .5s ease; }
.product-card:hover .product-thumb { transform: scale(1.08); }
.product-card .price-old { text-decoration: line-through; color: var(--ink-soft); font-size: .9rem; }
.product-card .price-final { color: var(--brand); font-weight: 700; }
.discount-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 600;
  padding: .25rem .55rem; border-radius: 100px;
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(161,59,92,.5); } 50% { box-shadow: 0 0 0 6px rgba(161,59,92,0); } }
.wishlist-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: #fff; border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; border: 1px solid #eee;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.wishlist-btn:hover { transform: scale(1.12); color: var(--brand); border-color: var(--brand-soft); }
.wishlist-btn .bi-heart-fill { color: var(--brand); }
.wishlist-btn.is-loading { opacity: .6; pointer-events: none; }

/* Generic fade-out used when an AJAX action removes a card/row from the page */
.is-removing { opacity: 0 !important; transform: scale(.96); transition: opacity .25s ease, transform .25s ease; }

/* Category tile */
.category-tile { text-decoration: none; color: var(--ink); text-align: center; display: block; }
.category-tile img { border-radius: 50%; aspect-ratio: 1/1; object-fit: cover; width: 100%; border: 3px solid var(--brand-soft); transition: transform .25s ease, border-color .25s ease; }
.category-tile:hover img { transform: scale(1.06); border-color: var(--brand); }
.category-tile span { display: block; margin-top: .6rem; font-weight: 600; font-size: .92rem; transition: color .15s ease; }
.category-tile:hover span { color: var(--brand); }

/* Section heading */
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading .eyebrow { color: var(--brand); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; font-weight: 600; }

/* Offers / countdown banner */
.offer-banner {
  background: linear-gradient(120deg, var(--ink) 0%, #3a2530 100%);
  color: #fff; border-radius: 1rem; overflow: hidden; position: relative;
}
.offer-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(161,59,92,.45), transparent 55%);
}
.offer-banner .offer-content { position: relative; z-index: 1; }
.countdown { display: flex; gap: .6rem; }
.countdown .cd-box {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: .6rem; padding: .5rem .75rem; min-width: 64px; text-align: center;
}
.countdown .cd-num { font-family: 'Fraunces', serif; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .cd-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #d9c3ca; }

/* Brand marquee */
.brand-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-marquee-track { display: flex; gap: 4rem; width: max-content; animation: marquee 28s linear infinite; align-items: center; }
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
.brand-marquee-track img { height: 34px; opacity: .55; filter: grayscale(1); transition: opacity .2s ease, filter .2s ease; }
.brand-marquee-track img:hover { opacity: 1; filter: grayscale(0); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Testimonial swiper */
.testimonial-card { background: #fff; border-radius: 1rem; padding: 1.75rem; height: 100%; }
.testimonial-card .bi-quote { font-size: 1.6rem; color: var(--brand-soft); }

/* Footer */
.site-footer { background: var(--ink); color: #cbb8bd; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.site-footer a { color: #cbb8bd; text-decoration: none; transition: color .15s ease, padding-left .15s ease; }
.site-footer a:hover { color: #fff; padding-left: 3px; }
.site-footer .social-icons a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #4a3d43; align-items: center; justify-content: center; margin-right: .5rem; transition: background-color .2s ease, transform .2s ease; }
.site-footer .social-icons a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-3px); padding-left: 0; }

/* Back to top */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .2s ease;
  box-shadow: 0 10px 24px -8px rgba(34,27,32,.4);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-dark); }

/* Cart / checkout */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: .5rem; }
.qty-stepper button { border: none; background: none; width: 34px; height: 34px; transition: color .15s ease; }
.qty-stepper button:hover { color: var(--brand); }
.qty-stepper input { width: 42px; border: none; text-align: center; }

/* Blog */
.blog-card { transition: box-shadow .25s ease, transform .25s ease; }
.blog-card:hover { box-shadow: 0 16px 32px -16px rgba(34,27,32,.3); transform: translateY(-4px); }
.blog-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .5s ease; }
.blog-card:hover img { transform: scale(1.06); }

.rating-stars { color: #e0a75e; letter-spacing: 1px; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide .hero-bg, .discount-badge, .brand-marquee-track { animation: none !important; }
  .product-card, .product-card .product-thumb, .hero-caption h1, .hero-caption p, .hero-caption .btn { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
