/* ============================================
   1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ============================================ */
:root {
  --primary-dark: #343B29;
  --secondary-dark: #49543a;
  --accent-green: #689F38;
  --accent-beige: #F8F5F2;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --alert-red: #D32F2F;
  --hover-green: #558B2F;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* ============================================
   2. ФИЛЬТРЫ И САЙДБАР
   ============================================ */
.filters-wrapper {
  position: relative;
}

.filters-container {
  display: block;
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  padding: 20px;
  overflow-y: visible;
  top: 100px;
}

.filters-container.active {
  display: block;
}

.close-filters-btn {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 50px;
  cursor: pointer;
  color: #333;
  z-index: 1002;
}

.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 45%;
  z-index: 1001;
  height: 38px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 20px;
}

.filter-accordion {
  display: grid;
}

.filter-group {
  border-radius: 6px;
  overflow: hidden;
}

.filter-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  height: 35px;
  background: var(--accent-beige);
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  padding-right: 25px;
}

.filter-header-first {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.filter-header h3 {
  position: relative;
  margin: 0;
  font-size: 15px;
  height: 100%;
  bottom: 4px;
}

.filter-header.has-selection {
  background-color: #f0f9ff;
  border-left: 3px solid var(--primary-dark);
}

.filter-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-green);
  font-size: 20px;
  display: none;
}

.filter-header.has-selection .filter-indicator {
  display: block;
}

.filter-badge {
  position: absolute;
  padding: 2px 6px;
  top: 0px;
  right: 5px;
  background-color: var(--secondary-dark);
  color: var(--text-light);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  display: none; /* изначально скрыт */
}

.filter-badge span {
  position: relative;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.filter-options {
  display: none;
  padding: 10px;
  background: white;
}

.filter-options.active {
  display: block;
}

.filter-label {
  display: flex;
  align-items: center;
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
  transition: background 0.2s;
}

.filter-label:hover {
  background: var(--accent-beige);
}

.filter-label input {
  margin-right: 8px;
  accent-color: var(--accent-green);
}

.filter-label.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.filter-count {
  margin-left: auto;
  color: var(--secondary-dark);
  font-size: 0.9em;
}

/* Выбранные фильтры (чипы) */
#selected-filters {
  display: none;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid #eee;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  background: var(--primary-dark);
  color: var(--text-light);
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 5px 5px;
  font-size: 10px;
}

.filter-name,
.filter-value {
  font-weight: bold;
  margin-right: 5px;
}

.filter-name {
  margin-right: 5px;
}

.filter-value {
  margin-right: 8px;
}

.remove-filter {
  cursor: pointer;
  font-size: 20px;
  color: #999;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  border-radius: 50%;
}

.remove-filter:hover {
  background: var(--text-light);
  color: var(--primary-dark);
}

/* Цветовые образцы */
.color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#color-filters .filter-label {
  display: flex;
  align-items: center;
  padding: 8px 10px;
}

#color-filters .filter-count {
  margin-left: auto;
  padding-left: 10px;
}

.filter-chip .color-swatch {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: text-bottom;
}

/* Кнопки сброса */
#reset-filters,
#reset-all-filters {
  display: block;
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
}

#reset-filters {
  margin-top: 20px;
  padding: 10px;
}

#reset-filters:hover,
#reset-all-filters:hover {
  background-color: #e9e9e9;
}

.apply-filters-btn {
  display: none;
  width: 100%;
  padding: 12px;
  background: var(--secondary-dark);
  color: white;
  border: none;
  border-radius: 4px;
  margin: 10px 0;
  cursor: pointer;
}

/* Слайдер цены */
.price-slider {
  padding: 15px;
}

.slider-container {
  position: relative;
  height: 30px;
}

.slider-container input[type="range"] {
  position: absolute;
  width: 100%;
  height: 5px;
  background: transparent;
  pointer-events: none;
}

.slider-track {
  position: absolute;
  height: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.slider-container input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid #007bff;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.price-inputs input {
  width: 100px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

input[type="range"] {
  width: 100%;
  margin-top: 5px;
  accent-color: var(--accent-green);
}

#price-min-value,
#price-max-value {
  font-weight: normal;
  color: #555;
  font-size: 12px;
}

/* ============================================
   3. ТОВАРЫ И СЕТКА
   ============================================ */
.product {
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 2px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  max-width: 100%;
  text-align: center;
  transition-property: transform, opacity;
  transition-timing-function: ease-in-out;
  transition-duration: var(--duration-expand);
  margin-bottom: 10px;
  line-height: 1.5;
}

.product.hidden {
  display: none;
}

