@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');




*{
  box-sizing: border-box;
}


body {
margin:0;
font-family: 'Montserrat', sans-serif;
background:#0b0b0b;
color:white;
}

/* HEADER */

.main-header{
position:fixed;
top:0;
left:0;
height: 70px;
width:100%;
display:flex;
justify-content:flex-start;
align-items:center;
padding:0px 2vw;
background:rgba(10,10,10,0.9);
backdrop-filter:blur(10px);
border-bottom:1px solid #222;
z-index:1000;
box-sizing: border-box;
}

.logo {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;                /* расстояние между картинкой и текстом */
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo img {
  height: 100%;              /* изображение занимает всю высоту родителя */
  width: auto;
  display: block;
}

.logo span {
  color: #cfac34; /* золотой */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/*Меню*/

.nav{
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 20px;
}

.nav a{
text-decoration:none;
color:white;
opacity:0.85;
font-size:14px;
white-space: nowrap;
}

.nav a:hover{
opacity:1;
}

/* HERO */

.hero-logo {
  text-align: center;
  margin-bottom: 30px; /* отступ снизу */
}

.hero-logo-img {
  max-width: 400px;     /* подберите нужный размер */
  width: 100%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); /* лёгкая тень */
}

.hero{
height: calc(100vh - 70px); /* вычитаем высоту шапки */
display:flex;
align-items:center;
justify-content:center;
text-align:center;
padding:0 20px;
background:radial-gradient(circle at top,#1b1b1b,#050505);
}

.hero-content h1{
font-size:56px;
margin-bottom:20px;
}

.hero-content p{
max-width:600px;
margin:auto;
opacity:0.8;
font-size:18px;
}

.hero-buttons{
display: flex;
gap: 20px;
justify-content: center;
margin-top:35px;
}

.hero-buttons .btn {
  min-width: 200px; /* или flex: 1; если нужно растянуть на всю ширину родителя */
}

.page-hero{
padding-top:110px;
padding-bottom:55px;
text-align:center;
background:#0f0f0f;
}

.page-hero h1{
font-size:48px;
margin-bottom:15px;
}

.page-hero p{
opacity:0.7;
}

.btn {
  font-family: 'Montserrat', sans-serif; /* или inherit */
  line-height: 1.4; /* одинаковое значение для всех кнопок */
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  border: none;                     /* убираем обводку */
  background: #cfac34;              /* золотистый фон */
  color: #000;                      /* чёрный текст */
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn:hover {
  background: #8B6B3F;
  color: #000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  transform: scale(1.02);  /* лёгкое увеличение */
}

/*
.btn-outline{
background:transparent;
} */

.card .btn {
  margin-top: auto;        /* прижимает кнопку к низу */
  width: 100%;             /* кнопка на всю ширину карточки */
}
.card p {
  flex-grow: 1;
  margin: 0 0 0.5em 0; /* небольшой отступ снизу для отделения от цены */
  min-height: 3em; /* примерно высота двух строк */
  word-break: break-word;
}


.card .image-wrapper img:hover {
  transform: scale(1.1);   /* лёгкое увеличение при наведении */
}

/* CATEGORIES */

.categories{
padding-top: 10px;
padding-bottom: 60px;
padding-left: 40px;
padding-right: 40px;
margin-top:60px;
}

.categories h2{
text-align:center;
font-size:34px;
margin-bottom:50px;
}

.grid{
display:grid;
grid-template-columns: repeat(auto-fit, 250px);
  justify-content: center;
  gap:30px;
max-width:1200px;
margin:auto;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

.card{
display: flex;
flex-direction: column;
background:#141414;
border:1px solid #222;
padding:20px;
text-decoration:none;
color:white;
border-radius: 8px;   /* скругление углов карточки */
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
transition: transform 0.3s, box-shadow 0.3s;
height: 100%; /* опционально, чтобы все карточки были одной высоты */
position: relative; /* для позиционирования badge */
}

.card h3 { 
  margin-top: 0; 
  min-height: 2.2em; /* примерно две строки, если вдруг заголовок переносится */
  line-height: 1.3;
  word-break: break-word;
}

.card:hover {
transform: translateY(-6px);
box-shadow: 0 8px 16px rgba(0,0,0,0.5);
border-color: #cfac34; /* золотистая обводка при наведении */
}

/* PREMIUM BLOCK */

.premium{
padding:120px 20px;
text-align:center;
background:#101010;
}

.premium p{
max-width:600px;
margin:auto;
opacity:0.8;
}

.card img {
  height: 220px;
  object-fit: cover;        /* если нужна обрезка, чтобы заполнить контейнер */
  border-radius: 8px;
  display: block;          /* превращаем img в блочный элемент */
  width: 100%;             /* на узких экранах занимает всю доступную ширину */
  margin-left: auto;       /* автоматический отступ слева */
  margin-right: auto;      /* автоматический отступ справа — центрирует */
  margin-bottom: 20px;     /* отступ снизу от текста (опционально) */
  
}

.card .card-image-link {
  display: block;          /* занимает всю ширину родителя */
  text-decoration: none;   /* убираем подчёркивание */
  line-height: 0;          /* убирает лишний отступ снизу */
  
}

/* FOOTER */

footer{
text-align:center;
padding:40px;
background:#111;
border-top:1px solid #222;
}

.footer-logo {
  text-align: center;
  margin-bottom: 15px;
}

.footer-logo img {
  display: inline-block;
}

/* PRODUCT PAGE */

.product-section{
padding:40px 40px;
max-width:1200px;
margin:auto;
}

.product-grid{
display:grid;
grid-template-columns: 420px 1fr;
gap:80px;
align-items: flex-start;
max-width: 1100px;
margin: auto;
}

.product-image img{
max-width: 320px;
width:100%;
height: auto;
transition: transform 0.4s ease;
cursor: pointer;
}

.product-image img:hover{
  transform: scale(1.25);
  filter: brightness(1.1);
}

.product-info h2{
font-size:32px;
margin-bottom:20px;
}

/* Акцентный цвет для цен */

.product-info .product-specs strong,
.cart-total,
.item-qty {
  color: #cfac34;
}

.product-description{
opacity:0.8;
margin-bottom:25px;
}

.product-specs {
  margin-bottom: 30px;
}

.product-specs p{
margin-bottom:10px;
}

.product-info .btn {
  margin-top: 15px;
}

/* ГАЛЕРЕЯ ТОВАРА */

.product-gallery{
display:flex;
flex-direction:column;
align-items:center;
max-width: 380px;
}

.gallery-main{
display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;                 /* расстояние между кнопками и картинкой */
  max-width: 100%;
}

.gallery-image-container {
  max-width: 360px;           /* ограничьте размер фото под ваш дизайн */
  width: 100%;
  overflow: hidden;           /* чтобы увеличение не вылезало за границы */
}

.gallery-image-container img {
  transform: scale(1);
  will-change: transform;
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease, filter .4s ease;
  filter: brightness(0.92);
}

.gallery-image-container img:hover {
  transform: scale(1.12);      /* эффект увеличения при наведении */
  filter: brightness(1.05);
}

/* стрелки */

.gallery-arrow {
  background: transparent;
  border: 1px solid #444;    /* как у кнопок +/– */
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 4px;        /* скругление, как у кнопок */
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.gallery-arrow:hover {
  background: rgba(255,255,255,0.1);
  color: #cfac34;            /* золотой при наведении */
  border-color: #cfac34;
}

.thumbnails{
display:flex;
gap:10px;
margin-top: 0px;
}

.thumbnails img{
width:65px;
height:65px;
object-fit:cover;
cursor:pointer;
opacity:0.7;
border:1px solid #222;
transition:0.25s;
}

.thumbnails img:hover{
opacity:1;
border-color:#555;
}

.active-thumb{
opacity:1 !important;
border:1px solid white;
}

.form-box{
margin-top:80px;
padding:40px;
border:1px solid #222;
background:#141414;
}

form input,
form textarea{
width:100%;
margin-bottom:15px;
padding:12px;
background:#0b0b0b;
border:1px solid #333;
color:white;
}

form textarea{
height:120px;
resize:none;
}

/* Корзина */

.cart-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;         /* размер самой иконки 🛒 */
  cursor: pointer;
  margin-left: 20px;
  transition: 0.2s;
}

.cart-icon:hover {
  color: #cfac34;
  transform: scale(1.1);
  transition: 0.2s;
}

#cartCount {
  position: absolute;
  top: 0;
  right: 0;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
  transform: translate(20%, -20%); /* небольшое смещение для аккуратного вида */
}

.cart-panel{
position:fixed;
right:-550px;
top:0;
width:480px;
height:100%;
background:#111;
padding:25px;
transition:.4s;
z-index:2000;
overflow-y:auto;
}

.cart-panel .btn {
  padding: 12px 0px;           /* одинаковые внутренние отступы */
  font-size: 16px;              /* одинаковый размер шрифта */
  text-align: center;
  box-sizing: border-box;       /* чтобы padding не увеличивал общую ширину */
  width: 100%;         /* отступ снизу, если кнопки идут одна под другой */
}

/* Если кнопки должны быть рядом в одной строке */
.cart-panel .button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.cart-panel .button-group .btn {
  flex: 1;                      /* равная ширина */
  width: auto;
  margin: 0;             /* убираем нижний отступ, так как gap работает */
}

.cart-panel.open{
right:0;
}

.cart-item{
display:flex;
justify-content:space-between;
align-items: center;
margin-bottom:15px;
border-bottom:1px solid #222;
padding-bottom:10px;
}

.cart-item a {
  color: inherit;
  text-decoration: none;
}
.cart-item a:hover {
  text-decoration: underline;
}

.cart-total{
margin-top:20px;
font-size:18px;
}

/* Кнопки управления количеством (+, -) */
.cart-qty-btn {
  background: transparent;
  border: 1px solid #444;
  color: #fff;
  font-size: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.cart-qty-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #cfac34;
}

.cart-remove-btn {
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 18px;
  cursor: pointer;
  padding: 0 5px;
  transition: 0.2s;
}

.cart-remove-btn:hover {
  color: #ff4444;
  transform: scale(1.1);
}

/* Индикатор корзины на карточке */
.cart-indicator {
  display: none;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  cursor: pointer;          /* рука при наведении */
  transition: opacity 0.2s ease;
}

.cart-indicator:hover {
  opacity: 0.8;              /* лёгкое затемнение при наведении */
}

.cart-indicator:hover .cart-icon-small {
  color: #fff;               /* белый цвет иконки при наведении */
}

.cart-icon-small {
  font-size: 16px;
  color: #cfac34;            /* золотой цвет, как у бейджа */
  transition: color 0.2s ease;
}

.cart-badge {
  display: inline-block;
  background: #cfac34;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 12px;
  line-height: 1.2;
  transition: background 0.2s ease;
}

.cart-indicator:hover .cart-badge {
  background: #b8922e;       /* чуть темнее при наведении (опционально) */
}

/* Контейнер полной корзины */
.cart-full .cart-item {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #333;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
}

.cart-full .cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
}

.close-cart {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* Модальное окно для управления количеством */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 25px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s;
}

.close-modal:hover {
  color: #cfac34;
}

.modal-title {
  font-size: 20px;
  margin: 0 0 15px 0;
  color: #cfac34;
  padding-right: 30px; /* чтобы не налезало на крестик */
}

.modal-product-name {
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 18px;
}

.modal-quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.modal-qty-btn {
  background: transparent;
  border: 1px solid #444;
  color: #fff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-qty-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #cfac34;
  border-color: #cfac34;
}

.modal-qty-input {
  width: 80px;
  text-align: center;
  padding: 8px;
  font-size: 18px;
  background: #0f0f0f;
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
}

.modal-qty-input:focus {
  outline: none;
  border-color: #cfac34;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.modal-btn {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background: #cfac34;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 4px;
  flex: 1;
}

.modal-btn:hover {
  background: #8B6B3F;
}

.modal-btn.delete-btn {
  background: transparent;
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
}

.modal-btn.delete-btn:hover {
  background: #ff6b6b;
  color: #000;
}

.close-cart:hover {
  background: rgba(255,255,255,0.1);
  color: #cfac34;
}

/* Карусель топ-товаров */
.top-products {
  padding: 60px 40px 30px 40px; /* верх 60, право 40, низ 30, лево 40 */
  background: #0f0f0f;
}

.top-products h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 40px;
  color: #fff;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  gap: 20px;
  padding: 20px 0;
  flex: 1;
  scroll-snap-type: x mandatory;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-track .card {
  flex: 0 0 250px; /* фиксированная ширина */
  margin: 0;
  text-align: center; /* выравнивание всего текстового содержимого по центру */
  scroll-snap-align: center;
}
/*
.carousel-track .card img {
  width: 100%;
  height: 220px;        /* фиксированная высота, подберите под свой дизайн 
  object-fit: cover;    /* обрезает изображение, сохраняя пропорции 
  border-radius: 8px;   /* чтобы скругление совпадало с карточкой 
}
*/

.carousel-arrow {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

/* Отзывы */
.reviews {
  padding: 20px 40px 60px 40px; /* верх 20, право 40, низ 60, лево 40 */
  background: #0f0f0f; /* такой же фон, как у топ-товаров */
}

.reviews h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 40px;
  color: #fff;
}

.reviews-track {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.review-card {
  flex: 0 0 300px; /* ширина карточки отзыва */
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  scroll-snap-align: start; /* для центрирования при прокрутке */
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  border-color: #cfac34;
}

.review-avatar {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 10px;
  text-align: left;
}

.review-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.review-name {
  font-weight: bold;
  font-size: 18px;
  color: #cfac34;
}

.review-location {
  font-size: 14px;
  opacity: 0.7;
}

.review-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
  opacity: 0.9;
  font-style: italic;
}

.review-rating {
  font-size: 18px;
  color: #ffd700; /* золото для звёзд */
  letter-spacing: 2px;
}

.top-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #cfac34;
  color: #000;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.price-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.price {
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #cfac34;
}

/* Toast-уведомления */
.cart-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 3000;
  white-space: nowrap;
  pointer-events: none;
}
.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Бургер-иконка */
.burger-icon {
  display: none; /* скрыта на десктопе */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  margin-left: 15px;
}

