@media (min-width: 768px) {
    .col-md-5-custom {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.cart-button {
    padding: 7px 0;
    width: 100%;
    background: transparent;
    border: 2px solid #f96104;
    border-radius: 6px;
    color: #f96104;
}
.order-now-button {
    position: relative;
    overflow: hidden;
    height: 42px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px 0;
    width: 100%;
    background: #f96104;
    color: #fff;
}
.order-now-button:hover {
    position: relative;
    overflow: hidden;
    height: 42px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px 0;
    width: 100%;
    background: #ffd700;
    border: 1px solid #ffd700;
    color: #fff;
}
.order-now-button .btn-text,
.order-now-button .btn-icon {
    position: absolute;
    left: 50%;
    width: 100%;
    text-align: center;
    transition: all 0.35s ease;
}

.order-now-button .btn-text {
    top: 50%;
    transform: translate(-50%, -50%);
}

.order-now-button .btn-icon {
    bottom: -50px;
    transform: translateX(-50%);
    font-size: 18px;
    color: #000;
}

.order-now-button:hover .btn-text {
    top: -60px;
    opacity: 0;
}

.order-now-button:hover .btn-icon {
    bottom: 50%;
    transform: translate(-50%, 50%);
}

.music-banner-box {
    position: relative;
    width: 100%;
}

.music-banner-bg {
    width: 100%;
    display: block;
    border-radius: 6px;
}

.music-banner-overlay-content {
    position: absolute;
    top: 50%;
    left: 60px; /* desktop offset */
    transform: translateY(-50%);
    color: #fff;
}

/* Desktop styles */
.music-banner-category {
    color: #00ff66;
    font-weight: 600;
    margin-bottom: 10px;
}

.music-banner-title {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.music-banner-timer {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.music-banner-time {
    width: 70px;
    height: 70px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.music-banner-time span {
    font-size: 18px;
}

.music-banner-time p {
    font-size: 12px;
    margin: 0;
}

.music-banner-btn {
    background: #00ff66;
    padding: 12px 35px;
    color: #000;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.music-banner-btn:hover {
    background: #00ff66;
}

/* Mobile / Tablet Responsive */
@media (max-width: 992px) {
    .music-banner-overlay-content {
        left: 30px;
        right: 30px;
    }
    .music-banner-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .order-now-button,
    .cart-button {
        font-size: 13px;
    }
    .music-banner-overlay-content {
        left: 20px;
        right: 20px;
        text-align: center; /* center on smaller screens */
    }
    .music-banner-title {
        font-size: 32px;
    }
    .music-banner-category {
        font-size: 14px;
    }
    .music-banner-timer {
        flex-wrap: wrap; /* wrap the countdown circles */
        justify-content: center;
        gap: 10px;
    }
    .music-banner-time {
        width: 55px;
        height: 55px;
    }
    .music-banner-btn {
        display: block;
        margin: 0 auto;
        padding: 10px 25px;
    }
    .music-banner-title {
        margin-bottom: 15px;
    }
    .music-banner-time span {
        font-size: 14px;
    }
    .music-banner-time p {
        font-size: 8px;
    }
    .mobilecategoriesMargin {
        margin-top: -40px;
        margin-bottom: -8px;
    }
    .mobileproductsMargin {
        margin-top: -15px !important;
        margin-bottom: -25px !important;
    }

}
.relatedproductsMargin {
    margin-top: -35px !important;
    margin-bottom: -15px !important;
}
@media (max-width: 480px) {
    .music-banner-title {
        font-size: 20px;
    }
    .music-banner-category {
        margin-top: 20px !important;
        font-size: 10px;
    }
    .music-banner-time {
        width: 45px;
        height: 45px;
    }
}
/* ======= flash sale ========== */
.flash-wrapper {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

/* .flash-wrapper::before,
.flash-wrapper::after{
    content: "";
    flex: 1;
    height: 2px;
    background: #ddd;
} */

.flashsale-main-title {
    /* padding:  15px 0; */
    font-size: 27px;
    font-weight: 600;
    margin-bottom: -20px !important;
}

.flashsale-countdown {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.flashsale-time-box {
    text-align: center;
}

.flashsale-time-box span {
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.flashsale-time-box small {
    font-size: 14px;
    color: #555;
}

.flashsale-dot {
    font-size: 30px;
    color: #e57373;
    font-weight: bold;
}
/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* .flash-wrapper {
        flex-direction: column;
        align-items: flex-start;
        margin: 10px 0;
    }

    .flashsale-main-title {
        font-size: 28px;
        margin-bottom: 10px;
    } */

    .flashsale-countdown {
        flex-wrap: wrap;
        gap: 10px;
        margin-left: 0;
        justify-content: flex-start;
    }

    .flashsale-time-box {
        font-size: 16px; /* smaller numbers for mobile */
        width: 60px; /* prevent overflow */
    }

    .flashsale-time-box span {
        font-size: 14px;
    }

    .flashsale-time-box small {
        font-size: 12px;
    }

    .flashsale-dot {
        font-size: 24px;
    }
}

#slider.owl-theme .owl-nav.disabled + .owl-dots {
    margin-top: -30px !important;
}
#slider.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #db4444;
    border: 2px solid #fff;
    width: 17px !important;
    height: 17px !important;
}
#slider.owl-theme .owl-dots .owl-dot span {
    width: 15px !important;
    height: 15px !important;
}
#slider.owl-theme .owl-dots .owl-dot span {
    background: #808080;
}

/* border animation */

/* ============================================
   #products — Card Border Draw Animation
   Top-left → দুই পাশ দিয়ে → Bottom-right
   ============================================ */

#products .product-card {
    position: relative;
    border-radius: 8px;
    overflow: visible; /* clip বন্ধ রাখুন */
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Top & Right border — ::before */
#products .product-card::before,
#products .product-card::after {
    content: "";
    position: absolute;
    border-radius: 8px;
    transition: none;
    pointer-events: none;
}

/* TOP border (left→right) + RIGHT border (top→bottom) */
#products .product-card::before {
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-top: 2px solid #f97316;
    border-right: 2px solid #f97316;
    border-bottom: 2px solid transparent;
    border-left: 2px solid transparent;
    clip-path: inset(0 100% 100% 0);
    transition: clip-path 0.3s ease 0s;
}

/* BOTTOM border (right→left) + LEFT border (bottom→top) */
#products .product-card::after {
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-bottom: 2px solid #f97316;
    border-left: 2px solid #f97316;
    border-top: 2px solid transparent;
    border-right: 2px solid transparent;
    clip-path: inset(100% 0 0 100%);
    transition: clip-path 0.3s ease 0s;
}

