/* style.css - Versão otimizada para mobile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

:root {
    /* Cor Principal */
    --primary: #910085;
    --primary-dark: #7b0070;
    --secondary: #ff8c00;
    --success: #2d6a4f;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light: #fdfdfd;
    --dark: #1a1a1a;
    --gray: #4a4a4a;
    --gray-light: #bdbdbd;
    --border: #eeeeee;
    --header-height: 60px;
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Mobile First */
.header {
    background: #910085;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logo {
    height: 32px;
    width: auto;
}

.logo-container h1 {
    font-size: 1rem;
    color: white;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

/* Barra de busca mobile */
.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 40px;
    padding: 4px 4px 4px 16px;
    width: 100%;
}

.header-search input {
    flex: 1;
    padding: 10px 0;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
    min-width: 0;
}

.header-search select {
    padding: 6px 8px;
    border: none;
    border-left: 1px solid #e0e0e0;
    background: white;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    color: var(--gray);
}

.header-search button {
    background: #ff7800;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

/* Navbar */
.navbar {
    background: #910085;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    min-width: min-content;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: inline-block;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #910085;
    background: #f5f5f5;
}

/* ============================================ */
/* Slider Section - Largura total responsiva */
/* ============================================ */

.slider-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #910085;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin: 0;
    background: #910085;
}

@media (min-width: 480px) {
    .slider-container {
        height: 280px;
    }
}

