/* classificados/assets/css/style.css */

/* Importa fontes do Google Fonts (se necessário, ou use as do site principal) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --primary-color: #007bff; /* Azul padrão */
    --secondary-color: #6c757d; /* Cinza */
    --success-color: #28a745; /* Verde */
    --danger-color: #dc3545; /* Vermelho */
    --warning-color: #ffc107; /* Amarelo */
    --info-color: #17a2b8; /* Azul claro */
    --dark-bg: #1a1a2e; /* Fundo escuro */
    --light-text: #e0e0e0; /* Texto claro */
    --card-bg: #2a2a4a; /* Fundo de card */
    --border-color: #3a3a5a; /* Cor da borda */
    --header-bg: #1a1a2e;
    --footer-bg: #1a1a2e;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    text-decoration: none;
}

.btn-success {
    background-color: var(--success-color);
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
    text-decoration: none;
}

.btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
    text-decoration: none;
}

/* Header (copiado e adaptado do seu header.php) */
.site-header {
    background-color: var(--header-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 50px; /* Ajuste conforme a logo */
}

.main-nav a {
    color: var(--light-text);
    margin-left: 25px;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.main-nav .btn-assine {
    margin-left: 30px;
    background-color: #ff0000; /* Cor do YouTube */
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.main-nav .btn-assine:hover {
    background-color: #cc0000;
}

.burger {
    display: none; /* Escondido por padrão em desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    transition: all 0.3s ease;
}

/* FOOTER */
.site-footer {
    margin-top: 25px;
    background: #060a12;
    color: var(--color-white);
    padding: 40px 0 20px;
    
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 0px;
}

.footer-title {
    font-family: var(--font-title);
    font-size: 15px;
    margin-bottom: 10px;
}

.footer-sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-sponsors img {
    max-height: 93px;
    max-width: 360px;
    object-fit: contain;
}

.footer-links,
.footer-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.footer-links li a {
    color: #dde1f0;
    text-decoration: none;
    font-size: 14px;
}

.footer-links li a:hover {
    color: var(--color-orange);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
    font-size: 12px;
    color: #a7b0c8;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ================================================
   FOOTER CONTATO COM ÍCONES + REDES SOCIAIS
================================================ */

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #dde1f0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.footer-contact-link {
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-link:hover {
    color: #8ea4ff;
}

.footer-contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #8ea4ff;
}

.footer-contact-icon--youtube {
    color: #ff4444;
}

/* BotÃµes de redes sociais */
.footer-socials-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: transform 0.18s, opacity 0.18s;
    border: 1.5px solid transparent;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.88;
}

.footer-social-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Instagram â€” gradiente roxo/rosa */
.footer-social-btn--instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
    border-color: transparent;
}

/* TikTok â€” preto com borda sutil */
.footer-social-btn--tiktok {
    background: #010101;
    color: #fff;
    border-color: rgba(255,255,255,0.15);
}


/* ================================================
   FOOTER â€” BOTÃƒO YOUTUBE (igual ao Instagram e TikTok)
================================================ */
.footer-social-btn--youtube {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.12);
    border: 1.5px solid rgba(255, 0, 0, 0.35);
    color: #ff4444;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.footer-social-btn--youtube:hover {
    background: rgba(255, 0, 0, 0.22);
    border-color: #ff4444;
    color: #fff;
    transform: translateY(-2px);
}

.footer-social-btn--youtube svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}


/* Main Content Area */
.site-content {
    padding-top: 40px;
    min-height: calc(100vh - 200px); /* Ajuste para o footer */
}

/* Flash Messages */
.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
    color: #fff;
}

.flash-message--success {
    background-color: var(--success-color);
}

.flash-message--error {
    background-color: var(--danger-color);
}

.flash-message--warning {
    background-color: var(--warning-color);
    color: #333;
}

.flash-message--info {
    background-color: var(--info-color);
}

/* HERO Section para Classificados */
.hero-classificados {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/classificados/assets/img/hero_bg_classificados.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    border-radius: 10px;
}

.hero-classificados h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-classificados p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Search and Filter Area */
.search-filter-area {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-input {
    flex-grow: 1;
    padding-left: 40px; /* Espaço para o ícone da lupa */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16a6.471 6.471 0 003.73-1.29l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 20px;
}

.filters-container {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end; /* Alinha os botões na parte inferior */
}

.filters-form .form-group {
    margin-bottom: 0; /* Remove margin-bottom padrão */
}

.filters-form .btn {
    width: 100%;
}

/* Cards de Produtos (inspirado no layout de torneios) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 3 colunas, responsivo */
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.product-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Proporção 4:3 para a imagem */
    overflow: hidden;
    background-color: #3a3a5a; /* Placeholder */
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 13px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light-text);
    line-height: 1.3;
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #b0b8d6;
}

