/* =========================================================
   PRODUCTS PAGE
========================================================= */

:root {
    --green-dark: #17391E;
    --green: #4F8A3D;
    --green-light: #8BC34A;

    --background: #f7faf6;
    --white: #ffffff;

    --text: #526057;
    --border: #e4ebe4;

    --transition: all 0.3s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--background);
    color: var(--text);
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    width: 100%;
    min-height: 80px;

    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    border-bottom: 1px solid #edf1ed;

    position: relative;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.nabta_logo {
    width: 125px;
    height: auto;
    display: block;
}


/* Navigation */

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 25px;
}

.nav-links a {
    color: var(--green-dark);

    font-size: 13px;
    font-weight: 500;

    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--green);
}


/* Header button */

.header-btn {
    padding: 11px 20px;

    background: var(--green-dark);
    color: #ffffff;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 500;

    transition: var(--transition);
}

.header-btn:hover {
    background: var(--green);
    color: #ffffff;
}


/* Mobile button */

.menu-btn {
    display: none;

    border: none;
    background: transparent;

    color: var(--green-dark);

    font-size: 23px;

    cursor: pointer;
}


/* =========================================================
   CONTAINER
========================================================= */

.products-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}


/* =========================================================
   PRODUCTS HERO
========================================================= */

.products-hero {
    padding: 95px 0 90px;

    background:
        linear-gradient(
            rgba(23, 57, 30, 0.93),
            rgba(23, 57, 30, 0.93)
        );

    text-align: center;
}

.products-hero .products-container {
    max-width: 850px;
}

.section-label {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--green-light);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-hero h1 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600;

    line-height: 1.2;
}

.products-hero p {
    max-width: 750px;
    margin: 0 auto;

    color: #dce6de;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   PRODUCTS SECTION
========================================================= */

.products-section {
    padding: 90px 0 100px;

    background: #f7faf6;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    max-width: 750px;

    margin: 0 auto 45px;

    text-align: center;
}

.section-heading > span {
    display: block;

    margin-bottom: 10px;

    color: var(--green);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.8px;
}

.section-heading h2 {
    margin-bottom: 14px;

    color: var(--green-dark);

    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
}

.section-heading p {
    color: var(--text);

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   CATEGORY FILTER
========================================================= */

.product-categories {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 45px;
}

.category-btn {
    padding: 10px 20px;

    border: 1px solid #dce7dc;
    border-radius: 30px;

    background: #ffffff;

    color: #3f5544;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition: var(--transition);
}

.category-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.category-btn.active {
    background: var(--green-dark);

    border-color: var(--green-dark);

    color: #ffffff;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.products-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 24px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(23, 57, 30, 0.05);

    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 35px rgba(23, 57, 30, 0.10);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image {
    height: 220px;

    position: relative;

    overflow: hidden;

    background: #edf2ed;
}

.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}


/* =========================================================
   PRODUCT CATEGORY
========================================================= */

.product-category {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 5px 10px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.93);

    color: var(--green-dark);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 9px;

    color: var(--green-dark);

    font-size: 19px;
    font-weight: 600;
}

.product-info p {
    min-height: 70px;

    margin-bottom: 16px;

    color: var(--text);

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   PRODUCT META
========================================================= */

.product-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding-top: 13px;

    border-top: 1px solid #edf1ed;

    color: #68756b;

    font-size: 10px;
    font-weight: 500;
}

.product-meta span:first-child {
    display: flex;
    align-items: center;

    gap: 5px;
}

.product-meta i {
    color: var(--green);
}


/* =========================================================
   PRODUCT LINK
========================================================= */

.product-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 15px;

    color: var(--green);

    font-size: 12px;
    font-weight: 600;

    transition: var(--transition);
}

.product-link:hover {
    color: var(--green-dark);

    gap: 11px;
}


/* =========================================================
   CTA
========================================================= */

.products-cta {
    margin-top: 55px;

    padding: 32px 38px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    background: var(--green-dark);

    border-radius: 12px;
}

.products-cta > div {
    max-width: 700px;
}

.products-cta span {
    display: block;

    margin-bottom: 7px;

    color: var(--green-light);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.5px;
}

.products-cta h3 {
    margin-bottom: 7px;

    color: #ffffff;

    font-size: 22px;
    font-weight: 600;
}

.products-cta p {
    color: #dbe5dd;

    font-size: 12px;

    line-height: 1.7;
}

.cta-btn {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 20px;

    background: #ffffff;

    color: var(--green-dark);

    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;

    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--green-light);

    color: var(--green-dark);

    gap: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .nav-links {
        gap: 17px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 800px) {

    .header {
        min-height: 72px;

        padding: 0 5%;
    }

    .nav-links {
        position: absolute;

        top: 72px;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        padding: 15px 5%;

        background: #ffffff;

        border-top: 1px solid #edf1ed;

        box-shadow: 0 15px 25px rgba(23, 57, 30, 0.08);

        transform: translateY(-20px);

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transition: var(--transition);
    }

    .nav-links.show {
        transform: translateY(0);

        opacity: 1;
        visibility: visible;

        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;

        width: 100%;

        padding: 12px 0;

        font-size: 13px;
    }

    .header-btn {
        display: none;
    }

    .menu-btn {
        display: block;
    }


    .products-hero {
        padding: 75px 0;
    }

    .products-section {
        padding: 70px 0 80px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-cta {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    .products-container {
        width: 90%;
    }

    .products-hero {
        padding: 65px 0;
    }

    .products-hero h1 {
        font-size: 30px;
    }

    .products-hero p {
        font-size: 13px;
    }

    .products-section {
        padding: 60px 0 70px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .section-heading p {
        font-size: 12px;
    }


    .product-categories {
        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 8px;

        margin-bottom: 30px;

        scrollbar-width: none;
    }

    .product-categories::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex-shrink: 0;

        padding: 9px 16px;

        font-size: 11px;
    }


    .products-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .product-image {
        height: 230px;
    }

    .product-info {
        padding: 18px;
    }

    .product-info p {
        min-height: auto;
    }


    .products-cta {
        margin-top: 35px;

        padding: 25px 20px;
    }

    .products-cta h3 {
        font-size: 19px;
    }

    .products-cta p {
        font-size: 11px;
    }

    .cta-btn {
        width: 100%;

        justify-content: center;
    }

}