.burger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: 0.3s;
}

/* Мобильное меню (панель) */

.mobile-search {
  margin-top: 20px;
}
.mobile-search form {
  display: flex;
}
.mobile-search input {
  flex: 1;
  padding: 10px 15px;
  box-sizing: border-box;
  line-height: 1.2;
  background: #222;
  border: 1px solid #444;
  color: white;
  border-radius: 4px 0 0 4px;
}
.mobile-search button {
  height: 38px;
  padding: 10px 15px;
  box-sizing: border-box;
  line-height: 1.2;
  background: #444;
  border: none;
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.mobile-menu-panel {
  position: fixed;
  left: -320px; /* скрыто за левым краем */
  top: 0;
  width: 300px;
  height: 100%;
  background: #111;
  padding: 30px 20px;
  transition: left 0.3s ease;
  z-index: 2001; /* выше корзины */
  box-shadow: 2px 0 10px rgba(0,0,0,0.5);
  overflow-y: auto;
}

.mobile-menu-panel.open {
  left: 0;
}

.close-menu {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.close-menu:hover {
  background: rgba(255,255,255,0.1);
  color: #cfac34;
}

.mobile-menu-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #cfac34;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 8px 0;
  border-bottom: 1px solid #222;
  transition: 0.2s;
}

.mobile-nav a:hover {
  color: #cfac34;
  border-bottom-color: #cfac34;
}

.search-form {
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
  align-self: center;
  margin-top: 12px;
}
.search-form input {
  padding: 6px 12px;
  background: #222;
  border: 1px solid #444;
  color: white;
  border-radius: 4px 0 0 4px;
  outline: none;
  vertical-align: middle;
  height: 32px;
  box-sizing: border-box;
}
.search-form button {
  background: #444;
  border: none;
  padding: 6px 12px;
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: 0.2s;
  vertical-align: middle;
  height: 32px;
  line-height: 1;
  box-sizing: border-box;
  position: relative;
  top: -7.5px;
}
.search-form button:hover {
  background: #cfac34;
  color: #000;
}

/* Фильтры каталога */
.catalog-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0 40px;
  padding: 0 20px;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  min-width: 80px;
}

