*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Segoe UI',Tahoma,Verdana,sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  background:#f5f9ff;
  color:#333;
}

.container{
  width:90%;
  max-width:1200px;
  margin:0 auto;
}

/* =========================
   TOPO / BANNER
========================= */
.banner{
  background:
    linear-gradient(rgba(0,86,179,.85),rgba(0,123,255,.85)),
    url('https://images.unsplash.com/photo-1585435557343-3b092031d5ad');
  background-size:cover;
  background-position:center;
  color:#fff;
  padding:.7rem 0;
}

.banner-grid{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
}

.banner-logo img{
  height:120px;
  width:auto;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.25));
}

.banner-text{
  text-align:center;
}

.banner-text h2{
  font-size:1.9rem;
  margin:0;
}

.banner-text p{
  margin:.4rem 0 0;
  font-size:1.05rem;
  opacity:.95;
}

/* =========================
   MOBILE HOME APP-LIKE
========================= */
.mobile-home,
.mobile-search-card,
.mobile-shortcuts,
.mobile-cats,
.mobile-bottom-nav{
  display:none;
}

@media(max-width:700px){
  body{
    background:#f3f6fb;
    padding-bottom:88px;
  }

  .container{
    width:92%;
  }

  .banner{
    background:linear-gradient(135deg,#0056b3,#007bff);
    padding:.55rem 0 .35rem;
    border-bottom:none;
    position:sticky;
    top:0;
    z-index:200;
    box-shadow:0 6px 18px rgba(0,86,179,.22);
  }

  .banner-grid{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
  }

  .banner-logo img{
    height:44px;
    width:auto;
    max-width:38vw;
    filter:none;
  }

  .banner-text{
    text-align:left;
    line-height:1.05;
    color:#fff;
  }

  .banner-text h2{
    font-size:.92rem;
    line-height:1.12;
    margin:0;
    font-weight:800;
    color:#fff;
  }

  .banner-text p{
    font-size:.68rem;
    line-height:1.1;
    margin:.12rem 0 0;
    opacity:.92;
    color:rgba(255,255,255,.9);
  }

  .banner-grid > div:last-child{
    display:none;
  }

  .mobile-home{
    display:block;
    margin:12px 0 8px;
  }

  .mobile-search-card{
    display:block;
    background:#fff;
    border-radius:18px;
    padding:12px;
    box-shadow:0 8px 24px rgba(21,39,74,.08);
    margin-bottom:12px;
  }

  .mobile-search-title{
    font-size:.92rem;
    font-weight:900;
    color:#16324f;
    margin-bottom:10px;
  }

  .mobile-search-inline{
    position:relative;
  }

  .mobile-search-inline i{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#1f6feb;
    font-size:.95rem;
  }

  .mobile-search-inline input{
    width:100%;
    height:46px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:14px;
    padding:0 14px 0 42px;
    font-size:.95rem;
    outline:none;
    background:#f8fbff;
  }

  .mobile-shortcuts{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin-bottom:12px;
  }

  .mobile-shortcut{
    background:#fff;
    border-radius:16px;
    padding:12px 8px 10px;
    text-decoration:none;
    color:#16324f;
    box-shadow:0 8px 24px rgba(21,39,74,.07);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:82px;
  }

  .mobile-shortcut i{
    width:38px;
    height:38px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eef5ff;
    color:#1f6feb;
    font-size:1rem;
  }

  .mobile-shortcut span{
    font-size:.72rem;
    font-weight:800;
    text-align:center;
    line-height:1.12;
  }

  .mobile-cats{
    display:block;
    margin-bottom:12px;
  }

  .mobile-cats-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:8px;
    padding:0 2px;
  }

  .mobile-cats-head strong{
    font-size:.92rem;
    color:#16324f;
  }

  .mobile-cat-track{
    display:flex;
    gap:8px;
    overflow:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .mobile-cat-track::-webkit-scrollbar{
    display:none;
  }

  .mobile-cat-chip{
    border:0;
    background:#fff;
    color:#24415f;
    border-radius:999px;
    padding:10px 14px;
    white-space:nowrap;
    font-size:.83rem;
    font-weight:800;
    box-shadow:0 6px 18px rgba(21,39,74,.07);
    cursor:pointer;
  }

  .mobile-cat-chip.active{
    background:#1f6feb;
    color:#fff;
  }

  .mobile-bottom-nav{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    z-index:9998;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:6px;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border:1px solid rgba(0,0,0,.06);
    border-radius:20px;
    box-shadow:0 10px 28px rgba(21,39,74,.18);
    padding:8px;
  }

  .mobile-bottom-link{
    text-decoration:none;
    color:#5d7086;
    min-height:54px;
    border-radius:14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    font-weight:800;
    font-size:.68rem;
    transition:.2s ease;
  }

  .mobile-bottom-link i{
    font-size:1rem;
  }

  .mobile-bottom-link.active,
  .mobile-bottom-link:hover{
    background:#eef5ff;
    color:#1f6feb;
  }

  .mobile-bottom-link.is-wa{
    color:#16a34a;
  }

  .mobile-bottom-link.is-wa.active,
  .mobile-bottom-link.is-wa:hover{
    background:#ebfff2;
    color:#16a34a;
  }
}

/* =========================
   FILTROS / ORDENAÇÃO
========================= */
.filters-wrap{
  margin:1.2rem auto .8rem;
}

.filters-header{
  display:none;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.filters-toggle{
  border:0;
  background:#1f6feb;
  color:#fff;
  font-weight:800;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
}

.filters-toggle:hover{
  opacity:.95;
}

.filters-chip{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:999px;
  padding:8px 12px;
  font-size:.9rem;
  color:#334;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

.filters{
  background:#fff;
  padding:1rem;
  border-radius:8px;
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  align-items:center;
  box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.search-box{
  flex:1;
  position:relative;
  min-width:260px;
}

.search-box input{
  width:100%;
  padding:10px 15px 10px 40px;
  border:1px solid #ddd;
  border-radius:6px;
}

.search-box i{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  color:#007bff;
}

.sort-box{
  position:relative;
  flex:0 0 auto;
  min-width:220px;
}

.sort-box select{
  width:100%;
  padding:10px 14px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  background:#fff;
  color:#223;
  font-weight:800;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;
}

.sort-box:after{
  content:"\f078";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:#4a5c70;
  pointer-events:none;
}

.cat-dd{
  position:relative;
  flex:0 0 auto;
  min-width:260px;
}

.cat-dd-btn{
  width:100%;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
  color:#223;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.cat-dd-btn:hover{
  opacity:.95;
}

.cat-dd-btn .left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.cat-dd-btn .label{
  white-space:nowrap;
}

.cat-dd-btn .summary{
  font-weight:700;
  color:#445;
  font-size:.92rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:220px;
}

.cat-dd-panel{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:100%;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.18);
  padding:10px;
  z-index:999;
  display:none;
}

.cat-dd.open .cat-dd-panel{
  display:block;
}

.cat-dd-search{
  position:relative;
  margin-bottom:8px;
}

.cat-dd-search input{
  width:100%;
  padding:10px 12px 10px 36px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
}

.cat-dd-search i{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:#1f6feb;
}

.cat-dd-list{
  max-height:260px;
  overflow:auto;
  padding:4px 2px;
}

.cat-dd-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:10px;
  cursor:pointer;
}

.cat-dd-item:hover{
  background:#f3f7ff;
}

.cat-dd-item input{
  width:18px;
  height:18px;
}

.cat-dd-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.cat-dd-actions button{
  flex:1;
  border:0;
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  font-weight:900;
}

.cat-dd-actions .apply{
  background:#1f6feb;
  color:#fff;
}

.cat-dd-actions .clear{
  background:#eef2ff;
  color:#223;
  border:1px solid rgba(0,0,0,.12);
}

.cat-dd-actions button:hover{
  opacity:.95;
}

.results{
  margin:.2rem 0 1rem;
  color:#445;
  font-size:.95rem;
}

.results b{
  color:#111;
}

@media(max-width:700px){
  .filters-wrap{
    margin:.1rem auto .7rem;
  }

  .filters-header{
    display:flex;
    margin-bottom:12px;
  }

  .filters{
    display:none;
    border-radius:18px;
    padding:12px;
    box-shadow:0 8px 24px rgba(21,39,74,.08);
  }

  .filters.open{
    display:flex;
  }

  .cat-dd,
  .search-box,
  .sort-box{
    width:100%;
    min-width:0;
    flex:1 1 100%;
  }

  .search-box input,
  .sort-box select{
    height:46px;
    border-radius:14px;
    background:#f8fbff;
    border:1px solid rgba(0,0,0,.08);
    box-shadow:none;
  }

  .filters-chip{
    max-width:58%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    border-radius:999px;
    font-size:.82rem;
    padding:9px 12px;
  }

  .filters-toggle{
    border-radius:12px;
    padding:11px 14px;
    box-shadow:0 6px 18px rgba(31,111,235,.22);
  }

  .cat-dd-btn{
    min-height:46px;
    border-radius:14px;
    box-shadow:none;
  }

  .results{
    display:none;
  }
}

/* =========================
   PROMO DESKTOP
========================= */
.promo-section{
  margin:1rem 0 1.2rem;
}

.promo-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.promo-title{
  font-size:1.05rem;
  font-weight:900;
  color:#123;
}

.promo-nav{
  display:flex;
  gap:8px;
}

.promo-btn{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  width:40px;
  height:40px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

.promo-btn:hover{
  opacity:.95;
}

.promo-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.promo-track{
  display:flex;
  gap:12px;
  overflow:auto;
  scroll-behavior:smooth;
  padding-bottom:6px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scroll-snap-type:x mandatory;
}

.promo-track.is-dragging{
  cursor:grabbing;
  user-select:none;
}

.promo-card{
  min-width:240px;
  max-width:240px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  position:relative;
  scroll-snap-align:start;
  cursor:pointer;
}

.promo-img{
  height:150px;
  background:#f0f7ff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.promo-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
}

.promo-body{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.promo-name{
  font-weight:800;
  color:#0056b3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.6em;
  font-size:.98rem;
}

.promo-price{
  font-weight:900;
  color:#16a34a;
}

.promo-old{
  color:#777;
  text-decoration:line-through;
  font-size:.9rem;
  margin-right:6px;
}

.promo-badge{
  position:absolute;
  top:10px;
  left:10px;
  background:#dc2626;
  color:#fff;
  font-weight:900;
  font-size:.75rem;
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 6px 16px rgba(0,0,0,.15);
}

/* =========================
   PROMO MOBILE APP
========================= */
.mobile-promo-app{
  display:none;
}

@media(max-width:700px){
  .mobile-promo-app{
    display:block;
    margin:0 0 1rem;
  }

  .mobile-promo-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
    padding:0 2px;
  }

  .mobile-promo-head strong{
    font-size:1rem;
    color:#16324f;
  }

  .mobile-promo-head a{
    text-decoration:none;
    font-size:.8rem;
    font-weight:800;
    color:#1f6feb;
  }

  .mobile-promo-mini-track{
    display:flex;
    gap:10px;
    overflow:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .mobile-promo-mini-track::-webkit-scrollbar{
    display:none;
  }

  .mobile-promo-mini{
    min-width:145px;
    max-width:145px;
    background:#fff;
    border-radius:18px;
    padding:10px;
    box-shadow:0 10px 24px rgba(21,39,74,.08);
    cursor:pointer;
    flex:0 0 auto;
    position:relative;
  }

  .mobile-promo-mini-discount{
    position:absolute;
    top:8px;
    left:8px;
    background:#dc2626;
    color:#fff;
    font-size:.64rem;
    font-weight:900;
    padding:4px 7px;
    border-radius:999px;
    box-shadow:0 6px 16px rgba(0,0,0,.12);
  }

  .mobile-promo-mini-img{
    width:100%;
    height:92px;
    background:#f7fbff;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    margin-bottom:8px;
  }

  .mobile-promo-mini-img img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:8px;
  }

  .mobile-promo-mini-name{
    font-size:.82rem;
    line-height:1.18;
    font-weight:800;
    color:#17385c;
    min-height:2.25em;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin-bottom:6px;
  }

  .mobile-promo-mini-price{
    font-size:.94rem;
    font-weight:900;
    color:#0f9d58;
  }

  .mobile-promo-mini-old{
    display:block;
    font-size:.72rem;
    color:#7a8899;
    text-decoration:line-through;
    margin-bottom:2px;
  }

  .promo-section{
    display:none;
  }
}

/* =========================
   OFERTAS PROGRAMADAS
========================= */
.offers-programmed-wrap{
  display:flex;
  flex-direction:column;
  gap:1.1rem;
  margin:0 0 1.3rem;
}

.offer-programmed-section{
  background:#fff;
  border-radius:20px;
  padding:14px 14px 10px;
  box-shadow:0 10px 28px rgba(21,39,74,.08);
}

.offer-programmed-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.offer-programmed-title-wrap{
  min-width:0;
}

.offer-programmed-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#eef5ff;
  color:#1f6feb;
  border-radius:999px;
  padding:6px 10px;
  font-size:.72rem;
  font-weight:900;
  margin-bottom:8px;
}

.offer-programmed-title{
  color:#123;
  font-size:1.08rem;
  font-weight:900;
  line-height:1.2;
}

.offer-programmed-period{
  color:#607188;
  font-size:.86rem;
  margin-top:4px;
}

.offer-programmed-desc{
  color:#607188;
  font-size:.9rem;
  margin-top:4px;
}

.offer-programmed-track{
  display:flex;
  gap:12px;
  overflow:auto;
  scroll-behavior:smooth;
  padding-bottom:6px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scroll-snap-type:x mandatory;
}

.offer-programmed-card{
  min-width:220px;
  max-width:220px;
  background:#f9fbff;
  border:1px solid rgba(0,0,0,.05);
  border-radius:18px;
  overflow:hidden;
  position:relative;
  cursor:pointer;
  scroll-snap-align:start;
  flex:0 0 auto;
}

.offer-programmed-card:hover{
  transform:translateY(-3px);
}

.offer-programmed-image{
  height:142px;
  background:#f0f7ff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.offer-programmed-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
}

.offer-programmed-body{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.offer-programmed-name{
  font-weight:800;
  color:#0056b3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.5em;
}

.offer-programmed-category{
  color:#6a7891;
  font-size:.83rem;
}

.offer-programmed-old{
  color:#777;
  text-decoration:line-through;
  font-size:.9rem;
  margin-right:6px;
}

.offer-programmed-price{
  color:#16a34a;
  font-size:1.04rem;
  font-weight:900;
}

.offer-programmed-badge{
  position:absolute;
  top:10px;
  left:10px;
  background:#dc2626;
  color:#fff;
  font-size:.72rem;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 6px 16px rgba(0,0,0,.16);
}

.offer-programmed-nav{
  display:flex;
  gap:8px;
}

.offer-programmed-btn{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  width:40px;
  height:40px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

.offer-programmed-empty{
  color:#607188;
  font-size:.95rem;
}

@media(max-width:700px){
  .offers-programmed-wrap{
    gap:12px;
    margin:0 0 1rem;
  }

  .offer-programmed-section{
    border-radius:22px;
    padding:12px;
    box-shadow:0 10px 24px rgba(21,39,74,.08);
  }

  .offer-programmed-title{
    font-size:.98rem;
  }

  .offer-programmed-period,
  .offer-programmed-desc{
    font-size:.8rem;
  }

  .offer-programmed-btn{
    width:36px;
    height:36px;
    border-radius:10px;
  }

  .offer-programmed-card{
    min-width:160px;
    max-width:160px;
    border-radius:18px;
  }

  .offer-programmed-image{
    height:108px;
  }

  .offer-programmed-body{
    padding:10px;
  }

  .offer-programmed-name{
    font-size:.84rem;
    min-height:2.35em;
  }

  .offer-programmed-category{
    font-size:.74rem;
  }

  .offer-programmed-old{
    display:block;
    margin-right:0;
    margin-bottom:2px;
    font-size:.76rem;
  }

  .offer-programmed-price{
    font-size:.92rem;
  }

  .offer-programmed-badge{
    top:8px;
    left:8px;
    font-size:.62rem;
    padding:5px 8px;
  }
}

/* =========================
   GRID PRODUTOS
========================= */
.product-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.2rem;
  margin-bottom:1.5rem;
}

@media(max-width:1200px){
  .product-grid{grid-template-columns:repeat(3,1fr);}
}

@media(max-width:900px){
  .product-grid{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:520px){
  .product-grid{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
  }
}

.product-card{
  background:#fff;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  overflow:hidden;
  transition:.3s;
  position:relative;
  display:flex;
  flex-direction:column;
  cursor:pointer;
}

.product-card:hover{
  transform:translateY(-4px);
}

.product-image{
  height:200px;
  background:#f0f7ff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
  display:block;
}

.product-info{
  padding:1rem;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}

.product-name{
  font-size:1.05rem;
  font-weight:600;
  color:#0056b3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.6em;
}

.product-category{
  font-size:.85rem;
  color:#666;
  margin:.35rem 0;
}

.price-wrap{
  margin:.7rem 0 .2rem;
  min-height:3.1em;
}

.price{
  font-size:1.2rem;
  font-weight:700;
  color:#28a745;
}

.price-old{
  display:block;
  color:#777;
  text-decoration:line-through;
  font-size:.95rem;
  margin-bottom:2px;
}

.price-promo{
  font-size:1.25rem;
  font-weight:800;
  color:#16a34a;
}

.badge-promo{
  position:absolute;
  top:10px;
  left:10px;
  background:#dc2626;
  color:#fff;
  font-weight:800;
  font-size:.78rem;
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 6px 16px rgba(0,0,0,.15);
  letter-spacing:.4px;
}

.product-availability{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:900;
  margin:.15rem 0 .45rem;
}

.product-availability.is-available{
  background:#ecfdf3;
  color:#166534;
  border:1px solid #bbf7d0;
}

.product-availability.is-unavailable{
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
}

.modal-availability{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:900;
  margin-top:2px;
}

.modal-availability.is-available{
  background:#ecfdf3;
  color:#166534;
  border:1px solid #bbf7d0;
}

.modal-availability.is-unavailable{
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
}

.loja-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#eef5ff;
  color:#1f4f82;
  border:1px solid rgba(31,79,130,.12);
  padding:8px 12px;
  border-radius:999px;
  font-size:.84rem;
  font-weight:800;
  margin:0 0 .9rem;
}

.discount-pill-mobile{
  display:none;
}

.product-whatsapp-hint{
  display:none;
}

.product-action-mobile{
  display:none;
}

@media(max-width:700px){
  .product-grid{
    margin-bottom:1rem;
  }

  .product-card{
    border-radius:18px;
    box-shadow:0 10px 24px rgba(21,39,74,.08);
  }

  .product-card:hover{
    transform:none;
  }

  .product-image{
    height:150px;
    background:#f7fbff;
  }

  .product-image img{
    padding:8px;
  }

  .product-info{
    padding:12px 12px 14px;
  }

  .product-name{
    font-size:.9rem;
    font-weight:800;
    color:#17385c;
    min-height:2.45em;
  }

  .product-category{
    font-size:.74rem;
    color:#70839a;
    margin:.3rem 0;
    min-height:1.2em;
  }

  .price-wrap{
    margin:.35rem 0 .4rem;
    min-height:auto;
  }

  .price{
    font-size:1.02rem;
    color:#0f9d58;
  }

  .price-old{
    font-size:.78rem;
    margin-bottom:1px;
  }

  .price-promo{
    font-size:1.05rem;
  }

  .badge-promo{
    top:8px;
    left:8px;
    font-size:.63rem;
    padding:5px 8px;
    border-radius:999px;
  }

  .discount-pill-mobile{
    display:inline-flex;
    align-items:center;
    width:max-content;
    background:#fff1f1;
    color:#c62828;
    font-size:.68rem;
    font-weight:900;
    padding:5px 8px;
    border-radius:999px;
    margin-bottom:6px;
    border:1px solid rgba(198,40,40,.15);
  }

  .product-availability{
    font-size:.66rem;
    padding:5px 8px;
    margin:.1rem 0 .35rem;
  }

  .product-whatsapp-hint{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:.72rem;
    color:#16a34a;
    font-weight:800;
    margin:.15rem 0 .55rem;
  }

  .product-action-mobile{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:38px;
    border:0;
    border-radius:12px;
    background:#eef5ff;
    color:#1f6feb;
    font-size:.78rem;
    font-weight:900;
    cursor:pointer;
  }

  .product-action-mobile:hover{
    opacity:.95;
  }
}

/* =========================
   PAGINAÇÃO
========================= */
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 3rem;
}

.pagination a,
.pagination span{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  text-decoration:none;
  color:#223;
  font-weight:800;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

.pagination a:hover{
  opacity:.95;
}

.pagination .active{
  background:#1f6feb;
  border-color:#1f6feb;
  color:#fff;
}

@media(max-width:700px){
  .pagination{
    gap:6px;
    margin:2px 0 0;
  }

  .pagination a,
  .pagination span{
    padding:9px 11px;
    border-radius:10px;
    font-size:.82rem;
    box-shadow:none;
  }
}

/* =========================
   BOTÕES FLUTUANTES
========================= */
.float-btn{
  position:fixed;
  right:18px;
  width:60px;
  height:60px;
  border-radius:999px;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  z-index:9999;
  box-shadow:0 10px 28px rgba(0,0,0,.25);
  animation:floatPulse 1.2s ease-in-out infinite;
}

.float-btn i{
  font-size:30px;
}

@keyframes floatPulse{
  0%{transform:scale(1);}
  50%{transform:scale(1.10);}
  100%{transform:scale(1);}
}

.float-ig{
  bottom:92px;
  background:linear-gradient(45deg,#f09433,#dc2743,#bc1888);
}

.float-wa{
  bottom:18px;
  background:#25D366;
}

@media(max-width:700px){
  .float-btn{
    display:none;
  }
}

/* =========================
   MODAL DO PRODUTO
========================= */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:10000;
  padding:18px;
}

.modal-backdrop.open{
  display:flex;
}

.modal{
  width:100%;
  max-width:560px;
  background:#fff;
  border-radius:18px;
  box-shadow:0 18px 48px rgba(0,0,0,.35);
  overflow:hidden;
  animation:modalIn .15s ease-out;
}

@keyframes modalIn{
  from{transform:translateY(10px);opacity:.7;}
  to{transform:translateY(0);opacity:1;}
}

.modal-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid #eef2f7;
}

.modal-title{
  font-size:1.05rem;
  font-weight:900;
  color:#123;
}

.modal-close{
  border:0;
  background:#eef5ff;
  color:#1f6feb;
  width:36px;
  height:36px;
  border-radius:12px;
  cursor:pointer;
  font-size:1rem;
  font-weight:900;
}

.modal-body{
  padding:16px;
}

.modal-grid{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:16px;
  align-items:start;
}

.modal-img{
  width:100%;
  height:180px;
  border-radius:16px;
  background:#f5f9ff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.modal-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
}

.modal-info{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.modal-name{
  font-size:1.12rem;
  font-weight:900;
  color:#17385c;
  line-height:1.2;
}

.modal-cat{
  color:#6b7280;
  font-size:.9rem;
}

.modal-price{
  font-size:1.2rem;
  font-weight:900;
  color:#111827;
}

.modal-old{
  color:#6b7280;
  text-decoration:line-through;
  font-size:.9rem;
  margin-right:6px;
}

@media(max-width:700px){
  .modal{
    border-radius:20px;
    max-width:520px;
    max-height:calc(100vh - 24px);
    display:flex;
    flex-direction:column;
  }

  .modal-top{
    padding:12px 14px;
  }

  .modal-body{
    padding:12px 14px 14px;
    overflow-y:auto;
  }

  .modal-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .modal-img{
    height:170px;
  }

  .modal-name{
    font-size:1rem;
  }

  .modal-price{
    font-size:1.12rem;
  }
}

.catalog-empty-results{
  grid-column:1/-1;
  text-align:center;
  color:#666;
}

.catalog-empty-image{
  color:#667;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  text-align:center;
  padding:10px;
}

.catalog-empty-image-sm{
  font-size:.72rem;
}

.modal-store-list{
  display:flex;
  flex-direction:column;
  gap:0;
}

.modal-store-card{
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px;
  margin-top:12px;
  background:#fff;
}

.modal-store-card-fallback{
  background:#fbfdff;
}

.modal-store-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:8px;
}

.modal-store-name{
  font-size:.96rem;
  font-weight:900;
  color:#17385c;
}

.modal-store-address{
  color:#6b7280;
  font-size:13px;
  margin-top:4px;
  line-height:1.45;
}

.modal-store-address i{
  margin-right:4px;
}

.modal-store-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.modal-store-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.modal-store-pill.ok{
  background:#dcfce7;
  color:#166534;
}

.modal-store-pill.off{
  background:#fee2e2;
  color:#991b1b;
}

.modal-store-footer{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.modal-store-footer.no-action{
  justify-content:flex-start;
}

.modal-store-prices{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  min-width:0;
  flex:1;
}

.modal-store-price-old{
  font-size:13px;
  color:#6b7280;
  text-decoration:line-through;
}

.modal-store-price{
  font-size:16px;
  font-weight:800;
  color:#111827;
}

.modal-store-wa-inline{
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:#25D366;
  color:#fff;
  box-shadow:0 8px 18px rgba(37,211,102,.28);
  transition:transform .15s ease, opacity .15s ease;
}

.modal-store-wa-inline:hover{
  opacity:.96;
  transform:translateY(-1px);
}

.modal-store-wa-inline i{
  font-size:18px;
}

@media(max-width:700px){
  .modal-store-card{
    padding:12px;
    margin-top:10px;
    border-radius:13px;
  }

  .modal-store-head{
    gap:10px;
    margin-bottom:6px;
  }

  .modal-store-name{
    font-size:.92rem;
  }

  .modal-store-address{
    font-size:12px;
  }

  .modal-store-meta{
    gap:6px;
    margin-top:8px;
  }

  .modal-store-pill{
    font-size:11px;
    padding:5px 8px;
  }

  .modal-store-footer{
    margin-top:10px;
    gap:10px;
    align-items:center;
  }

  .modal-store-prices{
    gap:8px;
  }

  .modal-store-price-old{
    font-size:12px;
  }

  .modal-store-price{
    font-size:15px;
  }

  .modal-store-wa-inline{
    width:38px;
    height:38px;
    min-width:38px;
  }

  .modal-store-wa-inline i{
    font-size:16px;
  }
}

.mobile-load-more-wrap{
  display:none;
}

@media(max-width:700px){
  .pagination{
    display:none !important;
  }

  .mobile-load-more-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    margin:8px 0 18px;
  }

  .mobile-load-more-btn{
    width:100%;
    border:0;
    min-height:46px;
    border-radius:14px;
    background:#1f6feb;
    color:#fff;
    font-size:.95rem;
    font-weight:900;
    box-shadow:0 8px 24px rgba(31,111,235,.22);
    cursor:pointer;
  }

  .mobile-load-more-btn:disabled{
    opacity:.7;
    cursor:not-allowed;
  }

  .mobile-load-more-status{
    min-height:20px;
    text-align:center;
    font-size:.82rem;
    font-weight:800;
    color:#607188;
  }

  .mobile-load-more-wrap.is-hidden{
    display:none !important;
  }
}
