/* ===== PRODUCT GRID ===== */
    #product-container {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }

    .product-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin-bottom: 24px;
    }

    /* ===== PRODUCT CARD ===== */
    .product__item {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100% !important;
        width: 100% !important;
        flex: 1 !important;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        overflow: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        background: #ffffff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    }

    .product__item:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 36px rgba(14, 189, 50, 0.12);
        border-color: rgba(14, 189, 50, 0.3);
    }

    /* ===== IMAGE AREA - FIXED HEIGHT ===== */
    .product__item__img {
        width: 100%;
        height: 200px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
    }

    .product__item__img__item {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
    }

    .product__item__img__item img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: transform 0.35s ease;
    }

    .product__item:hover .product__item__img__item img {
        transform: scale(1.08);
    }

    /* ===== CONTENT AREA ===== */
    .product__item__content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex: 1 !important;
        padding: 18px 16px 20px;
        text-align: center;
        gap: 12px;
    }

    .product__item__title {
        font-size: 15px;
        font-weight: 700;
        margin: 0;
        line-height: 1.35;
        min-height: 2.7em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #1e293b;
    }

    .product__item__title a {
        color: #1e293b;
        text-decoration: none;
        transition: color 0.2s;
        letter-spacing: 0.3px;
    }

    .product__item:hover .product__item__title a {
        color: #0ebd66;
    }

    /* ===== VIEW BUTTON ===== */
    a.product__item__link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: auto !important;
        padding: 8px 26px;
        background: linear-gradient(135deg, #00C1D4 0%, #0099ab 100%) !important;
        color: #ffffff !important;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 193, 212, 0.25);
    }

    a.product__item__link:hover {
        background: linear-gradient(135deg, #6413a6 0%, #480c7b 100%) !important;
        box-shadow: 0 6px 16px rgba(100, 19, 166, 0.35);
        transform: translateY(-2px);
    }

    /* ===== LOAD MORE BUTTON ===== */
    #load-more {
        background: #6413a6;
        border: none;
        padding: 12px 36px;
        color: white;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        border-radius: 50px;
        letter-spacing: 0.5px;
        transition: background 0.3s, transform 0.2s;
        margin-top: 20px;
    }

    #load-more:hover {
        background: #6413a6;
        transform: translateY(-2px);
    }

    #load-more:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
        .product__item__img {
            height: 180px;
        }
    }

    /* ===== PRODUCT PAGE SEARCH BAR ===== */
    .product-search-section {
        padding: 50px 0 20px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .product-search-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .product-search-box {
        position: relative;
        display: flex;
        align-items: center;
        background: #ffffff;
        border: 2px solid #cbd5e1;
        border-radius: 50px;
        padding: 0 24px;
        height: 54px;
        width: 100%;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    }

    .product-search-box:hover {
        border-color: #94a3b8;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    }

    .product-search-box:focus-within {
        border-color: #0ebd66;
        box-shadow: 0 0 0 4px rgba(14, 189, 102, 0.15), 0 10px 15px -3px rgba(14, 189, 102, 0.05);
    }

    .product-search-icon {
        color: #94a3b8;
        margin-right: 14px;
        font-size: 18px;
        transition: color 0.3s;
    }

    .product-search-box:focus-within .product-search-icon {
        color: #0ebd66;
    }

    .product-search-box input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 16px;
        width: 100%;
        color: #021936;
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
    }

    .product-search-box input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

    #page-product-search-clear {
        background: none;
        border: none;
        outline: none;
        color: #94a3b8;
        cursor: pointer;
        padding: 0;
        margin-left: 12px;
        font-size: 16px;
        transition: color 0.2s;
    }

    #page-product-search-clear:hover {
        color: #ef4444;
    }

    .product-search-status {
        font-size: 13px;
        font-weight: 600;
        color: #1e293b;
        background: #e2e8f0;
        padding: 6px 16px;
        border-radius: 20px;
        font-family: 'Poppins', sans-serif;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .no-products-found {
        background: #fff;
        border-radius: 16px;
        border: 2px dashed #cbd5e1;
        padding: 50px 30px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        max-width: 500px;
        margin: 40px auto;
    }

#load-more {
        background-color: #00C1D4;
        border: none;
        padding: 10px 20px;
        color: white;
        font-size: 16px;
        cursor: pointer;
    }

    #load-more:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