@media (min-width: 768px) {
    .slider-container {
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .slider-container {
        height: 400px;
    }
}

@media (max-width: 360px) {
    .slider-container {
        height: 200px;
    }
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: #910085;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-img.error {
    background: linear-gradient(135deg, #910085 0%, #7b0070 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    padding: 20px 16px 16px;
    color: white;
    z-index: 2;
}

.slide-caption h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.slide-caption p {
    font-size: 0.75rem;
    opacity: 0.9;
}

@media (min-width: 480px) {
    .slide-caption {
        padding: 24px 20px 20px;
    }
    .slide-caption h3 {
        font-size: 1.2rem;
    }
    .slide-caption p {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .slide-caption {
        padding: 30px 24px 24px;
    }
    .slide-caption h3 {
        font-size: 1.4rem;
    }
    .slide-caption p {
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .slide-caption {
        padding: 40px 30px 30px;
    }
    .slide-caption h3 {
        font-size: 1.8rem;
    }
    .slide-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .slide-caption {
        padding: 12px 12px 12px;
    }
    .slide-caption h3 {
        font-size: 0.85rem;
    }
    .slide-caption p {
        font-size: 0.65rem;
    }
}

/* Botões de navegação do slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
    background: rgba(0,0,0,0.7);
}

.prev {
    left: 12px;
}

.next {
    right: 12px;
}

@media (min-width: 768px) {
    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .prev {
        left: 20px;
    }
    .next {
        right: 20px;
    }
}

@media (max-width: 360px) {
    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .prev {
        left: 8px;
    }
    .next {
        right: 8px;
    }
}

/* Dots de navegação */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: white;
    width: 20px;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .slider-dots {
        bottom: 16px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
    .dot.active {
        width: 24px;
    }
}

/* Suporte para safe area */
@supports (padding: max(0px)) {
    .slide-caption {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* ============================================ */
/* Categorias Section */
/* ============================================ */

.categorias-section {
    padding: 32px 0;
    background: white;
}

.section-title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 24px;
    color: var(--dark);
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    padding: 0 8px;
}

.categoria-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.categoria-card:active {
    transform: scale(0.98);
}

.categoria-icon {
    font-size: 1.8rem;
    transition: transform 0.2s;
}

.categoria-card span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================ */
/* Anúncios */
/* ============================================ */

.anuncios-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.anuncios-header .section-title {
    margin-bottom: 0;
    text-align: left;
    font-size: 1.2rem;
}

.ordenacao {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray);
}

.ordenacao select {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.anuncios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.anuncio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.anuncio-card:active {
    transform: scale(0.98);
}

.anuncio-imagens {
    position: relative;
    height: 160px;
    background: #f5f5f5;
    overflow: hidden;
}

.anuncio-imagem-principal {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-imagens {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.nav-img-btn {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indicadores {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}

.indicador {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.2s;
}

.indicador.ativo {
    background: white;
    width: 12px;
    border-radius: 2px;
}

.anuncio-info {
    padding: 10px;
}

.anuncio-preco {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 4px;
}

.anuncio-preco::before {
    content: "R$ ";
    font-size: 0.75rem;
    font-weight: normal;
}

.anuncio-titulo {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anuncio-local {
    font-size: 0.65rem;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.anuncio-vendedor {
    font-size: 0.6rem;
    color: var(--gray);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* ============================================ */
/* Modais */
/* ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: 0 auto;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-large {
    max-width: 600px;
}

.modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark);
}

.modal-content .close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-content .close:hover {
    background: rgba(0,0,0,0.05);
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    -webkit-appearance: none;
}

.btn-primary {
    background: #ff7800;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

.btn-secondary {
    flex: 1;
    background: white;
    color: #910085;
    padding: 12px;
    border: 1.5px solid #910085;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Botão Google */
.btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-google i {
    font-size: 20px;
    color: #4285f4;
}

.btn-google:active {
    transform: scale(0.98);
    background: #f5f5f5;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: #e0e0e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 12px;
    color: var(--gray);
    font-size: 12px;
}

/* Modal de bloqueio de vendedor */
.modal-overlay-info {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-info-content {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}

.modal-info-content i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.modal-info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.modal-info-content p {
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 14px;
}

.modal-info-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-info-buttons button {
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-info-buttons button:active {
    transform: scale(0.98);
}

.btn-modal-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-modal-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--gray);
}

/* ============================================ */
/* Welcome Popup */
/* ============================================ */

.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.welcome-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.welcome-popup-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    padding: 32px 24px;
    text-align: center;
    animation: popupSlideUp 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 3001;
}

@keyframes popupSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.welcome-popup-close:hover {
    background: #e0e0e0;
    transform: scale(1.05) rotate(90deg);
}

.welcome-popup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #910085 0%, #910085 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    animation: pulseIcon 0.8s ease-in-out;
}

@keyframes pulseIcon {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.welcome-popup-icon i {
    font-size: 32px;
    color: white;
    animation: iconSpin 0.5s ease;
}

@keyframes iconSpin {
    from {
        transform: rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: rotate(0deg);
        opacity: 1;
    }
}

.welcome-popup-content h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    animation: slideInFromLeft 0.5s ease 0.1s both;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-popup-content > p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: slideInFromRight 0.5s ease 0.2s both;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-popup-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.welcome-popup-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

.welcome-popup-features li:nth-child(1) { animation-delay: 0.1s; }
.welcome-popup-features li:nth-child(2) { animation-delay: 0.2s; }
.welcome-popup-features li:nth-child(3) { animation-delay: 0.3s; }
.welcome-popup-features li:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-popup-features li:last-child {
    border-bottom: none;
}

.welcome-popup-features li i {
    width: 24px;
    color: #910085;
    font-size: 1rem;
    text-align: center;
    transition: transform 0.2s;
}

.welcome-popup-features li:hover i {
    transform: scale(1.2) rotate(5deg);
}

.welcome-popup-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: fadeInUp 0.5s ease 0.5s both;
}

.welcome-popup-buttons .btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #910085 0%, #910085 100%);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.welcome-popup-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.welcome-popup-buttons .btn-primary:hover::before {
    left: 100%;
}

.welcome-popup-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.welcome-popup-footer {
    font-size: 0.75rem;
    color: #999;
    margin-top: 16px;
    animation: fadeInUp 0.5s ease 0.6s both;
}

@media (max-width: 480px) {
    .welcome-popup-content {
        padding: 24px 20px;
        margin: 0 16px;
    }
    .welcome-popup-icon {
        width: 60px;
        height: 60px;
    }
    .welcome-popup-icon i {
        font-size: 28px;
    }
    .welcome-popup-content h3 {
        font-size: 1.2rem;
    }
    .welcome-popup-features li {
        font-size: 0.8rem;
        padding: 8px 0;
    }
    .welcome-popup-buttons button {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* ============================================ */
/* Toast Messages */
/* ============================================ */

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastSlideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.toast-message {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: toastSlideUp 0.3s ease;
}

.toast-success {
    background: #10b981;
    color: white;
}

.toast-error {
    background: #ef4444;
    color: white;
}

.toast-info {
    background: #3b82f6;
    color: white;
}

/* ============================================ */
/* Follow System */
/* ============================================ */

.follow-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.followers-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
}

.followers-count i {
    font-size: 16px;
    color: var(--primary);
}

.followers-number {
    font-weight: 600;
    color: var(--dark);
}

.follow-button {
    background: #ff7800;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.follow-button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.follow-button.following {
    background: #e0e0e0;
    color: var(--dark);
}

.follow-button.following:hover {
    background: #d0d0d0;
}

/* ============================================ */
/* Online Status */
/* ============================================ */

.online-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-dot.offline {
    background: #9ca3af;
}

/* ============================================ */
/* Comments System */
/* ============================================ */

.comments-container {
    margin-top: 24px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.comments-title {
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-container {
    margin-bottom: 24px;
}

.comment-form-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 12px;
}

.comment-form-container textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.comment-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.comment-date {
    font-size: 11px;
    color: var(--gray-light);
}

.comment-text {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 8px;
    word-break: break-word;
}

.comment-footer {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reply-btn {
    background: none;
    border: none;
    font-size: 11px;
    color: var(--gray);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 16px;
    transition: background 0.2s;
}

.delete-comment-btn {
    position: absolute;
    top: 12px;
    right: 0;
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
}

.replies-container {
    margin-left: 48px;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #f0f0f0;
}

.reply-form {
    margin-top: 8px;
    margin-left: 48px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 12px;
}

.reply-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 8px;
}

.reply-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    font-size: 13px;
}

/* ============================================ */
/* Like Button */
/* ============================================ */

.like-container {
    display: inline-flex;
    align-items: center;
}

.like-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #666;
}

.like-button.liked {
    background: #ff4d4d;
    color: white;
}

.like-button.liked i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.like-count {
    font-weight: 600;
}

/* ============================================ */
/* Interações Section */
/* ============================================ */

.interacoes-section {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.share-button {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray);
    transition: all 0.2s;
}

/* ============================================ */
/* Botões do Vendedor */
/* ============================================ */

.btn-message-store {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    width: 100%;
}

.btn-message-store:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ============================================ */
/* Notificações */
/* ============================================ */

#notificationsModal {
    align-items: center;
    justify-content: center;
}

#notificationsModal .modal-content {
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}

#notificationsModal .notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    background: white;
}

#notificationsModal .notifications-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#notificationsModal .notifications-header .mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

#notificationsModal .notifications-header .mark-all-read:hover {
    background: #f0f0f0;
}

#notificationsModal .close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
    background: white;
}

#notificationsModal .close:hover {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    #notificationsModal .modal-content {
        width: 95%;
        max-height: 85vh;
        margin: 0 auto;
        position: relative;
        top: auto;
        transform: none;
    }
    #notificationsModal .close {
        right: 8px;
        top: 8px;
    }
}

