.product-special-layout{display:block}
.product-special-column{display:none}
.product-special-card{display:flex;flex-direction:column;gap:.5rem;min-width:0;padding:.7rem;border:1px solid #d8e8fa;border-radius:17px;background:#fff;color:#152d49;box-shadow:0 8px 24px rgba(7,54,113,.09);transition:transform .2s ease,box-shadow .2s ease}
.product-special-card:hover{color:#152d49;transform:translateY(-3px);box-shadow:0 13px 30px rgba(7,54,113,.16)}
.product-special-card img{width:100%;height:110px;object-fit:contain;border-radius:11px;background:#f7fbff}
.product-special-card strong{display:-webkit-box;min-height:2.75em;overflow:hidden;font-size:.78rem;line-height:1.55;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.product-special-label{align-self:flex-start;padding:.17rem .58rem;border-radius:999px;background:#fff0f4;color:#c91e52;font-size:.68rem;font-weight:800;white-space:nowrap}
.product-special-price{color:#0755ac;font-size:.8rem;font-weight:900;white-space:nowrap}
.mobile-special-modal{display:none}
@media(min-width:1200px){.product-special-layout{position:relative;left:50%;width:calc(100vw - 32px);max-width:1760px;margin-inline:0;transform:translateX(-50%);display:grid;grid-template-columns:minmax(132px,180px) minmax(0,1fr) minmax(132px,180px);align-items:stretch;gap:1rem}.product-special-column{display:flex;flex-direction:column;justify-content:flex-start;gap:.8rem;min-width:0}.product-special-card img{height:112px}.product-detail{min-width:0;padding:2rem;gap:2rem}.detail-copy h1{font-size:clamp(1.8rem,2.4vw,2.6rem)}}
@media(prefers-reduced-motion:reduce){.product-special-card{transition:none}}

/* Layout correction: keep both rails and product details inside the page container. */
@media(min-width:1200px){
.product-special-layout,.product-special-shell{position:static!important;inset:auto!important;left:auto!important;right:auto!important;width:100%!important;max-width:100%!important;margin:1.5rem auto!important;transform:none!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(145px,180px) minmax(0,1fr) minmax(145px,180px)!important;align-items:stretch;gap:1rem}
.product-special-layout>.product-detail,.product-special-shell>.product-detail{grid-column:auto;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.product-special-layout>.product-special-column,.product-special-shell>.product-special-column{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.product-special-card{min-width:0;overflow:hidden}
.product-special-card img{max-width:100%;object-fit:contain}
}
@media(min-width:1200px) and (max-width:1450px){
.product-special-layout,.product-special-shell{grid-template-columns:minmax(125px,150px) minmax(0,1fr) minmax(125px,150px)!important;gap:.75rem}
.product-special-layout>.product-detail,.product-special-shell>.product-detail{padding:1.5rem;gap:1.4rem}
}
@media(max-width:1199.98px){
.product-special-layout,.product-special-shell{position:static!important;inset:auto!important;left:auto!important;right:auto!important;width:100%!important;max-width:100%!important;margin:1rem auto!important;transform:none!important;display:block!important;box-sizing:border-box!important}
.product-special-layout>.product-special-column,.product-special-shell>.product-special-column{display:none!important}
}
@media (max-width: 767.98px) {
    #mobilePhytoOfferModal.show {
        display: block;
        padding: 0 !important;
        z-index: 1085;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #mobilePhytoOfferModal .modal-dialog {
        box-sizing: border-box;
        width: calc(100% - 24px);
        max-width: 400px;
        min-height: 100%;
        margin: 0 auto;
        padding: max(12px, env(safe-area-inset-top)) 0 max(12px, env(safe-area-inset-bottom));
    }

    #mobilePhytoOfferModal .modal-content {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding: 14px;
        border: 1px solid #d9eaff;
        border-radius: 23px;
        background: linear-gradient(160deg, #fff 58%, #f2f8ff);
        box-shadow: 0 22px 64px rgba(7, 54, 113, .25);
        text-align: start;
    }

    #mobilePhytoOfferModal .mobile-special-close {
        position: absolute;
        inset-block-start: 12px;
        inset-inline-end: 12px;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #edf5ff;
        color: #244461;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }

    #mobilePhytoOfferModal .product-special-label {
        align-self: flex-start;
        margin-block: 8px 4px;
        margin-inline-end: 50px;
    }

    #mobilePhytoOfferModal .mobile-special-image-link {
        position: relative;
        display: block;
        height: clamp(100px, 30vh, 225px);
        height: clamp(100px, 30dvh, 225px);
        margin-block-start: 3px;
        border-radius: 15px;
        background: #fff;
    }

    #mobilePhytoOfferModal .mobile-special-image-link img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: inherit;
        object-fit: contain;
    }

    #mobilePhytoOfferModal h2 {
        margin: 0;
        color: #073671;
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    #mobilePhytoOfferModal .product-special-price {
        font-size: 1rem;
        white-space: normal;
    }

    #mobilePhytoOfferModal .mobile-special-cta {
        display: grid;
        place-items: center;
        width: 100%;
        min-height: 44px;
        padding: 8px;
    }
}
