/* =========================================================
   YALA HEALTHCARE — PRODUCTS PAGE
   MODERN BLUE / SKY BLUE PHARMA DESIGN
   ========================================================= */

:root {
    --p-primary: #087ea4;
    --p-primary-dark: #075985;
    --p-sky: #38bdf8;
    --p-sky-light: #e0f7ff;
    --p-sky-soft: #f2fbff;

    --p-navy: #0f2d3d;
    --p-text: #526873;
    --p-muted: #7a8d96;

    --p-white: #ffffff;
    --p-bg: #f7fcff;

    --p-border: rgba(8, 126, 164, 0.13);

    --p-shadow-sm:
        0 10px 30px rgba(15, 45, 61, 0.07);

    --p-shadow-md:
        0 20px 55px rgba(15, 45, 61, 0.10);

    --p-shadow-lg:
        0 30px 80px rgba(8, 126, 164, 0.17);

    --p-radius: 24px;
    --p-container: 1240px;
}


/* =========================================================
   GENERAL
   ========================================================= */

.products-hero,
.categories-section,
.featured-product,
.product-table-section,
.product-gallery,
.quality-section,
.product-cta {
    position: relative;
}

.products-hero .container,
.categories-section .container,
.featured-product .container {
    width: min(92%, var(--p-container));
    margin-inline: auto;
}


/* =========================================================
   PRODUCTS HERO
   ========================================================= */

.products-hero {
    min-height: 470px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(circle at 85% 30%,
            rgba(56, 189, 248, .18),
            transparent 30%),
        radial-gradient(circle at 10% 90%,
            rgba(8, 126, 164, .10),
            transparent 30%),
        linear-gradient(135deg,
            #f4fcff 0%,
            #ffffff 55%,
            #eefaff 100%);
}


/* Decorative circles */

.products-hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    border:
        1px solid rgba(56, 189, 248, .15);

    right: -150px;
    top: -150px;
}


.products-hero::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background:
        rgba(56, 189, 248, .06);

    filter: blur(10px);

    left: -100px;
    bottom: -100px;
}


.products-hero .container {
    position: relative;
    z-index: 2;

    text-align: center;

    padding: 90px 0;
}


.products-hero h1 {
    margin-bottom: 22px;

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(48px, 7vw, 82px);

    line-height: 1;

    letter-spacing: -3px;

    font-weight: 800;

    color: var(--p-navy);
}


.products-hero h1::after {
    content: "";

    display: block;

    width: 75px;
    height: 6px;

    margin: 24px auto 0;

    border-radius: 20px;

    background:
        linear-gradient(90deg,
            var(--p-primary),
            var(--p-sky));
}


.products-hero p {
    max-width: 720px;

    margin: 25px auto 0;

    color: var(--p-text);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   CATEGORY SECTION
   ========================================================= */

.categories-section {
    width: min(92%, var(--p-container));

    margin-inline: auto;

    padding: 100px 0 80px;
}


.categories-section>h2 {
    margin-bottom: 35px;

    text-align: center;

    font-family: "Manrope", sans-serif;

    font-size: clamp(32px, 4vw, 48px);

    color: var(--p-navy);

    letter-spacing: -1.5px;
}


.categories-section>h2::after,
.table-title::after,
.quality-section h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 5px;

    margin: 15px auto 0;

    border-radius: 20px;

    background:
        linear-gradient(90deg,
            var(--p-primary),
            var(--p-sky));
}


.categories-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.category-card {
    position: relative;

    min-height: 145px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    text-align: center;

    color: var(--p-navy);

    background:
        rgba(255, 255, 255, .75);

    border:
        1px solid var(--p-border);

    border-radius:
        var(--p-radius);

    box-shadow:
        var(--p-shadow-sm);

    backdrop-filter:
        blur(15px);

    font-size: 15px;

    font-weight: 700;

    overflow: hidden;

    transition:
        transform .4s cubic-bezier(.2, .8, .2, 1),
        box-shadow .4s ease,
        border-color .4s ease;
}


.category-card::before {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    border-radius: 50%;

    background:
        rgba(56, 189, 248, .09);

    right: -35px;
    top: -35px;

    transition:
        transform .5s ease;
}


.category-card:hover {
    transform:
        translateY(-10px);

    border-color:
        rgba(56, 189, 248, .35);

    box-shadow:
        var(--p-shadow-lg);
}


