
@font-face {
  font-family: "MatiottElegantFront";
  src: url("/fonts/MatiottElegantFront.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}


.seo-text {
  padding: 30px 0 32px;
}

/* применение */
/* .burger-logo {
  font-family: "MatiottElegantFront", sans-serif;
  font-size: 24px;
  text-align: center;
  margin: 20px 0 10px;
}

.burger-separator {
  height: 2px;     
  background-color: #aa821b;
  width: 100%;          
  margin: 0 auto 20px;
} */


.gift-block {
  background: transparent;
  padding: 40px 20px;
  color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.gift-content {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
  flex-wrap: wrap;
}

.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}


.gift-image, .gift-text-wrapper {
    width: 100%;
  }

.gift-text-wrapper, .gift-image {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}


.gift-text {
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
}

.gift-actions {
  text-align: center;
  margin-top: 20px;
}




/* Адаптив для маленьких экранов */
@media (max-width: 768px) {
  .gift-content {
    flex-direction: column;
    align-items: center;
  }
  .gift-title {
    text-align: center;
  }
}

.gift-title {
  font-size: 2rem;
  margin-bottom: 16px;
  text-align: left;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto; /* сдвигаем вправо */
}

.telegram-icon img {
  width: 32px; /* размер иконки */
  height: 32px;
  transition: filter 0.3s;
  background-color: transparent;
}

.telegram-icon:hover img {
  filter: brightness(0) invert(1); /* иконка белая при наведении */
}

.phone-link {
  font-weight: 600;
  color: #cab165;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.phone-link:hover {
  color: #ffffff; /* белый при наведении */
}

.full-phone:hover {
  color: var(--color-primary-light)
}

/* Адаптив */
@media (max-width: 768px) {
  .header-contacts {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }
}


/* Товар в каталоге */

.product-card { 
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  transition: box-shadow 0.3s ease; /* убираем transform */
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15); /* лёгкая тень на весь блок */
}

/* Фото-блок */
.product-image { 
  position: relative;
  border: 1px solid lightgray;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(49, 38, 26, 0) 55%,
    rgba(49, 38, 26, 0.71) 73%,
    #31261a 100%
  );
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  transition: background 0.3s ease; /* плавная смена градиента */
}

.product-image:hover {
  background: linear-gradient(
    180deg,
    rgba(49, 38, 26, 0) 55%,
    rgba(214, 211, 211, 0.5) 73%,
    rgba(83, 82, 82, 0.8) 100%
  );
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease; /* если нужен лёгкий zoom на изображении */
}

.product-image:hover img {
  transform: scale(1.02); /* лёгкое увеличение без подскока блока */
}

/* Кнопки */
.product-btn {
    padding: 16px 32px;
    color: var(--color-primary-light);
    background-color: var(--color-brand-normal);
    border: 2px solid var(--color-brand-normal);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

.product-list-btn {
    padding: 10px 140px;
    color: var(--color-primary-light);
    background-color: var(--color-brand-normal);
    border: 2px solid var(--color-brand-normal);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.size-guide-btn {
    padding: 6px 10px;
    color: var(--color-primary-light);
    background-color: var(--color-brand-normal);
    border: 2px solid var(--color-brand-normal);
    border-radius: 8px;
    cursor: pointer;
}

.product-form-btn {
    padding: 10px 60px;
    color: var(--color-primary-light);
    background-color: var(--color-brand-normal);
    border: 2px solid var(--color-brand-normal);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.product-btn:hover, 
.product-list-btn:hover,
.product-form-btn:hover,
.size-guide-btn:hover {
  color: var(--color-brand-dark);
  background-color: transparent;
  text-decoration: none;
}


.products-section {
  display: flex;
  gap: 24px; /* расстояние между карточками */
  flex-wrap: wrap; /* чтобы на маленьких экранах переходили на новую строку */
  justify-content: center; /* центрируем блоки */
}
.products-section .product-card {
  flex: 1 1 300px; /* карточка будет минимум 300px, растягивается */
  max-width: 350px; /* ограничение ширины */
}


 /* СЕО текст */   
/* Скрываем весь текст кроме preview */
.full-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* Скрываем чекбокс */
.toggle-seo {
  display: none;
}

/* Стили для кнопки "Продовжити..." */
.toggle-label {
  display: inline-block;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-brand-normal);
}

/* При клике раскрываем весь текст */
.toggle-seo:checked + .toggle-label + .full-text {
  max-height: 2000px; /* достаточно для полного текста */
}


/* Карусель */

.carousel-button {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    height: 44px;
    fill: var(--color-primary-dark);
    background-color: transparent;
    border-radius: 50%;
    border: 1px solid var(--color-primary-dark);
    cursor: pointer;
}

.carousel-button:hover {
    background-color: var(--color-primary-dark);
    fill: var(--color-brand-normal);
}

.carousel-button.next {
    transform: rotate(180deg);
}

.products-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
}

.products-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.product-card {
  flex: 0 0 calc(100% / 3); /* всегда ровно 3 карточки в ряду */
  box-sizing: border-box;
  text-align: center;
  font-size: 24px;
  padding: 40px 0;
}


body {
  margin: 0;
  padding: 0;

  /* фон с прожилками */
  background: url("/images/background.png") no-repeat center center fixed;
  background-size: cover;
  background-color: #000;
}


.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
}

.logo-images-header {
    width: 80px;
    height: auto;
}

/* Base */

:root {
    --color-primary-dark: #ffffff;
    --color-primary-light: #0A0A0A;
    --color-brand-normal: #D4AF37;
    --color-brand-dark: #D4AF37;
    --color-secondary-light: #A28268;
}

body {
    color: var(--color-primary-dark);
    background-color: var(--color-primary-light);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
}

h1, h2, h3 {
  color: var(--color-brand-dark);
}


a {
    display: inline-block;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

address {
    font-style: normal;
}

.section {
    padding: 20px 0;
}

.vysually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 32px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.header-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 40px;
}

.header-menu {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    justify-content: center;
    flex-wrap: nowrap;
}

/* ССылки */

.link-footer {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

.link-header {
    text-decoration: none;
    color: var(--color-primary-dark);
    box-sizing: 300px;
}

.link-header-info {
    text-decoration: none;
    color: var(--color-primary-dark);
    box-sizing: 300px;
}

.link-header-info:hover {
    color: var(--color-primary-light);
}


.link-header:hover {
    color: var(--color-brand-normal);
}

.link-footer:hover {
    color: var(--color-primary-dark);
}

.link-header-burger-menu:hover {
    color: var(--color-primary-light)
}


/* Main */

.hero-section {
    padding: 140px 0;
    background-image: url('../images/download1.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero-title {
    margin-bottom: 0;
    color: var(--color-primary-light);
    text-align: left;
    font-size: clamp(25px, 8vw, 108px);
    font-weight: 700;
    font-family: Helvetica;
}

.hero-title .accent {
    color: var(--color-brand-normal)
}

.hero-title-privacy {
    margin-bottom: 0;
    color: var(--color-primary-light);
    text-align: center;
    font-size: clamp(10px, 6vw, 56px);
    font-weight: 200;
    font-family: Helvetica;
}

.hero-title-privacy .accent {
    color: var(--color-brand-normal)
}

.advantages-section {
    padding: 16px 0;
    background-color: var(--color-brand-normal)
}

.advantages-list {
    display: flex;
    justify-content: space-between;
    gap: 40px;  
}

.advantages-item {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-primary-light);
}

.section-title {
    font-weight: 600;
    font-size: 34px;
    line-height: 1.3;
}

.section-title.centered {
    text-align: center;
}

.section-title .accent {
    color: var(--color-brand-dark)
}



.brand {
    color: var(--color-brand-normal);
    text-transform: uppercase;
    font-weight: 600;
}   

/* boxs section*/

.boxs-title {
    position: relative;
    margin: 0 auto 80px;
}

.boxs-title::before,
.boxs-title::after {   
    position: absolute;
    bottom: 24px;
    display: block;
    width: 352px;
    border: 2px solid var(--color-brand-normal);
    content: '';
}

.boxs-title::before{
    left: 0;    
}

.boxs-title::after{
   right: 0;    
}

.boxs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 30px;
}

