@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Playwrite+NZ+Basic:wght@100..400&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=SN+Pro:ital,wght@0,200..900;1,200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    box-sizing: border-box;
}

/* ===== PRODUCT BANNER ===== */
.product-banner {
    position: relative;
    width: 100%;
    height: 520px;
    background-image: url('../Assets/banner.bg.jpg.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.product-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.88) 28%,
            rgba(0, 0, 0, 0.65) 55%,
            rgba(0, 0, 0, 0.30) 80%,
            rgba(0, 0, 0, 0.15) 100%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.70) 0%,
            rgba(0, 0, 0, 0.20) 40%,
            rgba(0, 0, 0, 0.10) 100%);
    pointer-events: none;
}

.product-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 130px 140px 0 140px;
}

.product-banner-content h1 {
    color: #ffffff;
    font-weight: 300;
    font-size: clamp(32px, 4.5vw, 62px);
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin-bottom: 10px;
    font-family: 'Manrope', sans-serif;
}

.product-banner-highlight {
    font-weight: 700;
    color: #ffffff;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
}

.product-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: #116E4A;
}

.product-crumb-sep {
    color: #116E4A;
    font-size: 16px;
}

.product-crumb-active {
    color: #116E4A;
    font-weight: 500;
}

/* ===== HERO SECTION (PRODUCT SEARCH AREA) ===== */
.hero_section {
    width: 100%;
    padding-bottom: 80px;
}

/* ===== PRODUCT SEARCH SECTION ===== */
.product-search-section {
    width: 100%;
    background: linear-gradient(135deg, #f0fdf6 0%, #e8f8f0 50%, #f5fdf9 100%);
    border-bottom: 1px solid rgba(17, 110, 74, 0.10);
    padding: 48px 40px 42px 40px;
    box-sizing: border-box;
}

.product-search-heading {
    text-align: center;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #116E4A;
}

.product-search-subheading {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

.product-search-subheading span {
    color: #116E4A;
}

/* ===== PRODUCT SEARCH BAR ===== */
.product-search-bar {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-search-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.product-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #116e4a;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.product-search-input {
    width: 100%;
    height: 60px;
    padding: 0 52px 0 56px;
    border: 2px solid rgba(17, 110, 74, 0.2);
    border-radius: 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(17, 110, 74, 0.08);
}

.product-search-input:focus {
    border-color: #116e4a;
    box-shadow: 0 0 0 4px rgba(17, 110, 74, 0.10), 0 4px 20px rgba(17, 110, 74, 0.12);
}

.product-search-input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.product-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #e8e8e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.2s;
    padding: 0;
}

.product-search-clear:hover {
    background: #d0d0d0;
}

.product-search-count {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    text-align: center;
    padding-top: 4px;
}

/* ===== PRODUCTS WRAPPER ===== */
.products_container {
    width: 100%;
    max-width: 1334px;
    margin: 60px auto 0 auto;
}

.product-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 15px;
    color: #888;
    grid-column: 1 / -1;
}

.product-no-results button {
    color: #116e4a;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-decoration: underline;
    margin-left: 4px;
}

/* Mobile responsive for search section */
@media (max-width: 768px) {
    .product-search-section {
        padding: 36px 20px 32px 20px;
    }

    .product-search-subheading {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .product-search-input {
        height: 54px;
        font-size: 14px;
        padding: 0 44px 0 50px;
    }
}

@media (max-width: 480px) {
    .product-search-section {
        padding: 28px 16px 26px 16px;
    }

    .product-search-subheading {
        font-size: 18px;
    }
}



/* ===================================================
   PRODUCTS GRID — applied to the JS-populated div
   — Base: 1 column (mobile)
   — Grows to 2, 3, then 4 at wider breakpoints
   =================================================== */
#products-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    width: 100%;
}

/* ===== PRODUCT CARD ===== */
.product {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product:hover {
    box-shadow: 0 8px 30px rgba(17, 110, 74, 0.12);
    transform: translateY(-4px);
}

/* ===== IMAGE WRAPPER ===== */
.img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: #f8f9fa;
    flex-shrink: 0;
    padding: 16px;
    box-sizing: border-box;
}

.img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 160px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product:hover .img img {
    transform: scale(1.04);
}

/* ===== PRODUCT DETAILS ===== */
.product-details {
    width: 88%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 10px 0;
}

.product-details h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-details p {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(74, 74, 74, 1);
    height: 58px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ===== LEARN MORE BUTTON ===== */
.Learn_more {
    width: 88%;
    height: 38px;
    border-radius: 12px;
    color: rgba(23, 139, 94, 1);
    border: 1px solid rgba(23, 139, 94, 1);
    background: rgba(108, 207, 176, 0.15);
    margin-top: auto;
    margin-bottom: 0;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.Learn_more:hover {
    background-color: rgba(23, 139, 94, 1);
    color: #fff;
}

/* ===== LOADING / ERROR STATE ===== */
#products-container>p {
    text-align: center;
    padding: 60px;
    color: #888;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — mobile-first
   Grid is controlled on #products-container, not the wrapper
   ============================================================ */

/* 2 columns — 480px and up */
@media screen and (min-width: 480px) {
    #products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .Banner-inner-Txt {
        font-size: 22px;
        line-height: 44px;
    }
}

/* 2 columns — 768px tablet */
@media screen and (min-width: 768px) {
    #products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .products_container {
        margin-top: 70px;
    }
}

/* 3 columns — 992px medium desktop */
@media screen and (min-width: 992px) {
    #products-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .products_container {
        margin-top: 80px;
    }
}

/* 4 columns — 1200px large desktop */
@media screen and (min-width: 1200px) {
    #products-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .products_container {
        margin-top: 90px;
    }
}

/* ===== PRODUCT BANNER RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-banner-content {
        padding: 130px 60px 0 60px;
    }
}

@media (max-width: 768px) {
    .product-banner {
        height: 420px;
    }

    .product-banner-content {
        padding: 100px 24px 0 24px;
    }
}

@media (max-width: 580px) {
    .product-banner {
        height: 360px;
    }

    .product-banner-content {
        padding: 90px 20px 0 20px;
    }

    .product-banner-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .product-breadcrumb {
        font-size: 13px;
    }
}