@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; /* Laranja bem suave */
    --coupon-text: #c2410c; /* Laranja queimado para leitura */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg); color: var(--text); }

/* 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: 1200px; 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: 50px; height: 50px; 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; }

/* Grid de Produtos */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; 
    max-width: 1400px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

/* Card Premium */
.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; }
.card:hover { transform: translateY(-8px); }

/* Selo da Loja no Card */
.store-logo-badge { position: absolute; top: 15px; right: 15px; z-index: 10; }
.store-logo-badge img { width: 35px; height: 35px; border-radius: 8px; background: white; padding: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); object-fit: contain; }

/* Imagem do Produto */
.product-image-container { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; background: white; padding: 15px; }
.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; }

/* Preços */
.price-container { margin-bottom: 20px; display: flex; flex-direction: column; position: relative; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; }
.price-old { color: #9ca3af; text-decoration: line-through; font-size: 12px; }
.price-new { color: var(--text); font-size: 20px; font-weight: 800; margin-top: 2px; }

/* --- DESIGN DO CUPOM MODERNO (Refinado) --- */
.grid-coupon-badge {
    background: var(--coupon-bg);
    border-radius: 6px;
    padding: 4px 6px;
    text-align: right;
    border-left: 2px solid #fb923c; /* Detalhe lateral elegante */
}

.grid-coupon-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: var(--coupon-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}

.grid-coupon-code {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--coupon-text);
    font-family: 'Inter', sans-serif;
}

/* --- CUPOM NA PÁGINA DE PRODUTO (Menos robusto) --- */
.coupon-box {
    background: var(--coupon-bg);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border: 1px solid #ffedd5;
}

.btn-copy {
    background: #ea580c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover { background: #c2410c; transform: scale(1.05); }

/* Botão de Oferta */
.btn-offer { background: var(--primary); color: white; text-align: center; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; }

/* Responsividade */
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 650px) { 
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; } 
    .product-image-container { height: 160px; }
    .price-new { font-size: 18px; }
    .grid-coupon-code { font-size: 10px; }
}