/* ===========================
   Modern Home Page Styles
   =========================== */

:root {
  --primary-color: #FF6B35;
  --primary-hover: #e55a2b;
  --primary-light: #FF8C69;
  --secondary-color: #4ECDC4;
  --accent-color: #FFD93D;
  --success-color: #10b981;
  --danger-color: #dc2626;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --background-light: #f9fafb;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF9A3C 100%);
  --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #44A39A 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   Mobile Touch Optimization
   =========================== */
/* Покращення кліків на мобільних пристроях */
* {
  -webkit-tap-highlight-color: rgba(255, 107, 53, 0.15);
  -webkit-touch-callout: none;
}

button, a, .clickable {
  touch-action: manipulation; /* Відключає double-tap zoom */
  -webkit-user-select: none;
  user-select: none;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Кольорові кружки-блоби на тлі */
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.25) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,72,255,0.3) 0%, transparent 70%);
  bottom: -150px;
  left: -50px;
  pointer-events: none;
}

/* Плаваючі емодзі-іграшки */
.hero-float {
  position: absolute;
  font-size: 42px;
  opacity: 0.15;
  pointer-events: none;
  animation: floatAnim 6s ease-in-out infinite;
  user-select: none;
}
.hero-float:nth-child(1) { top: 10%; left: 5%;  animation-delay: 0s; font-size: 50px; }
.hero-float:nth-child(2) { top: 60%; left: 2%;  animation-delay: 1s; font-size: 36px; }
.hero-float:nth-child(3) { top: 20%; right: 5%; animation-delay: 2s; font-size: 44px; }
.hero-float:nth-child(4) { bottom: 15%; right: 8%; animation-delay: 0.5s; font-size: 38px; }
.hero-float:nth-child(5) { top: 45%; left: 45%; animation-delay: 1.5s; font-size: 32px; }

