﻿﻿/*   
Theme Name: Haogang
Author: Seredyn Ievgen
Author Email: zhenyavn@gmail.com
Author Phone: +380976076132
Author Telegram: @evseredyn
Author Viber: +380976076132
Author WhatsApp: +380976076132
Version: 1.0
*/

:root {
  /* Colors - Haogang Brand Identity */
  --color-primary: #4a8b2c;
  --color-primary-hover: #3d7324;
  --color-accent: #8cc63f;
  --color-accent-soft: #eaf4e1;
  --color-text-main: #333333;
  --color-text-muted: #676767;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-bg-light: #f9f9f9;
  --color-border: #d9d9d9;
  --color-icons: #CCC3DB;

  /* Transitions */
  --duration: 250ms;
  --timing-function: cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --main-font: "Arial", sans-serif;

  /* Shadows */
  --shadow-btn: 2px 4px 9px 0px rgba(0, 0, 0, 0.15);
  --btn-shadow-hover: 0 6px 20px rgba(91, 158, 0, 0.5);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--main-font);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text, #333333);
  margin-bottom: 32px;
  text-transform: uppercase;
  text-align: center;
}
.page-title--left {
  text-align: left;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text, #333333);
  margin-bottom: 24px;
  text-transform: uppercase;
  text-align: center;
}
@media (min-width: 768px) {
  .page-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
  .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.section { 
  padding: 30px 0; 
}
@media (min-width: 768px) { 
  .section { 
    padding: 60px 0; 
  } 
}

/* Social Links */
.socials__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  transition: color var(--duration) var(--timing-function), transform var(--duration) var(--timing-function);
}

.socials__link:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.socials__icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ==========================================================================
   HEADER STYLES (MOBILE FIRST)
   ========================================================================== */

.desktop-only {
  display: none !important;
}

.header {
  width: 100%;
  /* max-width: 1440px; */
  margin: 0 auto;
  background-color: var(--color-primary);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header__container {
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 15px;
}

/* Бургер кнопка */
.burger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burger-btn__icon,
.burger-btn__icon::before,
.burger-btn__icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-white);
  position: relative;
  transition: all var(--duration) var(--timing-function);
}

.burger-btn__icon::before,
.burger-btn__icon::after {
  content: '';
  position: absolute;
}

.burger-btn__icon::before { top: -6px; }
.burger-btn__icon::after { top: 6px; }

/* Логотип */
.header__logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: auto;
  max-width: 120px;
}

/* Ховаємо навігацію хедера за замовчуванням (mobile & tablet) */
.header__nav {
  display: none;
}

/* Дії користувача */
.user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-actions__item {
  color: var(--color-white);
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.user-actions__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 5px;
  line-height: 1;
}

.header__cart-btn {
  color: var(--color-white);
  transition: color var(--duration) var(--timing-function);
}

.header__cart-btn:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   OFF-CANVAS MOBILE MENU
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility var(--duration), opacity var(--duration) ease;
}

.mobile-menu--open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.mobile-menu__content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--duration) ease-in-out;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.mobile-menu--open .mobile-menu__content {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.mobile-menu__close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.mobile-menu__body {
  padding: 20px 16px;
  overflow-y: auto;
  flex-grow: 1;
}

.mobile-menu__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-hover);
  text-transform: uppercase;
}

.mobile-menu__link--highlight {
  color: var(--color-accent);
}

.mobile-menu__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.mobile-menu__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-main);
  font-size: 13px;
}

.mobile-menu__icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   DESKTOP RESPONSIVE BREAKPOINTS (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  .desktop-only {
    display: flex !important;
  }

  .burger-btn {
    display: none;
  }

  .header__top {
    height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 25px;
  }

  .header__nav {
    display: block;
  }

  .nav__list {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 48px;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 500;
    transition: 
      color var(--duration) var(--timing-function),
      font-weight var(--duration) var(--timing-function);
  }

  .nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-white);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform var(--duration) var(--timing-function);
  }

  /* Поява білої смужки знизу при ховері, фокусі та на поточній сторінці */
  .nav__link:hover::after,
  .nav__link:focus-visible::after,
  .nav__link--current::after {
    transform: scaleX(1);
  }

  /* Текст поточної сторінки робимо жирнішим для чіткого акценту */
  .nav__link--current {
    font-weight: 700;
  }

  .nav__link--highlight {
    background-color: var(--color-white);
    color: var(--color-primary-hover);
    font-weight: 700;
    height: auto;
    padding: 2px 8px;
    border-radius: 8px;
    box-shadow: var(--shadow-btn);
    transition: 
      background-color var(--duration) var(--timing-function),
      color var(--duration) var(--timing-function),
      transform var(--duration) var(--timing-function),
      box-shadow var(--duration) var(--timing-function);
  }

  .nav__link--highlight::after {
    display: none;
  }

  .nav__link--highlight:hover,
  .nav__link--highlight:focus-visible {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-1px);
  }

  /* === НИЖНЯ ПАНЕЛЬ (КАТЕГОРІЇ ТА ПОШУК) === */

  .header__bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 0 25px;
    position: relative;
    background-color: var(--color-accent-soft);
    border-bottom: 4px solid var(--color-primary);
  }
  @media (min-width: 1024px) {
  .header__bottom {
    /* Додаємо центрирування внутрішньої смуги, якщо вона лежить поза header__container: */
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

  .search-form {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    flex-shrink: 0;
  }

  .search-form__input {
    width: 220px;
    height: 32px;
    padding: 4px 36px 4px 14px;
    background-color: var(--color-white);
    border: 2px solid var(--color-primary-hover);
    border-radius: 18px;
    font-size: 13px;
    outline: none;
    transition: border-color var(--duration) var(--timing-function), box-shadow var(--duration) var(--timing-function);
  }

  .search-form__input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(140, 198, 63, 0.2);
  }

  .search-form__btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .search-form__btn:hover {
    color: var(--color-primary-hover);
  }

  /* Сітка для плавної анімації висоти */
  .categories-wrapper {
    display: grid;
    grid-template-rows: 48px;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    transition: grid-template-rows 350ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .categories-nav {
    min-height: 0;
  }

  .categories-nav__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .categories-nav__item {
    display: flex;
    align-items: center;
    height: 48px;
  }

  .categories-nav__link {
    color: var(--color-black);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color var(--duration) var(--timing-function);
  }

  .categories-nav__link:hover {
    color: var(--color-primary-hover);
  }

  .categories-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    padding: 0 6px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1), color 300ms ease;
  }

  .categories-toggle:hover {
    color: var(--color-primary-hover);
  }

  .categories-toggle--active {
    transform: rotate(180deg);
  }

  /* === ПЛАВНИЙ РОЗГОРНУТИЙ СТАН === */

  .header__bottom--expanded .categories-wrapper {
    grid-template-rows: 1fr;
    padding-bottom: 8px;
  }
}