.product-card-condition {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.condition-novo { background-color: var(--success-color); }
.condition-seminovo { background-color: var(--info-color); }
.condition-usado { background-color: var(--warning-color); color: #333; }

.product-card-price {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: auto; /* Empurra para baixo */
    margin-bottom: 15px;
}

.product-card-actions {
    margin-top: 15px;
}

.product-card-actions .btn {
    width: 100%;
    font-size: 15px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--light-text);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #3a3a5a;
    color: var(--light-text);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none; /* Remove estilo padrão do select */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e0e0e0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: #b0b8d6;
    padding: 50px 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Altura do header */
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        border-top: 1px solid var(--border-color);
        padding-bottom: 15px;
        z-index: 1000;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        margin: 10px 15px;
        text-align: center;
    }

    .main-nav a.btn-assine {
        margin-top: 20px;
    }

    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer .footer-social {
        align-items: center;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }

    .hero-classificados h1 {
        font-size: 36px;
    }

    .hero-classificados p {
        font-size: 16px;
    }

    .search-form {
        flex-direction: column;
    }

    .filters-form {
        grid-template-columns: 1fr;
    }
}


.hero-inner {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 16px;
    color: #c3c9e6;
    max-width: 480px;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-highlight {
    background: #22284a;
    border-radius: 18px;
    padding: 20px 24px;
    max-width: 360px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}

.hero-highlight-badge {
    position: absolute;
    top: -14px;
    left: 20px;
    background: var(--success-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-highlight h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
}

.hero-highlight p {
    font-size: 14px;
    color: #ced3f1;
}

/* Filtros em card */
.filters-section {
    background: #101325;
    padding: 20px 0 10px;
}

.filters-card {
    background: #181b33;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.04);
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.filters-form-horizontal {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filters-row {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) repeat(4, minmax(0, 1.1fr)) auto;
    gap: 12px;
    align-items: flex-end;
}

.filter-block label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #c3c9e6;
    margin-bottom: 6px;
}

.filter-block--search .search-input-wrapper {
    position: relative;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.7;
}

.search-input-wrapper .search-input {
    padding-left: 36px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-self: stretch;
    justify-content: flex-end;
}

.filter-actions .btn {
    white-space: nowrap;
}

/* Botão outline para limpar filtros */
.btn.btn-outline {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--light-text);
}

.btn.btn-outline:hover {
    background: rgba(255,255,255,0.06);
}

/* Auth pages */
.auth-page {
    padding: 40px 0;
}

.auth-card {
    max-width: 560px;
    margin: 0 auto;
    background: #181b33;
    border-radius: 16px;
    padding: 30px 26px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.04);
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.btn-full {
    width: 100%;
}

.auth-switch, .auth-terms {
    text-align: center;
    font-size: 14px;
    margin-top: 12px;
    color: #c3c9e6;
}

.auth-switch a, .auth-terms a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Flash messages */
.flash-message {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.flash-message--success {
    background: rgba(40, 167, 69, 0.12);
    color: #9ce6b3;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.flash-message--error {
    background: rgba(220, 53, 69, 0.12);
    color: #f5a1aa;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.flash-message--warning {
    background: rgba(255, 193, 7, 0.12);
    color: #ffdd8a;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-highlight {
        max-width: 100%;
    }
    .filters-row {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
    }
    .filter-block--search {
        grid-column: 1 / -1;
    }
    .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .filters-row {
        grid-template-columns: 1fr;
    }
}

/* User Dashboard / Meus Anúncios */
.user-dashboard {
    padding: 40px 0;
}

.user-dashboard .page-title {
    margin-bottom: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header p {
    font-size: 16px;
    color: #c3c9e6;
    margin: 0;
}

.dashboard-header .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
}

.my-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card--user-dashboard {
    background: #181b33;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.product-card--user-dashboard .product-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    overflow: hidden;
    background-color: #0f172a;
}

.product-card--user-dashboard .product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card--user-dashboard .product-card-image:hover img {
    transform: scale(1.05);
}

.product-card--user-dashboard .product-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.product-status--active {
    background-color: var(--success-color);
}

.product-status--inactive {
    background-color: var(--danger-color);
}

.product-status--pending {
    background-color: var(--warning-color);
}

.product-card--user-dashboard .product-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card--user-dashboard .product-card-title {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 46px; /* Para manter altura consistente */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card--user-dashboard .product-card-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.product-card--user-dashboard .product-card-category,
.product-card--user-dashboard .product-card-condition {
    background-color: rgba(255,255,255,0.08);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: #e0e7ff;
}

.product-card--user-dashboard .product-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto; /* Empurra para baixo */
    margin-bottom: 15px;
}

.product-card--user-dashboard .product-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.product-card--user-dashboard .product-card-actions .btn {
    flex-grow: 1;
    min-width: 80px;
}

/* No results card para dashboard */
.no-results-card {
    background-color: #181b33;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.no-results-card h3 {
    font-size: 22px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.no-results-card p {
    font-size: 16px;
    color: #c3c9e6;
    margin-bottom: 20px;
}

.no-results-card .btn {
    padding: 12px 25px;
    font-size: 16px;
}

/* Responsividade para o dashboard */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .my-products-grid {
        grid-template-columns: 1fr;
    }
    .product-card--user-dashboard .product-card-actions .btn {
        width: 100%;
        flex-grow: unset;
    }
}
/* Form de anúncio */
.ad-form .form-group label {
    font-weight: 600;
    font-size: 13px;
    color: #e5e7eb;
    margin-bottom: 6px;
}

.ad-form .form-text {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Campo de pesquisa no dashboard */
.search-bar-dashboard {
    margin-bottom: 30px;
}

.search-bar-dashboard .form-control {
    width: 100%;
    max-width: 500px; /* Limita a largura para não ficar muito grande */
    margin: 0 auto;
    display: block;
    padding: 12px 20px;
    border-radius: 999px; /* Para um visual mais arredondado */
    border: 1px solid var(--border-color);
    background-color: #111827;
    color: var(--light-text);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar-dashboard .form-control::placeholder {
    color: #6b7280;
}

.search-bar-dashboard .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
    outline: none;
}

/* Ajuste para o grid de produtos no dashboard */
.my-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Garante que o card oculto não ocupe espaço */
.product-card--user-dashboard[style*="display: none"] {
    display: none !important;
}

/* Campo de busca em Meus Anúncios */
.search-my-products-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-my-products-wrapper .form-control {
    padding-left: 40px; /* Espaço para o ícone */
    border-radius: 8px;
    background-color: #1f2937; /* Cor de fundo mais escura */
    border: 1px solid #374151;
    color: #e5e7eb;
}

.search-my-products-wrapper .form-control::placeholder {
    color: #9ca3af;
}

.search-my-products-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 20px;
    height: 20px;
}

/* Estilos para o formulário de edição de anúncio */
.ad-form .form-section {
    background-color: #181b33;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

.ad-form .form-section h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--light-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.ad-form .form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.ad-form .form-group .required {
    color: var(--danger-color);
    margin-left: 4px;
}

.ad-form .form-control,
.ad-form .form-control-file {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #374151;
    background-color: #1f2937;
    color: #e5e7eb;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ad-form .form-control:focus,
.ad-form .form-control-file:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
    outline: none;
}

.ad-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.ad-form .form-text {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
}

.ad-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Fotos existentes */
.current-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.photo-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Proporção 1:1 */
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: #0f172a;
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--danger-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.remove-photo-btn:hover {
    background-color: #dc3545;
}

.remove-photo-btn svg {
    width: 16px;
    height: 16px;
}

.no-photos-message {
    grid-column: 1 / -1; /* Ocupa toda a largura do grid */
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
}

.ad-form .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.ad-form .btn-lg {
    padding: 12px 25px;
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 600px) {
    .ad-form .form-row {
        grid-template-columns: 1fr;
    }
    .current-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .ad-form .form-actions {
        flex-direction: column;
    }
    .ad-form .btn-lg {
        width: 100%;
    }
}


/* ... (seu CSS existente) ... */

/* Estilos para a página de detalhes do produto (anuncio.php) */
.product-detail-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
}

@media (min-width: 992px) {
    .product-detail-page {
        grid-template-columns: 2fr 1fr; /* Galeria maior, info menor */
    }
}

.product-gallery {
    background-color: #181b33;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.04);
}

.product-placeholder-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    max-height: 400px;
    background-color: #0f172a;
    padding: 20px;
}

