:root{
  --brand:#155eef;
  --brand-2:#004eeb;
  --brand-3:#eff4ff;
  --brand-4:#d1e0ff;
  --buy:#ff6b00;
  --buy-hover:#e95f00;
  --sell:#12a150;
  --sell-hover:#0f8743;
  --warning:#f59e0b;
  --danger:#dc2626;

  --ink:#101828;
  --ink-2:#344054;
  --muted:#667085;
  --subtle:#98a2b3;
  --line:#e4e7ec;
  --line-strong:#d0d5dd;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --surface-3:#f2f4f7;
  --page:#f5f7fb;

  --radius-sm:10px;
  --radius:14px;
  --radius-lg:20px;
  --radius-xl:26px;

  --shadow-xs:0 1px 2px rgba(16,24,40,.05);
  --shadow-sm:0 4px 12px rgba(16,24,40,.06);
  --shadow-md:0 10px 28px rgba(16,24,40,.10);
  --shadow-lg:0 24px 60px rgba(16,24,40,.14);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:linear-gradient(180deg,#fff 0,#f6f8fc 28%,#f4f6fa 100%);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
body,button,input,select,textarea{font-family:inherit}
button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}
img{max-width:100%}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
svg{display:block}
.app-shell{
  width:100%;
  max-width:480px;
  min-height:100vh;
  margin:0 auto;
  background:var(--page);
  border-inline:1px solid rgba(228,231,236,.8);
  box-shadow:0 0 60px rgba(16,24,40,.05);
  position:relative;
  overflow-x:hidden;
  padding-bottom:82px;
}
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  padding:8px 10px 7px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(18px) saturate(150%);
  border-bottom:1px solid rgba(228,231,236,.9);
  transition:transform .24s ease,box-shadow .24s ease;
}
.site-header.is-scrolled{box-shadow:0 8px 26px rgba(16,24,40,.07)}
.header-main{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-mark{
  width:40px;height:40px;flex:0 0 40px;
  display:grid;place-items:center;
  border-radius:13px;
  background:linear-gradient(145deg,#2878ff,#155eef 65%,#004eeb);
  color:#fff;
  font-weight:950;
  letter-spacing:-.05em;
  box-shadow:0 8px 18px rgba(21,94,239,.25),inset 0 1px 0 rgba(255,255,255,.28);
}
.brand-copy{display:grid;line-height:1.03}
.brand-copy b{font-size:15px;letter-spacing:-.02em;color:#101828}
.brand-copy small{font-size:9px;color:var(--muted);margin-top:4px;letter-spacing:.02em}
.header-actions{display:flex;align-items:center;gap:7px}
.icon-action,.profile-action{
  width:39px;height:39px;display:grid;place-items:center;
  border:1px solid var(--line);background:#fff;border-radius:12px;
  box-shadow:var(--shadow-xs);position:relative;
}
.icon-action svg{width:20px;height:20px;fill:none;stroke:#344054;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-action:hover{border-color:#b2ccff;background:#f8fbff}
.action-badge{
  position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;
  padding:0 4px;border-radius:99px;background:var(--buy);color:#fff;
  border:2px solid #fff;display:grid;place-items:center;font-size:9px;font-weight:900
}
.profile-action{
  background:linear-gradient(145deg,#edf4ff,#fff);
  border-color:#c7d7fe;color:#155eef;font-weight:900
}
.login-action{
  min-height:39px;display:flex;align-items:center;padding:0 13px;
  border-radius:12px;background:var(--brand);color:#fff;font-size:12px;font-weight:850;
  box-shadow:0 7px 16px rgba(21,94,239,.18)
}
.site-main{padding:12px 12px 18px}
.toast-message{
  margin:0 0 10px;padding:11px 11px 11px 12px;border-radius:13px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:#ecfdf3;border:1px solid #abefc6;color:#067647;
  font-size:12px;font-weight:700;box-shadow:var(--shadow-xs);
  animation:toastIn .26s ease both;
}
.toast-message.error{background:#fef3f2;border-color:#fecdca;color:#b42318}
.toast-message.warn{background:#fffaeb;border-color:#fedf89;color:#b54708}
.toast-message button{border:0;background:transparent;color:currentColor;font-size:19px;line-height:1}
@keyframes toastIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

.market-ribbon{
  display:flex;align-items:center;justify-content:center;gap:6px;
  margin:0 0 10px;padding:8px 10px;border-radius:12px;
  background:linear-gradient(90deg,#fff8e8,#fffdf6);border:1px solid #f8e6b4;
  color:#7a4d00;font-size:10px;font-weight:900;
}
.market-hero{
  position:relative;overflow:hidden;border-radius:25px;
  padding:23px 20px 19px;margin-bottom:14px;
  background:
    radial-gradient(circle at 88% 18%,rgba(255,255,255,.19) 0 52px,transparent 53px),
    radial-gradient(circle at 102% 72%,rgba(255,255,255,.10) 0 88px,transparent 89px),
    linear-gradient(135deg,#0b4de8 0%,#155eef 50%,#2878ff 100%);
  color:#fff;box-shadow:0 17px 34px rgba(21,94,239,.22);
}
.hero-kicker{
  display:inline-flex;align-items:center;gap:6px;padding:6px 9px;margin-bottom:11px;
  border-radius:99px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.20);
  font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em
}
.market-hero h1{margin:0;max-width:330px;font-size:30px;line-height:1.02;letter-spacing:-.045em}
.market-hero p{max-width:340px;margin:10px 0 0;color:#dbe8ff;font-size:13px;line-height:1.47}
.hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.hero-actions .btn{min-height:40px}
.hero-actions .btn.primary{background:#fff;color:#174ea6;border-color:#fff;box-shadow:none}
.hero-actions .btn.green{background:#15a34a;color:#fff;border-color:#15a34a}
.trust-strip{
  display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 0 14px
}
.trust-item{
  min-width:0;padding:9px 7px;background:#fff;border:1px solid var(--line);
  border-radius:13px;box-shadow:var(--shadow-xs);text-align:center
}
.trust-icon{width:23px;height:23px;margin:0 auto 5px;display:grid;place-items:center;color:var(--brand)}
.trust-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.trust-item b{display:block;font-size:9px;color:#344054;line-height:1.2}
.search-section{margin-bottom:10px}
.searchbox{
  min-height:50px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:6px;
  padding:0 9px 0 13px;background:#fff;border:1px solid #d0d5dd;border-radius:15px;
  box-shadow:0 5px 16px rgba(16,24,40,.05);transition:border-color .15s,box-shadow .15s
}
.searchbox:focus-within{border-color:#84adff;box-shadow:0 0 0 4px rgba(21,94,239,.08)}
.searchbox>svg{width:19px;height:19px;fill:none;stroke:#667085;stroke-width:1.9;stroke-linecap:round}
.searchbox input{height:48px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important}
.search-clear{width:32px;height:32px;border:0;background:#f2f4f7;border-radius:9px;color:#667085;display:none}
.search-clear.visible{display:grid;place-items:center}
.search-sort{margin-top:8px}
.chips,.subchips{display:flex;gap:7px;overflow-x:auto;padding:3px 0 7px;scrollbar-width:none}
.chips::-webkit-scrollbar,.subchips::-webkit-scrollbar{display:none}
.chip,.subchip{
  flex:none;min-height:34px;display:flex;align-items:center;padding:0 11px;
  border:1px solid var(--line);background:#fff;border-radius:999px;
  color:#475467;font-size:11px;font-weight:800;box-shadow:var(--shadow-xs)
}
.chip.active{background:var(--brand);border-color:var(--brand);color:#fff}
.subchip{border-radius:10px;background:#eff4ff;border-color:#d1e0ff;color:#1849a9}
.subchip.active{background:#ff6b00;border-color:#ff6b00;color:#fff}
.section-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:12px;
  margin:15px 1px 10px
}
.section-head h1,.section-head h2{margin:0;font-size:18px;letter-spacing:-.025em}
.section-head .muted{font-size:10px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.card{
  min-width:0;background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;
  box-shadow:0 4px 13px rgba(16,24,40,.045);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease
}
.card:hover{transform:translateY(-2px);border-color:#d0d5dd;box-shadow:0 11px 25px rgba(16,24,40,.085)}
.product-img{position:relative;aspect-ratio:1/1;background:#eef2f7;overflow:hidden}
.product-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .22s ease}
.card:hover .product-img img{transform:scale(1.028)}
.badge{
  position:absolute;left:7px;top:7px;max-width:calc(100% - 14px);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  padding:5px 7px;border-radius:8px;background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.75);color:#344054;font-size:8px;font-weight:900;
  box-shadow:0 3px 9px rgba(16,24,40,.10);backdrop-filter:blur(8px)
}
.sponsored-badge{background:#fdb022;color:#7a2e0e}
.card-body{padding:9px}
.title{min-height:32px;font-size:12.5px;line-height:1.27;font-weight:850;color:#1d2939;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.price{margin:5px 0 3px;font-size:17px;font-weight:950;color:#101828;letter-spacing:-.025em}
.sellerline{font-size:9.5px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card form{margin-top:8px}
.card .btn{width:100%;min-height:36px;padding:7px 8px;border-radius:10px;font-size:10.5px}
.btn{
  min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:9px 13px;border:1px solid var(--line-strong);border-radius:11px;
  background:#fff;color:#344054;font-weight:850;font-size:12px;
  box-shadow:var(--shadow-xs);transition:transform .12s,background .12s,border-color .12s,box-shadow .12s
}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--buy);border-color:var(--buy);color:#fff;box-shadow:0 6px 14px rgba(255,107,0,.16)}
.btn.primary:hover{background:var(--buy-hover);border-color:var(--buy-hover)}
.btn.green{background:var(--sell);border-color:var(--sell);color:#fff}
.btn.green:hover{background:var(--sell-hover)}
.btn.blue{background:var(--brand);border-color:var(--brand);color:#fff}
.btn.red{background:#fef3f2;border-color:#fecdca;color:#b42318}
.btn.small{min-height:32px;padding:6px 9px;font-size:10px}
.panel{
  padding:15px;margin-bottom:11px;background:#fff;border:1px solid var(--line);
  border-radius:18px;box-shadow:var(--shadow-xs)
}
.panel h1{margin:0 0 5px;font-size:23px;letter-spacing:-.035em}
.panel h2{font-size:17px;letter-spacing:-.02em}
.panel h3{font-size:14px}
.panel-intro{margin:0 0 15px;color:var(--muted);font-size:12px;line-height:1.5}
.formgrid,.form{display:grid;gap:11px}
.field label{display:block;margin-bottom:5px;color:#344054;font-size:11px;font-weight:850}
.field small{display:block;margin-top:5px;color:#667085;font-size:9.5px;line-height:1.35}
input,select,textarea{
  width:100%;min-height:43px;padding:10px 11px;border:1px solid #d0d5dd;border-radius:11px;
  background:#fff;color:#101828;outline:none;box-shadow:var(--shadow-xs);
  transition:border-color .15s,box-shadow .15s
}
textarea{min-height:92px;resize:vertical;line-height:1.45}
input:focus,select:focus,textarea:focus{border-color:#84adff;box-shadow:0 0 0 4px rgba(21,94,239,.08)}
input::placeholder,textarea::placeholder{color:#98a2b3}
.auth-shell{padding:7px 0}
.auth-card{padding:19px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-sm)}
.auth-icon{width:48px;height:48px;display:grid;place-items:center;margin-bottom:14px;border-radius:15px;background:#eff4ff;color:#155eef}
.auth-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-card h1{margin:0;font-size:24px;letter-spacing:-.04em}
.auth-card>p{margin:6px 0 17px;color:#667085;font-size:12px;line-height:1.48}
.password-wrap{position:relative}
.password-wrap input{padding-right:48px}
.password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:34px;border:0;border-radius:8px;background:#f2f4f7;color:#475467;font-size:10px;font-weight:800}
.auth-foot{text-align:center;margin-top:13px;color:#667085;font-size:11px}
.auth-foot a{color:#155eef;font-weight:850}
.note,.warnbox{
  padding:11px;border-radius:12px;font-size:11px;line-height:1.45
}
.note{background:#eff8ff;border:1px solid #b2ddff;color:#175cd3}
.warnbox{background:#fffaeb;border:1px solid #fedf89;color:#b54708}
.muted{color:#667085;font-size:11px}
.status{
  display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border-radius:999px;
  background:#f2f4f7;color:#475467;font-size:9.5px;font-weight:850
}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.stat{padding:12px;background:#fff;border:1px solid var(--line);border-radius:14px}
.stat strong{display:block;color:#155eef;font-size:19px;letter-spacing:-.03em}
.stat span{font-size:9.5px;color:#667085}
.order-item{
  display:grid;grid-template-columns:54px 1fr auto;gap:9px;align-items:center;
  padding:10px 0;border-bottom:1px solid var(--line)
}
.order-item:last-child{border-bottom:0}
.order-item img{width:54px;height:54px;border-radius:12px;object-fit:cover;background:#f2f4f7}
.cart-qty{display:flex;align-items:center;gap:5px}
.cart-qty input{width:54px;min-height:35px;padding:5px;text-align:center}
.totals{display:grid;gap:7px;margin-top:12px}
.totals>div{display:flex;justify-content:space-between;gap:10px}
.totals .grand{padding-top:11px;border-top:1px solid var(--line);font-size:18px;font-weight:900}
.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:13px}
table{width:100%;border-collapse:collapse;min-width:610px;background:#fff}
th,td{padding:10px;border-bottom:1px solid var(--line);text-align:left;font-size:10.5px;vertical-align:middle}
th{background:#f9fafb;color:#667085;text-transform:uppercase;letter-spacing:.05em;font-size:8.5px}
.messages{display:grid;gap:7px;margin-top:10px}
.message{max-width:88%;padding:9px 10px;border-radius:13px 13px 13px 4px;background:#f2f4f7}
.message.me{margin-left:auto;background:#eaf1ff;border-radius:13px 13px 4px 13px}
.message b{font-size:10px}.message p{margin:3px 0;font-size:11px;line-height:1.42}
.empty{text-align:center;padding:28px 14px;color:#667085;background:#fff;border:1px dashed #d0d5dd;border-radius:15px;grid-column:1/-1;font-size:11px}
.product-taxonomy{display:flex;gap:6px;flex-wrap:wrap}
.product-detail-photo{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:17px;background:#eef2f7}
.product-detail-title{margin:13px 0 2px!important}
.product-detail-price{font-size:28px!important}
.spec-section{margin:17px 0;padding-top:14px;border-top:1px solid var(--line)}
.spec-section h2{margin:0 0 9px}
.spec-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.spec-item{padding:9px;background:#f9fafb;border:1px solid var(--line);border-radius:10px}
.spec-item span{display:block;margin-bottom:3px;color:#667085;font-size:8.5px;font-weight:750}
.spec-item b{display:block;font-size:10.5px;color:#344054}
.mobile-nav{
  position:fixed;z-index:120;left:50%;bottom:0;transform:translateX(-50%);
  width:min(480px,100%);min-height:70px;display:grid;grid-template-columns:repeat(5,1fr);
  align-items:end;padding:5px 4px max(7px,env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96);backdrop-filter:blur(18px) saturate(145%);
  border-top:1px solid rgba(228,231,236,.95);box-shadow:0 -12px 30px rgba(16,24,40,.07)
}
.mobile-nav>a{
  min-width:0;height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;color:#667085;font-size:8.5px;font-weight:800
}
.mobile-nav>a.active{color:#155eef}
.nav-svg{width:22px;height:22px;position:relative}
.nav-svg svg,.sell-nav-button svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.sell-nav{color:#12a150!important}
.sell-nav-button{
  width:42px;height:42px;margin-top:-17px;margin-bottom:2px;display:grid;place-items:center;
  padding:9px;border:4px solid #fff;border-radius:14px;background:#12a150;color:#fff;
  box-shadow:0 8px 18px rgba(18,161,80,.24)
}
.nav-cart b{
  position:absolute;right:-10px;top:-8px;min-width:17px;height:17px;padding:0 4px;
  display:grid;place-items:center;border-radius:99px;background:#ff6b00;color:#fff;
  border:2px solid #fff;font-size:8px
}
@media(min-width:700px){
  body{background:#fff}
  .app-shell{box-shadow:0 0 70px rgba(16,24,40,.08)}
}
@media(max-width:370px){
  .market-hero h1{font-size:27px}
  .brand-copy small{display:none}
  .grid{gap:7px}
  .card-body{padding:8px}
  .trust-item{padding-inline:5px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}

/* Marketplace product card inspired by compact commerce apps */
.marketplace-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.market-card{display:block;min-width:0;background:#fff;border:1px solid #dfe3e8;border-radius:6px;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.05);transition:transform .14s ease,box-shadow .14s ease}
.market-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(16,24,40,.10)}
.market-card-image{position:relative;aspect-ratio:1/1;background:#f5f5f5;overflow:hidden}
.market-card-image img{width:100%;height:100%;display:block;object-fit:cover}
.discount-corner{position:absolute;right:0;top:0;padding:4px 6px;background:#fff1e8;color:#e54800;border-radius:0 0 0 7px;font-size:10px;font-weight:900}
.market-card-body{padding:8px 8px 9px}
.market-card-body h3{height:34px;margin:0 0 5px;color:#1d2939;font-size:12px;line-height:1.38;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.old-price{height:13px;color:#98a2b3;font-size:9px;text-decoration:line-through}
.market-price{color:#f04400;font-size:16px;line-height:1.15;font-weight:800;letter-spacing:-.02em}
.market-price small{font-size:8px;font-weight:700;color:#f04400}
.market-meta{display:flex;justify-content:space-between;gap:5px;margin-top:6px;color:#667085;font-size:8.5px}
.market-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.market-meta span:last-child{text-align:right}

.product-gallery{width:100%}
.gallery-main{position:relative;aspect-ratio:1/1;border-radius:15px;overflow:hidden;background:#f2f4f7}
.gallery-main>img{width:100%;height:100%;object-fit:cover;display:block}
.detail-discount{position:absolute;right:9px;top:9px;padding:6px 8px;border-radius:8px;background:#fff1e8;color:#e54800;font-size:11px;font-weight:900;box-shadow:0 3px 10px #10182818}
.gallery-thumbs{display:flex;gap:7px;overflow-x:auto;padding:8px 1px 2px;scrollbar-width:none}
.gallery-thumbs::-webkit-scrollbar{display:none}
.gallery-thumb{flex:0 0 58px;width:58px;height:58px;padding:2px;border:1.5px solid #e4e7ec;border-radius:10px;background:#fff;overflow:hidden}
.gallery-thumb.active{border-color:#155eef;box-shadow:0 0 0 2px #155eef15}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:7px}
.detail-old-price{margin-top:8px;color:#98a2b3;font-size:11px;text-decoration:line-through}
.product-detail-price small{font-size:10px;color:#f04400;font-weight:700}
.detail-sold{margin:-1px 0 12px;color:#667085;font-size:10px}

@media(max-width:370px){
  .market-card-body h3{font-size:11.5px}
  .market-price{font-size:15px}
}


/* =========================================================
   GALERIA DE PRODUTO — AMPLIAR + CARROSSEL MANUAL
   ========================================================= */

.gallery-main-open{
  width:100%;
  height:100%;
  display:block;
  position:relative;
  padding:0;
  border:0;
  background:transparent;
  cursor:zoom-in;
}

.gallery-main-open>img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#fff;
}

.gallery-zoom-badge{
  position:absolute;
  right:10px;
  bottom:10px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:#155eef;
  border:1px solid #e4e7ec;
  box-shadow:0 5px 16px rgba(16,24,40,.14);
}

.gallery-zoom-badge svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.gallery-strip-wrap{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 32px;
  gap:4px;
  align-items:center;
  margin-top:7px;
}

.gallery-strip-arrow{
  width:32px;
  height:50px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #e4e7ec;
  background:#fff;
  color:#344054;
  border-radius:9px;
  font-size:23px;
  line-height:1;
}

.gallery-strip-arrow:active{
  background:#eff4ff;
  color:#155eef;
}

.gallery-thumbs{
  padding:1px;
  gap:6px;
}

.gallery-thumb{
  flex:0 0 54px;
  width:54px;
  height:54px;
}

.gallery-photo-count{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:3px;
  margin-top:5px;
  color:#667085;
  font-size:9px;
}

.gallery-photo-count button{
  margin-left:6px;
  padding:0;
  border:0;
  background:transparent;
  color:#155eef;
  font-size:9px;
  font-weight:850;
}

body.lightbox-open{
  overflow:hidden;
}

.product-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:14px;
}

.product-lightbox.open{
  display:flex;
}

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,20,.86);
  backdrop-filter:blur(6px);
}

.lightbox-panel{
  position:relative;
  z-index:1;
  width:min(940px,100%);
  max-height:calc(100vh - 28px);
  display:flex;
  flex-direction:column;
  border-radius:18px;
  overflow:hidden;
  background:#111827;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 24px 80px rgba(0,0,0,.38);
}

.lightbox-top{
  min-height:52px;
  padding:8px 10px 8px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#fff;
  font-size:11px;
}

.lightbox-close{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.15);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:25px;
}

.lightbox-stage{
  min-height:0;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#05070b;
}

.lightbox-stage>img{
  display:block;
  max-width:100%;
  max-height:calc(100vh - 170px);
  object-fit:contain;
  user-select:none;
}

.lightbox-arrow{
  position:absolute;
  top:50%;
  z-index:3;
  width:46px;
  height:58px;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(17,24,39,.72);
  color:#fff;
  border-radius:12px;
  font-size:36px;
}

.lightbox-arrow.prev{
  left:10px;
}

.lightbox-arrow.next{
  right:10px;
}

.lightbox-thumbs{
  display:flex;
  justify-content:center;
  gap:7px;
  overflow-x:auto;
  padding:10px;
  background:#111827;
  scrollbar-width:none;
}

.lightbox-thumbs::-webkit-scrollbar{
  display:none;
}

.lightbox-thumb{
  flex:0 0 58px;
  width:58px;
  height:58px;
  padding:2px;
  border:2px solid transparent;
  border-radius:9px;
  background:#1f2937;
  overflow:hidden;
}

.lightbox-thumb.active{
  border-color:#60a5fa;
}

.lightbox-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:6px;
}


/* =========================================================
   CARRINHO — LINK DO PRODUTO + EXCLUIR
   ========================================================= */

.cart-panel{
  padding:14px;
}

.cart-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.cart-title-row h1{
  margin-bottom:3px;
}

.cart-items-count{
  flex:none;
  padding:5px 8px;
  border-radius:999px;
  background:#eff4ff;
  color:#155eef;
  font-size:8.5px;
  font-weight:850;
}

.cart-list{
  display:grid;
  gap:0;
}

.cart-product{
  display:grid;
  grid-template-columns:66px minmax(0,1fr) auto;
  gap:10px;
  padding:12px 0;
  border-bottom:1px solid #e4e7ec;
  position:relative;
}

.cart-product-image{
  width:66px;
  height:66px;
  display:block;
  border-radius:11px;
  overflow:hidden;
  border:1px solid #e4e7ec;
  background:#f2f4f7;
}

.cart-product-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.cart-product-info{
  min-width:0;
}

.cart-product-title{
  display:-webkit-box;
  overflow:hidden;
  color:#1d2939;
  font-size:11px;
  line-height:1.35;
  font-weight:800;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.cart-product-title:hover{
  color:#155eef;
}

.cart-seller{
  margin-top:2px;
  color:#667085;
  font-size:8.5px;
}

.cart-unit-price{
  margin-top:4px;
  color:#f04400;
  font-size:12px;
  font-weight:900;
}

.cart-view-product{
  display:inline-block;
  margin-top:4px;
  color:#155eef;
  font-size:8.5px;
  font-weight:850;
}

.cart-product-actions{
  min-width:82px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.cart-quantity-form{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
}

.cart-quantity-form label{
  display:flex;
  align-items:center;
  gap:4px;
  color:#667085;
  font-size:8px;
}

.cart-quantity-form input{
  width:48px;
  min-height:32px;
  padding:4px;
  text-align:center;
}

.cart-update-button{
  min-height:28px;
  padding:4px 7px;
  border:1px solid #d0d5dd;
  border-radius:8px;
  background:#fff;
  color:#344054;
  font-size:8px;
  font-weight:850;
}

.cart-remove-button{
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:3px 2px;
  border:0;
  background:transparent;
  color:#d92d20;
  font-size:8.5px;
  font-weight:850;
}

.cart-remove-button svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.cart-subtotal{
  grid-column:2 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:-4px;
  padding-top:7px;
  border-top:1px dashed #eaecf0;
  color:#667085;
  font-size:8.5px;
}

.cart-subtotal b{
  color:#344054;
  font-size:10.5px;
}

.cart-total-box{
  margin-top:12px;
  padding:12px;
  border:1px solid #e4e7ec;
  border-radius:12px;
  background:#f9fafb;
}

.cart-total-box>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.cart-total-box span{
  font-size:12px;
  font-weight:850;
}

.cart-total-box strong{
  font-size:18px;
  letter-spacing:-.03em;
}

.cart-total-box small{
  display:block;
  margin-top:5px;
  color:#667085;
  font-size:8.5px;
}

.cart-checkout-button{
  width:100%;
  margin-top:10px;
}

@media(max-width:380px){
  .cart-product{
    grid-template-columns:60px minmax(0,1fr);
  }

  .cart-product-image{
    width:60px;
    height:60px;
  }

  .cart-product-actions{
    grid-column:2;
    min-width:0;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }

  .cart-quantity-form{
    flex-direction:row;
    align-items:center;
  }

  .cart-subtotal{
    grid-column:2;
  }

  .lightbox-arrow{
    width:40px;
    height:50px;
  }

  .lightbox-arrow.prev{
    left:5px;
  }

  .lightbox-arrow.next{
    right:5px;
  }
}


/* =========================================================
   TIPOGRAFIA LEGÍVEL — LOJA MOBILE
   ========================================================= */

html{
  font-size:16px;
}

html,
body,
.app-shell,
button,
input,
select,
textarea{
  font-family:
    "Segoe UI Variable",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif !important;
}

body{
  font-size:16px;
  line-height:1.45;
  letter-spacing:0;
}

h1,h2,h3,h4,h5,h6,
.brand-copy,
.market-card-body,
.panel,
.btn{
  font-family:
    "Segoe UI Variable",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif !important;
}

h1,h2,h3,h4,h5,h6{
  color:#101828;
  font-weight:750;
}

input,
select,
textarea{
  font-size:16px !important;
}

/* Header */
.brand-copy b{
  font-size:16px !important;
  font-weight:800;
}

.brand-copy small{
  font-size:11px !important;
  line-height:1.25;
}

.login-action{
  font-size:14px;
}

/* Cards da vitrine */
.market-card-body h3{
  height:42px;
  font-size:14px;
  line-height:1.45;
  font-weight:650;
}

.old-price{
  font-size:11px;
}

.market-price{
  font-size:18px;
  line-height:1.2;
}

.market-price small{
  font-size:10px;
}

.market-meta{
  margin-top:7px;
  font-size:10.5px;
  line-height:1.3;
}

/* Textos gerais */
.panel h1{
  font-size:24px;
  line-height:1.15;
}

.panel h2{
  font-size:19px;
  line-height:1.25;
}

.panel-intro{
  font-size:14px;
  line-height:1.5;
}

.muted{
  font-size:12px;
}

.btn{
  min-height:44px;
  font-size:14px;
}

/* =========================================================
   CARRINHO — TAMANHOS PARA LEITURA E TOQUE
   ========================================================= */

.cart-panel{
  padding:16px;
}

.cart-title-row h1{
  margin:0 0 5px;
  font-size:25px;
  line-height:1.12;
  font-weight:800;
  letter-spacing:-.025em;
}

.cart-title-row .panel-intro{
  margin:0;
  font-size:14px;
  line-height:1.45;
}

.cart-items-count{
  padding:7px 10px;
  font-size:11px;
}

.cart-product{
  grid-template-columns:82px minmax(0,1fr) auto;
  gap:12px;
  padding:15px 0;
}

.cart-product-image{
  width:82px;
  height:82px;
  border-radius:13px;
}

.cart-product-title{
  font-size:15px;
  line-height:1.38;
  font-weight:750;
}

.cart-seller{
  margin-top:4px;
  font-size:12px;
  line-height:1.35;
}

.cart-unit-price{
  margin-top:5px;
  font-size:17px;
  line-height:1.2;
}

.cart-view-product{
  margin-top:6px;
  font-size:12px;
  line-height:1.3;
}

.cart-product-actions{
  min-width:94px;
  gap:9px;
}

.cart-quantity-form{
  gap:6px;
}

.cart-quantity-form label{
  gap:6px;
  font-size:12px;
  font-weight:700;
}

.cart-quantity-form input{
  width:56px;
  min-height:42px;
  padding:6px;
  border-radius:10px;
  font-size:16px !important;
}

/* Botão circular atualizar */
.cart-update-button{
  width:42px;
  height:42px;
  min-height:42px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid #d0d5dd;
  border-radius:50%;
  background:#fff;
  color:#155eef;
  box-shadow:0 2px 6px rgba(16,24,40,.08);
}

.cart-update-button:active{
  background:#eff4ff;
  transform:scale(.96);
}

.cart-refresh-icon{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transform-origin:center;
}

.cart-update-button.is-updating .cart-refresh-icon{
  animation:cartRefreshSpin .7s linear infinite;
}

.cart-update-button:disabled{
  opacity:.72;
  cursor:wait;
}

@keyframes cartRefreshSpin{
  to{transform:rotate(360deg)}
}

.cart-remove-button{
  min-height:38px;
  gap:5px;
  padding:6px 4px;
  font-size:12px;
}

.cart-remove-button svg{
  width:17px;
  height:17px;
}

.cart-subtotal{
  margin-top:0;
  padding-top:9px;
  font-size:12px;
}

.cart-subtotal b{
  font-size:14px;
}

.cart-total-box{
  margin-top:15px;
  padding:15px;
  border-radius:14px;
}

.cart-total-box span{
  font-size:16px;
}

.cart-total-box strong{
  font-size:23px;
}

.cart-total-box small{
  margin-top:6px;
  font-size:11px;
  line-height:1.4;
}

.cart-checkout-button{
  min-height:50px;
  margin-top:12px;
  font-size:15px;
  font-weight:800;
}

/* Texto visualmente oculto, acessível a leitores de tela */
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* Mobile estreito: continua legível sem precisar dar zoom */
@media(max-width:420px){
  .site-main{
    padding-left:10px;
    padding-right:10px;
  }

  .cart-panel{
    padding:14px;
  }

  .cart-product{
    grid-template-columns:76px minmax(0,1fr);
    gap:11px;
  }

  .cart-product-image{
    width:76px;
    height:76px;
  }

  .cart-product-actions{
    grid-column:2;
    min-width:0;
    width:100%;
    margin-top:3px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }

  .cart-quantity-form{
    flex-direction:row;
    align-items:center;
  }

  .cart-subtotal{
    grid-column:2;
  }

  .cart-title-row{
    align-items:center;
  }
}

@media(max-width:350px){
  .cart-title-row h1{
    font-size:23px;
  }

  .cart-product-title{
    font-size:14px;
  }

  .cart-product-image{
    width:70px;
    height:70px;
  }

  .cart-product{
    grid-template-columns:70px minmax(0,1fr);
  }
}


/* =========================================================
   MODAL PRÓPRIO VITRINE JÁ
   ========================================================= */

body.store-modal-open{
  overflow:hidden;
}

.store-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

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

.store-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(4px);
  animation:storeBackdropIn .18s ease both;
}

.store-modal-card{
  position:relative;
  z-index:1;
  width:min(360px,100%);
  padding:22px 20px 18px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(228,231,236,.95);
  box-shadow:0 28px 70px rgba(15,23,42,.28);
  text-align:center;
  animation:storeModalIn .22s cubic-bezier(.2,.8,.2,1) both;
}

.store-modal-icon{
  width:52px;
  height:52px;
  margin:0 auto 13px;
  display:grid;
  place-items:center;
  border-radius:16px;
}

.store-modal-icon.danger{
  background:#fef3f2;
  color:#d92d20;
  border:1px solid #fecdca;
}

.store-modal-icon svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.store-modal-card h2{
  margin:0;
  color:#101828;
  font-size:21px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.02em;
}

.store-modal-card p{
  margin:9px auto 0;
  max-width:290px;
  color:#667085;
  font-size:14px;
  line-height:1.5;
}

.store-modal-card p strong{
  color:#344054;
  font-weight:800;
}

.store-modal-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:20px;
}

.store-modal-cancel,
.store-modal-confirm{
  min-height:46px;
  border-radius:12px;
  font-size:14px;
  font-weight:800;
  transition:transform .12s ease,background .12s ease,border-color .12s ease;
}

.store-modal-cancel{
  border:1px solid #d0d5dd;
  background:#fff;
  color:#344054;
}

.store-modal-cancel:active{
  background:#f9fafb;
  transform:scale(.98);
}

.store-modal-confirm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid #d92d20;
  background:#d92d20;
  color:#fff;
  box-shadow:0 7px 15px rgba(217,45,32,.18);
}

.store-modal-confirm:active{
  background:#b42318;
  border-color:#b42318;
  transform:scale(.98);
}

.store-modal-confirm svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.store-modal-confirm.is-loading{
  color:transparent;
  position:relative;
}

.store-modal-confirm.is-loading svg{
  display:none;
}

.store-modal-confirm.is-loading::after{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  border:2px solid rgba(255,255,255,.45);
  border-top-color:#fff;
  border-radius:50%;
  animation:storeButtonSpin .65s linear infinite;
}

@keyframes storeBackdropIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes storeModalIn{
  from{opacity:0;transform:translateY(14px) scale(.97)}
  to{opacity:1;transform:none}
}

@keyframes storeButtonSpin{
  to{transform:rotate(360deg)}
}

@media(max-width:380px){
  .store-modal{
    padding:14px;
  }

  .store-modal-card{
    padding:20px 16px 16px;
    border-radius:20px;
  }

  .store-modal-card h2{
    font-size:20px;
  }

  .store-modal-card p{
    font-size:13px;
  }
}
