/* ФотоХайп - Улучшенная система дизайна с высокой читаемостью */

:root {
  /* УЛУЧШЕННАЯ ЦВЕТОВАЯ ПАЛИТРА - ЧИТАЕМОСТЬ ПРЕВЫШЕ ВСЕГО */
  
  /* Основные цвета с контрастом WCAG AA+ */
  --primary-orange: #FF6B35;      /* Основной оранжевый */
  --primary-orange-dark: #E55529; /* Темнее для кнопок */
  --primary-orange-light: #FF8A5C; /* Светлее для акцентов */
  
  --secondary-blue: #1E40AF;      /* Темно-синий для текста */
  --secondary-blue-light: #3B82F6; /* Светлее для ссылок */
  --secondary-blue-pale: #EFF6FF;   /* Фон для блоков */
  
  /* Нейтральная палитра для читаемости */
  --text-primary: #111827;        /* Основной текст - очень темный */
  --text-secondary: #374151;      /* Вторичный текст */
  --text-muted: #6B7280;         /* Приглушенный текст */
  --text-light: #9CA3AF;         /* Светлый текст */
  
  /* Фоны */
  --bg-primary: #FFFFFF;          /* Белый фон */
  --bg-secondary: #F9FAFB;        /* Светло-серый фон */
  --bg-accent: #FFF7ED;          /* Очень светлый оранжевый */
  --bg-blue-light: #EFF6FF;      /* Очень светлый синий */
  
  /* Границы */
  --border-light: #E5E7EB;        /* Светлые границы */
  --border-medium: #D1D5DB;       /* Средние границы */
  --border-dark: #9CA3AF;         /* Темные границы */
  
  /* Семантические цвета */
  --success: #059669;             /* Зеленый успех */
  --success-bg: #ECFDF5;          /* Фон успеха */
  --warning: #D97706;             /* Оранжевый предупреждение */
  --warning-bg: #FFFBEB;          /* Фон предупреждения */
  --error: #DC2626;               /* Красный ошибка */
  --error-bg: #FEF2F2;            /* Фон ошибки */
  --info: #2563EB;                /* Синий информация */
  --info-bg: #EFF6FF;             /* Фон информации */
}

/* СБРОС И БАЗОВЫЕ СТИЛИ */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;

/* УЛУЧШЕННАЯ СИСТЕМА ПОИСКА */

/* Поисковое модальное окно */
.search-modal-backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

/* Автокомплит предложения */
.suggestion-item {
  transition: background-color 0.15s ease;
  position: relative;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: var(--bg-secondary);
}

.suggestion-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--primary-orange);
}

/* Подсветка соответствий в поиске */
mark {
  background-color: #FEF3C7;
  color: var(--text-primary);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 500;
}