@media (min-width: 1440px) {
  .nav__link { font-size: 16px; }
  .categories-nav__link { font-size: 14px; }
}

/* ==========================================================================
   КНОПКА «НАГОРУ» (BACK TO TOP)
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 2px solid var(--color-primary-hover);
  color: var(--color-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 
    opacity var(--duration) var(--timing-function),
    visibility var(--duration) var(--timing-function),
    transform var(--duration) var(--timing-function),
    background-color var(--duration) var(--timing-function),
    color var(--duration) var(--timing-function);
  z-index: 900;
}

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

.back-to-top:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
}

.back-to-top__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* ==========================================================================
   ПЕРЕМИКАЧ МОВИ (ВИПРАВЛЕНІ КЛАСИ ДЛЯ HTML)
   ========================================================================== */

.lang-select,
.lang-select__current,
.lang-switcher,
.lang-switcher__select,
.lang-switcher__btn,
.mobile-menu__lang {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--color-white) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none !important;
}

/* Стилізація SVG-іконки глобуса всередині перемикача */
.lang-select__icon {
  fill: currentColor;
  flex-shrink: 0;
}

/* Ховер-ефект для кнопки мови */
.lang-select__current:hover {
  color: var(--color-accent) !important;
}


/* ==========================================================================
   HERO SECTION / SLIDER & GRID (COMPLETE MONOLITHIC CSS)
   ========================================================================== */

/* Базовий контейнер секції — дозволяємо показувати сусідні слайди за межами контейнера */
.hero-section {
  padding: 20px 0;
  width: 100%;
  overflow: hidden; /* Запобігає появі горизонтального скролу всієї сторінки */
}

/* Обгортка слайдера */
.hero-section__swiper {
  position: relative;
  width: 100%;
  padding-bottom: 28px;
  
  /* ВАЖЛИВО: overflow має бути hidden, щоб за межами слайдера слайди не вилазили виродливо */
  overflow: hidden;
  box-sizing: border-box;
}

/* Якщо хочеш ефект "караселі" (видимі шматочки сусідніх слайдів) на планшетах/мобілках */
@media (max-width: 1024px) {
  .hero-section__swiper {
    /* Додаємо внутрішні padding, щоб сусідні слайди потрапляли у видиму область */
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }

  .hero-card.swiper-slide {
    height: auto;
    box-sizing: border-box;
  }
}

.hero-section__wrapper {
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   HERO CARD STYLES
   -------------------------------------------------------------------------- */

.hero-card {
  background: var(--card-bg, linear-gradient(135deg, var(--color-accent-soft) 0%, var(--color-white) 100%));
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-sizing: border-box;
  overflow: hidden;
  
  /* Фіксована мінімальна висота для стабільної сітки */
  min-height: 230px;
  height: 100%;
  
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--timing-function),
              box-shadow var(--duration) var(--timing-function);
}

@media (min-width: 768px) {
  .hero-card {
    padding: 20px;
  }
}
.hero-card.swiper-slide {
  background: var(--card-bg) !important;
  height: auto;
  box-sizing: border-box;
}

.hero-card:hover {
  transform: translateY(-2px);
}

/* Двоколонкова структура (Зображення + Контент) */
.hero-card__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap:16px;
  width: 100%;
  height: 100%;
}
.hero-card__inner.vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}
@media (min-width: 1440px) {
  .hero-card__inner.vertical {
      margin: 0;
  }
}
.hero-card__inner.vertical img {
  transform: scale(1);
}
.hero-card--reverse .hero-card__inner {
  flex-direction: row-reverse;
}

/* Зображення */
.hero-card__img-wrapper {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card__img {
  max-width: 100%;
  max-height: 260px;
  transform: scale(1.1);
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.08));
}

/* Текстовий блок */
.hero-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  height: 100%;
}

.hero-card__content > h4 {
  display: none;
}

.hero-card__subtitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-card__title {
  font-family: var(--main-font);
  font-size: clamp(0.875rem, 0.494rem + 1.9vw, 1rem);
  font-weight: 700;
  color: var(--color-text-main);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 12px 0;
}

@media (min-width: 768px) {
  .hero-card__title {
    font-size: 16px;
  }
}

.hero-card__desc {
  font-size: clamp(0.75rem, 0.369rem + 1.9vw, 0.875rem);
  line-height: 1.35;
  color: var(--color-text-main);
  margin: 12px 0;
  /* display: -webkit-box; */
  /* -webkit-line-clamp: 3; */
  /* -webkit-box-orient: vertical; */
  /* overflow: hidden; */
}