.boxs-item {
    flex-basis: calc((100% - 30px) /2);
}

.box-card {
    display: flex;
    gap: 15px;
}

.box-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 250px;
    aspect-ratio: 1/1;
    border-radius: 4px 4px 4px 200px;
    box-shadow: -16px 16px 0 0 var(--color-primary-light), -16px 16px 0 2px var(--color-secondary-light)
}

.box-title {
    margin-bottom: 16px;
    font-size: 30px;
    font-weight: 600;
    }

/* Format section */

.formats-container {
    display: flex;
    gap: 32px;
    align-items: center;
}

.formats-title {
    margin-bottom: 80px;
}

/* Contact section */

.contact-section {
    padding-bottom: 96px;
}

.contact-container {
    display: flex;
    gap: 32px;
}

.contact-map {
    flex-shrink: 0;
    border-radius: 16px;
    border: none;
}

.contact-title {
    margin-bottom: 16px;
}

/* Footer */

.footer {
    padding: 32px 0;
}

.footer-container {
    display: flex;
    gap: 20px;
}

.footer-nav,
.footer-address {
    display: flex;
    flex-basis: 50%;
    gap: 20px;
}

.footer-logo,
.footer-menu {
     flex-basis: 50%;
}

.footer-logo {
    display: inline-block;
}

.logo-images-footer{
    width: 120px;
    height: 120px;
}

.address-list,
.address-info {
     flex-basis: 50%;
}

.footer {
    background-color: var(--color-brand-dark);
}

.address-link {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-primary-light);
    text-decoration: none;
}

.address-link:hover {
    color: var(--color-primary-dark);
}

.social-icons {
    display: flex;      /* делает список горизонтальным */
    gap: 16px;          /* расстояние между иконками */
    padding: 0;
    margin: 20px;
    list-style: none;   /* убираем маркеры списка */
}

.address-icon {
    width: 44px;
    height: 44px;
    color: var(--color-primary-light);
    fill: currentColor;        /* чтобы use наследовал цвет */
    transition: color 0.3s;
}

.address-icon:hover {
    color: var(--color-primary-dark);
}


.address-copyright {
    font-size: 12px;
}

/* Form */

.form-field {
    margin-bottom: 32px;
}

.form-label {
    display: block;
}

.form-input {
    padding: 16px 42px;
    width: 100%;
    font-size: 14px;
    line-height: 1.17;
    border: 1px solid var(--color-secondary-light);
    border-radius: 8px;
    background-color: transparent;
} 

.form-input:focus {
    border-color: var(--color-brand-normal);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-primary-dark);
    font-size: 14px;
    line-height: 1.17;
}

.form-input:focus::placeholder {
    color: var(--color-brand-dark);
    }

.form-comment {
    padding: 16px 42px;
    resize: none;
    width: 100%;
    border: 1px solid var(--color-secondary-light);
    border-radius: 8px;
    background-color: transparent;
}

.form-button {
    display: block;
    margin: 0 auto 24px;
}

.form-terms {
    margin: 0 auto;
    max-width: 220px;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.form-terms-link {
    color: var(--color-primary-dark);
    text-underline-offset: 2px;
}

/* --- Адаптивные стили --- */

/* Экраны до 1024px */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 72px;
    }

    .boxs-list {
        gap: 24px;
    }

   .boxs-item {
        flex-basis: calc((100% - 24px) / 2);
    }

    .hero-section {
        padding: 100px 0;
    }
}

/* Экраны до 768px */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .header-menu {
        flex-direction: column;
        gap: 16px;
    }

    .formats-container, .traditions-container, .boxs-list {
        flex-direction: column;
        gap: 20px;
    }

    .formats-item, .boxs-item {
        flex-basis: 100%;
    }

    .hero-section {
        padding: 80px 16px;
    }

    .box-photo {
        width: 100%;
        height: auto;
    }
}

/* Экраны до 480px */
@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .formats-container, .traditions-container, .boxs-list {
        gap: 16px;
    }

    .box-photo {
        border-radius: 8px;
    }

    .advantages-list {
        flex-direction: column;
        gap: 16px;
    }
}

/* Адаптив */

/* Мобильные устройства */
@media (max-width: 767px) {
    .formats-item {
        flex-basis: 100%; /* одна карточка на ряд */
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1023px) {
    .formats-item {
        flex-basis: calc((100% - 20px)/2); /* две карточки в ряд */
    }
}

/* Десктоп */
@media (min-width: 1024px) {
    .formats-item {
        flex-basis: calc((100% - 40px)/3); /* три карточки в ряд */
    }
}



/* базовое меню */
/* .header {
  background: #000;
  color: #fff;
  padding: 15px 20px;
  position: relative;
}

.nav-menu ul {
  display: flex;
  gap: 20px;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.phone-btn i {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('phone.svg') no-repeat center/cover;
}
.tg-btn {
  background: #229ED9;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}
*/
.size-guide-block {
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}

.size-guide-content {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.size-guide-text-wrapper {
  flex: 1 1 auto;  
  min-width: 0;    
}

.size-guide-image {
  flex: 0 0 550px;   
  max-width: 500px; 
}

.size-guide-image img {
  width: 100%;
  height: auto;
  display: block;
}


@media (max-width: 768px) {
  .size-guide-content {
    flex-direction: column;
    align-items: center;
  }
  .size-guide-image {
    flex: none;
    max-width: 100%;
  }
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer.open {
  max-height: 500px; 
}

.faq-question {
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "▼";
  position: absolute;
  right: 0;
  transition: transform 0.3s;
}

.faq-question.active::after {
  transform: rotate(180deg);
} */


/* Каталог */
.catalog {
  padding: 40px 0;
}

/* Верхняя панель */
.catalog-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}


/* Карточка товара */
.product-card {
  background: transparent;
  padding: 16px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #cab165;
}

.product-actions {
  padding: 16px;
  text-align: center;
}


/* Фильтр и сортировка */
.control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--color-brand-normal);
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  color: var(--color-brand-normal);
}


.control-btn .icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Фильтр */
.filter-btn .icon {
  background-image: url("/images/filter.png"); /* жёлтая иконка */
}
.filter-btn:hover .icon {
  background-image: url("/images/filter-black.png"); /* чёрная иконка */
}

/* Сортування */
.sort-btn .icon {
  background-image: url("/images/clipart.png"); /* жёлтая иконка */
}
.sort-btn:hover .icon {
  background-image: url("/images/clipart-black.png"); /* чёрная иконка */
}

.control-btn:hover {
  background: var(--color-brand-normal);
  color: #000000;
  border-color: var(--color-brand-normal);
}


/* Каталог */
.catalog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 601px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr); /* планшеты */
  }
}

@media (min-width: 901px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr); /* десктоп */
  }
}


/* Пагинация на каталоге */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
}

.pagination a {
  color: #fff;
  padding: 8px 12px;
  border: 1px solid #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.pagination a.active {
  background: var(--color-brand-dark);
  color: #000;
  border: none;
}

.pagination a:hover:not(.active) {
  background: var(--color-brand-dark);
  border: none;
  color: #000;
}

.pagination a.prev,
.pagination a.next {
  font-size: 18px;
}


.pagination a.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}

/* Карточка товару */
.product-page { 
  padding: 40px 0;
}

.product-flex {
  display: flex;
  gap: 70px; 
  flex-wrap: wrap;
}

.product-gallery {
  display: flex;
  gap: 10px;
}

.gallery-images img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 1px solid lightgray;
  border-radius: 16px;
  cursor: pointer;
  margin-bottom: 12px;
  display: block;
}

.gallery-images:hover img {
  background: linear-gradient(
    180deg,
    rgba(49, 38, 26, 0) 55%,
    rgba(214, 211, 211, 0.5) 73%,
    rgba(83, 82, 82, 0.8) 100%
  );
}

