/* Product description — readable prose (home-shorts / section-title style) */
.product-detail__text {
    width: 50%;
    padding: 1.75rem 2rem 1.5rem;
    background: linear-gradient(165deg, #f8fafc 0%, #f0f6fa 55%, #eaf2f7 100%);
    border: 1px solid #d4e3ed;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(27, 77, 110, 0.07);
}

.product-detail__text > div {
    padding: 0;
    margin-bottom: 0;
    background: transparent !important;
    opacity: 1 !important;
}

.product-detail__prose {
    padding: 0;
    margin-bottom: 1.25rem;
    background: transparent !important;
    opacity: 1 !important;
    font-size: 1rem;
    line-height: 1.65;
    color: #2a2a2a;
}

.product-detail__prose:last-child {
    margin-bottom: 0;
}

.product-detail__prose p,
.product-detail__prose li,
.product-detail__prose span,
.product-detail__prose td,
.product-detail__prose th {
    font-family: "santral-book", sans-serif !important;
    color: #2a2a2a !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
}

.product-detail__prose p {
    margin: 0 0 1rem;
}

.product-detail__prose p:last-child {
    margin-bottom: 0;
}

.product-detail__text > .product-detail__prose > h2:first-of-type {
    display: block;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0 0 0.75rem;
    font-family: "santral-bold", sans-serif !important;
    color: #1b4d6e !important;
    font-size: 1.35rem !important;
    font-style: italic;
    line-height: 1.35;
    text-align: left;
    border-bottom: 2px solid #1b6a92;
}

/* Fallback when CMS content starts with <p> instead of <h2> */
.product-detail__text > .product-detail__prose > p:first-child,
.product-detail__text > .product-detail__prose > p:first-child span {
    font-family: "santral-bold", sans-serif !important;
    color: #1b4d6e !important;
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
    font-style: italic;
    margin: 0 0 1.25rem;
    padding: 0 0 0.75rem;
    border-bottom: 2px solid #1b6a92;
}

.product-detail__prose h2,
.product-detail__prose h3,
.product-detail__prose h4 {
    font-family: "santral-bold", sans-serif !important;
    color: #1b4d6e !important;
    font-style: italic;
    line-height: 1.3;
    margin: 1.5rem 0 0.75rem;
}

.product-detail__prose h2 {
    font-size: 1.35rem;
}

.product-detail__prose h3 {
    font-size: 1.15rem;
}

.product-detail__prose strong,
.product-detail__prose b {
    font-family: "santral-bold", sans-serif !important;
    color: #1b4d6e !important;
}

.product-detail__prose ul,
.product-detail__prose ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.product-detail__prose li {
    margin-bottom: 0.35rem;
}

.product-detail__applications {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid #c5d9e6;
}

.product-detail__applications-title {
    display: block;
    width: 100%;
    margin: 0 0 0.85rem;
    padding: 0 0 0.65rem;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.35;
    color: #1b4d6e;
    border-bottom: 2px solid #1b6a92;
}

@media screen and (max-width: 671px) {
    .product-detail__text {
        width: 100%;
        padding: 1.25rem 1.15rem 1.15rem;
        border-radius: 10px;
    }

    .product-detail__text > .product-detail__prose > h2:first-of-type {
        font-size: 1.15rem !important;
    }
}

/* Product detail — mounting options & videos */
.pd-mounting .inner-container,
.pd-videos .inner-container {
    display: block;
    width: 100%;
}

.pd-section-header {
    margin-bottom: 2rem;
    max-width: 40rem;
}

.pd-section-header__eyebrow {
    display: inline-block;
    margin: 0 0 .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #1b6a92;
}

.pd-section-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #1b4d6e;
    font-style: italic;
    line-height: 1.25;
}

/* Mounting options */
.pd-mounting {
    padding: 3rem 0 3.5rem;
    background: #fff;
}

.pd-mounting .inner-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.pd-section-header--center {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.pd-mounting__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .pd-mounting__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.pd-mounting__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #dde4ea;
    border-radius: 10px;
    overflow: hidden;
}

.pd-mounting__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 1.5rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #eef2f5;
}

.pd-mounting__zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: zoom-in;
    outline: none;
}

.pd-mounting__zoom:focus-visible {
    box-shadow: inset 0 0 0 2px #1b6a92;
    border-radius: 4px;
}

.pd-mounting__zoom img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .2s ease;
}

.pd-mounting__zoom:hover img {
    transform: scale(1.03);
}