/* Кнопка картки */
.hero-card__btn {
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: clamp(0.625rem, 0.244rem + 1.9vw, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  margin-top: auto;
  transition: background-color var(--duration) var(--timing-function),
              box-shadow var(--duration) var(--timing-function),
              transform var(--duration) var(--timing-function);
}

@media (min-width: 768px) {
  .hero-card__btn {
      padding: 8px 18px;
      font-size: 11px;
  }
}

@media (min-width: 1024px) {
  .hero-card__btn {
      font-size: 12px;
  }
}

.hero-card__btn:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   НАПІВПРОЗОРІ СТРІЛКИ З ТІННЮ (НАСУНУТІ НА КАРТКИ)
   -------------------------------------------------------------------------- */

.hero-section__arrow {
  position: absolute;
  top: calc(50% - 14px); /* Центрування по висоті карток */
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  
  /* Напівпрозорий білий фон із розмиттям підкладки */
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-accent);
  box-shadow: var(--shadow-btn); /* Використання фірмової тіні */
  padding: 0;
  margin: 0;
  z-index: 10;
  transition: transform var(--duration) var(--timing-function),
              background-color var(--duration) var(--timing-function),
              color var(--duration) var(--timing-function),
              box-shadow var(--duration) var(--timing-function);
}

/* Зсув стрілок УСЕРЕДИНУ карток (щоб не зрізалися) */
.hero-section__prev {
  left: 12px;
}

.hero-section__next {
  right: 12px;
}

/* Ховер-ефекти */
.hero-section__arrow:hover {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-hover);
  transform: translateY(-50%) scale(1.06);
  box-shadow: var(--btn-shadow-hover);
}

.hero-section__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-section__arrow.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Якщо бажаєте ВСЕОДНО сховати стрілки до 1024px і залишити тільки для тач-свайпу:
   Розкоментуйте цей блок нижче:
*/
/*
@media (max-width: 1024px) {
  .hero-section__arrow {
    display: none !important;
  }
}
*/

/* --------------------------------------------------------------------------
   ПАГІНАЦІЯ (ЗНИЗУ ПО ЦЕНТРУ)
   -------------------------------------------------------------------------- */

.hero-section__pagination.swiper-pagination {
  position: absolute;
  bottom: 0 !important;
  left: 0;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  margin: 0 !important;
}

.hero-section__pagination .swiper-pagination-bullet {
  background-color: var(--color-border);
  opacity: 1;
  width: 8px;
  height: 8px;
  margin: 0 !important;
  transition: all var(--duration) var(--timing-function);
}

.hero-section__pagination .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   DESKTOP GRID (1025px+)
   -------------------------------------------------------------------------- */

@media (min-width: 1025px) {
  .hero-section__swiper {
    overflow: visible;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-section__wrapper {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    transform: none !important;
  }

  .hero-card.swiper-slide {
    width: auto !important;
    margin: 0 !important;
  }

  .hero-card__content > h4 {
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
  }

  .hero-card--large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    padding: 28px;
  }

  .hero-card--large .hero-card__inner {
    gap: 24px;
  }

  .hero-card--large .hero-card__img-wrapper {
    flex: 0 0 45%;
  }

  .hero-card--large .hero-card__img {
    max-height: 420px;
  }

  .hero-card--large .hero-card__title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .hero-card--large .hero-card__desc {
    font-size: 14px;
    line-height: 1.45;
    /* margin-bottom: 20px; */
    /* -webkit-line-clamp: 5; */
  }

  .hero-card--large .hero-card__btn {
    padding: 10px 24px;
    font-size: 12px;
  }

  /* Приховуємо слайдерні елементи у десктопній сітці */
  .hero-section__arrow,
  .hero-section__pagination {
    display: none !important;
  }
}

@media (min-width: 1440px) {
  .hero-card__inner {
    flex-direction: row;
  }
}


/* ==========================================================================
   CATALOG SECTION (WITH INTEGRATED GUARANTEES)
   ========================================================================== */

.catalog-section {
  padding: 40px 0;
  width: 100%;
}

.catalog-section__container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.catalog-section__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--color-text-main, #1A1A1A);
}

/* --------------------------------------------------------------------------
   1. PROMO BANNER
   -------------------------------------------------------------------------- */

.catalog-banner {
  background: linear-gradient(135deg, #E2F5B6 0%, #D2EF9A 100%);
  border-radius: 16px;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  margin-bottom: 32px;
}

.catalog-banner__content {
  flex: 1;
  max-width: 650px;
}

.catalog-banner__title {
  font-size: clamp(1rem, 0.8rem + 1vw, 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.3;
}

.catalog-banner__desc {
  font-size: clamp(0.75rem, 0.65rem + 0.5vw, 0.95rem);
  line-height: 1.45;
  margin-bottom: 20px;
  color: var(--color-text-muted, #333333);
}

.catalog-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: var(--color-primary, #3B7E28);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: var(--shadow-btn, 0 4px 10px rgba(0,0,0,0.1));
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.catalog-banner__btn:hover {
  background-color: var(--color-primary-hover, #2E651F);
  transform: translateY(-2px);
}

.catalog-banner__img-wrapper {
  flex: 0 0 350px;
  display: flex;
  justify-content: center;
}

.catalog-banner__img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   2. CATEGORIES SWIPER / GRID
   -------------------------------------------------------------------------- */

.catalog-categories {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.catalog-categories__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary, #3B7E28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  z-index: 2;
  flex-shrink: 0;
}

/* Стан при наведенні */
.catalog-categories__arrow:hover {
  background-color: var(--color-primary, #3B7E28);
  color: #FFFFFF;
  border-color: var(--color-primary, #3B7E28);
  box-shadow: 0 4px 12px rgba(59, 126, 40, 0.3);
  transform: translateY(-2px);
}

/* Стан при натисканні */
.catalog-categories__arrow:active {
  transform: translateY(0) scale(0.95);
}

/* Неактивний стан (якщо Swiper досяг кінця) */
.catalog-categories__arrow.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-main, #1A1A1A);
  text-align: center;
  gap: 8px;
  margin-top: 12px;
}

.category-card__icon-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.category-card__img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.category-card__title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

/* .category-card--active .category-card__icon-wrapper,
.category-card:hover .category-card__icon-wrapper {
  background-color: #A3D991;
  border-color: var(--color-primary, #3B7E28);
  transform: scale(1.05);
} */

.catalog-section__divider {
  border: none;
  height: 1px;
  background-color: #E0E0E0;
  margin: 0;
}

/* --- Catalog Page Specific Overrides --- */
.catalog-page .catalog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 16px;
}

@media (min-width: 768px) {
  .catalog-page .catalog-categories {
    gap: 32px 24px;
  }
}
/* --- Catalog Page Layout & Grid --- */
.catalog-page {
  padding-top: 40px;
  padding-bottom: 60px;
}

.catalog-page__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 в ряд на мобільних */
  gap: 24px 16px;
  justify-items: center;
}

@media (min-width: 576px) {
  .catalog-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .catalog-page__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
  }
}

@media (min-width: 1025px) {
  .catalog-page__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --- Фіксація розмірів кругляків (якщо вони не прописані глобально) --- */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  width: 100%;
  max-width: 140px; /* Обмежуємо ширину картки */
}

.category-card__icon-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #f2f2f2; /* Сірий фон кружечка */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.category-card:hover .category-card__icon-wrapper {
  transform: scale(1.05);
}

.category-card__img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.category-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #333333;
}

/* ==========================================================================
   3. GUARANTEES BLOCK (СЕКЦІЯ ГАРАНТІЙ)
   ========================================================================== */

.guarantees-section {
  width: 100%;
  padding: 20px 0;
}

.guarantees-block {
  background-color: #EBF3E8;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.guarantees-block__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guarantees-block__badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

/* Бейдж щита (суцільна іконка з заливкою) */
.guarantees-block__badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--color-primary, #3B7E28);
}

.guarantees-block__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary, #3B7E28);
  margin: 0;
}