.category-card:hover::before {
    transform:
        scale(1.8);
}


/* =========================================================
   MOVING PRODUCT NAME STRIP
   ========================================================= */

.product-marquee {
    width: 100%;

    overflow: hidden;

    padding: 22px 0;

    background:
        var(--p-primary);

    border-top:
        1px solid rgba(255, 255, 255, .15);

    border-bottom:
        1px solid rgba(255, 255, 255, .15);
}


.product-marquee-track {
    display: flex;

    width: max-content;

    align-items: center;

    gap: 55px;

    white-space: nowrap;

    will-change:
        transform;
}


.product-marquee-track span {
    position: relative;

    color: rgba(255, 255, 255, .95);

    font-family:
        "Manrope",
        sans-serif;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.product-marquee-track span::after {
    content: "✦";

    margin-left: 55px;

    color:
        var(--p-sky);
}


/* =========================================================
   FEATURED PRODUCT
   ========================================================= */

.featured-product {
    width: min(92%, var(--p-container));

    margin-inline: auto;

    padding:
        110px 0;
}


.featured-product {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 80px;
}


/* Image */

.featured-image {
    position: relative;

    padding: 15px;

    border-radius:
        35px;

    background:
        rgba(255, 255, 255, .7);

    border:
        1px solid var(--p-border);

    box-shadow:
        var(--p-shadow-lg);

    backdrop-filter:
        blur(20px);
}


.featured-image::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background:
        rgba(56, 189, 248, .12);

    filter: blur(10px);

    left: -70px;
    bottom: -60px;

    z-index: -1;
}


.featured-image img {
    width: 100%;

    height: 470px;

    object-fit: cover;

    border-radius:
        25px;
}


/* Content */

.featured-content>span {
    display: inline-flex;

    padding: 8px 14px;

    margin-bottom: 18px;

    color:
        var(--p-primary);

    background:
        var(--p-sky-light);

    border:
        1px solid rgba(56, 189, 248, .18);

    border-radius:
        50px;

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .6px;
}


.featured-content h2 {
    margin-bottom: 20px;

    color:
        var(--p-navy);

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(35px, 4vw, 55px);

    line-height: 1.1;

    letter-spacing: -2px;
}


.featured-content>p {
    margin-bottom: 28px;

    color:
        var(--p-text);

    font-size: 16px;

    line-height: 1.85;
}


.featured-content ul {
    list-style: none;

    display: grid;

    gap: 13px;
}


.featured-content li {
    position: relative;

    padding:
        14px 18px 14px 48px;

    color:
        var(--p-navy);

    background:
        var(--p-sky-soft);

    border:
        1px solid rgba(8, 126, 164, .08);

    border-radius:
        13px;

    font-size: 13px;

    font-weight: 700;
}


.featured-content li::before {
    content: "✓";

    position: absolute;

    left: 17px;
    top: 50%;

    width: 22px;
    height: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform:
        translateY(-50%);

    border-radius: 50%;

    color: #fff;

    background:
        linear-gradient(135deg,
            var(--p-primary),
            var(--p-sky));

    font-size: 12px;

    font-weight: 900;
}


/* =========================================================
   PRODUCT TABLE
   ========================================================= */

.product-table-section {
    width: min(92%, var(--p-container));

    margin-inline: auto;

    padding:
        50px 0 110px;
}


.table-title {
    margin-bottom: 40px;

    text-align: center;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(34px, 4vw, 50px);

    color:
        var(--p-navy);

    letter-spacing:
        -1.5px;
}


.table-wrapper {
    overflow-x: auto;

    background:
        rgba(255, 255, 255, .8);

    border:
        1px solid var(--p-border);

    border-radius:
        25px;

    box-shadow:
        var(--p-shadow-md);

    backdrop-filter:
        blur(15px);
}


.product-table {
    width: 100%;

    border-collapse:
        collapse;

    min-width:
        700px;
}


.product-table thead {
    background:
        linear-gradient(135deg,
            var(--p-primary),
            var(--p-primary-dark));
}


.product-table th {
    padding:
        20px 24px;

    color:
        #fff;

    text-align:
        left;

    font-size:
        13px;

    text-transform:
        uppercase;

    letter-spacing:
        .7px;
}


