/* ============================================================
   ASTI MART — PREMIUM UPGRADE CSS (EXTENDED)
   Additive visual enhancements layered on existing styles.
   NO existing rules deleted. NO brand colors changed.
   ============================================================ */

/* ============================================================
   1. VISUAL DEPTH SYSTEM (SHADOWS & GLOW)
   ============================================================ */
:root {
  /* Enhanced multi-layer shadow system */
  --shadow-depth-1: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-depth-2: 0 2px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.05);
  --shadow-depth-3: 0 4px 16px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.07);
  
  /* Glow effects */
  --glow-primary: 0 0 40px rgba(59,91,219,0.15);
  --glow-primary-strong: 0 8px 32px rgba(59,91,219,0.3);
}

/* ============================================================
   2. NAVBAR & DROPDOWN IMPROVEMENTS
   ============================================================ */

/* Smooth height transition for shrink effect */
#site-header {
  transition:
    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease,
    top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    right 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-header.scrolled {
  height: 56px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

#site-header.scrolled .nav-inner {
  height: 56px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-header.scrolled .site-logo img,
#site-header.scrolled .custom-logo {
  max-height: 48px;
  transition: max-height 0.4s ease;
}

/* Nav Link Polish */
.nav-menu a {
  position: relative;
  transition: color 0.25s ease, letter-spacing 0.3s ease;
}

.nav-menu > ul > li > a::after {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DESKTOP DROPDOWNS */
@media (min-width: 1024px) {
  /* Dropdown Container */
  .nav-menu ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-accent);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-depth-3);
    padding: var(--space-3) 0;
    
    /* Animation defaults */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }
  
  /* Dark mode support */
  @media (prefers-color-scheme: dark) {
    .nav-menu ul ul {
      background: rgba(18, 18, 20, 0.95);
    }
  }

  /* Show on Hover/Focus-within */
  .nav-menu li.menu-item-has-children:hover > ul,
  .nav-menu li.menu-item-has-children:focus-within > ul,
  .nav-menu li.menu-item-has-children.focus > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Dropdown Items */
  .nav-menu ul ul li {
    display: block;
    width: 100%;
    margin: 0;
  }

  .nav-menu ul ul a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  }

  .nav-menu ul ul a:hover,
  .nav-menu ul ul a:focus {
    background: var(--color-surface-2);
    color: var(--color-accent);
    padding-left: calc(var(--space-4) + 4px);
  }

  /* Sub-menu Indicators */
  .nav-menu li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .nav-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    opacity: 0.7;
  }
  
  .nav-menu li.menu-item-has-children:hover > a > .nav-chevron,
  .nav-menu li.menu-item-has-children.focus > a > .nav-chevron {
    transform: rotate(180deg);
  }

  /* Nested Dropdowns (Level 3+) */
  .nav-menu ul ul ul {
    top: -2px; /* align with parent top border */
    left: 100%;
    border-radius: 12px;
  }
}

/* MOBILE DROPDOWNS */
.mobile-nav-links .menu-item-has-children {
  display: flex;
  flex-direction: column;
}

.mobile-nav-item-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-dropdown-toggle {
  background: none;
  border: none;
  padding: 12px;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: var(--radius-sm);
}

.mobile-dropdown-toggle:hover {
  background: var(--color-surface-2);
}

.mobile-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.mobile-dropdown-menu {
  display: none;
  padding-left: var(--space-4);
  margin-top: 0;
  border-left: 2px solid var(--color-border-2);
  margin-left: 12px;
  padding-bottom: var(--space-2);
}

.mobile-dropdown-menu.is-open {
  display: block;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-dropdown-menu li a {
  font-size: var(--text-sm);
  padding: 8px 0;
  color: var(--color-text-secondary);
}

.mobile-dropdown-menu li a:hover {
  color: var(--color-accent);
}

/* Nav Actions & Cart Animation */
.nav-btn {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover { transform: scale(1.05); }
.nav-btn:active { transform: scale(0.95); }

@keyframes cart-bounce {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.25) rotate(-5deg); }
  50%  { transform: scale(0.95) rotate(3deg); }
  75%  { transform: scale(1.1) rotate(-2deg); }
  100% { transform: scale(1); }
}

#cart-toggle.cart-bounce {
  animation: cart-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.cart-badge.visible {
  animation: badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================================
   3. HERO SECTION IMPROVEMENTS
   ============================================================ */

/* Animated geometric background shapes */
#hero::before,
#hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.07;
  background: var(--color-accent);
  filter: blur(60px);
}