/* Модалка */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.custom-modal-wrapper {
  max-width: 80%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-modal-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.custom-close, .custom-prev, .custom-next {
  position: absolute;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

.custom-close { top: 20px; right: 40px; }
.custom-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.custom-next { right: 20px; top: 50%; transform: translateY(-50%); }

.custom-prev:hover, .custom-next:hover, .custom-close:hover {
  color: #ffcc00;
}

/* Інфо */
.product-info {
  flex: 1; 
}

/* Модалка */
.modal { 
  display: none; 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,.6); 
}

.modal-close {
  position: absolute; 
  top: 10px; 
  right: 10px;
  border: none; 
  background: none; 
  font-size: 24px; 
  cursor: pointer;
}


.product-sizes {
    margin-top: 15px;
}

/* Кнопки розмірів */
.sizes-list { 
  display: flex; 
  gap: 8px; 
  margin: 15px 0; 
}

.size-btn {
  padding: 6px 12px;
  border: 1px solid #cab165;
  background: transparent;
  color: #cab165;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-btn.active {
  background: #cab165;
  color: #000;
}


.product-price {
  font-size: 20px;
  font-weight: bold;
  color: #cab165; /* жёлтый */
  margin: 12px 0;
}



/* Переваги */
.product-advantages {
  display: flex; gap: 20px; margin: 20px 0;
  list-style: none; padding: 0;
}
.product-advantages li {
  display: flex; 
  flex-direction: column; 
  align-items: center;
  font-size: 14px; 
  text-align: center;
}
.product-advantages img {
  width: 40px; 
  height: 40px; 
  margin-bottom: 6px;
}


/* Опис і характеристики */

.product-desc-flex { 
  display: flex; 
  gap: 40px; 
  flex-wrap: wrap; 
  margin: 40px 0;
 }

.product-description {
  flex: 0 0 auto; /* точная ширина по содержимому */
}

.product-specs ul { 
  list-style: none; 
  padding: 0; 
}
.product-specs li { 
  margin-bottom: 6px; 
}

/* Карусель (Раніше переглядали) */
.carousel { 
  display: flex; 
  gap: 20px; 
  overflow-x: auto; 
  padding: 10px 0;
}
.carousel::-webkit-scrollbar { 
  display: none; 
}


/* Простое смещение характеристик вниз (фиксированный отступ) */
/* @media (min-width: 900px) {
  .product-specs {
    margin-left: 35px;
    transition: margin-top .25s ease;
  }
} */

@media (min-width: 900px) {
  .product-specs {
    margin-left: 0;  /* выравниваем по началу контейнера */
  }
}

/* На мобиле убираем отступ, чтобы не ломать поток */
@media (max-width: 899px) {
  .product-specs {
    margin-top: 0;
  }
}


.summary-text {
  color: var(--color-brand-dark);
  margin-bottom: 10px;
}

/* Скрыта по умолчанию */
#size-guide-modal {
  display: none;                /* скрыто */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 12000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* При открытии — добавляем класс active */
#size-guide-modal.active {
  display: flex !important;     /* показываем только при active */
}

/* Внутреннее окно */
#size-guide-modal .modal-content {
  background: #fff;;
  color: #000;
  width: 90%;
  max-width: 520px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
   margin: auto;
}

/* Картинки внутри модалки */
#size-guide-modal .modal-content img {
    max-width: 100%;
    height: auto;
    display: block;
}



/* Кнопка закрытия */
#size-guide-modal .modal-close {
  position: absolute;
  top: 10px;
  color: black;
  right: 12px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}


/* Блок схожих товаров */
.similar-products-section {
  padding: 40px 20px;
  color: #fff;
}

.similar-products-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

/* Сетка карточек */
.similar-products-section .similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Карточка товара */
.similar-products-section .product-card {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 15px;
  transition: transform 0.2s ease;
  width: 100%;
}

/* Ссылки внутри карточки */
.similar-products-section .product-card a,
.similar-products-section .product-card a:visited,
.similar-products-section .product-card a:hover,
.similar-products-section .product-card a:active {
  text-decoration: none !important;
  color: inherit !important;
  display: block; /* делает всю карточку кликабельной */
}

.similar-products-section .product-card:hover {
  transform: translateY(-5px);
}

/* Картинка */
.similar-products-section .product-card img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Заголовок */
.similar-products-section .product-card h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

/* Цена */
.similar-products-section .product-card p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ccc;
}

.similar-products-section .product-card .price {
  font-weight: bold;
  color: #ffd700;
}

