/* ============================================
   EXACT MINI CART PIXEL-PERFECT DESIGN
   ============================================ */

/* Main Container */
.cart-dropdown {
    min-width: 380px !important;
    max-width: 380px !important;
    width: 380px !important;
    border-radius: 4px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e5e5 !important;
    padding: 0 !important;
    margin-top: 10px !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

/* Header Section */
.widget-cart-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.cart-title-area h6 {
    color: #1a1a1a !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 0 0 5px 0 !important;
    font-family: inherit !important;
}

.cart-item-count {
    font-size: 14px !important;
    color: #888888 !important;
    font-weight: 500 !important;
}

.close-cart {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #f5f5f5 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    color: #444444 !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.close-cart:hover {
    background: #e8e8e8 !important;
    transform: rotate(90deg) !important;
}

/* Items Area */
.__h-20rem {
    padding: 20px 24px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Scrollbar */
.__h-20rem::-webkit-scrollbar {
    width: 6px;
}

.__h-20rem::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.__h-20rem::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* Single Item Styling */
.widget-cart-item {
    margin-bottom: 25px !important;
    padding-bottom: 0 !important;
}

.widget-cart-item:last-child {
    margin-bottom: 5px !important;
}

.widget-cart-item .media {
    display: flex !important;
    align-items: flex-start !important;
}

.widget-cart-item img {
    border-radius: 8px !important;
    border: 1px solid #eeeeee !important;
    padding: 4px !important;
    object-fit: cover !important;
}

.widget-cart-item .media-body {
    flex: 1 !important;
    padding-left: 0 !important;
}

/* Product Title & Trash */
.widget-product-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    max-width: 200px !important;
}

.widget-product-title a {
    color: #333333 !important;
    text-decoration: none !important;
}

.remove-item-icon i {
    font-size: 20px !important;
    color: #aaaaaa !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
}

.remove-item-icon:hover i {
    color: #ff3b3b !important;
}

/* Price & Qty Row */
.product-price {
    color: #ee8023 !important;
    /* Proper Red */
    font-size: 19px !important;
    font-weight: 800 !important;
}

.__quantity-controls {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
}

.qty-btn {
    width: 34px !important;
    height: 34px !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333333 !important;
    cursor: pointer !important;
}

.qty-btn i {
    font-size: 14px !important;
    font-weight: bold !important;
}

.qty-input {
    width: 36px !important;
    height: 34px !important;
    border: none !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: transparent !important;
    color: #111111 !important;
    -moz-appearance: textfield !important;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.qty-btn:first-child {
    border-right: 1px solid #e0e0e0 !important;
}

.qty-btn:last-child {
    border-left: 1px solid #e0e0e0 !important;
}

/* Footer Styling */
.widget-cart-footer {
    padding: 24px 24px 30px 24px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
}

.footer-total span:first-child {
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    color: #666666 !important;
}

.cart_total_amount {
    font-size: 24px !important;
    color: #1a1a1a !important;
    font-weight: 900 !important;
}

/* RED Checkout Button */
.btn--checkout {
    background: linear-gradient(135deg, #ee8023 0%, #d97320 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 12px rgba(238, 128, 35, 0.3) !important;
    transition: all 0.3s !important;
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.btn--checkout:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #d97320 0%, #c2661c 100%) !important;
    box-shadow: 0 6px 16px rgba(238, 128, 35, 0.4) !important;
    color: #ffffff !important;
}

/* View Full Cart Link */
.view-full-cart-link {
    font-size: 15px !important;
    text-decoration: none !important;
    color: #666666 !important;
    transition: color 0.2s !important;
}

.view-full-cart-link:hover {
    color: #111111 !important;
    text-decoration: underline !important;
}

/* Hide Junk */
.dropdown-saved-amount,
.py-3,
.widget-cart-top svg,
.dropdown-divider,
.__quantity {
    display: none !important;
}

/* Mobile Responsive Fix */
@media (max-width: 576px) {
    .cart-dropdown {
        min-width: 100vw !important;
        max-width: 100vw !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
    }
}