/* =========================================================
   RAAM SHUTTERS — PRODUCTS PAGE
   ========================================================= */


/* =========================================================
   PAGE BASE
   ========================================================= */

.products-page {
    background: #ffffff;
    color: #111317;
    font-family: Arial, sans-serif;
}

.products-page main {
    margin: 0;
    padding: 0;
}


/* =========================================================
   PRODUCTS HERO
   ========================================================= */

.products-page .products-hero {
    position: relative;
    min-height: 100vh !important;
    height: 100vh !important;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin: 0;
    padding: 0;
}

.products-page .products-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.products-page .products-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.68) 0%,
            rgba(0, 0, 0, 0.34) 42%,
            rgba(0, 0, 0, 0.08) 100%
        );
}

.products-page .products-hero-content {
    position: relative;
    top: -80px;
    z-index: 2;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 50px 150px;
    color: #ffffff;
}

.products-page .products-hero-label {
    position: relative;
    margin: 0 0 20px;
    padding-left: 45px;
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-page .products-hero-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #e91e63;
    transform: translateY(-50%);
}

.products-page .products-hero-content h1 {
    max-width: 800px;
    margin: 0 0 22px;
    padding: 0;
    color: #ffffff;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.98;
    font-weight: 400;
    letter-spacing: -3px;
}

.products-page .products-hero-content > p:last-child {
    max-width: 570px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
}


/* =========================================================
   OUR RANGE
   ========================================================= */

.products-page .products-range {
    width: 100%;
    margin: 0;
    padding: 105px 50px 115px;
    background: #ffffff;
}

.products-page .products-range-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}


/* SECTION LABEL */

.products-page .products-range-label {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 0 18px;
    padding-left: 45px;
    color: #22252a;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 1;
}

.products-page .products-range-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #e91e63;
    transform: translateY(-50%);
}


/* HEADING */

.products-page .products-range-heading {
    width: 100%;
    max-width: 760px;
    margin: 0 0 55px;
    padding: 0;
    opacity: 1;
}

.products-page .products-range-heading h2 {
    margin: 0;
    padding: 0;
    color: #171a1f;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.04;
    font-weight: 400;
    letter-spacing: -2.5px;
    opacity: 1;
}


/* =========================================================
   PRODUCT GRID
   2 PRODUCTS PER ROW
   ========================================================= */

.products-page .products-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 65px 30px;
    width: 100%;
}


/* =========================================================
   PRODUCT BOX
   ========================================================= */

.products-page .product-item {
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.products-page .product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}


/* PRODUCT IMAGE */

.products-page .product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1.45 / 1;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #eeeeee;
}

.products-page .product-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
    transition: transform 0.6s ease;
}

.products-page .product-item:hover .product-image-wrap img {
    transform: scale(1.035);
}


/* PRODUCT INFORMATION */

.products-page .product-info {
    margin: 0;
    padding: 25px 25px 27px;
    background: #f4f4f4;
    opacity: 1;
    visibility: visible;
}

.products-page .product-info h3 {
    margin: 0 0 9px;
    padding: 0;
    color: #171a1f;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: -0.3px;
    opacity: 1;
    visibility: visible;
}

.products-page .product-info p {
    min-height: 44px;
    margin: 0 0 21px;
    padding: 0;
    color: #65676b;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
    opacity: 1;
    visibility: visible;
}


/* VIEW PRODUCT BUTTON */

.products-page .view-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 40px;
    margin: 0;
    padding: 10px 21px;
    border: 1px solid #6e7074;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #22252a;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.products-page .view-product-btn:hover {
    border-color: #e91e63;
    background: #e91e63;
    color: #ffffff;
}


/* =========================================================
   READY TO BUILD
   ========================================================= */

.products-page .products-cta {
    position: relative;
    width: 100%;
    min-height: 320px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.products-page .products-cta-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.products-page .products-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18)
}

