@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --primary: #2563eb;
    --secondary: #10b981;
    --dark: #1e293b;
    --bg: #f3f4f6;
    --white: #ffffff;
    --text: #1f2937;
    --coupon-bg: #fff7ed;
    --coupon-text: #c2410c;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { 
    background-color: var(--bg); 
    color: var(--text); 
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar { background-color: var(--dark); padding: 12px 20px; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.header-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo-wrapper { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-circle { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary); background: white; object-fit: contain; padding: 3px; }
.brand-name { color: white; font-weight: 800; font-size: 1.2rem; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-item { color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.nav-icon { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--primary); background: white; object-fit: contain; padding: 2px; }

/* Grid de Produtos Unificado */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; 
    max-width: 1400px; 
    margin: 30px auto; 
    padding: 0 20px;
    flex: 1; 
}

.card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: relative; display: flex; flex-direction: column; transition: transform 0.3s; width: 100%; }
.card:hover { transform: translateY(-8px); }

/* Logo da Loja */
.store-logo-badge { position: absolute; top: 10px; right: 10px; z-index: 10; }
.store-logo-badge img { width: 42px; height: 42px; border-radius: 8px; background: white; padding: 5px; object-fit: contain; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

.product-image-container { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; background: white; padding: 12px; }
.product-image { max-width: 100%; max-height: 100%; object-fit: contain; }

.card-content { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.product-title { font-size: 14px; font-weight: 600; height: 40px; overflow: hidden; margin-bottom: 12px; line-height: 1.4; }

/* SEÇÃO DE PREÇOS */
.price-container { margin-bottom: 15px; display: flex; flex-direction: column; }
.price-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    width: 100%; 
    gap: 5px;
}
.price-details { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.price-old { color: #9ca3af; text-decoration: line-through; font-size: 11px; }
.price-new { color: var(--text); font-size: 18px; font-weight: 800; white-space: nowrap; }

/* NOVO DESIGN DE CUPOM TIPO TICKET (MODIFICAÇÃO PEDIDA) */
.grid-coupon-badge {
    background: #ffedd5;
    border: 2px dashed #fb923c;
    border-radius: 8px;
    padding: 4px 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    flex-shrink: 0;
}

/* Efeito de recorte lateral do ticket */
.grid-coupon-badge::before,
.grid-coupon-badge::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.grid-coupon-badge::before { left: -7px; border-right: 2px dashed #fb923c; }
.grid-coupon-badge::after { right: -7px; border-left: 2px dashed #fb923c; }

.grid-coupon-label { display: block; font-size: 8px; font-weight: 800; color: #c2410c; text-transform: uppercase; line-height: 1; }
.grid-coupon-code { display: block; font-size: 10px; font-weight: 900; color: #78350f; margin-top: 2px; }

.btn-offer { background: var(--primary); color: white; text-align: center; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 13px; margin-top: auto; }

/* Estilo para produto.php */
.img-principal { max-width: 100%; max-height: 400px; object-fit: contain; border-radius: 15px; }

/* Rodapé */
.main-footer { background-color: var(--dark); color: #cbd5e1; padding: 60px 20px 30px; margin-top: 50px; }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-notice { font-size: 13px; line-height: 1.6; color: #94a3b8; }
.footer-social-links { display: flex; flex-direction: column; gap: 15px; }
.social-tag { display: flex; align-items: center; gap: 12px; background: #334155; padding: 12px; border-radius: 10px; text-decoration: none; color: white; font-size: 14px; font-weight: 600; }
.social-tag img { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--primary); background: white; padding: 2px; }
.footer-bottom { border-top: 1px solid #334155; margin-top: 50px; padding-top: 25px; text-align: center; font-size: 12px; color: #64748b; }

/* Responsividade */
@media (max-width: 1100px) { 
    .product-grid { grid-template-columns: repeat(3, 1fr); } 
    /* Ajuste leve para tablets */
    .product-image-container { height: 200px; }
}

@media (max-width: 768px) { 
    .brand-name, .nav-text { display: none; } 
    .nav-links { gap: 25px; } 
    .img-principal { max-height: 220px; }
    .store-logo-badge img { width: 38px; height: 38px; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-logo { justify-content: center; }
    .social-tag { justify-content: center; }
}

@media (max-width: 650px) { 
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 10px; } 
    /* Importante: No celular (2 colunas), a imagem volta para o original 
       para caber os dois produtos lado a lado sem rolar demais a tela */
    .product-image-container { height: 170px; padding: 8px; }
    
    .price-new { font-size: 17px; } 
    .grid-coupon-badge { padding: 3px 5px; }
    .grid-coupon-code { font-size: 9px; }
}