/* -------------------------------------------------
   GLOBAL VARIABLES
   ------------------------------------------------- */
:root {
  --p: #e91e63; --pl: #f8bbd0; --d: #212121; --l: #f5f5f5; --g: #757575; --b: #e0e0e0;
  --t: #333; --bg: #fff; --card: #fff; --sh: rgba(0,0,0,.08);
  --grad: linear-gradient(135deg, #e91e63, #ff4081);
}
[data-theme="dark"] {
  --p: #e91e63; --pl: #c2185b; --d: #f5f5f5; --l: #212121; --g: #bbb; --b: #444;
  --t: #f0f0f0; --bg: #1a1a1a; --card: #2a2a2a; --sh: rgba(0,0,0,.3);
  --grad: linear-gradient(135deg, #e91e63, #c2185b);
}
/* -------------------------------------------------
   BASIC RESET & TYPOGRAPHY
   ------------------------------------------------- */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Poppins',sans-serif;
  background:var(--bg);
  color:var(--t);
  line-height:1.6;
  transition:background .3s,color .3s;
}
.container { max-width:1200px; margin:auto; padding:0 1rem; }
/* -------------------------------------------------
   HEADER & NAV
   ------------------------------------------------- */
header {
  background:var(--card);
  box-shadow:0 2px 15px var(--sh);
  position:sticky;
  top:0;
  z-index:1000;
}



/* Default: header is visible and sticky */
header {

  transition: transform 0.3s ease-in-out; /* smooth slide */
}

/* Hidden state: slide up out of view */
header.hidden {
  transform: translateY(-100%);
}

/* Optional: slight shadow when visible to make it pop */
header {
  background: white; /* or your color */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.75rem 0;
}
.logo {
  display:flex;
  align-items:center;
  gap:.75rem;
  font-size:1.6rem;
  font-weight:700;
  color:var(--p);
  text-decoration:none;
}
.logo img {
  width:150px;
  height:auto;
  margin-left: 10px;

}
/* Desktop Nav Menu - Right-aligned */
.nav-menu {
  display:flex;
  gap:2rem;
  list-style:none;
  align-items:center;
  margin:0;
  padding:0;
}
.nav-menu a {
  color:var(--t);
  font-weight:500;
  text-decoration:none;
  position:relative;
  padding:.5rem 0;
  font-size:1rem;
}
.nav-menu a::after {
  content:'';
  position:absolute;
  bottom:0;
  left:50%;
  width:0;
  height:2.5px;
  background:var(--p);
  border-radius:2px;
  transition:.3s;
  transform:translateX(-50%);
}
.nav-menu a:hover,
.nav-menu a.active {
  color:var(--p);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width:100%;
}
/* Controls: Dark Toggle + Hamburger */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dark-toggle,
.hamburger {
  background:none;
  border:none;
  font-size:1.4rem;
  color:var(--t);
  cursor:pointer;
  padding:.5rem;
  border-radius:50%;
  transition:.3s;
}
.dark-toggle:hover {
  background:rgba(233,30,99,.1);
  color:var(--p);
}
.hamburger {
  display:none;
}
/* -------------------------------------------------
   MOBILE MENU: Slide-in + Overlay
   ------------------------------------------------- */
.nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* Mobile: Hamburger visible, menu becomes slide-in */
@media (max-width: 767px) {
  .hamburger {
    display: block !important;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--card);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
    margin: 0;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-menu a {
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--b);
    width: 100%;
  }
  .nav-menu a::after {
    display: none;
  }
}
/* Desktop: Hide hamburger */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

/* ===============================================
   HERO SECTION – FIXED OVERFLOW ON RESIZE (Dec 2025)
   Prevents content spilling into next sections
   =============================================== */
.hero {
  position: relative;
  margin: 1rem 0 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(233,30,99,.15);
  overflow: visible;                 /* ← changed */
  background: #000;
  min-height: 60vh;                  /* ← changed */
  min-height: 60dvh;
  display: flex;
  align-items: center;               /* ← new – centres on desktop */
}

/* Background image – unchanged */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;           /* ← THIS WAS MISSING */
  border-radius: 16px;        /* ← keeps rounded corners on the image */
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  object-position: 70% 40%;   /* Desktop & tablet – right-side face focus */

}

/* Dark overlay – unchanged */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
              rgba(0,0,0,0.65) 0%,
              rgba(0,0,0,0.50) 50%,
              rgba(233,30,99,0.35) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Content wrapper – now with internal scroll safety + tighter flex */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 2rem 3rem;   /* space for sticky header */
  text-align: center;
  color: #fff;
}