.guarantees-block__subtitle {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555555;
  margin: 0;
}

.guarantees-block__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Однакова ширина для всіх 4 карток */
  gap: 16px;
  align-items: center; /* Дозволяє карткам збільшуватися по висоті незалежно */
  list-style: none;
  padding: 0;
  margin: 0;
}

.guarantee-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.guarantee-card__text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #222222;
}

/* Іконки у картках (контурні іконки) */
.guarantee-card__icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-primary, #3B7E28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   АДАПТИВ ТА МЕДІАЗАПИТИ
   ========================================================================== */

@media (min-width: 768px) {
  .guarantee-card__icon svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 1439px) {
  .guarantees-block {
    flex-direction: column;
    align-items: stretch;
  }

  .guarantees-block__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .guarantees-block__grid {
    grid-template-columns: 1fr;
  }

  .guarantee-card {
    padding: 16px 20px;
    min-height: auto;
  }
}

/* Обмеження ширини фону для екранів понад 1440px */
@media (min-width: 1441px) {
  .guarantees-section .container {
    max-width: 1440px;
    margin: 0 auto;
  }
}
/* --------------------------------------------------------------------------
   MEDIA QUERIES (RESPONSIVE ADAPTATION)
   -------------------------------------------------------------------------- */

/* Tablet (До 1024px) */
@media (max-width: 1024px) {
  .catalog-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .catalog-banner__content {
    max-width: 100%;
  }

  .catalog-banner__img-wrapper {
    flex: 0 0 auto;
    max-width: 280px;
  }

  .catalog-guarantees {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-guarantees__header {
    /* flex: 0 0 auto; */
  }

  .catalog-guarantees__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (< 640px) */
@media (max-width: 639px) {
  .catalog-section {
    padding: 24px 0;
  }

  .catalog-banner {
    padding: 16px;
  }

  .catalog-guarantees__grid {
    grid-template-columns: 1fr; /* Вертикальний потік на найменших екранах */
  }

  .catalog-categories__arrow {
    display: none !important; /* На мобільному використовується тільки тач-свайп */
  }

  .category-card__icon-wrapper {
    width: 80px;
    height: 80px;
  }
}

/* Основна секція All Products*/
.products-section {
  padding: 40px 0;
}

.products-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  position: relative;
}

@media (min-width: 768px) {
  .products-section__header {
    flex-direction: row;
    justify-content: center;
  }
  .products-sort {
    position: absolute;
    right: 0;
  }
}

.products-section__title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

.products-sort__select {
  padding: 8px 36px 8px 16px; /* 36px - збільшений правий відступ для стрілки */
  border: 1px solid #71a329;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  outline: none;
  cursor: pointer;
  
  /* Кастомна зелена стрілочка */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371a329' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center; /* Стрілочка буде відступати 12px від правого краю */
}

/* ==========================================================================
   СЛАЙДЕР ТОВАРІВ (SWIPER)
   ========================================================================== */

.products-slider {
  position: relative;
  /* Додаємо падінги з боків, щоб круглі стрілки та тіні карток не обрізалися */
  padding: 10px 20px; 
}

/* Стрілки навігації */
.products-slider .swiper-button-prev,
.products-slider .swiper-button-next {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: #71a329;
  
  /* Точне вертикальне центрування без margin-top */
  top: 50%;
  transform: translateY(-50%);
  margin: 0; 
  z-index: 10;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Ефект при наведенні на стрілки */
.products-slider .swiper-button-prev:hover,
.products-slider .swiper-button-next:hover {
  background-color: #71a329;
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

/* Кастомізація розміру дефолтної іконки Swiper */
.products-slider .swiper-button-prev::after,
.products-slider .swiper-button-next::after {
  font-size: 15px;
  font-weight: 700;
}

/* Точне позиціонування по краях */
.products-slider .swiper-button-prev {
  left: 1;
}

.products-slider .swiper-button-next {
  right: 1;
}

/* Ховаємо дефолтний недоступний стан або стилізуємо його */
.products-slider .swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   АДАПТИВ: Мобільна версія (вертикальна колонка)
   ========================================================================== */

@media (max-width: 767px) {
  .products-slider {
    padding: 0; /* На мобільному забираємо бічні падінги для стрілок */
  }

  .products-slider .swiper-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: none !important;
    width: 100% !important;
  }

  .products-slider .swiper-slide {
    width: 100% !important;
    height: auto;
    margin: 0 !important;
  }

  /* Повністю ховаємо стрілки */
  .products-slider .swiper-button-prev,
  .products-slider .swiper-button-next {
    display: none !important;
  }
}
/* Картка товару */
.product-card {
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 12;
}

.product-card:hover {
  border-color: #b4b1b1;
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Обгортка зображення та бейджів */
.product-card__image-wrapper {
  position: relative;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
}

.product-card__img {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: 160px;
  object-fit: contain;
}

/* Бейджі (XIT, %, Подарунок) */
.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.badge--hit { background-color: #25d366; }
.badge--discount { background-color: #1e88e5; }
.badge--gift { background-color: #e53935; }

/* Кнопка "Обране" (Зірочка) */
.product-card__favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #71a329; /* Акцентний колір */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--duration) var(--timing-function);
  z-index: 2;
}

/* Базовий стан: тільки контур */
.product-card__favorite svg {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

/* Активний стан або Hover: повна заливка акцентним кольором */
.product-card__favorite:hover,
.product-card__favorite--active {
  transform: scale(1.1);
}

.product-card__favorite:hover svg,
.product-card__favorite--active svg {
  fill: currentColor; /* Заливає зірочку кольором #71a329 */
}

/* Контент картки */
.product-card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.stars {
  color: #fbc02d;
  font-size: 14px;
  letter-spacing: 2px;
}

.rating-value {
  font-size: 12px;
  color: #666;
}

.product-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 12px 0;
  text-align: center;
  height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__title a {
  color: #333;
  text-decoration: none;
}

.product-card__price-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 12px;
}

.price-current {
  font-weight: 700;
  font-size: 16px;
  color: #000;
}

.price-old {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

/* Кнопка в кошик */
.product-card__btn {
  width: 100%;
  box-sizing: border-box;
  background-color: #71a329;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  
  margin: 0 auto;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.product-card__btn:hover {
  background-color: #5c8720;
}

/* Явно задаємо розміри та поведінку для SVG у кнопці */
.product-card__btn svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  stroke: currentColor;
}

/* Гарантуємо, що <use> заповнює весь батьківський <svg> */
.product-card__btn svg use {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   PRODUCT SINGLE: MAIN BLOCK (GALLERY & INFO)
   ========================================================================== */

.product-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .product-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* --- GALLERY STYLES --- */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0; /* Для коректної роботи Swiper всередині Grid */
}

/* Головний слайдер картинки */
.product-swiper-main {
  width: 100%;
  border-radius: 16px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.product-swiper-main .swiper-slide {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.product-swiper-main img {
  display: block;
  width: 100%;
  height: 100%;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}

/* Стрілки навігації в галовному фото */
.product-swiper-main .swiper-button-prev,
.product-swiper-main .swiper-button-next {
  color: #16a34a; /* Акцентний зелений */
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, transform 0.2s;
}

.product-swiper-main .swiper-button-prev:after,
.product-swiper-main .swiper-button-next:after {
  font-size: 16px;
  font-weight: bold;
}

.product-swiper-main .swiper-button-prev:hover,
.product-swiper-main .swiper-button-next:hover {
  background: #ffffff;
  transform: scale(1.05);
}

/* Мініатюри зображень (Thumbs) */
.product-swiper-thumbs {
  width: 100%;
  padding: 4px 2px;
}

.product-swiper-thumbs .swiper-slide {
  width: 80px;
  height: 80px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.product-swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.thumb-item {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 2px solid transparent;
  background-color: #f8fafc;
  overflow: hidden;
  padding: 6px;
  transition: border-color 0.2s;
}

.product-swiper-thumbs .swiper-slide-thumb-active .thumb-item {
  border-color: #16a34a;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- PRODUCT INFO STYLES --- */
.product-info {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}

.product-info .page-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.25;
}

/* Ціновий блок */
.product-info__price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.product-info__price {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
}

.product-info__old-price {
  font-size: 20px;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Мета-інформація (Артикул, вага) */
.product-info__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}

.product-info__meta p strong {
  color: #334155;
  font-weight: 600;
}

/* Купівля: Вибір кількості та Кнопка */
.product-info__buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* flex-wrap: wrap; */
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}
/* Кнопка "У мій кошик" */
.product-info__buy .btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  width: 100%;
  max-width: 220px;       /* Оптимальна ширина кнопки */
  height: 48px;           /* Чітка фіксована висота */
  min-height: 48px;       /* Захист від стискання Flexbox-ом */
  flex-shrink: 0;         /* Забороняємо стискати висоту */
  
  padding: 0 24px;
  border-radius: 24px;    /* Радіус закруглення = 1/2 від height для ідеальної овал-форми */
  
  background-color: #68a326;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;         /* Нормалізуємо висоту рядка, щоб текст не виштовхував межі */
  text-decoration: none;
  
  border: none;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.product-info__buy .btn--primary:hover {
  background-color: #5a8f20;
}

.product-info__buy .btn--primary:active {
  transform: translateY(1px);
}
/* Вибір кількості */
.quantity-picker {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 180px; /* Контрольована ширина лічильника */
}

.quantity-picker__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.quantity-picker__input {
  width: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  border: none;
  background: transparent;
  outline: none;
}

.quantity-picker__btn:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.quantity-picker__input::-webkit-outer-spin-button,
.quantity-picker__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Кнопка купити */
.product-info__buy .btn--primary {
  flex: 1;
  min-width: 180px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #71a329;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.product-info__buy .btn--primary:hover {
  background-color: #5c8720;
  transform: translateY(-1px);
}

.product-info__buy .btn--primary:active {
  transform: translateY(0);
}

/* ==========================================================================
   СЕКЦІЯ "РЕКОМЕНДУЄМО" (RECOMMENDED SECTION)
   ========================================================================== */

.recommended-section {
  padding: 40px 0 80px;
  width: 100%;
}

/* Модифікатор для шапки, щоб заголовок був строго по центру */
.products-section__header--center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  text-align: center;
}

.products-section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary, #3b7e28);
  margin: 0;
  position: relative;
}

/* Адаптив для брекпоінту 1440px+ */
@media (min-width: 1441px) {
  .recommended-section .container {
    max-width: 1440px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .products-section__header--center .products-section__title {
    font-size: 1.5rem;
  }
}
/* Контейнер секції з відступами для запобігання скроллу */
.recommended-section {
  position: relative;
  overflow: hidden; /* Гарантує відсутність горизонтального скролу сторінки */
}

/* Слайдер: залишаємо overflow: hidden, але додаємо padding під рамку/тінь */
.recommended-slider {
  overflow: visible !important;
  padding-bottom: 16px; /* Додатковий відступ знизу під тінь/кнопку */
  margin-bottom: -16px;
}

/* Переконуємося, що картки гарно реагують на hover */
.recommended-slider .swiper-slide {
  height: auto; /* Щоб усі картки були однакові за висотою */
}

.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* При наведенні картка піднімається або підсвічується в межах свого padding */
.product-card:hover {
  z-index: 2;
}
/* ==========================================================================
   СЕКЦІЯ ПІДПИСКИ (SUBSCRIPTION)
   ========================================================================== */

.subscribe-section {
  padding: 30px 0 50px;
}

.subscribe-card {
  background-color: #cbeaa6;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.subscribe-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
}

.subscribe-card__subtitle {
  font-size: 13px;
  line-height: 1.4;
  color: #333333;
  max-width: 580px;
  margin: 0 auto 20px;
}

/* Форма */
.subscribe-form {
  max-width: 520px;
  margin: 0 auto 12px;
}

/* Контейнер-пігулка (Десктоп / Планшет) */
.subscribe-form__field {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 50px;
  padding: 0px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

/* Інпут */
.subscribe-form__input {
  flex-grow: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 16px 10px 24px;
  font-size: 14px;
  color: #333333;
  height: 44px; /* Фіксуємо однакову висоту для чіткого вирівнювання */
  box-sizing: border-box;
}

.subscribe-form__input::placeholder {
  color: #888888;
}

/* Кнопка */
.subscribe-form__btn {
  background-color: #558b2f;
  color: #ffffff;
  border: none;
  border-radius: 40px;
  padding: 0 28px;
  height: 44px; /* Висота збігається з інпутом, зазори дає padding батька */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.subscribe-form__btn:hover {
  background-color: #436d24;
}

.subscribe-form__btn:active {
  transform: scale(0.98);
}

.subscribe-card__note {
  display: block;
  font-size: 11px;
  color: #555555;
}

/* ==========================================================================
   АДАПТИВ ДЛЯ МОБІЛЬНИХ ПРИСТРОЇВ (до 575px)
   ========================================================================== */

@media (max-width: 575px) {
  .subscribe-form__field {
    flex-direction: column;
    align-items: center; /* ЧІТКЕ ЦЕНТРУВАННЯ кнопки та інпуту по осі */
    background-color: transparent; /* Ховаємо спільне біле поле */
    padding: 0;
    gap: 12px; /* Внутрішній відступ між інпутом і кнопкою */
  }

  .subscribe-form__input {
    width: 100%;
    background-color: #ffffff; /* Окремий білий блок під інпут */
    border-radius: 30px;
    height: 48px;
    padding: 0 20px;
    text-align: center;
  }

  .subscribe-form__btn {
    width: 60%; /* Ваша бажана ширина */
    min-width: 180px; /* Захист від занадто вузьких екранів */
    border-radius: 30px;
    height: 48px;
    margin: 0 auto; /* Повторний захист центрування */
  }
}

/* ==========================================
   СЕКЦІЯ СТАТТЕЙ / БЛОГ
========================================== */
.blog-posts {
  padding: 60px 0;
  background-color: #f4f8f3; /* Світло-салатовий відтінок під HAOGANG */
  background-image: url('images/bg-posts-green.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.blog-posts__title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin-bottom: 32px;
}

/* Desktops: 4 колонки */
.blog-posts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Картка статті */
.post-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-card__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Співвідношення 16:9 */
  overflow: hidden;
  background-color: #eef3ed;
}

.post-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card__image {
  transform: scale(1.02);
}

.post-card__content {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card__title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #222222;
  text-align: center;
  margin: 0;
}

/* ==========================================
   АДАПТИВНІСТЬ (Планшети та Мобільні)
========================================== */
@media (max-width: 991px) {
  /* Відмовляємося від слайдера на користь вертикального стеку */
  .blog-posts__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 16px;
  }

  .post-card__title {
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .blog-posts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Від 1440px — 4 картки в ряд */
@media (min-width: 1440px) {
  .blog-posts__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ==========================================
   СЕКЦІЯ КОНТАКТІВ / CONTACTS BAR
========================================== */
.contacts-bar {
  padding: 50px 0 30px;
  background-color: var(--color-white, #ffffff);
}

/* DESKTOP (від 1025px): 4 елементи в рядок */
.contacts-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 36px;
  align-items: center;
}

.contacts-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Припідняття 1-ї та 4-ї картки на десктопі */
.contacts-card--offset {
  transform: translateY(-28px);
}

/* Зелений кружечок для іконки */
.contacts-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}
@media (min-width: 1440px) {
  .contacts-card__icon-wrap {
      width: 64px;
      height: 64px;
  }
}

/* SVG іконка: примусово фарбуємо через змінну білого кольору */
.contacts-card__icon {
  width: 28px;
  height: 28px;
  fill: var(--color-white, #ffffff);
  color: var(--color-white, #ffffff);
}

.contacts-card__text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  text-decoration: none;
  font-style: normal;
}

/* ==========================================
   АДАПТИВНІСТЬ (НАШІ БРЕЙКПОІНТИ)
========================================== */

/* LAPTOP & TABLET (від 768px до 1024px): сітка 2х2 */
@media (max-width: 1024px) {
  .contacts-bar {
    padding: 36px 0;
  }

  .contacts-bar__grid {
    max-width: 80%;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
    /* row-gap: 32px; */
    column-gap: 36px;
    align-items: center;
  }

  .contacts-card--offset {
    transform: translateY(0);
  }
}

/* MOBILE (до 767px): 1 колонка (вертикальний стек) */
@media (max-width: 767px) {
  .contacts-bar {
    padding: 24px 0;
  }

  .contacts-bar__grid {
    grid-template-columns: 1fr;
    /* row-gap: 48px; */
  }

  .contacts-card__icon {
    width: 24px;
    height: 24px;
  }

  .contacts-card__text {
    font-size: 15px;
  }
}


/* ==========================================
   SITE FOOTER / ПІДВАЛ
========================================== */

/* 1. БІЛИЙ ЯРУС */
.footer-trust {
  background-color: var(--color-white, #ffffff);
  padding: 24px 0;
  border-top: 1px solid var(--color-border, #e5e5e5);
}

.footer-trust__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-left: auto;
  margin-right: auto;
}
/* @media (min-width: 768px) {
  .footer-trust__wrapper {
    gap: 12px;
  }
} */
/* Соцмережі */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* @media (min-width: 1024px) {
  .footer-socials {
    gap: 12px;
  }
} */
/* Логотип */
.footer-trust__logo {
  flex-shrink: 0;
}

.footer-trust__img {
  height: 100px;
  width: auto;
  display: block;
}

/* Платіжні системи */
.footer-services {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Габарити іконок без примусового заливання кольором */
.footer-services__icon,
.footer-socials__icon {
  width: 40px;
  height: 40px;
  display: block;
  color: var(--color-icons);
  fill: currentColor;
  /* stroke: currentColor; */
  flex-shrink: 0;
}

/* 2. ЗЕЛЕНИЙ ЯРУС */
.footer-accent-group {
  background-color: var(--color-primary-hover, #6cb81d);
  color: var(--color-white, #ffffff);
  padding-top: 40px;
  padding-bottom: 20px;
}

/* Сітка навігації */
.footer-main__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-nav__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.footer-nav__link {
  color: var(--color-white, #ffffff);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-nav__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-nav__info {
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-developer {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.8;
}

.footer-developer__link {
  color: var(--color-white, #ffffff);
  font-weight: 700;
  text-decoration: underline;
}

/* 3. РОЗДІЛЮВАЧ ТА КОПІРАЙТ */
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
}

.footer-copyright__text {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}

/* ==========================================
   АДАПТИВНІСТЬ
========================================== */

@media (max-width: 1024px) {
  .footer-main__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 767px) {
  .footer-trust__wrapper {
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    text-align: center;
  }

  .footer-main__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  /* .footer-socials,
  .footer-services {
    justify-content: center;
    flex-wrap: wrap;
  } */
}

/* ==========================================================================
   СЕО СЕКЦІЯ (SEO SECTION)
   ========================================================================== */

.seo-section {
  background-color: #fcf8ee; /* Світло-бежевий фон з макету */
  padding: 40px 0;
  width: 100%;
}

.seo-block {
  text-align: center;
}

.seo-block__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Обгортка WYSIWYG-редактора */
.wysiwyg-content {
  font-size: 13px;
  line-height: 1.6;
  color: #333333;
  text-align: justify; /* Або center / left в залежності від стилю сайту */
  max-width: 100%;
}

/* Базові стилі для тегів з WYSIWYG */
.wysiwyg-content p {
  margin-bottom: 14px;
}

.wysiwyg-content p:last-child {
  margin-bottom: 0;
}

.wysiwyg-content ul, 
.wysiwyg-content ol {
  margin: 10px 0 15px 20px;
  text-align: left;
}

.wysiwyg-content a {
  color: #558b2f;
  text-decoration: underline;
}

/* --- WYSIWYG Content Styles --- */
.wysiwyg-content {
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
}

.wysiwyg-content p {
  margin-bottom: 16px;
}

/* Акцентне виділення (зелений або фірмовий колір як у прикладах) */
.wysiwyg-title {
  font-size: 20px;
  font-weight: 700;
  color: #2b7a3e; /* Акцентний колір для заголовків всередині тексту */
  margin-top: 24px;
  margin-bottom: 16px;
  text-transform: none;
}

.wysiwyg-content strong {
  color: #111111; /* Чорний колір для акцентного жирного тексту */
  font-weight: 700;
}

.wysiwyg-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
}

.wysiwyg-list li {
  margin-bottom: 10px;
}

.wysiwyg-note {
  background-color: #f5f9f6;
  border-left: 4px solid #2b7a3e;
  padding: 16px;
  margin-top: 24px;
  border-radius: 0 8px 8px 0;
}

/* --- Tabs Nav Styles --- */
.product-tabs__nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 24px;
  overflow-x: auto;
}

.product-tabs__btn {
  position: relative; /* Необхідно для позиціонування підкреслення */
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* Зелена смужка, яка виїжджає зліва направо */
.product-tabs__btn::after {
  content: '';
  position: absolute;
  bottom: -2px; /* Накладається точно на нижній border батьківського контейнера */
  left: 0;
  width: 100%;
  height: 6px;
  background-color: #2b7a3e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Зміна кольору тексту при hover та active */
.product-tabs__btn:hover,
.product-tabs__btn.active {
  color: #2b7a3e;
}

/* Виїзд смужки на всю ширину при hover та active */
.product-tabs__btn:hover::after,
.product-tabs__btn.active::after {
  transform: scaleX(1);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}
/* Основний блок: галерея ліворуч, інфо праворуч */
.product-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .product-main {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .product-gallery {
    width: 45%;
    flex-shrink: 0;
  }
  
  .product-info {
    width: 55%;
  }
}
.swiper-wrapper {
  /* gap: 8px; */
}
/* Стилізація мініатюр */
.product-swiper-thumbs {
  margin-top: 16px;
  padding: 4px 4px 16px 4px;
  overflow: hidden;
}

.product-swiper-thumbs .swiper-slide {
  width: 64px;
  height: 64px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, border-color 0.3s;
}

.product-swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.thumb-item {
  width: 100%;
  height: 80%;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.product-swiper-thumbs .swiper-slide-thumb-active .thumb-item {
  border-color: #2b7a3e; /* Акцентна рамка активної мініатюри */
}

.thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumb-item--video {
  background: #f8f8f8;
  color: #e53935; /* Червона кнопка Play як на скриншоті */
}

.play-icon {
  width: 28px;
  height: 28px;
}

/* Мобільна адаптація табів у вертикальний акордеон */
@media (max-width: 767px) {
  /* Ховаємо десктопну панель кнопок */
  .product-tabs__nav {
    display: none;
  }

  .product-tabs {
    border-top: 1px solid #e0e0e0;
  }

  /* Кожен таб стає блоком акордеона */
  .tab-pane {
    display: block !important;
    border-bottom: 1px solid #e0e0e0;
  }

  .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    cursor: pointer;
    text-transform: uppercase;
  }

  /* Галочка / стрілочка праворуч */
  .accordion-header::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(-45deg); /* Стрілочка вправо або вниз */
    transition: transform 0.3s ease;
  }

  /* Ховаємо контент акордеона за замовчуванням */
  .tab-pane .wysiwyg-content {
    display: none;
    padding-bottom: 16px;
  }

  /* Відкритий стан акордеона */
  .tab-pane.accordion-open .wysiwyg-content {
    display: block;
  }

  .tab-pane.accordion-open .accordion-header::after {
    transform: rotate(45deg); /* Поворот галочки при відкритті */
  }
}

/* На десктопі акордеон-заголовки ховаємо */
@media (min-width: 768px) {
  .accordion-header {
    display: none;
  }
}

/* 1. Ширина всього скролбару */
::-webkit-scrollbar {
  width: 18px; /* Робимо широку смугу */
}

/* 2. Фон дорожки (треку) */
::-webkit-scrollbar-track {
  background-color: #e2e8f0; /* Помітний світло-сірий фон, як у системного */
  border-left: 1px solid #cbd5e1; /* Легкий контур зліва для чіткої межі */
}

/* 3. Сам зелений ползунок */
::-webkit-scrollbar-thumb {
  background-color: var(--color-accent); /* Твій акцентний зелений */
  border-radius: 4px;        /* Легке заокруглення кутів (як у системних блоків) */
  border: 2px solid #e2e8f0; /* Внутрішній відступ від треку */
}

/* 4. Стан при наведенні та затисканні */
::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary-hover);
}

::-webkit-scrollbar-thumb:active {
  background-color: #3f6615;
}

/* Для Firefox */
html {
  scrollbar-width: auto;
  scrollbar-color: #68a326 #e2e8f0;
}





/* ==========================================================================
   Стилі для нової сторінки Доставки та Оплати (.contacts-section)
   ========================================================================== */

.contacts-section__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary, #000);
  margin-bottom: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .contacts-section__title {
    font-size: 36px;
    text-align: left;
  }
}

.contacts-block {
  margin-bottom: 48px;
}

.contacts-block__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary, #000);
  margin-bottom: 20px;
  position: relative;
  padding-left: 14px;
}

.contacts-block__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Нова сітка контактів у блоці доставки */
.delivery-contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .delivery-contacts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Нова картка з унікальною назвою (ніяких конфліктів із .contacts-card) */
.delivery-contact-card {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.delivery-contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  color: var(--color-primary);
  flex-shrink: 0;
}

.delivery-contact-card__icon svg {
  fill: currentColor;
}

.delivery-contact-card__label {
  display: block;
  font-size: 14px;
  color: #666666;
  margin-bottom: 4px;
}

.delivery-contact-card__link {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.delivery-contact-card__link:hover {
  color: var(--color-primary);
}

.delivery-contact-card__subtext {
  font-size: 13px;
  color: #666666;
  margin-top: 4px;
}

.delivery-contact-card__messengers {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.messenger-btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.messenger-btn:hover {
  opacity: 0.85;
}

.messenger-btn--tg {
  background-color: #229ed9;
}

.messenger-btn--viber {
  background-color: #7360f2;
}

/* Баннер та сітка варіантів доставки */
.contacts-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background-color: #f5f5f5;
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  margin-bottom: 24px;
}

.contacts-banner__icon {
  font-size: 24px;
}

.contacts-banner__text {
  font-size: 15px;
  color: #333333;
  margin: 0;
  line-height: 1.4;
}

.contacts-banner__text .highlight {
  color: var(--color-primary);
  font-weight: 600;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .delivery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  padding: 20px;
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.info-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.info-card__badge {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}

.info-card__badge--np {
  background-color: #e52d27;
  color: #ffffff;
}

.info-card__badge--up {
  background-color: #f7931e;
  color: #ffffff;
}

.info-card__time {
  font-size: 13px;
  color: #666666;
  font-weight: 500;
}

.info-card__list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: #333333;
}

.info-card__list li {
  margin-bottom: 6px;
}

/* Оплата та юридичні блоки */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .payment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.payment-card {
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.payment-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000000;
}

.payment-card__desc {
  font-size: 14px;
  color: #666666;
  margin-bottom: 16px;
  line-height: 1.4;
}

.payment-card__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-tag {
  display: inline-block;
  padding: 4px 8px;
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #333333;
}

.contacts-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .contacts-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-box {
  padding: 20px;
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333333;
  line-height: 1.5;
}

.info-box__sub {
  margin-top: 8px;
  font-size: 13px;
  color: #666666;
}

.info-box--legal {
  background-color: #ffffff;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  font-size: 14px;
  color: #666666;
}

.legal-list li {
  margin-bottom: 4px;
}