/* ==========================================================================
   ATYURZHE — ПОКРЫВАЛА (BEDSPREADS)
   Премиальная подача по эталону Togas в фирменной эстетике АтюрЖе
   ========================================================================== */

:root {
  --bedspread-bg: #f9f9f8;
  --bedspread-card-bg: #f1efeb;
  --bedspread-text: #1f1f1f;
  --bedspread-muted: #767676;
  --bedspread-border: #e6e4df;
  --bedspread-accent: #611b22;
  --bedspread-accent-dark: #451116;
  --bedspread-black: #141414;
}

/* Верхняя инфо-полоса в стиле Togas */
.togas-top-strip {
  background: #141414;
  color: #f5f5f4;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.togas-top-strip span {
  opacity: 0.85;
}
.togas-top-strip strong {
  color: #fff;
  font-weight: 500;
}

/* Хлебные крошки */
.breadcrumbs-bar {
  padding: 18px 0 10px;
  font-size: 12px;
  color: var(--bedspread-muted);
}
.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumbs-list a {
  color: var(--bedspread-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs-list a:hover {
  color: var(--bedspread-accent);
}
.breadcrumbs-list .sep {
  opacity: 0.45;
  font-size: 11px;
}
.breadcrumbs-list .current {
  color: var(--bedspread-text);
  font-weight: 500;
}

/* Заголовок каталога покрывал */
.bedspread-heading-section {
  text-align: center;
  padding: 24px 0 28px;
}
.bedspread-page-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--bedspread-text);
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.bedspread-count {
  font-family: var(--font-ui, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--bedspread-muted);
}
.bedspread-lead-note {
  font-size: 14px;
  color: var(--bedspread-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* Панель фильтров и сортировки (Togas style) */
.bedspread-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bedspread-border);
  padding-bottom: 16px;
  margin-bottom: 32px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}
.bedspread-filter-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.bedspread-filter-btn {
  background: none;
  border: none;
  font-family: var(--font-ui, 'Inter', sans-serif);
  font-size: 13px;
  color: var(--bedspread-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.bedspread-filter-btn:hover {
  color: var(--bedspread-accent);
}
.bedspread-filter-btn svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.bedspread-sort-group {
  display: flex;
  align-items: center;
  gap: 24px;
}
.bedspread-sort-btn {
  background: none;
  border: none;
  font-family: var(--font-ui, 'Inter', sans-serif);
  font-size: 13px;
  color: var(--bedspread-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bedspread-grid-layout-icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #1f1f1f;
  cursor: pointer;
}
.bedspread-grid-layout-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.bedspread-pagination-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--bedspread-muted);
}
.bedspread-pagination-mini span.active {
  color: var(--bedspread-text);
  font-weight: 600;
}

/* Сетка каталога (3 колонки как у Togas) */
.bedspread-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 28px;
  margin-bottom: 70px;
}

/* Карточка товара Togas-style */
.bedspread-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  group-focus: outline;
}

/* Медиа-контейнер карточки с hover-swap эффектом */
.bedspread-media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background-color: var(--bedspread-card-bg);
  border-radius: 2px;
}
.bedspread-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Первое фото (комната / общий вид) */
.bedspread-media .img-primary {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Второе фото (макро ткани / фактура) */
.bedspread-media .img-macro-hover {
  opacity: 0;
  transform: scale(1.05);
  z-index: 2;
}

/* При наведении: плавный переход на крупный план ткани */
.bedspread-card:hover .img-macro-hover,
.bedspread-card:focus-visible .img-macro-hover {
  opacity: 1;
  transform: scale(1);
}
.bedspread-card:hover .img-primary,
.bedspread-card:focus-visible .img-primary {
  opacity: 0;
}

/* Кнопка закладки / вишлиста в углу */
.bedspread-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #2b2b2b;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.bedspread-wishlist-btn:hover {
  background: #ffffff;
  color: var(--bedspread-accent);
  transform: scale(1.08);
}
.bedspread-wishlist-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
.bedspread-wishlist-btn.active svg {
  fill: var(--bedspread-accent);
  stroke: var(--bedspread-accent);
}

/* Бейдж фактуры/эксклюзива */
.bedspread-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 4;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bedspread-card:hover .bedspread-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Текстовая информация карточки под фото */
.bedspread-info {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
}
.bedspread-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--bedspread-text);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.bedspread-card:hover .bedspread-title {
  color: var(--bedspread-accent);
}
.bedspread-subtitle {
  font-size: 13px;
  color: var(--bedspread-muted);
  margin: 0 0 10px;
  font-weight: 400;
}
.bedspread-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bedspread-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--bedspread-text);
  letter-spacing: 0.02em;
}
.bedspread-cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #2b2b2b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.bedspread-cart-btn:hover {
  color: var(--bedspread-accent);
  transform: translateY(-2px);
}
.bedspread-cart-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ==========================================================================
   ДЕТАЛЬНАЯ СТРАНИЦА ТОВАРА (BEDSPREAD DETAIL - TOGAS STYLE)
   ========================================================================== */

.bedspread-detail-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.bedspread-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 460px);
  gap: 56px;
  align-items: start;
}