#hero::before {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  top: -15%;
  right: -10%;
  animation: hero-shape-float-1 8s ease-in-out infinite;
}

#hero::after {
  width: clamp(200px, 30vw, 450px);
  height: clamp(200px, 30vw, 450px);
  bottom: -10%;
  left: -5%;
  animation: hero-shape-float-2 10s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes hero-shape-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-30px, 20px) scale(1.05); }
  66%      { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes hero-shape-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(25px, -20px) scale(1.08); }
}

/* Tech-inspired dot grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Soft glow behind hero content */
.hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 200%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(59, 91, 219, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Enhanced typography */
.hero-headline {
  font-weight: var(--fw-bold);
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.hero-headline strong {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheading {
  font-weight: var(--fw-regular);
  letter-spacing: 0.01em;
}

/* Premium CTA button */
.hero-btn,
a.btn.btn-primary.btn-lg.hero-btn {
  position: relative;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--glow-primary-strong), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hero-btn:hover,
a.btn.btn-primary.btn-lg.hero-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 44px rgba(59, 91, 219, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
  #hero::before, #hero::after, .hero-bg::after { display: none; }
}

/* ============================================================
   4. HOMEPAGE VISUAL FLOW
   ============================================================ */

/* Section alternating backgrounds */
.luxe-shortcode-section:nth-of-type(even) {
  background: var(--color-surface);
}

/* Decorative Section Separators */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-2), transparent);
  margin: var(--space-8) 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-divider::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

/* Full-width gradient break between products */
.section-break {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent-subtle), transparent);
  opacity: 0.5;
  margin: var(--space-6) 0;
}

/* Alternating content layouts */
.luxe-shortcode-section:nth-of-type(even) .section-header--inline {
  flex-direction: row-reverse;
}
.luxe-shortcode-section:nth-of-type(even) .section-header--inline .btn {
  margin-right: auto;
  margin-left: 0;
}

/* Hierarchy adjustments */
.section-header h2 {
  position: relative;
  display: inline-block;
  line-height: 1.05;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.section-header h2:hover::after { width: 72px; }
.section-header.text-center h2::after { left: 50%; transform: translateX(-50%); }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  margin-bottom: var(--space-3);
  color: var(--color-accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

/* ============================================================
   5. PRODUCT IMAGE PRESENTATION & CARDS
   ============================================================ */

/* Card Base */
.product-card {
  border-top: 2px solid transparent;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-depth-1);
}

/* Remove old 3D JS hover effect styling, replace with CSS */
.product-card:hover {
  border-top-color: var(--color-accent);
  transform: translateY(-6px) !important; /* override JS */
  box-shadow: var(--shadow-depth-2), 0 0 0 1px rgba(59, 91, 219, 0.08);
}

/* Standardized Image Container */
.product-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ffffff; /* Solid white background for transparent PNGs */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure WooCommerce main product gallery images also have white background for transparent PNGs */
.woocommerce-product-gallery__image {
  background: #ffffff !important;
}

/* Ensure image wrapper always maintains a light background for transparent PNGs */
@media (prefers-color-scheme: dark) {
  .product-card__img-wrap {
    background: #ffffff; /* Override dark background to keep product images clean */
  }
}

/* Soft Reflection Effect */
.product-card__img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.03), transparent);
  pointer-events: none;
}

/* The Image Itself */
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevents cropping */
  padding: 16px; /* Uniform padding */
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.06);
  filter: brightness(1.03);
}

/* Hover Overlay Glassmorphism */
.product-card__overlay {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Card Body */
.product-card__body {
  padding: 24px;
  gap: 10px;
  flex-grow: 1; /* Pushes footer to bottom */
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: auto; /* Push price down */
}

/* Price & Button */
.price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.card-atc-btn {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  box-shadow: 0 4px 14px rgba(59, 91, 219, 0.25);
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.8px;
}

.card-atc-btn:hover {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 91, 219, 0.35);
}

/* Badges */
.card-badge .badge {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   6. CATEGORY CARDS
   ============================================================ */

.category-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-depth-1);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-depth-2);
}

.category-card__img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-card:hover .category-card__img {
  transform: scale(1.08);
}