/* Инликаторы релевантности */
.relevance-score {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.relevance-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.relevance-indicator.high {
  background-color: var(--success);
}

.relevance-indicator.medium {
  background-color: var(--warning);
}

.relevance-indicator.low {
  background-color: var(--text-light);
}

/* Улучшенные результаты поиска */
.search-result-card {
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
}

.search-result-card:hover {
  border-color: var(--primary-orange);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
  transform: translateY(-2px);
}

/* Поисковая строка в каталоге */
.catalog-search-container {
  position: relative;
}

.catalog-search-input {
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.catalog-search-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Популярные запросы */
.popular-search-tag {
  transition: all 0.15s ease;
  cursor: pointer;
}

.popular-search-tag:hover {
  background-color: var(--bg-accent);
  color: var(--primary-orange);
  transform: translateY(-1px);
}

/* Анимации для поиска */
@keyframes search-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.search-loading {
  animation: search-pulse 1.5s ease-in-out infinite;
}

/* Быстрые результаты в модальном окне */
.quick-results-container {
  max-height: 400px;
  overflow-y: auto;
}

.quick-results-container::-webkit-scrollbar {
  width: 6px;
}

.quick-results-container::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.quick-results-container::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

.quick-results-container::-webkit-scrollbar-thumb:hover {
  background: var(--border-dark);
}

/* Стили категорий в поиске */
.search-category-tag {
  display: inline-block;
  background: var(--bg-blue-light);
  color: var(--secondary-blue);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

/* Улучшенные уведомления для поиска */
.search-notification {
  border-left: 4px solid var(--primary-orange);
  background: var(--bg-accent);
  color: var(--text-primary);
}

/* УЛУЧШЕННАЯ КОРЗИНА И CHECKOUT */

/* Модальное окно корзины */
.cart-modal {
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.4);
}

/* Элементы корзины */
.cart-item {
  transition: all 0.2s ease;
  padding: 1rem;
  border-radius: 8px;
}

.cart-item:hover {
  background-color: var(--bg-secondary);
}

/* Кнопки количества в корзине */
.cart-quantity-btn {
  transition: all 0.15s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.cart-quantity-btn:hover {
  background-color: var(--border-medium);
  transform: scale(1.1);
}

/* Индикатор бесплатной доставки */
.free-shipping-indicator {
  background: linear-gradient(135deg, var(--success-bg) 0%, var(--bg-accent) 100%);
  border: 1px solid var(--success);
  color: var(--success);
}

.shipping-progress {
  background: linear-gradient(135deg, var(--warning-bg) 0%, var(--bg-accent) 100%);
  border: 1px solid var(--warning);
  color: var(--warning);
}

/* Checkout страница */
.checkout-empty-state {
  background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
}

/* Форма checkout */
.checkout-form {
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.checkout-form:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Сводка заказа */
.order-summary {
  position: sticky;
  top: 2rem;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Элементы заказа в checkout */
.order-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.15s ease;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item:hover {
  background-color: var(--bg-secondary);
}

/* Кнопка оформления заказа */
.checkout-submit-btn {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.checkout-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-orange-dark) 0%, var(--primary-orange) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.checkout-submit-btn:active {
  transform: translateY(0);
}

.checkout-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Загрузочная анимация */
.checkout-loading {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Валидация форм в checkout */
.form-field-error {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.form-field-success {
  border-color: var(--success);
  background-color: var(--success-bg);
}

.form-error-message {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}

.form-error-message::before {
  content: '⚠️';
  margin-right: 0.5rem;
}

/* Уведомления для checkout */
.checkout-notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  max-width: 400px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .search-modal-container {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .catalog-search-input {
    font-size: 1rem;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
  }
  
  .suggestion-item {
    padding: 1rem;
  }
  
  .quick-results-container {
    max-height: 300px;
  }
  
  /* Мобильная корзина */
  .cart-item {
    padding: 0.75rem;
  }
  
  .cart-quantity-btn {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  /* Мобильный checkout */
  .checkout-empty-state {
    padding: 2rem 1rem;
  }
  
  .order-summary {
    position: static;
    margin-top: 2rem;
  }
  
  .checkout-notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
}

/* ТИПОГРАФИЯ - ВЫСОКАЯ ЧИТАЕМОСТЬ */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }     /* 36px */
h2 { font-size: 1.875rem; }    /* 30px */
h3 { font-size: 1.5rem; }      /* 24px */
h4 { font-size: 1.25rem; }     /* 20px */
h5 { font-size: 1.125rem; }    /* 18px */
h6 { font-size: 1rem; }        /* 16px */

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* ССЫЛКИ */
a {
  color: var(--secondary-blue-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-blue);
  text-decoration: underline;
}

/* КНОПКИ - ВЫСОКИЙ КОНТРАСТ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 44px; /* Удобство касания */
}

.btn-primary {
  background-color: var(--primary-orange);
  color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--primary-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px 0 rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-blue);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-blue);
  opacity: 0.9;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.btn-outline:hover {
  background-color: var(--primary-orange);
  color: white;
}

.btn-white {
  background-color: white;
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.btn-white:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-dark);
}

/* КАРТОЧКИ */
.card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ФОРМЫ - ВЫСОКАЯ ЧИТАЕМОСТЬ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 0.5rem;
  background-color: white;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input:invalid {
  border-color: var(--error);
}

.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* НАВИГАЦИЯ */
.navbar {
  background-color: white;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-orange);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary-orange);
  font-weight: 600;
}

/* ФУТЕР - ИСПРАВЛЕННЫЙ */
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer p, .footer a {
  color: #D1D5DB;
  font-size: 0.875rem;
}

.footer a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #9CA3AF;
}

/* ТОВАРЫ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-secondary);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.product-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

/* АЛЕРТЫ И УВЕДОМЛЕНИЯ */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: var(--success-bg);
  color: var(--success);
  border-color: var(--success);
}

.alert-error {
  background-color: var(--error-bg);
  color: var(--error);
  border-color: var(--error);
}

.alert-warning {
  background-color: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning);
}

.alert-info {
  background-color: var(--info-bg);
  color: var(--info);
  border-color: var(--info);
}

/* УТИЛИТЫ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

/* РЕСПОНСИВНОСТЬ */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    padding: 1rem;
  }
}

/* КНОПКА ВОЗВРАТА НАВЕРХ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(100px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-orange-dark);
  transform: translateY(-2px);
}

/* ========================================
   FOTOHYPE КЛАССЫ - СОВМЕСТИМОСТЬ
======================================== */

