/* ===== Базовая кнопка CTA ===== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 87, 34, 0.45);
}
/* ===== Hero со слайдером (полный экран) ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  transform: scale(1.05);
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 2rem;
}

.hero-text.glass {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 4rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.hero-text h1 span {
  color: #ff8a5c;
  position: relative;
  display: inline-block;
}
.hero-text h1 span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 6px;
  background: var(--accent);
  opacity: 0.6;
  border-radius: 4px;
}

.hero-text p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.hero .cta {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: none;
}
.hero .cta:hover {
  background: #f5f5f5;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

/* Индикаторы (точки) */
.slider-indicators {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.8rem;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.4s ease;
}
.dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.4);
}
.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
/* ===== Продукты ===== */
.products {
  padding: 3rem 0;
}
.products h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}
.products h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.4), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius);
  pointer-events: none;   /* ← ГЛАВНОЕ: клики проходят сквозь */
}
.product-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  border-radius: var(--radius);
}
.product-card:hover::after {
  opacity: 1;
}
.product-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-light);
}
.product-card:hover::before {
  opacity: 1;
}
.product-card img,
.product-card .no-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin: 0 0 1.2rem;
  padding: 12px;
  background: linear-gradient(145deg, #fafafa, #f0f0f0);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.product-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.08);
}
.product-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.product-card .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.3rem;
}
.product-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  opacity: 0.8;
}

/* ===== Фильтры ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 2rem 0 2.5rem;
}
.category-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  background: #fff;
  color: var(--text);
  border: 1.5px solid #e0e0e0;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.category-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff5f0;
}
.category-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

/* ===== Поиск ===== */
.search-box {
  max-width: 550px;
  margin: 0 auto 2.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  background: #fff;
  transition: border-color var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
}
.search-button {
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.search-button:hover {
  background: var(--accent-dark);
  transform: scale(1.02);
}

/* ===== Пагинация ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.pagination a {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.pagination a:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.2);
}
.pagination span {
  background: #f0f0f0;
  color: var(--text-muted);
  border: 2px solid #e0e0e0;
}
.pagination-info {
  background: rgba(255, 87, 34, 0.08);
  color: var(--accent);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
}

/* ===== Виджеты отзывов и карты ===== */
.reviews-widget,
.map-widget {
  max-width: 700px;
  margin: 2rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  background: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.reviews-widget iframe {
  width: 100%;
  height: 700px;
  border: none;
}
.map-widget iframe {
  width: 100%;
  height: 400px;
  border: none;
}
.reviews-link {
  display: block;
  padding: 0.8rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: #fafafa;
  transition: color var(--transition);
}
.reviews-link:hover {
  color: var(--accent);
}
/* ===== Кнопка "Наверх" ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255, 87, 34, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 32px rgba(255, 87, 34, 0.5);
}

.scroll-top:active {
  transform: scale(0.95);
}
/* ===== Мобильное меню (аккуратное) ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Десктоп */
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.header.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}
.header.scrolled .nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ===== Мобильная версия (до 768px) ===== */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.04);
    z-index: 999;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    width: 100%;
    text-align: center;
    border-radius: 12px;
    transition: all 0.25s ease;
    border: none;
  }

  .nav-links a:hover {
    background: rgba(255, 87, 34, 0.06);
    color: var(--accent);
    transform: scale(1.02);
  }

  .nav-links a::after {
    display: none; /* убираем подчёркивание на мобилке */
  }
}
.stock-status {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
}
.stock-status.in-stock {
    color: #4CAF50;
}
.stock-status.out-of-stock {
    color: #f44336;
}
/* ===== Отзывы (Reviews) ===== */
.reviews {
  padding: 3rem 0;
  position: relative;
}

.reviews::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.reviews .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.reviews .section-title span {
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
}

.reviews-widget {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reviews-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.reviews-widget iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

.reviews-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  background: #fafafa;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-top: 1px solid #eee;
}

.reviews-link:hover {
  background: var(--accent);
  color: #fff;
}

.reviews-link .link-icon {
  font-size: 1.2rem;
}

/* ===== Карта (Location) ===== */
.location {
  padding: 3rem 0;
  position: relative;
}

.location .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.location .section-title span {
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
}

.map-widget {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.map-widget iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

.map-widget .map-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  background: #fafafa;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid #eee;
}