.category-card__overlay {
  transition: background 0.4s ease;
  /* Bottom fade gradient */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.category-card__name {
  font-weight: var(--fw-bold);
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.category-card:hover .category-card__name { transform: translateY(-2px); }

/* ============================================================
   7. TRUST & FEATURED SECTIONS
   ============================================================ */

/* Trust Stat Card */
.trust-stat {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

/* Diagonal line pattern overlay */
.trust-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: repeating-linear-gradient(45deg, var(--color-text-primary) 0, var(--color-text-primary) 1px, transparent 1px, transparent 10px);
  pointer-events: none;
}

.trust-stat:hover {
  transform: translateY(-4px);
  background: var(--color-surface-2);
  box-shadow: var(--shadow-depth-1);
}

.trust-stat__number {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}
.trust-stat:hover .trust-stat__number { transform: scale(1.05); }

/* Featured Deal Banner */
#featured-banner {
  position: relative;
  overflow: hidden;
}

#featured-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  filter: blur(80px);
  right: -100px;
  top: -100px;
  opacity: 0.06;
  border-radius: 50%;
  animation: banner-glow-pulse 4s ease-in-out infinite;
}

@keyframes banner-glow-pulse {
  0%, 100% { opacity: 0.06; transform: scale(1); }
  50%      { opacity: 0.12; transform: scale(1.1); }
}

#sale-btn {
  box-shadow: var(--glow-primary-strong);
}

/* Testimonials */
.review-card {
  position: relative;
  box-shadow: var(--shadow-depth-1);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 72px;
  font-family: Georgia, serif;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.08;
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-depth-2);
}

/* ============================================================
   8. CONVERSION ELEMENTS (Quick View, Urgency, Sticky ATC)
   ============================================================ */

/* Urgency Badges */
.badge-urgency {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  animation: pulse-urgency 2s infinite;
}

.badge-popular {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

@keyframes pulse-urgency {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Quick View Button */
.quick-view-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  visibility: hidden;
  background: rgba(255,255,255,0.9);
  color: var(--color-bg);
  border-radius: 24px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.product-card:hover .quick-view-btn {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.quick-view-btn:hover {
  background: white;
  transform: translate(-50%, -50%) scale(1.05);
}

/* Quick View Modal */
.qv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qv-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.qv-modal-content {
  background: var(--color-surface);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-depth-3);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
}

.qv-modal-backdrop.is-open .qv-modal-content {
  transform: translateY(0) scale(1);
}

.qv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--color-surface-2);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.qv-close:hover { background: var(--color-border); }

/* Quick View Layout */
.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.qv-image {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.qv-image img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.qv-details {
  padding: var(--space-8);
  overflow-y: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.qv-details h2 { margin-top: 0; font-size: 24px; }
.qv-details .price { font-size: 20px; font-weight: 800; margin: 16px 0; }
.qv-details .excerpt { color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 24px; }

@media (max-width: 768px) {
  .qv-grid { grid-template-columns: 1fr; }
  .qv-image { padding: var(--space-4); }
  .qv-image img { max-height: 30vh; }
  .qv-details { padding: var(--space-6); max-height: 60vh; }
}

/* Skeleton Loading for QV */
.qv-skeleton {
  background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-border) 50%, var(--color-surface-2) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Recently Viewed Section */
.recently-viewed-section {
  padding: var(--space-12) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* Sticky Mobile ATC Enhancement */
#mobile-sticky-cta {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
}

@media (prefers-color-scheme: dark) {
  #mobile-sticky-cta { background: rgba(18, 18, 20, 0.95); }
}

#mobile-sticky-cta .price-current { font-size: 16px; margin: 0; }
#mobile-sticky-cta .btn { margin: 0; padding: 10px 20px; }

/* ============================================================
   9. FOOTER TRUST BAR
   ============================================================ */

.footer-trust-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, background 0.3s ease;
}

.trust-strip-item:hover {
  transform: translateY(-2px);
  background: var(--color-surface-2);
}

.trust-strip-item svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.trust-strip-item:hover svg {
  transform: scale(1.1);
}

.trust-strip-item strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.trust-strip-item span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 991px) {
  .trust-strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .trust-strip-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   10. FOOTER & MICRO ANIMATIONS
   ============================================================ */

.footer-social-link {
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer-social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-2px);
}

/* Image reveal animation for lazy loaded images */
@keyframes image-reveal {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}
.product-card__img.is-loaded {
  animation: image-reveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Scroll reveal refinement */
[data-animate] {
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Back to top smooth entrance */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}
#back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-depth-2); }

/* ============================================================
   11. PERFORMANCE SAFEGUARDS
   ============================================================ */

.product-card, .category-card, .review-card, .btn-primary, .card-atc-btn {
  will-change: auto;
}

.product-card:hover, .category-card:hover, .review-card:hover {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #hero::before, #hero::after, #featured-banner::before, .hero-bg::after {
    display: none !important;
  }
}
