/* RESET UNWANTED SPACING */
html, body {
    margin: 0;
    padding: 0;
}

/* REMOVE EXTRA SPACE AROUND HEADER */
.home_banner_outer {
    margin: 0 !important;
    padding: 0 !important;
}

/* REMOVE PADDING WRAPPER GAP */
.padding-rl {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* FIX SUB-BANNER BOTTOM GAP */
.sub-banner-con {
    margin-bottom: 0 !important;
}

/* FIX OVERLAP WITH HERO */
.modern-products-section {
    position: relative;
    background: #ffffff;
    padding: 60px 0 80px;
}


.modern-products-section {
    padding: 80px 0;
}

.products-toolbar {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.products-toolbar input,
.products-toolbar select {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #ddd;
    min-width: 220px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 22px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    max-width: 140px;
    margin-bottom: 15px;
}

.product-card p {
    color: #5c45bf;
    font-weight: 500;
}

.product-card span {
    display: block;
    font-size: 13px;
    color: #666;
    margin: 8px 0 15px;
}

.product-card button {
    background: #5c45bf;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    transition: 0.3s;
}

.product-card button:hover {
    background: #0dbcc0;
}

@media (max-width: 768px) {
    .products-toolbar {
        flex-direction: column;
        align-items: center;
    }
}
.products-toolbar {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.products-toolbar input,
.products-toolbar select {
    width: 100%;
    max-width: 260px;
}
@media (max-width: 768px) {
    .products-toolbar {
        flex-direction: column;
        width: 100%;
    }

    .products-toolbar input,
    .products-toolbar select {
        max-width: 100%;
    }
}
.modern-products-section {
    position: relative;
    background: #ffffff;
    padding: 60px 0 80px;
}
.products-toolbar {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: -40px auto 60px auto; /* pulls it into hero area */
    padding: 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 5;
}

.products-toolbar input,
.products-toolbar select {
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #ddd;
    font-size: 15px;
    width: 100%;
    max-width: 300px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.product-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}
@media (max-width: 768px) {
    .products-toolbar {
        flex-direction: column;
        margin-top: -20px;
    }

    .modern-products-section {
        padding-top: 40px;
    }
}
.modern-products-section {
    clear: both;
}

/* PRODUCTS SECTION */
.modern-products-section {
    background: #ffffff;
    padding: 80px 0;
    clear: both;
}

/* TOOLBAR (keep clean) */
.products-toolbar {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 22px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.products-toolbar input,
.products-toolbar select {
    width: 100%;
    max-width: 280px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}

/* PRODUCT CARD */
.product-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 26px 30px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 65px rgba(0,0,0,0.12);
}

/* IMAGE FIX (MOST IMPORTANT) */
.product-card img {
    width: 160px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 18px;
}

/* TEXT */
.product-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-card p {
    color: #5c45bf;
    font-weight: 500;
    margin-bottom: 6px;
}

.product-card span {
    font-size: 13px;
    color: #666;
    margin-bottom: 18px;
}

/* PUSH BUTTON TO BOTTOM */
.product-card button {
    margin-top: auto;
    background: #5c45bf;
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: 30px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.product-card button:hover {
    background: #0dbcc0;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-toolbar {
        flex-direction: column;
    }
}
/* PRODUCT DETAILS SIDE PANEL */
#productDetailsPanel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -20px 0 50px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
}

#productDetailsPanel.active {
    right: 0;
}

/* HEADER */
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px;
    border-bottom: 1px solid #eee;
}

.details-header h3 {
    font-size: 20px;
    margin: 0;
}

#closeDetails {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* BODY */
.details-body {
    padding: 24px;
    overflow-y: auto;
}

.details-body img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin-bottom: 20px;
}

.details-body p {
    font-size: 14px;
    color: #555;
    margin-bottom: 18px;
}

.details-list {
    list-style: none;
    padding: 0;
    margin-bottom: 22px;
}

.details-list li {
    font-size: 14px;
    margin-bottom: 10px;
}

/* ACTION BUTTON */
.details-action {
    width: 100%;
    padding: 14px;
    background: #5c45bf;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
}

.details-action:hover {
    background: #0dbcc0;
}
