/* Cart Modal Overlay */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Cart Modal Container */
.cart-modal {
    background: #131316;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.cart-modal-overlay.active .cart-modal {
    transform: scale(1);
}

/* Close Button */
.cart-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #9AA4B2;
    cursor: pointer;
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.cart-modal-close:hover {
    color: #FFFFFF;
}

/* Success Message */
.cart-success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.cart-success-message svg {
    flex-shrink: 0;
    color: #28a745;
}

.cart-success-message p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #28a745;
    margin: 0;
}

/* My Cart Title */
.cart-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 24px;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #1a1a1d;
    border-radius: 12px;
    margin-bottom: 16px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

.cart-item-options {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.cart-item-option {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #9AA4B2;
}

.cart-item-option span {
    color: #FFFFFF;
    font-weight: 500;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #9AA4B2;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #FF6B35;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity span {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #9AA4B2;
}

.cart-item-quantity input {
    background: #0D0D0D;
    border: 1px solid #9AA4B236;
    color: #FFFFFF;
    width: 50px;
    padding: 6px;
    text-align: center;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.cart-item-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
}

/* Cart Summary */
.cart-summary {
    border-top: 1px solid #9AA4B236;
    padding-top: 20px;
    margin-top: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cart-summary-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #9AA4B2;
}

.cart-summary-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.cart-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cart-btn-checkout {
    background: #FF6B35;
    color: #FFFFFF;
}

.cart-btn-checkout:hover {
    background: #E55A28;
    transform: translateY(-2px);
}

.cart-btn-continue {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #9AA4B236;
}

.cart-btn-continue:hover {
    background: #1a1a1d;
    border-color: #FFFFFF;
}

/* Empty Cart State */
.cart-empty {
    text-align: center;
    padding: 40px 20px;
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    color: #9AA4B2;
    margin-bottom: 20px;
}

.cart-empty h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.cart-empty p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #9AA4B2;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-modal {
        width: 95%;
        padding: 24px;
        max-height: 95vh;
    }

    .cart-modal-title {
        font-size: 1.25rem;
    }

    .cart-item {
        padding: 12px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-info h4 {
        font-size: 0.95rem;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cart-modal {
        padding: 20px;
    }

    .cart-item {
        flex-direction: column;
        gap: 12px;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
    }

    .cart-item-options {
        flex-direction: column;
        gap: 8px;
    }
}