/* ============================================================
   PRODUCT PAGE
   Mohammed Shahin
   Premium Products Showcase
============================================================ */


/* ============================================================
   PRODUCT PAGE RESET
============================================================ */

.products-page,
.products-page * {
    box-sizing: border-box;
}


/* ============================================================
   HERO
============================================================ */

.products-hero {

    position: relative;

    width: 100%;

    padding: 110px 0 95px;

    background:
        linear-gradient(
            135deg,
            #063f34 0%,
            #0b5d4a 55%,
            #084d40 100%
        );

    overflow: hidden;
}


/* Decorative circle */

.products-hero::before {

    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    top: -300px;
    right: -170px;

    border-radius: 50%;

    background: rgba(255,255,255,0.045);

    pointer-events: none;
}


/* Decorative circle */

.products-hero::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    bottom: -180px;
    left: -120px;

    border-radius: 50%;

    background: rgba(201,149,46,0.08);

    pointer-events: none;
}


/* ============================================================
   HERO CONTAINER
============================================================ */

.products-hero .container {

    position: relative;

    z-index: 2;

    width: min(1120px, calc(100% - 48px));

    margin: 0 auto;
}


/* ============================================================
   HERO CONTENT
============================================================ */

.products-hero-content {

    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}


/* ============================================================
   EYEBROW
============================================================ */

.products-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 22px;

    color: #ffd66b;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.products-eyebrow::before,
.products-eyebrow::after {

    content: "";

    width: 30px;

    height: 1px;

    background: #ffd66b;
}


/* ============================================================
   HERO TITLE
============================================================ */

.products-hero h1 {

    margin: 0 0 25px;

    color: #ffffff;

    font-size: clamp(44px, 6vw, 70px);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -2px;
}


.products-hero h1 span {

    color: #ffd66b;
}


/* ============================================================
   HERO DESCRIPTION
============================================================ */

.products-hero p {

    max-width: 760px;

    margin: 0 auto;

    color: rgba(255,255,255,0.82);

    font-size: 18px;

    line-height: 1.85;
}


/* ============================================================
   PRODUCTS SECTION
============================================================ */

.products-list {

    width: 100%;

    padding: 100px 0 120px;

    background:
        linear-gradient(
            180deg,
            #f7f9f8 0%,
            #ffffff 100%
        );
}


/* ============================================================
   CONTAINER
============================================================ */

.products-list .container {

    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;
}


/* ============================================================
   PRODUCT GRID
   3 COLUMNS DESKTOP
============================================================ */

.products-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;

    width: 100%;
}


/* ============================================================
   PRODUCT CARD
============================================================ */

.product-card {

    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    min-height: 500px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5ebe8;

    border-radius: 26px;

    box-shadow:
        0 12px 35px rgba(10,50,40,0.06);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* Top accent */

.product-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #0b5d4a,
            #c9952e
        );

    transform: scaleX(0);

    transform-origin: left;

    transition:
        transform 0.35s ease;
}


.product-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(11,93,74,0.18);

    box-shadow:
        0 28px 65px rgba(10,50,40,0.12);
}


.product-card:hover::before {

    transform: scaleX(1);
}


/* ============================================================
   LOGO AREA
============================================================ */

.product-logo {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 220px;

    flex-shrink: 0;

    margin-bottom: 26px;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            #fafcfb,
            #f0f5f2
        );

    border: 1px solid #e9efec;

    border-radius: 20px;

    overflow: hidden;
}


/* Inner frame */

.product-logo::before {

    content: "";

    position: absolute;

    inset: 9px;

    border: 1px solid rgba(11,93,74,0.035);

    border-radius: 14px;

    pointer-events: none;
}


/* ============================================================
   LOGO IMAGE
============================================================ */

/*
   IMPORTANT:
   We use fixed maximum dimensions instead of percentages.
   This keeps all six different logos visually balanced.
*/

.product-logo img {

    position: relative;

    z-index: 2;

    display: block;

    width: auto !important;

    height: auto !important;

    max-width: 185px !important;

    max-height: 175px !important;

    min-width: 0 !important;

    min-height: 0 !important;

    margin: 0 auto !important;

    padding: 0 !important;

    object-fit: contain !important;

    object-position: center;

    border: none !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    transition:
        transform 0.4s ease;
}


