﻿/* =========================================
   ELDER LABORATORIES
   CATEGORY PRODUCT PAGE
   ========================================= */

.product-category-page {
    background: #f7fbff;
}


/* =========================================
   CATEGORY HERO
   ========================================= */

.category-hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #eef8ff;
}

.category-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/backgrounds/category-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .category-hero-background::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.72) 40%, rgba(255,255,255,0.10) 78% );
    }

.category-hero .container {
    position: relative;
    z-index: 5;
}

.category-hero-content {
    max-width: 620px;
    padding-top: 120px;
    padding-bottom: 170px;
}

    .category-hero-content span {
        display: block;
        margin-bottom: 14px;
        font-family: "DM Sans", sans-serif;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 3px;
        color: #234e86;
    }

    .category-hero-content h1 {
        margin: 0 0 18px;
        font-family: "DM Serif Display", serif;
        font-size: 64px;
        font-weight: 400;
        line-height: 1.05;
        color: #17395f;
    }

    .category-hero-content p {
        margin: 0;
        max-width: 600px;
        font-family: "DM Sans", sans-serif;
        font-size: 18px;
        line-height: 1.7;
        color: #3f4f63;
    }


/* =========================================
   CATEGORY HERO WAVE
   ========================================= */

.category-hero-wave {
    position: absolute;
    left: 0;
    bottom: -47px;
    width: 100%;
    height: 155px;
    z-index: 10;
    pointer-events: none;
}

    .category-hero-wave svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.category-wave-fill {
    fill: #ffffff;
}

.category-wave-blue {
    fill: none;
    stroke: #234e86;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.75;
}

.category-wave-white {
    fill: none;
    stroke: rgba(255,255,255,0.95);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-2px);
}


/* =========================================
   PRODUCT LISTING SECTION
   ========================================= */

.category-products-section {
    padding: 75px 0 110px;
    background: #f7fbff;
}

.category-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #5c8ed0;
}

.category-products-header h2 {
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-size: 40px;
    font-weight: 400;
    color: #173b65;
}


/* =========================================
   SEARCH
   ========================================= */

.category-search {
    width: 320px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: #ffffff;
    border: 1px solid #dbe7f3;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(35,78,134,0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

    .category-search:focus-within {
        border-color: #8eb6e2;
        box-shadow: 0 10px 30px rgba(35,78,134,0.10);
    }

    .category-search .search-button {
        width: 30px;
        height: 30px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .category-search i {
        font-size: 17px;
        color: #5c8ed0;
    }

    .category-search input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        font-family: "DM Sans", sans-serif;
        font-size: 14px;
        color: #173b65;
    }

        .category-search input::placeholder {
            color: #9aaec4;
        }


/* =========================================
   PRODUCT GRID
   ========================================= */

.category-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}


/* =========================================
   PRODUCT CARD
   ========================================= */

.category-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e1eaf3;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(35,78,134,0.045);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

    .category-product-card:hover {
        transform: translateY(-7px);
        border-color: #c7d9eb;
        box-shadow: 0 18px 38px rgba(35,78,134,0.12);
    }


/* =========================================
   PRODUCT IMAGE
   ========================================= */

.category-product-image {
    height: 325px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

    .category-product-image img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 265px;
        object-fit: contain;
        transition: transform 0.45s ease;
    }

.category-product-card:hover .category-product-image img {
    transform: scale(1.045);
}


/* =========================================
   PRODUCT CONTENT
   ========================================= */

.category-product-content {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px 24px;
}

    .category-product-content .product-category {
        display: block;
        margin-bottom: 9px;
        font-family: "DM Sans", sans-serif;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #6d9bd3;
    }

    .category-product-content h3 {
        margin: 0;
        font-family: "DM Serif Display", serif;
        font-size: 24px;
        font-weight: 400;
        line-height: 1.25;
        color: #173b65;
    }

    .category-product-content p {
        margin: 10px 0 18px;
        font-family: "DM Sans", sans-serif;
        font-size: 14px;
        line-height: 1.6;
        color: #71839a;
    }


    /* =========================================
   READ MORE BUTTON
   ========================================= */

    .category-product-content a {
        margin-top: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 105px;
        min-height: 38px;
        padding: 9px 18px;
        border-radius: 22px;
        background: #f7941d;
        color: #ffffff;
        font-family: "DM Sans", sans-serif;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        text-decoration: none;
        transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    }

        .category-product-content a:hover {
            background: #e7830c;
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 7px 16px rgba(247,148,29,0.22);
        }


/* =========================================
   NO PRODUCTS
   ========================================= */

.no-products {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    color: #71849a;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 991px) {

    .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-products-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-search {
        width: 100%;
        max-width: 420px;
    }

    .category-product-image {
        height: 290px;
    }
}


@media (max-width: 575px) {

    .category-hero {
        min-height: 400px;
    }

    .category-hero-content {
        padding-top: 90px;
        padding-bottom: 140px;
    }

        .category-hero-content h1 {
            font-size: 44px;
        }

        .category-hero-content p {
            font-size: 16px;
        }

    .category-products-section {
        padding: 55px 0 75px;
    }

    .category-products-header h2 {
        font-size: 34px;
    }

    .category-product-grid {
        grid-template-columns: 1fr;
    }

    .category-product-image {
        height: 300px;
    }
}
