/* Profile Styles */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.profile-sections {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.profile-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.profile-nav-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.profile-nav-btn:hover {
    background: #e9ecef;
    color: #333;
}

.profile-nav-btn.active {
    background: white;
    color: #8B1538;
    border-bottom-color: #8B1538;
}

.profile-content {
    padding: 30px;
}

.profile-section {
    display: block;
}

.profile-section h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* User Info Section */
.profile-section .form-group {
    margin-bottom: 20px;
}

.profile-section .form-group:last-of-type {
    margin-bottom: 30px;
}

.profile-section .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
}

/* Password Input with Toggle */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    flex: 1;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6c757d;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background: #f8f9fa;
    color: #333;
}

.password-requirements {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
    line-height: 1.4;
}

/* Addresses Section */
.addresses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.addresses-header h3 {
    margin-bottom: 0;
}

.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.address-item:hover {
    border-color: #8B1538;
    background: rgba(139, 21, 56, 0.05);
}

.address-info h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.address-details {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.address-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.address-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.addresses-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.addresses-empty p {
    font-size: 1.1rem;
}

/* Delivery Address Selection in Cart */
.delivery-address-selection {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.delivery-address-selection h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.address-option {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background: white;
}

.address-option:hover {
    border-color: #8B1538;
    background-color: rgba(139, 21, 56, 0.05);
}

.address-option input[type="radio"]:checked + .radio-custom {
    background-color: #8B1538;
}

.address-option .address-info {
    margin-left: 10px;
}

.address-option .address-info strong {
    color: #333;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.address-option .address-info div {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Modal Styles for Address */
.modal .modal-content {
    max-width: 500px;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group:last-of-type {
    margin-bottom: 0;
}

.modal .modal-footer {
    margin-top: 30px;
}

/* Responsivo */
@media (max-width: 768px) {
    .profile-container {
        padding: 0 10px;
    }
    
    .profile-header h2 {
        font-size: 2rem;
    }
    
    .profile-nav {
        flex-direction: column;
    }
    
    .profile-nav-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .profile-nav-btn.active {
        border-left-color: #8B1538;
        border-bottom-color: transparent;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .addresses-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .addresses-header .btn {
        width: 100%;
    }
    
    .address-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .address-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .delivery-address-selection {
        padding: 15px;
    }
    
    .address-option {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .profile-content {
        padding: 15px;
    }
    
    .profile-section h3 {
        font-size: 1.3rem;
    }
    
    .address-actions {
        flex-direction: column;
    }
    
    .address-actions .btn {
        width: 100%;
    }
}