html,
body {
    overflow-x: hidden !important;
}

/* Auction Carousel */
.carousel-item img {
    height: 300px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(230, 223, 223, 0.6);
    border-radius: 10px;
    padding: 1rem;
}

/* Filters */
.filters select,
.filters input {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    color: #e63946;
    border: 1px solid #e63946;
}

/* Auction Cards */
.auction-card {
    position: relative;
    background-color: #fff;
    padding: 8px;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.auction-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #e63946;
}

.auction-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.auction-body {
    padding: 1rem;
}

.auction-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111;
}

.auction-price {
    font-size: 1.4rem;
    font-weight: bold;
}

.auction-price.highestprice {
    color: #e63946;
}

.auction-price.price {
    color: #298b61;
}

button.btn-danger {
    width: 120px;
}

button.btn-danger.highest {
    border-color: #298b61;
    background-color: #298b61;
}

.countdown {
    font-size: 1rem;
    color: #e63946;
    margin-bottom: 0.5rem;
}

.bid-btn {
    background-color: #e63946;
    border: none;
    border-radius: 50px;
    color: #fff;
    padding: 0.4rem 1.2rem;
    font-weight: bold;
    margin-right: 0.3rem;
}

.bid-btn:hover {
    transform: translateY(-2px);
}

.badge-hot {
    background-color: #e63946;
    color: #fff;
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 5px;
}

.auction-container {
    margin-top: 1rem;
    padding: 2%;
    /* height: calc(100vh - 120px); */
    /* overflow: scroll; */
    max-width: 100% !important;
}

/* Suggested Auctions */
.suggested-auctions .auction-card img {
    height: 150px;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }

    .auction-card img {
        height: 150px;
    }
}

/* View toggle buttons */
.view-toggle {
    text-align: right;
}

/* Notification */
/* .notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e63946;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
} */

/* .notification.show {
    opacity: 1;
    transform: translateY(-10px);
    transition: all 0.4s ease;
} */
html[dir="rtl"] .input-group {
    direction: ltr;
}
html[dir="rtl"] .input-group input{
    direction: rtl;
}
@media (min-width: 992px) {
    aside.col-lg-3 {
        position: sticky;
        top: 90px;
        height: calc(100vh - 120px);
        overflow-y: auto;
        background: #fff;
        min-height: 110vh;
        /* border-right: 2px solid #e63946; */
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 6px 20px rgba(15, 15, 15, 0.05);
    }
    html[dir="rtl"] aside.col-lg-3{
        direction: ltr;
    }
    html[dir="rtl"] .filters-panel{
        direction: rtl;
    }
    html[dir="ltr"] aside.col-lg-3{
        direction: rtl;
    }
    html[dir="ltr"] .filters-panel{
        direction: ltr;
    }
}
/* ====== Filters Sidebar ====== */
/* .filters-sidebar {
    height: calc(100vh - 100px);
    overflow-y: auto;

}
.filters-sidebar::-webkit-scrollbar-thumb {
    background-color: #e63946;
    border-radius: 10px;
} */
/* Filters panel */
.filters-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    /* box-shadow: 0 6px 20px rgba(15, 15, 15, 0.05); */
}

.filters-panel .form-select,
.filters-panel .form-control {
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .filters-panel {
        position: relative;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
        border: none;
        box-shadow: none;
    }

    .auction-container {
        margin-left: 0;
    }
}

/* ====== List View (4 أعمدة) ====== */
.list-view .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
}

.list-view .auction-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 220px;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.list-view .auction-card img {
    width: 220px;
    height: 100%;
    object-fit: cover;
    border-right: 2px solid #e63946;
}

.list-view .auction-body {
    flex: 1;
    padding: 1rem;
    text-align: left;
}

/* .list-view .auction-info {
    width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    text-align: left;
} */
/* .list-view .auction-actions {
    width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 2px solid #eee;
    padding: 0 10px;
} */
.list-view .bid-btn {
    padding: 4px 10px;
    font-size: 13px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: 0.3s ease;
}

.list-view .bid-btn:hover {
    background-color: #c71c2f;
}

/* input */
.list-view input.form-control {
    height: 28px;
    font-size: 13px;
    width: 70px;
    text-align: center;
    padding: 0;
}

.list-view p,
.list-view label {
    font-size: 20px;
    margin: 0;
}

.list-view .bid-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-card .badge-deal {
    background: #e63946;
    color: #fff;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
}

.deal-countdown {
    font-weight: 700;
    color: #e63946;
}

/* ===== ثابت الفلاتر Sidebar ===== */
@media (min-width: 992px) {
    aside.col-md-3 {
        position: sticky;
        top: 85px;
        /* تحت الـ navbar */
        height: calc(100vh - 100px);
        overflow-y: auto;
        background: #fff;
        border-right: 2px solid #e63946;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        border-radius: 0 10px 10px 0;
        padding: 20px 15px;
        z-index: 10;
    }

    /* aside.col-md-3::-webkit-scrollbar {
        width: 6px;
    }

    aside.col-md-3::-webkit-scrollbar-thumb {
        background-color: #e63946;
        border-radius: 10px;
    } */
}

@media (max-width: 991px) {
    aside.col-md-3 {
        position: relative;
        top: 0;
        height: auto;
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 1.5rem;
    }
}

.view-toggle .btn {
    transition: all 0.3s ease;
    border-color: #bbb;
}