/* Большие экраны ≥1360px — 5 карточек в ряд */
@media screen and (min-width: 1360px) {
  .similar-products-section .similar-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Средние экраны ≥1024px — 3 карточки */
@media screen and (min-width: 1024px) and (max-width: 1359px) {
  .similar-products-section .similar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Меньше планшета ≥768px — 2 карточки */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .similar-products-section .similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Мобильные экраны <768px — 1 карточка */
@media screen and (max-width: 767px) {
  .similar-products-section .similar-grid {
    grid-template-columns: 1fr;
  }
}


/* Ссылки внутри карточек просмотренных товаров */
.viewed-product-card a,
.viewed-product-card a:visited,
.viewed-product-card a:hover,
.viewed-product-card a:active {
  text-decoration: none;   /* убираем подчёркивание */
  color: #cab165;          /* фиксируем цвет */
  display: block;          /* вся карточка кликабельна */
}  

.viewed-product-card {
  width: 240px; /* как в похожих товарах */
  overflow: hidden;
  background: transparent;
  text-align: center;
  padding: 12px;
  transition: transform 0.2s ease;
}

.viewed-product-card img {
  width: 100%;
  height: auto;
  display: block;
}

.viewed-product-card h3 {
  font-size: 16px; /* увеличить чтобы совпадало */
  margin: 10px 0 6px;
  color: #cab165;
  text-decoration: none;
}

.viewed-product-card .price {
  font-weight: bold;
  color: #cab165;;
  font-size: 15px;
}

.viewed-product-card:hover {
  transform: translateY(-5px);
}

.viewed-products-section {
  padding: 40px 0;
  background: transparent;
}
.viewed-products-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* общая логика модалки */
.buy-modal {
  display: none;
  position: fixed;
  top:0; left:0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.buy-modal-content {
  background: black;
  color: #fff;
  padding: 20px;
  max-width: 700px;
  border: 1px solid lightgray;
  border-radius: 16px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* рабочая модалка - корзина*/

/* Общая сумма */
#cart-summary {
  margin-top: 20px;
  padding: 12px;
  border-top: 1px solid #cab165;
  text-align: center;
}

#cart-total {
  color: #D4AF37;
  font-weight: bold;
}

/* Вернуться к покупкам */
.back-to-shop {
  margin-top: 15px;
  text-align: center;
}

.back-to-shop .arrow-left {
  color: #D4AF37;
  font-size: 20px;
  margin-right: 8px;
}

.back-to-shop a {
  color: #D4AF37;
  text-decoration: none;
  font-weight: bold;
}

.back-to-shop a:hover {
  text-decoration: underline;
}

#cart-menu-icon {
  position: relative;
  display: inline-block;
  color: #cab165; /* цвет иконки корзины */
  font-size: 20px; /* размер иконки */
  text-decoration: none;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #D4AF37;
  color: #000;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: bold;
  line-height: 18px;
  text-align: center;
  display: none; /* скрыто, пока нет товаров */
}


/* Вид корзины */
#cart-items .cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  border: 2px solid var(--color-brand-normal);
  border-radius: 18px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details span {
  display: block;
  margin-bottom: 4px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.cart-item-controls button {
  background: #cab165;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item-controls span {
  min-width: 20px;
  text-align: center;
  display: inline-block;
}









/* Кнопка закрытия только для этой модалки */
.buy-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Поле комментария */
#order-form textarea {
  resize: none;
  min-height: 80px;
}

/* Мобильная версия карточки товара */
@media (max-width: 767px) {

  .product-page {
    padding: 24px 0 32px;
  }

  .container {
    padding: 0 16px; /* чуть меньше боковые отступы на маленьком экране */
    box-sizing: border-box;
  }

  .product-flex {
    flex-direction: column;
    gap: 24px;
  }

  /* Галерея: в колонку, по центру */
  .product-gallery {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .gallery-images {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .gallery-images img {
    max-width: 100%;
  }

  /* Инфо-блок */
  .product-info {
    width: 100%;
  }

  .product-title {
    font-size: 1.4rem;
    margin-bottom: 4px;
  }

  .product-article {
    font-size: 0.9rem;
    opacity: 0.9;
  }

  .product-price {
    font-size: 1.2rem;
    margin: 10px 0 14px;
  }

  /* Кнопка "Как подобрать размер" — не мелкая */
  .size-guide-btn {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.95rem;
    margin: 8px 0 14px;
  }

  /* Кнопки размеров — чтобы не убегали за край */
  .sizes-list {
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 8px;
  }

  .size-btn {
    min-width: 44px;
    justify-content: center;
  }

  /* Кнопка "Купить" и кнопка в форме — на всю ширину */
  .product-list-btn,
  .product-form-btn {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
  }

  /* Преимущества — колонкой */
  .product-advantages {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .product-advantages li {
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
  }

  /* Описание и характеристики — одна под другой */
  .product-desc-flex {
    flex-direction: column;
    gap: 20px;
    margin: 24px 0 32px;
  }

  .product-description,
  .product-specs {
    width: 100%;
  }

  .product-description h2,
  .product-specs h2 {
    font-size: 1.2rem;
  }

  /* Модалка покупки — более компактные отступы */
  .buy-modal-content {
    width: 94%;
    padding: 16px;
    border-radius: 12px;
  }

  /* Модалка с размером — тоже чуть компактнее */
  #size-guide-modal .modal-content {
    width: 94%;
    padding: 16px;
  }
}

/* На мобилке — строго колонкой и по центру */
@media (max-width: 767px) {
  .product-gallery {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .gallery-images {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .gallery-images img {
    max-width: 100%;
  }
}

@media (min-width: 900px) {
  .product-desc-flex {
    display: flex;
    gap: 40px;
    flex-wrap: nowrap;
    margin: 20px 0 40px; /* было 40px 0, стало 20px сверху */
  }

  .product-description,
  .product-specs {
    flex: 1 1 0; /* две ровные колонки */
  }
}

/* Делаем описание и характеристики строго симметричными */
.product-desc-flex {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 24px 0 40px;
}

.product-description,
.product-specs {
  flex: 1 1 0;
  margin: 0;
  padding: 0;
}

/* На мобилке — одна под другой */
@media (max-width: 899px) {
  .product-desc-flex {
    flex-direction: column;
    gap: 20px;
  }

  .product-description,
  .product-specs {
    width: 100%;
  }
}

.product-specs h2,
.product-description h2 {
  margin: 0 0 12px;
  padding: 0;
}

/* ПОЛНЫЙ сброс отступов у списка характеристик */
.product-specs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-specs li {
  margin: 0 0 6px;
  padding: 0;
}

.product-description,
.product-specs {
  padding-left: 2px; /* одинаковый микросдвиг, если глаз цепляется */
}

/* Жёстко выравниваем описание и характеристики на десктопе */
@media (min-width: 900px) {
  .product-desc-flex {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    margin: 20px 0 40px;
    align-items: flex-start;
  }

  .product-description,
  .product-specs {
    flex: 1 1 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .product-specs {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .product-specs h2,
  .product-description h2 {
    margin: 0 0 12px;
    padding: 0;
  }

  .product-specs ul {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
  }

  .product-specs li {
    margin: 0 0 6px;
    padding: 0;
  }
}

/* по умолчанию мобильную галерею прячем */
.product-gallery-mobile {
  display: none;
}

/* Мобильная версия карточки товара */
@media (max-width: 767px) {

  /* общий вид карточки: колонкой */
  .product-flex {
    flex-direction: column;
    gap: 24px;
  }

  /* старую галерею слева на мобилке скрываем */
  .product-gallery {
    display: none;
  }

  /* показываем мобильную галерею в нужном месте */
.product-gallery-mobile {
    display: flex;
    flex-direction: column;   /* <-- добавили */
    gap: 12px;                /* <-- можно оставить любое */
    margin: 16px 0;
    align-items: center;      /* <-- чтобы красиво центрировалось */
}
  .product-gallery-mobile .gallery-images {
    width: 100%;
    display: flex;
    justify-content: center;
  }

    .sizes-list {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {

  /* Обёртка для кнопок */
  .product-buttons-row {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    width: 100%;
  }

  /* "Як підібрати розмір?" — слева, уже */
  .size-guide-btn {
    flex: 1;            /* занимает 1 долю */
    padding: 10px 8px;
    font-size: 0.85rem;
    width: auto;        /* снимаем 100% */
  }

  /* Кнопка "Купити" — справа, шире */
  .product-list-btn {
    flex: 2;            /* занимает 2 доли */
    padding: 12px 10px;
    font-size: 0.95rem;
    width: auto;        /* снимаем 100% */
  }
}

@media (max-width: 767px) {
  /* скрываем старую кнопку "Як підібрати розмір?" */
  #open-size-guide {
    display: none;
  }
}

@media (max-width: 767px) {

  /* Обёртка двух мобильных кнопок */
  .mobile-buttons-wrap {
    display: flex;
    justify-content: center;   /* центрируем содержимое */
    align-items: center;
    width: 100%;
    gap: 20px;                 /* расстояние между кнопками */
    margin: 16px 0;
  }

  /* Кнопка "Як підібрати розмір?" */
  .mobile-size-btn {
    width: 70px;               /* требуемая ширина */
    padding: 8px 0;
    font-size: 12px;
    text-align: center;
    white-space: normal;       /* перенос слов */
    line-height: 1.1;
  }

  /* Кнопка "Купити" */
  .mobile-buy-btn {
    width: 140px;              /* требуемая ширина */
    padding: 10px 0;
    font-size: 14px;
    text-align: center;
    margin: 0 auto;            /* ставит кнопку строго по центру */
    display: block;
  }

  /* На всякий случай отменяем свойство width:100%, которое у тебя ранее было */
  .size-guide-btn,
  .product-list-btn {
    width: auto !important;
  }
}

@media (max-width: 767px) {
  /* скрываем старую нижнюю кнопку */
  .product-sizes + #buy-btn {
    display: none;
  }
}

/* Мобильная раскладка кнопок "подобрать размер" и "купить" */
@media (max-width: 767px) {

  /* ряд с кнопками */
  .product-buttons-row {
    position: relative;
    width: 100%;
    height: 40px;      /* высота ряда, можно менять */
    margin: 16px 0;
  }

  /* "Як підібрати розмір?" — слева, ширина 10px */
  #open-size-guide-mob {
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    padding: 6px 10px;        /* чтобы ширина реально была около 10px */
    font-size: 13px;   /* можешь подправить под себя */
    text-align: left;
  }

  /* "Купити" — по центру, ширина 24px */
  .mobile-buy-btn {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 80px;
    padding: 10px 140px;
    font-size: 15px;   /* при желании можно увеличить */
    text-align: center;
  }
}


/* Моб-кнопка Купить — показывать ТОЛЬКО на мобилке */
#buy-btn-mob {
    display: none;
}

@media (max-width: 767px) {
    #buy-btn-mob {
        display: block;
    }
}


/* МОБИЛЬНАЯ ВЕРСИЯ: картинка уже экрана, с зазорами по краям */
@media (max-width: 767px) {

  /* на всякий случай ещё раз включаем мобильную галерею */
  .product-gallery-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .product-gallery-mobile .gallery-images {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .product-gallery-mobile .gallery-images img {
    display: block;
    width: 80% !important;       /* вот тут зазор: 10% слева + 10% справа */
    max-width: 340px !important; /* не даём ей разрастись слишком сильно */
    margin: 0 auto;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
  }
}









/* ====== FOOTER BASE ====== */

.footer {
  background-color: #cfa933; /* твой фон */
  color: #000;
  padding: 40px 0;
  font-size: 14px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* списки внутри футера без маркеров и отступов */
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ====== МОБИЛКА (по умолчанию) ======
   2 колонки:
   1-я — лого + копирайт
   2-я — соцсети, каталог, контакты, инфо
*/

.footer-container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 32px;
  row-gap: 10px;
  align-items: flex-start;
}

/* 1 колонка: лого + копирайт слева */

.footer-col-1 {
  grid-column: 1 / 2;
  grid-row: 1 / span 4; /* тянется по высоте всего контента справа */
  text-align: left;
}

.logo-images-footer {
  display: block;
  max-width: 160px;
  height: auto;
  margin: 0 0 12px;
}

.address-copyright {
  margin: 0;
  font-size: 13px;
}

/* 2 колонка: всё остальное */

.footer-social,
.footer-col-2,
.footer-col-3,
.footer-col-4 {
  grid-column: 2 / 3;
  text-align: left;
}

/* соцсети — сверху второй колонки */

.footer-social {
  margin-bottom: 6px;
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ВАЖНО: прижаты к левому краю */
  gap: 10px;
}

.social-icons li {
  margin: 0;
}

.address-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.telegram-icon img {
  display: block;
}

/* списки меню и контактов */

.footer-menu,
.footer-menu-main,
.footer-menu-info,
.footer-contacts {
  margin: 0;
  padding: 0;
  text-align: left;
}

.footer-menu li,
.footer-contacts li,
.footer-menu-info li {
  margin-bottom: 6px;
}

.footer-menu li:last-child,
.footer-contacts li:last-child,
.footer-menu-info li:last-child {
  margin-bottom: 0;
}

.link-footer,
.address-link {
  font-size: 14px;
}

/* немного воздуха между блоками во второй колонке */

.footer-col-3 {
  margin-top: 10px;
}

.footer-col-4 {
  margin-top: 10px;
}

/* ====== ДЕСКТОП (>= 1024px) ======
   4 колонки:
   col1: logo  (2 строки)
   col2: catalog (2 строки)
   col3: social (верх) + contacts (низ)
   col4: info (2 строки)
*/

@media (min-width: 1024px) {

  .footer {
    padding: 50px 0;
    font-size: 15px;
  }

  .footer-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "logo   catalog social   info"
      "logo   catalog contacts info";
    column-gap: 40px;
    row-gap: 8px;
    align-items: flex-start;
  }

  .footer-col-1 {
    grid-area: logo;
  }

  .footer-col-2 {
    grid-area: catalog;
    margin-top: 0;
  }

  .footer-social {
    grid-area: social;
    margin-bottom: 4px;
  }

  .footer-col-3 {
    grid-area: contacts;
    margin-top: 0;
  }

  .footer-col-4 {
    grid-area: info;
    margin-top: 0;
  }

  .logo-images-footer {
    margin: 0 0 12px;
  }

  .footer-col-1,
  .footer-col-2,
  .footer-col-3,
  .footer-col-4 {
    text-align: left;
  }
}

/* ====== очень узкие экраны (по желанию) ====== */

@media (max-width: 480px) {
  .logo-images-footer {
    max-width: 130px;
  }
}


/* ===== МОБИЛЬНАЯ ВЕРСИЯ ГЛАВНОЙ ===== */
@media (max-width: 768px) {

  /* База для мобильного */
  body {
    font-size: 14px;
    line-height: 1.4;
  }

  .container {
    max-width: 100%;
    padding: 0 16px;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }


  /* ---------- HEADER ---------- */

  .header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .logo-images-header {
    max-width: 130px;
    height: auto;
  }

  /* Десктопное меню прячем, на мобилке только бургер */
  .header-menu {
    display: none;
  }

  /* Иконка корзины и контакты в одну строку под навигацией */

  #cart-menu-icon {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
  }

  .header-contacts {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }

  .header-contacts .telegram-icon img {
    width: 28px;
    height: 28px;
  }

  .phone-link {
    font-size: 14px;
    white-space: nowrap;
  }

  

  /* ---------- HERO ---------- */

  .hero-section {
    padding: 32px 0 24px;
    text-align: center;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.25;
    margin: 0;
  }

  .hero-title .accent {
    display: inline-block;
  }

  /* ---------- ПРЕИМУЩЕСТВА ---------- */

  .advantages-section {
    padding: 16px 0 8px;
  }

  .advantages-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* .advantages-item {
    font-size: 14px;
  } */

  /* ---------- GIFT-BLOCK (оба блока) ---------- */

  .gift-block {
    padding: 24px 0;
  }

  .gift-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .gift-text-wrapper {
    order: 2;          /* текст после картинки по умолчанию */
  }

  .gift-image {
    order: 1;
  }

  /* если хочешь для конкретного gift-блока другой порядок —
     можно задать класс-модификатор и переопределить order */

  .gift-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .gift-text p,
  .traditions-text {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .gift-actions {
    margin-top: 8px;
  }

  .product-btn {
    width: 100%;
    text-align: center;
  }

  /* ---------- СЕКЦИИ С КАРТОЧКАМИ (карусели) ---------- */

  .section {
    padding: 24px 0;
  }

  .section-title,
  .formats-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .formats-container {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .products-wrapper {
    flex: 1 1 auto;
    max-width: 100%;
    overflow: hidden;
  }

  /* на мобилке делаем карточки “по одной в строку”
     (если твой JS-карусели не конфликтует – это оптимально) */
  .products-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    width: 100%;
  }

  .product-title {
    font-size: 14px;
  }

  .product-price {
    font-size: 14px;
  }

  .product-actions button {
    width: 100%;
  }

  /* стрелки делаем компактнее */
  .carousel-button {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .carousel-button svg {
    width: 16px;
    height: 16px;
  }

  /* ---------- "Ваш найкращій вибор прикрас" (boxs-list) ---------- */

  .boxs-title {
    font-size: 20px;
    text-align: center;
  }

  .boxs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .box-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .box-photo {
    width: 100%;
  }

  .box-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .box-text {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .box-card .product-btn {
    width: 100%;
    margin-top: 8px;
  }

  /* ---------- SEO-ТЕКСТ ---------- */

  .seo-text {
    padding: 40px 0 32px;
  }

  .seo-text .container {
    padding-inline: 16px;
  }

  .seo-text h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .seo-text p,
  .seo-text li {
    font-size: 14px;
  }

  .toggle-label {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
  }

  /* full-text по умолчанию может быть скрыт через твой существующий CSS:
     здесь дополнительных правок не делаем */

  /* ---------- FOOTER ----------
     (если используешь тот футер, что мы уже настроили,
      можно оставить только донастройку контейнера) */

  /* .footer {
    padding: 24px 0;
  }

  .footer .container {
    padding-inline: 16px;
  } */
}



/* ===== БУРГЕР: ФИНАЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ ===== */

/* базовая кнопка (для десктопа скрыта) */
.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 30px;
  padding: 0;
  margin-left: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2000;
}

.burger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  margin: 3px 0;
}

/* чтобы старые width: 180% не ломали полоски */
.burger-btn span:nth-child(1),
.burger-btn span:nth-child(2),
.burger-btn span:nth-child(3) {
  width: 26px;
}

/* само бургер-меню: выезжающая панель справа */
.burger-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #D4AF37;
  color: #000;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1500;
}

/* состояние "открыто" */
.burger-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* предотвращаем прокрутку фона, когда меню открыто */
body.menu-open {
  overflow: hidden;
}

/* крестик внутри */
.burger-menu .close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #000;
  cursor: pointer;
  align-self: flex-end;
}

/* заголовок PANTERA */
.burger-logo {
  font-family: "MatiottElegantFront", sans-serif;
  font-size: 24px;
  text-align: left;
  margin: 10px 0 10px;
}

.logo-mobile {
  font-family: "MatiottElegantFront", sans-serif;
  font-size: 24px;
  text-align: center;
  transform: translateX(-50%);
  margin: 10px 0 10px;
  color: #D4AF37;
  left: 50%;
  position: absolute;
}


/* разделительная линия */
.burger-separator {
  height: 2px;
  background-color: #aa821b;
  width: 100%;
  margin: 0 0 16px;
}

/* список пунктов меню */
.burger-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.burger-nav li {
  margin-bottom: 12px;
}

.link-header-burger-menu {
  color: #000;
  text-decoration: none;
  font-size: 14px;
}

.link-header-burger-menu:hover {
  text-decoration: none !important;
}


/* базовая кнопка бургера */
.burger-btn {
  display: none;              /* на десктопе не показываем */
  align-items: center;
  justify-content: center;
  flex-direction: column;     /* вертикальная колонка */
  gap: 4px;                   /* расстояние между полосками */
  width: 36px;
  height: 28px;
  padding: 0;
  margin-left: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2000;
}

.burger-btn span {
  display: block;
  width: 36px;
  height: 3px;
  background: #D4AF37;        /* белые полоски */
  border-radius: 2px;
}



/* панель бургера, СЛЕВА */
.burger-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #D4AF37;
  color: #000;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(-100%); /* спрятано слева */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1500;
}

.burger-menu.open {
  transform: translateX(0);   /* выехало слева */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}



.burger-nav a,
.link-header-burger-menu {
  text-decoration: none;
}

.burger-nav a:hover,
.link-header-burger-menu:hover {
  text-decoration: none;
  color: #000; }


@media (max-width: 991px) {

  /* прячем обычное меню */
  .header-menu {
    display: none !important;
  }

  /* показываем бургер */
  .burger-btn {
    display: flex !important;
  }

  .header-container {
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
  }

  .header-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #cart-menu-icon {
    margin-left: auto;
  }

  .header-contacts {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
  }

  .header-contacts .telegram-icon img {
    width: 24px;
    height: 24px;
  }

  .phone-link {
    font-size: 14px;
    white-space: nowrap;
  }

  .burger-btn {
    margin-left: auto;
  }
}


/* Увеличиваем линии бургера на 50%, не двигая кнопку */
/* .burger-btn {
  width: 36px;            
}

.burger-btn span {
  width: 36px;             
  transform: scaleX(1.5);  
  background: #D4AF37;
  transform-origin: center; 
} */



/* МОБИЛЬНАЯ ШАПКА: бургер слева, лого по центру, корзина справа */
@media (max-width: 768px) {

  /* сама шапка одной строкой */
  .header {
    padding: 8px 0;
    background: #000;
  }

  .header-container {
    flex-direction: row;              /* вместо column */
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  /* центр — логотип */
  .header-nav {
    order: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-menu {
    display: none !important;         /* меню только на десктопе */
  }

  .logo-images-header {
    max-width: 140px;
    height: auto;
  }

  /* слева — блок с бургером */
  .header-contacts {
    order: 1;
    width: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }

  /* в этом блоке на мобиле оставляем только бургер */
  .header-contacts .telegram-icon,
  .header-contacts .phone-link {
    display: none;
  }

  .burger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px;
    height: 28px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .burger-btn span {
    width: 32px;
    height: 3px;
    background: #D4AF37;              /* золотые линии */
    border-radius: 2px;
  }

  /* справа — корзина */
  #cart-menu-icon {
    order: 3;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
  }
}


/* МОБИЛЬНАЯ ШАПКА: слева бургер+TG, по центру PANTERA, справа корзина */
@media (max-width: 768px) {

  .header {
    padding: 8px 0;
    background: #000;
  }

  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  /* ЦЕНТР — ЛОГО (теперь текст PANTERA) */
  .header-nav {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* прячем картинку-логотип */
  .logo-images-header {
    display: none;
  }

  /* рисуем текстовое лого PANTERA */
  /* .header-nav::before {
    content: "PANTERA";
    font-family: "MatiottElegantFront", sans-serif;
    font-family: "MatiottElegantFront";
    src: url("/fonts/MatiottElegantFront.ttf") format("truetype");
    font-size: 24px;
    letter-spacing: 0.08em;
    color: #D4AF37;
  } */

  /* десктоп-меню на мобилке не нужно */
  .header-menu {
    display: none !important;
  }

  /* СЛЕВА — TG + БУРГЕР */
  .header-contacts {
    order: 1;
    width: auto;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* телеграм показываем */
  .header-contacts .telegram-icon {
    display: inline-flex;
  }
  .header-contacts .telegram-icon img {
    width: 24px;
    height: 24px;
  }

  /* телефон прячем, чтобы не забивал место */
  .header-contacts .phone-link {
    display: none;
  }

  .burger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .burger-btn span {
    width: 32px;
    height: 3px;
    background: #D4AF37;   /* золотые полоски */
    border-radius: 2px;
  }

  /* СПРАВА — КОРЗИНА */
  #cart-menu-icon {
    order: 3;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
  }
}


/* ---- ОБЩЕЕ ---- */
.logo-desktop {
  width: 90px;
  height: auto;
}

/* .logo-mobile {
  display: none;
  font-family: "MatiottElegantFront", serif;
  color: #D4AF37;
  font-size: 28px;
} */

/* ---- ПК ---- */
@media (min-width: 992px) {
  .burger-btn { display: none; }
  .logo-desktop { display: block; }
  .logo-mobile { display: none; }
  .phone-link { display: inline-block; }
}

/* ---- МОБ ---- */
@media (max-width: 991px) {

  /* бургер слева */
  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .burger-btn span {
    width: 36px;
    height: 3px;
    background: #D4AF37;
    border-radius: 2px;
  }

  /* скрываем десктоп-лого */
  .logo-desktop {
    display: none;
  }

  /* показываем надпись PANERA по центру */
  .logo-mobile {
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  /* скрываем телефон */
  .phone-link {
    display: none !important;
  }

  /* оставляем телегу и корзину справа */
  .header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
  }
}



/* ==== ФИНАЛЬНАЯ МОБИЛЬНАЯ ШАПКА ==== */
@media (max-width: 991px) {

  /* общая строка: слева бургер, по центру PANTERA, справа TG+корзина */
  .header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 8px 16px; /* отступы, чтобы ничего не прилипало к краям */
  }

  /* фон шапки на мобилке при желании */
  .header {
    padding-top: 0;
    background: #000;
  }

  /* убираем десктопное меню и любые его "PANERA" через ::before */
  .header-nav {
    display: none !important;
  }
  .header-nav::before {
    content: none !important;
  }

  /* картинка-логотип только на десктопе */
  .logo-desktop {
    display: none !important;
  }

  /* бургер — крайний левый, но с отступом за счёт padding у .header-container */
  .burger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px;
    height: 28px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .burger-btn span {
    width: 32px;
    height: 3px;
    background: #D4AF37;
    border-radius: 2px;
  }



  /* справа блок с TG и корзиной */
  .header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px; /* расстояние между TG и корзиной */
  }

  /* телефон на мобилке убираем */
  .phone-link {
    display: none !important;
  }

  /* иконка TG перед корзиной */
  .telegram-icon {
    display: inline-flex;
    align-items: center;
  }

  .telegram-icon img {
    width: 24px;
    height: 24px;
    display: block;
  }

  /* корзина крайний правый элемент, но не прилипает из-за padding у .header-container */
  #cart-menu-icon {
    display: inline-flex;
    align-items: center;
    position: relative;
  }
}


