/* == Общие сбросы и шрифты == */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(180deg, #f0f8ff 0%, #e0f0ff 100%);
  color: #333;
  overflow-x: hidden;
}

/* == Шапка и навигация == */
header {
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 0.75rem 0;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 16px;
  width: 100%;
}

.header__logo {
  flex-shrink: 0;
}

.header__center-block {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.header__logo img {
  height: 40px;
}

@media (max-width: 640px) {
  .header__logo img { height: 32px; }
}

.header__nav {
  display: flex;
  gap: 24px;
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  transition: transform .2s, opacity .2s;
}
.header__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header__user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link,
.header__nav a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

.header__nav a.active,
.nav-link.active {
  color: #007bff;
}




.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link--icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  font-size: 20px;
  color: #333;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  padding: 2px 6px;
}






.header__nav a:hover,
.header__nav a.active {
  color: #007bff;
}

.nav-link--icon {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link--icon i {
  font-size: 1.2em;
}

/* Иконки */
.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.icon-btn {
  position: relative;
  font-size: 1.25rem;
  color: #555;
  text-decoration: none;
  transition: color .2s;
}
.icon-btn:hover {
  color: #007bff;
}
/* бейдж количества товаров */
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #28a745;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 50%;
}




nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
nav a {
  color: #555;
  text-decoration: none;
  font-weight: 600;
}
nav a.active, nav a:hover {
  color: #007bff;
}

/* мобильное меню */
@media (max-width: 900px) {
  body.menu-open { overflow: hidden; }
  .header__inner { gap: 10px; flex-wrap: wrap; }
  .header__nav,
  .header__right {
    position: static;
    width: 100%;
    flex-direction: column;
    background: #fff;
    padding: 10px 0;
    gap: 10px;
    border-bottom: 1px solid #e5e5e5;
    display: none !important;
  }
  .header__nav.is-open,
  .header__right.is-open { display: flex !important; }
  .header__nav a { font-size: 0.95rem; padding: 6px 0; width: 100%; text-align: left; }
  .header__right {
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    align-items: flex-start;
  }
  .header__burger { display: inline-flex !important; }
  header { position: sticky; top: 0; }
  .header__logo img { height: 32px; }
  .header__nav { gap: 8px; }
}

/* == Контейнер основного контента == */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* == Заголовок каталога == */
.catalog-title {
  text-align: center;
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  color: #007bff;
  letter-spacing: 1px;
}

/* == Контролы списка == */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.catalog-info {
  font-size: 0.9rem;
  color: #555;
}
.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* == Сетка карточек == */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  height: 100%; /* обязательно */
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.product-link {
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f9f9f9;
}
.product-name {
  font-size: 1rem;
  font-weight: 500;
  margin: 0.75rem 1rem 0.5rem;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #28a745;
  margin: 0 1rem 1rem;
}

/* == Кнопка заказа == */
.order-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #28a745;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem;
  border: none;
  cursor: pointer;
  border-radius: 0 0 12px 12px;
  transition: background .2s;
}
.order-button i {
  font-size: 1rem;
}
.order-button:hover {
  background: #218838;
}

/* == Пагинация == */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.page-link, .current-page {
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  font-weight: 500;
}
.page-link {
  color: #007bff;
}
.page-link:hover {
  text-decoration: underline;
}
.current-page {
  background: #007bff;
  color: #fff;
  border-radius: 4px;
}

/* == Футер == */
footer {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #666;
}

/* == Адаптивность == */
@media (max-width: 768px) {
  .catalog-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .catalog-sort {
    width: 100%;
  }
  .sort-select {
    width: 100%;
  }
}

/* == New Grid & Hero & Product Detail Enhancements == */
/* контейнер и сетки */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; }
.grid--2cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid--3cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* Hero */
.product-hero { display: grid; align-items: start; } /* add display:grid */
.gallery__item { position: relative; overflow: hidden; border-radius: 12px; }
.gallery__zoom {
  position: absolute; top: 8px; left: 8px; font-size: 1.2rem; color: #fff;
}
/* Info */

  .product-info__title { 
    font-size: 2.25rem; 
    margin-bottom: .5em; 
    color: #1E7FFE;
    text-align: center;
  }