@keyframes floatAnim {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(8deg); }
  66% { transform: translateY(10px) rotate(-5deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF6B35, #FF9A3C);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #FF6B35, #FFD93D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FF6B35 0%, #FF9A3C 100%);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(255, 107, 53, 0.65);
  color: var(--white);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  flex: 1;
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #FF6B35, #FFD93D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.3;
}

.stat-divider {
  display: none;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.slider-container {
  position: relative;
  aspect-ratio: 1200 / 425;
  background: var(--background-light);
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.slide-item.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dots .dot.active {
  background: var(--white);
  width: 30px;
  border-radius: 5px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  opacity: 0.5;
}

.slider-arrow:hover {
  background: #fff;
  opacity: 0.7;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.slider-arrow-prev {
  left: 14px;
}

.slider-arrow-next {
  right: 14px;
}

/* ===========================
   Brands Section
   =========================== */
.brands-section {
  padding: 50px 0;
  background: var(--white);
}

.brands-carousel {
  display: flex;
  gap: 40px;
  overflow-x: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brand-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 80px;
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.brand-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: var(--transition);
}

.brand-item:hover img {
  filter: grayscale(0%);
}

/* ===========================
   Categories Section
   =========================== */
.categories-section {
  padding: 80px 0;
  background: #f0f4ff;
}

.section-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-title-modern {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  position: relative;
}

.section-title-modern::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #FF6B35, #FFD93D);
  margin-top: 8px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  font-size: 15px;
}

.view-all-link:hover {
  gap: 12px;
  color: var(--primary-hover);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  border-radius: 24px;
  padding: 28px 24px;
  text-decoration: none;
  transition: var(--transition);
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Унікальні кольори для кожної категорії */
.category-card:nth-child(8n+1) { background: linear-gradient(135deg, #FF6B35 0%, #FF9A3C 100%); }
.category-card:nth-child(8n+2) { background: linear-gradient(135deg, #6B48FF 0%, #9B7DFF 100%); }
.category-card:nth-child(8n+3) { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.category-card:nth-child(8n+4) { background: linear-gradient(135deg, #FF6B9D 0%, #FF9ABF 100%); }
.category-card:nth-child(8n+5) { background: linear-gradient(135deg, #f59e0b 0%, #fcd34d 100%); }
.category-card:nth-child(8n+6) { background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%); }
.category-card:nth-child(8n+7) { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); }
.category-card:nth-child(8n+8) { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); }

.category-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.category-card:hover::before {
  transform: scale(1.4);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: var(--transition);
  color: white !important;
  margin-bottom: 12px;
}

.category-card:hover .category-icon {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1) rotate(5deg);
}

.category-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.category-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.category-arrow {
  display: none;
}

/* ===========================
   Products Section
   =========================== */
.products-section {
  padding: 80px 0;
  background: var(--background-light);
}

.products-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.product-card-home {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.product-card-home:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-color: #FF6B35;
}

.product-image-link {
  display: block;
  text-decoration: none;
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ffffff; /* Білий фон для квадратних фото */
}

.product-image-main,
.product-image-hover {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Показує всю картинку без обрізання */
  transition: var(--transition);
}

.product-image-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Image swap on hover - DESKTOP ONLY (prevents mobile scroll issues) */
@media (hover: hover) and (pointer: fine) {
  .product-card-home:hover .product-image-hover {
    opacity: 1;
  }

  .product-card-home:hover .product-image-wrapper.has-hover-image .product-image-main {
    opacity: 0;
  }
}

.product-badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger-color);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 10;
}

.product-badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--success-color);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 10;
}

/* Коли є і "Новинка" і знижка, знижка нижче */
.product-badge-new ~ .product-badge-sale {
  top: 58px;
}

/* ХІТ ПРОДАЖІВ Badge */
.product-badge-hit {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  z-index: 11;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
  animation: pulse-hit 2s ease-in-out infinite;
}

@keyframes pulse-hit {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 6px 16px rgba(255, 107, 107, 0.6); }
}

/* Якщо є sale badge, hit badge нижче */
.product-badge-sale ~ .product-badge-hit {
  top: 58px;
}

/* Безкоштовна доставка Badge */
.product-badge-free-delivery {
  position: absolute;
  bottom: 8px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #10b981;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Метаданные популярності */
.product-meta-stats {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  margin-bottom: 6px;
  font-weight: 500;
}

/* Рейтинг товарів */
.product-meta-rating {
  font-size: 12px;
  color: #f59e0b;
  margin-top: 4px;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Секція нових товарів має інший фон */
.products-section-new {
  background: var(--white);
}

/* Product Detail Page Badges - larger size */
.product-badge-detail {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  z-index: 10;
}

.product-badge-detail-bottom {
  position: absolute;
  bottom: 10px;
  left: 20px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  z-index: 10;
}

/* Стилі для free delivery badge на сторінці товару */
.product-badge-free-delivery.product-badge-detail-bottom {
  background: rgba(255, 255, 255, 0.95);
  color: #10b981;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Позиціонування badges на product detail */
.product-badge-sale.product-badge-detail {
  top: 20px;
  left: 20px;
}

.product-badge-new.product-badge-detail {
  top: 20px;
  left: 20px;
}

.product-badge-hit.product-badge-detail {
  top: 20px;
  left: 20px;
}

/* Якщо є sale badge, інші badges нижче */
.product-badge-sale.product-badge-detail ~ .product-badge-new.product-badge-detail,
.product-badge-sale.product-badge-detail ~ .product-badge-hit.product-badge-detail {
  top: 75px;
}

/* Якщо є і sale і new, hit ще нижче */
.product-badge-sale.product-badge-detail ~ .product-badge-new.product-badge-detail ~ .product-badge-hit.product-badge-detail {
  top: 130px;
}

/* Color Variants */
.color-variants-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 15;
}

.color-variant {
  width: 45px;
  height: 45px;
  border: 2px solid transparent;
  border-radius: 50%;
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.color-variant img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-variant:hover {
  border-color: var(--primary-color);
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
}

.color-variant.unavailable {
  position: relative;
  opacity: 0.5;
}

.color-variant.unavailable::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 141%;
  height: 2px;
  background-color: var(--danger-color);
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}

.color-variant.active {
  border-color: var(--success-color);
}

/* Hide 5th color variant on mobile */
@media (max-width: 767px) {
  .color-variants-overlay .color-variant:nth-child(5) {
    display: none;
  }
}

.product-info-home {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title-home {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-decoration: none;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: var(--transition);
  min-height: calc(15px * 1.4 * 2); /* 2 строки */
}

.product-title-home:hover {
  color: var(--primary-color);
}

.product-code {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  flex-wrap: nowrap;
}

.product-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 1;
  min-width: fit-content;
}

.price-old-home {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.price-current-home {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

/* Якщо є стара ціна (знижка), то нова ціна червона */
.product-prices:has(.price-old-home) .price-current-home {
  color: var(--danger-color);
}

.btn-add-cart-home {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff3ee;
  color: #FF6B35;
  border: none;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.btn-add-cart-home:focus {
  outline: none;
  box-shadow: none;
}

/* Hover ефекти тільки для пристроїв з мишкою (не touch) */
@media (hover: hover) and (pointer: fine) {
  .btn-add-cart-home:hover:not(:disabled) {
    background: #FF6B35;
    color: white;
    transform: scale(1.1);
  }

  .btn-add-cart-home.in-cart:hover {
    color: #0d9488 !important;
    background: transparent !important;
    text-decoration: none !important;
  }
}

.btn-add-cart-home:disabled {
  color: var(--text-muted);
  opacity: 0.5;
  cursor: not-allowed;
}

/* Стан коли товар в кошику */
.btn-add-cart-home.in-cart {
  color: var(--success-color) !important;
  background: transparent !important;
  text-decoration: none !important;
}

/* Desktop/Mobile action buttons visibility */
.product-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-code-row .product-code {
  margin-bottom: 0;
}

.mobile-action-btns {
  display: none;
  align-items: center;
}

.desktop-action-btns {
  display: flex;
  align-items: center;
}

.mobile-cart-btn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-action-btns {
    display: flex;
  }

  .desktop-action-btns {
    display: none;
  }

  .mobile-cart-btn {
    display: flex;
  }

  .product-code-row {
    margin-bottom: 8px;
  }
}

/* Анімація додавання в кошик */
@keyframes addToCartPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes successCheckmark {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(-45deg);
    opacity: 1;
  }
}

.btn-add-cart-home.adding {
  animation: addToCartPulse 0.6s ease;
  /* pointer-events видалено для покращення responsiveness на мобільних */
}

/* Ефект хвиль при кліку */
.btn-add-cart-home::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-add-cart-home.adding::before {
  width: 100px;
  height: 100px;
  opacity: 0;
}

/* ===========================
   Features Section
   =========================== */
.features-section {
  padding: 80px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 16px;
  background: var(--background-light);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   Cart Notification
   =========================== */
.cart-notification-home {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--success-color);
  color: var(--white);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  z-index: 10000;
  transform: translateY(150px);
  opacity: 0;
  transition: var(--transition);
}

.cart-notification-home.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-notification-home i {
  font-size: 20px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 991px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .section-title-modern {
    font-size: 28px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .products-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 24px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .products-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-info-home {
    padding: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cart-notification-home {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }

  /* Вимкнути transform та hover ефекти для карточок на мобільних */
  .product-card-home:hover {
    transform: none;
  }

  .category-card:hover {
    transform: none;
  }

  /* Вимкнути hover для зміни зображення на мобільних */
  .product-card-home:hover .product-image-hover {
    opacity: 0;
  }

  /* Smaller color variants on mobile */
  .color-variants-overlay {
    gap: 4px;
    max-height: 180px;
    overflow: hidden;
  }

  .color-variant {
    width: 32px;
    height: 32px;
  }

  /* Оптимізація badges для мобільних */
  .product-badge-sale,
  .product-badge-new,
  .product-badge-hit {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 6px;
    top: 8px;
    left: 8px;
  }

  .product-badge-new ~ .product-badge-sale,
  .product-badge-sale ~ .product-badge-hit {
    top: 38px;
  }

  .product-badge-free-delivery {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 6px;
    /*bottom: 8px;*/
    left: 8px;
  }

  /* Disable pulse animation on mobile for performance */
  .product-badge-hit {
    animation: none;
  }

  /* Метаданные на мобільних менше */
  .product-meta-stats,
  .product-meta-rating {
    font-size: 11px;
    margin-top: 2px;
    margin-bottom: 4px;
  }

  /* Ціни на мобільних менше */
  .price-old-home {
    font-size: 11px;
  }

  .price-current-home {
    font-size: 16px;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}