.view-toggle .btn:hover {
    color: #e63946;
    border-color: #e63946;
    background-color: white;
    transform: translateY(-2px);
}

.view-toggle .btn.active-view {
    background-color: #e63946;
    color: #fff;
    border-color: #e63946;
}

/* Sub-icons section */
.sub-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.sub-icon-item {
    position: relative;
    /* ضروري لوضع الرقم فوقه */
    background: #f5f5f5;
    border-radius: 10px;
    padding: 10px 18px;
    text-align: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 85px;
}

.sub-icon-item:hover {
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.sub-icon-item.active {
    background: #e63946;
    color: white !important;
}

.sub-icon-item .count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e63946;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sub-icon-item.active .count {
    background: white;
    color: #e63946;
}

.small-muted {
    color: #6c757d;
    font-size: 0.9rem;
}


.icon-btn {
    border-radius: 10px;
    background: #f7f7f7;
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ------------------------------------
   UNIVERSAL AUTO-BID BEAUTIFUL DESIGN
------------------------------------ */
.auto-bid-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    width: 90%;
    max-width: 250px;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    border: 2px solid #e63946;
    z-index: 20;
    animation: fadeInAutoBid 0.25s ease-out;
}

/* Input inside autobid */
.auto-bid-container input {
    width: 100% !important;
    font-size: 14px !important;
    height: 34px !important;
}

/* Buttons layout */
.auto-bid-container .btn {
    font-size: 13px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    margin-left: 5px !important;
}

/* Animation */
@keyframes fadeInAutoBid {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.list-view .auto-bid-container {
    bottom: 6px !important;
    max-width: 220px;
    padding: 10px;
}

/* ------------------------------------
   RESPONSIVE ADJUSTMENTS
------------------------------------ */
@media (max-width: 576px) {
    .auto-bid-container {
        width: 92%;
        bottom: 8px;
        padding: 10px;
    }

    .auto-bid-container input {
        width: 100% !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .auto-bid-container .btn {
        font-size: 12px !important;
        padding: 5px 8px !important;
    }
}

@media (max-width: 576px) {
    .list-view .auto-bid-container input.form-control {
        width: 100% !important;
        height: 32px !important;
        font-size: 14px !important;
    }
}

.sub-icon-item-white {
    /* position: relative; */
    /* background: #f5f5f5; */
    border-radius: 10px;
    padding: 10px 18px;
    text-align: center;
    font-size: 0.9rem;
    /* cursor: pointer; */
    transition: all 0.3s ease;
    min-width: 85px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.sub-icon-item-white.active {
    background: #e63946;
    color: white !important;
}

/* Sidebar */
#sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #111;
    overflow-y: auto;
    transition: all 0.4s ease;
    z-index: 19000;
    padding: 20px;
    color: white;
}

#sidebar.active {
    left: 0;
}

/* أزرار القائمة */
#sidebar li {
    list-style: none;
    margin: 10px 0;
}

#sidebar li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: white;
    border-radius: 6px;
    transition: 0.3s;
}

#sidebar li a:hover,
#sidebar li a.active {
    background-color: #298b61;
    color: #fff;
}

.toolbar {
    position: sticky;
    top: 0;
    z-index: 9;
}

.toolbar input::placeholder {
    color: #aaa;
}

.toolbar .btn {
    border-radius: 8px;
}

.toolbar .btn.active {
    background-color: #298b61;
    color: #fff;
}

/* ---------- Mobile Improvements for List View ---------- */
@media (max-width: 768px) {

    /* جعل الكرت أصغر ومناسب للموبايل */
    .list-view .auction-card {
        height: auto !important;
        flex-direction: row;
        padding: 10px;
        gap: 10px;
    }

    /* صورة أصغر ومربعة */
    .list-view .auction-card img {
        width: 120px !important;
        height: 120px !important;
        border-right: none !important;
        border-radius: 10px;
    }

    /* ترتيب أفضل للمحتوى */
    .list-view .auction-body {
        padding: 0 !important;
        text-align: left !important;
    }

    .list-view .auction-title {
        font-size: 16px !important;
        font-weight: bold;
        margin-bottom: 5px;
        text-align: center;
    }

    .list-view .countdown{
        text-align: center;
    }

    .list-view p,
    .list-view label {
        font-size: 13px !important;
        margin: 2px 0;
    }

    /* زر التفاصيل */
    .list-view a {
        font-size: 12px !important;
        text-decoration: underline !important;
    }

    /* أزرار القلب والبرق صغيرة */
    .list-view .heart-btn,
    .list-view .bolt-btn {
        padding: 3px 6px !important;
        font-size: 12px !important;
    }

    /* قسم البيدات يصبح عمودي */
    .list-view .bid-form {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 5px;
    }

    /* المدخلات صغيرة */
    .list-view input.form-control {
        width: 60px !important;
        height: 24px !important;
        font-size: 12px !important;
    }

    /* زر Bid صغير */
    .list-view button.btn-danger {
        padding: 3px 10px !important;
        font-size: 12px !important;
    }

    /* تعديل row الأساسية */
    #cards-mesh .col-md-4 {
        padding-right: 5px;
        padding-left: 5px;
    }
}
.items-section {
    height: 110vh;
    overflow-y: scroll;
}
html[dir="rtl"] .info-enum {
    direction: rtl;
}
html[dir="ltr"] .info-enum{
    direction: ltr;
}