/* =========================================================
   HOME (index.css) — estilos da Home (LIMPO / sem duplicação)
========================================================= */

/* =========================================================
   CATEGORIAS (menu carrossel) — COMPACTO + CARD
========================================================= */

.home-cats{
  background: var(--branco);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;               /* corta nos cantos */
  padding: 8px 8px 9px;           /* compacto */
}

/* Fade lateral (mantém o seu comportamento atual) */
.cats-fade{
  position: relative;
  background: #fff !important;
  --fadeBg: #fff;
}

/* Carrossel base (usado no cats-carousel) */
.carousel{
  display:flex;
  gap: 12px;
  overflow:auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.carousel::-webkit-scrollbar{ height: 6px; }
.carousel::-webkit-scrollbar-thumb{ background:#d1d5db; border-radius: 99px; }

/* Carrossel de categorias */
.cats-carousel{
  /* comportamento */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  /* compacto */
  gap: 4px;
  padding: 2px 4px 6px;
  background: transparent;

  /* esconde scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cats-carousel::-webkit-scrollbar{ display:none; }

/* Mask/fade (mantive exatamente seu padrão) */
.cats-carousel{
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 85%,
    transparent 100%
  );
}

/* Itens */
.cat-item{
  scroll-snap-align: start;

  min-width: 72px;                /* compacto */
  padding: 6px 3px;
  gap: 4px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  border-radius: 12px;
  transition: background .12s ease;
}

.cat-item:hover{
  background: rgba(17,24,39,.04);
}

/* Ícone */
.cat-icon{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--brand);
}
.cat-icon i{ font-size: 18px; }

/* Nome */
.cat-name{
  text-align:center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.05;
}

/* Ativo */
.cat-item.isActive{
  background: rgba(117,53,175,.08);
}
.cat-item.isActive .cat-icon{
  background: rgba(117,53,175,.12);
  box-shadow: 0 8px 14px rgba(117,53,175,.10);
}
.cat-item.isActive .cat-name{
  color: var(--brand);
}

/* Barra roxa indicadora */
.cats-scrollbar{
  height: 4px;
  background: #eef0f4;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}
.cats-scrollthumb{
  height: 100%;
  width: 35%;
  background: var(--brand);
  border-radius: 999px;
  transform: translateX(0);
  transition: transform .05s linear;
}

/* =========================================================
   CABEÇALHOS / BOTÕES (Produtos, Grid/List/Search/Sort)
========================================================= */

.section{ margin-top: 14px; }

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;

  background: #fff;
  padding: 10px 10px 10px 15px;
  border-radius: 16px;
}

.section-head-center{ justify-content:center; }
.section-head-products{ justify-content: space-between; }

.section-title{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  text-align:center;
}

/* Toggle grid/list/sort/search */
.view-toggle{ display:flex; gap:8px; }

.view-btn{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;

  border-radius: 12px;
  border:1px solid var(--border);
  background:var(--card);

  cursor:pointer;

  /* Corrige cor azul no mobile (link style / focus) */
  color: var(--text) !important;
}

.view-btn i{
  font-size: 19px;
  line-height: 1;
  color: inherit !important;
}

/* ativo = roxo */
.view-btn.active{
  color: var(--brand) !important;
  border-color: rgba(117,53,175,.35);
  box-shadow: 0 10px 18px rgba(117,53,175,.12);
}

/* tamanhos responsivos */
@media (min-width: 421px){
  .view-btn{ width: 40px; height: 40px; }
  .view-btn i{ font-size: 19px; }
}
@media (max-width: 420px){
  .view-btn{ width: 44px; height: 44px; }
  .view-btn i{ font-size: 20px; }
}

/* =========================================================
   PRODUTOS — Grid / Lista
========================================================= */

.products-view.view-grid [data-view-panel="list"]{ display:none; }
.products-view.view-list [data-view-panel="grid"]{ display:none; }

/* GRID */
.products-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

/* Card grid */
.prod-card{
  background:var(--branco);
  border:1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: var(--shadow);
}

.prod-media{
  height: 160px;
  background:#f3f4f6;
}
.prod-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.prod-ph{
  height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 28px;
  color:var(--brand);
}

.prod-info{
  padding: 10px 10px 12px;
}

/* LISTA */
.products-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.prod-row{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--branco);
  border:1px solid var(--border);
  border-radius: 16px;
  padding:8px 8px;
  box-shadow: var(--shadow);
}

