/* Apple/Linear/Vercel Style - Modern Minimalist Design */

/* Font preload будет в header.php */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Основные цвета - более оранжевые */
  --primary: #ff6b35;
  --primary-hover: #ff5722;
  --secondary: #ffa726;
  --accent: #ff8a50;
  
  /* Помощники */
  --success: #b8e994;
  --info: #82ccdd;
  
  /* Нейтральные */
  --body: #ffffff;
  --elements: #f1f2f6;
  --shadows: #dfe4ea;
  --dark: #2f3542;
  --silver: #a4b0be;
  
  /* Текст - улучшенная контрастность */
  --text-primary: #1a1f2e;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  
  /* Тени */
  --shadow-sm: 0 1px 3px rgba(47, 53, 66, 0.05);
  --shadow-md: 0 4px 12px rgba(47, 53, 66, 0.08);
  --shadow-lg: 0 12px 24px rgba(47, 53, 66, 0.12);
  --shadow-xl: 0 20px 40px rgba(47, 53, 66, 0.16);
  
  /* Grid Pattern */
  --grid-color: rgba(16, 185, 129, 0.03);
}

/* Font display swap для предотвращения CLS */
@font-face {
  font-family: 'Inter';
  font-display: swap;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

html {
  overflow-x: hidden !important;
}

* {
  max-width: 100%;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Cards */
.card {
  background: var(--body);
  border: 1px solid var(--elements);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--shadows);
}

.card-gradient {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 167, 38, 0.05));
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4), 0 2px 8px rgba(255, 107, 53, 0.3);
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--secondary));
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5), 0 4px 12px rgba(255, 107, 53, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--elements);
  color: var(--text-primary);
  border: 1px solid var(--shadows);
}

.btn-secondary:hover {
  background: var(--shadows);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--elements);
  color: var(--text-primary);
}

/* Header - Премиальный солидный дизайн */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

header > * {
  position: relative;
  z-index: 1;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: relative;
  background: transparent;
}

.mobile-menu-btn {
  display: none;
  position: absolute;
  left: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.25s ease;
  background: transparent;
  border: 1px solid transparent;
}

.mobile-menu-btn:hover {
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.15);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  position: absolute;
  left: 32px;
  z-index: 10;
  transition: transform 0.25s ease;
}

.header-logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transition: filter 0.25s ease;
}

.header-logo:hover .logo-img {
  filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.2));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 10px;
  color: var(--text-tertiary);
  line-height: 1;
  margin-top: 2px;
}

.header-nav {
  position: absolute;
  right: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  position: relative;
}

.nav-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.nav-btn:hover {
  background: rgba(255, 107, 53, 0.08);
  color: var(--primary);
  border-color: rgba(255, 107, 53, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.12);
}

.nav-btn:hover svg {
  transform: scale(1.1);
}

.nav-btn .heart-icon.filled {
  fill: var(--primary);
  stroke: var(--primary);
}

.header-nav .btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
}

.header-nav .btn:hover {
  background: rgba(255, 107, 53, 0.08);
  color: var(--primary);
  border-color: rgba(255, 107, 53, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.12);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--body);
  border-right: 1px solid var(--elements);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(47, 53, 66, 0.5);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--body);
  border: 1px solid var(--elements);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
  transform: translateX(0);
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

/* Product Cards */
.product-card {
  background: var(--body);
  border: 2px solid var(--elements);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
  border-color: var(--primary);
}

.product-card:hover > div:first-child {
  opacity: 1 !important;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-card:hover .buy-btn {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

.product-card:hover .favorite-btn {
  border-color: var(--primary) !important;
  background: rgba(255, 107, 53, 0.1) !important;
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--elements);
  aspect-ratio: 400 / 220;
  transition: transform 0.2s ease;
  will-change: transform;
}

.product-info {
  padding: 16px;
}

.product-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.price-current {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-old {
  font-size: 14px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: var(--elements);
  color: var(--text-secondary);
  border: 1px solid var(--shadows);
}

.badge-primary {
  background: rgba(238, 90, 36, 0.1);
  color: var(--primary);
  border-color: rgba(238, 90, 36, 0.2);
}

/* Modals */
/* Модальные окна - красивый дизайн с Micromodal.js */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  pointer-events: none;
}

.modal.is-open {
  display: block;
  pointer-events: all;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 31, 46, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 100000;
  pointer-events: all;
  cursor: pointer;
}

.modal.is-open .modal-overlay {
  opacity: 1;
}

.modal-container {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  z-index: 100001;
  margin: auto;
  cursor: default;
  pointer-events: all;
}

.modal.is-open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px 24px 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header-stars {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 167, 38, 0.04));
  border-bottom: 2px solid rgba(255, 107, 53, 0.15);
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1f2e;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

