/* Profile Page */
.profile-page {
    max-width: 935px;
    margin-top: 80px;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.profile-bio {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.profile-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 600;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-contact {
    font-size: 14px;
}

.profile-contact p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.profile-section {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 20px;
}

.profile-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section h3 i {
    color: var(--secondary-color);
}

.profile-section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

.payment-methods {
    list-style: none;
}

.payment-methods li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods li i {
    color: #28a745;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-actions .whatsapp-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-actions #scrollToTopBtn {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
}

.floating-actions #scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
}

.floating-btn:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
}

.floating-btn.whatsapp-btn {
    background: #25D366;
    border-color: #25D366;
    color: var(--white);
    width: auto;
    padding: 0 20px;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    height: 50px;
}

.floating-btn.whatsapp-btn:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: var(--white);
}

.floating-btn.whatsapp-btn i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        left: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .floating-actions .whatsapp-btn-wrapper {
        justify-content: flex-start;
    }
    
    .floating-actions #scrollToTopBtn {
        left: 50%;
        top: 90px;
        bottom: auto;
    }
    
    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}

/* Categories Modal */
.categories-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
}

.categories-modal.active {
    display: flex;
}

/* Options Modal - Modal de 3 pontinhos */
.options-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2500;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
}

.options-modal.active {
    display: flex;
}

.options-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2499;
    background: rgba(0, 0, 0, 0.3);
}

.options-modal-overlay.active {
    display: block;
}

.options-modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUpOptions 0.3s ease;
    z-index: 2500;
}

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

.options-list {
    list-style: none;
    padding: 8px 0;
}

.options-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    color: var(--text-primary);
}

.options-item:hover {
    background: var(--background-color);
}

.options-item.favorited {
    color: var(--accent-color);
}

.options-item.danger {
    color: var(--accent-color);
}

.options-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
    text-align: center;
}

.options-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.options-cancel {
    padding: 16px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.options-cancel button {
    background: none;
    border: none;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 20px;
    width: 100%;
}

.options-cancel button:hover {
    background: var(--background-color);
    border-radius: 8px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 4000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: #28a745;
}

@media (max-width: 768px) {
    .options-modal {
        align-items: flex-end;
        padding-bottom: 0;
    }
    
    .options-modal-content {
        border-radius: 16px 16px 0 0;
        max-width: none;
        width: 100%;
    }
}

.categories-modal-content {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalSlide 0.3s ease;
}

.categories-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.categories-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-categories-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.close-categories-modal:hover {
    color: var(--text-primary);
}

.categories-modal-body {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-height: 300px;
    overflow-y: auto;
}

.categories-modal-body .category-btn {
    flex: 0 0 auto;
    padding: 10px 18px;
    font-size: 14px;
}

.categories-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1999;
    background: transparent;
}

.categories-modal-overlay.active {
    display: block;
}

/* Lightbox - Visualização de imagens em tamanho completo */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3001;
    transition: color 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: background 0.3s ease;
    z-index: 3001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
}
