* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #111111;
    color: #fff;
    overflow-x: hidden;
}

/* ============================================
   HEADER (estático → flutuante ao rolar)
   ============================================ */
.main-header {
    position: static;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1d1d1d 0%, #0c0c0c 100%);
    border-bottom: 2px solid rgb(255, 217, 0);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* Quando rola a página → fixo + menor */
.main-header.scrolled {
    position: fixed;
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 10px;
    position: relative;
    transition: padding 0.3s ease;
}

.main-header.scrolled .header-top {
    padding: 10px 20px 6px;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 180px;
    height: auto;
    transition: max-width 0.3s ease;
}

.main-header.scrolled .logo {
    max-width: 130px;
}

/* ============================================
   CANAIS DENTRO DO HEADER
   ============================================ */
.header-channels {
    padding: 0 20px 14px;
    transition: padding 0.3s ease;
}

.main-header.scrolled .header-channels {
    padding: 0 20px 8px;
}

.header-channels-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.channels-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.main-header.scrolled .channel-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
}

.channel-btn i { font-size: 1rem; }

.main-header.scrolled .channel-btn i { font-size: 0.85rem; }

.channel-btn.whatsapp { background: linear-gradient(135deg, #25D366, #1FA85A); }
.channel-btn.whatsapp:hover { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); transform: translateY(-2px); }
.channel-btn.telegram { background: linear-gradient(135deg, #4581e9, #1584eb); }
.channel-btn.telegram:hover { box-shadow: 0 4px 20px rgba(69, 129, 233, 0.4); transform: translateY(-2px); }
.channel-btn.discord { background: linear-gradient(135deg, #574599, #6950fa); }
.channel-btn.discord:hover { box-shadow: 0 4px 20px rgba(105, 80, 250, 0.4); transform: translateY(-2px); }
.channel-btn.instagram { background: linear-gradient(135deg, #833AB4, #E1306C, #F77737); }
.channel-btn.instagram:hover { box-shadow: 0 4px 20px rgba(225, 48, 108, 0.4); transform: translateY(-2px); }

/* ============================================
   HAMBURGER BUTTON (Mobile)
   ============================================ */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffd900;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.main-header.scrolled .hamburger span {
    margin: 3px 0;
}

.hamburger:hover span { background-color: #ffed4e; }

/* ============================================
   SIDEBAR MENU (Mobile)
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    border-right: 2px solid rgba(255, 217, 0, 0.3);
}

.sidebar.open { left: 0; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 217, 0, 0.2);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.sidebar-close:hover { color: #ffd900; }

.sidebar-list {
    list-style: none;
    padding: 12px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover { background: rgba(255, 255, 255, 0.05); }

.sidebar-link i {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
}

.sidebar-link.whatsapp:hover { border-left-color: #25D366; color: #25D366; }
.sidebar-link.telegram:hover { border-left-color: #4581e9; color: #4581e9; }
.sidebar-link.discord:hover { border-left-color: #6950fa; color: #6950fa; }
.sidebar-link.instagram:hover { border-left-color: #E1306C; color: #E1306C; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.open { display: block; }

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.container-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    background: linear-gradient(135deg, #2e2e2e 0%, #1a1a1a 100%);
    min-height: 100vh;
    width: 100%;
}

/* ============================================
   TOP 3 MAIS BARATOS
   ============================================ */
.top3-section {
    margin-bottom: 0;
}

.top3-header {
    text-align: center;
    margin-bottom: 20px;
}

.top3-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top3-header h2 i {
    -webkit-text-fill-color: #ff4444;
    margin-right: 8px;
}

/* Top 3 Grid: 3 colunas no PC */
.top3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Top 3 Card */
.top3-card {
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 217, 0, 0.1);
}

.top3-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 217, 0, 0.3);
}

.top3-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top3-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.top3-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top3-nome {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top3-info .preco {
    color: #e6cf00;
    font-weight: bold;
    font-size: 1.15rem;
}

.top3-info .cupom-text {
    font-size: 0.8rem;
    color: #94a3b8;
}

.top3-info .cupom-text i {
    margin-right: 4px;
    color: #ffd700;
}

.top3-info .card-buttons {
    margin-top: 8px;
}

/* ============================================
   DIVISÓRIA AMARELA
   ============================================ */
.yellow-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd900, transparent);
    margin: 30px 0;
    border-radius: 2px;
}

/* ============================================
   SEÇÃO DE INSTRUÇÕES
   ============================================ */
.instructions {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.instructions h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instructions p {
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   POSTAGENS - Grid Responsivo (estilo Amazon)
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    width: 100%;
}

.card-produto {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-produto.card-produto-clicavel { cursor: pointer; }

.card-produto:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 217, 0, 0.15);
}

.card-produto img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #111;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.card-info h3 {
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loja-label {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loja-label i {
    font-size: 0.65rem;
    margin-right: 2px;
}

.top3-info .loja-label {
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.top3-info .loja-label i {
    font-size: 0.7rem;
}

.card-info .preco {
    color: #e6cf00;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 4px;
}

.card-info .cupom-text {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.btn-oferta {
    margin-top: auto;
    padding: 8px 10px;
    background: linear-gradient(135deg, #c89900, #ddb917);
    color: #000;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: filter 0.2s;
}

.btn-oferta:hover { filter: brightness(1.15); }

.card-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.card-buttons .btn-oferta { flex: 1; }

/* ============================================
   COMPARTILHAMENTO
   ============================================ */
.share-wrapper { position: relative; }

.btn-share {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-share:hover { background: #444; }

.share-menu {
    position: absolute;
    right: 0;
    top: 44px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
    padding: 6px;
    display: none;
    z-index: 20;
    min-width: 160px;
}

.share-wrapper.open .share-menu { display: block; }

.share-option {
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    text-align: left;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.share-option:hover { background: #333; }

/* ============================================
   PAGINAÇÃO
   ============================================ */
.paginacao {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.paginacao button {
    background: #2a2a2a;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.paginacao button:hover:not(:disabled) { background: #3a3a3a; }

.paginacao button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.paginacao-numeros {
    display: flex;
    align-items: center;
    gap: 4px;
}

.paginacao-num {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.paginacao-num.active {
    background: linear-gradient(135deg, #c89900, #ddb917);
    color: #000;
}

.paginacao-num:hover:not(.active) {
    background: #3a3a3a;
}

.paginacao-dots {
    color: #666;
    font-size: 0.85rem;
    padding: 0 4px;
    user-select: none;
}

/* ============================================
   BUSCA
   ============================================ */
.ofertas-search {
    max-width: 600px;
    margin: 0 auto 24px auto;
}

#search-ofertas {
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#search-ofertas::placeholder { color: rgba(255, 255, 255, 0.6); }

#search-ofertas:focus {
    border-color: rgb(250, 187, 12);
    box-shadow: 0 0 0 1px rgba(234, 210, 102, 0.8);
    background: rgba(0, 0, 0, 0.7);
}

/* ============================================
   LOADER
   ============================================ */
.loader-ofertas {
    position: fixed;
    inset: 0;
    background: rgba(9, 10, 25, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.loader-ofertas .loader-content { text-align: center; }

.loader-ofertas .loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #ffcc00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

.loader-ofertas p { margin: 0; font-size: 1rem; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.admin-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    margin-left: 4px;
}

.admin-link i {
    font-size: 1.1rem;
}

.admin-link:hover {
    color: #ffd900;
}

.swing-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1rem 0 1.5rem;
}

.swing-logo {
    display: block;
    max-width: 130px;
    height: auto;
    transform-origin: top center;
    animation: swingSlow 5s ease-in-out infinite;
}

@keyframes swingSlow {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.swing-logo:hover { animation: swingStrong 0.6s ease-in-out; }

@keyframes swingStrong {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(7deg); }
    40% { transform: rotate(-6deg); }
    60% { transform: rotate(4deg); }
    80% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

/* ============================================
   PÁGINA OFERTA INDIVIDUAL
   ============================================ */
.pagina-oferta-body {
    background: linear-gradient(135deg, #2e2e2e 0%, #1a1a1a 100%);
    min-height: 100vh;
    color: #fff;
}

.pagina-oferta-header {
    background: linear-gradient(135deg, #1d1d1d 0%, #0c0c0c 100%);
    border-bottom: 2px solid rgb(255, 217, 0);
    text-align: center;
}

.pagina-oferta-logo-link { display: inline-block; }

.pagina-oferta-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 16px 32px;
}

.pagina-oferta-card {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pagina-oferta-card img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.pagina-oferta-card h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 16px 0 8px;
    line-height: 1.35;
}

.pagina-oferta-card .preco {
    color: #e6cf00;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.pagina-oferta-card .cupom-text { font-size: 0.95rem; margin-bottom: 16px; }
.pagina-oferta-card .card-buttons { margin-top: 0; }

.pagina-oferta-card .btn-ver-mais-ofertas {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: background 0.2s, color 0.2s;
}

.pagina-oferta-card .btn-ver-mais-ofertas:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.loader-oferta-inline {
    text-align: center;
    padding: 48px 16px;
    color: #cbd5e1;
}

.loader-oferta-inline .loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #ffcc00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

/* ============================================
   SEM OFERTAS
   ============================================ */
.sem-ofertas {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVO - TABLET (max-width: 992px)
   ============================================ */
@media (max-width: 992px) {
    .channels-label { font-size: 0.8rem; }
    .header-channels-inner { gap: 8px; }
    .channel-btn { padding: 7px 14px; font-size: 0.8rem; }
    .instructions h2 { font-size: 1.8rem; }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
    }
}

/* ============================================
   RESPONSIVO - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .hamburger { display: block; }

    .header-channels { display: none; }

    .header-top { padding: 14px 20px 8px; }
    .main-header.scrolled .header-top { padding: 8px 20px 4px; }

    .logo { max-width: 140px; }
    .main-header.scrolled .logo { max-width: 110px; }

    /* Canais: scroll horizontal */
    .header-channels { padding: 0 12px 10px; }
    .main-header.scrolled .header-channels { padding: 0 12px 6px; }

    .channels-label {
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .header-channels-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .header-channels-inner::-webkit-scrollbar { display: none; }

    .channel-btn {
        padding: 7px 12px;
        font-size: 0.78rem;
        border-radius: 50px;
        flex-shrink: 0;
    }

    .main-header.scrolled .channel-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .channel-btn i { font-size: 0.95rem; }
    .main-header.scrolled .channel-btn i { font-size: 0.8rem; }

    /* Container */
    .container-main {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Top 3: 2 colunas no mobile */
    .top3-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .top3-img { height: 160px; }
    .top3-info { padding: 12px; }
    .top3-nome { font-size: 0.85rem; }
    .top3-info .preco { font-size: 1rem; }
    .top3-header h2 { font-size: 1.4rem; }

    /* Grid: 2 colunas estilo Amazon */
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .card-produto { padding: 8px; border-radius: 8px; }
    .card-produto img { border-radius: 6px; }
    .card-info h3 { font-size: 0.78rem; -webkit-line-clamp: 2; }
    .card-info .loja-label { font-size: 0.62rem; }
    .card-info .preco { font-size: 0.9rem; }
    .card-info .cupom-text { font-size: 0.7rem; }
    .btn-oferta { padding: 6px 8px; font-size: 0.75rem; }
    .btn-share { width: 34px; min-width: 34px; height: 34px; font-size: 0.8rem; }
    .card-buttons { gap: 4px; }

    .instructions h2 { font-size: 1.5rem; }
    .instructions p { font-size: 0.85rem; }

    .share-menu { right: auto; left: 0; }

    /* Paginação mobile */
    .paginacao { gap: 6px; }
    .paginacao-num { width: 32px; height: 32px; font-size: 0.8rem; }
}

/* ============================================
   RESPONSIVO - MOBILE PEQUENO (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .channel-btn span { display: none; }
    .channels-label { display: none; }

    .channel-btn { padding: 7px 12px; }
    .channel-btn i { font-size: 1.1rem; }
    .main-header.scrolled .channel-btn { padding: 5px 10px; }
    .main-header.scrolled .channel-btn i { font-size: 0.95rem; }

    .container-main {
        padding-left: 8px;
        padding-right: 8px;
    }

    .instructions h2 { font-size: 1.3rem; }
    .instructions p { font-size: 0.8rem; }
    .instructions { margin-bottom: 20px; }

    .yellow-divider { margin: 20px 0; }

    .top3-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .top3-badge { font-size: 0.65rem; padding: 3px 10px; }
    .top3-info { padding: 12px; }
    .top3-nome { font-size: 0.85rem; }
    .top3-info .preco { font-size: 1rem; }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .card-produto { padding: 6px; }
    .card-info h3 { font-size: 0.72rem; }
    .card-info .loja-label { font-size: 0.58rem; }
    .card-info .preco { font-size: 0.82rem; }
}

/* ============================================
   RESPONSIVO - DESKTOP GRANDE (min-width: 1200px)
   ============================================ */
@media (min-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ============================================
   PWA - BANNER DE INSTALAÇÃO
   ============================================ */
.pwa-install-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: linear-gradient(135deg, #1d1d1d 0%, #0c0c0c 100%);
    border-top: 2px solid rgb(255, 217, 0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    padding: 10px 12px;
}

.pwa-install-banner[hidden] { display: none; }

.pwa-install-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-install-banner-icon {
    color: #ffd900;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.pwa-install-banner-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pwa-install-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.pwa-install-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
}

.pwa-install-btn {
    flex-shrink: 0;
    border: none;
    padding: 10px 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, #c89900, #ddb917);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: filter 0.2s;
}

.pwa-install-btn:hover { filter: brightness(1.15); }

.pwa-install-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.2s;
}

.pwa-install-close:hover { color: #fff; }

body.pwa-banner-visible { padding-bottom: 60px; }

/* Banner no desktop: card centralizado na base da tela */
@media (min-width: 769px) {
    .pwa-install-banner {
        left: 0;
        right: 0;
        margin: 0 auto;
        bottom: 16px;
        width: 340px;
        border: 1px solid rgba(255, 217, 0, 0.2);
        border-top: 2px solid rgb(255, 217, 0);
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
        padding: 12px 14px;
    }

    body.pwa-banner-visible { padding-bottom: 0; }
}

/* ============================================
   PWA - MODAL DE INSTALAÇÃO
   ============================================ */
.pwa-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pwa-modal[hidden] { display: none; }

.pwa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.pwa-modal-dialog {
    position: relative;
    background: linear-gradient(160deg, #242424 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 217, 0, 0.25);
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    padding: 24px 20px 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow-y: auto;
}

.pwa-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.pwa-modal-close:hover { color: #fff; }

.pwa-modal-icon {
    font-size: 2rem;
    color: #ffd900;
    margin-bottom: 10px;
}

.pwa-modal-dialog h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.pwa-modal-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 16px;
    line-height: 1.5;
}

.pwa-modal-steps { margin-bottom: 4px; }

.pwa-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pwa-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.pwa-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c89900, #ddb917);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.pwa-step-txt {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pwa-step-txt i {
    color: #ffd900;
    margin-top: 3px;
    flex-shrink: 0;
}

.pwa-unsupported {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    text-align: left;
}

.pwa-modal-cta {
    width: 100%;
    margin-top: 6px;
}

