/* Enhanced Home Page Styles with Beautiful Design */
/* 🎨 PharmaWeb Home v2.0 - Mobile-First | Performance Optimized | Accessibility Ready */

:root {
  --primary: #008c69;
  --primary-dark: #006e53;
  --secondary: #523db8;
  --accent: #f9a802;
  --success: #00f5a0;
  --warning: #fbbf24;
  --danger: #ef4444;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-strong: rgba(255, 255, 255, 0.25);
  --shadow: 0 4px 20px rgba(0, 140, 105, 0.1);
  --shadow-strong: 0 20px 60px rgba(0, 140, 105, 0.15);
  --radius: 20px;
  --radius-large: 28px;
  --radius-pill: 999px;
  --section-gap: 3.5rem;
  --card-gap: 1.25rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --touch-target-min: 44px; /* WCAG touch target minimum */
}

/* Performance optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Focus States for Accessibility === */
.hero-btn:focus-visible,
.search-btn:focus-visible,
.category-card:focus-visible,
.product-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* === Touch Target Sizes === */
@media (hover: none) and (pointer: coarse) {
  .hero-btn,
  .search-btn,
  .product-btn,
  .cta-btn {
    min-height: var(--touch-target-min);
    padding: 12px 20px;
  }
}

/* Clean background wrapper */
.home-wrapper {
  background: transparent;
  min-height: 100vh;
  padding: 2rem 1rem;
  position: relative;
}

/* Main content card with all the beautiful gradients inside */
.main-content-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-strong);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

.main-content-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Animated background patterns */
@media (prefers-reduced-motion: no-preference) {
  .main-content-card {
    background-size: 200% 200%;
    animation: gentleShift 20s ease-in-out infinite;
    will-change: background-position;
  }
  
  @keyframes gentleShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
}

/* Beautiful Hero Section */
.hero-section {
  background: var(--glass-strong);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.hero-content {
  padding: 2.75rem 2.25rem;
}

/* Hero main icon breathing animation wrapper */
/* Aquarium-like bubbles rising effect */
.bubble-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubble-layer .bubble {
  position: absolute;
  bottom: -10%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 0 12px rgba(255,255,255,0.35), inset 0 0 6px rgba(255,255,255,0.25);
  filter: blur(0.2px);
  animation: rise 12s linear infinite;
}

/* Different sizes/opacities/durations for natural variation */
.bubble-layer .bubble:nth-child(3n) { width: 8px; height: 8px; animation-duration: 14s; opacity: 0.35; }
.bubble-layer .bubble:nth-child(4n) { width: 12px; height: 12px; animation-duration: 16s; opacity: 0.45; }
.bubble-layer .bubble:nth-child(5n) { width: 6px; height: 6px; animation-duration: 18s; opacity: 0.30; }
.bubble-layer .bubble:nth-child(7n) { width: 14px; height: 14px; animation-duration: 20s; opacity: 0.40; }

/* Horizontal distribution */
.bubble-layer .bubble:nth-child(1)  { left: 5%;  animation-delay: 0s; }
.bubble-layer .bubble:nth-child(2)  { left: 12%; animation-delay: 2s; }
.bubble-layer .bubble:nth-child(3)  { left: 18%; animation-delay: 4s; }
.bubble-layer .bubble:nth-child(4)  { left: 25%; animation-delay: 6s; }
.bubble-layer .bubble:nth-child(5)  { left: 32%; animation-delay: 1s; }
.bubble-layer .bubble:nth-child(6)  { left: 40%; animation-delay: 3s; }
.bubble-layer .bubble:nth-child(7)  { left: 48%; animation-delay: 5s; }
.bubble-layer .bubble:nth-child(8)  { left: 56%; animation-delay: 7s; }
.bubble-layer .bubble:nth-child(9)  { left: 64%; animation-delay: 9s; }
.bubble-layer .bubble:nth-child(10) { left: 72%; animation-delay: 11s; }
.bubble-layer .bubble:nth-child(11) { left: 80%; animation-delay: 13s; }
.bubble-layer .bubble:nth-child(12) { left: 88%; animation-delay: 8s; }
.bubble-layer .bubble:nth-child(13) { left: 50%; animation-delay: 10s; }
.bubble-layer .bubble:nth-child(14) { left: 20%; animation-delay: 12s; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.0; }
  5%   { opacity: 0.45; }
  50%  { transform: translateY(-60vh) translateX(-6px) scale(1.02); }
  80%  { opacity: 0.35; }
  100% { transform: translateY(-100vh) translateX(6px) scale(1.05); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble-layer .bubble { animation: none; display: none; }
}

.hero-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  margin: 1rem 0;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Optimized Search Bar */
.hero-search {
  max-width: 580px;
  margin-bottom: 2rem;
}

.search-wrapper {
  position: relative;
  background: hsla(35, 25%, 92%, 0.9);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  transition: var(--transition);
  overflow: hidden;
  padding: 5px;
  min-height: 52px;
}

.search-wrapper:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 140, 105,0.1), var(--shadow);
  transform: translateY(-1px);
}