/* Hover এ দুই দিক থেকে border draw হবে */
#products .product-card:hover::before {
    clip-path: inset(0 0% 0% 0);
    transition: clip-path 0.4s ease 0s;
}

#products .product-card:hover::after {
    clip-path: inset(0% 0 0 0%);
    transition: clip-path 0.4s ease 0s;
}

#products .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.15);
}

/* =========== checkout page ============= */
.custom-input-group-sm {
    position: relative;
    border: 1px solid #b3b3b3;
    border-radius: 10px;
    padding: 0 15px;
    background-color: #fff;
    margin-top: 15px;
    height: 55px;
    display: flex;
    align-items: center;
}

.custom-input-group-sm label {
    position: absolute;
    top: -11px;
    left: 15px;
    background: #fff;
    padding: 0 6px;
    font-size: 22px;
    color: #000;
    font-weight: 500;
    margin-bottom: 0;
    z-index: 5;
}

.custom-input-group-sm .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 18px;
    color: #333;
    width: 100%;
    height: 100% !important;
    padding: 0 !important;
    line-height: 48px !important;
    margin-top: 30px;
}

.custom-input-group-sm .form-control::placeholder {
    color: #999;
    opacity: 1;
    line-height: 48px !important;
}

.custom-input-group-sm:focus-within {
    border-color: #666;
}

