/* ===== Dom Chaps — site público ===== */
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; gap: 20px;
}
.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.main-nav ul { display: flex; gap: 2px; list-style: none; overflow: hidden; }
.main-nav a {
  display: block; padding: 9px 14px; border-radius: 9px; text-decoration: none;
  font-weight: 800; font-size: 14px; color: var(--text); white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.main-nav a:hover { background: var(--gold-soft); color: var(--gold-text); }
.main-nav a.active { color: var(--gold-text); background: var(--gold-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-wa { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.menu-btn { display: none; }
/* Entrada discreta do painel: um quadradinho (só o dono sabe) */
.staff-square {
  width: 20px; height: 20px; flex-shrink: 0; padding: 0; cursor: pointer;
  background: transparent; border: 1.5px solid var(--text-3); border-radius: 5px;
  opacity: .7; transition: opacity .2s, border-color .2s;
}
.staff-square:hover, .staff-square:focus-visible { opacity: 1; border-color: var(--gold); }
@media (min-width: 1330px) {
  .staff-square { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
}
.staff-foot { color: inherit; opacity: .5; vertical-align: -2px; margin-left: 6px; display: inline-block; }
.staff-foot:hover { opacity: 1; color: var(--gold); }

.staff-dialog {
  border: 1px solid var(--border); border-radius: 18px; padding: 0; margin: auto; width: min(380px, calc(100% - 32px));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.staff-dialog::backdrop { background: var(--overlay); backdrop-filter: blur(4px); }
.staff-dialog[open] { animation: pop .2s var(--ease); }
.staff-dialog form { padding: 26px 22px 18px; display: grid; gap: 14px; position: relative; }
.staff-dialog h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: 1.5px; line-height: 1; padding-right: 40px; }
.staff-sub { color: var(--text-2); font-weight: 600; margin-top: -8px; font-size: 14.5px; }
.staff-field { display: grid; gap: 6px; }
.staff-field span { font-size: 12px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: var(--text-2); }
.staff-field input {
  width: 100%; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 11px;
  padding: 12px 14px; font-size: 16px; font-weight: 700; color: var(--text); outline: none;
}
.staff-field input:focus { border-color: var(--gold); }
.staff-msg { padding: 10px 12px; border-radius: 10px; font-weight: 800; font-size: 14px; background: rgba(229,72,77,.12); color: var(--danger); }
.staff-msg.ok { background: rgba(47,179,107,.12); color: var(--success); }
.staff-link-btn { background: none; border: 0; color: var(--text-2); font-weight: 800; cursor: pointer; padding: 6px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.staff-link-btn:hover { color: var(--gold-text); }

.mobile-menu { border-top: 1px solid var(--border); padding: 12px 16px 16px; background: var(--surface); }
.mobile-menu ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.mobile-menu a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center; padding: 13px 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  text-decoration: none; font-weight: 800;
}
.mobile-menu a small { color: var(--text-3); font-weight: 700; }

/* ---------- Hero (compacta) ---------- */
.hero { background: var(--hero-bg); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; right: -120px; top: -140px; width: 440px; height: 440px;
  border: 70px solid var(--gold-soft); border-radius: 50%; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 44px 24px 40px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-text);
  font-size: 11.5px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 6px 13px; border-radius: 20px;
}
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(58px, 8vw, 92px); line-height: .88; letter-spacing: 3px; }
.hero-title span { color: var(--gold-text); }
:root[data-theme="light"] .hero-title { color: var(--blue); }
.hero-sub { color: var(--text-2); font-size: 17px; margin: 14px 0 24px; max-width: 470px; font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-cat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 112px; padding: 16px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .2s var(--ease), border-color .2s;
}
.hero-cat:hover { transform: translateY(-3px); border-color: var(--gold-line); }
.hero-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-cat.has-img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0) 65%); }
.hero-cat .hc-name, .hero-cat .hc-count { position: relative; z-index: 2; }
.hero-cat .hc-name { font-family: var(--font-display); font-size: 26px; letter-spacing: 1.5px; line-height: 1; }
.hero-cat .hc-count { font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.hero-cat.has-img .hc-name, .hero-cat.has-img .hc-count { color: #fff; }
.hero-cat:not(.has-img) .hc-deco {
  position: absolute; right: -18px; top: -18px; width: 86px; height: 86px; border-radius: 50%;
  background: var(--blue-soft); border: 14px solid var(--gold-soft);
}

/* ---------- Barra de categorias ---------- */
.catalog-bar {
  position: sticky; top: 70px; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.catalog-bar-inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 14px; align-items: center; }
.cat-pills { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.cat-pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 9px 15px; border-radius: 999px; min-height: 40px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  font-weight: 800; font-size: 14px; white-space: nowrap; transition: all .18s;
}
.pill:hover { color: var(--text); border-color: var(--border-strong); }
.pill[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.pill .n { font-size: 11.5px; padding: 1px 7px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); }
.pill[aria-selected="true"] .n { background: rgba(0,0,0,.14); color: var(--gold-ink); }

.search {
  display: flex; align-items: center; gap: 8px; width: 260px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 14px;
  color: var(--text-3); transition: border-color .18s;
}
.search:focus-within { border-color: var(--gold); }
.search input { border: 0; background: none; outline: none; height: 40px; width: 100%; color: var(--text); font-weight: 700; }
.search input::placeholder { color: var(--text-3); }

/* ---------- Catálogo ---------- */
.catalog { padding-bottom: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 20px; }
.section-title {
  font-family: var(--font-display); font-weight: 400; font-size: 34px; letter-spacing: 1.5px; line-height: 1;
  display: flex; align-items: center; gap: 12px;
}
.section-title::before { content: ''; width: 5px; height: 30px; border-radius: 3px; background: var(--gold); }
.section-count { color: var(--text-2); font-weight: 700; font-size: 14px; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-line); }
.card-media {
  position: relative; aspect-ratio: 1 / 1; background: var(--img-bg); overflow: hidden;
  cursor: pointer; border: 0; padding: 0; width: 100%; display: block;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card.is-off .card-media img, .card.is-off .ph { filter: grayscale(.85); opacity: .6; }
.badge-off {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: rgba(12,12,12,.85); color: #fff; font-size: 11.5px; font-weight: 900; letter-spacing: .6px;
  text-transform: uppercase; padding: 5px 10px; border-radius: 7px;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tag {
  align-self: flex-start; font-size: 11px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase;
  color: var(--blue-text); background: var(--blue-soft); padding: 3px 9px; border-radius: 7px;
}
.card-name {
  font-size: 15.5px; font-weight: 800; line-height: 1.3; color: var(--text);
  background: none; border: 0; text-align: left; cursor: pointer; padding: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.card-name:hover { color: var(--gold-text); }
.card-price { font-family: var(--font-display); font-size: 29px; letter-spacing: .8px; color: var(--gold-text); line-height: 1.05; margin-top: auto; padding-top: 4px; }
.card-buy { margin-top: 8px; min-height: 46px; font-size: 14px; padding: 12px 10px; }
.card-buy.is-off { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.card-buy.is-off:hover { border-color: var(--wa); }
.card-buy .short { display: none; }

/* Placeholder elegante quando não há foto */
.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-3); text-align: center; padding: 16px;
  background:
    radial-gradient(circle at 30% 20%, var(--gold-soft), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(127,127,127,.05) 14px 15px),
    var(--img-bg);
}
.ph svg { width: 44px; height: 44px; opacity: .75; }
.ph span { font-size: 12.5px; font-weight: 800; letter-spacing: .4px; }
.ph small { font-family: var(--font-display); font-size: 17px; letter-spacing: 2px; color: var(--gold-text); opacity: .7; }

.skeleton { aspect-ratio: .72; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 48px 20px; color: var(--text-2); display: grid; justify-items: center; gap: 10px; }
.empty-title { font-size: 20px; font-weight: 900; color: var(--text); }

/* ---------- Como comprar / Contato ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.steps { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.steps strong { font-size: 16px; }
.steps p { color: var(--text-2); font-size: 14.5px; }
.step-n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-weight: 900; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-label { font-size: 12px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-2); }
.contact-phone { font-family: var(--font-display); font-size: 36px; letter-spacing: 1.5px; color: var(--gold-text); text-decoration: none; line-height: 1; }
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-weight: 700; }
.contact-list svg { flex-shrink: 0; color: var(--gold-text); margin-top: 2px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-text); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--footer-bg); color: #C8CEDB; border-top: 3px solid var(--gold); padding: 48px 0 24px; }
.site-footer .brand-name { color: var(--gold); }
.site-footer .brand-tag { color: #9AA3B5; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand { display: grid; gap: 16px; justify-items: start; }
.footer-brand p { color: #9AA3B5; max-width: 300px; }
.footer-col h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: 1.8px; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; color: #C8CEDB; font-weight: 700; }
.footer-col a:hover { color: var(--gold); }
.footer-col address { font-style: normal; color: #C8CEDB; font-weight: 600; line-height: 1.6; margin-bottom: 12px; }
.footer-col p { margin-bottom: 10px; color: #9AA3B5; font-weight: 600; }
.footer-wa a { color: #fff; font-weight: 900; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #7D8598; }

/* ---------- Botão flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 8px 26px rgba(37,211,102,.4); transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Detalhe do produto ---------- */
.product-dialog {
  border: 1px solid var(--border); border-radius: 20px; padding: 0; margin: auto;
  width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto;
}
.product-dialog::backdrop { background: var(--overlay); backdrop-filter: blur(4px); }
.product-dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.pd-close { position: absolute; right: 12px; top: 12px; z-index: 3; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pd-media { aspect-ratio: 1 / 1; background: var(--img-bg); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.pd-info h2 { font-size: 24px; font-weight: 900; line-height: 1.2; padding-right: 36px; }
.pd-price { font-family: var(--font-display); font-size: 42px; letter-spacing: 1px; color: var(--gold-text); line-height: 1; }
.pd-status { color: var(--danger); font-weight: 900; }
.pd-desc { color: var(--text-2); white-space: pre-line; margin: 4px 0 8px; }
.pd-buy { margin-top: auto; min-height: 52px; font-size: 16px; }
.pd-note { font-size: 12.5px; color: var(--text-3); text-align: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 1060px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px 28px; }
  .hero-cats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hero-cat { min-height: 84px; padding: 12px; }
  .hero-cat .hc-name { font-size: 20px; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-info { padding: 22px 20px 24px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; height: 62px; gap: 10px; }
  html { scroll-padding-top: 124px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark svg { width: 30px; height: 30px; }
  .brand-name { font-size: 23px; letter-spacing: 2.5px; }
  .brand-tag { font-size: 8.5px; letter-spacing: 1.6px; }
  .header-wa { padding: 0; width: 42px; min-height: 42px; }
  .header-wa span { display: none; }
  .staff-square { display: none; }
  .catalog-bar { top: 64px; }
  .catalog-bar-inner { flex-direction: column; align-items: stretch; padding: 10px 16px; gap: 10px; }
  .search { width: 100%; order: -1; }
  .hero-sub { font-size: 15.5px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1; padding: 13px 12px; font-size: 14px; }
  .hero-inner { padding: 24px 16px 22px; gap: 18px; }
  .hero-title { font-size: 60px; }
  .hero-sub { margin: 10px 0 18px; }
  .hero-cats { grid-template-columns: 1fr 1fr; }
  .hero-cat { min-height: 66px; padding: 10px 12px; }
  .hero-cat .hc-name { font-size: 19px; }
  .hero-cat .hc-count { font-size: 11.5px; }
  .hero-cat:not(.has-img) .hc-deco { width: 60px; height: 60px; border-width: 10px; right: -14px; top: -14px; }
  .hero::after { display: none; }
  .section-head { margin: 22px 0 14px; }
  .section-title { font-size: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 11px 12px; gap: 4px; }
  .card-name { font-size: 14px; }
  .card-price { font-size: 24px; }
  .card-buy { font-size: 13.5px; padding: 10px 6px; gap: 6px; }
  .card-buy .long { display: none; }
  .card-buy .short { display: inline; }
  .tag { font-size: 10px; }
  .contact { padding: 40px 0; }
  .wa-float { width: 54px; height: 54px; right: 14px; }
  .product-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; max-width: 100%; }
  .pd-media { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 359px) {
  .grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
}


/* ---------- Modo edição (dono logado) ---------- */
.edit-bar { background: var(--gold); color: #121620; font-weight: 800; font-size: 14px; }
.edit-bar-inner { max-width: 1240px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.edit-bar-title { display: flex; align-items: center; gap: 8px; }
.edit-dot { width: 9px; height: 9px; border-radius: 50%; background: #1FA855; box-shadow: 0 0 0 3px rgba(31,168,85,.25); }
.edit-bar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.eb-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  background: rgba(18,22,32,.1); border: 1px solid rgba(18,22,32,.2); color: #121620; font-weight: 900; font-size: 13.5px; text-decoration: none;
}
.eb-btn:hover { background: rgba(18,22,32,.18); }
.eb-add { background: #121620; color: #F5A800; border-color: #121620; }
.eb-add:hover { background: #000; }
body.editing .catalog-bar { top: 70px; }

.card-tools { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 6px 4px;
  border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font-weight: 800; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.ct-btn:hover { border-color: var(--gold); }
.ct-edit { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.ct-del { color: var(--danger); }
.ct-del:hover { border-color: var(--danger); }
.card.is-hidden-admin { outline: 2px dashed var(--border-strong); outline-offset: -2px; }
.card.is-hidden-admin .card-media img, .card.is-hidden-admin .ph { opacity: .45; }
.badge-hidden {
  position: absolute; right: 10px; top: 10px; z-index: 2; background: #E5484D; color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; padding: 5px 9px; border-radius: 7px;
}
.photo-cta {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2;
  background: var(--gold); color: var(--gold-ink); font-weight: 900; font-size: 12.5px; padding: 7px 12px; border-radius: 8px; white-space: nowrap;
}
.add-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 280px;
  border: 2px dashed var(--gold-line); border-radius: var(--radius); background: var(--gold-soft); color: var(--gold-text);
  font-weight: 900; font-size: 16px; cursor: pointer;
}
.add-card:hover { border-color: var(--gold); }
.add-card span.plus { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); }
@media (max-width: 640px) {
  .edit-bar-inner { padding: 8px 16px; }
  .edit-bar-title { font-size: 12.5px; }
  .eb-btn { font-size: 12.5px; padding: 6px 10px; }
  .card-tools { grid-template-columns: 1fr 1fr; }
  .card-tools .ct-edit { grid-column: 1 / -1; }
  .add-card { min-height: 200px; font-size: 14px; }
}

/* ---------- Resumo de vendas (modo edição) ---------- */
.edit-stats { max-width: 1240px; margin: 0 auto; padding: 0 24px 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.es-card {
  display: flex; flex-direction: column; gap: 1px; padding: 8px 14px; border-radius: 10px; min-width: 150px;
  background: rgba(18,22,32,.92); color: #F0F4FF; border: 0; text-align: left; font: inherit; cursor: default; text-decoration: none;
}
.es-card small { font-size: 11px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: #A3A9B8; }
.es-card strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: 1px; color: #F5A800; line-height: 1.05; }
.es-card span { font-size: 12px; color: #C8CEDB; font-weight: 700; }
button.es-card, a.es-card { cursor: pointer; }
button.es-card:hover, a.es-card:hover { outline: 2px solid #121620; }
.es-card.warn strong { color: #FF7A7F; }
.es-card.active { outline: 3px solid #121620; }
.edit-filter { max-width: 1240px; margin: 0 auto; padding: 0 24px 10px; font-weight: 900; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.edit-filter button { background: #121620; color: #F5A800; border: 0; border-radius: 8px; padding: 6px 12px; font-weight: 900; cursor: pointer; }

.card-stock { display: flex; flex-wrap: wrap; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.card-stock .cs { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); }
.card-stock .cs.low { background: rgba(229,72,77,.14); border-color: rgba(229,72,77,.4); color: var(--danger); }
.card-stock .swatch, .card-colors .swatch, .pd-colors .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.badge-restock {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; background: #E5484D; color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; padding: 5px 9px; border-radius: 7px;
}
.ct-sell { grid-column: 1 / -1; background: var(--success); border-color: var(--success); color: #fff; font-size: 13.5px; min-height: 42px; }
.ct-sell:hover { filter: brightness(.95); border-color: var(--success); }

/* Cores (cliente) */
.card-colors { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.card-colors .swatch { width: 14px; height: 14px; }
.card-colors .more { font-size: 12px; color: var(--text-2); font-weight: 800; }
.card-colors .swatch.out, .pd-color.out .swatch { opacity: .35; }
.pd-colors { display: grid; gap: 8px; }
.pd-colors-label { font-size: 12.5px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: var(--text-2); }
.pd-colors-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-color {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 800; font-size: 14px;
}
.pd-color .swatch { width: 16px; height: 16px; }
.pd-color[aria-checked="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-text); }
.pd-color.out { opacity: .55; text-decoration: line-through; cursor: not-allowed; }
@media (max-width: 640px) {
  .edit-stats { padding: 0 16px 8px; gap: 6px; }
  .es-card { min-width: 0; flex: 1 1 calc(50% - 6px); padding: 7px 10px; }
  .es-card strong { font-size: 20px; }
  .edit-filter { padding: 0 16px 8px; }
}

.badges { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.badges > span { position: static !important; }

.edit-warn { background: #E5484D; color: #fff; font-weight: 800; font-size: 14px; padding: 9px 24px; text-align: center; }
.edit-warn a { color: #fff; text-decoration: underline; font-weight: 900; margin-left: 6px; }

/* Crédito do desenvolvedor */
.dev-credit { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); }
.dev-credit img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(57,255,20,.25), 0 4px 14px rgba(57,255,20,.15); }
.dev-credit p { font-size: 13px; color: #9AA3B5; line-height: 1.35; }
.dev-credit strong { color: #fff; font-weight: 900; }
.dev-credit span { display: block; font-size: 12px; color: #7D8598; }

/* =====================================================================
   v12 — busca central, categorias com ícone, seções e cubo da marca
   ===================================================================== */
/* Entrada do painel: cubinho ao lado do botão de tema */
.staff-cube {
  width: 42px; height: 42px; flex-shrink: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; transition: border-color .18s, transform .18s;
}
.staff-cube svg { width: 26px; height: 26px; opacity: .9; }
.staff-cube:hover { border-color: var(--gold-line); transform: translateY(-1px); }
@media (max-width: 640px) { .staff-cube { display: none; } }

/* Cubo no lugar dos círculos */
.hero::after {
  border: 0; border-radius: 0; width: 520px; height: 520px; right: -90px; top: -110px; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23F5A800' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpolygon points='8,14 22,6 36,14 22,22'/%3E%3Cpolygon points='36,14 36,32 22,40 22,22'/%3E%3Cpolygon points='8,14 8,32 22,40 22,22' fill='%23F5A800' fill-opacity='.35'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-cat:not(.has-img) .hc-deco {
  border: 0; border-radius: 0; background: none; width: 74px; height: 74px; right: 10px; top: 10px;
  color: var(--gold); opacity: .22; display: block;
}
.hero-cat:not(.has-img) .hc-deco svg { width: 100%; height: 100%; stroke-width: 1.4; }
.hero-cat:hover .hc-deco { opacity: .4; }

/* Barra de busca grande e centralizada */
.catalog-bar-inner { justify-content: center; padding: 16px 24px; }
.catalog-bar .search {
  width: 100%; max-width: 720px; height: 56px; padding: 0 18px; gap: 12px; border-width: 1.5px;
  background: var(--surface); box-shadow: var(--shadow); color: var(--gold-text);
}
.catalog-bar .search input { height: 54px; font-size: 16.5px; }
.catalog-bar .search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.search-clear { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface-2); color: var(--text-2); flex-shrink: 0; }

/* Categorias com ícone (abaixo do título) */
.cat-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; margin: -6px 0 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips .pill {
  min-height: 52px; padding: 6px 16px 6px 6px; gap: 10px; border-radius: 14px; font-size: 14.5px;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--text);
}
.cat-chips .pill .ci { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); flex-shrink: 0; transition: background .18s, color .18s; }
.cat-chips .pill .ci svg { width: 22px; height: 22px; }
.cat-chips .pill .n { background: var(--surface-2); }
.cat-chips .pill:hover { border-color: var(--gold-line); }
.cat-chips .pill[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.cat-chips .pill[aria-selected="true"] .ci { background: rgba(0,0,0,.14); color: var(--gold-ink); }

/* Seções (prateleiras) */
.shelf { margin-top: 34px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shelf-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: 1.5px; line-height: 1; }
.shelf-title .si { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.shelf-title .si svg { width: 24px; height: 24px; }
.shelf.promo .si { background: rgba(229,72,77,.16); color: #FF6B70; }
.shelf.novos .si { background: var(--blue-soft); color: var(--blue-text); }
.shelf.top .si { background: var(--gold-soft); color: var(--gold-text); }
.shelf-sub { font-family: var(--font-body); font-size: 13.5px; letter-spacing: 0; color: var(--text-2); font-weight: 700; display: block; margin-top: 4px; }
.shelf-nav { display: flex; gap: 6px; }
.shelf-nav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.shelf-nav button:hover { border-color: var(--gold-line); }
.shelf-nav .prev svg { transform: rotate(180deg); }
.shelf-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; scroll-behavior: smooth;
}
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row > .card { scroll-snap-align: start; }
.shelf + .section-head, #shelves:not(:empty) + .container .section-head { margin-top: 44px; }

/* Preço promocional e selos */
.card-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.card-price-row .card-price { margin-top: 0; padding-top: 0; }
.card-price-row .old { color: var(--text-3); text-decoration: line-through; font-weight: 700; font-size: 14px; }
.card-price.is-promo { color: #FF6B70; }
:root[data-theme="light"] .card-price.is-promo { color: #D93036; }
.badge-promo, .badge-new {
  font-size: 11.5px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; padding: 5px 9px; border-radius: 7px; color: #fff;
}
.badge-promo { background: #E5484D; }
.badge-new { background: var(--blue); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pd-old { color: var(--text-3); text-decoration: line-through; font-weight: 700; font-size: 17px; }

@media (max-width: 1060px) { .shelf-row { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (max-width: 860px) { .shelf-row { grid-auto-columns: calc((100% - 20px) / 2.2); } }
@media (max-width: 640px) {
  .catalog-bar-inner { padding: 10px 16px; }
  .catalog-bar .search { height: 50px; }
  .catalog-bar .search input { height: 48px; font-size: 15.5px; }
  .shelf { margin-top: 26px; }
  .shelf-title { font-size: 26px; }
  .shelf-title .si { width: 36px; height: 36px; }
  .shelf-nav { display: none; }
  .shelf-row { grid-auto-columns: 46%; gap: 12px; }
  .cat-chips .pill { min-height: 46px; font-size: 13.5px; }
  .cat-chips .pill .ci { width: 34px; height: 34px; }
}
html { scroll-padding-top: 170px; }
@media (max-width: 640px) { html { scroll-padding-top: 140px; } }

/* Sem linhas amarelas no topo e no rodapé */
.site-header { border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); }
.header-inner { justify-content: space-between; }
@media (max-width: 640px) { .staff-cube { display: grid; width: 40px; height: 40px; } }

/* Cores no detalhe do produto: foto de cada cor e cor esgotada escurecida */
.pd-color { padding: 6px 12px 6px 6px; }
.pd-color img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #fff; }
.pd-color span { display: grid; line-height: 1.15; }
.pd-color small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--danger); }
.pd-color:not(.has-img) { padding-left: 12px; }
.pd-color.out { opacity: .45; filter: grayscale(.8); text-decoration: none; cursor: pointer; }
.pd-color.out[aria-checked="true"] { opacity: .8; border-color: var(--danger); background: rgba(229,72,77,.08); color: var(--text); }
.pd-colornote { font-size: 13px; font-weight: 700; color: var(--danger); }
.pd-buy.is-off { background: var(--surface-2); color: var(--text); border: 1.5px solid var(--border-strong); }
.footer-brand { align-content: start; }

/* Aberto agora / Fechado */
.open-now { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 900; letter-spacing: .3px; text-transform: none;
  padding: 4px 10px; border-radius: 999px; background: rgba(229,72,77,.14); color: #FF7A7F; vertical-align: middle; }
.open-now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-now.is-open { background: rgba(47,179,107,.15); color: #3DD68C; }
:root[data-theme="light"] .open-now { color: #C62F34; }
:root[data-theme="light"] .open-now.is-open { color: #178A4A; }
.hero-badge-row { margin-bottom: 8px; }
.contact-label .open-now { margin-left: 8px; }

/* ===== v15 — Modo claro com AZUL como cor principal (branco + azul + detalhe amarelo) ===== */
:root[data-theme="light"] {
  --bg: #F3F6FB;
  --bg-2: #E9F0FA;
  --border: #DCE3EE;
  --blue: #1A4A8F;
  --blue-text: #1A4A8F;
  --blue-soft: rgba(26,74,143,.10);
  --royal: linear-gradient(135deg, #14305A 0%, #1A4A8F 55%, #1F5DB8 100%);
}
/* Cabeçalho azul */
:root[data-theme="light"] .site-header { background: #16386C; border-bottom: 3px solid var(--gold); backdrop-filter: none; }
:root[data-theme="light"] .site-header .brand-name { color: var(--gold); }
:root[data-theme="light"] .site-header .brand-tag { color: #BFD2F0; }
:root[data-theme="light"] .site-header .icon-btn,
:root[data-theme="light"] .site-header .staff-cube { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); color: #fff; }
:root[data-theme="light"] .site-header .icon-btn:hover,
:root[data-theme="light"] .site-header .staff-cube:hover { background: rgba(255,255,255,.18); border-color: var(--gold); }
/* Hero azul */
:root[data-theme="light"] .hero { background:
    radial-gradient(ellipse 50% 80% at 95% 20%, rgba(245,168,0,.18), transparent 60%),
    var(--royal); border-bottom: 0; }
:root[data-theme="light"] .hero-title { color: #fff; }
:root[data-theme="light"] .hero-title span { color: var(--gold); }
:root[data-theme="light"] .hero-sub { color: #D6E2F5; }
:root[data-theme="light"] .hero-badge { background: rgba(245,168,0,.16); border-color: rgba(245,168,0,.55); color: var(--gold); }
:root[data-theme="light"] .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
:root[data-theme="light"] .hero .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
:root[data-theme="light"] .hero .open-now { background: rgba(255,255,255,.95); }
:root[data-theme="light"] .hero-cat:not(.has-img) { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
:root[data-theme="light"] .hero-cat:not(.has-img) .hc-name { color: #fff; }
:root[data-theme="light"] .hero-cat:not(.has-img) .hc-count { color: #BFD2F0; }
:root[data-theme="light"] .hero-cat:not(.has-img) .hc-deco { color: var(--gold); }
:root[data-theme="light"] .hero-cat:hover { border-color: var(--gold); }
/* Faixa da busca */
:root[data-theme="light"] .catalog-bar { background: #E4EDF9; border-color: #D2DEF0; }
:root[data-theme="light"] .catalog-bar .search { background: #fff; border-color: #B9CBE6; }
:root[data-theme="light"] .catalog-bar .search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
:root[data-theme="light"] .catalog-bar .search svg { color: var(--blue); }
/* Títulos em azul com detalhe amarelo */
:root[data-theme="light"] .section-title,
:root[data-theme="light"] .shelf-title,
:root[data-theme="light"] .contact h2 { color: var(--blue); }
:root[data-theme="light"] .shelf-sub { color: var(--text-2); }
/* Categorias */
:root[data-theme="light"] .cat-chips .pill .ci { background: var(--blue-soft); color: var(--blue); }
:root[data-theme="light"] .cat-chips .pill:hover { border-color: var(--blue); }
:root[data-theme="light"] .cat-chips .pill[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
:root[data-theme="light"] .cat-chips .pill[aria-selected="true"] .ci { background: rgba(255,255,255,.16); color: var(--gold); }
:root[data-theme="light"] .cat-chips .pill[aria-selected="true"] .n { background: rgba(255,255,255,.2); color: #fff; }
/* Cartões */
:root[data-theme="light"] .card:hover { border-color: rgba(26,74,143,.45); }
:root[data-theme="light"] .card-name:hover { color: var(--blue); }
:root[data-theme="light"] .card-price { color: var(--blue); }
:root[data-theme="light"] .tag { color: var(--blue); }
:root[data-theme="light"] .shelf-nav button:hover { border-color: var(--blue); color: var(--blue); }
:root[data-theme="light"] .pd-price { color: var(--blue); }
/* Contato */
:root[data-theme="light"] .contact { background: #E4EDF9; }
:root[data-theme="light"] .contact-card { border-top: 4px solid var(--blue); }
:root[data-theme="light"] .contact-phone { color: var(--blue); }
:root[data-theme="light"] .contact-list svg { color: var(--blue); }
:root[data-theme="light"] .step-n { background: var(--blue); color: #fff; }
/* Rodapé: nome em amarelo (antes ficava azul sobre azul) */
:root[data-theme="light"] .site-footer { background: #10233F; border-top: 3px solid var(--gold); }
:root[data-theme="light"] .site-footer .brand-name { color: var(--gold); }

/* v17 — rodapé no mesmo azul do topo/banner (modo claro) */
:root[data-theme="light"] .site-footer { background: var(--royal); }
:root[data-theme="light"] .site-footer .brand-tag,
:root[data-theme="light"] .footer-brand p,
:root[data-theme="light"] .footer-col p,
:root[data-theme="light"] .dev-credit p { color: #BFD2F0; }
:root[data-theme="light"] .dev-credit span { color: #A9C0E4; }
:root[data-theme="light"] .footer-bottom, :root[data-theme="light"] .footer-bottom a { color: #BFD2F0; }