.product-info__attrs li { margin-bottom: .25em; }
/* Purchase */
.product-info__purchase {
  margin: 1.5em 0;
  display: flex; align-items: center; gap: 16px;
}
.price { 
  font-size: 1.2rem; 
  font-weight: 700;
  color: #28a745;

}
.quantity-selector { 
  display: inline-flex;
  align-items: center;
  border: 2px solid #4DB3FF;      /* цвет обводки «pill» */
  background-color: #E6F4FF;       /* лёгкий фон внутри */
  border-radius: 999px;            /* максимально скругливаем */
  padding: 0.25rem 0.75rem;        /* вертикальный/горизонтальный паддинг */
  gap: 0.5rem;                     /* расстояние между элементами */
}
.quantity-selector .qty-btn {
  all: unset;                      /* сбрасываем дефолтные стили кнопки */
  cursor: pointer;
  font-size: 1.25rem;              /* размер символов */
  color: #333;                     /* цвет «−» и «＋» */
}
.quantity-selector .qty-btn:hover {
  color: #4DB3FF;                  /* подсветка при наведении */
}
.quantity-selector .qty-input {
  width: 2rem;
  all: unset;                      /* сброс дефолтов (бордер, фон и т.д.) */
  text-align: center;
  font-size: 1rem;
  color: #333;
}

.quantity-selector .qty-input:focus {
  outline: none;
}