.product-card:hover .product-logo img {

    transform: scale(1.04);
}


/* ============================================================
   PRODUCT CONTENT
============================================================ */

.product-info {

    display: flex;

    flex-direction: column;

    flex: 1;

    min-width: 0;
}


/* ============================================================
   CATEGORY
============================================================ */

.product-category {

    display: block;

    margin-bottom: 8px;

    color: #c9952e;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.8px;

    line-height: 1.4;

    text-transform: uppercase;
}


/* ============================================================
   PRODUCT TITLE
============================================================ */

.product-info h2 {

    margin: 0 0 12px;

    color: #0b5d4a;

    font-size: 25px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -0.3px;
}


/* ============================================================
   DESCRIPTION
============================================================ */

.product-info p {

    flex: 1;

    margin: 0 0 23px;

    color: #687984;

    font-size: 14px;

    line-height: 1.75;
}


/* ============================================================
   PRODUCT LINK
============================================================ */

.product-link {

    display: inline-flex;

    align-items: center;

    align-self: flex-start;

    gap: 9px;

    color: #0b5d4a;

    font-size: 13px;

    font-weight: 800;

    line-height: 1.4;

    text-decoration: none;

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}


.product-link i {

    color: #c9952e;

    font-size: 11px;

    transition:
        transform 0.3s ease;
}


.product-link:hover {

    color: #c9952e;

    gap: 12px;
}


.product-link:hover i {

    transform: translateX(3px);
}


/* ============================================================
   CTA
============================================================ */

.products-cta {

    width: 100%;

    padding: 0 0 110px;

    background: #ffffff;
}


.products-cta .container {

    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;
}


.products-cta-box {

    position: relative;

    padding: 70px 60px;

    text-align: center;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #0b5d4a,
            #063f34
        );

    overflow: hidden;

    box-shadow:
        0 25px 70px rgba(11,93,74,0.16);
}


.products-cta-box::before {

    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    top: -190px;
    right: -100px;

    border-radius: 50%;

    background: rgba(255,255,255,0.045);
}


.products-cta-box > span {

    position: relative;

    z-index: 2;

    display: block;

    margin-bottom: 14px;

    color: #ffd66b;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}


.products-cta-box h2 {

    position: relative;

    z-index: 2;

    max-width: 700px;

    margin: 0 auto 18px;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 48px);

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -1px;
}


.products-cta-box p {

    position: relative;

    z-index: 2;

    max-width: 700px;

    margin: 0 auto 30px;

    color: rgba(255,255,255,0.78);

    font-size: 16px;

    line-height: 1.8;
}


.products-cta-button {

    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 15px 28px;

    border-radius: 50px;

    background: #ffd66b;

    color: #0b5d4a;

    font-size: 14px;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


.products-cta-button:hover {

    background: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.15);
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1050px) {

    .products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 25px;
    }

}


/* ==========================================================
   PRODUCT PAGE - MOBILE
========================================================== */

@media (max-width: 900px) {

    .products-hero {
        padding: 80px 0 70px;
    }

    .products-hero h1 {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .products-list {
        padding: 70px 0 80px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .product-card {
        min-height: 470px;
        padding: 18px;
    }

    .product-logo {
        height: 190px;
        margin-bottom: 20px;
        padding: 15px;
    }

    .product-logo img {
        max-width: 155px !important;
        max-height: 145px !important;
    }
}


@media (max-width: 600px) {

    .products-hero {
        padding: 65px 0 55px;
    }

    .products-hero-content {
        text-align: center;
    }

    .products-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .products-hero h1 {
        font-size: 34px;
        line-height: 1.15;
        letter-spacing: -.7px;
    }

    .products-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .products-list {
        padding: 55px 0 70px;
    }

    .products-list .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-card {
        min-height: auto;
        padding: 18px;
        border-radius: 20px;
    }

    .product-logo {
        height: 190px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .product-logo img {
        max-width: 165px !important;
        max-height: 150px !important;
    }

    .product-info h2 {
        font-size: 22px;
    }

    .product-info p {
        font-size: 14px;
        line-height: 1.7;
    }
}


@media (max-width: 380px) {

    .products-hero h1 {
        font-size: 30px;
    }

    .product-logo {
        height: 170px;
    }

    .product-logo img {
        max-width: 145px !important;
        max-height: 135px !important;
    }
}