/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-page {
  padding: calc(80px + 48px) 0 80px;
  background: var(--cream);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a { color: var(--muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--line-2); }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.gallery-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  margin-bottom: 12px;
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.18s;
}

.gallery-arrow--prev { left: 6px; }
.gallery-arrow--next { right: 6px; }

.gallery-main__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.15s;
}

.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--ink); }

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

.product-title-mobile { display: none; }

.product-eyebrow {
  font-family: 'English111VivaceBT', cursive;
  font-size: 36px;
  font-weight: 400;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.product-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 32px;
}

.product-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 28px;
}
.product-description p { margin: 0 0 0.6em; }
.product-description p:last-child { margin-bottom: 0; }
.product-description p:empty,
.product-description p:has(br:only-child) { margin: 0 0 0.6em; min-height: 1em; }
.product-description strong { font-weight: 600; color: var(--ink); }
.product-description em { font-style: italic; }
.product-description ul,
.product-description ol { padding-left: 1.4em; margin: 0 0 0.6em; }
.product-description li { margin-bottom: 0.2em; }
.product-description .ql-font-Manrope   { font-family: 'Manrope', sans-serif; }
.product-description .ql-font-Cormorant { font-family: 'Cormorant', serif; }
.product-description .ql-font-Script    { font-family: 'English111VivaceBT', cursive; }

/* Spec grid (Ткань / Состав / Оттенок / Производство) */
.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  margin: 0 0 32px;
}

.spec-cell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-cell dt {
  font-size: 13px;
  color: var(--muted);
}

.spec-cell dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.option-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}

/* Size selection cards */
.size-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.size-card {
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.size-card:hover { border-color: var(--muted-2); }

.size-card.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.size-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.size-card__name {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.size-card__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.size-card__dims {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Buy row: qty stepper + add to cart + wishlist */
.product-info { min-width: 0; overflow: visible; }

.buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  min-width: 0;
}

.qty-stepper {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--line);
  border-radius: 6px;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: var(--line-2, #ddd); color: var(--accent); }

.qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}


.wishlist-btn-lg {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--muted-2);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.wishlist-btn-lg:hover,
.wishlist-btn-lg.active {
  color: var(--accent);
  border-color: var(--accent);
}

.wishlist-btn-lg.active svg { fill: var(--accent); }


/* ============================================================
   RESPONSIVE — product (tablet + mobile)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-layout { gap: 36px; }
}

@media (max-width: 768px) {
  .product-page { padding-top: 100px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-specs { grid-template-columns: 1fr; gap: 0; }
  .size-cards { grid-template-columns: 1fr; }
  .product-title-mobile { display: block; }
  .product-title-mobile { margin-bottom: 8px; }
  .product-layout { gap: 16px; }
  .product-title-mobile .product-title { margin-bottom: 0; }
  .product-info .product-eyebrow,
  .product-info .product-title { display: none; }

  .btn-add-cart {
    padding: 14px 16px;
    font-size: 13px;
    white-space: nowrap;
    gap: 7px;
  }
}

@media (max-width: 400px) {
  .qty-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .qty-value {
    min-width: 22px;
    font-size: 13px;
  }

  .wishlist-btn-lg {
    width: 40px;
    height: 40px;
  }

  .buy-row { gap: 8px; }

  .btn-add-cart {
    padding: 12px 12px;
    font-size: 12px;
    gap: 5px;
  }
}
