/* =========================
   SnapLinks Shop — CSS consolidado responsivo
   Substituir public_html/assets/css/app.css por este arquivo inteiro.
   ========================= */

/* =========================
   Theme
   ========================= */
:root{
  --bg:#0b0e14;
  --card:#121826;
  --card2:#151d2d;
  --surface:rgba(255,255,255,.045);
  --surface2:rgba(255,255,255,.07);
  --surface3:rgba(255,255,255,.105);
  --txt:#e9ecf4;
  --muted:#9aa3b8;
  --pri:#4f7cff;
  --pri2:#6d8dff;
  --ok:#22c55e;
  --bad:#ef4444;
  --warning:#ffd166;
  --bd:rgba(255,255,255,.105);
  --bd2:rgba(255,255,255,.18);
  --topbar-bg:rgba(11,14,20,.92);
  --input-bg:rgba(255,255,255,.055);
  --shadow:0 16px 40px rgba(0,0,0,.26);
  --shadow2:0 10px 26px rgba(0,0,0,.20);
  --radius:18px;
  --container:1240px;
}

html[data-theme="light"]{
  --bg:#f5f7fb;
  --card:#ffffff;
  --card2:#ffffff;
  --surface:rgba(15,23,42,.045);
  --surface2:rgba(15,23,42,.07);
  --surface3:rgba(15,23,42,.105);
  --txt:#0f172a;
  --muted:#526071;
  --pri:#2563eb;
  --pri2:#1d4ed8;
  --ok:#15803d;
  --bad:#dc2626;
  --warning:#92400e;
  --bd:rgba(15,23,42,.12);
  --bd2:rgba(15,23,42,.20);
  --topbar-bg:rgba(255,255,255,.92);
  --input-bg:rgba(15,23,42,.045);
  --shadow:0 16px 40px rgba(2,6,23,.08);
  --shadow2:0 10px 26px rgba(2,6,23,.08);
}

/* =========================
   Base
   ========================= */
*{box-sizing:border-box}
html{
  min-height:100%;
  scroll-behavior:smooth;
  background:var(--bg);
  overflow-x:hidden;
}
body{
  min-height:100%;
  width:100%;
  margin:0;
  overflow-x:hidden;
  background:var(--bg);
  background-image:none;
  color:var(--txt);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  transition:background .18s ease,color .18s ease;
}
body::before,
body::after{content:none;display:none}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}
button{cursor:pointer}

.container{
  width:min(var(--container), 100%);
  margin:0 auto;
  padding-left:20px;
  padding-right:20px;
}
main.container{
  padding-top:24px;
  padding-bottom:44px;
}

/* =========================
   Header
   ========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--topbar-bg);
  border-bottom:1px solid var(--bd);
  backdrop-filter:blur(14px);
}
.topbar__inner{
  min-height:76px;
  display:grid;
  grid-template-columns:auto minmax(260px,1fr) auto;
  align-items:center;
  gap:18px;
}
.brand--logo{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
}
.brand--logo img{
  width:58px;
  height:58px;
  object-fit:contain;
}
.search{
  width:100%;
  max-width:none;
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
}
.search input{
  width:100%;
  min-width:0;
  height:48px;
  padding:0 15px;
  border:1px solid var(--bd);
  border-radius:15px;
  background:var(--input-bg);
  color:var(--txt);
  outline:none;
}
.search input::placeholder{color:color-mix(in srgb,var(--muted) 80%,transparent)}
.search input:focus{
  border-color:color-mix(in srgb,var(--pri) 65%,transparent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--pri) 18%,transparent);
}
.search button{
  height:48px;
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:15px;
  background:linear-gradient(180deg,var(--pri),var(--pri2));
  color:#fff;
  font-weight:800;
  white-space:nowrap;
}
.search button:hover{filter:brightness(1.05)}
.search__icon{display:none}
.topbar__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
}
.themeBtn,
.cartlink{
  height:46px;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--bd);
  border-radius:15px;
  background:var(--surface);
  color:var(--txt);
  box-shadow:var(--shadow2);
  transition:background .14s ease,border-color .14s ease,transform .12s ease,filter .12s ease;
}
.themeBtn{
  width:46px;
  min-width:46px;
  padding:0;
}
.cartlink{
  gap:8px;
  padding:0 15px;
  font-weight:760;
  white-space:nowrap;
}
.themeBtn:hover,
.cartlink:hover{
  background:var(--surface2);
  border-color:var(--bd2);
}
.themeBtn:active,
.cartlink:active{transform:translateY(1px)}
.cartlink__icon{font-size:1.08rem;line-height:1}
.cartlink__text{line-height:1}

/* Categorias */
.navcats{
  width:100%;
  border-top:1px solid var(--bd);
  background:rgba(255,255,255,.018);
  overflow:hidden;
}
html[data-theme="light"] .navcats{background:rgba(15,23,42,.025)}
.navcats__inner{
  display:flex;
  align-items:center;
  gap:9px;
  padding-top:10px;
  padding-bottom:10px;
  overflow-x:auto;
  overflow-y:hidden;
  flex-wrap:nowrap;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.navcats__inner::-webkit-scrollbar{display:none}
.navcats__inner a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 14px;
  border:1px solid var(--bd);
  border-radius:999px;
  background:var(--surface);
  color:var(--txt);
  font-size:.92rem;
  font-weight:650;
  line-height:1;
  white-space:nowrap;
  flex:0 0 auto;
}
.navcats__inner a:hover{
  background:var(--surface2);
  border-color:var(--bd2);
}
.navlink{color:var(--muted)!important}

