@media (max-width: 991.98px) {

    .product-carousel-wrapper,
    .product-carousel-scroll {
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    .product-card {
        max-width: 250px !important;
        min-width: 220px !important;
        font-size: 1.08em !important;
        height: 320px !important;
        min-height: 220px !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .product-img-container,
    .product-image {
        height: 180px !important;
    }

    .product-info {
        padding: 10px 10px 10px 10px !important;
        height: auto !important;
        gap: 2px !important;
    }

    .product-category {
        margin-bottom: 1px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
    }

    .product-title {
        margin-bottom: 1px !important;
        font-size: 16px !important;
        height: 28px !important;
        line-height: 20px !important;
        font-weight: 700 !important;
    }

    .product-price {
        margin-bottom: 0 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .price-container span {
        font-size: 15px !important;
    }
}

@media (min-width: 992px) {

    .product-carousel-wrapper {
        max-width: 1100px;
        margin-left: 0;
        margin-right: 0;
    }

    .product-carousel-scroll {
        max-width: 1100px;
        margin-left: 0;
        margin-right: 0;
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    .product-card {
        max-width: 250px !important;
        min-width: 220px !important;
        font-size: 1.08em;
        height: 320px !important;
        min-height: 220px !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .product-img-container,
    .product-image {
        height: 180px !important;
    }

    .product-info {
        padding: 10px 10px 10px 10px !important;
        height: auto !important;
        gap: 2px !important;
    }

    .product-category {
        margin-bottom: 1px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
    }

    .product-title {
        margin-bottom: 1px !important;
        font-size: 16px !important;
        height: 28px !important;
        line-height: 20px !important;
        font-weight: 700 !important;
    }

    .product-price {
        margin-bottom: 0 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .price-container span {
        font-size: 15px !important;
    }
}



.banner-section {
    position: relative;
    overflow: hidden;
}

.banner-section .carousel-item img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}


.banner-section .carousel-caption {
    display: none;
}



.product-grid-container .row {
    margin: 0 -10px;
}

.product-grid-container .row>[class*="col-"] {
    padding: 0 10px;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-gap: 20px;
    margin-bottom: 30px;
}




.product-grid .product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    min-height: auto;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: #218838;
    display: inline-block;
    position: relative;
}


.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.section-logo {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}


.product-carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.product-carousel-scroll {
    overflow-x: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.product-carousel-scroll::-webkit-scrollbar {
    display: none;
}

.product-carousel-row {
    flex-wrap: nowrap !important;
}

.carousel-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-btn-left {
    left: -20px;
}

.carousel-btn-right {
    right: -20px;
}

.carousel-btn:hover {
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .carousel-btn-left {
        left: -10px;
    }

    .carousel-btn-right {
        right: -10px;
    }
}


@media (max-width: 992px) {
    .dp-section {
        flex-direction: column;
        gap: 20px;
    }

    .dp-section-reversed {
        flex-direction: column;
    }

    .category-large-container,
    .product-grid-container {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }

    .category-large-container {
        position: relative;
        top: 0;
    }

    .category-large {
        height: 350px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    .banner-section .carousel-item img {
        height: 350px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }

    .category-large {
        height: 250px;
    }

    .product-grid-container h3 {
        text-align: left;
        margin-bottom: 20px;
    }

    .product-grid-container h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.category-text-box.d-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-carousel-btns {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-left: 25%;
}

.category-carousel-btns .carousel-btn {
    position: static;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    margin: 0;
    box-shadow: none;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    transition: background 0.2s;
    padding: 0;
}

.category-carousel-btns .carousel-btn:hover {
    background: #f0f0f0;
}