/* ============================================ */
/* Ícone de Notificações no Navbar */
/* ============================================ */

.notifications-icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
}

.notifications-icon-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 0 0 2px white;
}

.nav-menu li#notificationsNavItem {
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav-menu li#notificationsNavItem {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .nav-menu li#notificationsNavItem {
        display: block;
    }
}

/* ============================================ */
/* Media Queries - Responsividade Geral */
/* ============================================ */

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .header-top {
        width: auto;
        position: static;
        transform: none;
    }
    .logo-container {
        position: static;
        transform: none;
    }
    .header-search {
        max-width: 400px;
    }
    .logo-container h1 {
        display: block;
    }
    .categorias-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 16px;
    }
    .categoria-card {
        padding: 16px;
    }
    .categoria-icon {
        font-size: 2rem;
    }
    .categoria-card span {
        font-size: 0.85rem;
    }
    .anuncios-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .anuncios-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .anuncio-imagens {
        height: 180px;
    }
    .desktop-only {
        display: block;
    }
    .desktop-nav {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    .drawer-menu,
    .drawer-overlay {
        display: none;
    }
}

@media (min-width: 1024px) {
    .slider-container {
        height: 400px;
        max-width: 100%;
    }
    .anuncios-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    .anuncio-imagens {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .desktop-nav {
        display: none;
    }
    .logo-container h1 {
        font-size: 0.9rem;
    }
    .interacoes-section {
        flex-direction: column;
        gap: 8px;
    }
    .like-button,
    .share-button {
        width: 100%;
        justify-content: center;
    }
    .reply-form {
        margin-left: 0;
    }
    .replies-container {
        margin-left: 20px;
    }
    .header-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 180px;
    }
    .slide-caption h3 {
        font-size: 1rem;
    }
    .slide-caption p {
        font-size: 0.7rem;
    }
    .anuncios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .anuncio-imagens {
        height: 140px;
    }
}

@media screen and (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ============================================ */
/* Suporte para safe area (notch) */
/* ============================================ */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    body {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
    .drawer-menu {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .drawer-header {
        padding-top: max(20px, env(safe-area-inset-top));
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
    font-size: 0.9rem;
    grid-column: 1 / -1;
}