/* ===== MODERN MINI-CART STYLES ===== */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    max-width: 500px;
    width: 100%;
}
.modern-mini-cart {
    background: #ffffff;
    max-width: 490px;
    overflow: hidden;
    height: 100%;
    /*display: grid;*/
    align-items: center;
    border: 1px solid #f0f0f0;
}
.cart-modal__content{
	height: 100%;
}
button.cart-modal__close {
    height: 33px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 33px;
    gap: 0;
    padding: 10px;
    margin: 0;
    font-family: 'Space Grotesk';
    font-size: 20px;
}
h4.item-name a {
    display: block !important;
}
/* ===== HEADER STYLES ===== */
.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}
.cart-count {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}
.cart-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}
.cart-close:hover {
    color: #333;
}
/* Tab Panel Styles */
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
/* Cart Tabs Styling */
.cart-tabs {
    display: flex;
    gap: 10px;
}
.tab-btn {
    background: none;
    border: none;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    BORDER-RADIUS: 0;
    BACKGROUND: #F0F0F0;
    border: 1px solid transparent;
}
.tab-btn .tab-count {
    background: #FFF;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.tab-btn.active {
    color: #000;
    BORDER: 1PX SOLID #00000021;
    BACKGROUND: #FFF;
}
.tab-btn.active .tab-count {
    background: #000;
    color: #fff;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}
/* Wishlist Items Styling */
.wishlist-items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}
.wishlist-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}
.wishlist-item .item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.wishlist-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.wishlist-item .item-details {
    flex: 1;
}
.wishlist-item .item-name {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
}
.wishlist-item .item-name a {
    color: #333;
    text-decoration: none;
}
.wishlist-item .item-price {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}
.wishlist-item .add-to-cart-btn {
    display: inline-block;
    padding: 4px 12px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
}
.wishlist-item .add-to-cart-btn:hover {
    background: #333;
}
/* Empty States */
.empty-wishlist {
    text-align: center;
    padding: 40px 20px;
}
.empty-wishlist .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.empty-wishlist .empty-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
}
.empty-wishlist .empty-message {
    font-size: 14px;
    color: #999;
    margin: 0 0 20px 0;
}
/* ===== SHIPPING PROGRESS BAR ===== */
/*.shipping-progress {
    padding: 16px 24px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.progress-text {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #666;
}
.progress-text .success {
    color: #10b981;
}
.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #10b981;
    border-radius: 3px;
    transition: width 0.3s ease;
}
*/
/* ===== ITEMS LIST ===== */
.mini-cart-items {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    height: calc(100vh - 190px);
    overflow-y: auto;
}
.cart-item {
    display: flex !important;
    gap: 16px;
    padding: 20px 10px !important;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 !important;
    position: relative;
}
/* Product Image */
.item-image {
    flex-shrink: 0;
    width: auto;
}
.item-image a {
    display: block !IMPORTANT;
}
.item-image img {
    width: auto;
    height: 140px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}
.wishlist-btn-wrapper {
    POSITION: ABSOLUTE;
    TOP: 0;
    RIGHT: 0;
}
/* Product Details */
.item-details {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-evenly;
    position: relative;
}
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.item-name {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    padding-right: 20px;
}
.item-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 16px;
    font-weight: 500;
}
.item-name a:hover {
    color: #666;
}
/* Remove Button */
.remove-item {
    color: #000 !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    TEXT-DECORATION: UNDERLINE !IMPORTANT;
    text-underline-offset: 3px;
}
/* Item Meta (Variations) */
.item-details dl.variation {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 6px 0 !important;
    font-size: 12px;
    color: #666;
}
.item-details dl.variation dt {
    margin: 0;
    font-weight: 400;
    color: #999;
}
.item-details dl.variation dd {
    margin: 0;
    color: #333;
}
/* Item Footer */
.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.item-price {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}
.quantity-selector{
    display:flex;
    align-items:center;
    gap:6px;
}
.quantity-selector .qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #000;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 20px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    font-family: math;
    padding: 0;
}
.quantity-selector .qty-btn:hover{
    background: #eaeaea;
}
.quantity-selector .quantity-value{
    width:45px;
    height:36px;
    border:none;
    text-align:center;
    font-size:14px;
    font-weight:500;
    background:#fff;
    outline:none;
    padding:0;          /* FIX */
    line-height:36px;   /* perfect vertical center */
}
/* ===== FOOTER STYLES ===== */
.mini-cart-footer {
    padding: 16px 16px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
}
/* Subtotal */
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #f0f0f0;
}
.subtotal-label {
    font-size: 15px;
    font-weight: 500;
    color: #666;
}
.subtotal-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}
/* Tax Note */
.tax-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: #666;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 8px;
}
/* ===== BUTTONS - PERFECT ALIGNMENT ===== */
.cart-buttons {
    display: flex;
    gap: 12px;
    margin: 16px 0 0;
}
.cart-buttons .button {
    flex: 1;
    padding: 14px 16px ;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1 !important;
    margin: 0 !important;
    border: 1px solid #000 !important;
}
/* View Cart Button */
.view-cart-btn {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 2px solid #e0e0e0 !important;
}
.view-cart-btn:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
}
.btn-count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}
/* Checkout Button */
.checkout-btn {
    background: #1a1a1a !important;
    color: #ffffff !important;
}
.checkout-btn:hover {
    background: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.btn-arrow {
    transition: transform 0.2s;
}
.checkout-btn:hover .btn-arrow {
    transform: translateX(4px);
}
/* ===== EMPTY CART STYLES ===== */
.empty-cart , .empty-wishlist {
    text-align: center;
    padding: 24px;
    border: 1px dashed #f0f0f0;
    margin: 16px;
    border-radius: 10px;
}
.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-title , .empty-wishlist h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}
.empty-message , .empty-wishlist p {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #999;
}
.empty-cart .shop-now-btn , .empty-wishlist .add-button {
    display: inline-block !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    text-decoration: underline; !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-underline-offset: 4px;
}
.empty-cart .shop-now-btn:hover {
    transform: translateX(4px);
    text-underline-offset: 6px;
}
/* ===== SCROLLBAR ===== */
.mini-cart-items::-webkit-scrollbar {
    width: 6px;
}
.mini-cart-items::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.mini-cart-items::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}
.mini-cart-items::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .modern-mini-cart {
        max-width: 100%;
        border-radius: 0;
    }
    .cart-buttons a {
        padding: 14px 5px !important;
        
    }   
}
/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.cart-item {
    animation: slideIn 0.3s ease;
}
/* Quantity number styling */
.quantity {
    display: inline-block;
    width: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
    margin: 5px 0;
}
/* Optional hover effect */
.quantity:hover {
    background-color: #e5e5e5;
    cursor: default; /* Not clickable */
}