/**
 * static/css/vitrine_layout.css
 * Inteligência Visual Responsiva, Grid 3x3 e Regras Mobile UX 1x1
 */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f5f5f5; color: #333; margin: 0; padding: 15px; }
.container { max-width: 1200px; margin: 0 auto; }

/* Cabeçalho Responsivo */
.header { display: flex; flex-direction: column; background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; gap: 15px; }
@media(min-width: 768px) { .header { flex-direction: row; justify-content: space-between; align-items: center; } }
.header h1 { margin: 0; font-size: 24px; color: #ee4d2d; }

/* GRID 3x3: Força rigorosamente 3 colunas em desktops */
.grid-ofertas { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 20px 0; }
@media(min-width: 992px) { .grid-ofertas { grid-template-columns: repeat(3, 1fr); } }

/* Estrutura do Card de Ofertas */
.card-produto { background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); overflow: hidden; padding: 15px; display: flex; flex-direction: column; border: 1px solid #eee; box-sizing: border-box; }
.info-container { display: flex; flex-direction: column; margin-bottom: 15px; }
.header-card { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 11px; color: #888; font-weight: bold; text-transform: uppercase; }
.titulo-produto { font-size: 15px; font-weight: bold; margin: 0 0 8px 0; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; color: #222; }
.preco-box { font-size: 18px; color: #ee4d2d; font-weight: bold; margin-bottom: 10px; }

/* Bloco Multimídia e Botão de Ação */
.video-container { width: 100%; height: 380px; background: #000; border-radius: 8px; overflow: hidden; margin-top: auto; margin-bottom: 10px; }
.video-player { width: 100%; height: 100%; object-fit: cover; }
.btn-comprar { display: block; text-align: center; background: linear-gradient(90deg, #ff5722, #ee4d2d); color: #fff; text-decoration: none; padding: 12px; border-radius: 8px; font-weight: bold; font-size: 15px; transition: transform 0.2s; margin-top: 5px; }
.btn-comprar:hover { transform: scale(1.02); }

/* PAGINAÇÃO MOBILE UX (1x1) */
.paginacao { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px; background: #fff; border-radius: 8px; border: 1px solid #eee; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.paginacao a { background: #fff; color: #333; padding: 10px 16px; border-radius: 6px; text-decoration: none; font-weight: bold; border: 1px solid #ddd; font-size: 14px; min-width: 80px; text-align: center; }
.paginacao a.active { background: #ee4d2d; color: #fff; border-color: #ee4d2d; }
.page-num { display: none; }

/* REGRAS DESKTOP: Centraliza os botões e volta a exibir os números */
@media(min-width: 768px) {
    .paginacao { justify-content: center; }
    .page-num { display: inline-block; }
    .paginacao a { padding: 6px 12px; min-width: auto; }
}

/* Abas de IA */
.tabs-buttons { display: flex; gap: 2px; margin-bottom: 10px; border-bottom: 2px solid #ddd; padding-bottom: 5px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.tabs-buttons::-webkit-scrollbar { display: none; }
.tab-btn { background: none; border: none; font-size: 12px; font-weight: bold; padding: 6px 10px; cursor: pointer; color: #555; }
.footer { text-align: center; margin-top: 50px; padding: 20px; color: #888; font-size: 11px; border-top: 1px solid #ddd; }