.products-page .products-cta-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 90px 50px;
    color: #111317;
}

.products-page .products-cta-label {
    position: relative;
    margin: 0 0 20px;
    padding-left: 45px;
    color: #22252a;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-page .products-cta-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #e91e63;
    transform: translateY(-50%);
}

.products-page .products-cta-content h2 {
    max-width: 650px;
    margin: 0 0 20px;
    padding: 0;
    color: #171a1f;
    font-size: clamp(44px, 5.5vw, 70px);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -2.5px;
}

.products-page .products-cta-content > p:not(.products-cta-label) {
    max-width: 470px;
    margin: 0 0 30px;
    color: #55585d;
    font-size: 15px;
    line-height: 1.65;
}


/* CTA BUTTON */

.products-page .products-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 14px 25px;
    border: 1px solid #e91e63;
    border-radius: 0;
    background: #e91e63;
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.products-page .products-cta-btn:hover {
    border-color: #c81752;
    background: #c81752;
}


/* =========================================================
   PRODUCT MODAL
   ========================================================= */

.products-page .product-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.products-page .product-modal.active {
    display: flex;
}

.products-page .product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.products-page .product-modal-box {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(1050px, 100%);
    max-height: 90vh;
    overflow: hidden;
    background: #ffffff;
}

.products-page .product-modal-image {
    width: 100%;
    height: 100%;
    min-height: 540px;
    object-fit: cover;
    display: block;
}

.products-page .product-modal-content {
    padding: 55px 50px;
    overflow-y: auto;
    background: #ffffff;
}

.products-page .product-modal-label {
    margin: 0 0 15px;
    color: #777b80;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 2px;
}

.products-page .product-modal-content h2 {
    margin: 0 0 20px;
    color: #171a1f;
    font-size: 42px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -1.5px;
}

.products-page .product-modal-content p {
    margin: 0 0 28px;
    color: #66696d;
    font-size: 15px;
    line-height: 1.7;
}

.products-page .product-modal-details {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    border-top: 1px solid #dddddd;
}

.products-page .product-modal-details li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #dddddd;
    color: #66696d;
    font-size: 13px;
}

.products-page .product-modal-details strong {
    color: #171a1f;
    font-weight: 500;
}

.products-page .product-modal-details span {
    color: #66696d;
    text-align: right;
}

.products-page .product-modal-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 1px solid #e91e63;
    background: #e91e63;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s ease;
}

.products-page .product-modal-quote:hover {
    background: #c81752;
}

.products-page .product-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
}

.products-page .product-modal-close span {
    position: absolute;
    left: 11px;
    top: 20px;
    width: 20px;
    height: 1px;
    background: #111317;
}

.products-page .product-modal-close span:first-child {
    transform: rotate(45deg);
}