/* Скрываем стандартные спиннеры в Chrome, Safari, Edge */
.quantity-selector .qty-input::-webkit-outer-spin-button,
.quantity-selector .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn { padding: 8px; border: 1px solid #37712e; background: #fff; }
.qty-input { width: 48px; text-align: center; }
/* Buttons */
.btn { border: none; cursor: pointer; border-radius: 40px; }
.btn--primary { background: #37712e; color: #fff; padding: 14px 42px; }
.btn--mono { background: #000; color: #fff; padding: 24px 111px; }
/* Опис */
.section-title { 
  font-size: 2rem; 
  margin-bottom: 1em; 
  text-align: center;
}
/* Схожі товари */
.similar-products { position: relative; }
.wave-bg img { width: 100%; position: absolute; top: -1px; left: 0; }
.products-grid { margin-top: 2em; }
/* Адаптив */
@media (max-width: 768px) {
  .grid--2cols { grid-template-columns: 1fr; }
  .grid--3cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid--3cols { grid-template-columns: 1fr; }
}

/* === Footer (Site Footer) === */
.site-footer {
  background: #007bff;
  color: #fff;
  padding: 3rem 0 1rem;
}
.site-footer__container {
  display: grid;
  /* 4 колонки по возможности */
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 9rem;
  text-align: left;
}
/* 1. About */
.footer-about {
  text-align: center;
}
.footer-about .footer-logo img {
  max-width: 140px;
  margin-bottom: 1rem;
}
.footer-about__text {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  text-align: center;
}
/* 2. Nav */
.footer-nav__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .75rem;
  text-transform: uppercase;
  text-align: center;
}
.footer-contacts__title,
.footer-social__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  text-align: center;
}
.footer-nav__list {
  list-style: none;
  padding: 0;
  text-align: center;
}
.footer-contacts__list,
.footer-social__list {
  list-style: none;
  padding: 0;
  text-align: center;
}
.footer-nav__list li {
  margin-bottom: .5rem;
}
.footer-contacts__list li,
.footer-social__list li {
  margin-bottom: 0.5rem;
}
.footer-nav__list a {
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  opacity: .9;
  transition: opacity .2s;
}
.footer-nav__list a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-social__list a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity .2s;
}
.footer-nav__list a:hover,
.footer-contacts__list a:hover,
.footer-social__list a:hover {
  opacity: 1;
  text-decoration: underline;
}
/* 3. Social Icons */
.footer-social__list a i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  vertical-align: middle;
}
/* reset address */
footer address {
  font-style: normal;
}
/* Copyright */
.site-footer__container::after {
  content: "© " attr(data-year) " Vitarain";
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* === Адаптив для футера === */
@media (max-width: 768px) {
  .site-footer__container {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 0 1.5rem;
  }
  .footer-about__text,
  .footer-nav__list,
  .footer-contacts__list,
  .footer-social__list {
    max-width: 480px;
  }
}

/* === Контакти: Hero === */
.contacts-hero {
  padding: 1rem 0 2rem;
  background-size: cover;
  background-position: center;
}
.contacts-title {
  text-align: center;
  color: #007bff;
  font-size: 2.75rem;
  margin-bottom: 2rem;
}

/* === Grid для контакти === */
.contacts-grid {
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* === Форма === */
.contacts-form__wrapper {
  display: flex;
  justify-content: center;
}
.contacts-form__card {
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 500px;
}
.contacts-form__header {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.contacts-form input,
.contacts-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.contacts-form textarea {
  resize: vertical;
}
.btn--full {
  display: block;
  width: 100%;
}

/* === Картинка === */
.contacts-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: contain;
}

/* === Наш офіс === */
.contacts-office {
  margin-bottom: 4rem;
}
.contacts-office .section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}
.office-card {
  background: rgba(255,255,255,0.9);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.office-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}
.office-icon {
  color: #007bff;
  font-size: 1.25rem;
}

/* === Адаптив === */
@media (max-width: 992px) {
  .grid--2cols.contacts-grid {
    grid-template-columns: 1fr;
  }
  .office-card {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

.office-map {
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  border-radius: 12px;
}


/* === Hero: трёхколоночная сетка === */
.home-hero {
  padding: 2rem 0;
}
.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* любимая пропорция: левая и правая по 1fr, центр — 2fr */
  align-items: center;
  gap: 2rem;
}

/* Блок фич: по 2 карточки сверху и снизу */
.hero-features {
  display: grid;
  grid-template-rows: repeat(2, auto);
  gap: 1.5rem;
}
.hero-features--left   { justify-items: start; }
.hero-features--right  { justify-items: end;   }

/* Карточка фичи */
.feature-card {
  background: #fff;
  border-radius: 40px;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.feature-card img {
  width: 32px;
  height: 32px;
}
.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #333;
}

/* Центральная колонка */
.hero-main {
  text-align: center;
}
.home-hero__subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.home-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 0.5rem;
}
.home-hero__tagline {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}
.hero-image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.home-hero__btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* Адаптив */
@media (max-width: 1024px) {
  .home-hero__grid {
    grid-template-columns: 1fr; /* одна колонка */
    text-align: center;
  }
  .hero-features {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    justify-items: center;
    margin-bottom: 3rem;
  }
  .home-hero__title { font-size: 2.1rem; }
  .home-hero__tagline { font-size: 0.95rem; }
  .hero-image-wrapper { max-width: 420px; margin: 0 auto 1.25rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 12px; }
  main { margin: 1.5rem auto; }
  .header__logo img { height: 32px; }
  .hero-features { grid-template-columns: 1fr; }
  .feature-card { border-radius: 20px; padding: 1.25rem; }
  .home-hero { padding: 1.25rem 0; }
  .home-hero__title { font-size: 1.9rem; }
  .home-hero__tagline { font-size: 0.9rem; }
  .hero-image-wrapper { max-width: 460px; margin: 0 auto 1rem; }
  .hero-image { display: block; margin: 0 auto; max-height: 360px; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
  .advantages__title { font-size: 2rem; }
}

/* Мобильная раскладка блока преимуществ: картинка сверху, список ниже */
@media (max-width: 900px) {
  .advantages__grid,
  .advantages .grid--2cols {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .advantages__image-wrapper {
    order: 0;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1rem;
    display: block;
  }
  .advantages__image {
    width: 100%;
    display: block;
    margin: 0 auto;
  }
  .advantages__list {
    order: 1;
    width: 100%;
  }
  .advantages__item-title {
    font-size: 1rem;
  }
  .advantages__item-text {
    font-size: 0.9rem;
    line-height: 1.35;
  }
}

/* === Advantages block === */
.advantages {
  margin: 2rem 0;
}
.advantages__title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #007bff;
  font-weight: 700;
}
.advantages__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
  align-items: start;
}
.advantages__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.advantages__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.advantages__icon {
  font-size: 2rem;
  color: #007bff;
  flex-shrink: 0;
}
.advantages__item-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.advantages__item-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}
.advantages__image-wrapper {
  /* ограничиваем ширину картинки, чтобы она не растягивалась слишком сильно */
  max-width: 400px;
}
.advantages__image {
  width: 80%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
}