.prod-row-media{
  width:110px;
  height:110px;
  border-radius: 14px;
  overflow:hidden;
  background:#f3f4f6;
  flex:0 0 auto;
  margin-right:15px;
}
.prod-row-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.prod-row-info{
  flex: 1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.prod-row-go{
  color: var(--muted);
  font-size: 18px;
}

/* Tipografia */
.prod-title{
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  align-items:center;    
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(2 * 1.25em);
}


.prod-title-left{
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: left;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(2 * 1.25em);
}

.prod-rating{
  margin-top: 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 4px;
}

/* Ajustes lista */
.prod-row .prod-rating{ align-items:flex-start; }
.prod-row .prod-prices{ justify-content:flex-start; }
.prod-row .prod-installments{ text-align:left; }

.stars{
  color: #f5b301;
  font-size: 14px;
}

.prod-prices{
  margin-top: 8px;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap: 10px;
}

.price-old{
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: line-through;
}

.price-now{
  font-size: 14.5px;
  font-weight: 950;
  color: #000;
}

.prod-installments{
  margin-top: 6px;
  text-align:center;
  font-size: 11.7px;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}
.prod-installments strong{
  font-size: 11.7px;
  color: var(--text);
  font-weight: 700;
}

/* Empty */
.empty-box{
  background:var(--card);
  border:1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 16px;
  color: var(--muted);
}

/* Garantia: hidden sempre esconde */
[hidden]{ display:none !important; }

/* Responsivo */
@media (max-width: 380px){
  .products-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   SEARCH CHIP (buscando + limpar)
========================================================= */

.search-chip{
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px 12px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.search-chip__label{
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  display:flex;
  align-items:center;
  gap: 8px;
  min-width: 0;
}

.search-chip__label strong{
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.search-chip__label i{ color: var(--brand); }

/* botão vermelho (limpar) */
.search-chip__clear{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;

  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);

  font-size: 12px;
  font-weight: 900;
  color: #b91c1c;
  white-space: nowrap;
  text-decoration:none;
}
.search-chip__clear i{ color: #ef4444; }

.search-chip__clear:hover{
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.55);
}

/* =========================================================
   SHEET: Busca
========================================================= */

.search-sheet{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.search-sheet-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.search-sheet-panel{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

.search-sheet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.search-sheet-title{
  font-weight: 950;
  font-size: 14px;
  display:flex;
  align-items:center;
  gap: 8px;
}
.search-sheet-title i{ color: var(--brand); }

.search-sheet-close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.search-sheet-body{
  padding: 12px 14px 16px;
}

.search-label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  margin-bottom: 8px;
}

.search-input-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 10px;
  background: #fff;
}

.search-input-wrap > i{
  color: var(--brand);
  font-size: 16px;
}

.search-input{
  flex: 1 1 auto;
  border: none;
  outline: none;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.search-go{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--brand);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.search-go:hover{ background: var(--brandHover); }

.search-actions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}

.search-clear{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-decoration:none;
}

/* =========================================================
   SHEET: Ordenação
========================================================= */

.sort-sheet{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.sort-sheet-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.sort-sheet-panel{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

.sort-sheet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.sort-sheet-title{
  font-weight: 950;
  font-size: 14px;
  display:flex;
  align-items:center;
  gap: 8px;
}
.sort-sheet-title i{ color: var(--brand); }

.sort-sheet-close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.sort-sheet-body{
  padding: 12px 14px 16px;
}

.sort-label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  margin-bottom: 8px;
}

.sort-select-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 10px;
  background: #fff;
}

.sort-select-wrap > i{
  color: var(--brand);
  font-size: 16px;
}

.sort-select{
  flex: 1 1 auto;
  border: none;
  outline: none;
  font: inherit;
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  appearance: none;
}

.sort-apply{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--brand);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.sort-apply:hover{ background: var(--brandHover); }

.sort-hint{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

/* =========================================================
   PAGINAÇÃO
========================================================= */

.pager{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.pager-btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 12px;

  color: var(--text);
  text-decoration:none;
}

.pager-btn.isDisabled{
  opacity: .45;
  pointer-events: none;
}

.pager-info{
  font-size: 12px; 
  color: var(--muted);
  text-align:center;
  flex: 1 1 auto;
}

/* =========================================================
   SOBRE (compacto + centralizado + colorido)
========================================================= */

.about-card{
  background: var(--branco);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 12px;
}

.about-card--center{ text-align:center; }

.about-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 0;
}

.about-brand__title{
  font-weight: 950;
  font-size: 13px;
  letter-spacing: .15px;
  line-height: 1.1;
}

/*
.about-badges{
  margin-top: 8px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.about-badges--center{ justify-content:center; }

.about-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1;
}
.about-badge i{ font-size: 12px; }
*/
.about-icons{
  margin-top: 10px;
  display:flex;
  justify-content:center;
  gap: 8px;
  flex-wrap:wrap;
}

.about-ico{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow: var(--shadow);
  transition: transform .12s ease, filter .12s ease;
}
.about-ico i{ font-size: 16px; }

.about-ico:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* cores por mídia */
.about-ico--whatsapp{ background: #25D3661A; color:#25D366; }
.about-ico--instagram{ background: #E1306C1A; color:#E1306C; }
.about-ico--facebook{ background: #1877F21A; color:#1877F2; }
.about-ico--maps{ background: #EA43351A; color:#EA4335; }

.about-pay{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.about-pay__title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  font-weight: 950;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.pay-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 6px;
}
.pay-row--center{ justify-content:center; }

.pay-chip{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.pay-chip--pix{
  background: #fff;
  color: #32BCAD;
}

.pay-icon{
  display:flex;
  align-items:center;
  justify-content:center;
}
.pay-icon i{ font-size: 18px; }

/*
.pay-icon--visa{ color:#444; background:#fff; }
.pay-icon--mc{ color:#444; background:#fff; }
.pay-icon--amex{ color:#444; background:#fff; }
.pay-icon--discover{ color:#444; background:#fff; }

*/

.pay-icon{
  width: 30px;
  height: 30px;
  display:flex;
  align-items:center;
  justify-content:center;

  border-radius: 10px;
  background: #ffffff0a;
}

.pay-icon--visa{ color:#1A1F71; }
.pay-icon--mc{ color:#EB001B;  }
.pay-icon--amex{ color:#2E77BC;  }
.pay-icon--discover{ color:#FF6000;  }
 

.about-trust{
  margin-top: 10px;
  display:flex;
  justify-content:center;
  gap: 8px;
  flex-wrap:wrap;
}

.trust-badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
}
.trust-badge i{ font-size: 13px; }

.trust-badge--google{
  background: #4285F412;
  color: #2b5db8;
}
.trust-badge--google .fa-google{ color:#4285F4; }
.trust-badge--google .fa-shield-check{ color:#34A853; }

.trust-badge--ssl{
  background: #34A85312;
  color: #1f7a3a;
}
.trust-badge--ssl .fa-lock{ color:#34A853; }

.about-footer{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  flex-wrap:wrap;
  text-align:center;
}

.about-footer--center{
  justify-content:center;
  text-align:center;
}

.about-legal{
  font-size: 11px;
  line-height: 1.25;
}

.about-legal__muted{
  color: var(--muted);
  margin-top: 2px;
}

.dev-by{
  display:inline-flex;
  align-items:center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration:none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.dev-by strong{ margin-left: 1px; }

.dev-by:hover{ text-decoration: underline; }
.dev-by--center{ justify-content:center; }