/* Toggle tema */
.rw-tema-switch{display:inline-flex;border:1px solid #333;border-radius:8px;overflow:hidden;background:#111;flex-shrink:0}
.rw-tema-opt{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:none;background:transparent;color:#888;font-size:.68rem;font-weight:700;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap;line-height:1.3}
.rw-tema-opt:hover{color:#ccc}
.rw-tema-opt.on{background:#2a2200;color:#D4AF37}
.rw-tema-loja .rw-tema-opt.on{background:rgba(212,175,55,.2)}
.rw-tema-switch .rw-tema-lbl{font-size:.68rem}
@media(max-width:520px){
  .rw-tema-loja .rw-tema-lbl{display:none}
  .rw-tema-loja .rw-tema-opt{padding:4px 8px}
}

html[data-theme="light"] .rw-tema-switch{background:var(--rw-l-surface,#e6e9e4);border-color:var(--rw-l-border,#b8bfb4)}
html[data-theme="light"] .rw-tema-opt{color:var(--rw-l-muted,#5a6158)}
html[data-theme="light"] .rw-tema-opt.on{background:var(--rw-l-highlight,#d9cfb0);color:var(--rw-l-accent,#856d1a)}

/* ── Loja + base — tema claro suave (sem branco puro) ── */
html[data-theme="light"]{
  --rw-l-bg:#d2d8d0;
  --rw-l-surface:#e4e8e2;
  --rw-l-surface-2:#ecefe9;
  --rw-l-border:#b4bbb0;
  --rw-l-text:#2a2e28;
  --rw-l-muted:#5a6158;
  --rw-l-accent:#856d1a;
  --rw-l-accent-soft:#c9b88a;
  --rw-l-highlight:#d4c9a8;
  --preto:var(--rw-l-bg);
  --creme:var(--rw-l-text);
  --texto:var(--rw-l-text);
  --cinza:var(--rw-l-surface);
  --cinza2:var(--rw-l-surface-2);
  --muted:var(--rw-l-muted);
}

html[data-theme="light"] body{
  background:var(--rw-l-bg);
  color:var(--rw-l-text);
}

html[data-theme="light"] .seller-bar{
  background:var(--rw-l-surface);
  border-bottom-color:var(--rw-l-border);
  color:var(--rw-l-muted);
}
html[data-theme="light"] .seller-link{color:var(--rw-l-muted)}
html[data-theme="light"] .seller-link:hover,
html[data-theme="light"] .seller-link-active{color:var(--rw-l-accent)}
html[data-theme="light"] .seller-sep{color:var(--rw-l-border)}
html[data-theme="light"] .seller-panel-user{color:var(--rw-l-text)}

html[data-theme="light"] .faixa-frete-gratis{
  background:linear-gradient(90deg,#d9cfb0,#cfc4a0);
  color:var(--rw-l-text);
  border-bottom-color:var(--rw-l-border);
}
html[data-theme="light"] .faixa-frete-gratis strong{color:var(--rw-l-accent)}

html[data-theme="light"] header,
html[data-theme="light"] header.site-header{
  background:var(--rw-l-surface);
  border-bottom-color:var(--rw-l-border);
}
html[data-theme="light"] .header-nav a{color:var(--rw-l-muted);opacity:1}
html[data-theme="light"] .header-nav a:hover{color:var(--rw-l-accent);opacity:1}
html[data-theme="light"] .btn-conta{color:var(--rw-l-text);border-color:var(--rw-l-border)}
html[data-theme="light"] .btn-icon{border-color:var(--rw-l-border);color:var(--rw-l-text)}
html[data-theme="light"] .btn-user{background:var(--rw-l-surface-2);border-color:var(--rw-l-border);color:var(--rw-l-text)}
html[data-theme="light"] .menu-toggle{border-color:var(--rw-l-border);color:var(--rw-l-text)}

html[data-theme="light"] .header-top{background:var(--rw-l-surface-2);border-bottom-color:var(--rw-l-border)}
html[data-theme="light"] .header-entrega{color:var(--rw-l-text)}
html[data-theme="light"] .muted-top{color:var(--rw-l-muted)}

html[data-theme="light"] .mobile-menu{background:var(--rw-l-surface);border-bottom-color:var(--rw-l-border)}
html[data-theme="light"] .mobile-menu a{color:var(--rw-l-text);border-bottom-color:var(--rw-l-border)}

html[data-theme="light"] .hero{
  background:linear-gradient(160deg,#cdd3cb 0%,#d4d9d2 45%,#c8cec4 100%);
  border-bottom-color:var(--rw-l-border);
}
html[data-theme="light"] .hero h1{color:var(--rw-l-accent)}
html[data-theme="light"] .hero-sub{color:var(--rw-l-muted)}
html[data-theme="light"] .hero-versic{color:#6d5a20}
html[data-theme="light"] .hero-frete-gratis{
  color:var(--rw-l-text);
  background:rgba(133,109,26,.12);
  border-color:var(--rw-l-accent-soft);
}

html[data-theme="light"] .section-titulo h2{color:var(--rw-l-text)}
html[data-theme="light"] .section-titulo h2 span{color:var(--rw-l-accent)}

html[data-theme="light"] .produto-card{
  background:var(--rw-l-surface);
  border-color:var(--rw-l-border);
  box-shadow:0 1px 2px rgba(40,48,36,.08);
}
html[data-theme="light"] .prod-img{background:var(--rw-l-surface-2)}
html[data-theme="light"] .prod-nome{color:var(--rw-l-text)}
html[data-theme="light"] .fav-btn{background:var(--rw-l-surface-2);border-color:var(--rw-l-border);color:var(--rw-l-text)}

html[data-theme="light"] footer{
  background:#4a5048;
  border-top-color:#3a4038;
  color:#c8cdc4;
}
html[data-theme="light"] footer .footer-logo{color:var(--rw-l-accent-soft)}
html[data-theme="light"] footer p{color:#b8bdb6}
html[data-theme="light"] footer a{color:#9a9080}

html[data-theme="light"] .conta-sidebar{border-right-color:var(--rw-l-border)}
html[data-theme="light"] .conta-nav a{color:var(--rw-l-muted)}
html[data-theme="light"] .conta-nav a:hover,
html[data-theme="light"] .conta-nav a.active{background:var(--rw-l-highlight);color:var(--rw-l-accent)}
html[data-theme="light"] .conta-empty{background:var(--rw-l-surface);border-color:var(--rw-l-border);color:var(--rw-l-muted)}
html[data-theme="light"] .form-row input{background:var(--rw-l-surface-2);border-color:var(--rw-l-border);color:var(--rw-l-text)}
html[data-theme="light"] .form-readonly{background:var(--rw-l-bg);border-color:var(--rw-l-border);color:var(--rw-l-muted)}

html[data-theme="light"] .marca-wrap p{color:var(--rw-l-muted)}

html[data-theme="light"] .vend-hero h1{color:var(--rw-l-accent)}
html[data-theme="light"] .vend-card{background:var(--rw-l-surface);border-color:var(--rw-l-border)}
html[data-theme="light"] .vend-card h2{color:var(--rw-l-text)}
html[data-theme="light"] .vend-form{background:var(--rw-l-surface);border-color:var(--rw-l-border)}
html[data-theme="light"] .vend-form input,
html[data-theme="light"] .vend-form textarea{background:var(--rw-l-surface-2);border-color:var(--rw-l-border);color:var(--rw-l-text)}

html[data-theme="light"] .sp-page{background:var(--rw-l-bg)}

/* Checkout */
html[data-theme="light"] .ck .card{
  background:var(--rw-l-surface)!important;
  border-color:var(--rw-l-border)!important;
}
html[data-theme="light"] .ck .card h3{color:var(--rw-l-accent)!important}
html[data-theme="light"] .ck label{color:var(--rw-l-muted)!important}
html[data-theme="light"] .ck input,
html[data-theme="light"] .ck select,
html[data-theme="light"] .ck textarea{
  background:var(--rw-l-surface-2)!important;
  border-color:var(--rw-l-border)!important;
  color:var(--rw-l-text)!important;
}
html[data-theme="light"] .ck .frete-op{border-color:var(--rw-l-border)!important;background:var(--rw-l-surface-2)!important}
html[data-theme="light"] .ck .frete-op.sel{border-color:var(--rw-l-accent-soft)!important;background:var(--rw-l-highlight)!important}
html[data-theme="light"] .ck .pay-btn{background:var(--rw-l-surface-2)!important;border-color:var(--rw-l-border)!important;color:var(--rw-l-text)!important}
html[data-theme="light"] .ck .pay-btn.sel{border-color:var(--rw-l-accent)!important;color:var(--rw-l-accent)!important}
html[data-theme="light"] .ck .addr-opt{border-color:var(--rw-l-border)!important;background:var(--rw-l-surface-2)!important}
html[data-theme="light"] .ck .addr-opt.sel{border-color:var(--rw-l-accent-soft)!important;background:var(--rw-l-highlight)!important}
html[data-theme="light"] .ck .addr-opt strong{color:var(--rw-l-text)!important}
html[data-theme="light"] .ck .res-item{color:var(--rw-l-muted)!important}
html[data-theme="light"] .ck .btn-sec{background:var(--rw-l-border)!important;color:var(--rw-l-text)!important}

/* Login loja */
html[data-theme="light"] body.login-page{background:var(--rw-l-bg)!important;color:var(--rw-l-text)!important}
html[data-theme="light"] .login-page .box{background:var(--rw-l-surface)!important;border-color:var(--rw-l-border)!important}
html[data-theme="light"] .login-page .box-header{border-bottom-color:var(--rw-l-border)!important}
html[data-theme="light"] .login-page .tabs{border-bottom-color:var(--rw-l-border)!important}
html[data-theme="light"] .login-page .tab{color:var(--rw-l-muted)!important}
html[data-theme="light"] .login-page label{color:var(--rw-l-muted)!important}
html[data-theme="light"] .login-page input{background:var(--rw-l-surface-2)!important;border-color:var(--rw-l-border)!important;color:var(--rw-l-text)!important}

.mobile-tema-wrap{padding:10px 0 14px;border-bottom:1px solid #2a2a2a;margin-bottom:4px}
html[data-theme="light"] .mobile-tema-wrap{border-bottom-color:var(--rw-l-border)}
