/* Cart Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal--active {
    display: flex;
}

.modal__content {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

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

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--primary);
}

.modal__title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cart__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart__item-details {
    flex: 1;
}

.cart__item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart__item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart__item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart__item-quantity {
    font-weight: 600;
    width: 30px;
    text-align: center;
}

.cart__item-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cart__item-button:hover {
    background-color: var(--primary);
    color: white;
}

.cart__total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-weight: 700;
    font-size: 20px;
}

.cart__checkout {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cart__checkout:hover {
    background-color: #e55f00;
}

/* Auth Modals */
.auth__tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.auth__tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    transition: var(--transition);
}

.auth__tab--active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.auth__form {
    display: none;
}

.auth__form--active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.auth__input-group {
    margin-bottom: 20px;
}

.auth__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.auth__input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 112, 16, 0.2);
}

.auth__submit {
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth__submit:hover {
    background-color: #e55f00;
}