/* Force .content grid to stack earlier & wrap better */
.content {
  display: grid;
  grid-template-columns: 1fr;          /* Always single column on small screens */
  gap: 1.5rem;                         /* Reduced gap to save vertical space */
  overflow: hidden;                    /* Clips grid children if they expand */
}

/* Text side – tighter spacing */
.text {
  order: 1;                            /* Ensures text comes first */
}
.text h3 {
  margin: 1rem 0 0.5rem;               /* Less top margin */
}
.stain-features {
  margin-bottom: 1rem;                 /* Less space after list */
}

/* Benefits side – the culprit; force it to shrink & wrap */
.benefits {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;                    /* No forced height */
  overflow: hidden;                    /* Prevents expansion */
}
.benefits h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 4vw, 1.5rem); /* Scales down on narrow screens */
}

.faq h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Mini-products: Stack to 1 column at 600px+; tighter on small screens */
#topProductsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Smaller minmax for earlier stacking */
  gap: 1rem;                           /* Reduced gap */
  margin: 1rem 0;
  overflow: visible;
  justify-content: center;
  width: 100%;
  max-width: 100%;                     /* Prevents horizontal expansion */
}
.top-mini-card {
  width: 100%;
  max-width: 260px;                    /* Caps card width to fit narrow screens */
  margin: 0 auto;                      /* Centers if single column */
}

/* Hero links & CTA – tighter to avoid bottom push */
.hero-links {
  order: 3;
  margin: 1rem 0;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cta {
  order: 4;
  margin-top: 1rem;                    /* Less top space */
  padding-top: 0;                      /* Remove any border-top padding */
}
.view-all-btn {
  background: var(--grad) !important;
  box-shadow: 0 8px 25px rgba(233,30,99,.5);
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

/* White text + shadow – enhanced responsive scaling */
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem) !important;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.hero .subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem) !important;
  margin-bottom: 1.2rem;
}
.hero p,
.hero li,
.hero .trust-badges p,
.hero .top-mini-name,
.hero .top-mini-price {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  font-size: clamp(0.9rem, 2.5vw, 1rem) !important;
  line-height: 1.5;                    /* Tighter line height */
  hyphens: auto;
  word-break: break-word;
}

/* Pink accents – unchanged */
.hero .stain-features i { color: #ff90b3; }

/* Tablet: Stack everything, reduce heights */
@media (max-width: 1024px) {
  .hero {
    min-height: 60vh;
    min-height: 60dvh;
  }
  .content {
    gap: 1rem;
  }
  #topProductsContainer {
    grid-template-columns: 1fr;      /* Force single column */
    gap: 0.8rem;
  }
}

/* Mobile: Ultra-compact */
@media (max-width: 767px) {
  .hero {
    min-height: 55vh;                /* Much shorter to fit content */
    min-height: 55dvh;
    margin: 0.5rem 0 2rem;
    border-radius: 12px;             /* Slightly smaller radius */
  }
  .hero-content {
    padding: 70px 1.2rem 1.8rem;     /* Tighter all around */
  }
  .content {
    gap: 1rem;
  }
  .benefits h3 {
    font-size: 1.3rem;
  }
  .top-mini-card {
    max-width: 100%;                 /* Full width on mobile */
  }
  .hero-links {
    white-space: normal;             /* Allow wrap */
    font-size: 0.8rem;
  }
}

/* Extra small mobile: Emergency squeeze */
@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
    min-height: 50dvh;
  }
  .hero-content {
    padding: 60px 1rem 1.5rem;
  }
  #topProductsContainer {
    gap: 0.5rem;
  }
  .top-mini-card {
    padding: 1.5rem 0.8rem 1rem;     /* Smaller internal padding */
  }
}

/* Mobile – perfect framing, no cutoff */
@media (max-width: 767px) {
  .hero {
    min-height: unset;
    min-height: 75dvh;
    align-items: flex-start;
  }
  .hero-content {
    padding: 110px 1.5rem 2.5rem;
  }
  .hero-bg img {
    
    object-position: 70% 40%;   /* or 60% 40% if faces feel too edge-cropped */
  }
}

.ca { text-align: center; }
/* -------------------------------------------------
   FAQ / TIPS / VS / RELATED
   ------------------------------------------------- */
