/* ═══════════════════════════════════════
   PRODUCT DETAIL PAGE
═══════════════════════════════════════ */

.pd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  direction: ltr;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* ── Info Column ── */
.pd__info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Header: name + price ── */
.pd__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.pd__titles {
  flex: 1;
}

.pd__name {
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  color: #000;
}

.pd__weight {
  display: block;
  font-size: 23px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
  /* 50% black */
  margin-top: 4px;
  text-transform: uppercase;
}

.pd__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.pd__price-value {
  font-size: 28px;
  font-weight: 600;
  color: #000;
}

/* ── Description ── */
.pd__desc {
  font-size: 15px;
  line-height: 1.6;
  color: #000000;
  font-weight: 600;
  margin-bottom: 24px;
}

.pd__middle {
  margin-top: auto;
  margin-bottom: auto;
}

/* ── Attributes table (Origin / Process / Notes) ── */
.pd__attrs {
  margin-bottom: 0;
  font-family: var(--heet-font, 'Helvetica Neue', 'Ghroob', Arial, sans-serif);
}

.pd__attrs--coffee {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 4px 18px 6px;
  margin-top: 4px;
}

.pd__attr-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid #c8c8c8;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  color: #000;
}

.pd__attrs--coffee .pd__attr-row:first-child {
  border-top: none;
}

.pd__attr-row:last-child {
  border-bottom: none;
}

.pd__attr-label {
  flex: 0 0 auto;
  font-weight: 400;
  color: #000;
  text-transform: none;
}

.pd__attr-label--en {
  text-transform: none;
  letter-spacing: 0.02em;
}

.pd__attr-value {
  flex: 1;
  font-weight: 400;
  color: #000;
  text-align: right;
  max-width: 68%;
}

/* Platform metafields (vitrin:shared/metafields.jinja) */
.pd__metafields {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
  font-size: 13px;
  line-height: 1.6;
  color: #000;
}

.pd__actions {
  margin-top: auto;
}

/* ── Controls: qty + wishlist ── */
.pd__controls {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
}

.pd__qty {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  flex: 1;
}

.pd__qty-btn {
  width: 44px;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: background 0.15s;
}

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

.pd__qty-input {
  height: 48px;
  border: none;
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  background: transparent;
  -moz-appearance: textfield;
}

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

.pd__wishlist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 48px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  flex: 1;
  transition: background 0.15s;
}

.pd__wishlist:hover {
  background: #f5f5f5;
}

.pd__wishlist svg {
  flex-shrink: 0;
  transition: fill 0.2s;
}

.pd__wishlist.is-wishlisted svg {
  fill: currentColor;
}

/* ── Add to basket button ── */
.pd__add-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
  height: 54px;
  border: none;
  border-radius: 6px;
  background: #6DBCD1;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}

.pd__add-btn:hover {
  background: #3dbdb5;
}

.pd__add-btn svg {
  flex-shrink: 0;
}

/* ── Gallery ── */
.pd__gallery {
  position: sticky;
  top: 80px;
  background: #EBEBEB;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  align-self: start;
}

.pd__img {
  width: 45%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* ── Related products ── */
#relatedProductsContainer {
  background-color: rgba(0, 0, 0, 0.05);
  /* 5% black */
  padding-top: 60px;
  padding-right: 30px;
  padding-left: 30px;
  padding-bottom: 80px;
  margin-top: 40px;
}

#relatedProductsContainer .heet-section-title {
  border-bottom: none;
  margin-bottom: 40px;
  padding-bottom: 0;
}

#relatedProductsContainer .pd-related {
  border-top: none;
  padding: 0;
}

#relatedProductsContainer .product-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

#relatedProductsContainer .product-card:hover {
  box-shadow: none;
}

#relatedProductsContainer .product-card__info {
  border-radius: 8px;
  /* Ensure info background respects rounded corners */
}

/* ═══════════════════════════════════════
   Responsive
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .pd {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .pd__gallery {
    order: -1;
    position: static;
  }

  .pd__name {
    font-size: 24px;
  }

  .pd__price-value {
    font-size: 22px;
  }

  .pd__controls {
    flex-wrap: wrap;
  }
}