.modal-header-stars .modal-title {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #1a1f2e;
  transform: scale(1.05);
}

.modal-close-btn:active {
  transform: scale(0.95);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-body-stars {
  padding: 32px 24px;
}

.modal-body .product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: block;
}

.modal-body .product-price {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-body .price-current {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.modal-body .price-old {
  font-size: 18px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-weight: 600;
  display: inline-block;
}

.modal-body .product-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 12px;
  }
  
  .modal-container {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }
  
  .modal-header {
    padding: 20px 20px 16px 20px;
  }
  
  .modal-title {
    font-size: 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-body-stars {
    padding: 24px 20px;
  }
}

/* Categories */
.category-btn {
  padding: 5px 12px;
  border-radius: 12px;
  border: 1px solid var(--elements);
  background: var(--elements);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn:hover {
  background: var(--elements);
  color: var(--text-primary);
  border-color: var(--shadows);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
  font-weight: 700;
}

/* Sort */
.sort-btn {
  padding: 5px 12px;
  border-radius: 12px;
  border: 1px solid var(--elements);
  background: var(--elements);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.sort-btn:hover {
  background: var(--elements);
  color: var(--text-primary);
}

.sort-btn.active {
  background: rgba(255, 107, 53, 0.12);
  color: var(--primary);
  border-color: rgba(255, 107, 53, 0.25);
  font-weight: 600;
}

/* Notifications - одно красивое уведомление */
#notifications-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 1000;
  max-width: 400px;
  width: 100%;
}

.notification {
  background: var(--body);
  border: 1px solid var(--elements);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}

.notification-icon {
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  transform: scale(1.1);
}

/* Main Content */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 24px 40px;
  position: relative;
}

main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

main > * {
  position: relative;
  z-index: 1;
}

main > * {
  margin-top: 30px;
  margin-bottom: 30px;
}

main > *:first-child {
  margin-top: 0;
}

main > *:last-child {
  margin-bottom: 0;
}

main > * {
  margin-top: 30px;
  margin-bottom: 30px;
}

main > *:first-child {
  margin-top: 0;
}

main > *:last-child {
  margin-bottom: 0;
}

/* Grid Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 0;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-tertiary);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--elements);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-placeholder {
  transition: opacity 0.3s;
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

.spinning {
  animation: spin 1s linear infinite;
}

/* Footer */
footer {
  background: var(--body);
  border-top: 1px solid var(--elements);
  padding: 48px 24px;
  margin-top: 80px;
}

footer a:hover,
footer button:hover {
  color: var(--primary) !important;
}

footer svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    height: 70px;
    background: #ffffff !important;
  }
  
  .header-content {
    padding: 0 16px;
    background: #ffffff;
  }
  
  .mobile-menu-btn {
    display: flex !important;
    left: 16px !important;
  }
  
  .header-logo {
    left: 64px !important;
  }
  
  .logo-img {
    height: 36px;
  }
  
  .logo-title {
    font-size: 18px !important;
  }
  
  .header-nav {
    display: none !important;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  
  main {
    padding: 90px clamp(12px, 4vw, 16px) 24px;
  }
  
  #notifications-container {
    right: clamp(12px, 4vw, 16px);
    top: 80px;
    max-width: calc(100% - 32px);
  }
  
  .control-section {
    padding: clamp(16px, 5vw, 32px) !important;
    margin: clamp(16px, 4vw, 32px) 0 !important;
    border-radius: 20px !important;
  }
  
  .control-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  
  .control-head h2 {
    font-size: clamp(20px, 5vw, 28px) !important;
    line-height: 1.2 !important;
  }
  
  .control-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 18px !important;
    font-size: 14px !important;
    flex-wrap: wrap;
    gap: 6px !important;
  }
  
  .control-cta__price {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }
  
  .stores-track {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .store-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }
  
  .sort-tabs {
    grid-template-columns: 1fr !important;
  }
  
  .sort-tab {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }
  
  .category-board {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .category-card {
    padding: 16px !important;
    flex-wrap: wrap;
    gap: 12px !important;
  }
  
  .category-card__icon {
    width: 48px !important;
    height: 48px !important;
  }
  
  .category-board__sub {
    padding: 16px !important;
  }
  
  .subcategories-container {
    gap: 8px !important;
  }
  
  .subcategories-container .category-btn {
    padding: 6px 14px !important;
    font-size: 12px !important;
  }
}

/* Utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.bg-primary { background: var(--primary); }
.bg-elements { background: var(--elements); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 24px; }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Pagination */
.pagination-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2) !important;
}

.pagination-btn.active {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 167, 38, 0.1)) !important;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3) !important;
}

/* Discount Banner - Premium Design */
.discount-banner {
  position: relative;
  margin: 0;
  padding: 20px 24px;
  background: 
    linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(255, 167, 38, 0.95)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(16, 185, 129, 0.03) 24px,
      rgba(16, 185, 129, 0.03) 25px
    );
  background-size: 100% 100%, 100% 25px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(255, 107, 53, 0.25);
}

.discount-banner-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.discount-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.discount-banner-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.discount-banner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.discount-banner-label {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.discount-banner-highlight {
  font-size: 20px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
  }
  50% { 
    opacity: 0.95; 
    transform: scale(1.02); 
  }
}

/* CTA Баннер - Premium Design */
.cta-banner {
  margin: 32px auto;
  max-width: 1400px;
  padding: 0 24px;
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 167, 38, 0.05) 50%, rgba(255, 107, 53, 0.08) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(16, 185, 129, 0.03) 24px,
      rgba(16, 185, 129, 0.03) 25px
    );
  background-size: 100% 100%, 100% 25px;
  border-radius: 24px;
  z-index: 0;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cta-header {
  text-align: center;
  margin-bottom: 32px;
}

.cta-title {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35, #ffa726);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.cta-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.cta-block {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 167, 38, 0.08));
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-block:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.25);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15), 0 0 0 1px rgba(255, 107, 53, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

.cta-block:hover::before {
  opacity: 1;
}

.cta-block-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff6b35, #ffa726);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
  transition: transform 0.3s ease;
}

.cta-block:hover .cta-block-icon {
  transform: scale(1.05) rotate(5deg);
}

.cta-block-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cta-block-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cta-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 107, 53, 0.06);
  border: 1px solid rgba(255, 107, 53, 0.12);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.cta-feature:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateY(-2px);
}

.cta-feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ff6b35, #ffa726);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.cta-feature-content {
  flex: 1;
}

.cta-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.cta-feature-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
}

.cta-button-wrapper {
  text-align: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #ff6b35, #ffa726);
  color: white;
  font-weight: 700;
  font-size: 16px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffa726, #ff6b35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.45), 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn svg {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.cta-btn span {
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Banner Block - в стиле control-section */
.control-section--hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.control-section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.control-section--hero > * {
  position: relative;
  z-index: 1;
}

.hero-banner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 32px);
  align-items: center;
  min-height: 300px;
}

@media (min-width: 1024px) {
  .hero-banner {
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
  }
}

.hero-banner__image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 750 / 422;
  background: rgba(0,0,0,0.02);
  display: none;
}

@media (min-width: 1024px) {
  .hero-banner__image-wrapper {
    display: block;
  }
}

.hero-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

.hero-banner:hover .hero-banner__image {
  opacity: 0.3;
}