.faq-section,
.tips-section,
.related-section {
  margin:2rem 0;
  padding:1.5rem;
  background:var(--card);
  border-radius:16px;
  box-shadow:0 4px 15px var(--sh);
}
.faq-section h2,
.tips-section h2,
.related-section h2 {
  color:var(--p);
  font-size:1.7rem;
  margin-bottom:1.2rem;
  text-align:center;
}
.faq details {
  margin-bottom:.75rem;
}
.faq summary {
  cursor:pointer;
  font-weight:600;
  padding:.9rem;
  background:var(--pl);
  color:#fff;
  border-radius:8px;
  font-size:1rem;
  list-style:none;
}
.faq summary::-webkit-details-marker {
  display:none;
}
.faq details[open] summary {
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
}
.faq p {
  padding:.9rem;
  background:var(--card);
  border:1px solid var(--b);
  border-top:none;
  border-radius:0 0 8px 8px;
  margin:0;
  font-size:.95rem;
}
.tips-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:1rem;
  margin-top:1rem;
}
.tip-step {
  text-align:center;
}
.tip-number {
  width:60px;
  height:60px;
  background:var(--pl);
  border-radius:50%;
  margin:0 auto .75rem;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:1.5rem;
  font-weight:700;
}
.vs-section {
  margin:2rem 0;
  overflow-x:auto;
}
.vs-section h2 {
  color:var(--p);
  font-size:1.7rem;
  margin-bottom:1rem;
  text-align:center;
}
.vs-table {
  width:100%;
  min-width:300px;
  border-collapse:collapse;
  margin-top:.5rem;
}
.vs-table th {
  padding:.75rem;
  text-align:left;
  background:var(--pl);
  color:#fff;
  font-size:.9rem;
}
.vs-table td {
  padding:.75rem;
  border-bottom:1px solid var(--b);
  font-size:.9rem;
}
.vs-table tr:nth-child(even) {
  background:var(--l);
}
/* -------------------------------------------------
   FILTER PANEL
   ------------------------------------------------- */
.filter-panel {
  display: none;
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px var(--sh);
  position: relative;
  z-index: 100;
  transition: all 0.3s ease;
  scroll-margin-top: 80px;
}
.filter-panel.active {
  display: block;
}
.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
}
.filter-group {
  position: relative;
}
.filter-group label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--g);
  font-size: .9rem;
  pointer-events: none;
  transition: .2s;
}
.filter-group input,
.filter-group select {
  width: 100%;
  padding: 1rem 1rem 1rem 2.5rem;
  border: 1px solid var(--b);
  border-radius: 12px;
  background: var(--card);
  color: var(--t);
  font-size: 1rem;
  transition: .2s;
  min-height: 48px;
}
.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(233,30,99,.2);
}
.filter-group input:not(:placeholder-shown)~label,
.filter-group input:focus~label,
.filter-group select:not([value=""])~label,
.filter-group select:focus~label {
  top: .5rem;
  left: 1rem;
  font-size: .75rem;
  color: var(--p);
  background: var(--card);
  padding: 0 .25rem;
}
.filter-group i {
  position: absolute;
  top: 50%;
  left: .75rem;
  transform: translateY(-50%);
  color: var(--g);
  font-size: .9rem;
}
.price-range {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: nowrap;
}
.price-range input {
  flex: 1;
  min-width: 0;
}
.clear-btn {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
  min-height: 48px;
}
.clear-btn:hover {
  background: #c2185b;
  transform: scale(1.05);
}
/* Mobile Filter Panel */
@media (max-width: 767px) {
  .filter-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .filter-panel.active {
    transform: translateY(0);
  }
  .mobile-close-wrapper {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--b);
    background: var(--card);
    position: sticky;
    bottom: 0;
    justify-content: space-between;
    align-items: center;
  }
  .filter-row {
    grid-template-columns: 1fr;
  }
}
.mobile-close-wrapper {
  display: none;
}
#clearFiltersMobile {
  background: transparent;
  color: var(--g);
  border: none;
  font-size: .9rem;
  cursor: pointer;
}
.close-filters-btn {
  background: transparent;
  color: var(--t);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: .5rem;
  transition: .3s;
}
.close-filters-btn:hover {
  color: var(--p);
  transform: scale(1.1);
}
/* Floating Filter Button */
.floating-filter-btn {
  position: fixed;
  bottom: 20px;
  right: 16px;
  background: var(--grad);
  color: #fff;
  border: none;
  width: auto;
  padding: 0 16px;
  height: 56px;
  border-radius: 50px;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(233,30,99,.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .3s;
}
.floating-filter-btn.active {
  background: #c2185b;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(233,30,99,.5);
}
.floating-filter-btn:hover {
  transform: scale(1.15);
}
.filter-btn-label {
  font-size: 0.9rem;
  font-weight: 600;
}
@media (max-width: 480px) {
  .filter-btn-label { display: none; }
  .floating-filter-btn { width: 56px; padding: 0; }
}
@media (min-width: 768px) {
  .filter-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
}
/* -------------------------------------------------
   PRODUCT GRID
   ------------------------------------------------- */
.products-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:1.2rem;
  margin-top:1rem;
  align-items:stretch;
}
.product-card {
  display:flex;
  flex-direction:column;
  background:var(--card);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 8px var(--sh);
  transition:transform .25s,box-shadow .25s;
  position:relative;
  height:100%;
}
.product-card:hover {
  transform:translateY(-6px);
  box-shadow:0 10px 25px var(--sh);
}