/* =========================
   Components
   ========================= */
.toast{
  position:fixed;
  right:16px;
  bottom:16px;
  width:max-content;
  max-width:min(420px,calc(100vw - 32px));
  z-index:80;
  padding:12px 14px;
  border:1px solid var(--bd);
  border-radius:14px;
  background:var(--card);
  color:var(--txt);
  box-shadow:var(--shadow);
}
.card{
  background:var(--card);
  border:1px solid var(--bd);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.btn{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border:1px solid var(--bd);
  border-radius:13px;
  background:var(--surface2);
  color:var(--txt);
  cursor:pointer;
  transition:background .14s ease,border-color .14s ease,transform .12s ease,filter .12s ease;
}
.btn:hover{background:var(--surface3);border-color:var(--bd2)}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.btn--primary{
  background:linear-gradient(180deg,var(--pri),var(--pri2));
  border-color:transparent;
  color:#fff;
  font-weight:800;
}
.btn--primary:hover{filter:brightness(1.04)}
.btn--ghost{background:transparent}
.muted{color:var(--muted);font-size:.92rem}
.small{font-size:.9rem;line-height:1.6}
.ok{color:var(--ok);font-weight:700}
.bad{color:var(--bad);font-weight:700}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  max-width:100%;
  padding:3px 9px;
  border:1px solid var(--bd);
  border-radius:999px;
  background:var(--surface);
  color:var(--muted);
  font-size:.80rem;
  line-height:1;
  white-space:nowrap;
}
.pill--sale{
  background:rgba(34,197,94,.14);
  color:#22c55e;
  border-color:rgba(34,197,94,.35);
}
html[data-theme="light"] .pill--sale{
  background:rgba(22,163,74,.10);
  color:#15803d;
  border-color:rgba(21,128,61,.22);
}
.pill--affiliate{
  background:rgba(255,214,10,.12);
  color:#ffd166;
  border-color:rgba(255,214,10,.28);
}
html[data-theme="light"] .pill--affiliate{
  background:rgba(245,158,11,.12);
  color:#92400e;
  border-color:rgba(146,64,14,.22);
}
.prose{line-height:1.7;font-size:.98rem;color:var(--txt)}

/* =========================
   Sections / Home
   ========================= */