.custom-input-group-sm .select2-container--default .select2-selection--single {
    border: none !important;
    background-color: transparent !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}
.custom-input-group-sm
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 20px !important;
    color: #333 !important;
    font-size: 15px !important;
    line-height: 48px !important;
    height: 100% !important;
    padding-top: 15px;
}

.custom-input-group-sm
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 5px !important;
    display: flex !important;
    align-items: center !important;
}

.custom-input-group-sm .select2-container {
    width: 100% !important;
}

.custom-input-group-sm
    .select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: #999 !important;
    line-height: 48px !important;
}
.select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    margin-right: -40px !important;
}

.delivery-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.delivery-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.delivery-badge-item {
    position: relative;
}

.delivery-badge-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.delivery-badge-item label {
    display: inline-block;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid #ff6200;
    color: #ff6200;
    background-color: #fff;
    margin-bottom: 0;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
}

.delivery-badge-item input[type="radio"]:checked + label {
    background-color: #ff6200;
    color: #fff;
    border-color: #ff6200;
    box-shadow: 0 2px 6px rgba(255, 98, 0, 0.2);
}

.delivery-badge-item label:hover {
    background-color: rgba(255, 98, 0, 0.05);
}

/* মেইন কার্ট র্যাপার */
.custom-cart-container {
    width: 100%;
    background: #fff;
}

/* প্রতিটি প্রোডাক্টের রো (Row) - সব উপাদান এক লাইনে রাখার জন্য */
.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* উপাদানগুলোকে দুই প্রান্তে সমানভাবে ছড়ানোর জন্য */
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
    flex-wrap: nowrap; /* মোবাইল ছাড়া অন্য স্ক্রিনে জোর করে এক লাইনে রাখবে */
}

/* ইমেজ কন্টেইনার এবং ক্রস বাটন পজিশন */
.cart-img-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* ইমেজ যেন কোনোভাবেই চ্যাপ্টা না হয় */
}

.cart-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ইমেজের ওপরের লাল ডিলিট বাটন */
.custom-remove-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: #dc3545;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* প্রোডাক্টের নাম এবং মেটা টেক্সট সেকশন */
.cart-details-wrapper {
    flex: 1;
    min-width: 150px;
}

.cart-product-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin: 0 0 3px 0;
}

.cart-product-meta {
    font-size: 12px;
    color: #666;
}

.cart-quantity-wrapper {
    flex-shrink: 0;
}

.custom-qty-group {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #ff6200 !important;
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    height: 38px !important;
    width: 120px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.qty-btn {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    width: 35px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background-color 0.2s ease;
    margin: auto !important;
}

.qty-btn:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.qty-input {
    flex: 1 !important;
    width: 50px !important;
    height: 100% !important;
    background-color: #fff !important;
    border: none !important;
    border-top: 1px solid #ff6200 !important;
    border-bottom: 1px solid #ff6200 !important;
    outline: none !important;
    box-shadow: none !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.qty-input:focus {
    outline: none !important;
    background-color: #fff !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid #ff6200 !important;
    border-bottom: 1px solid #ff6200 !important;
}

.cart-price-wrapper {
    text-align: right;
    min-width: 110px;
    flex-shrink: 0;
}

.current-total-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.discount-label {
    font-size: 13px;
    color: #666;
}

@media (max-width: 576px) {
    .cart-item-row {
        flex-wrap: wrap;
    }
    .cart-details-wrapper {
        width: calc(100% - 90px);
        flex: none;
    }
    .cart-quantity-wrapper {
        margin-left: 85px;
    }
    .cart-price-wrapper {
        margin-left: auto;
    }
}
