/* Product detail reading column and supporting navigation. */
.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 48px;
    align-items: start;
    padding-bottom: 24px;
}
.product-detail-body { min-width: 0; }
.product-detail-body .rich-content { line-height: 2; }
.product-detail-body .rich-content table { width: 100%; }
.product-detail-body .rich-content img { display: block; margin: 22px auto; width: auto; height: auto; max-width: 100%; max-height: 500px; object-fit: contain; }
.product-detail-aside { position: sticky; top: 112px; align-self: start; }
.detail-aside-card { border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px; background: #f8faf6; }
.detail-aside-eyebrow { font: 10px/1.5 Arial, sans-serif; letter-spacing: 1.5px; color: var(--muted); }
.detail-aside-card h2 { margin: 10px 0 24px; font-size: 20px; font-weight: 600; }
.detail-page-nav { display: grid; border-top: 1px solid var(--line); }
.detail-page-nav a { display: flex; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-page-nav a > span { color: #94a08e; font: 11px Arial, sans-serif; }
.detail-page-nav i { margin-left: auto; font-style: normal; color: var(--green); }
.detail-aside-contact { padding: 23px 0; }
.detail-aside-contact p { margin: 0 0 13px; font-size: 13px; font-weight: 600; }
.detail-aside-contact > span { display: block; color: var(--muted); font-size: 11px; }
.detail-aside-phone { display: block; color: var(--green); font: 600 22px/1.5 Arial, sans-serif; margin: 4px 0 18px; }
.detail-aside-contact .btn { width: 100%; padding: 10px 12px; }
.detail-category-menu { border-top: 1px solid var(--line); font-size: 12px; }
.detail-category-menu summary { display: flex; justify-content: space-between; list-style: none; cursor: pointer; padding-top: 17px; }
.detail-category-menu summary::-webkit-details-marker { display: none; }
.detail-category-menu nav { display: grid; gap: 10px; padding-top: 17px; }
.detail-category-menu a { color: var(--muted); }
.detail-category-menu a:hover, .detail-category-menu a[aria-current] { color: var(--green); }
.product-detail-body, #related-products { scroll-margin-top: 116px; }
@media (max-width: 1000px) {
    .product-detail-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; }
    .detail-aside-card { padding: 22px 18px; }
}
@media (max-width: 760px) {
    .product-detail-body .rich-content img { max-height: 320px; }
    .product-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .product-detail-aside { position: static; order: -1; }
    .detail-aside-card { padding: 18px; }
    .detail-aside-eyebrow, .detail-aside-card h2 { display: none; }
    .detail-page-nav { display: flex; gap: 22px; border: 0; }
    .detail-page-nav a { flex: 1; padding: 0 0 14px; }
    .detail-aside-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 0; }
    .detail-aside-contact p { width: 100%; margin: 0; }
    .detail-aside-phone { margin: 0; font-size: 20px; }
    .detail-aside-contact .btn { width: auto; margin-left: auto; padding: 7px 12px; font-size: 12px; }
    .detail-category-menu nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail-body .rich-content { font-size: 14px; }
}

.product-gallery { min-width: 0; }
.product-gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 4px; }
.gallery-thumb { flex: 0 0 80px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.gallery-thumb img { display: block; width: 68px; height: 62px; object-fit: contain; }
.gallery-thumb:hover, .gallery-thumb[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.product-gallery .gallery-main-image { max-height: 500px; object-fit: contain; }
@media (max-width: 760px) { .product-gallery .gallery-main-image { max-height: 320px; } }

.gallery-open { display: block; width: 100%; background: #fff; cursor: zoom-in; }
.gallery-lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.gallery-lightbox::backdrop { background: rgba(12, 20, 15, .94); }
.gallery-lightbox-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 66px 76px; box-sizing: border-box; }
.gallery-lightbox-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid #ffffff40; border-radius: 50%; background: #ffffff15; color: #fff; font: 32px/1 Arial, sans-serif; cursor: pointer; }
.gallery-lightbox button:hover { background: #ffffff35; }
.gallery-lightbox button[hidden] { display: none; }
.gallery-lightbox-close { top: 18px; right: 22px; }
.gallery-lightbox-counter { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font: 14px/1.5 Arial, sans-serif; }
.gallery-lightbox-previous { top: calc(50% - 23px); left: 18px; }
.gallery-lightbox-next { top: calc(50% - 23px); right: 18px; }
@media (max-width: 760px) {
    .gallery-lightbox-stage { padding: 74px 14px 80px; }
    .gallery-lightbox-previous, .gallery-lightbox-next { top: auto; bottom: 18px; }
    .gallery-lightbox-previous { left: calc(50% - 58px); }
    .gallery-lightbox-next { right: calc(50% - 58px); }
}

/* A square white canvas keeps the complete product visible. */
.product-gallery .gallery-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    height: auto;
    padding: 20px;
    margin-inline: auto;
    background: #fff;
    overflow: hidden;
}
.product-gallery .gallery-main-image {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}
.product-gallery-thumbs { max-width: 500px; margin-inline: auto; }
.gallery-thumb { width: 80px; height: 80px; aspect-ratio: 1 / 1; }
.gallery-thumb img { width: 68px; height: 68px; aspect-ratio: 1 / 1; background: #fff; object-fit: contain; }
@media (max-width: 760px) {
    .product-gallery .gallery-open { max-width: 320px; padding: 14px; }
    .product-gallery-thumbs { max-width: 320px; }
}

/* Keep product photography and buying information aligned. */
.product-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding-top: 22px;
    padding-bottom: 48px;
}
.product-intro .product-gallery { width: 100%; }
.product-intro .gallery-open { max-width: 560px; padding: 20px; }
.product-intro .product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    max-width: 560px;
    overflow: visible;
    padding: 12px 1px 1px;
}
.product-intro .gallery-thumb { width: 100%; height: auto; min-width: 0; padding: 4px; }
.product-intro .gallery-thumb img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.product-intro .product-summary { min-width: 0; padding-top: 32px; }
.product-intro .product-summary .eyebrow { display: block; font-size: 11px; letter-spacing: 2px; }
.product-intro .product-summary h1 { margin: 14px 0 20px; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.45; overflow-wrap: anywhere; }
.product-intro .product-description { max-width: 620px; font-size: 14px; line-height: 1.95; }
.product-intro .actions { margin-top: 28px; gap: 12px; }
.product-intro .actions .btn { min-height: 46px; padding: 10px 24px; }
.product-intro .product-summary > .muted { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); line-height: 1.8; }
.product-intro .product-summary > .muted a { color: var(--green); font: 600 17px/1.6 Arial, sans-serif; }
@media (max-width: 1100px) {
    .product-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 38px; }
    .product-intro .product-summary { padding-top: 16px; }
    .product-intro .product-gallery-thumbs { gap: 7px; }
}
@media (max-width: 760px) {
    .product-intro { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 12px; padding-bottom: 34px; }
    .product-intro .product-gallery { max-width: 320px; margin-inline: auto; }
    .product-intro .gallery-open { max-width: 320px; padding: 16px; }
    .product-intro .product-summary { padding-top: 0; }
    .product-intro .product-summary h1 { font-size: 24px; margin: 10px 0 16px; }
    .product-intro .actions { margin-top: 22px; }
    .product-intro .actions .btn { padding: 10px 18px; }
    .product-intro .product-summary > .muted { margin-top: 22px; padding-top: 16px; }
}

