/* ===== ГАМБУРГЕР МЕНЮ FIX ===== */
.hamburger {
  position: relative;
  z-index: 1000;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ===== СТРАНИЦА КАТАЛОГА ===== */

/* Активная категория */
.category-tab.active {
  background: #a06d5c !important;
}

.category-tab.active .text-wrapper-6,
.category-tab.active .text-wrapper-7 {
  color: #fff !important;
}

.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  gap: 16px;
}

.catalog-empty svg {
  opacity: 0.5;
}

.catalog-empty p {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 16px;
  color: #999;
  margin: 0;
}

/* ===== СТРАНИЦА ТОВАРА ===== */

.product-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #666;
}

.breadcrumbs a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #a06d5c;
}

.breadcrumbs span:last-child {
  color: #111;
  font-weight: 500;
}

/* Контейнер товара */
.product-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Галерея */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-image {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Бейджи на изображении */
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.product-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.product-badge.new {
  background: #22c55e;
}

.product-badge.hit {
  background: #ef4444;
}

.thumbnails {
  display: flex;
  gap: 8px;
  max-width: 400px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.thumbnail.active {
  border-color: #a06d5c;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Информация о товаре */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-info h1 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

/* Выбор размера */
.size-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.size-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

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

.size-btn {
  flex: 1;
  height: 40px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn:hover {
  border-color: #a06d5c;
}

.size-btn.active {
  background: #a06d5c;
  border-color: #a06d5c;
  color: #fff;
}

.size-btn.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Цена и наличие */
.product-price {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-value {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.price-stock {
  font-size: 13px;
  color: #22c55e;
  font-weight: 500;
}

/* Описание */
.product-description {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-description p {
  margin: 0 0 10px;
}

.product-description b,
.product-description strong,
.product-description [style*="font-weight: bold"],
.product-description [style*="font-weight:bold"] {
  font-weight: 700 !important;
  color: #111;
}

.product-description i,
.product-description em,
.product-description [style*="font-style: italic"],
.product-description [style*="font-style:italic"] {
  font-style: italic !important;
}

.product-description u,
.product-description [style*="text-decoration: underline"],
.product-description [style*="text-decoration:underline"] {
  text-decoration: underline !important;
}

.product-description s,
.product-description strike,
.product-description [style*="text-decoration: line-through"],
.product-description [style*="text-decoration:line-through"] {
  text-decoration: line-through !important;
}

.product-description ul,
.product-description ol {
  margin: 0 0 10px 20px;
  padding: 0;
}

.product-description li {
  margin-bottom: 4px;
}

.product-description br {
  display: block;
  content: "";
  margin: 4px 0;
}

.product-description div {
  margin-bottom: 4px;
}

.product-description span {
  display: inline;
}

/* Цвета коробки */
.product-colors {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.colors-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid #e5e5e5;
  background: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.color-option:hover {
  border-color: #a06d5c;
  background: #faf7f6;
}

.color-option.active {
  background: #a06d5c;
  border-color: #a06d5c;
  color: #fff;
}

/* Действия */
.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.product-actions .quick-buy-btn {
  flex: 1;
  height: 44px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  transition: all 0.2s;
}

.product-actions .quick-buy-btn:hover {
  border-color: #a06d5c;
  color: #a06d5c;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 38px;
  height: 44px;
  border: none;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #f5f5f5;
}

.qty-value {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
}

.product-actions .add-to-cart-btn {
  flex: 1;
  height: 44px;
  border: none;
  background: #a06d5c;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.product-actions .add-to-cart-btn:hover {
  background: #8a5d4d;
}

.product-actions .add-to-cart-btn span {
  font-size: 16px;
}

/* Другие товары */
.other-products {
  margin-top: 40px;
}

.other-products h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
}

/* ===== СКЕЛЕТОН ===== */
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-skeleton .skeleton-main-image {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.product-skeleton .skeleton-thumbnails {
  display: flex;
  gap: 8px;
}

.product-skeleton .skeleton-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.product-skeleton .skeleton-title {
  width: 70%;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.product-skeleton .skeleton-badges {
  display: flex;
  gap: 8px;
}

.product-skeleton .skeleton-badge {
  width: 80px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.product-skeleton .skeleton-size-btns {
  display: flex;
  gap: 10px;
}

.product-skeleton .skeleton-size-btn {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.product-skeleton .skeleton-price {
  width: 120px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.product-skeleton .skeleton-desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-skeleton .skeleton-desc-line {
  width: 100%;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.product-skeleton .skeleton-desc-line.short {
  width: 60%;
}

.product-skeleton .skeleton-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.product-skeleton .skeleton-action-btn {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.product-skeleton .skeleton-action-btn.small {
  flex: 0 0 120px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  .product-container {
    gap: 30px;
  }
  
  .main-image {
    max-width: 350px;
  }
  
  .thumbnails {
    max-width: 350px;
  }
  
  .product-info h1 {
    font-size: 22px;
  }
  
  .product-skeleton .skeleton-main-image {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .product-page {
    padding: 16px 16px 30px;
  }
  
  .product-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .main-image {
    max-width: 100%;
  }
  
  .thumbnails {
    max-width: 100%;
  }
  
  .product-info h1 {
    font-size: 20px;
  }
  
  .price-value {
    font-size: 20px;
  }
  
  .product-actions {
    flex-wrap: wrap;
  }
  
  .product-actions .quick-buy-btn {
    order: 1;
    flex: 1 1 100%;
  }
  
  .quantity-selector {
    order: 2;
  }
  
  .product-actions .add-to-cart-btn {
    order: 3;
    flex: 1;
  }
  
  .thumbnails {
    overflow-x: auto;
    padding-bottom: 6px;
  }
  
  .thumbnail {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
  }
  
  .product-skeleton .skeleton-main-image {
    max-width: 100%;
  }
  
  .color-options {
    gap: 6px;
  }
  
  .color-option {
    padding: 8px 14px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .breadcrumbs {
    font-size: 11px;
    margin-bottom: 12px;
  }
  
  .product-info h1 {
    font-size: 18px;
  }
  
  .size-buttons {
    flex-direction: column;
  }
  
  .size-btn {
    height: 38px;
  }
  
  .product-actions .quick-buy-btn,
  .product-actions .add-to-cart-btn {
    height: 42px;
    font-size: 12px;
  }
  
  .qty-btn {
    width: 36px;
    height: 42px;
  }
  
  .qty-value {
    width: 38px;
    height: 42px;
  }
  
  .other-products h2 {
    font-size: 18px;
  }
  
  .product-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .skeleton-size-btns {
    flex-direction: column;
  }
}
