.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: -650px;
    width: 600px;
    height: 100%;
    background: white;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    left: 0;
}

.cart-header {
    padding: 30px 25px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.cart-title {
    font-family: "Unbounded";
    font-weight: 700;
    font-size: 24px;
    color: #000;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-cart {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-cart:hover {
    background: #f5f5f5;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.cart-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-empty-text {
    font-size: 16px;
    margin-bottom: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 15px;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-family: "Unbounded";
    font-weight: 600;
    font-size: 14px;
    color: #000;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 14px;
    color: #B43F20;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: bold;
}

.quantity-btn:hover {
    background: #B43F20;
    color: white;
    border-color: #B43F20;
}

.quantity-display {
    font-weight: 600;
    font-size: 16px;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s ease;
    margin-left: 10px;
}

.remove-item:hover {
    background: #ffebee;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.delivery-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
}

.delivery-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.delivery-price {
    font-size: 14px;
    color: #B43F20;
    font-weight: 600;
}

.cart-totals {
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
}

.total-label {
    font-size: 14px;
    color: #666;
}

.total-value {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.total-row.final {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
}

.total-row.final .total-value {
    font-size: 18px;
    color: #B43F20;
    font-family: "Unbounded";
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: #B43F20;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: "Unbounded";
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkout-btn:hover {
    background: #C4684F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(180, 63, 32, 0.3);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes cartItemAdd {
    0% {
        opacity: 0;
        transform: scale(0.8) translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes cartItemRemove {
    0% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateX(-50px);
    }
}

.cart-item.adding {
    animation: cartItemAdd 0.3s ease;
}

.cart-item.removing {
    animation: cartItemRemove 0.3s ease;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        left: -100%; 
    }
    
    .cart-header {
        padding: 20px 15px 15px;
    }
    
    .cart-content {
        padding: 15px;
    }
}