.filter-btn.active {
  background: #8B6B3F;
  color: #fff;
}

.sort-wrapper {
  flex: 0 1 250px;
}

.sort-select {
  width: 100%;
  padding: 12px 20px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.sort-select:hover,
.sort-select:focus {
  border-color: #cfac34;
  outline: none;
}

.sort-select option {
  background: #1a1a1a;
  color: #fff;
}




/* адаптация под маленькие экраны */

@media (max-width: 890px) {
  .main-header {
    padding: 10px 4vw;
    justify-content: flex-start;
  }
  .logo img {
    height: 100%;         /* по-прежнему занимает всю высоту */
    width: auto;          /* ширина подстроится */
    object-fit: cover;    /* изображение заполнит контейнер, обрезая лишнее */
    object-position: center; /* центрируем */
    transform: scale(1.4);          /* увеличиваем на 20% */
  transform-origin: center;  /* чтобы рос вправо, а не наезжал на левый край */
  }
  .nav {
    gap: 15px;
    display: none; /* скрываем обычное меню */
  }
  .hero-content h1 {
    font-size: 30px;
    padding: 0 20px;
  }
  .gallery-main {
    flex-wrap: wrap; /* кнопки стрелок переносятся под изображение */
    justify-content: center;
  }
  .gallery-arrow {
    display: none;
  }
  .gallery-image-container {
    max-width: 100%;
  }
  .gallery-image-container img {
    max-height: 300px;
    width: auto;
    margin: 0 auto;
  }
  .gallery-image-container img:hover {
    transform: none;  /* отменяем увеличение */
    filter: none;     /* отменяем изменение яркости */
  }
  /* Миниатюры */
  .thumbnails {
    justify-content: center;
    gap: 8px;
  }
  .thumbnails img {
    width: 50px;
    height: 50px;
  }
  .cart-panel {
    width: 100%; /* на мобильных панель занимает всю ширину */
    right: -100%;
  }
  .cart-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;  /* размер самой иконки 🛒 */
    margin-left: 5px; /* отступ от бургера, подберите по вкусу */
    position: relative;
  }
  #cartCount {
    top: 0;
    right: 0;
    font-size: 11px;
    padding: 2px 5px;
  }
  .search-form {
    display: none;
  }
  .burger-icon {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto; 
  }
  .burger-icon span {
    width: 24px;  /* чуть уже, чтобы вписаться в контейнер */
    height: 3px;
    margin: 2px 0;
    background: white;
    border-radius: 3px;
  }
  /* Корректируем отступы для секции hero, если нужно */
  .hero {
    padding: 0 10px;
  }
  .hero-logo-img {
    max-width: 280px;
  }
  .hero-logo {
    margin-bottom: 40px;
  }
  /* Ставим кнопки вертикально и центрируем */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px; /* ограничиваем ширину кнопок */
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-hero {
    padding-top: 90px;    /* уменьшаем верхний отступ (было 140px) */
    padding-bottom: 30px;  /* уменьшаем нижний отступ */
  }
  .page-hero h1 {
    font-size: 28px;       /* уменьшаем заголовок */
    margin-bottom: 8px;
  }
  .page-hero p {
    font-size: 14px;       /* уменьшаем описание */
    max-width: 90%;        /* чтобы текст не растягивался на весь экран */
    margin: 0 auto;
  }
  .carousel-track .card {
    flex: 0 0 200px; /* меньшая ширина для мобильных */
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: none;
  }
  .reviews {
    padding: 40px 20px;
  }
  .reviews h2 {
    font-size: 28px;
  }
  .review-card {
    flex: 0 0 260px; /* чуть уже на мобильных */
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* Заголовок товара */
  .product-info h2 {
    font-size: 24px;
    text-align: left;
    margin-top: 20px;
  }

  /* Описание */
  .product-description {
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
  }

  /* Характеристики */
  .product-specs p {
    font-size: 14px;
    margin-bottom: 8px;
  }

  /* Кнопка "Добавить в корзину" */
  .product-info .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    margin-top: 10px;
  }

  /* Галерея: уменьшаем размеры, если нужно */
  .product-gallery {
    max-width: 100%;
  }
  .product-section {
    padding-top: 10px;   /* было 100px, теперь меньше */
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .top-products {
    padding: 40px 20px;
  }
  .card p {
    min-height: 4em; /* или 4.5em – подберите под свой текст */
  }
}

@media (min-width: 891px) {
  .mobile-menu-panel {
    display: none; /* скрываем панель на десктопе */
  }
} 