/* Кнопка «вверх» */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;              /* скрываем по умолчанию */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background-color .2s, transform .2s;
  z-index: 999;
}
.back-to-top:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}
.back-to-top i {
  font-size: 1.25rem;
}



/* Делаем две равные колонки и небольшой отступ между ними */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Центрируем и ограничиваем максимальную ширину галереи */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Сам главный кадр (это первый слайд) */
.gallery__item--main {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

/* Картинка внутри всегда по ширине контейнера, сохраняя пропорции */
.gallery__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Мобильная раскладка карточки товара */
@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .product-hero.product-detail { grid-template-columns: 1fr !important; }
  .gallery { max-width: 100%; }
  .gallery__item--main,
  .gallery__img { width: 100% !important; height: auto !important; }
  .product-info__title { text-align: center; font-size: 1.8rem; }
  .product-info__purchase { flex-direction: column; align-items: center; gap: 12px; text-align: center; width: 100%; }
}

@media (max-width: 768px) {
  .product-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery { max-width: 100%; }
  .gallery__img { width: 100%; height: auto; object-fit: contain; }
  .product-info__title { text-align: center; }
  .product-info__purchase { flex-direction: column; align-items: center; gap: 12px; text-align: center; width: 100%; }
  .product-info { display: flex; flex-direction: column; gap: 12px; }
  .product-info__attrs { padding-left: 18px; }
}


/* Сетка схожих товаров: три равных колонки */
.products-grid.grid--3cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Карточка товара: ограничиваем её максимальную ширину и центрируем внутри ячейки */
.products-grid .product-card {
  max-width: 300px;      /* или любое удобное значение */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* Изображение в карточке — по ширине контейнера, высота auto */
.product-card__img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Заголовок, цена и кнопка прижимаем к низу карточки */
.products-grid .product-card__link,
.products-grid .btn--primary {
  margin-top: auto;
}


/* === Оформление секции описания === */
.product-description {
  margin: 4rem auto;              /* отступы сверху/снизу */
  padding: 2rem 1.5rem;           /* внутренние поля */
  max-width: 800px;               /* ограничение ширины для читаемости */
  background: #ffffff;            /* белый фон */
  border-radius: 12px;            /* скруглённые углы */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* лёгкая тень */
}

.product-description .section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #007bff;
}

/* Базовые абзацы */
.product-description .description p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
}

/* Стили для маркированных списков */
.product-description .description ul,
.product-description .description ol {
  margin: 1rem 0 1.5rem 0;
  padding-left: 2rem;
}

/* Нумерованный список с «круглым» счётчиком */
.product-description .description ol {
  counter-reset: section;
  list-style: none;
}
.product-description .description ol li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 2.5rem;
}
.product-description .description ol li::before {
  counter-increment: section;
  content: counter(section);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  font-weight: bold;
}

/* Маркированный список с кастомными иконками */
.product-description .description ul {
  list-style: none;
}
.product-description .description ul li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 2rem;
}
.product-description .description ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.25rem;
  color: #007bff;
}

/* Ссылки внутри описания */
.product-description .description a {
  color: #007bff;
  text-decoration: underline;
}

/* В карточке товара делаем флекс-контейнер, чтобы ровнять содержимое */
.product-card {
  display: flex;
  flex-direction: column;
  /* растягиваем «product-link» по высоте, чтобы отодвинуть кнопку вниз */
  justify-content: space-between;
}