.section{margin:34px 0 32px}
.section__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.section__head h1,
.section__head h2,
.section > h1,
.section > h2{
  margin:0;
  font-size:1.6rem;
  line-height:1.2;
  letter-spacing:-.02em;
}
.section > h1,
.section > h2{margin-bottom:16px}
.hero{margin-top:18px}
.hero__inner{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
  gap:18px;
  padding:24px;
  border:1px solid var(--bd);
  border-radius:24px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--pri) 16%,transparent),var(--surface));
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.hero h1{
  margin:0 0 12px;
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1.06;
  letter-spacing:-.04em;
}
.hero p{max-width:620px;line-height:1.6}
.hero__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.hero__badge{display:flex;flex-direction:column;gap:10px}
.badge{
  background:var(--surface2);
  border:1px solid var(--bd);
  padding:14px;
  border-radius:16px;
  color:var(--txt);
}
.cats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.cat{
  background:var(--surface);
  border:1px solid var(--bd);
  border-radius:18px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.cat:hover{background:var(--surface2);border-color:var(--bd2)}

/* =========================
   Product cards
   ========================= */
.grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.pcard{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--bd);
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow2);
  transition:transform .12s ease,background .18s ease,border-color .18s ease;
}
.pcard:hover{background:var(--surface2);border-color:var(--bd2);transform:translateY(-2px)}
.pcard__img{
  display:block;
  width:100%;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:transparent;
}
.pcard__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  padding:0;
  margin:0;
  transition:transform .16s ease;
}
.pcard:hover .pcard__img img{transform:scale(1.025)}
.pcard__body{min-width:0;padding:14px}
.pcard__pill{
  margin-bottom:8px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pcard__title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.75em;
  line-height:1.36;
  font-weight:800;
  margin-bottom:10px;
}
.pcard__meta{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:8px;
  width:100%;
  min-width:0;
}
.pcard__prices{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:6px;
  row-gap:4px;
  flex-wrap:wrap;
}
.price{font-weight:850;color:var(--txt);line-height:1.15;white-space:nowrap}
.price--old{
  text-decoration:line-through;
  color:var(--muted);
  font-weight:650;
}
.pcard__meta .price{font-size:clamp(.92rem,1.1vw,1.05rem)}
.pcard__meta .price--old{font-size:clamp(.76rem,.92vw,.9rem)}
.pcard__views{justify-self:end;white-space:nowrap;font-size:.82rem}

/* =========================
   Product page
   ========================= */
.product{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:24px;
  align-items:start;
  margin-top:8px;
}
.product__gallery{
  position:sticky;
  top:118px;
  align-self:start;
}
.product__main{
  width:100%;
  display:block;
  aspect-ratio:1 / 1;
  height:auto;
  max-height:720px;
  object-fit:cover;
  object-position:center center;
  padding:0;
  margin:0;
  border:1px solid var(--bd);
  border-radius:24px;
  background:transparent;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.thumbs{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(78px,1fr));
  gap:10px;
  margin-top:12px;
}
.thumb{
  width:100%;
  aspect-ratio:1/1;
  padding:0;
  border:1px solid var(--bd);
  border-radius:14px;
  overflow:hidden;
  background:var(--surface);
}
.thumb:hover{background:var(--surface2);border-color:var(--bd2)}
.thumb img{width:100%;height:100%;object-fit:cover;object-position:center center}
.thumb.is-active{border-color:var(--pri);box-shadow:0 0 0 2px color-mix(in srgb,var(--pri) 28%,transparent)}
.galleryCounter{
  position:absolute;
  right:14px;
  bottom:14px;
  background:rgba(0,0,0,.62);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  padding:6px 10px;
  border-radius:999px;
  font-size:.85rem;
  backdrop-filter:blur(8px);
}
html[data-theme="light"] .galleryCounter{background:rgba(255,255,255,.78);color:#111;border-color:rgba(0,0,0,.12)}
.product__info{display:flex;flex-direction:column;gap:16px;min-width:0}
.product__head{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.product__head h1{
  margin:0;
  font-size:clamp(1.8rem,2.8vw,2.5rem);
  line-height:1.1;
  letter-spacing:-.025em;
}
.product__tags{display:flex;flex-wrap:wrap;gap:8px}
.product__meta{display:flex;flex-wrap:wrap;gap:10px}
.product__meta .muted{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border:1px solid var(--bd);
  border-radius:999px;
  background:var(--surface);
}
.premiumPrice{
  width:100%;
  max-width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  row-gap:8px;
  flex-wrap:wrap;
}
.premiumPrice .price{
  display:inline-block;
  max-width:100%;
  font-size:clamp(1.55rem,3.4vw,2.25rem);
  line-height:1.06;
  letter-spacing:-.04em;
}
.premiumPrice .price--old{font-size:1rem;letter-spacing:0}
.benefits{
  list-style:none;
  margin:0;
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  border:1px solid var(--bd);
  border-radius:18px;
  background:var(--surface);
}
.benefits li{display:flex;gap:8px;align-items:flex-start;color:var(--muted);line-height:1.5}
.addcart,
.affiliateBox{padding:18px;border-radius:20px}
.addcart__row{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:12px;
  align-items:end;
}
.addcart input,
.addcart select,
.addcart textarea{min-height:48px}
.addcart__btn,
.affiliateBox__btn{width:100%;min-height:56px;border-radius:14px;font-weight:780}
.productDescription h2,
.product__info .card h2{margin-top:0;margin-bottom:14px;font-size:1.5rem}
.relatedProducts{margin-top:38px}
.stickyBuy{
  display:none;
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  padding:10px 12px;
  background:rgba(11,14,20,.92);
  border-top:1px solid var(--bd);
  backdrop-filter:blur(10px);
  z-index:70;
  gap:10px;
  align-items:center;
}
html[data-theme="light"] .stickyBuy{background:rgba(255,255,255,.92)}
.stickyBuy__price{font-weight:850;white-space:nowrap}
.stickyBuy__btn{flex:1;justify-content:center}

/* =========================
   Forms / filters
   ========================= */
.form{display:flex;flex-direction:column;gap:12px}
.form input,
.form textarea,
.form select,
.filters input,
.filters select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--bd);
  border-radius:12px;
  background:var(--input-bg);
  color:var(--txt);
  outline:none;
}
.form input:focus,
.form textarea:focus,
.form select:focus,
.filters input:focus,
.filters select:focus{
  border-color:color-mix(in srgb,var(--pri) 65%,transparent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--pri) 18%,transparent);
}
.form textarea{min-height:110px;resize:vertical}
.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.filters input{min-width:220px;flex:1}
.filters select{width:auto;min-width:160px}
.row{display:flex;gap:10px;align-items:center;margin-top:10px;flex-wrap:wrap}
.row--end{justify-content:flex-end}
.gap{gap:12px}
.affiliateFields,.ownFields{margin-top:4px}