/* -------------------------------------------------
   PRODUCT IMAGE – MAGNIFY CURSOR ON HOVER
   ------------------------------------------------- */
.product-img {
  height:200px;
  overflow:hidden;
  background:var(--card);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  cursor: zoom-in; /* Magnify glass on hover */
}
.product-img img,
.carousel-overlay img {
  cursor: inherit; /* Inherit magnify cursor during carousel */
}
.product-thumb {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.6s ease;
}
.product-card:hover .product-img img {
  transform:scale(1.05);
}

/* -------------------------------------------------
   PRODUCT INFO
   ------------------------------------------------- */
.product-info {
  padding:1rem;
  display:flex;
  flex-direction:column;
  flex:1;
  justify-content:space-between;
}
.product-name {
  text-align: center;
  font-weight:600;
  font-size:.8rem;
  color:var(--t);
  line-height:1.3;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  margin-bottom:.6rem;
}
.price {
  font-size:1.2rem;
  font-weight:600;
  color:var(--p);
  margin-bottom:.4rem;
}
.rating {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.85rem;
  color:#f39c12;
  margin-bottom:.4rem;
}
.rating .stars {
  display:flex;
  gap:2px;
}
.rating .fas {
  color:#f39c12;
}
.rating .far {
  color:var(--g);
}
.shades-container {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:.5rem 0;
  align-items:center;
  flex-shrink:0;
  min-height:28px;
}
.shade-swatch {
  width:20px;
  height:20px;
  border-radius:50%;
  border:2px solid var(--b);
  cursor:pointer;
  transition:transform .2s;
}
.shade-swatch:hover {
  transform:scale(1.2);
}
.more-shades {
  font-size:.75rem;
  font-weight:700;
  color:var(--p);
  margin-left:4px;
}
.actions {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:auto;
  padding-top:.4rem;
}
.compare-btn,
.fav-btn {
  background:transparent;
  color:var(--p);
  border:2px solid var(--p);
  padding:.35rem .7rem;
  border-radius:8px;
  font-size:.8rem;
  cursor:pointer;
  transition:.3s;
  min-height:36px;
}
.compare-btn.added,
.fav-btn.active {
  background:var(--p);
  color:#fff;
}
.compare-btn:hover,
.fav-btn:hover {
  background:var(--p);
  color:#fff;
}
.buy-btn {
  background:var(--grad);
  color:#fff;
  border:none;
  padding:.35rem .7rem;
  border-radius:8px;
  font-size:.8rem;
  cursor:pointer;
  transition:.3s;
  min-height:36px;
  text-decoration:none;
  text-align:center;
  display:block;
  margin-top:.5rem;
}
.buy-btn:hover {
  transform:translateY(-1px);
}
/* -------------------------------------------------
   RANK BADGE
   ------------------------------------------------- */
.rank-badge {
  position:absolute;
  top:8px; left:8px;
  background:var(--p);
  color:#fff;
  width:32px; height:32px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.9rem;
  z-index:10;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
  border:2px solid var(--card);
}
/* -------------------------------------------------
   TOP 3 MINI CARDS
   ------------------------------------------------- */