.search-input {
  border: none;
  background: transparent;
  padding: 0.875rem 1.25rem;
  padding-inline-end: 120px;
  padding-inline-start: 1.25rem;
  font-size: 1rem;
  color: #334155;
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.search-input:focus {
  white-space: normal; /* 🔥 در حالت focus متن کامل نمایش داده شود */
  overflow: visible;
  text-overflow: clip;
}

.search-input::placeholder {
  color: #94a3b8;
  text-overflow: ellipsis;
}

.search-btn {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9rem;
  min-width: 96px;
  z-index: 10;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.02);
}

/* Beautiful Sections */
.features-section, .categories-section, .products-section, .cta-section {
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, hsla(35, 25%, 92%, 0.95), hsla(35, 25%, 92%, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Enhanced Cards */
.feature-card, .category-card, .product-card {
  background: var(--glass-strong);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card::before, .category-card::before, .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.feature-card:hover, .category-card:hover, .product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 140, 105,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* Feature Cards */
.feature-card {
  padding: 2rem;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  position: relative;
}

.feature-icon.security {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.feature-icon.delivery {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.feature-icon.support {
  background: linear-gradient(135deg, #523db8, #523db8);
  color: white;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Make sure SVG inside feature-icon is clearly visible */
.feature-icon .pharma-icon {
  color: #ffffff;
  width: 2.25rem; /* override if needed */
  height: 2.25rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1rem;
}

.feature-description {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ─── Hero Trust Badges ─── */
.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
  margin-top: 2.25rem;
}
.hero-trust-badges .trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: var(--transition);
  min-height: 96px;
}
.hero-trust-badges .trust-badge:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.hero-trust-badges .trust-badge i {
  font-size: 1.35rem;
  color: rgba(255,255,255,0.9);
}

/* Hero title sub */
.hero-title-sub {
  font-size: 0.75em;
  opacity: 0.9;
  display: block;
}

/* ─── Stats Section ─── */
.stats-section {
  position: relative;
  z-index: 2;
  margin-bottom: 3.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}
.stat-item {
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 1.65rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.stat-item:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.stat-number {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}

/* ─── Category Cards — Redesigned ─── */
.category-card {
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 92px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.13);
  border: 1.5px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: var(--transition);
}
.category-card:hover::before { opacity: 1; }
.category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.42);
  color: white;
}

/* Category color accents */
.cat-color-1 .category-icon-wrap { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.cat-color-2 .category-icon-wrap { background: linear-gradient(135deg,#0891b2,#06b6d4); }
.cat-color-3 .category-icon-wrap { background: linear-gradient(135deg,#dc2626,#ef4444); }
.cat-color-4 .category-icon-wrap { background: linear-gradient(135deg,#059669,#10b981); }
.cat-color-5 .category-icon-wrap { background: linear-gradient(135deg,#d97706,#f59e0b); }
.cat-color-6 .category-icon-wrap { background: linear-gradient(135deg,#0284c7,#38bdf8); }
.cat-color-7 .category-icon-wrap { background: linear-gradient(135deg,#be185d,#ec4899); }
.cat-color-8 .category-icon-wrap { background: linear-gradient(135deg,#6d28d9,#8b5cf6); }

.category-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: var(--transition);
}
.category-card:hover .category-icon-wrap {
  transform: scale(1.12) rotate(-5deg);
}
.category-info { flex: 1; min-width: 0; }
.category-title {
  color: rgba(255,255,255,0.95);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-count-badge {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.category-arrow {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.category-card:hover .category-arrow { 
  color: rgba(255,255,255,0.9);
  transform: translateX(3px);
}
[dir="rtl"] .category-card:hover .category-arrow {
  transform: translateX(-3px);
}

/* Product Cards */
.product-card {
  padding: 0;
  overflow: hidden;
}

.product-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 245, 160, 0.3);
}

.product-body {
  padding: 1.5rem;
}

.product-title {
  color: rgba(255,255,255,0.95);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-description {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ─── CTA Section ─── */
.cta-section {
  text-align: center;
  padding: 3.5rem 2rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-large);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), rgba(249,168,2,0.8), rgba(255,255,255,0.6), transparent);
}
.cta-icon-ring {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,140,105,0.35);
  animation: iconPulse 3s ease-in-out infinite;
}
.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: rgba(255,255,255,0.97);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.cta-subtitle {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-inline: auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.cta-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
  border: 2px solid rgba(255,255,255,0.32);
  color: rgba(255,255,255,0.97);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}
.cta-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.22));
  border-color: rgba(255,255,255,0.55);
  color: white;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(255,255,255,0.18);
}
.cta-btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.8);
}
.cta-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

/* ─── Product Rating ─── */
.product-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Enhanced Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.hero-btn {
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 2px solid transparent;
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.hero-btn:hover::before {
  opacity: 1;
}

.hero-btn-primary {
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.25));
  color: white;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.hero-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.hero-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.product-btn {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.product-btn-primary {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  border: none;
}

.product-btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.product-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
}

.product-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.5);
}

/* Beautiful Animations */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge {
    animation: gentleFloat 4s ease-in-out infinite;
  }
  
  .feature-icon {
    animation: iconPulse 3s ease-in-out infinite;
  }
  
  .product-badge {
    animation: badgeShine 2s ease-in-out infinite;
  }
  
  @keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
  
  @keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  
  @keyframes badgeShine {
    0%, 100% { box-shadow: 0 4px 10px rgba(0, 245, 160, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(0, 245, 160, 0.5); }
  }
}

/* ─── Responsive Design ─── */
@media (max-width: 1200px) {
  .main-content-card { padding: 2.5rem 1.5rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

@media (max-width: 992px) {
  .hero-trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .home-wrapper { padding: 1rem; }
  .main-content-card { padding: 2rem 1.25rem; border-radius: var(--radius); }
  .hero-content { padding: 1.75rem 1.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-btn { min-width: auto; justify-content: center; }
  .search-wrapper { flex-wrap: nowrap; }
  .search-input { font-size: 0.95rem; padding: 0.75rem 1rem; padding-inline-end: 100px; min-width: 0; }
  .search-btn { padding: 0.625rem 0.875rem; font-size: 0.85rem; min-width: 80px; flex-shrink: 0; }
  .feature-card { min-height: auto; padding: 1.5rem; }
  .category-card { min-height: 80px; padding: 1rem 1.15rem; }
  .product-actions { flex-direction: column; }
  .product-btn { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-item { padding: 1.25rem 1rem; }
  .stat-number { font-size: 1.5rem; }
  .hero-trust-badges { gap: 0.85rem; margin-top: 1.75rem; }
  .hero-trust-badges .trust-badge { font-size: 0.78rem; padding: 1rem 0.75rem; min-height: 88px; }
  .hero-trust-badges .trust-badge i { font-size: 1.15rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 576px) {
  .home-wrapper { padding: 0.75rem; }
  .main-content-card { padding: 1.5rem 1rem; }
  .hero-content { padding: 1.25rem 1rem; }
  .search-wrapper { flex-wrap: nowrap; }
  .search-input { padding: 0.625rem 0.875rem; padding-inline-end: 85px; font-size: 0.9rem; min-width: 0; }
  .search-btn { padding: 0.5rem 0.75rem; font-size: 0.8rem; min-width: 70px; inset-inline-end: 5px; flex-shrink: 0; }
  .search-btn span { display: none; }
  .feature-card { padding: 1.25rem; }
  .cta-section { padding: 2rem 1rem; }
  .category-icon-wrap { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 14px; }
  .category-title { font-size: 0.85rem; }
  .hero-trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 400px) {
  .search-btn span {
    display: none;
  }
  
  .search-btn {
    min-width: 50px;
  }
  
  .hero-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* === Safe Area Support for iPhone X+ === */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .home-wrapper {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  
  .cta-section {
    margin-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

/* === High Contrast Mode Support === */
@media (prefers-contrast: high) {
  .feature-card,
  .category-card,
  .product-card {
    border: 2px solid rgba(255, 255, 255, 0.8);
  }
  
  .hero-btn,
  .product-btn,
  .cta-btn {
    border-width: 2px;
  }
  
  .section-title,
  .hero-title {
    text-shadow: none;
    -webkit-text-fill-color: white;
  }
}

/* === Print Styles === */
@media print {
  .bubble-layer,
  .hero-actions,
  .hero-search {
    display: none !important;
  }
  
  .main-content-card {
    background: white !important;
    box-shadow: none !important;
  }
  
  .section-title,
  .hero-title,
  .feature-title,
  .category-title {
    color: black !important;
    -webkit-text-fill-color: black !important;
  }
}

/* === Loading Animation for Images === */
.product-image-wrapper {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: image-loading 1.5s infinite;
}

.product-image-wrapper img.loaded {
  animation: none;
  background: transparent;
}

@keyframes image-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Better Touch Feedback === */
@media (hover: none) {
  .feature-card:active,
  .category-card:active,
  .product-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow);
  }
  
  .hero-btn:active,
  .product-btn:active,
  .cta-btn:active {
    transform: scale(0.95);
  }
}