/* Checkout Modal Styles */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.checkout-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.checkout-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.checkout-close:hover {
    color: #c0596A;
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.checkout-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.checkout-header p {
    color: #666;
    font-size: 14px;
}

/* Order Summary */
.order-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.order-summary h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.summary-items {
    max-height: 200px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
}

.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.item-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.item-price {
    font-size: 13px;
    color: #888;
}

.item-total {
    font-weight: 600;
    color: #c0596A;
}

.summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
    text-align: right;
    font-size: 18px;
    color: #c0596A;
}

/* Delivery Info */
.delivery-info {
    background: #fff8f0;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #c0596A;
}

.delivery-info h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.delivery-info p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.btn-edit-profile {
    margin-top: 10px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #c0596A;
    color: #c0596A;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-edit-profile:hover {
    background: #c0596A;
    color: white;
}

/* Checkout Options */
.checkout-options {
    margin-bottom: 20px;
}

.checkout-options h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.checkout-option-btn {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.email-btn {
    background: #EA4335;
    color: white;
}

.email-btn:hover {
    background: #D33426;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3);
}

.checkout-note {
    text-align: center;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
}

.checkout-note p {
    margin: 0;
    color: #555;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.success-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    padding: 40px;
    text-align: center;
    animation: scaleIn 0.5s ease;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

.success-modal-content h2 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 28px;
}

.order-number {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.success-message {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.success-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: left;
}

.success-details h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.success-details ul {
    list-style: none;
    padding: 0;
}

.success-details li {
    padding: 8px 0;
    color: #555;
}

.btn-continue {
    background: #c0596A;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-continue:hover {
    background: #a04858;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 89, 106, 0.3);
}

/* Simple Modal */
.simple-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.simple-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    padding: 30px;
    text-align: center;
}

.simple-modal-content h3 {
    color: #333;
    margin-bottom: 15px;
}

.simple-modal-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #c0596A;
    color: white;
}

.btn-primary:hover {
    background: #a04858;
}

.btn-secondary {
    background: #e0e0e0;
    color: #666;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* Checkout Notification */
.checkout-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10002;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.checkout-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.checkout-notification.success {
    background: #4CAF50;
}

.checkout-notification.error {
    background: #f44336;
}

.checkout-notification.info {
    background: #2196F3;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-modal-content {
        padding: 20px;
    }
    
    .checkout-header h2 {
        font-size: 22px;
    }
    
    .summary-item {
        flex-direction: column;
        text-align: center;
    }
    
    .summary-item img {
        width: 80px;
        height: 80px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons button {
        width: 100%;
    }
}

/* Scrollbar Styling */
.checkout-modal-content::-webkit-scrollbar,
.summary-items::-webkit-scrollbar {
    width: 6px;
}

.checkout-modal-content::-webkit-scrollbar-track,
.summary-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.checkout-modal-content::-webkit-scrollbar-thumb,
.summary-items::-webkit-scrollbar-thumb {
    background: #c0596A;
    border-radius: 10px;
}

.checkout-modal-content::-webkit-scrollbar-thumb:hover,
.summary-items::-webkit-scrollbar-thumb:hover {
    background: #a04858;
}

/* Wishlist Notification */
.wishlist-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    z-index: 10002;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wishlist-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.wishlist-notification.success {
    background: #4CAF50;
}

.wishlist-notification.error {
    background: #f44336;
}

.wishlist-notification.info {
    background: #2196F3;
}