/* =========================
   Cart / tables
   ========================= */
.table{display:grid;gap:8px}
.thead,
.trow{
  display:grid;
  grid-template-columns:minmax(220px,2fr) 140px 120px 120px 120px;
  gap:10px;
  align-items:center;
}
.thead{
  color:var(--muted);
  font-size:.9rem;
  border-bottom:1px solid var(--bd);
  padding-bottom:8px;
}
.trow{padding:12px 0;border-bottom:1px solid var(--bd)}
.trow input{width:100%}
.cartprod{display:flex;gap:12px;align-items:center;min-width:0}
.cartprod__img{
  width:64px;
  height:64px;
  flex:0 0 64px;
  border-radius:14px;
  border:1px solid var(--bd);
  overflow:hidden;
  background:var(--surface);
  display:flex;
  align-items:center;
  justify-content:center;
}
.cartprod__img img{width:100%;height:100%;object-fit:cover}
.cartprod__img--ph::after{content:'🖼️';opacity:.5}
.cartprod__info{min-width:0}
.cartprod__name{
  font-weight:750;
  display:block;
  margin-bottom:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:360px;
}
.qty{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.qty__btn{
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid var(--bd);
  background:var(--surface2);
  color:var(--txt);
  font-weight:800;
}
.qty__btn:hover{background:var(--surface3)}
.qty__input{width:72px;text-align:center;border-radius:10px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.list li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--bd);padding-bottom:10px}
.pager{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:18px;flex-wrap:wrap}

/* =========================
   Footer
   ========================= */
.footer{
  width:100%;
  margin-top:42px;
  border-top:1px solid var(--bd);
  background:rgba(255,255,255,.018);
}
html[data-theme="light"] .footer{background:rgba(15,23,42,.025)}
.footer__inner{padding-top:22px;padding-bottom:22px}
.footer__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  margin:0;
}
.footer__brand{min-width:0}
.footer__store{
  display:block;
  margin:0 0 4px;
  color:var(--txt);
  font-size:1rem;
  font-weight:850;
  line-height:1.25;
}
.footer__desc{color:var(--muted);font-size:.92rem;line-height:1.45}
.footer__copy{color:var(--muted);font-size:.92rem;line-height:1.45;text-align:right;white-space:nowrap}

/* =========================
   Responsividade
   ========================= */