.map-widget .map-label .label-icon {
  font-size: 1.2rem;
}
/* ===== Преимущества ===== */
.features {
  padding: 4rem 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-light);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Адаптив для преимуществ ===== */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    padding: 1.5rem 1rem;
  }
}
/* ===== Бренд-плашка со счётчиками (стильная) ===== */
.brand-stats {
  padding: 4rem 0;
  margin: 3rem 0;
  position: relative;
  background: radial-gradient(ellipse at 20% 30%, rgba(255, 87, 34, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(255, 122, 69, 0.04) 0%, transparent 50%);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.brand-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,87,34,0.15), transparent 50%, rgba(255,87,34,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.brand-stats::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.15;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,87,34,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 87, 34, 0.12);
  border-color: rgba(255, 87, 34, 0.3);
  background: rgba(255, 255, 255, 0.6);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  font-family: 'Inter', sans-serif;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.stat-number-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
}

.stat-percent {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-left: 0.05em;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.3rem;
  white-space: nowrap;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  opacity: 0.7;
}

.stat-stars {
  font-size: 1.3rem;
  letter-spacing: 4px;
  margin: 0.2rem 0;
  color: #f5a623;
}

/* ===== Адаптив ===== */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-number {
    font-size: 3.2rem;
  }
}

@media (max-width: 576px) {
  .brand-stats {
    padding: 2rem 0;
    margin: 1.5rem 0;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .stat-item {
    padding: 1.2rem 0.8rem;
  }
  .stat-number {
    font-size: 2.4rem;
  }
  .stat-icon {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.9rem;
  }
  .stat-desc {
    font-size: 0.7rem;
  }
  .stat-stars {
    font-size: 1rem;
    letter-spacing: 2px;
  }
}
/* Единица измерения в цене */
.product-card .price .unit {
  font-size: 0.75em;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 2px;
}
/* ===== Иконка корзины в хедере ===== */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.header.scrolled .cart-link {
    color: var(--text);
}
.cart-link:hover {
    color: var(--accent);
}
.cart-icon {
    width: 22px;
    height: 22px;
}
.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s ease;
}
.cart-badge.hidden {
    display: none;
}
.cart-badge.pulse {
    animation: cartPulse 0.4s ease;
}
@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.35); }
}

/* ===== Кнопка "В корзину" на карточке ===== */
.add-to-cart-btn {
    position: relative;      /* ← чтобы работал z-index */
    z-index: 2;              /* ← выше псевдоэлементов карточки */
    margin-top: 12px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.25);
    font-family: inherit;
}
.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 87, 34, 0.4);
}
.add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
}
.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}
.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}
/* ===== Страница корзины ===== */
.cart-page {
  padding: 3rem 0;
}

.cart-page h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}
.cart-page h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}

/* Пустая корзина */
.cart-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow);
}
.cart-empty-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}
.cart-empty h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Макет: товары + итог */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

/* Карточка товара */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}
.cart-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.cart-item-image {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.cart-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cart-item-image .no-image {
  color: #999;
  font-size: 0.8rem;
  text-align: center;
}

.cart-item-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.cart-item-price {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cart-item-warning {
  margin-top: 0.4rem;
  color: #f44336;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Количество */
.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 30px;
  padding: 4px;
  border: 1px solid #eee;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}
.qty-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}
.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.qty-value {
  min-width: 60px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-total {
  text-align: right;
  min-width: 100px;
}
.item-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.cart-item-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(244, 67, 54, 0.08);
  color: #f44336;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.cart-item-remove:hover {
  background: #f44336;
  color: #fff;
  transform: scale(1.08);
}

/* Действия под списком */
.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.cart-continue {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.cart-continue:hover {
  transform: translateX(-3px);
}
.cart-clear {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1.5px solid #e0e0e0;
  color: var(--text-muted);
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.cart-clear:hover {
  border-color: #f44336;
  color: #f44336;
}

/* Блок итогов */
.cart-summary {
  position: sticky;
  top: 100px;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow);
}
.cart-summary h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.summary-total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  padding-top: 1rem;
  border-top: 2px solid #eee;
  margin-top: 1rem;
}
.summary-total span:last-child {
  color: var(--accent);
}

.summary-min-warning {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #856404;
  line-height: 1.4;
}

.cart-checkout-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.35);
  transition: all 0.25s ease;
  font-family: inherit;
}
.cart-checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 87, 34, 0.45);
}
.cart-checkout-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