.hero-banner__content {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-banner__header {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
  width: 100%;
}

.hero-banner__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  color: #1a1f2e;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-banner__description {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(0,0,0,0.7);
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

.control-section--hero .control-cta {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 1023px) {
  .hero-banner {
    gap: clamp(20px, 4vw, 28px);
    min-height: auto;
    grid-template-columns: 1fr;
  }
  
  .hero-banner__image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    order: 1;
  }
  
  .hero-banner__content {
    text-align: center;
    gap: clamp(16px, 3vw, 24px);
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-banner__header {
    align-items: center;
    text-align: center;
    gap: clamp(12px, 2.5vw, 18px);
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .hero-banner__header > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
  }
  
  .hero-banner__title {
    font-size: clamp(24px, 5vw, 32px);
    text-align: center;
    line-height: 1.2;
    margin: 0;
  }
  
  .hero-banner__description {
    font-size: clamp(13px, 2vw, 15px);
    max-width: 100%;
    text-align: center;
    line-height: 1.5;
    margin: 0;
  }
  
  .control-section--hero .control-cta {
    align-self: center;
    width: 100%;
    max-width: 100%;
    margin-top: clamp(8px, 2vw, 12px);
  }
}

@media (max-width: 480px) {
  .control-section--hero {
    padding: clamp(14px, 3vw, 18px);
  }
  
  .hero-banner {
    gap: clamp(16px, 3vw, 20px);
  }
  
  .hero-banner__title {
    font-size: clamp(22px, 5vw, 28px);
  }
  
  .hero-banner__description {
    font-size: clamp(12px, 2vw, 14px);
    padding: 0 4px;
  }
  
  .hero-banner__image-wrapper {
    aspect-ratio: 16 / 9;
  }
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.01) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,0.01) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.hero-banner__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  position: relative;
  z-index: 0;
  transition: transform 0.3s ease;
}

.hero-banner:hover .hero-banner__image {
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .hero-banner {
    border-radius: 20px;
    margin: clamp(18px, 3.5vw, 32px) auto;
  }
  
  .hero-banner__image {
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    margin: clamp(16px, 3vw, 24px) auto;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
  }
  
  .hero-banner__image {
    border-radius: 16px;
  }
  
  .hero-banner::before {
    background-size: 24px 24px;
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    margin: clamp(12px, 2.5vw, 20px) auto;
    border-radius: 12px;
  }
  
  .hero-banner__image {
    border-radius: 12px;
  }
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
  overflow-x: hidden;
  position: relative;
}

.container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.container > * {
  position: relative;
  z-index: 1;
}

/* Разделители секций */
.sort-section {
  background: var(--body);
  border-radius: 0;
}

.sort-section::before,
.sort-section::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--elements);
}

@media (max-width: 768px) {
  .container {
    padding: 8px !important;
  }
  
  .discount-banner {
    padding: 16px 20px !important;
  }
  
  .discount-banner-content {
    gap: 12px !important;
  }
  
  .discount-banner-icon {
    width: 40px !important;
    height: 40px !important;
  }
  
  .discount-banner-label {
    font-size: 13px !important;
  }
  
  .discount-banner-highlight {
    font-size: 17px !important;
  }
  
  .cta-banner {
    margin: 24px auto !important;
    padding: 0 16px !important;
  }
  
  .cta-banner-content {
    padding: 28px 20px !important;
  }
  
  .cta-title {
    font-size: 28px !important;
  }
  
  .cta-subtitle {
    font-size: 14px !important;
  }
  
  .cta-blocks {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .cta-block {
    padding: 20px !important;
  }
  
  .cta-block-title {
    font-size: 16px !important;
  }
  
  .cta-block-text {
    font-size: 13px !important;
  }
  
  .cta-features {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .cta-btn {
    padding: 14px 28px !important;
    font-size: 15px !important;
    width: 100%;
  }
  
  .product-card {
    margin-bottom: 10px !important;
    border-radius: 12px !important;
  }
  
  .product-info {
    padding: 10px !important;
  }
  
  .product-image {
    height: 140px !important;
  }
  
  .card {
    margin-bottom: 12px !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }
  
  /* Убираем лишние ползунки на мобиле */
  body {
    overflow-x: hidden !important;
  }
  
  html {
    overflow-x: hidden !important;
  }
  
  * {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  
  /* Скрываем все горизонтальные скроллбары */
  div[style*="overflow-x"]::-webkit-scrollbar,
  .sellers-container::-webkit-scrollbar,
  .categories-container::-webkit-scrollbar,
  .sort-container::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }
  
  /* Упрощаем анимации на мобиле */
  .product-card:hover {
    transform: translateY(-1px) !important;
  }
  
  .product-card:hover .product-image {
    transform: none !important;
  }
  
  /* Уменьшаем gap в сетке */
  .products-grid {
    gap: 10px !important;
  }
  
  /* Уменьшаем отступы в категориях */
  .py-4 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  
  .mb-5 {
    margin-bottom: 12px !important;
  }
}

/* Scrollbar - только вертикальный, скрываем горизонтальные */
::-webkit-scrollbar {
  width: 6px;
  height: 0;
}

::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0 !important;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--shadows);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--silver);
}

