/* ── Homepage Product Slider ────────────────────────────────────── */
.product-slider-section {
    background: #fff;
    padding: 50px 0 40px;
    overflow: hidden;
}
.product-slider-section .section-title { margin-bottom: 36px; }
.product-slider-section .section-title small {
    color: #1877F2;
    font-weight: 700;
    letter-spacing: 1px;
}
.product-slider-section .section-title h3 {
    font-weight: 800;
    color: #0d1117;
}

/* Owl Carousel wrapper */
.product-slider-wrap { position: relative; }

/* Slide card */
a.prod-slide-card {
    text-decoration: none;
    color: inherit;
    display: flex;
}
.prod-slide-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8edf5;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: transform .22s, box-shadow .22s;
    margin: 6px 10px 16px;
    display: flex;
    flex-direction: column;
}
.prod-slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.prod-slide-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #f5f7fa;
}
.prod-slide-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1877F2 0%, #0a4fbd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    font-size: 2.5rem;
}
.prod-slide-body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.prod-slide-title {
    font-size: 15px;
    font-weight: 700;
    color: #0d1117;
    margin-bottom: 6px;
    line-height: 1.35;
}
.prod-slide-subtitle {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 14px;
}
.prod-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 0;
    background: #0d1117;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
    width: 100%;
    cursor: pointer;
}
.prod-slide-btn:hover { background: #1877F2; color: #fff; }

/* Owl nav buttons */
.product-slider-wrap .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff !important;
    border: 1px solid #e8edf5 !important;
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    font-size: 18px !important;
    color: #0d1117 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10;
}
.product-slider-wrap .owl-nav button:hover {
    background: #0d1117 !important;
    color: #fff !important;
    border-color: #0d1117 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.product-slider-wrap .owl-nav .owl-prev { left: -20px; }
.product-slider-wrap .owl-nav .owl-next { right: -20px; }

/* Owl dots */
.product-slider-wrap .owl-dots { margin-top: 24px; text-align: center; }
.product-slider-wrap .owl-dot span {
    width: 8px; height: 8px;
    background: #d1d5db !important;
    border-radius: 50%;
    margin: 0 4px;
    display: inline-block;
    transition: background .2s, transform .2s;
}
.product-slider-wrap .owl-dot.active span {
    background: #0d1117 !important;
    transform: scale(1.3);
}

@media (max-width: 767px) {
    .product-slider-section { padding: 20px 0 20px; }
    .product-slider-section .section-title { margin-bottom: 18px; }
    .product-slider-wrap .owl-nav { display: none; }
    .prod-slide-img, .prod-slide-img-placeholder { height: 130px; }
    .prod-slide-card { border-radius: 12px; }
    .prod-slide-btn { border-radius: 8px; padding: 9px 0; }

    /* Mobile CSS grid mode — replaces carousel */
    .product-owl-slider.mobile-grid-mode {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .product-owl-slider.mobile-grid-mode a.prod-slide-card {
        margin: 0;
        width: 100%;
    }
    .product-owl-slider.mobile-grid-mode .prod-slide-title {
        font-size: 12px;
    }
    .product-owl-slider.mobile-grid-mode .prod-slide-subtitle {
        font-size: 11px;
    }
    .product-owl-slider.mobile-grid-mode .prod-slide-btn {
        font-size: 11px;
        padding: 7px 0;
    }
}