#topProductsContainer {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem auto;
  padding: 0 1rem;
  max-width: 1200px;
}
.top-mini-card {
  position: relative;
  width: 280px;
  background: var(--card);
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 8px 24px var(--sh);
  transition: all 0.3s ease;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  border: 1px solid var(--b);
}
.top-mini-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(233,30,99,.15);
  border-color: var(--p);
}
.top-mini-rank {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  border: 4px solid var(--card);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.top-mini-rank.gold { background: radial-gradient(circle at 30% 30%, #FFD700, #FFA500); }
.top-mini-rank.silver { background: radial-gradient(circle at 30% 30%, #E5E4E2, #A9A9A9); }
.top-mini-rank.bronze { background: radial-gradient(circle at 30% 30%, #CD7F32, #B87333); }
.top-mini-rank::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
}
.top-mini-card:hover .top-mini-rank {
  transform: translateX(-50%) scale(1.1);
}
.top-mini-img {
  width: 130px;
  height: 130px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--b);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.top-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.top-mini-card:hover .top-mini-img img {
  transform: scale(1.08);
}
.top-mini-name {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0.75rem 0 0.5rem;
  color: var(--t);
  line-height: 1.3;
}
.top-mini-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--g);
}
.top-mini-swatches {
  display: flex;
  gap: 5px;
  align-items: center;
}
.top-mini-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.top-mini-swatch:hover {transform:scale(1.15);}
.top-mini-more {
  font-size: 0.75rem;
  color: var(--p);
  font-weight: 600;
}
.top-mini-reviews {
  font-size: 0.85rem;
  color: var(--g);
}
.top-mini-price {
  font-weight: 700;
  color: var(--p);
  font-size: 1.2rem;
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  #topProductsContainer { gap: 1rem; padding: 0 0.5rem; }
  .top-mini-card { width: 100%; max-width: 300px; }
  .top-mini-rank { width: 44px; height: 44px; font-size: 17px; top: -16px; }
  .top-mini-img { width: 110px; height: 110px; }
}
/* -------------------------------------------------
   COMPARISON BAR
   ------------------------------------------------- */
.comparison-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  border-top: 1px solid var(--b);
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  z-index: 1000;
  font-size: .9rem;
}
.comparison-bar.show {
  display: flex !important;
}
.comparison-items {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 200px;
}
.comparison-item {
  background: var(--pl);
  color: #fff;
  padding: .4rem .75rem;
  border-radius: 20px;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.comparison-item .remove-item {
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,.3);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  cursor: pointer;
  transition: .2s;
}
.comparison-item .remove-item:hover {
  background: rgba(255,255,255,.6);
}
.view-comparison {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: .6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: .3s;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.view-comparison:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233,30,99,.3);
}
/* -------------------------------------------------
   MODALS
   ------------------------------------------------- */
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  z-index: 2200;
  padding: 0;
  line-height: 1;
}
.close-modal:hover {
  background: rgba(255, 255, 255, .4);
  transform: scale(1.1);
}
.close-modal i { pointer-events: none; }
.comparison-modal,
.image-modal,
.video-modal {
  display:none;
}
.comparison-modal.active,
.image-modal.active,
.video-modal.active {
  display:flex;
}
.comparison-modal,
.image-modal,
.video-modal {
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,.9);
  z-index:2000;
  align-items:center;
  justify-content:center;
  padding:1rem;
}
.comparison-modal-content {
  background: var(--card);
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.comparison-modal-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--b);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comparison-modal-header h2 {
  margin: 0;
  color: var(--p);
  font-size: 1.5rem;
}
.comparison-modal-body {
  padding: 1.5rem;
}
.image-modal .modal-image-wrapper {
  position:relative;
  width:90vw;
  max-height:90vh;
  display:flex;
  justify-content:center;
  align-items:center;
}
.image-modal img {
  max-width:100%;
  max-height:90vh;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
  object-fit:contain;
}
.modal-top-overlay,
.modal-bottom-overlay {
  position:absolute;
  left:0;
  right:0;
  padding:1rem;
  text-align:center;
  z-index:2;
}
.modal-top-overlay {
  top:0;
  background:linear-gradient(to bottom,rgba(0,0,0,.7),transparent);
}
.modal-bottom-overlay {
  bottom:0;
  background:linear-gradient(to top,rgba(0,0,0,.7),transparent);
}
.modal-product-title {
  margin:0;
  font-size:1.4rem;
  color:#fff;
  font-weight:600;
  text-shadow:0 1px 3px rgba(0,0,0,.6);
}
.modal-shades-container {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:.75rem;
  align-items:center;
}
.modal-shade-swatch {
  width:32px;
  height:32px;
  border-radius:50%;
  border:2px solid #fff;
  cursor:pointer;
  transition:transform .2s;
  box-shadow:0 2px 8px rgba(0,0,0,.4);
}
.modal-shade-swatch:hover {
  transform:scale(1.15);
}
.modal-more-shades {
  font-size:.9rem;
  font-weight:700;
  color:#fff;
  margin-left:6px;
  text-shadow:0 1px 2px rgba(0,0,0,.6);
}
.modal-buy-btn {
  background:var(--grad);
  color:#fff;
  padding:.75rem 2rem;
  border-radius:50px;
  font-weight:600;
  text-decoration:none;
  font-size:1.1rem;
  display:inline-block;
  transition:.3s;
  text-shadow:0 1px 2px rgba(0,0,0,.3);
}
.modal-buy-btn:hover {
  transform:translateY(-3px);
  box-shadow:0 6px 18px rgba(233,30,99,.5);
}
#modalVideo {
  width: 90vw;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