/* Скрываем все горизонтальные скроллбары глобально */
* {
  scrollbar-width: thin;
}

.sellers-container,
.categories-container,
.sort-container,
div[style*="overflow-x: auto"] {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sellers-container::-webkit-scrollbar,
.categories-container::-webkit-scrollbar,
.sort-container::-webkit-scrollbar,
div[style*="overflow-x: auto"]::-webkit-scrollbar {
  height: 0 !important;
  display: none !important;
  width: 0 !important;
}

/* ============================================
   ОПТИМИЗАЦИЯ ДЛЯ СЛАБЫХ УСТРОЙСТВ
   ============================================ */

/* Отключение анимаций для пользователей с prefers-reduced-motion */
@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;
  }
}

/* Оптимизация для слабых устройств (Tecno Spark 20C и подобные) */
@media (max-width: 768px), (max-device-width: 768px) {
  /* Отключаем backdrop-filter - очень тяжелый эффект */
  * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* Упрощаем grid pattern - убираем repeating-linear-gradient */
  .sellers-section,
  .categories-section,
  .sort-section,
  .discount-banner,
  .cta-banner-bg {
    background: 
      linear-gradient(to right, transparent 0%, rgba(16, 185, 129, 0.02) 50%, transparent 100%) !important;
    background-size: 100% 100% !important;
  }
  
  /* Упрощаем тени */
  .seller-btn,
  .category-btn,
  .sort-btn,
  .cta-block,
  .cta-feature {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
  
  .seller-btn:hover,
  .category-btn:hover,
  .sort-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  }
  
  /* Упрощаем градиенты в фонах */
  .seller-btn,
  .category-btn,
  .sort-btn,
  .cta-banner-content {
    background: rgba(255, 255, 255, 0.95) !important;
  }
  
  /* Отключаем сложные hover эффекты */
  .seller-btn:hover,
  .category-btn:hover,
  .sort-btn:hover,
  .cta-block:hover,
  .cta-feature:hover {
    transform: none !important;
  }
  
  /* Упрощаем анимации */
  .discount-banner-bg {
    animation: none !important;
  }
  
  .discount-banner-highlight {
    animation: none !important;
  }
  
  /* Упрощаем product-card hover */
  .product-card:hover {
    transform: none !important;
  }
  
  .product-card:hover .product-image {
    transform: none !important;
  }
  
  /* Отключаем сложные эффекты в CTA блоке */
  .cta-block::before {
    display: none !important;
  }
  
  .cta-block:hover .cta-block-icon {
    transform: none !important;
  }
  
  /* Упрощаем кнопки */
  .cta-btn:hover {
    transform: none !important;
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.35) !important;
  }
  
  /* Упрощаем header */
  header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
  }
  
  /* Отключаем will-change для производительности */
  * {
    will-change: auto !important;
  }
}

/* Дополнительная оптимизация для очень слабых устройств */
@media (max-width: 480px), (max-device-width: 480px) {
  /* Полностью убираем grid pattern */
  .sellers-section,
  .categories-section,
  .sort-section,
  .discount-banner,
  .cta-banner-bg {
    background: transparent !important;
  }
  
  /* Упрощаем все тени */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .seller-btn,
  .category-btn,
  .sort-btn,
  .cta-block,
  .cta-feature,
  .product-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Убираем все градиенты в фонах */
  .seller-btn,
  .category-btn,
  .sort-btn {
    background: var(--body) !important;
  }
  
  .cta-banner-content {
    background: var(--body) !important;
  }
  
  /* Упрощаем border */
  .seller-btn,
  .category-btn,
  .sort-btn {
    border: 1px solid var(--elements) !important;
  }
  
  /* Упрощенные стили для карточек продуктов */
  .product-card {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
  
  .product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--elements);
    border-radius: 12px 12px 0 0;
  }
  
  .product-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b35, #ffa726);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    z-index: 10;
  }
  
  .product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }
  
  .product-info {
    padding: 16px;
  }
  
  .product-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .product-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
  }
  
  .price-current {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
  }
  
  .price-old {
    font-size: 14px;
    color: var(--text-tertiary);
    text-decoration: line-through;
  }
  
  .buy-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b35, #ffa726);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
  }
}

