/* Yachtneeds theme - product page. Loaded by Views/Shared/Head.cshtml on product pages only; theme.css loads first. */

.product-essential { display: grid; gap: 20px; margin-bottom: 36px; }
.product-essential .gallery { position: relative; min-width: 0; }
@media (min-width: 900px) {
    .product-essential { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
    .product-essential .gallery { position: sticky; top: 16px; }
}
.product-essential .gallery .discount-ribbon { top: 14px; left: 14px; z-index: 3; font-size: 13px; }
.picture-gallery .picture { aspect-ratio: 1; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.picture-gallery .gallery-main { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.picture-gallery .picture img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.picture-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.picture-thumbs .thumb-item { flex: 0 0 72px; width: 72px; height: 72px; padding: 4px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.picture-thumbs .thumb-item.is-active, .picture-thumbs .thumb-item:hover { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.picture-thumbs .thumb-item img { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-gallery { margin-top: 12px; }
.video-gallery iframe { max-width: 100%; border-radius: var(--radius-sm); }

.gallery-dialog { width: min(96vw, 1100px); height: min(92vh, 1100px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: var(--radius); background: #fff; }
.gallery-dialog::backdrop { background: rgba(10, 20, 32, .72); }
.gallery-dialog[open] { display: grid; place-items: center; }
.gallery-dialog__img { max-width: calc(100% - 120px); max-height: calc(100% - 40px); object-fit: contain; }
.gallery-dialog__close, .gallery-dialog__nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-surface); color: var(--c-ink); font-size: 28px; line-height: 1; cursor: pointer; }
.gallery-dialog__close { top: 10px; right: 10px; }
.gallery-dialog__nav { top: 50%; transform: translateY(-50%); }
.gallery-dialog__prev { left: 10px; }
.gallery-dialog__next { right: 10px; }
.gallery-dialog__close:hover, .gallery-dialog__nav:hover { background: var(--c-line); }
@media (max-width: 640px) { .gallery-dialog__img { max-width: 100%; } .gallery-dialog__nav { top: auto; bottom: 10px; transform: none; } }

.product-essential .overview { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.product-essential .overview .breadcrumb { margin: 0; }
.product-name h1 { margin: 0; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.25; }
.product-name .manufacturers { margin-top: 6px; font-size: 14px; }
.product-name .manufacturers .label { color: var(--c-muted); }
.reviews-and-compare:empty { display: none; }
.short-description { color: var(--c-text); }
.technical-info-notice { margin: 0; font-size: 13px; color: var(--c-muted); }
.additional-details { display: grid; gap: 2px; font-size: 13px; }
.additional-details .label { color: var(--c-muted); }
.additional-details .value { color: var(--c-ink); font-weight: 600; }
.attributes-wrapper:empty { display: none; }
.attributes dl { margin: 0; }
.attributes dt { margin: 10px 0 4px; font-weight: 600; color: var(--c-ink); }
.attributes dd { margin: 0; }
.attributes select { max-width: 100%; }

.product-prices-box { padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.product-prices-box > div { display: grid; gap: 12px; }
.product-prices-box .stock .label { color: var(--c-muted); }
.product-prices-box .stock .value { font-weight: 600; color: var(--c-ok); }
.product-prices-box .back-in-stock-subscription { margin-top: 8px; }
.product-details-page .prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.product-details-page .product-price { font-size: 28px; font-weight: 800; color: var(--c-ink); line-height: 1.1; }
.product-details-page .old-product-price { font-size: 15px; color: var(--c-muted); text-decoration: line-through; }
.product-details-page .tax-shipping-info { flex-basis: 100%; font-size: 13px; color: var(--c-muted); }
.add-to-cart-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.add-to-cart-panel .qty-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.add-to-cart-panel .qty-dropdown { width: auto; min-height: 48px; }
.add-to-cart-panel .add-to-cart-button { flex: 1 1 180px; min-height: 48px; font-size: 16px; }
.add-to-wishlist-button { width: 100%; }
.product-details-page .delivery, .product-details-page .delivery-date { font-size: 14px; color: var(--c-muted); }
.min-qty-notification { font-size: 13px; color: var(--c-muted); }

.full-description { max-width: 900px; margin: 0 0 32px; }
.full-description h2, .full-description h3 { margin: 1.4em 0 .5em; }
.full-description ul { padding-left: 1.2em; }
.product-collateral:empty { display: none; }
.product-specs-box { margin: 0 0 32px; }
.product-specs-box table { width: 100%; border-collapse: collapse; font-size: 14px; }
.product-specs-box td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.product-specs-box .spec-name { width: 35%; color: var(--c-muted); }
.related-products-grid, .also-purchased-products-grid, .product-reviews, .product-tags-box { margin: 0 0 36px; }

/* buy box notes (Views/Product/_ProductBuyBoxInfo.cshtml) and mobile sticky buy bar (Views/Product/_ProductStickyBar.cshtml):
   the rules of ~/css/product-buybox-info.css and ~/css/product-sticky-bar.css, which the other themes load as separate
   render-blocking files; under this theme the partials leave them out */
.product-buybox-info { margin: 20px 0 10px; color: #8c8c8c; font-size: 14px; line-height: 1.5; text-align: start; }
.product-buybox-info__line + .product-buybox-info__line { margin-top: 5px; }
.product-buybox-info__link, .product-buybox-info__link:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.product-buybox-info__link:hover, .product-buybox-info__link:focus { color: #444; }
.product-buybox-info__carriers, .product-buybox-info__carrier-icons, .product-buybox-info__payments, .product-buybox-info__payment-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-buybox-info__line + .product-buybox-info__payments { margin-top: 8px; }
.product-buybox-info__carrier-icons img { display: block; width: auto; height: 30px; }
.product-buybox-info__payment-icons img { display: block; width: 48px; max-width: 100%; height: auto; aspect-ratio: 48 / 30; object-fit: contain; }
.product-sticky-bar { display: none; }
@media (max-width: 768px) {
    body.product-sticky-bar-enabled { --product-sticky-bar-height: calc(62px + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--product-sticky-bar-height); }
    .product-sticky-bar:not([hidden]) { position: fixed; bottom: 0; inset-inline: 0; z-index: 1010; display: flex; align-items: center; gap: 12px; box-sizing: border-box; height: var(--product-sticky-bar-height); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #ddd; background: #fff; }
    .product-sticky-bar__price { min-width: 0; overflow: hidden; color: #444; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .product-sticky-bar__button { min-width: 0; height: 45px; margin-inline-start: auto; padding: 0 15px; overflow: hidden; border: 0; border-radius: 3px; background: #444; color: #fff; font-size: 15px; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
    .product-sticky-bar__button:only-child { width: 100%; }
    .product-sticky-bar__button:focus-visible { outline: 2px solid #444; outline-offset: 2px; }
    /* Override the offset set by the SalesIQ launcher. */
    body.product-sticky-bar-visible #zsiq_float { bottom: calc(var(--product-sticky-bar-height) + 8px) !important; }
    body.product-sticky-bar-visible #bar-notification .bar-notification { bottom: var(--product-sticky-bar-height); }
}
/* theme look of the sticky buy bar */
.product-sticky-bar .product-sticky-bar__button { border-radius: var(--radius-sm); background: var(--c-accent); text-transform: none; }
.product-sticky-bar .product-sticky-bar__price { color: var(--c-ink); }