.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-name {
  font-size: 12px;
  height: 46px;
  font-weight: normal;
  padding: 0px 5px;
  text-transform: capitalize;
  width: 100%;
  color: var(--text-dark);
  margin: 5px 0;
}

.product-price {
  height: 15px;
  font-weight: bold;
  text-transform: none;
}

.product-img {
  padding: 0px 5px;
  object-fit: cover;
  border-radius: 3px;
  height: 250px;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: opacity 0.3s ease;
  backface-visibility: hidden;
  will-change: transform;
}

.product-img:hover {
  opacity: 0.9;
}

.product-img-plintus {
  object-fit: contain;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.product-img-podlozhka,
.porogi-img {
  object-fit: contain;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-badge--online {
  background-color: #FF5722;
}

.product-badge--instock {
  background-color: #4CAF50;
}

/* Контейнер товаров и коллекции */
.product-container {
  display: grid;
  grid-template-columns: 2fr 5fr;
}

.collection__container {
  background: var(--accent-beige);
  border-radius: 10px;
  padding: 20px;
  margin: 15px 0;
  min-height: 760px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  padding-bottom: 30px;
  object-fit: contain;
}

.product-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 5px;
  transition: transform 0.3s, opacity 0.3s;
}

.product-item-collection {
  display: contents;
}

.desc-img-furniture {
  width: 500px;
  height: 300px;
}

.laminat-img {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 5px;
  font-size: 16px;
  width: 70%;
  height: auto;
  max-width: 100%;
  text-transform: uppercase;
  font-weight: bold;
  object-fit: cover;
  padding-left: 5%;
  align-items: center;
}

.collection-title {
  text-align: left;
  color: var(--secondary-dark);
}

.collection-title h2 {
  text-align: left;
  color: var(--hover-green);
}

.description-img {
  display: flex;
  justify-content: center;
  height: 100%;
  width: 100%;
  position: relative;
}

.desc-img {
  width: 150px;
  height: 150px;
}

/* ============================================
   4. СОРТИРОВКА И ПЕРЕКЛЮЧАТЕЛИ ВИДА
   ============================================ */
.sorting-controls {
  margin: 10px;
  border-radius: 5px;
  text-align: center;
}

.sorting-controls select {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-left: 10px;
}

#sorting-controls {
  margin-bottom: 20px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

#sorting-controls label {
  margin-right: 10px;
  font-weight: bold;
}

#sort-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-size: 14px;
}

label {
  font-weight: bold;
  font-size: 14px;
}

select {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #a4a4a4;
  border-radius: 4px;
}

.view-toggle.mobile-only {
  display: none;
  justify-content: center;
  margin: 15px 0;
  padding: 0 10px;
}

.view-btn {
  background: var(--accent-beige);
  border: 1px solid #ddd;
  padding: 8px 15px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
}

.view-btn.active {
  background: var(--hover-green);
  color: var(--text-light);
  border-color: var(--accent-green);
}

.products-container.one-column .product {
  width: 100%;
  max-width: none;
}

.otobrazhenie-tovarov img {
  width: 25px;
  height: 25px;
}

/* Кнопка "Показать ещё" */
#showMoreButton {
  margin: 20px auto;
  padding: 10px 20px;
  display: block;
  background-color: var(--secondary-dark);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#showMoreButton:hover {
  background-color: var(--hover-green);
}

#showMoreButton:active {
  transform: scale(0.98);
}

/* ============================================
   5. КОРЗИНА (МОДАЛКА И КНОПКИ)
   ============================================ */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1002;
  animation: fadeIn 0.5s ease-out;
  overflow: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cart-modal.active {
  display: block;
}

.cart-content {
  background: #fff;
  margin: 2vh auto;
  padding: 25px;
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  border: 1px solid #f0f0f0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent-green);
}

.cart-header h3 {
  color: var(--primary-dark);
  font-size: 1.8rem;
  font-weight: 600;
}

.close-cart {
  color: var(--text-dark);
  font-size: 45px;
  transition: all 0.5s ease;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
}

.close-cart:hover {
  color: var(--hover-green);
  transform: scale(1.1);
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  height: auto;
  padding: 15px;
  border-bottom: 1px solid var(--accent-green);
}

.item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.item-image img {
  width: 90px;
  height: 80px;
  padding: 0px 5px;
  object-fit: contain;
  border-radius: 6px;
}