/* ДЕСКТОП: расстояние между телефоном, TG и корзиной */
@media (min-width: 992px) {
  .header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;          /* расстояние между телефоном, TG и корзиной */
    padding-right: 16px;/* чтобы не прилипало к правому краю */
  }

  .telegram-icon img {
    width: 24px;
    height: 24px;
  }

  .cart-icon {
    display: inline-flex;
    align-items: center;
  }
}



/* ===== МОБИЛЬНАЯ ВЕРСИЯ ГЛАВНОГО БАННЕРА ===== */
@media (max-width: 768px) {

  /* сам баннер — меньше вертикальных отступов */
  .hero-section {
    padding: 60px 0 40px;
    background-position: center;
    background-size: cover;
    text-align: center; /* выравнивание текста */
  }

  /* главный заголовок */
  .hero-title {
    font-size: 28px;                 /* компактный, но крупный */
    font-weight: 700;
    line-height: 1.25;               /* более плотная строка */
    margin: 0 auto;
    max-width: 90%;                  /* не вылезает за экран */
    text-align: center;              /* центрируем */
  }

  /* цветной акцент */
  .hero-title .accent {
    color: #D4AF37;
  }

  /* если внутри есть <br> — делаем расстояние меньше */
  .hero-title br {
    line-height: 1 !important;
  }
}