/* Адаптив */
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .cart-page h1 {
    font-size: 2rem;
  }
  .cart-item {
    grid-template-columns: 70px 1fr auto;
    grid-template-areas:
      "img info remove"
      "img qty total";
    row-gap: 0.6rem;
    padding: 0.8rem;
  }
  .cart-item-image { grid-area: img; width: 70px; height: 70px; }
  .cart-item-info  { grid-area: info; }
  .cart-item-quantity { grid-area: qty; justify-self: start; }
  .cart-item-total { grid-area: total; min-width: auto; }
  .cart-item-remove { grid-area: remove; justify-self: end; }
  .cart-item-info h3 { font-size: 0.95rem; }
  .qty-value { min-width: 50px; font-size: 0.85rem; }
  .qty-btn { width: 28px; height: 28px; font-size: 1rem; }
  .item-total { font-size: 1rem; }
}
/* ===== Оформление заказа ===== */
.checkout-page {
  padding: 3rem 0;
}
.checkout-page h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}
.checkout-page h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}

.checkout-error {
  padding: 1rem 1.5rem;
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #f44336;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.checkout-form {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.checkout-form h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
}

.checkout-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.35);
  transition: all 0.25s ease;
  font-family: inherit;
}
.checkout-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 87, 34, 0.45);
}

.checkout-back {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.checkout-back:hover {
  color: var(--accent);
}

/* Список товаров справа */
.checkout-items {
  position: sticky;
  top: 100px;
  padding: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow);
}
.checkout-items h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.checkout-item-name {
  flex: 1;
}
.checkout-item-qty {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 4px;
}
.checkout-item-total {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
  font-size: 1.3rem;
  font-weight: 800;
}
.checkout-total-row span:last-child {
  color: var(--accent);
}

/* Адаптив */
@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-items {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .checkout-page h1 { font-size: 2rem; }
  .checkout-form { padding: 1.2rem; }
}
/* ===== Страница "Спасибо за заказ" ===== */
.thankyou-page {
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-card {
  max-width: 620px;
  width: 100%;
  padding: 3rem 2.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow);
  text-align: center;
}

.thankyou-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: bounceIcon 1.5s ease-in-out infinite;
}

@keyframes bounceIcon {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.05); }
}

.thankyou-card h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.thankyou-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.thankyou-order-info {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.8rem;
  background: rgba(255, 87, 34, 0.08);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.thankyou-order-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.thankyou-order-row span {
  color: var(--text-muted);
}
.thankyou-order-row strong {
  color: var(--accent);
  font-weight: 700;
}

.thankyou-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
  text-align: left;
}

.thankyou-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255,255,255,0.5);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.3);
}

.detail-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.thankyou-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.thankyou-home {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}
.thankyou-home:hover {
  color: var(--accent);
}

/* Адаптив */
@media (max-width: 640px) {
  .thankyou-card {
    padding: 2rem 1.5rem;
  }
  .thankyou-card h1 {
    font-size: 1.8rem;
  }
  .thankyou-icon {
    font-size: 4rem;
  }
  .thankyou-subtitle {
    font-size: 1rem;
  }
  .thankyou-details {
    grid-template-columns: 1fr;
  }
}
/* ===== Поле ввода количества ===== */
.qty-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.qty-input {
  width: 62px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  -moz-appearance: textfield;
}
/* Убираем стрелки браузера */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input:focus {
  background: rgba(255, 87, 34, 0.06);
  border-radius: 8px;
}
.qty-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  padding-right: 4px;
}

/* На мобилке чуть уже */
@media (max-width: 640px) {
  .qty-input { width: 50px; font-size: 0.9rem; }
}
/* ===== Плавающая кнопка Telegram ===== */
.tg-float {
  position: fixed;
  right: 2rem;
  bottom: 5.75rem; /* над кнопкой "наверх" */
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(42, 171, 238, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: tgPulse 2.5s ease-in-out infinite;
}

.tg-float:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 32px rgba(42, 171, 238, 0.6);
  animation-play-state: paused;
}