@media (max-width:1300px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1180px){
  .cats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .product{grid-template-columns:minmax(0,1fr) minmax(330px,.9fr)}
}
@media (max-width:980px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .container{padding-left:12px;padding-right:12px}
  main.container{padding-top:14px;padding-bottom:32px}

  .topbar__inner{
    min-height:auto;
    grid-template-columns:56px minmax(0,1fr) 56px;
    grid-template-rows:auto auto;
    gap:10px 8px;
    padding-top:12px;
    padding-bottom:12px;
  }
  .brand--logo{grid-column:1/2;grid-row:1/2;justify-self:start;width:56px;height:56px}
  .brand--logo img{width:56px;height:56px}
  .topbar__actions{display:contents}
  .themeBtn{
    grid-column:2/3;
    grid-row:1/2;
    justify-self:center;
    width:54px;
    height:54px;
    min-width:54px;
    border-radius:16px;
    box-shadow:none;
  }
  .cartlink{
    grid-column:3/4;
    grid-row:1/2;
    justify-self:end;
    width:54px;
    height:54px;
    min-width:54px;
    padding:0;
    border-radius:16px;
    box-shadow:none;
  }
  .cartlink__text{display:none}
  .cartlink__icon{font-size:1.25rem}
  .search{
    grid-column:1/-1;
    grid-row:2/3;
    grid-template-columns:minmax(0,1fr) 64px;
    gap:8px;
  }
  .search input{height:54px;padding:0 16px;border-radius:16px;font-size:.98rem}
  .search button{width:64px;height:54px;min-height:54px;padding:0;border-radius:16px}
  .search__icon{display:inline;font-size:1.15rem;line-height:1}
  .search__text{display:none}
  .navcats__inner{padding-top:10px;padding-bottom:10px;gap:8px;scroll-snap-type:x proximity}
  .navcats__inner a{min-height:36px;padding:8px 12px;font-size:.86rem;scroll-snap-align:start}
  .navlink{display:none!important}

  .hero{margin-top:14px}
  .hero__inner{display:flex;flex-direction:column;gap:16px;padding:18px;border-radius:22px}
  .hero h1{font-size:clamp(1.75rem,8vw,2.35rem);line-height:1.06}
  .hero p{font-size:.95rem;line-height:1.5}
  .hero__badge{width:100%;gap:10px}
  .badge{width:100%;padding:12px 14px;border-radius:14px;font-size:.95rem}
  .hero__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
  .hero__actions .btn{width:100%;min-height:48px;padding:10px 12px;text-align:center;line-height:1.15}

  .product{grid-template-columns:1fr;gap:18px}
  .product__gallery{position:static}
  .product__main{border-radius:18px;max-height:none}
  .addcart__row{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}

  .thead{display:none}
  .trow{
    grid-template-columns:1fr;
    gap:8px;
    padding:14px 0;
  }
  .trow > div:not(.cartprod){
    display:flex;
    justify-content:space-between;
    gap:12px;
  }
  .trow > div::before{
    content:attr(data-label);
    color:var(--muted);
    font-size:.88rem;
  }
  .cartprod::before{display:none}
  .qty{justify-content:flex-start}
}
@media (max-width:700px){
  .footer{margin-top:28px}
  .footer__inner{padding-top:18px;padding-bottom:18px}
  .footer__grid{grid-template-columns:1fr;justify-items:center;text-align:center;gap:8px}
  .footer__copy{text-align:center;white-space:normal;font-size:.88rem}
  .footer__desc{font-size:.88rem}
  .filters{width:100%}
  .filters input,.filters select,.filters .btn{width:100%;min-width:0}
}
@media (max-width:560px){
  .section{margin:24px 0}
  .section__head{margin-bottom:12px}
  .section__head h1,
  .section__head h2,
  .section > h1,
  .section > h2{font-size:1.25rem}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .pcard{border-radius:16px;box-shadow:0 8px 22px rgba(0,0,0,.18)}
  .pcard:hover{transform:none}
  .pcard__body{padding:10px}
  .pcard__pill{margin-bottom:7px;padding:3px 7px;font-size:.68rem;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pcard__title{min-height:2.55em;margin-bottom:8px;font-size:.88rem;line-height:1.28;-webkit-line-clamp:2}
  .pcard__meta{display:block}
  .pcard__prices{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
  .pcard__meta .price{font-size:.95rem;line-height:1.12}
  .pcard__meta .price--old{font-size:.76rem;line-height:1.1}
  .pcard__views{display:none}
  .product{gap:14px}
  .product__head h1{font-size:1.45rem;line-height:1.12}
  .premiumPrice{gap:8px}
  .premiumPrice .price{font-size:1.55rem}
  .premiumPrice .price--old{font-size:.9rem}
  .benefits{padding:13px 14px;border-radius:16px}
  .stickyBuy{display:flex}
  body:has(.stickyBuy){padding-bottom:76px}
}
@media (max-width:380px){
  .container{padding-left:10px;padding-right:10px}
  .topbar__inner{grid-template-columns:50px minmax(0,1fr) 50px;gap:9px 7px}
  .brand--logo,.brand--logo img{width:50px;height:50px}
  .themeBtn,.cartlink{width:50px;height:50px;min-width:50px;border-radius:15px}
  .search{grid-template-columns:minmax(0,1fr) 58px}
  .search input,.search button{height:50px;min-height:50px;border-radius:15px}
  .search button{width:58px}
  .grid{gap:8px}
  .pcard__body{padding:9px}
  .pcard__title{font-size:.84rem}
  .pcard__meta .price{font-size:.88rem}
  .pcard__meta .price--old{font-size:.72rem}
}

/* =========================
   Notícias e publicidade
   ========================= */
.ad-slot{
  width:100%;
  min-height:96px;
  margin:22px 0;
  overflow:hidden;
  border-radius:16px;
}
.ad-slot--top{margin-top:0}
.ad-slot--article{min-height:250px;margin:0}
.ad-slot--placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px dashed var(--bd2);
  background:var(--surface);
  color:var(--muted);
  text-align:center;
}
.ad-slot__label{
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.ad-slot__hint{font-size:.84rem}
.adsbygoogle{min-width:250px}

.news-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.news-card{padding:0;overflow:hidden}
.news-card__media{
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
  background:var(--surface2);
}
.news-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.news-card:hover .news-card__media img{transform:scale(1.025)}
.news-card__placeholder{height:100%;display:grid;place-items:center;font-size:3rem}
.news-card__body{padding:18px}
.news-card__meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:var(--muted);font-size:.82rem}
.news-card h2{margin:0 0 9px;font-size:1.18rem;line-height:1.25}
.news-card p{margin:0 0 15px;line-height:1.55}
.news-card__link{color:var(--pri2);font-weight:800}
.empty-state{text-align:center;padding:38px 24px}
.empty-state h2{margin-top:0}

.news-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(260px,.8fr);align-items:start;gap:24px}
.news-article{padding:clamp(20px,4vw,42px)}
.news-back{display:inline-flex;margin-bottom:24px;color:var(--muted);font-weight:700}
.news-back:hover{color:var(--txt)}
.news-article__header h1{max-width:900px;margin:10px 0 10px;font-size:clamp(2rem,5vw,3.5rem);line-height:1.08}
.news-article__lead{margin:22px 0 0;color:var(--muted);font-size:1.18rem;line-height:1.6}
.news-article__cover{width:100%;max-height:620px;margin:30px 0;object-fit:cover;border-radius:16px}
.news-content{font-size:1.05rem;line-height:1.8}
.news-content p{margin:0 0 1.4em}
.news-aside{position:sticky;top:116px}

