/* ============================================================
   PRODUCT DETAIL — LOFT REFINEMENTS
   ============================================================ */

/* ── Gallery ── */
.product-gallery-main {
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}
.product-gallery-main .swiper-slide img {
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.product-gallery-main .swiper-slide:hover img {
  transform: scale(1.03);
}
.product-gallery-thumbs .swiper-slide {
  border-radius: 8px;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.product-gallery-thumbs .swiper-slide:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ── Badges ── */
.badge-custom {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 100px;
  text-transform: uppercase;
}
.badge-hot {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.25);
}
.badge-new {
  background: rgba(var(--color-accent-rgb, 255,184,0),0.12);
  color: var(--color-accent);
  border: 1px solid rgba(var(--color-accent-rgb, 255,184,0),0.3);
}

/* ── Price ── */
.product-price-block {
  padding: 1.25rem 0;
}
.product-price-lg {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

/* ── Color swatches (anchor links to color variants) ── */
.color-swatch {
  display: inline-block;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.2s, transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  text-decoration: none;
}
.color-swatch:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.color-swatch.active {
  outline-color: var(--color-accent);
  border-color: transparent;
  pointer-events: none;
}

/* ── Size buttons ── */
.size-btn {
  min-width: 52px; height: 44px;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  letter-spacing: 0.03em;
}

/* ── Qty selector ── */
.qty-selector {
  border-radius: 10px;
}
.qty-btn {
  width: 46px;
  font-size: 1.1rem;
  font-weight: 300;
}
.qty-value {
  min-width: 48px;
  font-size: 1rem;
}

/* ── Add to cart button ── */
.btn-add-cart {
  border-radius: 10px;
  letter-spacing: 0.02em;
  gap: 0.6rem;
}
.btn-wishlist-lg {
  border-radius: 10px;
  width: 50px; height: 50px;
}

/* ── Shipping chips ── */
.product-shipping-info {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.shipping-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.875rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.shipping-chip i {
  color: var(--color-accent);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.shipping-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

/* ── Product tabs ── */
.product-tabs-nav {
  gap: 0.25rem;
  padding-bottom: 0;
}
.product-tab {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 8px 8px 0 0;
  letter-spacing: 0.01em;
}
.product-tab.active {
  background: var(--color-surface-2);
}
.product-tab-content.active {
  padding-top: 2rem;
}

/* ── Feature list ── */
.product-feature-list {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.product-feature-list li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: var(--color-text-muted);
}
.product-feature-list li i {
  color: var(--color-accent);
  font-size: 0.875rem; flex-shrink: 0;
  background: rgba(var(--color-accent-rgb,255,184,0),0.12);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Specs table ── */
.specs-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}
.specs-table {
  width: 100%; border-collapse: collapse;
}
.specs-table tr:nth-child(even) {
  background: var(--color-surface-2);
}
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
}
.specs-table td:first-child {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 42%;
}
.specs-table td:last-child {
  font-weight: 500;
}

/* ── Care cards ── */
.care-card {
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.care-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}
.care-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: rgba(var(--color-accent-rgb,255,184,0),0.1);
  border-radius: 50%;
  margin: 0 auto 0.875rem;
}
.care-icon {
  font-size: 1.5rem;
  margin: 0;
  display: block;
}

/* ── Reviews summary ── */
.reviews-summary {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: sticky; top: 90px;
}
.reviews-score {
  font-size: 4rem; font-weight: 800;
  line-height: 1; letter-spacing: -0.04em;
  color: var(--color-text);
}
.reviews-stars { font-size: 1.25rem; color: var(--color-accent); margin: 0.35rem 0 0.25rem; }
.reviews-total { font-size: 0.8125rem; color: var(--color-text-muted); }
.rating-bars { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.rating-bar-row {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--color-text-muted);
}
.rating-bar-row span:first-child { min-width: 22px; text-align: right; }
.rating-bar-row span:last-child  { min-width: 18px; }
.rating-bar-track {
  flex: 1; height: 6px;
  background: var(--color-border);
  border-radius: 100px; overflow: hidden;
}
.rating-bar-fill {
  height: 100%; background: var(--color-accent);
  border-radius: 100px;
  transition: width 0.6s ease;
}

/* ── Review cards ── */
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.review-card:hover {
  border-color: rgba(var(--color-accent-rgb,255,184,0),0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.review-card:last-child { margin-bottom: 0; }
.review-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.625rem;
}
.review-author-row {
  display: flex; align-items: center; gap: 0.75rem;
}
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-accent);
  color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}
.review-author {
  font-weight: 600; font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.1rem;
}
.review-stars { font-size: 0.875rem; color: var(--color-accent); letter-spacing: 0.05em; }
.review-date { font-size: 0.8125rem; color: var(--color-text-faint); margin-top: 0.25rem; }
.review-verified {
  font-size: 0.8rem; color: #16a34a;
  display: flex; align-items: center; gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.review-text {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}
.review-size {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; color: var(--color-text-faint);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

/* ── Related products section ── */
.section-sm .section-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

/* ── Mobile tweaks ── */
@media (max-width: 768px) {
  .product-shipping-info { flex-direction: column; }
  .shipping-chip { width: 100%; }
  .reviews-summary { position: static; margin-bottom: 1.5rem; }
}