.tg-float svg {
  width: 26px;
  height: 26px;
  display: block;
  margin-left: -2px; /* небольшой сдвиг, чтобы визуально центрировать самолётик */
}

/* Пульсация — привлекает внимание */
@keyframes tgPulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(42, 171, 238, 0.45), 0 0 0 0 rgba(42, 171, 238, 0.6);
  }
  50% {
    box-shadow: 0 6px 24px rgba(42, 171, 238, 0.45), 0 0 0 14px rgba(42, 171, 238, 0);
  }
}

/* Подсказка слева от кнопки */
.tg-tooltip {
  position: fixed;
  right: 5.5rem; /* отступ от правого края до кнопки + зазор */
  bottom: 6rem;
  z-index: 99;
  background: #fff;
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  max-width: 240px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.15);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tg-tooltip.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Стрелочка справа от тултипа */
.tg-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid rgba(42, 171, 238, 0.15);
  border-top: 1px solid rgba(42, 171, 238, 0.15);
}

.tg-tooltip strong {
  color: #229ED9;
  font-weight: 700;
}

/* Кнопка закрытия тултипа */
.tg-tooltip-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #999;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
  font-family: inherit;
}
.tg-tooltip-close:hover {
  background: #f5f5f5;
  color: #333;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .tg-float {
    right: 1.5rem;
    bottom: 4.75rem;
    width: 46px;
    height: 46px;
  }
  .tg-float svg {
    width: 22px;
    height: 22px;
  }
  .tg-tooltip {
    right: 4.7rem;
    bottom: 5rem;
    font-size: 0.8rem;
    max-width: 200px;
    padding: 0.6rem 0.85rem;
  }
}
/* ===== Юридические страницы ===== */
.legal-page {
  padding: 7rem 0 3rem;
  max-width: 800px;
}
.legal-page h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  color: var(--text);
}
.legal-page .legal-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text);
}
.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-page a {
  color: var(--accent);
  text-decoration: underline;
}
.legal-page strong {
  font-weight: 700;
}

@media (max-width: 640px) {
  .legal-page h1 { font-size: 1.8rem; }
  .legal-page h2 { font-size: 1.1rem; }
}
/* ===== Чекбокс согласия ===== */
.consent-group {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: rgba(255, 87, 34, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 87, 34, 0.1);
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-label a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== Секция Доставка ===== */
.delivery-section {
  padding: 4rem 0 3rem;
}

.delivery-section .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.delivery-section .section-title span {
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
}

/* ===== Сетка карточек ===== */
.delivery-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.delivery-card {
  position: relative;
  padding: 1.8rem 1.2rem 1.4rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.delivery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.delivery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(255, 87, 34, 0.15);
  border-color: rgba(255, 87, 34, 0.3);
}

.delivery-card:hover::before {
  transform: scaleX(1);
}

/* Номер района */
.delivery-number {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 87, 34, 0.08);
  line-height: 1;
  letter-spacing: -2px;
  pointer-events: none;
  transition: color 0.3s ease;
}
.delivery-card:hover .delivery-number {
  color: rgba(255, 87, 34, 0.18);
}

/* Иконка */
.delivery-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
  transition: transform 0.35s ease;
}
.delivery-card:hover .delivery-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* Название */
.delivery-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.25;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Время */
.delivery-time {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

/* Цена */
.delivery-price {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}
.price-free {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2e7d32;
}
.price-paid {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===== Инфо-плашка ===== */
.delivery-info {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.06), rgba(255, 122, 69, 0.03));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 87, 34, 0.12);
}