/* Основные утилиты */
.bg-light { background-color: var(--bg-secondary); }
.text-primary { color: var(--text-primary); }
.fotohype-text-center { text-align: center; }
.fotohype-text-muted { color: var(--text-muted); }

/* Контейнеры */
.fotohype-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Сетка */
.fotohype-grid { display: grid; gap: 2rem; }
.fotohype-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.fotohype-grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.fotohype-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Заголовки */
.fotohype-heading-1 { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.fotohype-heading-2 { font-size: 2rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.fotohype-heading-3 { font-size: 1.75rem; font-weight: 600; color: var(--text-primary); }
.fotohype-heading-4 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); }
.fotohype-heading-5 { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); }

/* Текст */
.fotohype-text-xl { font-size: 1.25rem; color: var(--text-secondary); }
.fotohype-text-lg { font-size: 1.125rem; color: var(--text-secondary); }
.fotohype-text-body { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }
.fotohype-text-3xl { font-size: 1.875rem; }

/* Хедер */
.fotohype-header {
  background-color: white;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.fotohype-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-orange);
  text-decoration: none;
}

.fotohype-nav {
  display: flex;
  gap: 2rem;
}

.fotohype-nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fotohype-nav-link:hover,
.fotohype-nav-link.nav-link-active {
  color: var(--primary-orange);
  text-decoration: none;
}

/* Кнопки */
.fotohype-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.fotohype-btn-primary {
  background-color: var(--primary-orange);
  color: white;
}

.fotohype-btn-primary:hover {
  background-color: var(--primary-orange-dark);
  text-decoration: none;
  color: white;
}

.fotohype-btn-secondary {
  background-color: var(--secondary-blue);
  color: white;
}

.fotohype-btn-secondary:hover {
  background-color: var(--secondary-blue);
  opacity: 0.9;
  text-decoration: none;
  color: white;
}

.fotohype-btn-outline {
  background-color: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.fotohype-btn-outline:hover {
  background-color: var(--primary-orange);
  color: white;
  text-decoration: none;
}

.fotohype-btn-outline-light {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.fotohype-btn-outline-light:hover {
  background-color: white;
  color: var(--text-primary);
  text-decoration: none;
}

/* Иконки и кнопки */
.fotohype-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.fotohype-icon-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-orange);
}

.fotohype-cart-btn {
  position: relative;
}

.fotohype-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-orange);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Секции */
.fotohype-section {
  padding: 4rem 0;
}

.fotohype-section-alt {
  background-color: var(--bg-secondary);
}

.fotohype-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.fotohype-section-footer {
  margin-top: 3rem;
}

/* Герой */
.fotohype-hero {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.fotohype-hero-title {
  color: white;
  margin-bottom: 1rem;
}

.fotohype-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.fotohype-hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Карточки */
.fotohype-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.fotohype-card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fotohype-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Иконки */
.fotohype-icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.fotohype-icon-primary {
  background-color: var(--bg-accent);
  color: var(--primary-orange);
}

.fotohype-icon-secondary {
  background-color: var(--bg-blue-light);
  color: var(--secondary-blue);
}

.fotohype-icon-photo {
  background-color: var(--success-bg);
  color: var(--success);
}

/* Товары */
.fotohype-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Футер */
.fotohype-footer {
  background-color: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.fotohype-footer h4,
.fotohype-footer h5 {
  color: white;
  margin-bottom: 1rem;
}

.fotohype-footer p,
.fotohype-footer a {
  color: #D1D5DB;
  font-size: 0.875rem;
}

.fotohype-footer a:hover {
  color: white;
  text-decoration: none;
}

.fotohype-footer-links {
  color: #D1D5DB;
}

.fotohype-footer-links a {
  color: #D1D5DB;
  transition: color 0.2s ease;
}

.fotohype-footer-links a:hover {
  color: white;
  text-decoration: none;
}

.fotohype-footer-social {
  display: flex;
  gap: 1rem;
}

.fotohype-footer-social a {
  color: #9CA3AF;
  transition: color 0.2s ease;
}

.fotohype-footer-social a:hover {
  color: white;
}

.fotohype-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fotohype-footer-list li {
  margin-bottom: 0.5rem;
}

.fotohype-footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #9CA3AF;
}

/* Мобильное меню */
.fotohype-mobile-menu-btn {
  display: none;
}

.fotohype-mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .fotohype-nav {
    display: none;
  }
  
  .fotohype-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
  }
  
  .fotohype-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .fotohype-mobile-menu-content {
    padding: 1rem;
  }
  
  .fotohype-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
  }
  
  .fotohype-mobile-nav-link:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-orange);
    text-decoration: none;
  }
  
  .fotohype-hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .fotohype-grid-3,
  .fotohype-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Дополнительные утилиты для новых страниц */