.products-page .product-modal-close span:last-child {
    transform: rotate(-45deg);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .products-page .products-range-grid {
        gap: 50px 22px;
    }

    .products-page .product-info h3 {
        font-size: 21px;
    }

    .products-page .products-range {
        padding-left: 35px;
        padding-right: 35px;
    }

    .products-page .products-hero-content {
        padding-left: 35px;
        padding-right: 35px;
    }

    .products-page .products-cta-content {
        padding-left: 35px;
        padding-right: 35px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .products-page .products-hero {
        min-height: 100vh;
    }

    .products-page .products-hero-content {
        padding: 0 24px 55px;
    }

    .products-page .products-hero-content h1 {
        font-size: 48px;
        line-height: 1;
        letter-spacing: -2px;
    }

    .products-page .products-hero-content > p:last-child {
        max-width: 430px;
        font-size: 14px;
    }


    /* RANGE */

    .products-page .products-range {
        padding: 75px 24px 85px;
    }

    .products-page .products-range-heading {
        margin-bottom: 42px;
    }

    .products-page .products-range-heading h2 {
        font-size: 41px;
        line-height: 1.04;
        letter-spacing: -1.5px;
    }


    /* ONE PRODUCT PER ROW ON MOBILE */

    .products-page .products-range-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .products-page .product-image-wrap {
        aspect-ratio: 1.3 / 1;
    }

    .products-page .product-info {
        padding: 22px 20px 24px;
    }

    .products-page .product-info h3 {
        font-size: 22px;
    }

    .products-page .product-info p {
        min-height: auto;
        font-size: 13px;
    }


    /* CTA */

    .products-page .products-cta {
        min-height: 520px;
    }

    .products-page .products-cta-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.92) 0%,
                rgba(255, 255, 255, 0.68) 65%,
                rgba(255, 255, 255, 0.15) 100%
            );
    }

    .products-page .products-cta-content {
        padding: 75px 24px;
    }

    .products-page .products-cta-content h2 {
        font-size: 45px;
        letter-spacing: -1.8px;
    }

    .products-page .products-cta-content > p:not(.products-cta-label) {
        max-width: 390px;
        font-size: 14px;
    }


    /* MODAL */

    .products-page .product-modal {
        padding: 15px;
    }

    .products-page .product-modal-box {
        grid-template-columns: 1fr;
        max-height: 94vh;
        overflow-y: auto;
    }

    .products-page .product-modal-image {
        height: 280px;
        min-height: 280px;
    }

    .products-page .product-modal-content {
        padding: 35px 25px 30px;
    }

    .products-page .product-modal-content h2 {
        font-size: 32px;
    }

    .products-page .product-modal-details li {
        flex-direction: column;
        gap: 5px;
    }

    .products-page .product-modal-details span {
        text-align: left;
    }

    .products-page .product-modal-close {
        top: 10px;
        right: 10px;
    }

}

/* READY TO BUILD — DESCRIPTION TEXT */

.products-page .products-cta-content > p:not(.products-cta-label) {
    color: #55585d !important;
}

.products-page .products-hero-content h1 span {
    color: #e91e63 !important;
}

/* =========================================================
   PINK ACCENT TEXT
   ========================================================= */

.products-page .products-range-heading h2 span,
.products-page .products-cta-content h2 span {
    color: #e91e63 !important;
}

/* =========================================================
   PRODUCTS PAGE — PREMIUM SCROLL ANIMATIONS
   ========================================================= */


/* =========================================================
   HERO LOAD ANIMATION
   ========================================================= */

.products-page .products-hero-image {
    animation: productsHeroZoom 1.8s ease-out both;
}

.products-page .products-hero-content {
    animation: productsHeroContent 1s ease-out 0.15s both;
}

.products-page .products-hero-label {
    animation: productsHeroText 0.8s ease-out 0.25s both;
}

.products-page .products-hero-content h1 {
    animation: productsHeroText 0.9s ease-out 0.35s both;
}

.products-page .products-hero-content > p:last-child {
    animation: productsHeroText 0.9s ease-out 0.5s both;
}


@keyframes productsHeroZoom {

    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1);
    }

}