/* ===== HERO-БАННЕР: компактный ===== */

/* ПК по умолчанию */
.hero-section {
  position: relative;
  width: 100%;
  height: 320px;                          /* ↓ было 420px — стало компактно */
  background-color: #000;
  background-image: url("../images/download1.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-title {
  max-width: 520px;
  margin: 0;
  font-size: clamp(26px, 3vw, 46px);      /* ↓ немного уменьшили */
  line-height: 1.15;
  font-weight: 700;
  color: #D4AF37;
}


/* ----- Ноутбуки / планшеты (до 1199px) ----- */
@media (max-width: 1199px) {
  .hero-section {
    height: 280px;                        /* ↓ вместо 360px */
    background-position: center right;
  }

  .hero-inner {
    padding: 0 24px;
  }
}


/* ----- Мобильные (до 768px) ----- */
@media (max-width: 768px) {
  .hero-section {
    height: 240px;                       
    background-position: center top;
    background-size: cover;
  }

  .hero-inner {
    padding: 0 16px 20px;
    text-align: center;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(20px, 5vw, 28px);    
  }
}


/* Мобильная версия gift-блока */
@media (max-width: 768px) {

  .gift-block {
    padding: 24px 16px;
  }

  .gift-content {
    flex-direction: column;
    align-items: stretch;     /* растягиваем по ширине, не центр */
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
  }

  .gift-image {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .gift-image img {
    width: 80%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
  }

  .gift-text-wrapper {
    order: 2;
    width: 100%;
  }

  .gift-title {
    font-size: 20px;
    text-align: left;         /* заголовок слева */
    margin-bottom: 10px;
  }

  .gift-text {
    text-align: left;         /* текст слева */
  }

  .gift-text p,
  .traditions-text {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .gift-actions {
    margin-top: 10px;
    text-align: center;         /* кнопка тоже слева */
  }

  .gift-actions .product-btn {
    width: auto;              /* не на всю ширину */
    padding: 8px 18px;        /* меньше кнопка */
    font-size: 14px;
  }
}



/* Мобильная версия блока "Ваш найкращій вибор прикрас" — с красивыми карточками */
@media (max-width: 768px) {

  #boxs-section {
    padding: 32px 0 24px;
    background: transparent;
  }

  /* Заголовок: компактнее + без длинных линий по бокам */
  #boxs-section .boxs-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 auto 24px;
    text-align: center;
    max-width: 90%;
  }

  #boxs-section .boxs-title::before,
  #boxs-section .boxs-title::after {
    display: none;
  }

  /* Список карточек – в колонку */
  #boxs-section .boxs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  #boxs-section .boxs-item {
    flex-basis: 100%;
  }

  /* Карточка – тёмный блок с золотой рамкой и тенью */
  #boxs-section .box-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.7);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
  }

  /* Фото с фирменным скруглённым углом и лёгкой "подставкой" */
  #boxs-section .box-photo {
    width: 42%;
    max-width: 160px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px 4px 4px 120px;
    box-shadow:
      -10px 10px 0 0 #0A0A0A,
      -10px 10px 0 2px var(--color-secondary-light);
  }

  /* Текстовый блок растянут по высоте */
  #boxs-section .box-card > div {
    flex: 1 1 auto;
  }

  #boxs-section .box-title {
    font-size: 18px;
    margin-bottom: 6px;
    text-align: left;
    position: relative;
  }

  /* маленькая золотая полоска под заголовком */
  #boxs-section .box-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-brand-normal);
    margin-top: 4px;
  }

  #boxs-section .box-text {
    font-size: 14px;
    margin-bottom: 4px;
    text-align: left;
    color: #f5f5f5;
  }

  /* Кнопка – меньше и аккуратнее */
  #boxs-section .box-card .product-btn {
    margin-top: 8px;
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 999px;
    width: auto;
  }
}



