.product-page { max-width: 1180px; margin: 0 auto 40px; }
.pdp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 0 0 24px; min-height: 32px; }
.pdp-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }
.pdp-breadcrumb svg { width: 14px; height: 14px; flex: 0 0 14px; }
.pdp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pdp-layout > * { min-width: 0; }
.pdp-gallery { min-width: 0; }
.pdp-image-stage { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; width: 100%; height: 440px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.pdp-main-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pdp-image-stage.is-placeholder { cursor: default; background: #f8fbfc; opacity: 1; }
.pdp-image-stage.is-placeholder .pdp-main-image { width: 112px; height: 112px; }
.pdp-image-note { font-size: 13px; line-height: 1.5; font-weight: 400; }
.pdp-zoom-icon { position: absolute; right: 16px; bottom: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; background: #edf5f5; color: #31575e; }
.is-placeholder .pdp-zoom-icon { display: none; }
.pdp-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; }
.pdp-thumbnails button { width: 64px; height: 64px; flex: 0 0 64px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pdp-thumbnails button[aria-pressed="true"] { border: 2px solid #087a70; background: #f1faf8; }
.pdp-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.pdp-meta span:first-child { color: #086c62; font-size: 14px; font-weight: 600; }
.pdp-info h1 { font-size: 30px; line-height: 1.3; font-weight: 700; margin: 12px 0 16px; overflow-wrap: anywhere; }
.pdp-description { color: #536d75; font-size: 15px; line-height: 1.7; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.pdp-price-block { margin: 24px 0; display: grid; gap: 14px; }
.pdp-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.pdp-price strong { font-size: 30px; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pdp-price del { font-size: 15px; color: var(--muted); }
.pdp-discount { font-size: 12px; font-weight: 600; color: #9b353c; background: #fbecef; padding: 4px 8px; border-radius: 4px; }
.pdp-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #167451; }
.pdp-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pdp-stock[data-available="false"] { color: #a3423e; }
.pdp-purchase { display: grid; grid-template-columns: 120px minmax(0, 1fr) 48px; gap: 10px; align-items: center; }
.pdp-quantity { display: grid; grid-template-columns: 44px 32px 44px; height: 48px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pdp-quantity button { min-height: 48px; width: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--deep); }
.pdp-quantity output { display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.pdp-quantity button:disabled { color: #8aa0a5; cursor: not-allowed; }
.pdp-quantity button:not(:disabled):hover { background: #edf6f4; }
.pdp-purchase .pdp-add { min-height: 48px; height: 48px; padding: 8px 12px; gap: 8px; border-radius: 6px; font-size: 14px; line-height: 1.3; font-weight: 600; }
.pdp-add svg, .pdp-favorite svg { flex: 0 0 20px; }
.pdp-add:disabled { opacity: .6; cursor: not-allowed; }
.pdp-favorite { width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #375b64; }
.pdp-favorite[aria-pressed="true"] { color: #a02b51; background: #fff2f5; border-color: #eac9d3; }
.pdp-favorite[aria-pressed="true"] svg { fill: currentColor; }
.pdp-cart-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; font-size: 13px; color: #076c62; font-weight: 600; }
.pdp-policies { display: grid; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.pdp-policies a { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 14px; font-weight: 500; color: #49646d; text-decoration: none; }
.pdp-policies a span { text-decoration: underline; text-underline-offset: 3px; }
.pdp-policies a svg { flex: 0 0 20px; }
.pdp-policies a svg:last-child { width: 16px; margin-left: auto; }
.pdp-details { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.pdp-details h2 { font-size: 20px; margin: 0 0 20px; }
.pdp-details dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.pdp-details dt { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.pdp-details dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.pdp-details dd a { text-decoration: underline; text-underline-offset: 3px; }
.pdp-image-dialog { width: min(900px, calc(100% - 32px)); }
.pdp-zoomed-image { width: 100%; height: min(72vh, 700px); object-fit: contain; display: block; }
.pdp-image-dialog .dialog-close { width: 44px; height: 44px; padding: 0; background: #edf5f5; border-radius: 6px; color: #28444d; }
/* Keep the server-rendered view bounded while live product data loads. */
#app > .product-detail { max-width: 1180px; margin-inline: auto; gap: 48px; }
#app > .product-detail .gallery { height: 440px; }
#app > .product-detail .gallery img { width: 100%; height: 100%; object-fit: contain; }
#app > .product-detail .gallery img[src$="/assets/logo.png"] { max-width: 112px; display: block; margin: auto; }
@media (max-width: 1000px) { .pdp-layout { gap: 28px; } .pdp-info h1 { font-size: 26px; } .pdp-image-stage { height: 380px; } }
@media (max-width: 760px) {
  .pdp-breadcrumb { margin-bottom: 16px; font-size: 12px; gap: 6px; }
  .pdp-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pdp-image-stage { height: 270px; padding: 20px; }
  .pdp-info h1 { font-size: 24px; line-height: 1.35; margin-bottom: 12px; }
  .pdp-description { font-size: 14px; }
  .pdp-price-block { margin-block: 20px; gap: 10px; }
  .pdp-price strong { font-size: 28px; }
  .pdp-purchase { grid-template-columns: 120px minmax(0, 1fr) 44px; gap: 8px; }
  .pdp-favorite { width: 44px; }
  .pdp-purchase .pdp-add { padding-inline: 8px; }
  .pdp-details { margin-top: 28px; }
  .pdp-details dl { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #app > .product-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #app > .product-detail .gallery { height: 270px; }
}
@media (max-width: 380px) { .pdp-image-stage, #app > .product-detail .gallery { height: 220px; } .pdp-add svg { display: none; } .pdp-info h1 { font-size: 22px; } }
.pdp-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: 5.1em; white-space: normal; }
.pdp-description-link { display: inline-block; font-size: 14px; color: #076c71; text-decoration: underline; text-underline-offset: 4px; margin-bottom: 20px; }
.pdp-full-description { max-width: 850px; white-space: pre-line; overflow-wrap: anywhere; font-size: 16px; line-height: 1.8; }
#productDescription { scroll-margin-top: 170px; margin-top: 36px; }
