/* ============================================================
   MISSY DEES HUB — INDEX PAGE STYLES (FIXED v2)
   Hero buttons commented out, text shifted down
   ============================================================ */

/* ── HERO ────────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 72vh;
  min-height: 480px;
  max-height: 680px;
  overflow: hidden;
  margin-top: -68px; /* pull behind navbar */
}

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(36,25,37,0.98) 0%, rgba(36,25,37,0.94) 45%, rgba(36,25,37,0.72) 75%, rgba(36,25,37,0.5) 100%);
}

/* Continuous light sweep across the hero photos — same effect as product
   cards, mirrored white-on-color shine drifting back and forth forever. */
.hero-slide::after {
  content: '';
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.16) 50%, transparent 58%);
  background-size: 250% 100%;
  background-position: 250% 0;
  animation: heroSheenSweep 6s ease-in-out infinite alternate;
  mix-blend-mode: overlay;
}
@keyframes heroSheenSweep {
  0%   { background-position: 250% 0; }
  100% { background-position: -150% 0; }
}

/* Hero content — LEFT-ALIGNED, generous width, vertically centered */
.hero-content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  text-align: left;
  padding: 68px 6% 0;
}

.hero-slide.active .hero-content > * {
  animation: heroIn 0.8s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
.hero-slide.active .hero-title  { animation-delay: 0s; }
.hero-slide.active .hero-sub    { animation-delay: 0.12s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  color: white;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  max-width: 700px;
  width: 100%;
}
.hero-title span { color: var(--sky); }
.hero-break { display: none; }

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  max-width: 460px;
}

/* Hero buttons — COMMENTED OUT (kept in HTML as comments)
.hero-actions { ... }
.hero-shop-btn { ... }
*/

/* Slider controls */
.hero-dots {
  position: absolute; bottom: 28px; left: 6%;
  transform: none;
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot { width: 32px; height: 4px; background: rgba(255,255,255,0.4); border: none; border-radius: 2px; cursor: pointer; transition: all 0.4s ease; }
.hero-dot.active { background: var(--sky); width: 52px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: white; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.25s; backdrop-filter: blur(6px);
}
.hero-arrow:hover { background: rgba(233,30,140,0.3); border-color: var(--sky); }
.hero-arrow.prev  { left: 1.5rem; }
.hero-arrow.next  { right: 1.5rem; }

/* ── TRUST BAR ───────────────────────────────────────── */
.trust-bar { background: var(--navy); padding: 1rem 5%; }
.trust-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem; }
.trust-item i { width: 26px; height: 26px; color: var(--sky); flex-shrink: 0; }
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { color: white; font-size: 0.875rem; line-height: 1.2; }
.trust-item span   { color: rgba(255,255,255,0.55); font-size: 0.75rem; }

/* ── STATS ───────────────────────────────────────────── */
.stats-section { padding: 4rem 5%; background: var(--off-white); }
.stats-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.stat-card {
  background: white; border-radius: var(--radius-lg); padding: 2rem 1rem;
  text-align: center; border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm); transition: all var(--transition-slow);
  opacity: 0; transform: translateY(20px) scale(0.95);
}
.stat-card.revealed { opacity: 1; transform: translateY(0) scale(1); }
.stat-card:hover { border-color: var(--sky); box-shadow: var(--shadow-sky); transform: translateY(-4px) scale(1); }