/* --- Element Custom Styles --- */

.product-custom-1 {
    position: relative; overflow: hidden;
}

.product-custom-2 {
    background-size: cover; background-position: center; padding: 98px 0; position: relative;
}

.product-custom-3 {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1;
}

.product-custom-4 {
    position: relative; z-index: 2; text-align: left;
}

.product-custom-5 {
    color: #fff;
}

.product-custom-6 {
    color: #fff;
}

.product-custom-7 {
    display: none;
}

.product-custom-8 {
    display: none;
}

.product-custom-9 {
    margin-bottom: 50px;
}

/* ═══════════════════════════════════════
   MOBILE & TABLET RESPONSIVENESS OVERRIDES
   ═══════════════════════════════════════ */

/* Fix background-clip text rendering/wrapping bug on subtitles */
.page-header__subtitle_product {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #ffffff !important;
    display: block !important;
    font-size: 1.8rem !important;
    line-height: 1.4 !important;
}

/* Tablets & Mobile Screens (< 991px) */
@media (max-width: 991px) {
    .page-header__subtitle_product {
        font-size: 1.5rem !important;
    }
}

/* Mobile Screens (< 767px) */
@media (max-width: 767px) {
    /* Reset banner margin and center text */
    .banner-text {
        margin-left: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center !important;
    }

    .page-header__subtitle_product {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
    }
    
    .page-header__title_product {
        font-size: 2.2rem !important;
        margin-bottom: 10px !important;
    }
    
    /* Search Section */
    .product-search-section {
        padding: 30px 0 15px !important;
    }
    
    .product-search-box {
        height: 48px !important;
        padding: 0 18px !important;
    }
    
    .product-search-box input {
        font-size: 15px !important;
    }
    
    .product-search-icon {
        font-size: 16px !important;
        margin-right: 10px !important;
    }
    
    /* Section Title */
    .product-custom-9 {
        margin-bottom: 30px !important;
    }
    
    .product-custom-9 br {
        display: none !important; /* Hide hardcoded <br> on mobile */
    }
    
    .product-one--page .sec-title__title {
        font-size: 20px !important;
        line-height: 1.5 !important;
    }

    /* Reset row gutters & flex alignment for 2-column layout on mobile */
    #product-container {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        --bs-gutter-x: 12px !important;
        --bs-gutter-y: 12px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* Product Cards UI Improvements on Mobile (2 per row equal height) */
    .product-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin-bottom: 12px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    
    .product__item {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100% !important;
        width: 100% !important;
        flex: 1 !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid rgba(0, 0, 0, 0.07) !important;
        background: #ffffff !important;
    }
    
    .product__item__img {
        height: 145px !important;
        width: 100% !important;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    }
    
    .product__item__img__item {
        padding: 10px !important;
        width: 100% !important;
        height: 100% !important;
    }

    .product__item__img__item img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
    
    .product__item__content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex: 1 !important;
        padding: 12px 10px 14px 10px !important;
        gap: 8px !important;
        text-align: center !important;
    }
    
    .product__item__title {
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        min-height: 2.7em !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 4px !important;
    }

    .product__item__title a {
        font-size: 13px !important;
    }
    
    a.product__item__link {
        margin-top: auto !important;
        padding: 6px 18px !important;
        font-size: 12px !important;
        border-radius: 50px !important;
    }
}

/* Small Mobile Screens (< 575px) */
@media (max-width: 575px) {
    /* Page Header Banner subtitle font-size */
    .page-header__subtitle_product {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
        white-space: normal !important;
    }
}
