/* Slide Cart Styles */
.slide-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slide-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-cart-container {
    position: fixed;
    top: 0;
    right: -400px; /* Start off-screen */
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

.slide-cart-overlay.active .slide-cart-container {
    right: 0; /* Slide in */
}

/* Header */
.slide-cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.slide-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-slide-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    color: #666;
    transition: color 0.2s ease;
}

.close-slide-cart:hover {
    color: #333;
}

/* Content */
.slide-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.slide-cart-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Cart Items */
.slide-cart-items {
    padding: 0;
}

.slide-cart-item {
    display: flex;
    align-items: center;
    gap : 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.slide-cart-item:hover {
    background-color: #f8f9fa;
}

.item-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.item-price {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Quantity Controls */
.quantity-controls {
    /*display: flex;*/
    align-items: center;
    gap: 8px;
    display : none;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.qty-btn:active {
    transform: scale(0.95);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Remove Button */
.item-remove {
    margin-left: 10px;
}

.remove-item {
    width: 24px;
    height: 24px;
}


/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.continue-shopping {
    background: #007cba;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.continue-shopping:hover {
    background: #005a87;
}

/* Footer */
.slide-cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-subtotal {
    margin-bottom: 15px;
    text-align: center;
}

.cart-subtotal span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.btn-view-cart,
.btn-checkout {
    flex: 1;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-view-cart {
    background: #fff;
    color: #1c2138;
    border: 1px solid #1c2138;
}

.btn-view-cart:hover {
    background: #fff;
    border-color: #1c2138;
}

.btn-checkout {
    background: #1c2138;
    color: white;
}

.btn-checkout:hover {
    background: #1c2138;
}

/* Cart Toggle Button */
.cart-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 9998;
}

.cart-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-cart-container {
        width: 100%;
        right: -100%;
    }
    
    .slide-cart-overlay.active .slide-cart-container {
        right: 0;
    }
    
    .slide-cart-item {
        padding: 12px 15px;
    }
    
    .item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
}

/* Prevent body scroll when cart is open */
body.slide-cart-open {
    overflow: hidden;
}