.stat-num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; color: var(--sky); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── SECTION HEADER ──────────────────────────────────── */
.section { padding: 5rem 5%; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.section-header.centered { flex-direction: column; align-items: center; text-align: center; }
.section-label { font-size: 0.78rem; font-weight: 600; color: var(--sky); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.section-title { font-family: var(--font-head); font-size: 2rem; color: var(--navy); }
.section-title span { color: var(--sky); }
.view-all-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; color: var(--sky); transition: gap 0.25s; }
.view-all-link:hover { gap: 0.7rem; }

/* Filter row */
.section-header select.sort-select { margin-left: auto; }

/* ── HOMEPAGE PRODUCTS SIDEBAR (Categories, Autostantech-style) ── */
.home-shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.75rem; align-items: start; }
.home-cat-sidebar { position: sticky; top: 90px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; }
.home-cat-sidebar h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate); margin-bottom: 0.85rem; border-bottom: 2px solid var(--sky); padding-bottom: 0.5rem; }
.home-sidebar-close {
  display: none; align-self: flex-end; background: var(--gray-100);
  border: none; color: var(--navy); width: 30px; height: 30px; min-width: 30px;
  border-radius: 50%; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; cursor: pointer; font-size: 18px; line-height: 1; padding: 0;
}
.home-sidebar-close:hover { background: var(--gray-200); }
.cat-filter-list { display: flex; flex-direction: column; gap: 3px; }
.cat-filter-btn { background: none; border: none; text-align: left; padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; color: var(--navy-light); transition: all var(--transition); font-family: var(--font-body); width: 100%; }
.cat-filter-btn:hover { background: var(--sky-glow); color: var(--sky); }
.cat-filter-btn.active { background: var(--sky-glow); color: var(--sky); font-weight: 600; border-left: 3px solid var(--sky); }
.cat-filter-row { display: flex; align-items: center; gap: 2px; }
.cat-filter-row .cat-filter-btn { flex: 1; }
.cat-expand-btn { flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 0.4rem; display: flex; align-items: center; justify-content: center; color: var(--slate); border-radius: var(--radius-sm); transition: transform var(--transition), background var(--transition); }
.cat-expand-btn:hover { background: var(--sky-glow); color: var(--sky); }
.cat-expand-btn svg { width: 15px; height: 15px; }
.cat-expand-btn.open { transform: rotate(180deg); color: var(--sky); }
.cat-children { display: none; flex-direction: column; gap: 3px; padding-left: 0.9rem; border-left: 2px solid var(--gray-200); margin: 2px 0 4px 0.9rem; }
.cat-children.open { display: flex; }
.sub-cat-btn { font-size: 0.8rem; color: var(--slate); }
.home-shop-main { min-width: 0; }
.sort-select { background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.45rem 0.85rem; font-size: 0.83rem; cursor: pointer; outline: none; color: var(--navy); font-family: var(--font-body); }
.sort-select:focus { border-color: var(--sky); }

/* Product grids on homepage */
#all-products-grid, #featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
}

/* ── PROMO STRIP ─────────────────────────────────────── */
.promo-strip { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 4rem 5%; position: relative; overflow: hidden; }
.promo-strip::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(233,30,140,0.2), transparent 70%); pointer-events: none; }
.promo-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.promo-tag { display: block; width: fit-content; background: rgba(233,30,140,0.15); border: 1px solid rgba(233,30,140,0.3); color: var(--sky); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 50px; margin-bottom: 1rem; }
.promo-text h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.8rem); color: white; line-height: 1.2; margin-bottom: 1rem; }
.promo-text h2 span { color: var(--sky); }
.promo-text p { color: rgba(255,255,255,0.65); margin-bottom: 1.75rem; max-width: 480px; }
.promo-circle { width: 155px; height: 155px; border-radius: 50%; background: rgba(233,30,140,0.15); border: 2px solid rgba(233,30,140,0.3); display: flex; align-items: center; justify-content: center; animation: spin-slow 12s linear infinite; }
.promo-circle span { font-family: var(--font-head); font-size: 1.1rem; color: var(--sky); text-align: center; line-height: 1.2; font-weight: 700; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── CATEGORIES GRID ─────────────────────────────────── */
.categories-section { background: var(--off-white); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1.25rem; }

.cat-card {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1;
  position: relative; cursor: pointer; display: block;
  box-shadow: var(--shadow-sm); transition: all var(--transition-slow);
  opacity: 0; transform: translateY(20px);
}
.cat-card.revealed { opacity: 1; transform: translateY(0); }
.cat-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-md); }
.cat-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform var(--transition-slow); }
.cat-card:hover .cat-bg { transform: scale(1.08); }
.cat-overlay-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(36,25,37,0.78) 0%, rgba(36,25,37,0.1) 60%); }
.cat-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem; color: white; font-weight: 600; font-size: 0.9rem; text-align: center; }

