/* Custom SweetAlert Styling for Cart */
.swal-cart-popup {
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    padding: 2rem !important;
    max-width: 400px !important;
    background: #ffffff !important;
}

.swal-cart-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
}

.swal-cart-content {
    font-size: 1rem !important;
    color: #6c757d !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
}

.swal-cart-confirm-btn {
    background: transparent !important;
    border: 2px solid #CC0D39 !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #CC0D39 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(204, 13, 57, 0.2) !important;
}

.swal-cart-confirm-btn:hover {
    background: #CC0D39 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(204, 13, 57, 0.4) !important;
}

.swal-cart-cancel-btn {
    background: #6c757d !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3) !important;
}

.swal-cart-cancel-btn:hover {
    background: #5a6268 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4) !important;
}

/* Success icon styling */
.swal2-icon.swal2-success {
    border-color: #28a745 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #28a745 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(40, 167, 69, 0.3) !important;
}

/* Timer progress bar */
.swal2-timer-progress-bar {
    background: #28a745 !important;
}

/* Offcanvas Cart Notification */
.cart-offcanvas {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

.cart-offcanvas.show {
    right: 0;
}

.cart-offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
}

.cart-offcanvas-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-offcanvas-title i {
    color: #28a745;
    font-size: 1.1rem;
}

.cart-offcanvas-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-offcanvas-close:hover {
    background: #e9ecef;
    color: #495057;
}

.cart-offcanvas-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-offcanvas-success {
    padding: 2rem 1.5rem;
    text-align: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.cart-offcanvas-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.cart-items-container {
    padding: 0 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #CC0D39;
}

.cart-item-quantity {
    font-size: 0.8rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: #f8d7da;
    color: #721c24;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.cart-empty-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.cart-empty-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.cart-empty-subtext {
    font-size: 0.9rem;
    margin: 0;
    color: #6c757d;
}

.cart-offcanvas-icon {
    width: 60px;
    height: 60px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #28a745;
    font-size: 1.5rem;
}

.cart-offcanvas-message {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cart-offcanvas-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.cart-offcanvas-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.cart-offcanvas-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-offcanvas-btn-primary {
    background: transparent;
    border: 2px solid #CC0D39;
    color: #CC0D39;
}

.cart-offcanvas-btn-primary:hover {
    background: #CC0D39;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 13, 57, 0.3);
}

.cart-offcanvas-btn-secondary {
    background: #343a40;
    color: white;
}

.cart-offcanvas-btn-secondary:hover {
    background: #212529;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 58, 64, 0.4);
}

.cart-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-offcanvas-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .cart-offcanvas {
        width: 100%;
        right: -100%;
    }
    
    .cart-offcanvas-header {
        padding: 1rem;
    }
    
    .cart-offcanvas-success {
        padding: 1.5rem 1rem;
    }
    
    .cart-items-container {
        padding: 0 1rem;
    }
    
    .cart-offcanvas-actions {
        padding: 1rem;
    }
    
    .cart-offcanvas-title {
        font-size: 1.1rem;
    }
    
    .cart-offcanvas-message {
        font-size: 1rem;
    }
    
    .cart-offcanvas-subtitle {
        font-size: 0.85rem;
    }
    
    .cart-offcanvas-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .cart-item {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-name {
        font-size: 0.85rem;
    }
    
    .cart-item-price {
        font-size: 0.8rem;
    }
    
    .cart-item-quantity {
        font-size: 0.75rem;
    }
} 