:root {
    --altura-topo: 50px;
	--altura-banner: 0px; /* quando o banner está visível, muda para 60px */
}

.produto-header {
    position: sticky;
	/*top: var(--altura-topo);*/
	top: calc(var(--altura-banner) + var(--altura-topo));
    /*top: 0;*/
    z-index: 1000;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}




.produto-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 6px;
    background: #f9f9f9;
}

.produto-info {
    flex: 1;
}

.produto-nome {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.2;
}

.produto-detalhe {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.produto-voltar {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}





.melhor-oferta {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.melhor-oferta-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loja-logo {
    max-height: 32px;
    object-fit: contain;
}

.badge-melhor {
    background: #2ecc71;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.preco-final {
    font-size: 26px;
    font-weight: bold;
    color: #2ecc71;
    margin-top: 10px;
}

.preco-final span {
    font-size: 14px;
    color: #666;
}

.economia {
    font-size: 14px;
    color: #27ae60;
    margin-top: 6px;
}

.cupom {
    font-size: 13px;
    margin-top: 6px;
    color: #444;
}

.btn-oferta {
    display: block;
    margin-top: 12px;
    padding: 14px;
    text-align: center;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.btn-oferta:hover {
    background: #005ecb;
}

.atualizacao {
    font-size: 11px;
    text-align: center;
    color: #888;
    margin-top: 8px;
}








.outras-lojas {
    background: #ffffff;
    border-radius: 12px;
    margin: 10px;
    padding: 12px;
}

.titulo-outras {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.loja-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.loja-item:first-child {
    border-top: none;
}

.loja-mini-logo {
    max-height: 36px;
    min-height: 36px;
    width: auto;
    object-fit: contain;
}


.loja-info {
    flex: 1;
}

.loja-preco {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.loja-cupom {
    font-size: 12px;
    color: #666;
}

.btn-loja {
    border: none;
    outline: none;
    background: #f1f1f1;   /* cinza claro */
    color: #333;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* remove contorno padrão */
.btn-loja:focus,
.btn-loja:active {
    outline: none;
    box-shadow: none;
}

/* hover sutil */
.btn-loja:hover {
    background: #e1e1e1;
}





.icone-copiar {
    cursor: pointer;
    margin-left: 6px;
    font-size: 18px;      /* tamanho do ícone */
    user-select: none;

    /* garante clique */
    pointer-events: auto;
    position: relative;
    z-index: 10;
	
	vertical-align: middle;
	padding: 4px;
}


.icone-copiar:hover {
    opacity: 0.7;
}


/* Label flutuante */
.cupom-copiado {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: #fff;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 9999;
}


.loja-condicao {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}




/* ================================
   TOPO OFERTAS DO DIA
================================ */

.top-ofertas {
    margin: 24px 0;
}

.top-ofertas-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.top-ofertas-header p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.top-ofertas-lista {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.oferta-card {
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    position: relative;
}

.oferta-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
}

.oferta-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
}

.oferta-nome {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.oferta-preco {
    font-size: 18px;
    font-weight: bold;
    color: #16a34a;
}

.oferta-cupom {
    font-size: 12px;
    color: #444;
    margin: 4px 0;
    min-height: 18px; /* garante alinhamento */
}


.btn-top-oferta {
    width: 100%;
    border: none;
    outline: none;
    background: #f1f1f1;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;

}

.btn-top-oferta:hover {
    background: #e1e1e1;
}

.oferta-loja img {
    max-height: 22px;
    margin-top: 8px;
}








/* ================================
   BUSCA PRODUTO - HOME
================================ */

.busca-pet {
    background: #f4f8fb; /* azul bem suave */
    border-radius: 14px;
    padding: 16px;
    margin: 20px 10px;
}

.busca-pet-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.busca-pet-header p {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.busca-pet-form .input-group {
    display: flex;
}

.busca-pet-form input {
    border-radius: 8px 0 0 8px;
    border: 1px solid #ddd;
}

.btn-buscar {
    border: none;
    background: #2563eb; /* azul moderno */
    color: #fff;
    padding: 0 18px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    cursor: pointer;
}

.btn-buscar:hover {
    background: #1e4fd6;
}

.busca-exemplo {
    font-size: 12px;
    color: #777;
    margin-top: 6px;
}





/* ================================
   MAIS PESQUISADOS DA SEMANA
================================ */

.mais-pesquisados {
    background: #fff7ed; /* bege/laranja bem suave */
    border-radius: 14px;
    padding: 16px;
    margin: 20px 10px;
}

.mais-pesquisados-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.mais-pesquisados-header p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.mais-pesquisados-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pesquisado-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: background 0.2s ease, transform 0.1s ease;
}

.pesquisado-item:hover {
    background: #fff3e0;
    transform: translateY(-1px);
}

.pesquisado-badge {
    background: #0ea5e9;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
}



/* ================================
   CAMPANHAS DO MOMENTO
================================ */

.campanhas {
    background: #f8fafc;
    padding: 18px 12px 22px;
    margin: 24px 0;
}

.campanhas-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.campanhas-header p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.campanhas-carousel {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.campanhas-img {
    max-height: 180px;
    object-fit: cover;
}

/* suaviza botões do carousel */
.campanhas .carousel-control-prev-icon,
.campanhas .carousel-control-next-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}



/* ================================
   ÁREA DE CUPONS EXCLUSIVOS
================================ */

.area-cupons {
    background: #f9fafb;
    padding: 20px 12px;
    margin: 24px 0;
}

.area-cupons-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.area-cupons-header p {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

/* grid responsivo */
.cupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.cupom-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cupom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.cupom-logo img {
    max-height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
}

.cupom-info {
    font-size: 13px;
    color: #444;
}

.cupom-qtd {
    display: inline-block;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}






/* ================================
   ÁREA DE PRODUTOS POR MARCA
================================ */

.area-marcas {
    background: #f9fafb;
    padding: 20px 12px;
    margin: 24px 0;
}

.area-marcas-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.area-marcas-header p {
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

/* grid */
.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.marca-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.marca-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.marca-logo img {
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.marca-info {
    font-size: 13px;
}

.marca-qtd {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}




/* ==========================
   NAVBAR PETCUPOM
========================== */

.navbar-petcupom {
    background: #2563eb; /* azul confiável */
    padding: 8px 3px;
	top: var(--altura-banner);
    position: sticky;
    z-index: 9998;
}

.petcupom-logo {
    font-weight: 700;
    font-size: 17px;
    color: #fff !important;
}

.navbar-petcupom .nav-link {
    color: #e5e7eb !important;
    font-size: 14px;
}

.navbar-petcupom .nav-link:hover {
    color: #fff !important;
}

/* filtro de pet */
.pet-filter {
    display: flex;
    gap: 6px;
    background: #ffffff;
    padding: 3px;
    border-radius: 999px;
}

.pet-btn {
    border-radius: 999px;
    font-size: 13px;
    padding: 6px 9px;
    color: #2563eb;
    background: transparent;
}

.btn-check:checked + .pet-btn {
    background: #2563eb;
    color: #fff;
}



/* ==========================
   HERO
========================== */

.hero-petcupom {
    position: relative;
    /*margin-top: 60px;*/ /* altura da navbar */
	margin-top: calc(var(--altura-banner) + 0px);
}

.hero-petcupom img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.hero-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;

    width: 100%;
    max-width: 90%; /* evita quebrar em telas pequenas */
    color: #fff;
}


.hero-text h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-text p {
    font-size: 14px;
    opacity: 0.95;
}










.secao-variacoes-produto {
    padding: 24px 16px;
	background: #f7f9fc;
}

.secao-variacoes-produto h1 {
    font-size: 1.9rem;
    margin-bottom: 8px;
}

.secao-variacoes-produto .subtitulo {
    font-size: 1rem;
    color: #555;
    margin-bottom: 24px;
}

.lista-variacoes {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.variacao-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.variacao-item h2 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

.tamanho-produto {
    font-weight: 600;
    color: #2d6cdf;
}

.descricao {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.btn-ver-precos {
    display: inline-block;
    font-weight: 600;
    color: #2d6cdf;
    text-decoration: none;
}

.btn-ver-precos:hover {
    text-decoration: underline;
}

.info-confianca {
    margin-top: 32px;
    font-size: 0.9rem;
    color: #666;
}


.cards-variacoes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

/* CARD */
.card-variacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: all 0.2s ease;
	
	background: #fff;
    border: 1.5px solid #dfe3eb;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.card-variacao:hover {
    border-color: #2d6cdf;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transform: translateY(-2px);
	
}

/* CONTEÚDO */
.card-conteudo h2 {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.card-tamanho {
    display: inline-block;
    font-weight: 700;
    color: #2d6cdf;
    margin-bottom: 6px;
}

.card-conteudo p {
    font-size: 0.9rem;
    color: #555;
}

/* CTA */
.card-cta {
    font-weight: 700;
    color: #2d6cdf;
    white-space: nowrap;
}

/* MOBILE */
@media (max-width: 768px) {
    .card-variacao {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-cta {
        align-self: flex-end;
    }
}








/* ===== CUPONS – RESET E BASE ===== */
.coupon-card,
.coupon-card * {
  box-sizing: border-box;
  font-family: inherit;
}

/* ===== CARD PRINCIPAL ===== */
.coupon-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 16px;

  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;

  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ===== BADGE DE DESCONTO ===== */
.coupon-badge {
  flex-shrink: 0;

  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;

  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;

  padding: 16px 14px;
  border-radius: 12px;

  min-width: 90px;
  text-align: center;
}

/* ===== CONTEÚDO ===== */
.coupon-content {
  flex: 1;
}

.coupon-content h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.coupon-content p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* ===== AÇÃO ===== */
.coupon-action {
  flex-shrink: 0;
  text-align: right;
}

.coupon-action small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

/* ===== BOTÃO ===== */
.btn-copy {
  appearance: none;
  border: none !important;

  background: #00bcd4;
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;

  padding: 10px 18px;
  border-radius: 8px;

  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-copy:hover {
  background: #00a3ba;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .coupon-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .coupon-badge {
    width: 100%;
  }

  .coupon-action {
    text-align: left;
  }

  .btn-copy {
    width: 100%;
  }
}





/* ===============================
   MELHOR OFERTA (card principal)
   =============================== */
.melhor-oferta {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    /*border: 2px solid #ffc857;*/
	border: 2px solid #3b82f6;

    position: relative;
    overflow: hidden;
}

.melhor-oferta-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.loja-logo {
    height: 46px;
    object-fit: contain;
}

.badge-melhor {
    background: linear-gradient(90deg, #ffb300, #ff9d00);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
}

/* Preço principal */
.preco-final {
    font-size: 34px;
    font-weight: 800;
    color: #2b9348;
    margin-bottom: 10px;
}

.preco-final span {
    font-size: 16px;
    font-weight: 400;
    color: #777;
}

/* Economia */
.economia {
    font-size: 16px;
    background: #e8f6ec;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2b9348;
}

/* Cupom */
.cupom {
    font-size: 15px;
    margin-bottom: 18px;
    color: #444;
}

.cupom strong {
    background: #ffe8a6;
    padding: 3px 7px;
    border-radius: 6px;
}

/* Botão da melhor oferta */
.btn-oferta {
    background: #ff7a00;
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    font-size: 18px;
    width: 100%;
    font-weight: 700;
    transition: 0.25s ease;
}

.btn-oferta:hover {
    background: #ff8f2a;
    transform: translateY(-2px);
}

/* Atualização */
.atualizacao {
    margin-top: 14px;
    font-size: 13px;
    color: #555;
}

.melhor-condicao {
    background: #fff8d6;
    border-left: 4px solid #ffcc4d;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 14px;
    color: #444;
}




/* ============================
   TÍTULO DA PÁGINA DE PRODUTO
   ============================ */
.top-ofertas-header-produto {
    margin: 20px 12px 10px 12px;
}

.top-ofertas-header-produto h2 {
    font-size: 18px;       /* menor como no index */
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.top-ofertas-header-produto p {
    font-size: 13px;
    color: #666;
    margin: 0;
}







.card-home {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.05);
}

.card-home h2 {
    margin: 0 0 10px;
}

.comparativo-bloco .linha-comp {
    margin-bottom: 5px;
}

.grafico-barras {
    margin-top: 15px;
}

.grafico-barras .barra {
    height: 10px;
    background: #ffd54f;
    border-radius: 5px;
    margin-bottom: 8px;
    width: 0;
    transition: width .6s ease;
}

.btn-ver-mais {
    display: inline-block;
    margin-top: 12px;
    font-weight: bold;
    color: #ff6f00;
}




.comp-img {
    text-align: center;
    margin-bottom: 10px;
}

.comp-img img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}



.oferta-info .btn-top-oferta {
    display: inline-block;
    margin: 0 auto;
}








.petcupom-logo {
    font-weight: 800;
    font-size: 20px;
    color: #ffffff !important; /* combinando com a pata */
}





/* === ALERTA FLUTUANTE DE CUPOM === */
.alert-cupom {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) scale(0.7);
    background: #22c55e;
    color: #fff;
    padding: 14px 22px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    z-index: 99999;
    transition: all .25s ease-out;
}

.alert-cupom.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}










/* ===========================================
   AJUSTES PARA CELULAR - NAVBAR
   =========================================== */
@media (max-width: 430px) {

    /* Logo + filtros + menu na mesma linha */
    .topo-menu {
        padding: 8px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    /* Logo menor */
    .logo-petcupom img {
        height: 26px !important;
    }

    /* Grupo Todos / Cão / Gato */
    .filtros-pet {
        flex: 1 !important; 
        display: flex !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    /* Botões de filtro */
    .filtro-btn {
        font-size: 13px !important;
        padding: 4px 10px !important;
    }

    /* Botão do menu */
    .btn-menu {
        padding: 6px !important;
        margin-left: auto !important;
        transform: translateX(4px);
    }
}
