/* ===== Базовая кнопка 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.8rem 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 {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1rem;
  transition: transform var(--transition);
}
.product-card:hover img {
  transform: scale(1.05);
}
.product-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.product-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.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-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.3rem;
}

.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;
  }
}