/* Swiper Gallery */
.swiper-container {
    width: 100%;
    height: auto;
}

.product-swiper-main {
    width: 100%;
    height: 400px; /* Altura fixa para a imagem principal */
    margin-bottom: 10px;
}

.product-swiper-main .swiper-slide {
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.product-swiper-main .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta a imagem para caber sem cortar */
    border-radius: 8px;
}

.product-swiper-thumbs {
    height: 80px; /* Altura fixa para as miniaturas */
    box-sizing: border-box;
    padding: 10px 0;
}

.product-swiper-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary-color);
}

.product-swiper-thumbs .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Swiper Navigation */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.7);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 20px;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}


.product-info {
    background-color: #181b33;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.04);
}

.product-title {
    font-size: 2.2em;
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-price {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 15px 0;
}

.product-meta span {
    display: flex;
    align-items: center;
    font-size: 0.95em;
    color: #c3c9e6;
}

.product-meta span i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 1.1em;
}

.product-seller-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.product-seller-info h3 {
    font-size: 1.4em;
    color: var(--light-text);
    margin-bottom: 15px;
}

.product-seller-info p {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: #c3c9e6;
    margin-bottom: 8px;
}

.product-seller-info p i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.1em;
}

.product-actions {
    margin-bottom: 30px;
}

.btn-whatsapp {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: 600;
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    border-color: #1DA851;
}

.btn-whatsapp i {
    font-size: 1.4em;
}

.product-description h3 {
    font-size: 1.4em;
    color: var(--light-text);
    margin-bottom: 15px;
}

.product-description p {
    font-size: 1em;
    color: #c3c9e6;
    line-height: 1.6;
}

