/* Product detail follows the supplied desktop/mobile reference. */
body[data-page-type="product"] .site-main { padding-top: 16px; }
.product-page { --product-border: #e7e5e2; margin: 0 0 32px; }
.product-page-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px;
  align-items: center; padding: 16px 24px; margin: 0 0 16px;
  border: 1px solid var(--product-border); border-radius: 10px; background: #fff;
}
.product-page-heading h1 { grid-column: 1; margin: 0; font-size: clamp(26px, 2.25vw, 34px); line-height: 1.18; letter-spacing: -.6px; font-weight: 650; }
.product-page-heading form { grid-column: 2; grid-row: 1; margin: 0; }
.product-page-heading .detail-favorite-button { padding: 8px 12px; font-size: 12px; font-weight: 500; border-color: #d8d6d3; }
.product-page-grid {
  display: grid; grid-template-columns: minmax(0, 1.27fr) minmax(0, .88fr) minmax(0, 1fr);
  grid-template-areas: "gallery specifications purchase" "description description description";
  gap: 16px; align-items: start; grid-template-rows: minmax(min-content, auto) auto;
}
.product-gallery-card, .product-specifications-card, .product-purchase-card, .product-description-card {
  min-width: 0; margin: 0; border: 1px solid var(--product-border); border-radius: 10px; background: #fff;
}
.product-gallery-card { grid-area: gallery; display: flex; gap: 12px; padding: 12px; align-self: start; }
.product-thumbnails { display: flex; flex-direction: column; gap: 8px; flex: 0 0 64px; max-height: clamp(300px, calc(100svh - 370px), 520px); overflow-y: auto; scrollbar-width: thin; }
.product-thumbnail { width: 64px; height: 64px; min-height: 64px; padding: 3px; background: #fafafa; border: 1px solid var(--product-border); border-radius: 8px; }
.product-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbnail.is-current { border: 2px solid var(--red); padding: 2px; }
.product-gallery-card .product-detail-media {
  position: relative; flex: 1; min-width: 0; width: 100%; height: clamp(300px, calc(100svh - 370px), 520px);
  max-height: none; aspect-ratio: auto; background: #fafafa; border-radius: 8px; overflow: hidden;
}
.product-gallery-card .product-detail-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: normal; }
.product-zoom-button { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e7e5e2; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 2px 6px #0000000a; }
.product-zoom-button svg { width: 20px; height: 20px; }
.product-specifications-card { grid-area: specifications; padding: 18px; }
.product-specifications-card > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 20px; font-weight: 650; line-height: 1.25; }
.product-specifications-card > summary::-webkit-details-marker { display: none; }
.product-specifications-card > summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.product-specifications-card[open] > summary svg { transform: rotate(180deg); }
.product-specifications-card dl { margin: 12px 0 0; }
.product-specifications-card dl > div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--product-border); }
.product-specifications-card dl > div:last-child { border: 0; }
.product-specifications-card dt { font-size: 13px; line-height: 1.35; color: var(--muted); }
.product-specifications-card dd { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.product-purchase-card { grid-area: purchase; padding: 18px; }
.product-purchase-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-purchase-heading h2, .product-description-card h2 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.3px; }
.product-purchase-heading strong { color: var(--green); white-space: nowrap; font-size: 19px; font-variant-numeric: tabular-nums; }
.product-warehouse-stock { margin-top: 12px; font-size: 13px; }
.product-warehouse-stock > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; background: #f4f6f3; }
.product-warehouse-stock span { display: flex; align-items: center; gap: 8px; }
.product-warehouse-stock svg { width: 16px; height: 16px; }
.product-warehouse-stock strong { color: var(--green); white-space: nowrap; }
.product-warehouse-stock .product-additional-stock { margin-top: 4px; background: #faf9f7; }
.product-backorder-note { margin: 8px 0 0; color: var(--green); font-size: 12px; }
.product-purchase-card .product-detail-price { margin: 12px 0; }
.product-price-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; margin-bottom: 4px; }
.product-purchase-card .product-detail-price .price-label { margin: 0; font-size: 12px; }
.product-purchase-card .product-detail-price .price { margin: 0; font-size: 28px; line-height: 1.2; }
.product-purchase-card .product-detail-price .price span { font-size: 16px; }
.product-purchase-card .product-detail-price small { font-size: 12px; color: var(--muted); margin: 0; }
.product-price-caption small::before { content: "· "; }
.product-purchase-card .product-detail-order { max-width: none; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.product-purchase-card .product-order-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.product-purchase-card .product-order-fields > div { min-width: 0; }
.product-purchase-card .product-order-fields label { font-size: 13px; margin-bottom: 4px; }
.product-purchase-card .product-order-fields select, .product-purchase-card .fixed-warehouse { display: block; width: 100%; min-height: 38px; padding: 7px 10px; border-radius: 6px; font-size: 14px; }
.product-quantity-stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: stretch; height: 40px; border: 1px solid #c9c6c1; border-radius: 6px; overflow: hidden; background: #fff; }
.product-quantity-stepper button { border: 0; background: #f8f8f7; color: var(--ink); font-size: 23px; line-height: 1; padding: 0; }
.product-quantity-stepper button:hover { background: #eeece9; }
.product-purchase-card .product-quantity-stepper input { width: 100%; height: 38px; min-height: 0; padding: 6px; border: 0; border-radius: 0; font-size: 15px; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.product-quantity-stepper input::-webkit-inner-spin-button, .product-quantity-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.product-purchase-card .product-add-button { display: flex; align-items: center; justify-content: center !important; gap: 12px; min-height: 46px; padding: 10px 12px; font-size: 17px; border-radius: 7px; }
.product-purchase-card .product-add-button [data-add-cart-label] { flex: 0 1 auto; width: auto; height: auto; border: 0; border-radius: 0; font-size: inherit; display: inline; }
.product-cart-icon { width: 25px; height: 25px; flex-shrink: 0; }
.product-purchase-card .order-assurance { margin: 10px 0 0; font-size: 11px; line-height: 1.4; }
.product-description-card { grid-area: description; padding: 18px; }
.product-description-card h2 { margin-bottom: 10px; }
.product-description-card .product-description { margin: 0; font-size: 15px; color: #55534f; line-height: 1.55; }
.product-description.is-collapsed { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.product-description-toggle { margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 14px; font-weight: 600; }
.product-zoom-dialog { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 52px 48px 20px; box-sizing: border-box; border: 0; border-radius: 0; background: #fff; }
.product-zoom-dialog::backdrop { background: #171615cc; }
.product-zoom-dialog > img { width: 100%; height: 100%; object-fit: contain; }
.product-zoom-close, .product-zoom-prev, .product-zoom-next { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: var(--ink); }
.product-zoom-close { right: 10px; top: 10px; }
.product-zoom-prev { left: 4px; top: 50%; font-size: 28px; }
.product-zoom-next { right: 4px; top: 50%; font-size: 28px; }
.product-zoom-dialog [hidden] { display: none; }
.product-mobile-menu, .product-mobile-search { display: none; }
@media (min-width: 801px) {
  body[data-page-type="product"] .header-inner { min-height: 71.6px; }
  body[data-page-type="product"] .breadcrumbs { margin-bottom: 20px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .product-page-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gallery purchase" "specifications specifications" "description description"; }
  .product-page-heading h1 { font-size: 28px; }
}
@media (max-width: 800px) {
  body[data-page-type="product"] .utility-inner { min-height: 32px; padding-top: 0; padding-bottom: 0; justify-content: flex-end; }
  body[data-page-type="product"] .utility-inner > span { display: none; }
  body[data-page-type="product"] .utility-controls { margin: 0; }
  body[data-page-type="product"] .header-inner { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; min-height: 51.4px; padding: 5.6px 16px; }
  body[data-page-type="product"] .brand { flex: 0 0 auto; margin: 0 auto 0 0; order: 0; }
  body[data-page-type="product"] .brand img { width: 118px; }
  body[data-page-type="product"] .header-actions { display: flex; flex: 0 0 auto; width: auto; gap: 6px; margin: 0; order: 0; }
  body[data-page-type="product"] .header-actions a { min-width: 32px; min-height: 36px; padding: 0; }
  body[data-page-type="product"] .header-actions a:first-of-type, body[data-page-type="product"] .lead-open { display: none; }
  body[data-page-type="product"] .header-actions a > span:not(.action-icon) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .product-mobile-enhanced .product-mobile-menu, .product-mobile-enhanced .product-mobile-search { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 36px; padding: 4px; border: 0; background: #fff; color: var(--ink); }
  body[data-page-type="product"] .search { flex: 0 0 100%; order: 2; width: 100%; margin: 0; }
  body.product-mobile-enhanced:not(.product-search-open) .search, body.product-mobile-enhanced:not(.product-menu-open) .main-nav { display: none; }
  body[data-page-type="product"] .site-main { padding-top: 12px; }
  body[data-page-type="product"] .breadcrumbs { display: flex; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; gap: 8px; font-size: 11px; margin-bottom: 14px; }
  body[data-page-type="product"] .breadcrumbs a { overflow: hidden; text-overflow: ellipsis; }
  .product-page-heading { grid-template-columns: minmax(0, 1fr) auto; padding: 0; border: 0; border-radius: 0; gap: 10px 8px; margin-bottom: 16px; }
  .product-page-heading form { grid-column: 2; grid-row: 1; }
  .product-page-heading .detail-favorite-button { min-height: 30px; padding: 4px 8px; font-size: 11px; }
  .product-page-heading .detail-favorite-button svg { width: 17px; height: 17px; }
  .product-page-heading h1 { grid-column: 1 / -1; font-size: clamp(22px, 5.7vw, 28px); line-height: 1.18; letter-spacing: -.4px; }
  .product-page-grid { grid-template-columns: 1fr; grid-template-areas: "gallery" "purchase" "specifications" "description"; gap: 14px; }
  .product-gallery-card { flex-direction: column; padding: 8px; gap: 8px; }
  .product-gallery-card .product-detail-media { flex: none; width: 100%; height: clamp(220px, 30svh, 340px); max-height: none; }
  .product-gallery-card .product-detail-media img { padding: 4px; }
  .product-thumbnails { flex: none; flex-direction: row; justify-content: center; order: 2; max-height: none; overflow-x: auto; overflow-y: hidden; gap: 8px; }
  .product-thumbnail { width: 12px; height: 12px; min-height: 12px; flex: 0 0 12px; padding: 0; border: 0; border-radius: 50%; background: #ccc; }
  .product-thumbnail img { display: none; }
  .product-thumbnail.is-current { padding: 0; border: 0; background: var(--red); }
  .product-purchase-card, .product-specifications-card, .product-description-card { padding: 16px; }
  .product-purchase-heading h2, .product-purchase-heading strong { font-size: 17px; }
  .product-purchase-heading { padding-bottom: 8px; border-bottom: 1px solid var(--product-border); }
  .product-purchase-card .product-detail-price { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: center; margin: 8px 0; }
  .product-purchase-card .product-detail-price .price { grid-column: 2; grid-row: 1; font-size: 23px; }
  .product-price-caption { display: block; margin: 0; }
  .product-price-caption small { display: block; }
  .product-price-caption small::before { content: none; }
  .product-purchase-card .product-detail-price small { font-size: 10px; margin: 0; }
  .product-purchase-card .product-detail-price .price-label { margin: 0; font-size: 12px; }
  .product-purchase-card .product-order-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 10px; }
  .product-purchase-card .order-assurance { font-size: 10px; margin-top: 8px; }
  .product-purchase-card .product-add-button { min-height: 44px; padding: 8px 10px; }
  .product-specifications-card > summary, .product-description-card h2 { font-size: 20px; }
  .product-specifications-card dl > div { padding: 8px 0; }
  .product-specifications-card dt, .product-specifications-card dd { font-size: 14px; }
  .product-description-card .product-description { font-size: 15px; }
  .product-warehouse-stock { margin-top: 8px; }
  .product-warehouse-stock > div { padding: 4px 8px; }
}
@media (max-width: 380px) {
  .product-gallery-card .product-detail-media { height: clamp(200px, 26svh, 280px); }
}

.product-photo-open { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
html.product-photo-viewing { overflow: hidden; }
.product-recommendations { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--product-border); }
.recommendation-heading h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
.recommendation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
/* 80% of the former four-column card width: ((100% - 60px) / 4) * .8. */
.recommendation-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc(20% - 12px); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; overflow-anchor: none; cursor: grab; scrollbar-width: thin; padding: 4px 2px 12px; margin: -4px -2px 0; }
.recommendation-grid.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.recommendation-grid.is-dragging * { cursor: grabbing; }
.recommendation-card { min-width: 0; border: 1px solid var(--product-border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.recommendation-image { position: relative; flex: none; display: block; aspect-ratio: 1; background: #fafafa; }
.recommendation-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.recommendation-content { padding: 13px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.recommendation-sku, .recommendation-content > small { color: var(--muted); font-size: 12px; }
.recommendation-content h3 { margin: 0; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.recommendation-stock { margin: 0 0 auto; font-size: 12px; color: var(--green); }
.recommendation-price { margin: 8px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.recommendation-price strong { font-size: 18px; }
.recommendation-price del { color: var(--muted); font-size: 13px; }
.recommendation-content form { margin: 0; }
.recommendation-content [data-add-cart-form] { display: grid; grid-template-columns: 1fr; gap: 8px; }
.recommendation-content label { font-size: 12px; margin: 0; }
.recommendation-content input[type=number] { width: 100%; min-width: 0; padding: 8px 10px; }
.recommendation-content .button { width: 100%; padding: 8px; justify-content: center !important; font-size: 14px; }
.recommendation-favorite { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 0; background: transparent; padding: 8px 0; font-size: 13px; color: var(--ink); }
.recommendation-favorite svg { width: 18px; height: 18px; flex-shrink: 0; }
.recommendation-favorite[aria-pressed=true] { color: var(--red); }
@media (max-width: 1000px) { .recommendation-grid { grid-auto-columns: calc(40% - 8px); } }
@media (max-width: 540px) {
  .product-zoom-dialog { padding: 52px 12px 20px; }
  .recommendation-grid { grid-auto-columns: calc(40% - 4px); gap: 8px; }
  .recommendation-content { padding: 8px; }
  .recommendation-content h3 { font-size: 13px; }
  .recommendation-price strong { font-size: 16px; }
  .recommendation-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .recommendation-sku, .recommendation-content > small { font-size: 11px; }
}

/* Keep the whole recommendation row, including its actions, within a desktop screen. */
.recommendation-carousel { position: relative; }
.recommendation-card { position: relative; }
.recommendation-image { height: clamp(130px, 22svh, 190px); aspect-ratio: auto; }
.recommendation-content { padding: 10px; gap: 5px; }
.recommendation-content h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.recommendation-stock { margin-bottom: 0; }
.recommendation-price { margin-top: auto; padding-top: 5px; gap: 4px; }
.recommendation-content [data-add-cart-form] { grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 6px; margin-top: 4px; }
.recommendation-content input[type=number] { min-height: 36px; height: 36px; padding: 5px 7px; font-size: 14px; }
.recommendation-content .button { grid-column: 1 / -1; min-height: 40px; padding: 7px 5px; line-height: 1.2; }
.recommendation-favorite { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #fff; border: 1px solid var(--product-border); }
.recommendation-favorite [data-favorite-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.recommendation-arrow { position: absolute; z-index: 2; top: 45%; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #c9c6c1; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 8px #0002; font-size: 28px; }
.recommendation-arrow[hidden] { display: none; }
.recommendation-arrow-prev { left: -12px; }
.recommendation-arrow-next { right: -12px; }
.recommendation-arrow:hover { background: #f3f1ee; }
.recommendation-arrow:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 540px) {
  .recommendation-image { height: 130px; }
  .recommendation-content { padding: 8px; }
  .recommendation-content [data-add-cart-form] { grid-template-columns: minmax(0, 1fr) 48px; }
  .recommendation-arrow-prev { left: -8px; }
  .recommendation-arrow-next { right: -8px; }
  .recommendation-arrow { width: 36px; height: 36px; }
}

/* Keep regional stock distinct from the later factory delivery. */
.stock-breakdown small{display:block;font-size:.85em;line-height:1.3;font-weight:400}
.stock-breakdown .stock-later{color:#786044}
.product-purchase-card .stock-breakdown{margin:10px 0;font-size:14px}
.recommendation-content .stock-breakdown{font-size:11px;margin:5px 0}

.stock-breakdown .stock-later dt small{font-weight:600;color:#8d392f}

.stock-breakdown .stock-lead-time{font-size:.95em;font-weight:400;white-space:nowrap}
