/* Cart and Modal Styles */

/* Buy Button */
.buy-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.buy-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

/* Modal Buttons - Modernized */
.modal-content .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    text-align: center;
}

.modal-content .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #b8941f);
    color: var(--white);
}

.modal-content .btn-primary:hover {
    background: linear-gradient(135deg, #b8941f, var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.modal-content .btn-secondary {
    background: transparent;
    color: var(--dark-gray);
    border: 1px solid #ddd;
}

.modal-content .btn-secondary:hover {
    background: var(--light-gray);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.modal-content .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
}

.modal-content .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Quantity Buttons - Modernized */
.qty-btn {
    background: linear-gradient(135deg, var(--primary-color), #b8941f);
    color: var(--white);
    border: 2px solid #b8941f;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.qty-btn:hover {
    background: linear-gradient(135deg, #b8941f, var(--primary-color));
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
}

/* Remove Item Button - Modernized */
.remove-item-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-left: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.remove-item-btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Cart Icon */
.cart-icon {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 1000;
}

.cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cart-icon i {
    font-size: 24px;
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--secondary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Purchase Modal Specific */
.product-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
}

.price-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.price-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.modal-content .qty-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.qty-btn:hover {
    background: var(--secondary-color);
}

.qty-input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
}

.total-section {
    text-align: center;
    font-size: 1.2rem;
    margin: 1rem 0;
}

/* Christmas Cart Modal Specific */
.cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    padding: 1rem;
}

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

.christmas-bullet {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ff6b6b;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-family: 'Arial', sans-serif;
}

.cart-item-details p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.remove-item-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.remove-item-btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.cart-total {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ff6b6b;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 10px;
    padding: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 3000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for Cart */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .product-summary {
        flex-direction: column;
        text-align: center;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-icon {
        width: 50px;
        height: 50px;
        right: 10px;
        top: 80px;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 1rem;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem;
    }

    .cart-icon {
        width: 45px;
        height: 45px;
        right: 10px;
        top: 75px;
    }
}
