/* ============================================================
   Unique East Art — product detail page
   Measured from the live page at 1440 × 900:
   container 72 → 1368 (1296) · breadcrumb 231 · gallery 283 (758 × 699,
   thumbs 43 at x 73, main 701 at x 129) · info column x 862.4 (505.6)
   · title 28/33.6 · Add to Cart 525.2 · Buy Now 577.2
   · description 645.6 · footer 1002 · page 1316
   ============================================================ */

.product-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 72px 0;
}

/* ---------- breadcrumb ---------- */
.product-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0;
  font-size: 16px;
  line-height: 24px;
}
.product-crumb a { color: #000; text-decoration: none; }
.product-crumb a:hover { text-decoration: underline; }
.product-crumb svg { width: 11px; height: 11px; flex: 0 0 auto; }
.product-crumb .is-current {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- two-column layout (758 + 32 + 506) ---------- */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 758fr) minmax(0, 506fr);
  column-gap: 32px;
  align-items: start;
  margin-top: 24px;
  margin-bottom: 20px;
}

/* ---------- gallery: 43px thumb rail + 701px main ---------- */
.product-gallery {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  column-gap: 13px;
  padding-left: 1px;
}
.pg-thumbs { display: flex; flex-direction: column; gap: 8px; }
.pg-thumb {
  width: 43px;
  height: 43px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.pg-thumb img {
  display: block;
  width: 43px;
  height: 43px;
  object-fit: cover;
}
.pg-thumb.is-active { outline: 1px solid rgba(0, 0, 0, .35); outline-offset: 0; }
.pg-main { min-width: 0; }
.pg-main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 701 / 699;
  object-fit: cover;
}

/* ---------- info column ---------- */
.product-info { display: flex; flex-direction: column; align-items: stretch; }
.product-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 33.6px;
  margin: 0;
}
.product-price {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 21px;
}
.qty-field { margin-top: 24px; }
.qty-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 19.6px;
}
.qty-label .req { margin-left: 4px; }
.qty-stepper {
  display: flex;
  align-items: stretch;
  width: 95.1px;
  height: 37px;
  border: 1px solid rgba(0, 0, 0, .6);
  background: #fff;
}
.qty-stepper button {
  width: 28px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
  color: #000;
  cursor: pointer;
}
.qty-stepper button:hover { color: var(--red); }
.qty-stepper input {
  flex: 1 1 auto;
  width: 39px;
  min-width: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1;
  color: #000;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-cart, .btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 20px;
  font-family: var(--sans);
  font-size: 16px;
  color: #fff;
  cursor: pointer;
}
.btn-cart {
  margin-top: 24px;
  height: 40px;
  padding: 8px 15px;
  line-height: 22.4px;
  background: var(--red);
}
.btn-buy {
  margin-top: 12px;
  height: 42.4px;
  padding: 10px 16px;
  line-height: 22.4px;
  background: #000;
}
.btn-cart:hover { background: #75100f; }
.btn-buy:hover { background: #1c1c1c; }
.btn-cart.is-added { background: #2e7d32; }
.btn-cart:disabled, .btn-buy:disabled { opacity: .65; cursor: default; }

.product-desc {
  margin-top: 26px;
  font-size: 18px;
  line-height: 27px;
}
.product-desc p { margin: 0; }
.product-desc p:first-of-type { margin-bottom: 25px; }

/* ---------- description: Read more / Less (81px = 3 lines) ---------- */
.product-desc.is-collapsed {
  max-height: 81px;
  overflow: hidden;
}
.desc-toggle {
  align-self: flex-start;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 27px;
  color: #000;
  cursor: pointer;
}
.desc-toggle:hover { text-decoration: underline; }

/* ---------- share row ---------- */
.product-share {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 22px;
}
.product-share a {
  display: inline-flex;
  color: #000;
  line-height: 0;
}
.product-share svg { width: 19px; height: 19px; }
.product-share a:hover { opacity: .55; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1199px) {
  .product-container { padding: 18px 32px 0; }
  .product-layout { column-gap: 26px; }
  .product-title { font-size: 24px; line-height: 30px; }
  .product-desc { font-size: 16px; line-height: 25px; }
  .desc-toggle { font-size: 16px; line-height: 25px; }
}

@media (max-width: 991px) {
  .product-container { padding: 16px 24px 0; }
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 26px;
    margin-top: 18px;
  }
  .product-gallery { grid-template-columns: 1fr; row-gap: 10px; padding-left: 0; }
  .pg-main { order: -1; }
  .pg-thumbs { flex-direction: row; gap: 8px; }
  .product-title { font-size: 22px; line-height: 28px; }
  .product-desc { font-size: 16px; line-height: 24px; }
  .product-desc p:first-of-type { margin-bottom: 18px; }
  .desc-toggle { font-size: 16px; line-height: 24px; }
}

@media (max-width: 767.98px) {
  .product-container { padding: 13px 16px 0; }
  .product-crumb { font-size: 14px; line-height: 20px; gap: 7px; }
  .product-crumb .is-current { white-space: normal; overflow: visible; }
  .product-title { font-size: 20px; line-height: 26px; }
  .product-price { margin-top: 6px; }
  .qty-field { margin-top: 18px; }
  .btn-cart { margin-top: 20px; }
  .product-desc { margin-top: 20px; font-size: 15px; line-height: 23px; }
  .desc-toggle { font-size: 15px; line-height: 23px; }
  .product-share { margin-top: 18px; gap: 24px; }
}
