/* ── Product detail ── */
.product-detail {
  background: #fff;
  padding: 48px 0 32px;
}

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

/* Gallery */
.product-gallery__main {
  position: relative;
  background: #f0f2f5;
  border: 1px solid #eef1f5;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 14px;
}

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

.product-gallery__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fef3c7;
  color: #3d4a5c;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 3px;
  z-index: 2;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.product-gallery__thumb {
  aspect-ratio: 1;
  border: 2px solid transparent;
  background: #f0f2f5;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  border-color: var(--color-coral, #9d3b16);
}

/* Info */
.product-info__category {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-coral, #9d3b16);
  margin-bottom: 8px;
}

.product-info__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: #1a2b4a;
  line-height: 1.25;
  margin-bottom: 14px;
}

.product-info__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef1f5;
}

.product-info__sku {
  font-size: 13px;
  color: #6b7a8d;
}

.product-info__stock {
  font-size: 13px;
  font-weight: 500;
  color: #22a06b;
}

.product-info__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.product-info__price {
  font-size: 28px;
  font-weight: 600;
  color: #1a2b4a;
}

.product-info__price-old {
  font-size: 18px;
  color: #9aa5b4;
  text-decoration: line-through;
}

.product-info__excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: #5a6577;
  margin-bottom: 22px;
}

.product-info__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a2b4a;
  margin-bottom: 10px;
}

.product-info__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.product-info__swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-info__swatch.is-active {
  border-color: #1a2b4a;
  box-shadow: 0 0 0 2px #fff inset;
}

.product-info__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.product-qty {
  display: flex;
  align-items: center;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  overflow: hidden;
}

.product-qty__btn {
  width: 40px;
  height: 44px;
  border: none;
  background: #f8f9fb;
  color: #1a2b4a;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.product-qty__btn:hover {
  background: #eef1f5;
}

.product-qty__input {
  width: 48px;
  height: 44px;
  border: none;
  border-left: 1px solid #dde3ec;
  border-right: 1px solid #dde3ec;
  text-align: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: #1a2b4a;
  -moz-appearance: textfield;
}

.product-qty__input::-webkit-outer-spin-button,
.product-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-info__cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-coral, #9d3b16);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 28px;
  height: 44px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
}

.product-info__cart-btn svg {
  width: 18px;
  height: 18px;
}

.product-info__cart-btn:hover {
  background: #e06d62;
}

.product-info__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  background: #fff;
  color: #1a2b4a;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.product-info__icon-btn svg {
  width: 18px;
  height: 18px;
}

.product-info__icon-btn:hover {
  border-color: var(--color-coral, #9d3b16);
  color: var(--color-coral, #9d3b16);
}

.product-info__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #22a06b;
  margin-bottom: 24px;
  transition: opacity 0.2s;
}

.product-info__whatsapp svg {
  width: 20px;
  height: 20px;
}

.product-info__whatsapp:hover {
  opacity: 0.85;
}

.product-info__specs {
  list-style: none;
  border-top: 1px solid #eef1f5;
  padding-top: 20px;
}

.product-info__specs li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #5a6577;
  margin-bottom: 8px;
}

.product-info__specs strong {
  color: #1a2b4a;
  font-weight: 600;
  min-width: 90px;
}

/* Tabs */
.product-tabs {
  background: #fff;
  padding: 0 0 56px;
}

.product-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 28px;
}

.product-tabs__btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 14px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: #6b7a8d;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.product-tabs__btn.is-active {
  color: #1a2b4a;
  border-bottom-color: var(--color-coral, #9d3b16);
}

.product-tabs__btn:hover {
  color: #1a2b4a;
}

.product-tabs__panel {
  display: none;
  font-size: 15px;
  line-height: 1.7;
  color: #5a6577;
}

.product-tabs__panel.is-active {
  display: block;
}

.product-tabs__panel p {
  margin-bottom: 14px;
}

.product-tabs__panel ul {
  margin: 0 0 14px 18px;
}

.product-tabs__panel li {
  margin-bottom: 6px;
}

/* Related */
.product-related {
  background: #f8f9fb;
  padding: 48px 0 56px;
}

.product-related__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 28px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .product-detail {
    padding: 32px 0 24px;
  }

  .product-gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .product-info__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-info__cart-btn {
    justify-content: center;
    flex: 1;
  }

  .product-tabs__nav {
    overflow-x: auto;
  }

  .product-tabs__btn {
    padding: 12px 16px;
    white-space: nowrap;
  }
}