/* Мобильная версия каталога: сделать фото товаров крупнее */
@media (max-width: 767px) {

  /* одна карточка в ряд по всей ширине */
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  /* меньше внутренних отступов, чтобы не съедать место у фото */
  .catalog-grid .product-card {
    padding: 8px 8px 16px;
  }

  /* увеличиваем визуально фото */
  .catalog-grid .product-image {
    width: 100%;
    max-width: 360px;      /* можно 340–380 по вкусу */
    margin: 0 auto 12px;
    aspect-ratio: 4 / 5;   /* чуть более “высокое” фото, чем квадрат */
  }

  .catalog-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


/* Обёртка сортировки */
.sort-wrap {
  position: relative;
}

/* Выпадающее меню */
.sort-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: #000;
  border: 1px solid var(--color-brand-normal);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 220px;
  display: none;
  z-index: 50;
}

.sort-dropdown.open {
  display: block;
}

.sort-option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--color-brand-normal);
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.sort-option:hover {
  background: var(--color-brand-normal);
  color: #000;
}

/* Бейдж "Хіт" на товаре */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.product-badge--hit {
  background: var(--color-brand-normal);
  color: #000;
}


/* ===== красивая раскладка фильтра ===== */

/* верхняя панель каталога */
.catalog-controls {
  display: flex;
  gap: 16px;
   margin-top: 20px;
  margin-bottom: 16px;
  align-items: center;   /* ВАЖНО: больше не растягиваем детей по высоте */
  flex-wrap: wrap;       /* разрешаем перенос на новую строку */
}

/* панель фильтра — отдельной строкой под кнопками */
.filter-panel {
  flex-basis: 100%;           /* занимает всю ширину ряда */
  order: 3;                   /* идёт после кнопок */
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid var(--color-brand-normal);
  border-radius: 10px;
  background: rgba(0,0,0,0.85);
  display: none;              /* скрыта, пока нет .open */
}

.filter-panel.open {
  display: block;
}

/* группы фильтров в 2–3 колонки на десктопе */
@media (min-width: 901px) {
  .filter-group {
    display: inline-block;
    min-width: 200px;
    margin-right: 32px;
    vertical-align: top;
  }

  .filter-group:last-child {
    margin-right: 0;
  }
}


/* ===== мобильная версия фильтра ===== */
@media (max-width: 767px) {

  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  /* кнопки во всю ширину */
  .filter-btn,
  .sort-btn {
    width: 100%;
    justify-content: center;
  }

  .sort-wrap {
    width: 100%;
  }

  /* панель фильтра под кнопками, тоже на всю ширину */
  .filter-panel {
    order: 2;
    flex-basis: auto;
    width: 100%;
    margin-top: 8px;
  }

  /* чекбоксы не в линию, а столбиком — читаемо на мобиле */
  .filter-group label {
    display: block;
    margin-right: 0;
  }
}







/* Отступы и раскладка кнопок внутри фильтра */
.filter-actions {
  margin-top: 16px;          /* отступ сверху от чекбоксов */
  margin-bottom: 4px;        /* небольшой отступ от нижней рамки */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;                 /* расстояние между двумя кнопками */
}

/* На мобилке делаем кнопки столбиком и по ширине блока */
@media (max-width: 767px) {
  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions .control-btn {
    width: 100%;
    justify-content: center;
  }

  /* небольшой зазор от фильтра до каталога товаров */
  .filter-panel {
    margin-bottom: 20px;
  }
}

/* На десктопе оставляем две кнопки в одну строку с зазором */
@media (min-width: 768px) {
  .filter-actions .control-btn {
    width: auto;
  }

  .filter-panel {
    margin-bottom: 24px;     /* зазор между фильтром и карточками */
  }
}





/* Мобильная версия: маленькие кнопки слева */
@media (max-width: 767px) {

  .catalog-controls {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* сами кнопки — узкие, не на всю ширину */
  .filter-btn,
  .sort-btn {
    width: auto;
    padding: 6px 12px;
    font-size: 13px;
    justify-content: flex-start;
  }

  /* обёртка сортировки тоже не растягиваем */
  .sort-wrap {
    width: auto;
  }

  /* панель фильтра по-прежнему на всю ширину, ниже кнопок */
  .filter-panel {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    margin-top: 8px;
  }
}


/* На всех устройствах: квадратные фото */
.catalog-grid .product-card .product-image {
  width: 100%;
  aspect-ratio: 1 / 1;          /* Квадрат */
  overflow: hidden;
  border-radius: 12px;          /* как у тебя в дизайне */
  display: block;
  position: relative;
}

/* Изображение внутри */
.catalog-grid .product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* Заполняет квадрат красиво */
  object-position: center;
  display: block;
}






