/* Phase W4 - product page (client's prototype). Breadcrumb styles: hub-list.css (W3). */
.hub-pd-page { padding: 18px 0 40px; color: #202020; }
.hub-pd-page .container { max-width: 1400px; }

/* desktop: photos + details on the left, the buy box on the right (all rows);
   phone: photos, then the buy box, then details */
.hub-pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "gallery buy" "info buy"; gap: 18px 28px; align-items: start; }
.hub-pd-gallery { grid-area: gallery; }
.hub-pd-info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hub-pd-buy { grid-area: buy; min-width: 0; border: 1px solid #E6E8EF; border-radius: 8px; padding: 26px 28px; background: #fff; position: sticky; top: 16px; }

/* gallery */
.hub-pd-gallery { position: relative; display: flex; gap: 14px; border: 1px solid #E6E8EF; border-radius: 8px; padding: 14px; background: #fff; }
/* fixed-width column; still scrolls (wheel/touch) when there are many photos, but no visible scrollbar */
.hub-pd-thumbs { display: flex; flex-direction: column; gap: 10px; flex: 0 0 72px; width: 72px; max-height: 440px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.hub-pd-thumbs::-webkit-scrollbar { display: none; }
.hub-pd-thumb { box-sizing: border-box; width: 72px; height: 72px; flex: 0 0 auto; padding: 4px; border: 1px solid #D5D9E3; border-radius: 6px; background: #F4F5F8; cursor: pointer; }
.hub-pd-thumb[aria-pressed="true"] { border: 2px solid #29387D; }
.hub-pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.hub-pd-main { position: relative; flex: 1 1 auto; min-width: 0; height: 440px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: #F4F5F8; cursor: zoom-in; padding: 12px; }
.hub-pd-main:disabled { cursor: default; }
.hub-pd-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hub-pd-zoom { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border: 1px solid #D5D9E3; border-radius: 4px; background: #fff; font-size: 13px; color: #5A5F6E; }
.hub-pd-nophoto { color: #6B7080; font-size: 15px; }
.hub-pd-share { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border: 1px solid #D5D9E3; border-radius: 50%; background: #fff; color: #29387D; cursor: pointer; }
.hub-pd-zoomdlg { max-width: min(92vw, 1100px); max-height: 92vh; padding: 16px; border: 0; border-radius: 10px; }
.hub-pd-zoomdlg::backdrop { background: rgba(0, 0, 0, .7); }
.hub-pd-zoomdlg img { display: block; max-width: 100%; max-height: calc(92vh - 70px); margin: 0 auto; object-fit: contain; }
.hub-pd-zoomclose { display: block; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; }

/* left boxes */
.hub-pd-box { border: 1px solid #E6E8EF; border-radius: 8px; padding: 18px 20px; background: #fff; }
.hub-pd-box h2 { margin: 0 0 8px; font-family: "Gilroy-Bold", sans-serif; font-size: 20px; color: #202020; }
.hub-pd-desc { font-size: 16px; line-height: 1.6; color: #333; }
.hub-pd-desc p:last-child { margin-bottom: 0; }
.hub-pd-muted { margin: 0; color: #5A5F6E; }
.hub-pd-fold { padding: 0; overflow: hidden; }
.hub-pd-fold > summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; }
.hub-pd-fold > summary::-webkit-details-marker { display: none; }
.hub-pd-fold > summary::before { content: ""; border-left: 7px solid #202020; border-top: 6px solid transparent; border-bottom: 6px solid transparent; transition: transform .15s; }
.hub-pd-fold[open] > summary::before { transform: rotate(90deg); }
.hub-pd-fold > summary h2 { margin: 0; }
.hub-pd-fold > summary:focus-visible { outline: 2px solid #29387D; outline-offset: -2px; }
.hub-pd-specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.hub-pd-specs th, .hub-pd-specs td { border-top: 1px solid #E6E8EF; padding: 11px 16px; text-align: left; vertical-align: top; }
.hub-pd-specs th { width: 42%; background: #F6F7FB; font-family: "Gilroy-Bold", sans-serif; font-weight: normal; color: #202020; }
.hub-pd-docs { list-style: none; margin: 0; padding: 0 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.hub-pd-docs a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 12px; border: 1px solid #E6E8EF; border-radius: 6px; color: #202020; text-decoration: none; }
.hub-pd-docs a:hover { border-color: #29387D; }
.hub-pd-doc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hub-pd-doc-text small { font-size: 13px; color: #5A5F6E; }
.hub-pd-doc-dl { font-size: 14px; color: #29387D; }

/* right: buy box */
.hub-pd-oos { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border: 1px solid #F5C2BD; border-radius: 4px; background: #FDECEA; color: #B3261E; font-size: 14px; font-family: "Gilroy-Bold", sans-serif; }
.hub-pd-titlerow { display: flex; align-items: flex-start; gap: 12px; }
.hub-pd-titlerow h1 { flex: 1; margin: 0 0 10px; font-family: "Gilroy-Bold", sans-serif; font-size: 28px; line-height: 1.25; color: #202020; }
.hub-pd-heart { flex: 0 0 auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.hub-pd-heart i { font-size: 1.5rem; color: #9AA0A6; }
.hub-pd-heart.active i, .hub-pd-heart:hover i { color: #E74C3C; }
.hub-pd-heart.active i::before { content: "\f417"; }
.hub-pd-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; font-size: 15px; color: #5A5F6E; }
.hub-pd-brand { font-family: "Gilroy-Bold", sans-serif; color: #29387D; text-transform: uppercase; }
.hub-pd-sep { border: 0; border-top: 1px solid #E6E8EF; margin: 18px 0; opacity: 1; }

.hub-pd-group { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.hub-pd-group legend { float: none; width: auto; margin: 0 0 8px; padding: 0; font-family: "Gilroy-Bold", sans-serif; font-size: 16px; color: #202020; }
.hub-pd-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-pd-choice { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #C9CEDB; border-radius: 6px; background: #fff; color: #202020; font-size: 15px; text-decoration: none; cursor: pointer; }
a.hub-pd-choice:hover, button.hub-pd-choice:not(.off):hover { border-color: #29387D; color: #29387D; }
.hub-pd-choice.on { border: 2px solid #29387D; background: #EEF0FA; color: #29387D; font-family: "Gilroy-Bold", sans-serif; cursor: default; }
.hub-pd-choice.off { border-style: dashed; color: #8A8F9C; text-decoration: line-through; cursor: not-allowed; }
.hub-pd-choice:focus-visible { outline: 2px solid #29387D; outline-offset: 2px; }

.hub-pd-related { display: block; margin: 6px 0 8px; font-family: "Gilroy-Bold", sans-serif; font-size: 15px; color: #202020; }
.hub-pd-related-select { display: block; width: 100%; height: 44px; margin-bottom: 18px; padding: 0 10px; border: 1px solid #C9CEDB; border-radius: 6px; background: #fff; font-size: 14px; color: #202020; }

.hub-pd-priceline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.hub-pd-price-label { font-size: 16px; color: #333; }
.hub-pd-price { font-family: "Gilroy-Bold", sans-serif; font-size: 32px; color: #29387D; }
.hub-pd-unit { margin: 4px 0 18px; font-size: 15px; color: #5A5F6E; }
.hub-pd-qtyrow { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hub-pd-qtyrow label { margin: 0; font-family: "Gilroy-Bold", sans-serif; font-size: 15px; }
.hub-pd-qty { display: flex; border: 1px solid #C9CEDB; border-radius: 6px; overflow: hidden; }
.hub-pd-qty button { width: 44px; height: 44px; border: 0; background: #F6F7FB; font-size: 20px; color: #202020; cursor: pointer; }
.hub-pd-qty input { width: 90px; height: 44px; margin: 0; padding: 0 6px; box-sizing: border-box; border: 0; border-left: 1px solid #C9CEDB; border-right: 1px solid #C9CEDB; border-radius: 0; background: #fff; text-align: center; font-size: 16px; color: #202020; -moz-appearance: textfield; appearance: textfield; }
.hub-pd-qty input::-webkit-outer-spin-button, .hub-pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hub-pd-qty input:focus-visible, .hub-pd-qty button:focus-visible { outline: 2px solid #29387D; outline-offset: -2px; }
.hub-pd-tiers { width: 100%; border-collapse: collapse; font-size: 15px; }
.hub-pd-tiers th, .hub-pd-tiers td { border: 1px solid #DDE1EA; padding: 9px 10px; text-align: center; color: #202020; }
.hub-pd-tiers th { background: #F6F7FB; font-family: "Gilroy-Bold", sans-serif; font-weight: normal; }
.hub-pd-tiers tr.on td { background: #EEF0FA; font-family: "Gilroy-Bold", sans-serif; }
.hub-pd-total { margin: 10px 0 14px; text-align: right; font-size: 15px; color: #333; }
.hub-pd-add { width: 100%; min-height: 50px; border: 0; border-radius: 6px; background: #EA2227; color: #fff; font-family: "Gilroy-Bold", sans-serif; font-size: 18px; cursor: pointer; }
.hub-pd-add:hover { background: #C81C21; }
.hub-pd-add:disabled { opacity: .55; cursor: not-allowed; }
.hub-pd-quote { width: 100%; min-height: 46px; margin-top: 10px; border: 1px solid #29387D; border-radius: 6px; background: #fff; color: #29387D; font-family: "Gilroy-Bold", sans-serif; font-size: 16px; cursor: pointer; }
.hub-pd-quote:hover { background: #29387D; color: #fff; }

/* related products under the page: the W2 cards */
.hub-pd-page + .best-selling-products-section, .best-selling-products-section { margin-top: 0; }

/* tablets and phones: one column - photos, then the buy box, then details */
@media (max-width: 991.98px) {
    .hub-pd { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "buy" "info"; gap: 16px; }
    .hub-pd-buy { position: static; }
}
@media (max-width: 767.98px) {
    .hub-pd-buy { padding: 18px 16px; }
    .hub-pd-gallery { flex-direction: column-reverse; padding: 10px; }
    .hub-pd-thumbs { flex-direction: row; flex: 0 0 auto; width: auto; max-height: none; overflow-x: auto; overflow-y: hidden; }
    .hub-pd-main { height: 300px; }
    .hub-pd-titlerow h1 { font-size: 22px; }
    .hub-pd-price { font-size: 28px; }
}