.item-info h4 {
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.item-info p {
  color: var(--text-dark);
  font-size: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 5px;
}

.quantity-controls button {
  width: 32px;
  height: 32px;
  border: none;
  background: #fff;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quantity-controls button:hover {
  background: var(--hover-green);
  color: var(--text-light);
}

.item-total {
  font-weight: 600;
  color: #444;
  min-width: 120px;
  text-align: right;
}

.cart-button {
  right: 10px;
  position: fixed;
  border-radius: 30px;
  width: 62px;
  height: 38px;
  font-size: 16px;
  top: 132px;
  background: var(--secondary-dark);
  z-index: 998;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.5s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-button:hover {
  background: var(--hover-green);
  color: var(--text-dark);
}

.cart-button.has-items {
  background: var(--accent-green);
  color: var(--text-light);
}

.go-to-cart {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 25px;
  background: var(--accent-green);
  color: var(--text-light);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.add-to-cart {
  position: relative;
  padding: 12px 24px;
  background-color: var(--accent-green);
  color: white;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s;
}

.button-text,
.notification {
  transition: opacity 0.3s, transform 0.3s;
  display: block;
}

.notification {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 100%);
  opacity: 0;
  white-space: nowrap;
  background-color: var(--secondary-dark);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart.active .button-text {
  opacity: 0;
  transform: translateY(-100%);
}

.add-to-cart.active .notification {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Страница корзины (отдельная) */
.cart-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

.cart-item-info {
  flex: 2;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-total {
  text-align: right;
  font-size: 20px;
  margin-top: 20px;
  color: black;
}

.cart-total span {
  color: black;
}

.remove-item {
  color: var(--alert-red);
  cursor: pointer;
  font-size: 30px;
}

.quantity-btn {
  padding: 5px 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  background: var(--accent-beige);
  min-width: 32px;
  min-height: 32px;
  touch-action: manipulation;
}

.cart-item-info h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.cart-item-info p {
  font-size: 14px;
  color: var(--text-dark);
}

.cart-item-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.price-details {
  margin: 8px 0;
}

.unit-price {
  color: var(--secondary-dark);
  font-weight: 600;
}

.pack-info {
  text-align: center;
}

.pack-price {
  color: var(--text-dark);
  font-size: 0.9em;
  margin-left: 10px;
}

.pack-size {
  color: var(--text-dark);
  font-size: 0.7em;
}

.cart-icon {
  position: relative;
  margin-left: 20px;
}

.cart-icon a {
  color: var(--primary-dark);
  font-size: 24px;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -15px;
  background: var(--alert-red);
  color: white;
  border-radius: 50%;
  padding: 3px 8px;
  font-size: 14px;
  font-weight: bold;
}

/* Чекбокс соглашения */
.contacts-agreement {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.contacts-checkbox {
  display: block;
  position: relative;
  cursor: pointer;
  height: 20px;
  width: 20px;
}

.contacts-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.contacts-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid var(--accent-green);
  border-radius: 4px;
}

.contacts-checkbox:hover input ~ .contacts-checkmark {
  background-color: #fff8e6;
}

.contacts-checkbox input:checked ~ .contacts-checkmark {
  background-color: var(--accent-green);
}

.contacts-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contacts-checkbox input:checked ~ .contacts-checkmark:after {
  display: block;
}

.contacts-terms {
  font-size: 14px;
  color: var(--text-dark);
}

.contacts-policy-link {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.3s;
}

.contacts-policy-link:hover {
  color: var(--hover-green);
  text-decoration: underline;
}

/* ============================================
   6. ПРОЧИЕ КОМПОНЕНТЫ
   ============================================ */
.mobile-only {
  margin-top: 10px;
  display: none;
  width: 100%;
  padding: 10px;
  background-color: var(--accent-green);
  color: var(--text-dark);
  border: 1px black;
  font-size: 16px;
  margin-bottom: 10px;
}

.mobile-only.scrolled {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 1001;
  padding: 12px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mobile-only.scrolled span {
  opacity: 0;
  width: 0;
}

.mobile-only.scrolled i {
  margin-left: 0;
}

.mobile-only i {
  font-size: 18px;
  transition: margin 0.3s ease;
}

.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 1000;
}

.product-modal iframe {
  width: 90%;
  height: 90%;
  margin: 2% auto;
  border: none;
  border-radius: 10px;
}

.chasto-iwut {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.chasto-iwut li {
  padding: 5px;
}

.count {
  color: #666;
  margin-left: 5px;
  font-size: 0.9em;
}

.image-brand {
  width: 100px;
  height: 50px;
}

.fast-link-block li img {
  object-fit: contain;
}

/* ============================================
   7. АДАПТИВНОСТЬ (ВСЕ МЕДИА-ЗАПРОСЫ)
   ============================================ */

/* 970px */
@media (max-width: 970px) {
  .laminat-img {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 5px;
    font-size: 14px;
    width: 100%;
    padding-left: 0;
  }
  .laminat-desc {
    text-align: center;
    padding-bottom: 15px;
    align-items: center;
    max-width: 100%;
    width: 100%;
  }
  .product-img {
    border-radius: 5px;
    height: 240px;
    width: 240px;
  }
  .product-img-plintus {
    object-fit: cover;
  }
}

/* 768px */
@media (max-width: 768px) {
  .apply-filters-btn {
    display: block;
  }
  .filters-wrapper {
    position: absolute;
  }
  .close-filters-btn {
    display: block;
  }
  .filters-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    padding: 60px 20px 20px;
    overflow-y: auto;
    z-index: 1000;
  }
  .filters-container.active {
    display: block;
  }
  .filter-group {
    width: 90%;
    margin-bottom: 10px;
  }
  .mobile-filter-btn {
    display: block;
    position: fixed;
    z-index: 1001;
    color: var(--primary-dark);
  }
  .filter-options {
    width: 100% !important;
    margin-bottom: 15px;
  }
  .filter-header {
    font-size: 18px;
  }
  .color-swatch {
    width: 18px;
    height: 18px;
  }
  .filter-chip .color-swatch {
    width: 14px;
    height: 14px;
  }
  .laminat-img {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .product-container {
    display: grid;
    grid-template-columns: 1fr;
  }
  .collection__container {
    padding: 0;
  }
  .product-name {
    height: 55px;
    font-size: 11px;
  }
  .product-img-plintus {
    object-fit: cover;
    height: 120px;
    width: 150px;
  }
  .product-price {
    font-size: 16px;
    height: 24px;
  }
  .product-item {
    display: grid;
    grid-template-columns: 1fr;
    padding: 5px;
  }
  .item-image {
    width: 60px;
    height: 60px;
  }
  .item-info h4 {
    font-size: 0.9rem;
  }
  .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .close-cart {
    font-size: 2rem;
    line-height: 1;
  }
  .chasto-iwut {
    grid-template-columns: 1fr;
  }
  .view-toggle.mobile-only {
    display: flex;
    background-color: var(--accent-beige);
  }
  .products-container.two-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .products-container.two-columns .product {
    margin: 5px;
  }
  .mobile-only {
    top: 0;
    display: block;
  }
}

/* 767px (корзина) */
@media (max-width: 767px) {
  .cart-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    position: relative;
  }
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  .cart-item-info {
    flex: 1 1 60%;
    min-width: 0;
  }
  .cart-item-info h3 {
    font-size: 14px;
    line-height: 1.3;
  }
  .price-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }
  .pack-price {
    margin-left: 0;
    font-size: 12px;
  }
  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid #eee;
  }
  .item-sum {
    font-size: 14px;
    min-width: auto;
  }
  .quantity-controls {
    order: -1;
  }
  .remove-item {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 28px;
    padding: 8px;
    margin: -8px;
  }
  .cart-total {
    font-size: 18px;
    margin-top: 15px;
  }
  .mobile-hidden {
    display: none;
  }
  .price-details {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* 640px */
@media (max-width: 640px) {
  .product-img {
    border-radius: 5px;
    height: 150px;
    width: 100%;
    column-gap: 10px;
    max-width: 100%;
  }
  .description-img {
    display: flex;
    padding: 20px;
  }
  .desc-img {
    width: 150px;
    height: 150px;
  }
  .product-img-plintus {
    object-fit: cover;
    height: 120px;
    width: 150px;
  }
  .collection__name h1 {
    margin-top: 5%;
    font-size: 35px;
    font-weight: 600;
  }
  .collection__country {
    text-align: center;
    padding-bottom: 30px;
  }
  .collection__country img {
    height: 20px;
    width: 35px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.897);
  }
  .collection__subtitle {
    font-size: 40px;
  }
  .laminat-desc {
    text-align: center;
    padding-bottom: 15px;
    align-items: center;
    max-width: 100%;
    width: 100%;
  }
  .skidka {
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: bold;
  }
  .price {
    font-size: 35px;
    font-weight: 600;
  }
}

/* 520px */
@media (max-width: 520px) {
  .mobile-filter-btn {
    right: 41%;
  }
}

/* 480px */
@media (max-width: 480px) {
  .cart-container {
    padding: 15px;
  }
  .cart-item-image {
    width: 50px;
    height: 50px;
  }
  .unit-price {
    font-size: 14px;
  }
  .quantity-btn {
    padding: 4px 8px;
  }
}

/* 760px (для .mobile-only) – оставлено как было */
@media (max-width: 760px) {
  .mobile-only {
    top: 0;
    display: block;
  }
}