/* Product detail extends the approved homepage without changing shared styles. */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro-500.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('../fonts/be-vietnam-pro-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

.pd-nav .nav-inner a:first-child { color: inherit; font-weight: 400; }
.pd-nav .nav-inner a[aria-current] { color: var(--blue); font-weight: 600; }
.pd-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 11px;
  padding: 20px 0 25px;
  color: var(--muted);
  font-size: .8125rem;
}
.pd-breadcrumb > span[aria-hidden] { color: #b3bac3; }
.pd-breadcrumb a:hover { color: var(--blue); }
.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  grid-template-areas: 'media purchase' 'specs description';
  gap: 34px 52px;
  padding: 0 0 48px;
  align-items: start;
}
.pd-media { grid-area: media; min-width: 0; }
.pd-photo {
  aspect-ratio: 373 / 327;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f5f5f3;
  border-radius: 5px;
}
.pd-photo img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbnails { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pd-thumbnails button { width: 70px; height: 66px; padding: 3px; border: 1px solid var(--line); background: #fff; }
.pd-thumbnails button[aria-pressed="true"] { border-color: var(--blue); }
.pd-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.pd-purchase { grid-area: purchase; min-width: 0; }
.pd-purchase h1 {
  margin: -4px 0 12px;
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.7px;
}
.pd-meta { display: flex; flex-wrap: wrap; gap: 5px 22px; color: var(--muted); font-size: .8125rem; margin-bottom: 20px; }
.pd-meta span span { color: #47586c; }
.pd-price-box { display: flex; align-items: center; gap: 24px; padding: 17px 21px; background: var(--light); border-radius: 4px; margin-bottom: 23px; }
.pd-price-label { color: #596b80; font-size: .875rem; }
.pd-price-box > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; }
#pd-price { color: var(--blue); font-size: 2rem; font-weight: 600; line-height: 1.3; letter-spacing: -.8px; }
#pd-unit { color: #68788a; font-size: .875rem; }
.pd-options { padding: 0; margin: 0 0 22px; border: 0; min-width: 0; }
.pd-options legend { font-size: .875rem; font-weight: 500; margin: 0 0 10px; float: none; width: auto; }
.pd-options .variant-list { margin: 0; gap: 9px; }
.pd-options button { min-height: 43px; padding: 8px 13px; font-size: .875rem; }
.pd-options button:hover { border-color: #8eafd8; }
.pd-options .pd-single-option { margin: 0; font-size: 1rem; color: #47586c; }
.pd-quantity-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 17px; margin-bottom: 22px; }
.pd-quantity-row label { margin: 0; font-size: .875rem; font-weight: 500; }
#pd-quantity-unit { color: var(--muted); font-weight: 400; }
#pd-quantity { font-size: 1rem; width: 70px; }
.pd-quantity-row .quantity-control { flex-shrink: 0; }
.pd-subtotal { margin: 0 0 0 auto; font-size: .8125rem; color: var(--muted); text-align: right; }
.pd-subtotal strong { display: block; font-size: 1.125rem; color: var(--ink); font-weight: 500; }
.pd-actions { display: grid; grid-template-columns: 1.12fr 1fr; gap: 12px; }
.pd-actions > * { min-height: 49px; font-size: .9375rem; padding: 10px 12px; gap: 9px; }
.pd-actions .icon { height: 19px; width: 19px; }
.pd-price-note { color: var(--muted); font-size: .75rem; margin: 11px 0 21px; }
.pd-support { border-top: 1px solid var(--line); padding-top: 17px; display: flex; gap: 12px; align-items: center; color: #5f6d7c; font-size: .8125rem; }
.pd-support > .icon { width: 26px; height: 26px; color: var(--blue); }
.pd-support strong { display: block; color: var(--blue); font-size: .875rem; font-weight: 500; margin-top: 3px; }
.pd-support strong .icon { width: 17px; height: 17px; margin-left: 6px; }
.pd-specs { grid-area: specs; }
.pd-description { grid-area: description; }
.pd-specs h2, .pd-description h2 { font-size: 1.25rem; font-weight: 500; margin: 0 0 17px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.pd-description h2 { position: relative; }
.pd-description h2::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 48px; height: 2px; background: var(--blue); }
.pd-specs dl { margin: 0; font-size: .875rem; }
.pd-specs dl > div { display: grid; grid-template-columns: 43% 1fr; gap: 12px; padding: 10px 14px; }
.pd-specs dl > div:nth-child(odd) { background: #f6f8fa; }
.pd-specs dt { color: var(--muted); font-weight: 400; }
.pd-specs dd { margin: 0; overflow-wrap: anywhere; }
.pd-description p { font-size: 1rem; line-height: 1.85; color: #596572; margin: 0 0 12px; }
.pd-description .pd-description-note { font-size: .875rem; color: #697582; }
.pd-related { border-top: 1px solid var(--line); padding: 32px 0 44px; }
.pd-related .section-heading { margin-bottom: 23px; }
.pd-related .section-heading h2 { font-size: 1.5rem; margin: 0; letter-spacing: -.5px; }
.pd-related .section-heading .text-link { font-size: .875rem; white-space: nowrap; }
.pd-related .product-photo { aspect-ratio: 1.14; }
.pd-related .product-price small { white-space: normal; }
.pd-not-found { text-align: center; padding: 60px 20px 80px; }
.pd-not-found > .icon { width: 44px; height: 44px; color: #8eafd8; margin-bottom: 20px; }
.pd-not-found h1 { font-size: 1.75rem; font-weight: 500; }
.pd-not-found p { color: var(--muted); }
.pd-noscript { padding: 30px; background: var(--light); }
.pd-noscript a { color: var(--blue); text-decoration: underline; }
#pd-cart-items .cart-row-bottom { flex-wrap: wrap; }
#pd-cart-items .cart-row > div { min-width: 0; }
#pd-cart-items .cart-row img { object-fit: contain; }
#pd-cart-items .cart-row h3 a:hover { color: var(--blue); }

@media (max-width: 1199px) {
  .pd-layout { gap: 30px; }
  .pd-purchase h1 { font-size: 1.625rem; }
  .pd-actions { grid-template-columns: 1fr; gap: 10px; }
  .pd-subtotal { width: 100%; display: flex; align-items: baseline; justify-content: space-between; }
  .pd-related .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .pd-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'media' 'purchase' 'description' 'specs'; gap: 28px; padding-bottom: 34px; }
  .pd-media { max-width: 560px; width: 100%; margin: 0 auto; }
  .pd-purchase h1 { font-size: 1.75rem; margin-top: 0; }
  .pd-actions { grid-template-columns: 1.12fr 1fr; }
  .pd-subtotal { width: auto; display: block; }
  .pd-related .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .pd-breadcrumb { padding: 15px 0 18px; font-size: .75rem; gap: 5px 8px; }
  #pd-breadcrumb-name { overflow-wrap: anywhere; }
  .pd-layout { gap: 24px; }
  .pd-purchase h1 { font-size: 1.5rem; letter-spacing: -.5px; margin-bottom: 10px; }
  .pd-meta { font-size: .75rem; gap: 4px 14px; margin-bottom: 17px; }
  .pd-price-box { padding: 15px 16px; gap: 22px; margin-bottom: 20px; }
  #pd-price { font-size: 1.875rem; }
  .pd-options { margin-bottom: 20px; }
  .pd-options button { padding: 9px 12px; min-height: 44px; }
  .pd-quantity-row { gap: 12px; margin-bottom: 17px; }
  .pd-subtotal { width: 100%; display: flex; align-items: baseline; justify-content: space-between; }
  .pd-actions { grid-template-columns: 1fr; gap: 10px; }
  .pd-actions > * { min-height: 48px; font-size: .9375rem; }
  .pd-price-note { font-size: .75rem; margin-bottom: 17px; }
  .pd-support { font-size: .8125rem; }
  .pd-specs h2, .pd-description h2 { font-size: 1.1875rem; margin-bottom: 14px; }
  .pd-specs dl > div { padding: 10px 11px; grid-template-columns: 42% 1fr; gap: 9px; }
  .pd-related { padding: 27px 0 32px; }
  .pd-related .section-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }
  .pd-related .section-heading h2 { font-size: 1.3125rem; }
  .pd-related .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-related .product h3 { font-size: .9375rem; }
  .pd-related .product-price small { display: block; font-size: .75rem; }
  #pd-cart-items .quantity-control input { font-size: 1rem; }
}