@keyframes productsHeroContent {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes productsHeroText {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   SCROLL REVEAL — INITIAL STATE
   ========================================================= */

.products-page .products-range-label,
.products-page .products-range-heading,
.products-page .product-item,
.products-page .products-cta-content {
    opacity: 0;
    transform: translateY(35px);
}


/* =========================================================
   SCROLL REVEAL — ACTIVE
   JavaScript will add .products-visible
   ========================================================= */

.products-page .products-range-label.products-visible,
.products-page .products-range-heading.products-visible,
.products-page .product-item.products-visible,
.products-page .products-cta-content.products-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   OUR RANGE HEADING
   ========================================================= */

.products-page .products-range-label {
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.products-page .products-range-heading {
    transition:
        opacity 0.8s ease 0.1s,
        transform 0.8s ease 0.1s;
}


/* =========================================================
   PRODUCT CARD REVEAL
   ========================================================= */

.products-page .product-item {
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}


/* Individual card delays */

.products-page .product-item:nth-child(1) {
    transition-delay: 0.08s;
}

.products-page .product-item:nth-child(2) {
    transition-delay: 0.28s;
}

.products-page .product-item:nth-child(3) {
    transition-delay: 0.08s;
}

.products-page .product-item:nth-child(4) {
    transition-delay: 0.28s;
}

.products-page .product-item:nth-child(5) {
    transition-delay: 0.08s;
}

.products-page .product-item:nth-child(6) {
    transition-delay: 0.28s;
}


/* =========================================================
   PRODUCT IMAGE — PREMIUM HOVER
   ========================================================= */

.products-page .product-image-wrap {
    overflow: hidden;
}

.products-page .product-image-wrap img {
    transition:
        transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.products-page .product-item:hover .product-image-wrap img {
    transform: scale(1.04);
}


/* =========================================================
   PRODUCT BUTTON
   ========================================================= */

.products-page .view-product-btn {
    position: relative;
    overflow: hidden;
}

.products-page .view-product-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #e91e63;
    transition: width 0.3s ease;
}

.products-page .view-product-btn:hover::after {
    width: 100%;
}


/* =========================================================
   READY TO BUILD IMAGE
   ========================================================= */

.products-page .products-cta-image {
    transition:
        transform 1.4s ease-out;
}

.products-page .products-cta:hover .products-cta-image {
    transform: scale(1.025);
}


/* =========================================================
   READY TO BUILD CONTENT
   ========================================================= */

.products-page .products-cta-content {
    transition:
        opacity 0.85s ease,
        transform 0.85s ease;
}


/* =========================================================
   CTA BUTTON
   ========================================================= */

.products-page .products-cta-btn {
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.products-page .products-cta-btn:hover {
    transform: translateY(-2px);
}


/* =========================================================
   PRODUCT MODAL ANIMATION
   ========================================================= */

.products-page .product-modal-backdrop {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.products-page .product-modal-box {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.products-page .product-modal.active .product-modal-backdrop {
    opacity: 1;
}

.products-page .product-modal.active .product-modal-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .products-page *,
    .products-page *::before,
    .products-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}

/* =========================================================
   MOBILE READY TO BUILD IMAGE
   ========================================================= */

@media (max-width: 768px) {

    .products-page .products-cta-image {
        content: url("../images/products-cta-mobile.png");
        object-fit: cover;
        object-position: center center;
    }

}

/* =========================================================
   FIX — REMOVE WHITE GRADIENT FROM MOBILE CTA
   ========================================================= */

@media (max-width: 768px) {

    .products-page .products-cta-overlay {
        background: rgba(0, 0, 0, 0.18) !important;
        opacity: 1 !important;
    }

}

/* =========================================================
   READY TO BUILD — WHITE TEXT EXCEPT PINK WORD
   ========================================================= */

.products-page .products-cta-label {
    color: #ffffff !important;
}

.products-page .products-cta-content h2 {
    color: #ffffff !important;
}

.products-page .products-cta-content > p:not(.products-cta-label) {
    color: #ffffff !important;
}

/* Keep only the highlighted word pink */
.products-page .products-cta-content h2 span {
    color: #e91e63 !important;
}

/* =========================================================
   MOBILE READY TO BUILD — FULL SCREEN WIDTH
   ========================================================= */

@media (max-width: 768px) {

    .products-page .products-cta {
        width: 100vw !important;
        min-height: 100vh !important;
        height: 100vh !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
    }

    .products-page .products-cta-image {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .products-page .products-cta-overlay {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.28) !important;
    }

    .products-page .products-cta-content {
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 40px 24px !important;
        box-sizing: border-box !important;
    }

}
/* =========================================================
   MOBILE PRODUCTS HERO — TEXT POSITION
========================================================= */

@media (max-width: 768px) {

    .products-page .products-hero-content {
        top: -120px;
    }

}