:root {
  /* Основные цвета */
  --pure-white: #FFFFFF;
  --light-bg: #F8F9FA;
  --text-dark: #1A1A1A;
  --text-gray: #6C757D;

  /* Акцентный оранжевый (цвет выгоды) */
  --accent-orange: #FF6B35;
  --accent-orange-light: #FF8C5A;
  --accent-orange-dark: #E54B1A;

  /* Цвета статусов */
  --success-green: #28A745;
  --warning-yellow: #FFC107;
  --danger-red: #DC3545;

  /* Тени и эффекты */
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --button-shadow: 0 4px 14px 0 rgba(255, 107, 53, 0.3);

  /* Скругления */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;

  /* Шрифты */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-orange);
  color: white;
  box-shadow: var(--button-shadow);
}

.btn-primary:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--accent-orange);
  border: 2px solid var(--accent-orange);
}

.btn-secondary:hover {
  background: var(--accent-orange);
  color: white;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* Карточки */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

/* Цены */
.price-old {
  color: var(--text-gray);
  text-decoration: line-through;
  font-size: 14px;
  margin-right: 8px;
}

.price-current {
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 24px;
}

.discount-badge {
  background: var(--accent-orange);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  display: inline-block;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}
.old-price {
  color: var(--text-gray) !important;
  text-decoration: line-through !important;
  font-size: 14px;
  font-weight: 500;
}
.current-price {
  color: var(--accent-orange) !important;
  font-weight: 700 !important;
  font-size: 20px;
}

/* ========== Единая шапка (все страницы) ========== */
.site-header {
  background: var(--pure-white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo span {
  color: var(--accent-orange);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--border-radius-sm);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--accent-orange);
  background: rgba(255, 107, 53, 0.06);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.header-actions .btn,
.header-actions .cart-link {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-body);
  transition: all 0.2s;
  white-space: nowrap;
}

.header-actions .btn {
  border: 1.5px solid transparent;
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

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

.header-actions .btn-primary {
  padding: 8px 16px;
  background: var(--accent-orange);
  color: white;
}

.header-actions .btn-primary:hover {
  background: var(--accent-orange-dark);
  color: white;
}

.cart-link {
  position: relative;
  color: var(--text-dark);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-link:hover {
  color: var(--accent-orange);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--accent-orange);
  color: white;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1100px) {
  .site-nav { gap: 6px 14px; }
  .site-nav a { font-size: 13px; padding: 6px 8px; }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .header-content {
    gap: 12px;
  }
}

/* ========== Единый подвал (все страницы) ========== */
.site-footer {
  background: var(--pure-white);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-gray);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-orange);
}

.footer-ticker,
.footer-ticker.top-ticker {
  background: #8b3012 !important;
  color: #fff !important;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 20px;
  border-radius: var(--border-radius-sm);
}
/* Верхняя строка — поверх оверлея body.page-home::before */
.footer-ticker.top-ticker {
  position: relative;
  z-index: 10;
}
.footer-ticker .ticker-inner {
  display: inline-block;
  padding-left: 100%;
  animation: footer-ticker 40s linear infinite;
}
.footer-ticker span { margin-right: 2em; font-size: 13px; color: #fff; font-weight: 500; }
/* Начало текста по центру строки: сдвиг на -25% (контент в 2 копии), затем бежит до -75% */
@keyframes footer-ticker {
  0% { transform: translateX(-25%); }
  100% { transform: translateX(-75%); }
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-gray);
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Карточка товара (каталог, главная) ========== */
.product-card {
  background: var(--pure-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Выделенная карточка (VIP) */
.product-card.card-highlighted {
  background: linear-gradient(135deg, #fffef5 0%, #fff9e6 100%);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.product-card.card-highlighted:hover {
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.3);
}

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

.product-card .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 16px;
}

.product-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.add-to-cart {
  width: 100%;
  padding: 10px;
  background: var(--light-bg);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-family: var(--font-body);
}

.add-to-cart:hover {
  background: var(--accent-orange);
  color: white;
  transform: translateY(-1px);
}

/* Живые элементы на карточках */
.live-badge {
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.live-badge span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-green);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Цветовая индикация скидок: 0–20 зелёный, 21–50 оранжевый, 51+ красный */
.discount-badge.discount-green { background: var(--success-green); color: #fff; }
.discount-badge.discount-orange { background: var(--accent-orange); color: #fff; }
.discount-badge.discount-red { background: var(--danger-red); color: #fff; }
.discount-pill.discount-green { color: var(--success-green); font-weight: 600; }
.discount-pill.discount-orange { color: var(--accent-orange); font-weight: 600; }
.discount-pill.discount-red { color: var(--danger-red); font-weight: 600; }

/* Бейджи продвижения на карточке */
.badge-promoted, .badge-vip {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 2;
}
.badge-promoted { background: #1a73e8; color: #fff; }
.badge-vip { background: linear-gradient(135deg, #d4af37, #b8860b); color: #fff; left: auto; right: 10px; top: 10px; }
.product-card .badge-vip { right: 10px; }
.product-card .badge-promoted { right: 10px; }
.product-card .badge-vip + .badge-promoted { right: 10px; top: 36px; }

.hot-offer-badge {
  font-size: 12px;
  color: var(--danger-red);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ========== Формы ========== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-gray);
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-md);
  font-size: 16px;
  font-family: var(--font-body);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-orange);
}

/* ========== Пагинация ========== */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0;
}

.page-link {
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-dark);
  text-decoration: none;
}

.page-link:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.page-link.active {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
}

/* ========== Секции ========== */
.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin: 60px 0 30px;
}