.delivery-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: left;
}
.delivery-info-item .info-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.delivery-info-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.delivery-info-item span:not(.info-icon) {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  .delivery-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .delivery-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .delivery-card {
    padding: 1.4rem 0.9rem 1.1rem;
  }
  .delivery-icon {
    font-size: 2rem;
  }
  .delivery-card h3 {
    font-size: 0.9rem;
    min-height: 2.2rem;
  }
  .delivery-number {
    font-size: 1.5rem;
    top: 8px;
    right: 10px;
  }
  .delivery-info {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .delivery-section .section-title {
    font-size: 1.6rem;
  }
  .delivery-section .section-title span {
    font-size: 1rem;
  }
  .delivery-cards {
    grid-template-columns: 1fr 1fr;
  }
  .delivery-card {
    padding: 1.2rem 0.7rem 1rem;
  }
  .delivery-icon {
    font-size: 1.8rem;
  }
  .delivery-card h3 {
    font-size: 0.85rem;
  }
  .delivery-time {
    font-size: 0.72rem;
  }
  .price-free {
    font-size: 0.7rem;
  }
  .price-paid {
    font-size: 0.66rem;
  }
}
/* ===== Выбор доставки в корзине ===== */
.delivery-selector {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.delivery-selector-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.delivery-option {
  display: block;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.delivery-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-option-body {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid #e8e0d8;
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
}
.delivery-option-body:hover {
  border-color: #ffcbb8;
  background: #fff9f5;
}
.delivery-option input:checked + .delivery-option-body {
  border-color: var(--accent);
  background: rgba(255, 87, 34, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.08);
}

.delivery-option-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}
.delivery-option-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.delivery-option-body span:not(.delivery-option-icon):not(.delivery-option-price) {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}
.delivery-option-price {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Селект районов */
/* ===== Блок выбора района (раскрывается под опцией) ===== */
.zone-select-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.3s ease, opacity 0.3s ease;
  margin: 0;
  opacity: 0;
}
.zone-select-wrap.visible {
  max-height: 220px;
  margin: 0.6rem 0 0.8rem;
  opacity: 1;
}

/* Внутренний контейнер — с отступом слева как "вложенный" */
.zone-select-inner {
  position: relative;
  margin-left: 2.2rem;
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.05), rgba(255, 122, 69, 0.02));
  border-radius: 14px;
  border: 1px solid rgba(255, 87, 34, 0.15);
}

/* Вертикальная линия-связка с опцией сверху */
.zone-select-inner::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: -0.6rem;
  bottom: 1rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent 90%);
  opacity: 0.4;
  border-radius: 2px;
}

/* Заголовок */
.zone-select-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: 0.2px;
}
.zone-select-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Селект */
.zone-select {
  width: 100%;
  padding: 0.75rem 2.4rem 0.75rem 1rem;
  border: 2px solid #e8e0d8;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff5722' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all 0.2s ease;
}
.zone-select:hover {
  border-color: #ffcbb8;
}
.zone-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

/* Подсказка */
.zone-select-hint {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: #2e7d32;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
/* ===== Страница оформления ===== */
.checkout-delivery-badge {
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 87, 34, 0.06);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
  line-height: 1.4;
}
.checkout-delivery-badge strong {
  color: var(--text);
  font-weight: 700;
}
.checkout-delivery-badge span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.checkout-totals {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
}
.checkout-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.checkout-total-line span:last-child {
  color: var(--text);
  font-weight: 600;
}
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
  font-size: 1.3rem;
  font-weight: 800;
}
.checkout-total-row span:last-child {
  color: var(--accent);
}
/* ===== Способ оплаты ===== */
.payment-selector {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.payment-selector-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.payment-option {
    cursor: pointer;
}
.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.payment-option-body {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 2px solid #e8e0d8;
    border-radius: 14px;
    transition: all 0.2s ease;
}
.payment-option-body:hover {
    border-color: #ffcbb8;
    background: #fff9f5;
}
.payment-option input:checked + .payment-option-body {
    border-color: var(--accent);
    background: rgba(255, 87, 34, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.payment-option-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}
.payment-option-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.payment-option-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Блок наличных */
.cash-block {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin 0.35s ease, opacity 0.3s ease;
    opacity: 0;
    margin: 0;
}
.cash-block.visible {
    max-height: 300px;
    opacity: 1;
    margin-top: 1.2rem;
}

.cash-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.cash-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.cash-input {
    width: 100%;
    padding: 0.8rem 2.2rem 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s ease;
}
.cash-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
}
.cash-currency {
    position: absolute;
    right: 14px;
    font-weight: 700;
    color: var(--accent);
    pointer-events: none;
}

.cash-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.cash-quick-btn {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
    font-family: inherit;
}
.cash-quick-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #fff5f0;
}
.cash-quick-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.cash-change {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 87, 34, 0.06);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
    animation: cashChangeFade 0.3s ease;
}
.cash-change.visible {
    display: block;
}
.cash-change.ok {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}
.cash-change.error {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}
.cash-change strong {
    color: inherit;
    font-size: 1.1rem;
}