/* Центрируем текст внутри ссылки (где название и цена) */
.product-card .product-link {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Название оставляем без изменений, а вот ценник */
.product-card .product-price {
  /* отступ сверху/снизу для ровного позиционирования */
  margin: 0.5rem 0;
  /* центрируем текст */
  text-align: center;
  /* делаем его на одном уровне: фиксируем минимальную высоту строки */
  line-height: 1.2;
}

/* Чтобы кнопка всегда была внизу карточки и не сдвигалась вверх */
.product-card .order-button {
  margin-top: auto;
}

.product-card .product-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Селектор для блока «Схожі товари»: */
.similar-products .product-card {
  display: flex;
  flex-direction: column;
  /* чтобы заголовок + цена и картинка распределялись по всей высоте */
  height: 100%;
}

/* Ссылка-обёртка растягивается, чтобы подтолкнуть кнопку вниз */
.similar-products .product-card__link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Заголовок «растягивается», но при этом текст остаётся сверху */
.similar-products .product-card__name {
  /* при необходимости зафиксируйте максимальную высоту,
     чтобы не было слишком высоких карточек */
  /* max-height: 3.6em; overflow: hidden; */
  margin-bottom: auto;
}

/* Цена чуть-чуть отодвигаем от заголовка, но держим её над кнопкой */
.similar-products .product-card__price {
  margin: 0.5rem 0;
}

/* Кнопка всегда остаётся внизу карточки */
.similar-products .btn {
  margin-top: auto;
}

:root {
  --primary-blue: #007bff; /* замените на ваш точный код цвета */
}

/* Центрируем и красим */
.preview-products__title {
  text-align: center;
  color: var(--primary-blue);
  margin-bottom: 2rem; /* отступ под заголовком */
  font-size: 2.5rem;     /* как у ПЕРЕВАГИ VITARAIN */
  font-weight: 700; /* тот же жирный вес */
}

/* 1) Копируем цвет и размер из «ПЕРЕВАГИ VITARAIN» */
.section-title {
  color: #1E7FFE;      /* тот же яркий синий */
  font-size: 2.5rem;   /* подберите тот же размер, что и у «ПЕРЕВАГИ VITARAIN» */
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* 2) Центрируем заголовки, у которых есть вспомогательный класс */
.section-title--centered {
  text-align: center;
}
/* === Плавающий виджет корзины === */
.cart-widget {
  position: fixed;
  bottom: 80px;         /* чуть выше стрелки наверх */
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #00A651;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
  z-index: 1100;       /* выше, чем у стрелки */
}
.cart-widget:hover {
  background-color: #028a43;
}
.cart-widget i {
  font-size: 24px;
}
.cart-widget__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: #222;
  border-radius: 12px;
  line-height: 1;
  z-index: 1200;
}

/* === Кнопка «вверх» === */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: #007BFF;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.scroll-to-top i {
  color: #fff;
  font-size: 20px;
}
.scroll-to-top:hover {
  background-color: #005ce6;           /* чуть более яркий синий */
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transform: translateY(-2px);         /* лёгкий «вылет» вверх */
}

.product-info__purchase {
  display: flex;
  flex-direction: column;
  align-items: center; /* выравниваем по центру */
  text-align: center;
  width: 100%;
}

.product-info__purchase .price {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  width: 100%;
}

.purchase-controls {
  display: flex;
  align-items: center;
  gap: 1rem;        /* отступы между контролами */
  flex-wrap: wrap;  /* если не влезет, перенесёт на новую строку */
  justify-content: center;
  width: 100%;
}

.about-company {
  text-align: center;
  margin: 4rem 0;
}
.about-company__title {
  font-size: 2.5rem;        /* як у «Переваги Vitarain» */
  color: #007aff;           /* синій відтінок */
  margin-bottom: 1.5rem;
}
.about-company__logo {
  max-width: 280px;
  width: 100%;
  margin: 0 auto 1rem;
  display: block;
}
.about-company__text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}