.product-table td {
    padding:
        19px 24px;

    color:
        var(--p-text);

    font-size:
        14px;

    border-bottom:
        1px solid rgba(8, 126, 164, .08);
}


.product-table tbody tr {
    transition:
        background .25s ease,
        transform .25s ease;
}


.product-table tbody tr:hover {
    background:
        var(--p-sky-soft);
}


.product-table tbody td:first-child {
    color:
        var(--p-primary);

    font-weight:
        800;
}


/* ----------

    
    product-item marquee 
    
    
    ---------- */
.values-marquee {
    overflow: hidden;
    padding: 23px 0;
    background: #071a33;
    color: #fff;
    transform: skewY(-1.deg);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 24s linear infinite;
    animation: marquee 20s linear infinite;
    will-change: transform;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 0 35px;
    font: 700 12px "Space Grotesk";
    letter-spacing: 0.13em;
    white-space: nowrap;
}

.marquee-item span {
    color: #38bdf8;
    font-size: 17px;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

.product-gallery {
    padding:
        100px 0;

    background:
        linear-gradient(180deg,
            #f2fbff,
            #ffffff);
}


.product-gallery .container {
    width:
        min(92%, var(--p-container));

    margin-inline:
        auto;
}


.product-gallery h2 {
    color:
        var(--p-navy);

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(35px, 4vw, 50px);
}


/* Carousel */

#productCarousel {
    position: relative;

    overflow: hidden;

    max-width:
        1000px;

    margin-inline:
        auto;

    border-radius:
        30px;

    box-shadow:
        var(--p-shadow-lg);

    background:
        #fff;
}


#productCarousel .carousel-item {
    background:
        #fff;
}


#productCarousel .carousel-item img {
    width:
        100%;

    height:
        570px;

    object-fit:
        contain;

    padding:
        35px;

    background:
        linear-gradient(135deg,
            #ffffff,
            #f1fbff);
}


/* Indicators */

#productCarousel .carousel-indicators {
    margin-bottom:
        18px;
}


#productCarousel .carousel-indicators button {
    width:
        28px;

    height:
        4px;

    border:
        0;

    border-radius:
        10px;

    background:
        rgba(8, 126, 164, .3);

    transition:
        width .3s ease,
        background .3s ease;
}


#productCarousel .carousel-indicators button.active {
    width:
        50px;

    background:
        var(--p-primary);
}


/* Carousel arrows */

#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next {
    width:
        55px;

    height:
        55px;

    top:
        50%;

    margin:
        0 20px;

    transform:
        translateY(-50%);

    border-radius:
        50%;

    background:
        rgba(8, 126, 164, .85);

    opacity:
        1;

    backdrop-filter:
        blur(10px);
}


#productCarousel .carousel-control-prev:hover,
#productCarousel .carousel-control-next:hover {
    background:
        var(--p-primary-dark);
}


/* =========================================================
   QUALITY SECTION
   ========================================================= */

.quality-section {
    padding:
        110px 0;

    background:
        #ffffff;
}


.quality-section .container {
    width:
        min(92%, var(--p-container));

    margin-inline:
        auto;
}


.quality-section h2 {
    margin-bottom:
        45px;

    text-align:
        center;

    color:
        var(--p-navy);

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(35px, 4vw, 50px);

    letter-spacing:
        -1.5px;
}


.quality-grid {
    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        18px;
}