@keyframes cashChangeFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
    .cash-quick-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.78rem;
    }
}
/* ===== Приём заказов закрыт ===== */
.order-closed-banner {
    max-width: 560px;
    margin: 2rem auto;
    padding: 3rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    text-align: center;
}
.order-closed-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounceIcon 2s ease-in-out infinite;
}
.order-closed-banner h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text);
}
.order-closed-banner p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.order-closed-banner strong {
    color: var(--accent);
    font-weight: 700;
}
.order-closed-hint {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Инфо в корзине, когда закрыто */
.cart-closed-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 193, 7, 0.06));
    border-left: 4px solid #FF9800;
    border-radius: 10px;
}
.cart-closed-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}
.cart-closed-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.15rem;
}
.cart-closed-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Задизейбленная кнопка "оформить" когда закрыто */
.cart-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}
/* Кликабельная карточка "Магазины в городе" */
.stat-item-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.stat-item-link:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 87, 34, 0.18);
  border-color: rgba(255, 87, 34, 0.5);
}
.stat-item-link:hover .stat-desc {
  color: var(--accent);
  opacity: 1;
}
.stat-item-link .stat-desc {
  transition: color 0.25s ease, opacity 0.25s ease;
}
/* ===== Toast-уведомления ===== */
.toast-container {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 90%;
  width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  border-left: 4px solid var(--accent);
}

.toast.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  flex-shrink: 0;
}

.toast-success {
  border-left-color: #4CAF50;
}
.toast-success .toast-icon {
  background: #4CAF50;
}

.toast-error {
  border-left-color: #f44336;
}
.toast-error .toast-icon {
  background: #f44336;
}

.toast-warning {
  border-left-color: #ff9800;
}
.toast-warning .toast-icon {
  background: #ff9800;
}

.toast-info {
  border-left-color: #2196F3;
}
.toast-info .toast-icon {
  background: #2196F3;
}

@media (max-width: 640px) {
  .toast-container {
    top: 5rem;
    width: calc(100% - 2rem);
  }
  .toast {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}
/* ===== Бонусы в checkout ===== */
.bonus-info {
  margin-top: 0.5rem;
}

.bonus-message {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  animation: bonusFade 0.3s ease;
}

@keyframes bonusFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bonus-message-welcome {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.04));
  border-left: 3px solid #4CAF50;
  color: #2e7d32;
}
.bonus-message-active {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 193, 7, 0.04));
  border-left: 3px solid #FFC107;
  color: #856404;
}
.bonus-message-info {
  background: rgba(33, 150, 243, 0.06);
  border-left: 3px solid #2196F3;
  color: #1565c0;
}

.bonus-balance-line {
  margin-bottom: 0.6rem;
}

.bonus-apply {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.bonus-apply input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4CAF50;
  flex-shrink: 0;
  cursor: pointer;
}
.bonus-apply strong {
  color: #2e7d32;
  font-weight: 700;
}
.cart-bonus-hint {
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.cart-bonus-hint-welcome {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.04));
  border-left: 3px solid #4CAF50;
  color: #2e7d32;
}
.cart-bonus-hint:not(.cart-bonus-hint-welcome) {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 193, 7, 0.04));
  border-left: 3px solid #FFC107;
  color: #856404;
}
.thankyou-bonus-hint {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
  border-left: 4px solid #FFC107;
  border-radius: 12px;
  color: #856404;
  font-size: 0.95rem;
  line-height: 1.4;
}
.thankyou-bonus-hint strong {
  color: #2e7d32;
  font-weight: 700;
}
/* ===== Сообщение после "Заказать снова" ===== */
.reorder-message {
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}
.reorder-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}
.reorder-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #FFC107;
}
.reorder-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}
/* ===== Подсказка про бесплатную доставку ===== */
.summary-hint {
    margin: 0.8rem 0 1rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.08), rgba(255, 122, 69, 0.03));
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text);
    transition: all 0.3s ease;
}
.summary-hint strong {
    color: var(--accent);
    font-weight: 700;
}
.summary-hint.hint-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.04));
    border-left-color: #4CAF50;
    color: #2e7d32;
}
.summary-hint.hint-success strong {
    color: #2e7d32;
}