/* -------------------------------------------------
   SKIP LINK
   ------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--p);
  color: #fff;
  padding: 8px 12px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 10000;
  transition: top .3s;
}
.skip-link:focus {
  top: 0;
}
/* -------------------------------------------------
   LOAD MORE
   ------------------------------------------------- */
#pagination {
  display: none;
  text-align: center;
  margin: 2rem 0;
}
.load-more-btn {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(233,30,99,.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,30,99,.4);
}
.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
/* -------------------------------------------------
   FOOTER
   ------------------------------------------------- */
footer {
  background:var(--card);
  color:var(--t);
  padding:2rem 0;
  margin-top:3rem;
  border-top:1px solid var(--b);
  text-align:center;
}
.social-links {
  display:flex;
  gap:1rem;
  justify-content:center;
  margin:1rem 0;
}
.social-links a {
  width:40px;
  height:40px;
  background:var(--p);
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
  transition:.3s;
}
.social-links a:hover {
  background:#c2185b;
  transform:translateY(-3px);
}
/* -------------------------------------------------
   MODAL IMAGE NAVIGATION – arrows only, centred
   ------------------------------------------------- */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: all .2s ease;
  backdrop-filter: blur(2px);
}
.modal-nav:hover {
  background: rgba(0,0,0,.8);
  color: var(--p);
  transform: translateY(-50%) scale(1.12);
}
.modal-prev { left: 1rem; }
.modal-next { right: 1rem; }
.modal-nav.hidden { display: none; }
/* -------------------------------------------------
   HIDDEN CROSSFADE CAROUSEL (only activates on hover/in-view)
   ------------------------------------------------- */
.carousel-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.product-card.cycle-active .carousel-overlay {
  opacity: 1;
  pointer-events: auto;
}
.product-card.cycle-active .product-thumb {
  opacity: 0;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g);
  font-size: 0.8rem;
  background: rgba(0,0,0,0.05);
}
/* -------------------------------------------------
   BRAND SECTION – COMPACT BUTTONS
   ------------------------------------------------- */
.brand-section {
  margin: 2.5rem 0 1.5rem;
  padding: 1.2rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 3px 12px var(--sh);
  text-align: center;
}
.brand-section .section-title {
  color: var(--p);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
  justify-content: center;
  row-gap: .8rem;
}
.brand-btn {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: .45rem .9rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  transition: all .25s;
  box-shadow: 0 2px 8px rgba(233,30,99,.25);
  white-space: nowrap;
}
.brand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233,30,99,.35);
}
@media (max-width: 480px) {
  .brand-btn {
    font-size: .78rem;
    padding: .38rem .75rem;
    min-height: 32px;
  }
  .brand-grid { gap: .5rem .6rem; }
}
/* -------------------------------------------------
   LOADING / ERROR
   ------------------------------------------------- */
#loadingState,
#errorState {
  text-align:center;
  padding:3rem;
  color:var(--g);
  font-size:1.1rem;
}
#loadingState i {
  color:var(--p);
  font-size:2rem;
  margin-bottom:1rem;
  display:block;
  animation:spin 1s linear infinite;
}
@keyframes spin {
  from {transform:rotate(0deg);}
  to {transform:rotate(360deg);}
}

h3 span[role="img"] {
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.tac
{
	text-align:center;
}

/* -------------------------------------------------
   TOTAL PRODUCTS COUNT
   ------------------------------------------------- */
#totalProductsCount {
  text-align: center;
  margin: 1rem 0;
  font-size: 1.1rem;
  color: var(--g);
}
#totalProductsCount::before {
  content: "Total: ";
  font-weight: 600;
  color: var(--t);
}