.quality-card {
    position:
        relative;

    padding:
        32px 25px;

    overflow:
        hidden;

    background:
        linear-gradient(145deg,
            #ffffff,
            #f2fbff);

    border:
        1px solid var(--p-border);

    border-radius:
        23px;

    box-shadow:
        var(--p-shadow-sm);

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;
}


.quality-card::before {
    content:
        "";

    position:
        absolute;

    width:
        90px;

    height:
        90px;

    border-radius:
        50%;

    background:
        rgba(56, 189, 248, .10);

    top:
        -40px;

    right:
        -30px;
}


.quality-card:hover {
    transform:
        translateY(-9px);

    box-shadow:
        var(--p-shadow-lg);

    border-color:
        rgba(56, 189, 248, .3);
}


.quality-card h3 {
    position:
        relative;

    margin-bottom:
        13px;

    color:
        var(--p-navy);

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        19px;
}


.quality-card p {
    position:
        relative;

    color:
        var(--p-text);

    font-size:
        13px;

    line-height:
        1.75;
}


/* =========================================================
   CTA
   ========================================================= */

.product-cta {
    padding:
        100px 20px;

    overflow:
        hidden;

    text-align:
        center;

    background:
        linear-gradient(135deg,
            #075985 0%,
            #087ea4 45%,
            #38bdf8 100%);
}


.product-cta::before {
    content:
        "";

    position:
        absolute;

    width:
        450px;

    height:
        450px;

    border:
        1px solid rgba(255, 255, 255, .15);

    border-radius:
        50%;

    top:
        -250px;

    right:
        -120px;
}


.product-cta::after {
    content:
        "";

    position:
        absolute;

    width:
        300px;

    height:
        300px;

    border-radius:
        50%;

    background:
        rgba(255, 255, 255, .07);

    bottom:
        -180px;

    left:
        -100px;
}


.product-cta .container {
    position:
        relative;

    z-index:
        2;
}


.product-cta h2 {
    color:
        #fff;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(35px, 5vw, 58px);

    letter-spacing:
        -2px;

    margin-bottom:
        17px;
}


.product-cta p {
    max-width:
        600px;

    margin:
        0 auto 30px;

    color:
        rgba(255, 255, 255, .85);

    font-size:
        16px;

    line-height:
        1.8;
}


.cta-btn {
    position:
        relative;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        55px;

    padding:
        0 30px;

    color:
        var(--p-primary);

    background:
        #ffffff;

    border-radius:
        14px;

    font-size:
        14px;

    font-weight:
        800;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .12);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.cta-btn:hover {
    color:
        var(--p-primary-dark);

    transform:
        translateY(-5px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, .18);
}


/* =========================================================
   GSAP INITIAL STATES
   ========================================================= */

.products-hero h1,
.products-hero p,
.categories-section>h2,
.category-card,
.featured-image,
.featured-content,
.table-title,
.table-wrapper,
.product-gallery h2,
#productCarousel,
.quality-section h2,
.quality-card,
.product-cta h2,
.product-cta p,
.cta-btn {
    will-change:
        transform,
        opacity;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .categories-grid,
    .quality-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .featured-product {
        gap:
            45px;
    }

    .featured-image img {
        height:
            420px;
    }
}


@media (max-width: 850px) {

    .products-hero {
        min-height:
            400px;
    }

    .featured-product {
        grid-template-columns:
            1fr;
    }

    .featured-content {
        text-align:
            center;
    }

    .featured-content ul {
        text-align:
            left;
    }

    .featured-image {
        max-width:
            700px;

        margin-inline:
            auto;
    }

    #productCarousel .carousel-item img {
        height:
            430px;
    }
}


@media (max-width: 600px) {

    .products-hero .container {
        padding:
            70px 0;
    }

    .products-hero h1 {
        font-size:
            46px;

        letter-spacing:
            -2px;
    }

    .products-hero p {
        font-size:
            14px;
    }

    .categories-section {
        padding:
            70px 0 55px;
    }

    .categories-grid,
    .quality-grid {
        grid-template-columns:
            1fr;
    }

    .category-card {
        min-height:
            115px;
    }

    .product-marquee-track {
        gap:
            30px;
    }

    .product-marquee-track span {
        font-size:
            12px;
    }

    .product-marquee-track span::after {
        margin-left:
            30px;
    }

    .featured-product {
        padding:
            75px 0;
    }

    .featured-image {
        padding:
            8px;

        border-radius:
            25px;
    }

    .featured-image img {
        height:
            300px;

        border-radius:
            19px;
    }

    .featured-content h2 {
        font-size:
            38px;
    }

    .featured-content>p {
        font-size:
            14px;
    }

    .product-table-section {
        padding:
            30px 0 75px;
    }

    #productCarousel {
        border-radius:
            20px;
    }

    #productCarousel .carousel-item img {
        height:
            300px;

        padding:
            20px;
    }

    #productCarousel .carousel-control-prev,
    #productCarousel .carousel-control-next {
        width:
            42px;

        height:
            42px;

        margin:
            0 10px;
    }

    .product-gallery {
        padding:
            70px 0;
    }

    .quality-section {
        padding:
            75px 0;
    }

    .product-cta {
        padding:
            75px 20px;
    }

    .product-cta h2 {
        font-size:
            38px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;
    }
}