.pd-mounting__zoom::after {
    content: "";
    position: absolute;
    right: .85rem;
    bottom: .85rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(27, 77, 110, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center / 62% no-repeat;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.pd-mounting__zoom:hover::after,
.pd-mounting__zoom:focus-visible::after {
    opacity: 1;
    transform: scale(1);
}

.pd-mounting__body {
    flex: 1 1 auto;
    padding: 1rem 1.15rem 1.2rem;
    background: #fff;
    text-align: left;
}

.pd-mounting__body h3 {
    margin: 0 0 .25rem;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    color: #1b4d6e;
}

.pd-mounting__body p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.45;
    color: #5a6b78;
}

/* Mounting image lightbox */
.pd-mounting-lightbox .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.pd-mounting-lightbox .modal-dialog {
    max-width: min(920px, 92vw);
}

.pd-mounting-lightbox__img {
    display: block;
    max-height: min(72vh, 640px);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.pd-mounting-lightbox__caption {
    color: #1b4d6e;
    font-size: .95rem;
    line-height: 1.45;
}

.pd-mounting-lightbox__caption strong {
    display: block;
    margin-bottom: .2rem;
    font-size: 1.05rem;
}

.pd-mounting-lightbox__caption span {
    color: #5a6b78;
}

/* Product detail sidebar videos */
.product-detail .inner-wrap {
    align-items: flex-start;
}

.product-detail__sidebar {
    width: 47%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: flex-start;
}

.product-detail__sidebar .product-detail__image {
    width: 100%;
    flex: 0 0 auto;
    min-height: 14rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: .5rem;
}

.product-detail__sidebar .product-detail__image img {
    position: relative;
    max-height: none;
    width: auto;
    max-width: 95%;
    margin: 0 auto;
}

.product-detail__gallery {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    width: 100%;
    padding: .15rem .35rem .35rem;
}

.product-detail__gallery-thumb {
    flex: 0 0 calc(33.333% - .35rem);
    max-width: calc(33.333% - .35rem);
    padding: .35rem;
    border: 2px solid #dde4ea;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.product-detail__gallery-thumb:hover,
.product-detail__gallery-thumb.is-active {
    border-color: #1b6a92;
    box-shadow: 0 2px 8px rgba(27, 106, 146, .18);
}

.product-detail__gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.product-detail__videos {
    flex-shrink: 0;
    padding: .85rem .75rem 0;
}

.product-detail__videos-header {
    margin-bottom: .75rem;
}

.product-detail__videos-eyebrow {
    display: block;
    margin: 0 0 .25rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1b6a92;
}

.product-detail__videos-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #1b4d6e;
    font-style: italic;
    line-height: 1.2;
}

.product-detail__videos-grid {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.product-detail__video-card {
    background: #fff;
    border: 1px solid #dce8ef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(27, 77, 110, 0.07);
}

.product-detail__video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a3a4a;
}

.product-detail__video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (max-width: 671px) {
    .product-detail__sidebar {
        order: -1;
        width: 100%;
        margin-bottom: 2em;
    }

    .product-detail__sidebar .product-detail__image {
        min-height: 12rem;
    }
}

/* Videos (legacy section — kept for other pages) */
.pd-videos {
    padding: 3rem 0 3.75rem;
    background: #fff;
}

.pd-videos .inner-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.pd-videos__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}

@media (min-width: 576px) {
    .pd-videos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .pd-videos__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.pd-videos__card {
    background: #f4f8fb;
    border: 1px solid #dce8ef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(27, 77, 110, 0.07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.pd-videos__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(27, 106, 146, 0.14);
}

.pd-videos__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a3a4a;
}

.pd-videos__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 575px) {
    .pd-mounting,
    .pd-videos {
        padding: 2rem 0 2.5rem;
    }

    .pd-mounting .inner-container,
    .pd-videos .inner-container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .pd-section-header h2 {
        font-size: 1.45rem;
    }

}

/* Product detail hero — title slightly higher, subtitle in two lines */
.masthead--product-detail .masthead__info--inner {
    top: 54% !important;
}

.masthead--product-detail .masthead__info h2 {
    margin-bottom: 0.15em;
}

.masthead--product-detail .masthead__info h3 {
    line-height: 1.35;
    margin-top: 0;
}

@media screen and (max-width: 671px) {
    .masthead--product-detail .masthead__info--inner {
        top: 56% !important;
    }

    .masthead--product-detail .masthead__info h3 {
        font-size: 1.15em;
    }
}