/* ── WHY US ──────────────────────────────────────────── */
.why-us-section { background: white; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── TESTIMONIALS / HAPPY CUSTOMERS ── */
.testimonials-section { background: var(--gray-50); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; max-width: 1200px; margin: 0 auto; }
.testimonial-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 2.75rem 1.75rem 2rem; text-align: center; position: relative;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--sky-light);
  color: var(--sky); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem; position: relative; top: -0.25rem;
}
.testimonial-icon i { width: 20px; height: 20px; }
.testimonial-text { font-size: 0.92rem; color: var(--text); line-height: 1.7; margin-bottom: 1.1rem; font-style: italic; }
.testimonial-name { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.testimonial-loc { font-size: 0.78rem; color: var(--slate); margin-top: 2px; }
@media (max-width: 860px) { .testimonials-grid { grid-template-columns: 1fr; } }

.why-card {
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--gray-50); border: 1.5px solid var(--gray-200);
  transition: all var(--transition);
  opacity: 0; transform: translateY(16px);
}
.why-card.revealed { opacity: 1; transform: translateY(0); }
.why-card:hover { border-color: var(--sky); box-shadow: var(--shadow-sky); background: white; transform: translateY(-4px); }
.why-icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--sky-glow); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--sky); }
.why-icon i { width: 24px; height: 24px; }
.why-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.why-card p  { font-size: 0.875rem; color: var(--slate); line-height: 1.65; }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination-wrap { display: flex; justify-content: center; margin-top: 3rem; }
.pagination { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.page-btn { min-width: 40px; height: 40px; padding: 0 10px; background: white; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.page-btn:hover { border-color: var(--sky); color: var(--sky); }
.page-btn.active { background: var(--sky); border-color: var(--sky); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-dots { color: var(--slate); padding: 0 4px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid    { grid-template-columns: repeat(2, 1fr); }
  #all-products-grid, #featured-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .home-shop-layout { grid-template-columns: 180px 1fr; gap: 1.25rem; }
}

@media (max-width: 900px) {
  .home-shop-layout { grid-template-columns: 1fr; }
  .home-cat-sidebar {
    position: fixed; right: -280px; left: auto; top: 0; bottom: 0; z-index: 10002;
    width: 270px; border-radius: 0; overflow-y: auto; transition: right 0.3s ease;
    display: flex; flex-direction: column;
  }
  .home-cat-sidebar.open { right: 0; }
  .home-sidebar-close { display: flex; }
}

@media (max-width: 768px) {
  .hero-section { height: 42vh; min-height: 300px; max-height: 400px; margin-top: -116px; }
  .hero-content { padding: 116px 6% 0; align-items: flex-start; text-align: left; }
  .hero-title   { font-size: clamp(1.5rem, 7vw, 2.1rem); max-width: 100%; margin-bottom: 0; }
  .hero-break   { display: block; }
  .hero-sub     { display: none; }
  .hero-arrow   { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  /* TWO products per row on mobile */
  #all-products-grid, #featured-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .hero-section { height: 38vh; min-height: 270px; }
  .hero-content { padding: 66px 6% 0; }
  .trust-inner  { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .trust-item   { padding: 0.5rem; gap: 0.5rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid    { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  #all-products-grid, #featured-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.6rem !important; }
}
/* ── Large screens: give hero content more breathing room so nothing
   wraps awkwardly or looks squeezed against a mostly-empty right side ── */
@media (min-width: 1400px) {
  .hero-title { max-width: 780px; font-size: clamp(2.2rem, 2.8vw, 3rem); }
  .hero-sub   { max-width: 520px; }
}