/* Responsividade */
@media (max-width: 768px) {
    .product-detail-page {
        padding: 20px 0;
    }
    .product-gallery, .product-info {
        padding: 20px;
    }
    .product-title {
        font-size: 1.8em;
    }
    .product-price {
        font-size: 2em;
    }
    .product-meta {
        flex-direction: column;
        gap: 10px;
    }
    .product-swiper-main {
        height: 300px;
    }
    .product-swiper-thumbs {
        height: 60px;
    }
}

/* ... (seu CSS existente) ... */

/* Flash message container para posicionamento */
.flash-message-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Garante que fique acima de outros elementos */
    display: flex;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.flash-message-container .flash-message {
    max-width: 600px; /* Limita a largura da mensagem */
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Evita scroll horizontal indevido */
body {
    overflow-x: hidden;
}

/* Layout da página de anúncio */
.classificados-main {
    padding: 40px 0 60px;
}

.anuncio-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

/* Galeria */
.anuncio-gallery {
    background: #0b1220;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.anuncio-gallery-main {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #020617;
}

.anuncio-gallery-main img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.anuncio-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.anuncio-thumb {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 70px;
    height: 70px;
}

.anuncio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detalhes */
.anuncio-details {
    background: #020617;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.anuncio-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.anuncio-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.anuncio-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
}

.anuncio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.anuncio-meta-item {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

.anuncio-attributes {
    margin: 16px 0 20px;
}

.anuncio-attr {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
}

.anuncio-attr dt {
    color: #9ca3af;
}

.anuncio-attr dd {
    margin: 0;
    font-weight: 500;
    color: #e5e7eb;
}

.anuncio-seller h2 {
    font-size: 16px;
    margin-bottom: 4px;
}

.anuncio-seller-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.anuncio-seller-location {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Descrição e bloco 'Sobre' */
.anuncio-description-section,
.anuncio-about {
    margin-top: 30px;
    background: #020617;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.anuncio-description-section h2,
.anuncio-about h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Responsivo */
@media (max-width: 900px) {
    .anuncio-layout {
        grid-template-columns: 1fr;
    }
}


/* Anuncio.php - Detalhes do Anúncio */
.anuncio-wrapper {
    padding: 30px 0;
}

.anuncio-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Coluna da galeria maior que a dos detalhes */
    gap: 30px;
}

.anuncio-gallery-col {
    position: relative;
}

.anuncio-gallery {
    background-color: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.gallery-main-image {
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    position: relative;
    background-color: #1a202c; /* Fundo para quando não há imagem */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-main-image.no-image img {
    object-fit: contain; /* Para o placeholder */
    opacity: 0.5;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background-color: #0f172a;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Para rolagem suave em iOS */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumbnails img:hover {
    transform: scale(1.05);
}

.gallery-thumbnails img.active {
    border-color: var(--primary-color);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.gallery-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-nav-btn.prev-btn {
    left: 15px;
}

.gallery-nav-btn.next-btn {
    right: 15px;
}

.gallery-nav-btn svg {
    width: 24px;
    height: 24px;
}

.anuncio-details-col {
    background-color: #0f172a;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.anuncio-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.2;
}

.anuncio-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.anuncio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.anuncio-meta-item {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: rgba(148, 163, 184, 0.1);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.anuncio-meta-item i {
    font-size: 12px;
}

.anuncio-attributes {
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-attr {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 8px;
}

.anuncio-attr dt {
    color: #9ca3af;
    font-weight: 400;
}

.anuncio-attr dd {
    margin: 0;
    font-weight: 500;
    color: #e5e7eb;
    text-align: right;
}

.anuncio-seller {
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-seller h2 {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.anuncio-seller-name {
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.anuncio-seller-location {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background-color: #25D366; /* Cor do WhatsApp */
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

.anuncio-description-section {
    margin-top: 30px;
    background: #0f172a;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.anuncio-description-section h2 {
    font-size: 20px;
    color: var(--light-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #c3c9e6;
}

/* Responsividade */
@media (max-width: 992px) {
    .anuncio-layout {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }
    .anuncio-gallery-col {
        order: 1; /* Galeria primeiro */
    }
    .anuncio-details-col {
        order: 2; /* Detalhes depois */
    }
    .anuncio-description-section {
        order: 3; /* Descrição por último */
    }
}

@media (max-width: 600px) {
    .anuncio-title {
        font-size: 24px;
    }
    .anuncio-price {
        font-size: 28px;
    }
    .anuncio-price-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .anuncio-meta {
        width: 100%;
        justify-content: flex-start;
    }
    .gallery-nav-btn {
        width: 35px;
        height: 35px;
        padding: 8px;
    }
    .gallery-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}


/* ... (seu CSS existente) ... */

/* Estilos para a página de detalhes do anúncio (anuncio.php) */
.anuncio-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Coluna de imagens maior que a de detalhes */
    gap: 30px;
    align-items: start; /* Alinha o topo das colunas */
}

.anuncio-left-column {
    position: sticky; /* Mantém a coluna de imagens visível ao rolar */
    top: 100px; /* Ajuste conforme a altura do seu header */
}

.anuncio-gallery {
    background: #020617;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.main-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 para a imagem principal */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garante que a imagem inteira seja visível */
    transition: opacity 0.3s ease;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.gallery-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.thumbnail-image {
    width: 100%;
    height: 130px; /* Altura fixa para miniaturas */
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail-image:hover {
    transform: scale(1.05);
}

.thumbnail-image.active {
    border-color: var(--primary-color);
}

.anuncio-right-column {
    background: #020617;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.anuncio-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-title {
    font-size: 28px;
    color: var(--light-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.anuncio-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.anuncio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #9ca3af;
}

.anuncio-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.anuncio-meta i {
    color: var(--primary-color);
}

/* Badges coloridos */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.badge-success {
    background-color: #28a745; /* Verde */
}

.badge-info {
    background-color: #17a2b8; /* Azul claro */
}

.badge-warning {
    background-color: #ffc107; /* Amarelo */
    color: #343a40; /* Texto escuro para contraste */
}

.badge-secondary {
    background-color: #6c757d; /* Cinza padrão */
}

.anuncio-seller {
    background: #0f172a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.anuncio-seller h2 {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anuncio-seller h2 i {
    color: var(--primary-color);
}

.anuncio-seller-name {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 5px;
}

.anuncio-seller-location {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.anuncio-seller-location i {
    color: #9ca3af;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1da851;
}

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

.anuncio-description-section,
.anuncio-about {
    background: #0f172a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.anuncio-description-section h2,
.anuncio-about h2 {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anuncio-description-section h2 i,
.anuncio-about h2 i {
    color: var(--primary-color);
}

.anuncio-description-section p {
    font-size: 15px;
    color: #c3c9e6;
    line-height: 1.6;
}

.anuncio-attributes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.anuncio-attributes dt, .anuncio-attributes dd {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.anuncio-attributes dt {
    color: #9ca3af;
    width: 100px; /* Ajuste conforme necessário */
    margin-right: 5px;
}

.anuncio-attributes dd {
    color: #e5e7eb;
    font-weight: 500;
}

/* Seção de Produtos Relacionados */
.related-products-section {
    margin-top: 50px;
}

.related-products-section .section-title {
    font-size: 24px;
    color: var(--light-text);
    margin-bottom: 30px;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Cards menores */
    gap: 25px;
}

.product-card--related {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.product-card--related:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.product-card--related .product-card-image {
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    position: relative;
    overflow: hidden;
    background-color: #111827;
}

.product-card--related .product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card--related .product-card-content {
    padding: 15px;
}

.product-card--related .product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 8px;
    height: 40px; /* Altura fixa para o título */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card--related .product-card-meta {
    margin-bottom: 10px;
}

.product-card--related .product-card-condition {
    font-size: 11px;
    padding: 3px 8px;
}

.product-card--related .product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}


/* Responsividade */
@media (max-width: 900px) {
    .anuncio-layout {
        grid-template-columns: 1fr;
    }
    .anuncio-left-column {
        position: static; /* Remove sticky em telas menores */
        top: auto;
    }
    .anuncio-title {
        font-size: 24px;
    }
    .anuncio-price {
        font-size: 28px;
    }
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 600px) {
    .anuncio-gallery, .anuncio-right-column,
    .anuncio-description-section, .anuncio-about, .anuncio-seller {
        padding: 15px;
    }
    .anuncio-title {
        font-size: 22px;
    }
    .anuncio-price {
        font-size: 26px;
    }
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

.anuncio-details-card {
    background: #020617;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.anuncio-details-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.anuncio-details-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.anuncio-details-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 14px;
}

.anuncio-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    font-size: 13px;
}

.anuncio-details-item .label {
    display: block;
    color: #9ca3af;
    margin-bottom: 2px;
}

.anuncio-details-item .value {
    color: #e5e7eb;
    font-weight: 500;
}

@media (max-width: 600px) {
    .anuncio-details-grid {
        grid-template-columns: 1fr;
    }
}

.anuncio-related {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(15,23,42,0.9);
}

.anuncio-related-header h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.anuncio-related-header p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: #020617;
    border-radius: 14px;
    border: 1px solid rgba(30, 64, 175, 0.4);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 14px 35px rgba(15,23,42,0.8);
}

.related-card-image {
    position: relative;
    background: #020617;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-condition-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.related-card-body {
    padding: 12px 12px 14px;
}

.related-title {
    font-size: 14px;
    margin: 0 0 6px;
    color: #e5e7eb;
}

.related-price {
    font-size: 15px;
    font-weight: 700;
    color: #fbbf24;
}


/* --- Estilos para a página de Detalhes do Anúncio (anuncio.php) --- */

.classifieds-container {
    padding-top: 30px;
    padding-bottom: 50px;
}

.anuncio-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.anuncio-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Coluna da galeria maior que a de detalhes */
    gap: 30px;
}

/* Coluna da Galeria */
.anuncio-gallery-col {
    position: sticky; /* Faz a galeria "grudar" ao rolar */
    top: 100px; /* Distância do topo */
    height: fit-content; /* Ajusta a altura ao conteúdo */
    align-self: start; /* Alinha ao início do grid */
}

.anuncio-gallery {
    background: #0f172a;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    position: relative;
}

.gallery-main-image {
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para não cortar a imagem */
    object-position: center;
}

.gallery-main-image.no-image img {
    object-fit: contain;
    opacity: 0.5;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Permite rolar as miniaturas se houver muitas */
    padding-bottom: 5px; /* Espaço para a barra de rolagem */
    -webkit-overflow-scrolling: touch; /* Rolagem suave em iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #4a5568 #1a202c; /* Firefox */
}

/* Estilo da barra de rolagem para Webkit (Chrome, Safari) */
.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #1a202c;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: #4a5568;
    border-radius: 10px;
    border: 1px solid #1a202c;
}


.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.gallery-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.gallery-nav-btn.prev-btn {
    left: 10px;
}

.gallery-nav-btn.next-btn {
    right: 10px;
}

/* Coluna de Detalhes */
.anuncio-details-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.anuncio-details-block {
    background: #0f172a;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.anuncio-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 10px;
    line-height: 1.2;
}

.anuncio-price-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.anuncio-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
}

.anuncio-condition-badge {
    padding: 6px 12px;
    border-radius: 999px; /* Pill shape */
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;
}

/* Cores dos badges */
.badge-success {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.5);
}
.badge-info {
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.5);
}
.badge-warning {
    background: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.5);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.5);
}
.badge-secondary {
    background: rgba(107, 114, 128, 0.16);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.anuncio-seller {
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-seller h2 {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.anuncio-seller p {
    margin-bottom: 8px;
    color: #e5e7eb;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anuncio-seller p i {
    color: var(--primary-color);
    font-size: 16px;
}

.anuncio-seller-name {
    font-weight: 600;
}

.anuncio-seller-location {
    font-size: 14px;
    color: #9ca3af;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background-color: #25D366; /* Cor do WhatsApp */
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-top: 15px;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
}

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

/* Detalhes do Anúncio (novo bloco) */
.anuncio-details-card {
    background: #020617;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 20px;
}

.anuncio-details-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-details-header h2 {
    font-size: 18px;
    color: var(--light-text);
    margin: 0;
}

.anuncio-details-icon {
    color: var(--primary-color);
    font-size: 20px;
}

.anuncio-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.anuncio-details-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.anuncio-details-item .label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 500;
}

.anuncio-details-item .value {
    font-size: 15px;
    color: #e5e7eb;
    font-weight: 600;
}


/* Seção de Descrição */
.anuncio-description-section {
    background: #0f172a;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.anuncio-description-section h2 {
    font-size: 20px;
    color: var(--light-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #c3c9e6;
}

/* Seção de Produtos Relacionados */
.related-products-section {
    margin-top: 30px;
}

.related-products-section h2 {
    font-size: 24px;
    color: var(--light-text);
    margin-bottom: 20px;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.product-card--related {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.product-card--related:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-card--related .product-card-image {
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    position: relative;
    overflow: hidden;
    background-color: #111827;
}

.product-card--related .product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card--related .product-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card--related .product-card-meta {
    margin-bottom: 10px;
}

.product-card--related .product-card-condition {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-card--related .product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 8px;
    height: 40px; /* Altura fixa para o título */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card--related .product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto; /* Empurra o preço para baixo */
}


/* Responsividade */
@media (max-width: 992px) {
    .anuncio-layout {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }
    .anuncio-gallery-col {
        position: static; /* Remove sticky em telas menores */
        top: auto;
        order: 1; /* Galeria primeiro */
    }
    .anuncio-details-col {
        order: 2; /* Detalhes depois */
    }
    .anuncio-description-section {
        order: 3; /* Descrição por último */
    }
    .related-products-section {
        order: 4;
    }
    .anuncio-title {
        font-size: 28px;
    }
    .anuncio-price {
        font-size: 32px;
    }
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 600px) {
    .classifieds-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .anuncio-gallery, .anuncio-details-block,
    .anuncio-description-section, .anuncio-seller, .anuncio-details-card {
        padding: 15px;
    }
    .anuncio-title {
        font-size: 24px;
    }
    .anuncio-price {
        font-size: 28px;
    }
    .anuncio-price-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    .gallery-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}



/* --- Estilos para a página de Anúncio (anuncio.php) --- */

.classifieds-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.anuncio-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Galeria 2/3, Detalhes 1/3 */
    gap: 30px;
}

/* Coluna da Galeria */
.anuncio-gallery-col {
    position: sticky; /* Mantém a galeria visível ao rolar */
    top: 100px; /* Ajuste conforme a altura do seu header */
    height: fit-content; /* Altura se ajusta ao conteúdo */
}

.anuncio-gallery {
    background: #0f172a;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.gallery-main-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    margin-bottom: 15px;
}

.gallery-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background-color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para não cortar a imagem */
    object-position: center;
    transition: opacity 0.3s ease;
}

.gallery-main-image.no-image img {
    opacity: 0.5;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Permite rolar as miniaturas se houver muitas */
    padding-bottom: 5px; /* Espaço para a barra de rolagem */
    -webkit-overflow-scrolling: touch; /* Rolagem suave em iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #4a5568 #1a202c; /* Firefox */
}

/* Estilo da barra de rolagem para Webkit (Chrome, Safari) */
.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #1a202c;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: #4a5568;
    border-radius: 10px;
    border: 1px solid #1a202c;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.gallery-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.gallery-nav-btn.prev-btn {
    left: 10px;
}

.gallery-nav-btn.next-btn {
    right: 10px;
}

/* Coluna de Detalhes */
.anuncio-details-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.anuncio-details-block {
    background: #0f172a;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.anuncio-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 10px;
    line-height: 1.2;
}

.anuncio-price-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.anuncio-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
}

.anuncio-condition-badge {
    padding: 6px 12px;
    border-radius: 999px; /* Pill shape */
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;
}

/* Cores dos badges */
.badge-success {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.5);
}
.badge-info {
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.5);
}
.badge-warning {
    background: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.5);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.5);
}
.badge-secondary {
    background: rgba(107, 114, 128, 0.16);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.anuncio-seller {
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-seller h2 {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.anuncio-seller p {
    margin-bottom: 8px;
    color: #e5e7eb;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anuncio-seller p i {
    color: var(--primary-color);
    font-size: 16px;
}

.anuncio-seller-name {
    font-weight: 600;
}

.anuncio-seller-location {
    font-size: 14px;
    color: #9ca3af;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background-color: #25D366; /* Cor do WhatsApp */
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-top: 15px;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
}

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

/* Detalhes do Anúncio (novo bloco) */
.anuncio-details-card {
    background: #020617;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 20px;
}

.anuncio-details-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-details-header h2 {
    font-size: 18px;
    color: var(--light-text);
    margin: 0;
}

.anuncio-details-icon {
    color: var(--primary-color);
    font-size: 20px;
}

.anuncio-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.anuncio-details-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.anuncio-details-item .label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 500;
}

.anuncio-details-item .value {
    font-size: 15px;
    color: #e5e7eb;
    font-weight: 600;
}


/* Seção de Descrição */
.anuncio-description-section {
    background: #0f172a;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.anuncio-description-section h2 {
    font-size: 20px;
    color: var(--light-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.anuncio-description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #c3c9e6;
}

/* Seção de Produtos Relacionados */
.related-products-section {
    margin-top: 30px;
}

.section-title { /* Título geral para seções */
    font-size: 24px;
    color: var(--light-text);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.product-card--related {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.product-card--related:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-card--related .product-card-image {
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    position: relative;
    overflow: hidden;
    background-color: #111827;
}

.product-card--related .product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card--related .product-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card--related .product-card-meta {
    margin-bottom: 10px;
}

.product-card--related .product-card-condition {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-card--related .product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 8px;
    height: 40px; /* Altura fixa para o título */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card--related .product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto; /* Empurra o preço para baixo */
}


/* Responsividade */
@media (max-width: 992px) {
    .anuncio-layout {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }
    .anuncio-gallery-col {
        position: static; /* Remove sticky em telas menores */
        top: auto;
        order: 1; /* Galeria primeiro */
    }
    .anuncio-details-col {
        order: 2; /* Detalhes depois */
    }
    .anuncio-description-section {
        order: 3; /* Descrição por último */
    }
    .related-products-section {
        order: 4;
    }
    .anuncio-title {
        font-size: 28px;
    }
    .anuncio-price {
        font-size: 32px;
    }
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 600px) {
    .classifieds-container {
        padding: 0 15px;
    }
    .anuncio-gallery, .anuncio-details-block,
    .anuncio-description-section, .anuncio-seller, .anuncio-details-card {
        padding: 15px;
    }
    .anuncio-title {
        font-size: 24px;
    }
    .anuncio-price {
        font-size: 28px;
    }
    .anuncio-price-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    .gallery-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}


/* Seção de Produtos Relacionados */
.related-products-section {
    margin-top: 50px; /* Espaçamento maior para separar da descrição */
    margin-bottom: 50px;
}

.section-title { /* Título geral para seções */
    font-size: 24px;
    color: var(--light-text);
    margin-bottom: 30px; /* Mais espaço abaixo do título */
    text-align: center;
    font-weight: 700;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Cards um pouco maiores */
    gap: 25px;
}

.product-card--related {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit; /* Garante que o texto dentro do link herde a cor */
}

.product-card--related:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-card--related .product-card-image {
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    position: relative;
    overflow: hidden;
    background-color: #111827;
}

.product-card--related .product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card--related .product-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card--related .product-card-meta {
    margin-bottom: 10px;
}

.product-card--related .product-card-condition {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-card--related .product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 8px;
    height: 40px; /* Altura fixa para o título */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card--related .product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto; /* Empurra o preço para baixo */
}

/* Responsividade para produtos relacionados */
@media (max-width: 600px) {
    .related-products-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas muito pequenas */
    }
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}


/* Botao de ver lista dos produtos do vendedor */

/* Estilo para o botão "Ver todos os anúncios do vendedor" */
.btn-seller-products {
    display: inline-flex; /* Permite que o ícone e o texto fiquem lado a lado */
    align-items: center; /* Centraliza verticalmente o ícone e o texto */
    gap: 8px; /* Espaçamento entre o ícone e o texto */
    padding: 10px 20px; /* Ajuste o padding conforme o desejado */
    font-size: 1rem; /* Tamanho da fonte */
    font-weight: 600; /* Peso da fonte */
    border-radius: var(--border-radius, 8px); /* Borda arredondada, usando variável se definida */
    text-decoration: none; /* Remove sublinhado */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transições suaves */
}

.btn-seller-products svg {
    /* Estilo para o ícone SVG dentro do botão */
    fill: currentColor; /* Faz o ícone herdar a cor do texto do botão */
    width: 28px; /* Largura do ícone */
    height: 28px; /* Altura do ícone */
}

.btn-seller-products:hover {
    transform: translateY(-2px); /* Efeito sutil ao passar o mouse */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
}

/* Se você usa variáveis CSS para cores, certifique-se de que elas estejam definidas */
/* Exemplo:
:root {
    --primary-color: #007bff;
    --primary-color-dark: #0056b3;
    --text-color-light: #ffffff;
    --border-radius: 8px;
}
*/


/* Estilos para o menu hambúrguer */
.burger {
    display: none; /* Oculta o hambúrguer por padrão em telas maiores */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 1001; /* Garante que o hambúrguer esteja acima de outros elementos */
    position: relative; /* Para posicionar as barras */
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333; /* Cor das linhas do hambúrguer */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Estilos para o menu de navegação em mobile */
@media (max-width: 768px) { /* Ajuste o breakpoint conforme necessário */
    .burger {
        display: flex; /* Mostra o hambúrguer em telas menores */
        /* Ajuste a cor das barras para branco para contrastar com o fundo escuro do menu */
    }
    .burger span {
        background-color: #fff; /* Cor branca para as barras do hambúrguer */
    }

    .main-nav {
        display: none; /* Oculta o menu de navegação por padrão em mobile */
        flex-direction: column;
        position: absolute;
        top: 100px; /* Ajuste para ficar abaixo do cabeçalho */
        right: 0; /* Alinha o menu à direita, como na imagem */
        width: 100%; /* Ajuste a largura conforme a imagem */
        
        background-color: #1a1a1a; /* Fundo escuro, como na imagem */
        box-shadow: -2px 2px 5px rgba(0,0,0,0.3); /* Sombra para destacar */
        z-index: 1000;
        padding: 20px 0; /* Mais padding vertical */
        height: calc(100vh - 130px); /* Ocupa o restante da altura da tela */
        overflow-y: auto; /* Adiciona scroll se o conteúdo for muito grande */
    }

    .main-nav.active {
        display: flex; /* Mostra o menu quando a classe 'active' é adicionada */
    }

    .main-nav a {
        color: #ffffff; /* Texto branco */
        padding: 12px 25px; /* Mais padding para os itens do menu */
        text-align: left; /* Alinha o texto à esquerda */
        width: 100%;
        text-decoration: none;
        font-size: 1.1em; /* Tamanho da fonte ligeiramente maior */
        transition: background-color 0.3s ease;
    }

    .main-nav a:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Efeito hover sutil */
    }

    .main-nav a.btn-assine { /* Estilo para o botão "Anunciar Produto" ou "Cadastre-se grátis" */
        background: linear-gradient(to right, #ff8c00, #ff4500); /* Gradiente laranja */
        color: #ffffff;
        border-radius: 25px; /* Cantos arredondados */
        padding: 10px 20px;
        margin: 15px 15px; /* Margem para separar */
        text-align: center;
        display: block; /* Para ocupar a largura e centralizar o texto */
        width: auto; /* Permite que o padding e margin funcionem */
    }

    /* Estilo para o item "YOUTUBE" se ele for um botão separado */
    .main-nav a.youtube-button { /* Se você tiver um link específico para o YouTube */
        background: linear-gradient(to right, #ff8c00, #ff4500); /* Gradiente laranja */
        color: #ffffff;
        border-radius: 25px;
        padding: 10px 20px;
        margin: 15px 25px;
        text-align: center;
        display: block;
        width: auto;
    }

    /* Animação do hambúrguer para X */
    .burger.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* Ajustes para o container do cabeçalho para garantir que o hambúrguer e o logo fiquem bem posicionados */
    .site-header .container {
        display: flex;
        justify-content: space-between; /* Espaça logo e hambúrguer */
        align-items: center;
        padding: 10px 20px; /* Ajuste o padding conforme necessário */
    }
}