.form__section{padding-top:14px;border-top:1px solid var(--bd)}
.form__section h2{margin:0 0 6px}
.form__section p{margin:0}
.checkline{display:flex!important;flex-direction:row!important;align-items:center;gap:9px}
.checkline input[type="checkbox"]{width:auto;min-width:18px;height:18px;margin:0}
.table-wrap{overflow-x:auto}
.admin-cover-preview{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.admin-cover-preview img{width:160px;aspect-ratio:16/9;object-fit:cover;border-radius:12px;border:1px solid var(--bd)}
.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;border-color:color-mix(in srgb,var(--bad) 40%,var(--bd))}
.danger-zone p{margin:5px 0 0}
.btn--danger{background:var(--bad);border-color:var(--bad);color:#fff}
.btn--danger:hover{filter:brightness(1.05)}

@media (max-width:980px){
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .news-layout{grid-template-columns:1fr}
  .news-aside{position:static}
  .ad-slot--article{min-height:120px}
}
@media (max-width:620px){
  .news-grid{grid-template-columns:1fr}
  .news-card__body{padding:15px}
  .news-article{padding:18px}
  .news-article__header h1{font-size:1.85rem}
  .news-article__lead{font-size:1.02rem}
  .ad-slot{min-height:86px;margin:16px 0}
  .danger-zone{align-items:flex-start;flex-direction:column}
}
