/* Large, honest product photography and a quiet purchase area. */
.pdp { background: var(--bg); color: var(--ink); padding-bottom: 88px; }
.pdp-shell { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.pdp-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-block: 22px 26px; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.pdp-breadcrumbs a { min-height: 44px; max-width: 100%; min-width: 0; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.pdp-breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pdp-breadcrumbs > span { opacity: .55; }
.pdp-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); gap: 24px; align-items: start; }
.pdp-gallery { min-width: 0; }
.pdp-gallery__main { width: 100%; aspect-ratio: 1.045; display: grid; place-items: center; position: relative; background: #f4f3f4; padding: 6%; border: 0; border-radius: 28px; overflow: hidden; cursor: zoom-in; }
.pdp-gallery__main > img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.pdp-gallery__zoom { position: absolute; right: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.6875rem; font-weight: 500; color: #4e4b50; background: #fff; border-radius: 12px; padding: 10px 12px; }
.pdp-gallery__zoom .ph { font-size: 18px; }
.pdp-gallery__thumbnails { display: flex; gap: 10px; padding-top: 14px; overflow-x: auto; }
.pdp-gallery__thumbnails > button { width: 74px; flex: 0 0 74px; aspect-ratio: 1; border: 1px solid var(--line); padding: 7px; border-radius: 12px; background: #fff; }
.pdp-gallery__thumbnails > button[aria-pressed="true"] { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: -1px; }
.pdp-gallery__thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { min-width: 0; background: var(--bg); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); border-radius: 28px; padding: 30px; }
.pdp-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pdp-brand { font-size: 0.8125rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.pdp-favorite { width: 44px; height: 44px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; background: var(--surface); }
.pdp-favorite .ph { font-size: 25px; }
.pdp-favorite:hover { background: color-mix(in srgb, var(--surface) 85%, var(--ink)); }
.pdp-favorite[aria-pressed="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.pdp-title { font-size: clamp(1.5rem, 2vw, 1.75rem); line-height: 1.2; font-weight: 800; letter-spacing: -.025em; max-width: 580px; overflow-wrap: break-word; scroll-margin-top: calc(var(--header-height, 150px) + 24px); }
.pdp-title:focus { outline: none; }
.pdp-volume { color: var(--muted); font-size: 0.8125rem; margin-top: 12px; }
.pdp-price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block: 28px 24px; }
.pdp-price { font-size: 2rem; line-height: 1.15; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.pdp-price-row .pdp-text-link { font-size: 0.6875rem; color: var(--muted); min-height: 44px; }
.pdp-stock-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border-radius: 16px; padding: 16px 18px; margin-bottom: 24px; }
.pdp-stock-card__label { color: var(--muted); font-size: 0.6875rem; line-height: 1.5; }
.pdp-stock-card__address { font-size: 0.75rem; line-height: 1.5; margin-top: 3px; }
.pdp-stock { font-size: 0.9375rem; line-height: 1.4; font-weight: 800; white-space: nowrap; }
.pdp-stock-card--out .pdp-stock { font-size: 0.75rem; white-space: normal; text-align: right; }
.pdp-stock-card > div { min-width: 0; flex: 1; }
.pdp-stock-card__address { overflow-wrap: anywhere; }
.pdp-stock-card > .pdp-stock { flex: 0 1 auto; max-width: 45%; white-space: normal; text-align: right; }
.pdp-variants { padding: 0; border: 0; min-width: 0; margin: 0 0 24px; }
.pdp-variants legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font-size: 0.8125rem; font-weight: 700; }
.pdp-variants legend span { font-weight: 400; color: var(--muted); }
.pdp-variants__options { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-variant { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 9px; font-size: 0.8125rem; background: var(--bg); }
.pdp-variant:hover { border-color: var(--ink); }
.pdp-variant[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pdp-variant__swatch { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 20px; border: 1px solid rgb(0 0 0 / .08); }
.pdp-variant__swatch--red { background: #b71d30; }
.pdp-variant__swatch--pink { background: #ed94b5; }
.pdp-variant.is-unavailable .pdp-variant__swatch { position: relative; }
.pdp-variant.is-unavailable .pdp-variant__swatch::after { content: ""; position: absolute; top: 9px; left: -2px; width: 22px; height: 1px; background: var(--ink); transform: rotate(-45deg); }
.pdp-variant__note { font-size: 0.625rem; color: var(--muted); }
.pdp-purchase { padding-bottom: 18px; container-type: inline-size; }
.pdp-quantity-label { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 9px; }
.pdp-purchase__row { display: grid; grid-template-columns: 134px minmax(0, 1fr); gap: 12px; }
.pdp-quantity { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; border: 1px solid var(--line); border-radius: 16px; min-height: 3.625rem; overflow: hidden; }
.pdp-quantity button { min-height: 3.5rem; min-width: 44px; display: grid; place-items: center; }
.pdp-quantity button:hover:not(:disabled) { background: var(--surface); }
.pdp-quantity .ph { font-size: 18px; }
.pdp-quantity input { width: 100%; min-width: 0; text-align: center; font-size: 1rem; font-weight: 600; background: var(--bg); padding: 0; border: 0; border-radius: 0; appearance: textfield; -moz-appearance: textfield; }
.pdp-quantity input::-webkit-inner-spin-button, .pdp-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-quantity input:focus-visible { outline-offset: -3px; }
.pdp-quantity.is-disabled { color: var(--muted); background: var(--surface); }
.pdp-quantity.is-disabled input { background: var(--surface); }
.pdp-buy { min-width: 0; min-height: 3.625rem; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-size: 0.875rem; line-height: 1.35; font-weight: 700; padding: 14px 20px; text-align: center; }
.pdp-buy > span { min-width: 0; overflow-wrap: anywhere; }
.pdp-buy .ph { font-size: 21px; flex: 0 0 auto; line-height: 1; }
.pdp-buy:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 86%, #000); }
.pdp-buy:not(:disabled):active { scale: .98; }
.pdp-buy:disabled { opacity: 1; color: var(--muted); background: var(--surface); }
.pdp-purchase__note { font-size: 0.6875rem; line-height: 1.5; color: var(--muted); margin-top: 12px; min-height: 17px; }
.pdp-cart-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; max-width: 100%; font-size: 0.75rem; font-weight: 700; padding: 9px 0; text-underline-offset: 3px; }
.pdp-cart-link:hover { text-decoration: underline; }
.pdp-cart-link .ph { font-size: 15px; }
.pdp-availability-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; font-size: 0.75rem; line-height: 1.6; font-weight: 600; margin-bottom: 20px; overflow-wrap: anywhere; }
.pdp-fulfillment { border-top: 1px solid var(--line); padding-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.pdp-fulfillment > div { display: flex; align-items: flex-start; min-width: 0; gap: 9px; }
.pdp-fulfillment p { min-width: 0; overflow-wrap: anywhere; }
.pdp-fulfillment > div > .ph { font-size: 21px; padding-top: 2px; flex: 0 0 21px; }
.pdp-fulfillment strong { display: block; font-size: 0.75rem; line-height: 1.5; font-weight: 700; }
.pdp-fulfillment span { display: block; color: var(--muted); font-size: 0.6875rem; line-height: 1.6; margin-top: 3px; }
.pdp-details { margin-top: 58px; scroll-margin-top: calc(var(--header-height, 150px) + 20px); }
.pdp-detail-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.pdp-detail-tab { position: relative; display: flex; align-items: center; justify-content: center; min-height: 62px; font-size: 1rem; font-weight: 700; color: var(--muted); white-space: nowrap; border-radius: 0; flex-shrink: 0; scroll-margin-top: calc(var(--header-height, 150px) + 15px); }
.pdp-detail-tab[aria-selected="true"] { color: var(--ink); }
.pdp-detail-tab[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.pdp-detail-panel { padding-block: 30px 8px; font-size: 0.875rem; line-height: 1.8; }
.pdp-detail-panel > h2 { font-size: 1.375rem; font-weight: 800; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 18px; }
.pdp-description { max-width: 80ch; }
.pdp-description p { white-space: pre-line; }
.pdp-description p + p { margin-top: 14px; }
.pdp-source-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; margin-top: 14px; font-size: 0.75rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pdp-source-link .ph { font-size: 16px; }
.pdp-delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1040px; }
.pdp-payment { grid-column: 1 / -1; }
.pdp-delivery-grid h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 8px; }
.pdp-delivery-grid p { color: var(--muted); max-width: 56ch; }
.pdp-delivery-grid a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pdp-specs { margin: 0; max-width: 900px; font-size: 0.8125rem; }
.pdp-specs > div { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pdp-specs > div:last-child { border-bottom: 0; }
.pdp-specs dt { color: var(--muted); overflow-wrap: anywhere; }
.pdp-specs dd { margin: 0; overflow-wrap: anywhere; }
.pdp-related { margin-top: 70px; }
.pdp-related__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 28px; }
.pdp-related__head h2 { font-size: clamp(1.75rem, 3.7vw, 2.875rem); font-weight: 900; text-transform: uppercase; line-height: 1.05; letter-spacing: -.04em; }
.pdp-text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; max-width: 100%; font-size: 0.75rem; }
.pdp-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp-text-link .ph { font-size: 17px; }
.pdp-related__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.pdp-related-card { min-width: 0; display: flex; flex-direction: column; }
.pdp-related-card__image { display: grid; place-items: center; background: #f4f3f4; aspect-ratio: .82; padding: 10%; border-radius: 24px; overflow: hidden; }
.pdp-related-card__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 180ms ease; }
.pdp-related-card__image:hover img { transform: scale(1.035); }
.pdp-related-card__brand { color: var(--muted); font-size: 0.6875rem; margin-top: 14px; }
.pdp-related-card h3 { font-size: 0.8125rem; line-height: 1.5; font-weight: 500; margin-top: 4px; flex: 1; overflow-wrap: anywhere; }
.pdp-related-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp-related-card__price { font-size: 1.25rem; font-weight: 800; margin-top: 10px; }
.pdp-mobile-buy { display: none; }
.pdp-photo-viewer { padding: 0; border: 0; border-radius: 24px; width: min(980px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; background: #fff; color: #202020; overflow: hidden; }
.pdp-photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(850px, calc(100dvh - 48px)); }
.pdp-photo-viewer::backdrop { background: rgb(0 0 0 / .6); }
.pdp-photo-viewer__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px 10px 24px; border-bottom: 1px solid #e4e4e4; }
.pdp-photo-viewer__head p { min-width: 0; font-size: 0.8125rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-photo-viewer__close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: #202020; border-radius: 12px; }
.pdp-photo-viewer__close:hover { background: #f2f2f2; }
.pdp-photo-viewer__close .ph { font-size: 24px; }
.pdp-photo-viewer__viewport { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pdp-photo-viewer__image { width: 100%; height: 100%; padding: 30px; display: block; cursor: zoom-in; }
.pdp-photo-viewer__image img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.pdp-photo-viewer.is-zoomed .pdp-photo-viewer__image { width: 180%; min-height: 180%; height: auto; aspect-ratio: 1; padding: 0; cursor: zoom-out; }
.pdp-photo-viewer__hint { padding: 11px 24px; border-top: 1px solid #e4e4e4; color: #666; font-size: 0.6875rem; line-height: 1.5; }

@media (min-width: 1024px) and (min-height: 800px) {
  .pdp-gallery { position: sticky; top: calc(var(--header-height, 150px) + 20px); }
}
@media (max-width: 1100px) {
  .pdp-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .pdp-info { padding: 22px; }
  .pdp-fulfillment { grid-template-columns: 1fr; gap: 14px; }
  .pdp-stock-card { padding: 14px; }
  .pdp-purchase__row { grid-template-columns: 132px minmax(0, 1fr); gap: 10px; }
  .pdp-quantity { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .pdp-quantity button { min-width: 44px; }
  .pdp-buy { padding-inline: 12px; }
  .pdp-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdp-related-card:last-child { display: none; }
}
@media (max-width: 767px) {
  body:has([data-product-page]:not([hidden])) .mobile-tabbar { display: none; }
  body:has([data-product-page]:not([hidden])) { padding-bottom: calc(var(--pdp-buybar-height, 82px) + 16px); }
  body:has([data-product-page]:not([hidden])) .toast { bottom: calc(var(--pdp-buybar-height, 82px) + 12px); }
  .pdp { padding-bottom: 48px; }
  .pdp-shell { width: calc(100% - 32px); }
  .pdp-breadcrumbs { padding-block: 10px 12px; gap: 6px; font-size: 0.625rem; }
  .pdp-breadcrumbs a { min-height: 44px; }
  .pdp-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pdp-gallery { margin-inline: -16px; }
  .pdp-gallery__main { border-radius: 0; padding: 5%; aspect-ratio: 1.06; }
  .pdp-gallery__zoom { right: 16px; bottom: 18px; padding: 8px 10px; font-size: 0.625rem; }
  .pdp-gallery__zoom .ph { font-size: 16px; }
  .pdp-gallery__thumbnails { padding: 12px 16px; }
  .pdp-info { position: relative; margin-inline: -16px; margin-top: -18px; padding: 22px 20px 24px; border: 0; border-radius: 28px 28px 0 0; }
  .pdp-brand-row { margin-bottom: 12px; }
  .pdp-brand { font-size: 0.75rem; }
  .pdp-favorite { width: 44px; height: 44px; flex-basis: 44px; }
  .pdp-favorite .ph { font-size: 23px; }
  .pdp-title { font-size: 1.5rem; line-height: 1.2; scroll-margin-top: calc(var(--header-height, 88px) + 20px); }
  .pdp-volume { font-size: 0.75rem; margin-top: 10px; }
  .pdp-price-row { margin-block: 22px; }
  .pdp-price { font-size: 1.875rem; }
  .pdp-stock { font-size: 0.9375rem; }
  .pdp-stock-card { margin-bottom: 22px; padding: 14px; }
  .pdp-stock-card__address { font-size: 0.75rem; }
  .pdp-variants { margin-bottom: 22px; }
  .pdp-variant { padding-inline: 12px; }
  .pdp-purchase__row { grid-template-columns: 132px minmax(0, 1fr); gap: 10px; }
  .pdp-quantity { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .pdp-quantity button { min-width: 44px; }
  .pdp-buy { font-size: 0.8125rem; padding-inline: 14px; }
  .pdp-buy .ph { font-size: 20px; }
  .pdp-fulfillment { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding-top: 21px; }
  .pdp-fulfillment > div { gap: 7px; }
  .pdp-fulfillment > div > .ph { font-size: 19px; flex-basis: 19px; }
  .pdp-fulfillment strong { font-size: 0.6875rem; }
  .pdp-fulfillment span { font-size: 0.625rem; }
  .pdp-details { margin-top: 15px; }
  .pdp-detail-tabs { gap: 24px; margin-inline: -16px; padding-inline: 16px; }
  .pdp-detail-tab { font-size: 0.8125rem; min-height: 54px; }
  .pdp-detail-panel { padding-block: 24px 4px; font-size: 0.8125rem; }
  .pdp-detail-panel > h2 { font-size: 1.25rem; }
  .pdp-specs { font-size: 0.75rem; }
  .pdp-specs > div { gap: 15px; padding-block: 12px; }
  .pdp-delivery-grid { grid-template-columns: 1fr; gap: 22px; }
  .pdp-related { margin-top: 44px; }
  .pdp-related__head { gap: 10px; margin-bottom: 22px; }
  .pdp-related__head h2 { font-size: 1.75rem; max-width: 230px; }
  .pdp-text-link { font-size: 0.625rem; gap: 3px; }
  .pdp-text-link .ph { font-size: 14px; }
  .pdp-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .pdp-related-card__image { border-radius: 20px; }
  .pdp-related-card h3 { font-size: 0.75rem; }
  .pdp-related-card__brand { font-size: 0.625rem; margin-top: 10px; }
  .pdp-related-card__price { font-size: 1.125rem; margin-top: 8px; }
  .pdp-mobile-buy { position: fixed; z-index: 21; inset: auto 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
  .pdp-mobile-buy > div { min-width: 0; }
  .pdp-mobile-buy > div > p { font-size: 1.25rem; line-height: 1.25; font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
  .pdp-mobile-buy > div > span { display: block; color: var(--muted); font-size: 0.625rem; line-height: 1.4; margin-top: 3px; }
  .pdp-mobile-buy .pdp-buy { min-height: 50px; }
  .pdp-photo-viewer { width: calc(100% - 20px); max-height: calc(100dvh - 32px); border-radius: 20px; }
  .pdp-photo-viewer__head { padding: 7px 7px 7px 15px; gap: 6px; }
  .pdp-photo-viewer__head p { font-size: 0.6875rem; }
  .pdp-photo-viewer[open] { height: min(780px, calc(100dvh - 32px)); }
  .pdp-photo-viewer__image { padding: 15px; }
  .pdp-photo-viewer__hint { padding: 10px 15px; font-size: 0.625rem; }
}
@media (max-width: 359px) {
  .pdp-info { padding-inline: 16px; }
  .pdp-title { font-size: 1.375rem; }
  .pdp-price { font-size: 1.75rem; }
  .pdp-purchase__row { grid-template-columns: 132px minmax(0, 1fr); gap: 8px; }
  .pdp-quantity { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .pdp-quantity button { min-width: 44px; }
  .pdp-buy { padding-inline: 10px; gap: 6px; font-size: 0.75rem; }
  .pdp-fulfillment { grid-template-columns: 1fr; }
  .pdp-mobile-buy { padding-inline: 12px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-related-card__image img { transition: none; }
  .pdp-related-card__image:hover img { transform: none; }
  .pdp-buy:not(:disabled):active { scale: 1; }
}
/* Keep the quantity and changing purchase label comfortable in narrow columns. */
@container (max-width: 315px) {
  .pdp-purchase__row { grid-template-columns: minmax(0, 1fr); }
  .pdp-quantity { width: 134px; }
  .pdp-buy { width: 100%; }
}