.company-video {
  margin: 3rem auto;
  text-align: center;
}
.company-video__player {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ————————————————————————— Стили для flash-сообщений —————————————————————————— */

.messages {
  margin: 1.5rem 0;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  text-align: center;
}

.alert-success {
  background-color: #e6ffed;
  color: #1a5f37;
  border: 1px solid #c8f7d4;
}

.alert-error,
.alert-danger {
  background-color: #ffe6e8;
  color: #701e1e;
  border: 1px solid #f7c8cb;
}

.alert-warning {
  background-color: #fff9e6;
  color: #7a5a1d;
  border: 1px solid #f7e1b8;
}

/* ===================================== */
/*   1) Фон и отступы для всего блока    */
/* ===================================== */
.subscription-banner {
  background-color: #f0f8ff; /* светлый фон (или любой ваш) */
  padding: 24px 0;           /* вертикальный отступ сверху/снизу */
}

/* ===================================== */
/*   2) Центровка: контейнер по ширине   */
/* ===================================== */
.subscription-container {
  max-width: 1200px;
  margin: 0 auto;   /* центр по горизонтали */
  padding: 0 16px;  /* отступы слева/справа */
  box-sizing: border-box;
  /* Ни в коем случае тут не ставим justify-content */
}

/* =========================================================== */
/*   3) Контейнер для flash-сообщения (success / error)        */
/*      — занимает 100% ширины normal .container и центрирует  */
/* =========================================================== */
.subscription-message-container {
  width: 100%;
  display: flex;              /* включаем флекс, чтобы центрировать "баннер" */
  justify-content: center;    /* горизонтально по центру */
  margin-bottom: 12px;        /* небольшой отступ до формы */
  box-sizing: border-box;
}

/* ================================================================ */
/*   4) Сам «flash-баннер» (alert): ограничиваем max-width, центруем  */
/* ================================================================ */
.subscription-message-container .subscription-alert {
  width: 100%;
  max-width: 600px;          /* не растягиваемся шире */
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 15px;
  text-align: center;        /* текст внутри по центру */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* — зелёный баннер «Успіх» — */
.subscription-alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* — красный баннер «Помилка» — */
.subscription-alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* =========================================================== */
/*   5) Блок «призыв + форма» (flex для текста + поля подписки)  */
/* =========================================================== */
.subscription-flex {
  display: flex;
  justify-content: center;   /* выравниваем по центру весь блок */
  align-items: center;
  flex-wrap: wrap;           /* если мало места, переносим на новую строку */
  gap: 16px;                 /* промежуток между текстом и формой */
}

/* Текст «Підпишіться і дізнавайтеся…» */
.subscription-text {
  font-size: 18px;
  font-weight: 500;
  color: #0066cc;           /* яркий синий (как заголовок) */
  text-align: center;
  margin-bottom: 8px;
}

/* Обёртка поля ввода + кнопки */
.subscription-field {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1 1 100%;
  justify-content: center;
}

/* Само текстовое поле e-mail */
.subscription-input {
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

/* Кнопка «Підписатися» */
.btn--subscribe {
  background-color: #0066cc;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn--subscribe:hover {
  background-color: #005bb5;
}

/* Мобилка для формы подписки */
@media (max-width: 768px) {
  .subscription-banner { padding: 1.5rem 0; }
  .subscription-flex {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .subscription-text {
    text-align: left;
    font-size: 17px;
  }
  .subscription-field {
    width: 100%;
    gap: 0.5rem;
    flex-direction: column;
    align-items: stretch;
  }
  .subscription-input {
    min-width: 100%;
    width: 100%;
  }
  .subscription-field .btn--subscribe {
    width: 100%;
    padding: 12px;
  }
}


/* Стили для блока с иконкой и текстом */
.nav-icon--user {
  display: flex;
  flex-direction: column;    /* вертикальное расположение: иконка сверху, текст снизу */
  align-items: center;       /* горизонтальное центрирование вложенных элементов */
  justify-content: center;   /* вертикальное центрирование внутри контейнера, если нужно */
  width: 40px;               /* подогнать под размер nav-панели */
  color: #333;               /* цвет иконки и текста в обычном состоянии */
  text-decoration: none;     /* отключаем подчёркивание у ссылки */
  gap: 2px;                  /* расстояние между иконкой и текстом */
}
.nav-icon--user:hover {
  color: #0066cc;            /* цвет при наведении */
}
/* Размер иконки */
.nav-icon--user .fa-user {
  font-size: 18px;
}
/* Стили для подписи «Вхід» */
.nav-icon-label {
  font-size: 12px;
  line-height: 1;
}


/* static/css/style.css */

/* Обёртка всей страницы выбора */
.login-signup-choice {
  background-color: #f9faff;  /* или любой цвет фона, как у вас в шаблоне */
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Контейнер и центрирование мы берём из Bootstrap, 
   но если Bootstrap нет, просто напишите: */
.container {
  max-width: 800px;
  margin: 0 auto;
}

/* Если у вас селектор .btn-lg или .btn-block нет, 
   то пропишите что-то вроде: */
.btn-block {
  display: block;
  width: 100%;
}

/* Кнопка Вхід – заливка основным цветом */
.btn-primary {
  background-color: #007bff;  /* ваш основной синий */
  color: white;
  border: none;
  padding: 12px;
  border-radius: 40px;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  margin: 1rem auto;
}

/* Кнопка Реєстрація – обводка */
.btn-outline-primary {
  background-color: white;
  color: #007bff;
  border: 2px solid #007bff;
  padding: 12px;
  border-radius: 40px;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;

}

/* Кнопки OAuth (Google, Apple) */
.btn-light {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  color: #333333;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

/* Логотипы внутри OAuth-кнопок */
.btn-light img {
  margin-right: 8px;
}

.login-signup-choice a.btn {
  text-decoration: none;
}

.login-signup-choice .container {
  background-color: transparent;
}

.login-signup__heading {
  text-align: center;
  color: #007bff;
  margin-bottom: 0.5rem;
}
.login-signup__subheading {
  text-align: center;
  color: #6c757d;
  margin-bottom: 1.5rem;
}


/* static/css/auth.css */

.auth-page {
  background-color: #f0f8ff;  /* нежно-голубой фон */
  padding: 60px 0;
}
.auth-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}
.contact-data-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #222;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.auth-form .form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}
.auth-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.auth-form input:focus {
  border-color: #4da1ff;
  box-shadow: 0 0 0 2px rgba(77,161,255,0.25);
}
.invalid-feedback {
  color: #d00;
  font-size: 0.875rem;
}
.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  font-size: 1.125rem;
  padding: 0.75rem;
  border-radius: 8px;
}
.btn-primary:hover {
  background-color: #0069d9;
  border-color: #0062cc;
}
.form-check {
  display: flex;
  align-items: top;
}
.form-check input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
}


.cart-table img {
  border-radius: 8px;
  object-fit: cover;
}
.qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-table th, .cart-table td {
  vertical-align: middle;
  text-align: center;
  border: 1px solid #dee2e6;
  padding: 7px;
}

.cart-table td:first-child,
.cart-table th:first-child {
  width: 50px;
}

.cart-table img {
  width: 60px;
  border-radius: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qty-controls button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  padding: 0;
}

.cart-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  text-align: right;
}

.cart-summary p {
  margin-bottom: 5px;
}

.cart-summary .btn-success {
  margin-top: 10px;
  font-size: 18px;
  padding: 10px 30px;
  border-radius: 30px;
}


.cart-table {
  width: 100%;
  margin-bottom: 20px;
}
.cart-table th,
.cart-table td {
  padding: 16px;
}

.cart-table img {
  width: 80px;
  height: auto;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.cart-table thead {
  background-color: #f5f5f5;
}
.cart-table th {
  text-transform: uppercase;
  font-weight: 600;
}

.cart-table img {
  border-radius: 10px;
  border: 1px solid #ccc;
}
.qty-controls .btn {
  width: 32px;
  height: 32px;
  line-height: 1;
  padding: 4px;
  font-weight: bold;
}

.qty-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }

.quantity-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f0f8ff;
  border: 2px solid #339af0;
  border-radius: 30px;
  padding: 5px 15px;
  width: 120px;
}

.qty-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  color: #339af0;
  cursor: pointer;
  font-weight: bold;
  outline: none;
}

.qty-value {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

/* Таблица с подытогами */
.cart-summary {
  max-width: 320px;
  margin-top: 40px;
  font-family: "Helvetica", sans-serif;
  font-size: 16px;
  border-top: 1px solid #ccc;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.cart-summary-row:last-child {
  border-bottom: none;
  font-weight: bold;
  font-size: 18px;
}

/* Обновление и кнопка "Купить" */
.cart-actions {
  margin-top: 30px;
  text-align: center;
}

.cart-actions .btn-buy {
  background-color: #0cb654;
  border: none;
  color: white;
  font-size: 18px;
  padding: 12px 32px;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}

.cart-actions .btn-buy:hover {
  background-color: #08a14a;
}

.cart-background-wrapper {
  position: relative;
  margin-top: 25px;
  text-align: center;
}