.text-primary-orange { color: var(--primary-orange); }
.border-primary-orange { border-color: var(--primary-orange); }
.bg-bg-accent { background-color: var(--bg-accent); }
.bg-bg-secondary { background-color: var(--bg-secondary); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

/* Списки */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* Отступы для списков */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
/* PRODUCT PAGE STYLES */

/* Breadcrumb navigation */
.fotohype-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.fotohype-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.fotohype-breadcrumb a:hover {
  color: var(--primary-orange);
}

.fotohype-breadcrumb i {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Template selection */
.template-option {
  position: relative;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.template-option:hover {
  border-color: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.template-option.selected,
.template-option.border-primary-orange {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

/* File upload area */
.fotohype-file-upload-area {
  border: 2px dashed var(--border-medium);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

.fotohype-file-upload-area:hover {
  border-color: var(--primary-orange);
  background: var(--bg-accent);
}

.fotohype-file-upload-area.dragover {
  border-color: var(--primary-orange);
  background: var(--bg-accent);
  transform: scale(1.02);
}

/* Custom form elements */
.fotohype-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--bg-primary);
}

.fotohype-input:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.fotohype-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--bg-primary);
}

.fotohype-textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.fotohype-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

/* Modal styles */
.fotohype-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.fotohype-modal.hidden {
  display: none;
}

.fotohype-modal-content {
  background: var(--bg-primary);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.fotohype-modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.fotohype-modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
}

.fotohype-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.fotohype-modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.fotohype-modal-body {
  padding: 0 1.5rem;
}

.fotohype-modal-footer {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  margin-top: 1.5rem;
}

/* Notifications */
.fotohype-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-primary);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--primary-orange);
  padding: 1rem;
  max-width: 400px;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.fotohype-notification.show {
  transform: translateX(0);
}

.fotohype-notification-success {
  border-left-color: var(--success);
}

.fotohype-notification-error {
  border-left-color: var(--error);
}

.fotohype-notification-info {
  border-left-color: var(--info);
}

.fotohype-notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fotohype-notification-content i {
  font-size: 1.25rem;
}

.fotohype-notification-success i {
  color: var(--success);
}

.fotohype-notification-error i {
  color: var(--error);
}

.fotohype-notification-info i {
  color: var(--info);
}

/* Product image styles */
.product-image-container {
  position: relative;
  overflow: hidden;
}

.product-image-container img {
  transition: transform 0.3s ease;
}

.product-image-container:hover img {
  transform: scale(1.05);
}

/* Badge styles for product page */
.fotohype-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--primary-orange);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Quantity controls */
.fotohype-btn-outline {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fotohype-btn-outline:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  background: var(--bg-accent);
}

/* Body lock for modals */
body.modal-open {
  overflow: hidden;
}

/* Responsive adjustments for product page */
@media (max-width: 768px) {
  .fotohype-modal-content {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }
  
  .fotohype-modal-header,
  .fotohype-modal-body,
  .fotohype-modal-footer {
    padding: 1rem;
  }
  
  .fotohype-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .template-option {
    margin-bottom: 0.5rem;
  }
}

/* DROPDOWN NAVIGATION MENU */
.fotohype-nav-dropdown {
  position: relative;
  display: inline-block;
}

.fotohype-nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.fotohype-nav-dropdown-btn:hover {
  color: var(--primary-orange);
}

.fotohype-nav-dropdown-icon {
  transition: transform 0.2s;
  font-size: 0.75rem;
}

.fotohype-nav-dropdown.active .fotohype-nav-dropdown-icon {
  transform: rotate(180deg);
}

.fotohype-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  max-height: 600px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  animation: dropdownFadeIn 0.2s ease;
}

.fotohype-nav-dropdown.active .fotohype-nav-dropdown-menu {
  display: block;
}

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

.fotohype-nav-dropdown-section {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.fotohype-nav-dropdown-section:last-child {
  border-bottom: none;
}

.fotohype-nav-dropdown-title {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.fotohype-nav-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
  gap: 0.75rem;
}

.fotohype-nav-dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--primary-orange);
  padding-left: 1.25rem;
}

.fotohype-nav-dropdown-item-icon {
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
}

.fotohype-nav-dropdown-item-content {
  flex: 1;
}

.fotohype-nav-dropdown-item-name {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.fotohype-nav-dropdown-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.fotohype-nav-dropdown-item-badge {
  padding: 0.125rem 0.5rem;
  background: var(--bg-accent);
  color: var(--primary-orange);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Mobile dropdown */
@media (max-width: 768px) {
  .fotohype-nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin-top: 0;
    max-height: none;
  }
}