/* Увеличиваем высоту шапки на мобильных */
@media (max-width: 767px) {
  header,
  .header,
  .header-container {
    height: 70px !important;          /* было примерно 45–50 → слишком низко */
    min-height: 70px !important;
    padding: 0 16px !important;        /* комфортные боковые отступы */
    display: flex;
    align-items: center;               /* выравниваем всё по вертикали */
    justify-content: space-between;
  }

  /* Лого */
  .logo-mobile,
  .logo-desktop {
    height: auto;
    display: flex;
    align-items: center;
    font-size: 24px;                   /* чтобы текстовое лого не терялось */
  }

  /* Иконки справа (телеграм и корзина) */
  .header-actions,
  .header-right {
    display: flex;
    align-items: center;
    gap: 16px;                         /* увеличенный зазор между иконками */
  }

  /* Бургер-меню */
  /* .burger-menu {
    width: 28px;
    height: 22px;
  } */

  .burger-menu span {
    height: 3px;
  }
}





/* нижний блок */
.burger-info {
  margin-top: auto;           /* прижать к низу */
  font-size: 14px;
}

.burger-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.burger-socials img {
  width: 32px;
  height: 32px;
  display: block;
}

.full-phone {
  display: block;
  margin-bottom: 8px;
  color: #000;
  text-decoration: none;
}

.full-phone:hover {
  text-decoration: underline;
}

.burger-time {
  margin: 0;
}




/* ссылки в меню */
.burger-nav a,
.link-header-burger-menu {
  text-decoration: none;
}

.burger-nav a:hover,
.link-header-burger-menu:hover {
  color: #000;
}


/* Десктоп-кнопка "Купити" — скрыть на мобилке */
@media (max-width: 767px) {
  #buy-btn {
    display: none;
  }
}






/* ===== Блок отзывов (отдельно от каталога) ===== */

.reviews-section {
  padding: 60px 20px;
}

/* Сетка отзывов */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Карточка отзыва */
.review-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Картинка внутри карточки */
.review-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

/* Адаптив */
@media (max-width: 1024px) {
  .reviews-section {
    padding: 50px 20px;
  }
  .reviews-grid {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .reviews-section {
    padding: 40px 16px;
  }
  .reviews-grid {
    gap: 22px;
  }
  .review-card {
    padding: 14px;
    border-radius: 12px;
  }
  .review-card img {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .reviews-section {
    padding: 36px 12px;
  }
}






/* ===== Блок отзывов (отдельно от каталога) ===== */

.zakaz-section {
  padding: 10px 20px;
}

/* Сетка отзывов */
.zakaz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Карточка */
.zakaz-card {
  background: linear-gradient(
    180deg,
    rgba(49, 38, 26, 0) 55%,
    rgba(49, 38, 26, 0.71) 73%,
    #31261a 100%
  );
  border-radius: 14px;
  padding: 18px;
  border: 1px solid lightgray;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Картинка */
.zakaz-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

/* Адаптив */
@media (max-width: 1024px) {
  .zakaz-section {
    padding: 50px 20px;
  }
  .zakaz-grid {
    gap: 28px;
  }
}

/* 📌 Моб — оставляем те же параметры, что на ПК */
@media (max-width: 768px) {
  .zakaz-section {
    padding: 40px 16px;
  }
  .zakaz-grid {
    gap: 22px;
  }

  /* НИЧЕГО не меняем в zakaz-card — рамка и фон остаются как на ПК */
  .zakaz-card {
    padding: 18px;
    border-radius: 14px;
  }

  .zakaz-card img {
    border-radius: 12px;
  }
}

/* Маленькие экраны */
@media (max-width: 480px) {
  .zakaz-grid {
    grid-template-columns: 1fr;
  }
  .zakaz-section {
    padding: 36px 12px;
  }
}



@media (max-width: 991px) {
  /* Скрыть ВСЕ кнопки купить по умолчанию */
  button.product-list-btn { display: none !important; }

  /* Показать только мобильную */
  #buy-btn-mob { display: block !important; }

  /* И на всякий случай скрыть десктопную */
  #buy-btn { display: none !important; }
}

.product-card {
  position: relative;
}




/* Премиальный бейдж */
.stock-badge {
  position: absolute;
  top: 22px;          /* отступ сверху */
  left: 22px;         /* отступ слева */

  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;

  border-radius: 8px;

  background: linear-gradient(
    135deg,
    #d4af37,
    #b8962e
  );

  color: #1a1a1a;
  font-weight: 500;

  box-shadow:
    0 4px 12px rgba(212, 175, 55, 0.35),
    inset 0 0 0 1px rgba(255,255,255,0.25);

  z-index: 6;
}

/* именно "нет в наличии" — чуть приглушён */
.stock-badge.out-of-stock {
  opacity: 0.85;
}



/* ===== Stock badge: фикс для моб, чтобы было как на ПК ===== */
@media (max-width: 768px) {
  .product-card {
    position: relative; /* на всякий случай */
  }

  .stock-badge {
    position: absolute !important;
    top: 22px !important;
    left: 22px !important;

    /* чтобы не растягивался и не центрировался */
    display: inline-flex !important;
    width: auto !important;
    max-width: calc(100% - 44px); /* чтобы не вылез за края */
    margin: 0 !important;

    /* на моб обычно крупнее шрифты — фиксируем */
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap;
    z-index: 6 !important;
  }
}


@media (max-width: 420px) {
  .stock-badge {
    top: 16px !important;
    left: 16px !important;
    max-width: calc(100% - 32px);
  }
}





/* =========================
   BURGER MENU (universal)
   ========================= */

/* если у тебя есть анимация show/hide через класс — оставь как есть,
   иначе добавь свои правила для открытия (например .is-open) */
.burger-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  flex-direction: column;

  padding: 24px 20px 20px;
  overflow: hidden; /* важно: чтобы скролл был только у списка */

  /* твой фон (оставь свой цвет, если он уже задан) */
  /* background: #d7b23b; */
}

/* Верх: логотип + разделитель */
.burger-logo {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.burger-separator {
  height: 1px;
  background: rgba(0,0,0,.2);
  margin: 14px 0 10px;
}

/* Список пунктов — скроллится */
.burger-nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  margin: 0;
  padding: 0;
  list-style: none;

  /* чтобы снизу не «прилипало» к нижнему блоку */
  padding-bottom: 12px;
}

/* Пункты */
.burger-nav li {
  margin: 0;
  padding: 0;
}

.burger-nav a.link-header-burger-menu {
  display: block;
  padding: 10px 0;
}

/* Низ — всегда виден */
.burger-info {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.15);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Соцсети */
.burger-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Телефон и график */
.full-phone {
  font-weight: 500;
}

.burger-time {
  font-size: 14px;
  opacity: .85;
  line-height: 1.35;
}

/* Переключатель языков в бургер-меню */
.burger-lang {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-top: 4px;
}

.burger-lang a {
  text-decoration: none;
  opacity: .65;
}

.burger-lang span.divider {
  opacity: .55;
}

.burger-lang .is-active {
  font-weight: 700;
  opacity: 1;
  pointer-events: none;
}







/* Мобилка */
@media (max-width: 768px) {

  /* Бургер на весь экран */
  .burger-menu{
    position: fixed;           /* если у тебя уже fixed — оставь */
    top: 0;
    left: 0;
    height: 100vh;
    width: 80%;                /* как у тебя */
    overflow: hidden;          /* важно, чтобы низ не уезжал */
  }

  /* Меню пусть прокручивается, если пунктов много */
  .burger-nav{
    overflow-y: auto;
    max-height: calc(100vh - 260px); 
    /* 260px — резерв под нижний блок, подгони по факту */
  }

  /* Нижний блок поднимаем выше низа */
  .burger-info{
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 70px);
    /* 70px — именно это "поднять еще". Можешь сделать 90px, если надо */
    padding: 0 20px;
  }

  /* Переключатель языка (твой новый класс) */
  .burger-lang{
    margin-top: 12px;
  }
}