/* Левая колонка: вертикальный поток фотографий */
.detail-visual-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-photo-card {
  position: relative;
  width: 100%;
  background: var(--bedspread-card-bg);
  border-radius: 2px;
  overflow: hidden;
}
.detail-photo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.detail-photo-card:hover img {
  transform: scale(1.02);
}
.detail-photo-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: #1a1a1a;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none;
}

/* Правая колонка: липкая информационная панель */
.detail-sticky-panel {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

.detail-product-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--bedspread-text);
  margin: 0 0 6px;
}
.detail-product-subtitle {
  font-size: 14px;
  color: var(--bedspread-muted);
  margin: 0 0 10px;
}
.detail-collection-link {
  font-size: 13px;
  color: var(--bedspread-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 20px;
  display: inline-block;
  transition: color 0.2s ease;
}
.detail-collection-link:hover {
  color: var(--bedspread-accent-dark);
}

.detail-price-box {
  margin-bottom: 24px;
}
.detail-main-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--bedspread-text);
  letter-spacing: -0.01em;
}
.detail-price-note {
  font-size: 12px;
  color: var(--bedspread-muted);
  margin-top: 4px;
}

/* Кнопки действий */
.detail-actions-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.btn-detail-add-cart {
  width: 100%;
  height: 52px;
  background: var(--bedspread-black);
  color: #ffffff;
  border: 1px solid var(--bedspread-black);
  font-family: var(--font-ui, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  border-radius: 2px;
}
.btn-detail-add-cart:hover {
  background: var(--bedspread-accent);
  border-color: var(--bedspread-accent);
}
.btn-detail-add-cart:active {
  transform: scale(0.99);
}

.detail-secondary-actions-row {
  display: flex;
  gap: 10px;
}
.btn-detail-quick-buy {
  flex: 1;
  height: 48px;
  background: transparent;
  color: var(--bedspread-text);
  border: 1px solid #1f1f1f;
  font-family: var(--font-ui, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-detail-quick-buy:hover {
  background: #1f1f1f;
  color: #fff;
}
.btn-detail-fav {
  width: 48px;
  height: 48px;
  border: 1px solid #1f1f1f;
  background: transparent;
  color: var(--bedspread-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-detail-fav:hover {
  background: #f0eee9;
  color: var(--bedspread-accent);
}
.btn-detail-fav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

/* Статус наличия */
.detail-boutique-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2e6930;
  margin-bottom: 28px;
  padding: 10px 14px;
  background: #f1f8f2;
  border-radius: 3px;
}
.detail-boutique-availability svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Блок "Коллекция товаров" (cross-sell как у Togas) */
.detail-collection-section {
  border-top: 1px solid var(--bedspread-border);
  padding-top: 24px;
  margin-bottom: 28px;
}
.detail-collection-heading {
  font-size: 16px;
  font-weight: 500;
  color: var(--bedspread-text);
  margin: 0 0 16px;
}
.detail-collection-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-collection-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--bedspread-border);
  border-radius: 2px;
  padding: 10px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.detail-collection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.detail-collection-card-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--bedspread-card-bg);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.detail-collection-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-collection-card-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--bedspread-text);
  margin: 0 0 6px;
}
.detail-collection-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.detail-collection-card-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--bedspread-text);
}
.detail-collection-card-cart svg {
  width: 16px;
  height: 16px;
  stroke: var(--bedspread-text);
  stroke-width: 1.6;
  fill: none;
}

/* Аккордеоны Togas */
.detail-accordion {
  border-top: 1px solid var(--bedspread-border);
}
.detail-accordion:last-child {
  border-bottom: 1px solid var(--bedspread-border);
}
.detail-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--bedspread-text);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}
.detail-accordion summary::-webkit-details-marker {
  display: none;
}
.detail-accordion summary:hover {
  color: var(--bedspread-accent);
}
.detail-accordion summary svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}
.detail-accordion[open] summary svg {
  transform: rotate(180deg);
}

.detail-accordion-content {
  padding-bottom: 22px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #444;
}

/* Таблица характеристик (Togas table) */
.detail-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.detail-specs-table tr {
  border-bottom: 1px solid #f0eee9;
}
.detail-specs-table tr:last-child {
  border-bottom: none;
}
.detail-specs-table td {
  padding: 10px 0;
  font-size: 13px;
  vertical-align: top;
}
.detail-specs-table td.spec-name {
  color: var(--bedspread-muted);
  width: 40%;
}
.detail-specs-table td.spec-val {
  color: var(--bedspread-text);
  font-weight: 400;
}

/* Всплывающее уведомление о корзине */
.bedspread-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1f1f1f;
  color: #fff;
  padding: 14px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.35s ease;
  pointer-events: none;
}
.bedspread-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.bedspread-toast svg {
  width: 20px;
  height: 20px;
  stroke: #4ade80;
  stroke-width: 2;
  fill: none;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */
@media (max-width: 1100px) {
  .bedspread-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }
  .bedspread-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .detail-sticky-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .bedspread-catalog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bedspread-page-title {
    font-size: 26px;
  }
  .bedspread-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .bedspread-detail-container {
    padding: 0 16px 60px;
  }
  .detail-product-title {
    font-size: 24px;
  }
  .detail-main-price {
    font-size: 24px;
  }
}