.product-intro .product-gallery .gallery-open { padding: 0; }

.product-intro .product-gallery-thumbs {
    grid-template-columns: repeat(auto-fill, 64px);
    gap: 8px;
    justify-content: start;
}
.product-intro .gallery-thumb { width: 64px; height: 64px; padding: 3px; }
.product-intro .gallery-thumb img { width: 56px; height: 56px; }
@media (max-width: 760px) {
    .product-intro .product-gallery-thumbs { grid-template-columns: repeat(auto-fill, 52px); gap: 7px; }
    .product-intro .gallery-thumb { width: 52px; height: 52px; padding: 3px; }
    .product-intro .gallery-thumb img { width: 44px; height: 44px; }
}

@media (min-width: 1101px) {
    .product-intro { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; }
    .product-intro .gallery-open, .product-intro .product-gallery-thumbs { max-width: 560px; }
}

.product-download-options { position: relative; }
.product-download-options summary { list-style: none; cursor: pointer; }
.product-download-options summary::-webkit-details-marker { display: none; }
.product-download-list { position: absolute; z-index: 12; top: calc(100% + 8px); left: 0; width: 280px; max-width: 75vw; padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px #25332b12; background: #fff; }
.product-download-list a { display: block; padding: 10px 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.product-download-list a + a { border-top: 1px solid var(--line); }

.accessory-section { padding-top: 12px; padding-bottom: 36px; scroll-margin-top: 116px; }
.accessory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.accessory-card .product-photo { height: 190px; background: #fff; }
.accessory-card .product-caption h3 { font-size: 14px; line-height: 1.6; }
.accessory-official-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 20px; }
.accessory-official-links a { display: flex; flex-direction: column; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.accessory-official-links span { font-size: 11px; color: var(--green); }
@media (max-width: 1000px) { .accessory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .accessory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .accessory-card .product-photo { height: 150px; }
    .accessory-official-links { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .detail-page-nav { flex-wrap: wrap; }
    .detail-page-nav a { flex: 1 1 40%; }
}
