/* ========================================
   Top Products Slider Styles (FIXED)
======================================== */

.top-products-slider-wrap {
    position: relative;
}

/* SLIDER */
.top-products-slider {
    position: relative;
    z-index: 1;
}

/* VIEWPORT */
.top-products-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
}

/* TRACK */
.top-products-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* CARD WRAP */
.top-product-card-wrap {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* CARD */
.top-product-card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}




/* 🔥 stock badge bottom-right */
.stock-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
}

/* available */
.stock-status .in-stock {
    background: #f0de7a;
    color: #222222;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* not available */
.stock-status .out-stock {
    background: #f37c7c;
    color: #222222;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.top-product-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
    border-color: rgba(249, 191, 41, 0.3);
}

/* IMAGE */
.top-product-image-box {
       width: 100%;
    height: 200px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.top-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.top-product-card:hover .top-product-image {
    transform: scale(1.05);
}

/* CONTENT */
.top-product-content {
    padding: 20px;
    background: #fff;
}

.top-product-card .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PRICE */
.top-product-pricing {
    display: flex;
    gap: 10px;
}

.top-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.top-product-old-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 14px;
}

/* =========================
   ARROWS (FIXED + OUTSIDE TOP)
========================= */

.top-products-arrow {
    position: absolute;
    top: -20px;   /* 🔥 slider এর উপরে */
    z-index: 100;

    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;

    background: #ffffff;
    color: #1e293b;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;

    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* hover ONLY color change */
.top-products-arrow:hover {
    background: #f9bf29;
    color: #fff;
}

/* position */
.top-products-arrow-prev {
    left: 10px;
}

.top-products-arrow-next {
    right: 10px;
}

/* disabled */
.top-products-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =========================
   SECTION
========================= */

.product-section {
    padding: 60px 0;
    background: #f8fafc;
}

.product-section .container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199px) {
    .top-product-card-wrap {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

@media (max-width: 991px) {
    .top-product-card-wrap {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .top-products-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .top-product-card-wrap {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .top-products-arrow {
        width: 36px;
        height: 36px;
        top: -15px;
    }
}


.view-all-products {
    text-align: center;
    margin-top: 20px;
}

.view-all-products a {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 30px;
    background: #f1f5f9;
    transition: 0.3s ease;
}

.view-all-products a:hover {
    background: #f9bf29;
    color: #fff;
    transform: translateY(-2px);
}