@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* MiniShop components — plain HTML + CSS, classes prefixed ms-.
   Load order: tokens.css, then this file, then bundle.js (optional, for the interactive bits). */

/* ---------- Base ---------- */
.ms-page { margin: 0; overflow-x: clip; background: var(--surface-100); color: var(--text-body); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
.ms-page *, .ms-page *::before, .ms-page *::after,
.ms-preview, .ms-preview *, .ms-preview *::before, .ms-preview *::after { box-sizing: border-box; }
.ms-page h1, .ms-page h2, .ms-page h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.ms-preview { background: var(--surface-100); color: var(--text-body); font-family: var(--font-sans); font-size: 16px; line-height: 24px; padding: 24px; }
.ms-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.ms-container { width: 100%; max-width: 1152px; margin-inline: auto; padding-inline: var(--space-5); }
.ms-section { padding-block: var(--space-24); }
.ms-forest { background: var(--forest-900); color: var(--on-forest); }
.ms-section__body { margin-top: var(--space-14); }
.ms-center { text-align: center; }
.ms-page [id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html:has(> body.ms-page) { scroll-behavior: smooth; } }
.ms-skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--forest-900); color: var(--on-forest); font-weight: 700; text-decoration: none; }
.ms-skip:focus { top: 16px; }

/* Page layouts */
.ms-page-hero { max-width: 768px; margin-inline: auto; padding: var(--space-16) var(--space-5) var(--space-12); text-align: center; }
.ms-page-hero .ms-h-hero { margin-top: var(--space-6); }
.ms-page-hero .ms-lede { margin-top: var(--space-6); }
@media (min-width: 768px) { .ms-page-hero { padding-top: var(--space-24); } .ms-page-hero .ms-h-hero { font-size: 60px; line-height: 1.05; } }
.ms-split { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 768px) { .ms-split { grid-template-columns: 1fr 1fr; } }
.ms-prose > * + * { margin-top: var(--space-4); }
.ms-prose p { margin-bottom: 0; color: var(--text-muted); }
/* Long-form legal / help text */
.ms-legal { max-width: 768px; margin-inline: auto; padding: 0 var(--space-5) var(--space-24); color: var(--text-muted); font-size: 16px; line-height: 28px; }
.ms-legal > * + * { margin-top: var(--space-10); }
.ms-legal h2 { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ms-legal p { margin: 0; }
.ms-legal p + p, .ms-legal ul + p, .ms-legal p + ul { margin-top: var(--space-3); }
.ms-legal ul { margin: var(--space-3) 0 0; padding-left: 22px; }
.ms-legal li + li { margin-top: 6px; }
.ms-legal li::marker { color: var(--forest-900); }
.ms-legal strong { color: var(--text-body); font-weight: 600; }
.ms-legal a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ms-legal__intro { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-000); border: 1px solid var(--border); color: var(--text-body); }
.ms-legal__updated { font-size: 14px; line-height: 20px; }

/* Panel: a white card for forms and side content */
.ms-panel { background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-soft); }
.ms-panel--flat { box-shadow: none; }
.ms-panel__title { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ms-panel__text { margin: var(--space-2) 0 0; color: var(--text-muted); }
.ms-panel__body { margin-top: var(--space-6); }
@media (max-width: 479px) { .ms-panel { padding: var(--space-6); } }
.ms-icon-chip--sm { width: 40px; height: 40px; border-radius: var(--radius-md); flex-shrink: 0; }
.ms-icon-chip--sm svg { width: 20px; height: 20px; }
.ms-contact-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-5); }
.ms-contact-list li { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--text-muted); }
.ms-contact-list strong { display: block; color: var(--ink); font-weight: 600; }
.ms-contact-list a { color: var(--ink); font-weight: 600; }
.ms-faq__answer > p { margin: 0; }
.ms-faq__answer > * + * { margin-top: var(--space-2); }
.ms-faq__answer ol, .ms-faq__answer ul { margin-bottom: 0; padding-left: 22px; }
.ms-faq__answer li + li { margin-top: 4px; }
.ms-faq__answer strong { color: var(--text-body); font-weight: 600; }
.ms-error-code { margin: 0; font-family: var(--font-display); font-size: 96px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
@media (min-width: 768px) { .ms-error-code { font-size: 140px; } }
.ms-page-hero .ms-hero__actions { justify-content: center; }
.ms-page-hero__note { margin: var(--space-8) 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }

.ms-list-reset { list-style: none; margin: 0; padding: 0; }
.ms-list-reset.ms-section__body { margin-top: var(--space-14); }
.ms-grid--pair { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (max-width: 399px) { .ms-grid--pair .ms-card--compact { padding: var(--space-4); } }
.ms-cta-wrap { padding-bottom: var(--space-24); }
.ms-actions-center { margin-top: var(--space-12); text-align: center; }

/* Hero layout: copy column + media column */
.ms-hero { display: grid; gap: var(--space-12); align-items: center; max-width: 1152px; margin-inline: auto; padding: var(--space-12) var(--space-5) var(--space-16); }
.ms-hero .ms-h-hero { margin-top: var(--space-6); }
.ms-hero .ms-lede { margin-top: var(--space-6); max-width: 512px; }
.ms-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-8); }
.ms-hero .ms-stats { margin-top: var(--space-10); }
@media (min-width: 768px) { .ms-hero { grid-template-columns: 1fr 1fr; padding-top: 80px; } }
.ms-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ms-icon { width: 1em; height: 1em; flex-shrink: 0; }
:where(.ms-page, .ms-preview) a:focus-visible, :where(.ms-page, .ms-preview) button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ms-forest a:focus-visible, .ms-forest button:focus-visible, .ms-cta-band a:focus-visible { outline-color: currentColor; }

/* ---------- Type helpers ---------- */
.ms-h-hero { font-family: var(--font-display); font-size: 48px; line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.ms-h-section { font-family: var(--font-display); font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.ms-h-sub { font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.ms-forest .ms-h-section, .ms-forest .ms-h-sub { color: var(--on-forest); }
.ms-lede { font-size: 18px; line-height: 28px; color: var(--text-muted); margin: 0; }
.ms-forest .ms-lede { color: var(--on-forest-muted); }
.ms-section-head { max-width: 672px; margin-inline: auto; text-align: center; }
.ms-section-head .ms-lede { margin-top: var(--space-4); }
.ms-kicker { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin: 0; }
@media (min-width: 768px) {
  .ms-h-hero { font-size: 72px; }
  .ms-h-section { font-size: 48px; line-height: 1; }
  .ms-h-sub { font-size: 36px; line-height: 40px; }
}

/* ---------- Button ---------- */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 700; padding: 12px 24px; border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, transform .15s, box-shadow .15s, filter .15s, opacity .15s; }
.ms-btn:disabled, .ms-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.ms-btn--primary { background: var(--lime-500); color: var(--on-lime); box-shadow: var(--shadow-glow); }
.ms-btn--primary:hover { background: var(--lime-600); transform: translateY(-2px); }
.ms-btn--dark { background: var(--forest-900); color: var(--on-forest); }
.ms-btn--dark:hover { opacity: .9; }
.ms-btn--outline { background: transparent; color: var(--ink); border-color: var(--border-strong); font-weight: 600; }
.ms-btn--outline:hover { background: var(--surface-tint); }
.ms-btn--sm { font-size: 14px; line-height: 20px; padding: 10px 20px; white-space: nowrap; }
@media (max-width: 379px) { .ms-nav .ms-btn--sm { padding-inline: 14px; } }
.ms-btn--lg { font-size: 18px; line-height: 28px; padding: 16px 32px; }
.ms-btn--block { display: flex; width: 100%; min-height: 48px; }
.ms-btn svg { width: 16px; height: 16px; }
.ms-btn--lg svg { width: 20px; height: 20px; }
.ms-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.ms-link:hover { text-decoration: underline; }

/* ---------- Eyebrow + highlight ---------- */
.ms-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-tint); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; padding: 6px 16px; border-radius: var(--radius-pill); }
.ms-eyebrow svg { width: 16px; height: 16px; }
.ms-highlight { position: relative; display: inline-block; z-index: 0; }
.ms-highlight::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.24em; background: var(--lime-500); z-index: -1; }

/* ---------- Logo + navbar ---------- */
.ms-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 32px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.ms-logo__icon { width: 21px; height: 24px; flex-shrink: 0; fill: currentColor; }
.ms-logo__word { white-space: nowrap; }
.ms-logo__word > span { background: var(--lime-500); color: var(--on-lime); border-radius: var(--radius-sm); padding: 0 6px; }
.ms-header { position: sticky; top: 0; z-index: 40; background: rgba(249, 247, 238, .8); background: color-mix(in srgb, var(--surface-100) 85%, transparent);-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.ms-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); max-width: 1152px; margin-inline: auto; padding: 16px var(--space-5); }
.ms-nav__links { display: none; gap: 32px; }
.ms-nav__links a { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-muted); text-decoration: none; }
.ms-nav__links a:hover, .ms-nav__links a[aria-current="page"] { color: var(--text-body); }
.ms-nav__actions { display: flex; align-items: center; gap: var(--space-4); }
.ms-nav__login { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); text-decoration: none; }
.ms-nav__login:hover { text-decoration: underline; }
.ms-nav__toggle { display: grid; place-items: center; width: 40px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.ms-nav__toggle svg { width: 20px; height: 20px; }
.ms-nav__mobile { border-top: 1px solid var(--border); background: var(--surface-100); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.ms-nav__mobile[hidden] { display: none; }
.ms-nav__mobile a { color: var(--ink); text-decoration: none; font-weight: 500; }
@media (min-width: 768px) {
  .ms-nav__links { display: flex; }
  .ms-nav__toggle, .ms-nav__mobile { display: none !important; }
}
@media (max-width: 479px) { .ms-nav__login { display: none; } }

/* Demo banner (store) */
.ms-demo-bar { background: var(--forest-900); color: var(--on-forest); text-align: center; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .02em; padding: 10px var(--space-5); }
@media (min-width: 640px) { .ms-demo-bar { font-size: 14px; line-height: 20px; } }

/* Cart button (store header) */
.ms-cart-btn { position: relative; display: inline-flex; text-decoration: none; align-items: center; gap: var(--space-2); height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font: 600 14px/20px var(--font-sans); cursor: pointer; transition: background-color .15s; }
.ms-cart-btn:hover { background: var(--surface-tint); }
.ms-cart-btn svg { width: 20px; height: 20px; }
.ms-cart-btn__label { display: none; }
@media (min-width: 640px) { .ms-cart-btn__label { display: inline; } }
.ms-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime); font-size: 11px; line-height: 1; font-weight: 700; }
.ms-count:empty, .ms-count[data-count="0"] { display: none; }

/* ---------- Hero media + order toast ---------- */
.ms-hero-media { position: relative; }
.ms-hero-media > img { display: block; width: 100%; height: auto; border-radius: var(--radius-2xl); box-shadow: var(--shadow-soft); animation: ms-float 6s ease-in-out infinite; }
.ms-hero-media .ms-toast { position: absolute; left: -16px; bottom: 40px; }
@media (min-width: 768px) { .ms-hero-media .ms-toast { left: -40px; } }
@keyframes ms-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.ms-toast { display: inline-block; background: var(--surface-000); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 16px; }
.ms-toast__label { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ms-toast__label svg { width: 14px; height: 14px; }
.ms-toast__value { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }

/* ---------- Stat ---------- */
.ms-stats { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.ms-stat__value { font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 800; color: var(--ink); }
.ms-stat__label { font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* ---------- Category marquee ---------- */
.ms-marquee { background: var(--forest-900); color: var(--on-forest); border-block: 1px solid var(--border); overflow: hidden; padding: 20px 0; }
.ms-marquee__track { display: flex; gap: 40px; width: max-content; animation: ms-marquee 30s linear infinite; }
.ms-marquee__item { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.ms-marquee__item::after { content: "✦"; color: var(--lime-500); }
@keyframes ms-marquee { to { transform: translateX(-50%); } }

/* ---------- Feature card (+ compact pillar) ---------- */
.ms-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .ms-grid--3 { grid-template-columns: repeat(2, 1fr); } .ms-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ms-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.ms-card { background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-7); transition: transform .2s, box-shadow .2s; }
.ms-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.ms-icon-chip { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--surface-tint); color: var(--ink); display: grid; place-items: center; transition: background-color .2s; }
.ms-card:hover .ms-icon-chip { background: var(--lime-500); color: var(--on-lime); }
.ms-icon-chip svg { width: 24px; height: 24px; }
.ms-card__title { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 20px 0 0; }
.ms-card__text { font-size: 16px; line-height: 24px; color: var(--text-muted); margin: var(--space-2) 0 0; }
.ms-card--compact { padding: var(--space-6); }
.ms-card--compact:hover { transform: none; box-shadow: none; }
.ms-card--compact > svg { width: 24px; height: 24px; color: var(--ink); display: block; }
.ms-card--compact .ms-card__title { font-size: 18px; line-height: 28px; margin-top: 12px; }
.ms-card--compact .ms-card__text { font-size: 14px; line-height: 20px; margin-top: 0; }

/* ---------- Step card (on forest) ---------- */
.ms-step { background: var(--forest-800); border: 1px solid var(--forest-line); border-radius: var(--radius-xl); padding: var(--space-8); color: var(--on-forest); }
.ms-step__num { font-family: var(--font-display); font-size: 60px; line-height: 1; font-weight: 800; color: var(--lime-500); margin: 0; }
.ms-step__icon { width: 28px; height: 28px; color: var(--lime-500); display: block; }
.ms-step__title { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--on-forest); margin: 16px 0 0; }
.ms-step__text { font-size: 16px; line-height: 24px; color: var(--on-forest-muted); margin: var(--space-2) 0 0; }
.ms-step--reason { padding: var(--space-7); }
.ms-step--reason .ms-step__title { font-size: 20px; line-height: 28px; }

/* ---------- FAQ ---------- */
.ms-faq { display: grid; gap: var(--space-3); max-width: 768px; margin-inline: auto; }
.ms-faq details { background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ms-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-6); font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); border-radius: var(--radius-lg); }
.ms-faq summary::-webkit-details-marker { display: none; }
.ms-faq summary::after { content: "+"; font-size: 24px; line-height: 1; font-weight: 400; color: var(--ink); transition: transform .2s; flex-shrink: 0; }
.ms-faq details[open] summary::after { transform: rotate(45deg); }
.ms-faq__answer { padding: 0 var(--space-6) var(--space-6); font-size: 16px; line-height: 24px; color: var(--text-muted); margin: 0; }

/* ---------- CTA band ---------- */
.ms-cta-band { background: var(--lime-500); color: var(--on-lime); border-radius: var(--radius-2xl); padding: var(--space-16) var(--space-8); text-align: center; }
.ms-cta-band h2 { font-family: var(--font-display); font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--on-lime); }
.ms-cta-band p { font-size: 18px; line-height: 28px; max-width: 576px; margin: var(--space-4) auto 0; }
.ms-cta-band .ms-btn { margin-top: var(--space-8); box-shadow: var(--shadow-soft); }
@media (min-width: 768px) { .ms-cta-band { padding-block: 80px; } .ms-cta-band h2 { font-size: 60px; line-height: 1; } }

/* ---------- Footer ---------- */
.ms-footer { border-top: 1px solid var(--border); padding: var(--space-8) var(--space-5); text-align: center; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-footer a { color: var(--ink); }
.ms-footer--full { text-align: left; padding: 56px var(--space-5) var(--space-8); }
.ms-footer__grid { display: grid; gap: var(--space-10); max-width: 1152px; margin-inline: auto; }
@media (min-width: 768px) { .ms-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.ms-footer__about p { max-width: 360px; margin: var(--space-4) 0 0; }
/* "Ver mais" do texto da loja no rodapé (abre o modal Sobre ou a página Sobre da Loja PRO) */
.ms-footer__more { display: inline; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.ms-footer--forest .ms-footer__more { color: var(--on-forest); } /* mesma cor dos links do rodapé (o tema da loja pode mudar o lime) */
.ms-footer__more:hover { text-decoration-thickness: 2px; }
.ms-footer__social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.ms-footer__social a { display: grid; text-decoration: none; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--ink); transition: background-color .15s; }
.ms-footer__social a:hover { background: var(--surface-tint); }
.ms-footer__social svg { width: 18px; height: 18px; }
.ms-footer__title { margin: 0 0 var(--space-4); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.ms-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ms-footer__links a { color: var(--text-muted); text-decoration: none; }
.ms-footer__links a:hover { color: var(--ink); text-decoration: underline; }
.ms-footer__bottom { max-width: 1152px; margin: var(--space-10) auto 0; padding-top: var(--space-6); border-top: 1px solid var(--border); text-align: center; }

/* ---------- Alert (flash messages) ---------- */
.ms-flash { display: grid; gap: var(--space-2); max-width: 1152px; margin: var(--space-4) auto 0; padding-inline: var(--space-5); }
.ms-alert { display: flex; align-items: flex-start; gap: var(--space-3); padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-000); color: var(--text-body); font-size: 14px; line-height: 20px; font-weight: 500; transition: opacity .5s; }
.ms-alert > svg { width: 20px; height: 20px; flex-shrink: 0; }
.ms-alert__text { flex: 1; margin: 0; }
.ms-alert__close { display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px -4px 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: inherit; cursor: pointer; }
.ms-alert__close:hover { background: rgba(0, 0, 0, .06); }
.ms-alert__close svg { width: 16px; height: 16px; }
.ms-alert--success { background: var(--surface-tint); border-color: transparent; color: var(--ink); }
.ms-alert--error { background: var(--danger-tint); border-color: transparent; color: var(--danger-text); }
.ms-alert.is-hiding { opacity: 0; }

/* ---------- Forms ---------- */
.ms-form { display: grid; gap: var(--space-4); }
.ms-field { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.ms-input { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-100); color: var(--text-body); font: 400 16px/24px var(--font-sans); outline: none; transition: box-shadow .15s, border-color .15s; }
.ms-input::placeholder { color: var(--text-muted); opacity: .75; }
.ms-input:focus { box-shadow: 0 0 0 2px var(--focus); }
textarea.ms-input { height: auto; min-height: 76px; padding: 12px 16px; resize: none; }
.ms-input:disabled { background: var(--surface-muted); cursor: not-allowed; }
.ms-field__help { display: block; margin-top: 6px; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--text-muted); }
.ms-field__error { display: block; margin-top: 6px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--danger); }
.ms-field__error[hidden] { display: none; }
.ms-field--error .ms-input { border-color: var(--danger); }
.ms-field--error .ms-input:focus { box-shadow: 0 0 0 2px var(--danger); }
.ms-check { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--forest-900); flex-shrink: 0; }
.ms-form__aside { text-align: right; font-size: 14px; line-height: 20px; }

/* Social sign-in */
.ms-social { display: grid; gap: var(--space-3); }
.ms-btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid transparent; font: 500 14px/20px var(--font-sans); cursor: pointer; text-decoration: none; }
.ms-btn-social:hover { filter: brightness(.96); }
.ms-btn-social svg { width: 18px; height: 18px; }
.ms-btn-social--google { background: #fff; border-color: var(--google-border); color: var(--google-text); }
.ms-btn-social--facebook { background: var(--facebook); color: #fff; }
.ms-divider { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-2) 0; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ms-divider::before, .ms-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }

/* Auth card */
.ms-auth { position: relative; padding: var(--space-16) var(--space-5); }
.ms-auth::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 256px; background: var(--surface-tint); }
.ms-auth__card { position: relative; max-width: 448px; margin-inline: auto; background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-soft); }
.ms-auth__title { font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.ms-auth__subtitle { margin: var(--space-2) 0 0; color: var(--text-muted); }
.ms-auth__body { margin-top: var(--space-8); }
.ms-auth__body > .ms-alert + .ms-btn,
.ms-auth__body > .ms-alert + .ms-form { margin-top: var(--space-6); }
.ms-auth__foot { margin: var(--space-6) 0 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* ---------- Store: benefits strip ---------- */
.ms-benefits { border-block: 1px solid var(--border); background: var(--surface-100); }
.ms-benefits__inner { display: grid; gap: var(--space-6); max-width: 1152px; margin-inline: auto; padding: 28px var(--space-5); }
.ms-benefit { display: flex; align-items: center; justify-content: center; gap: var(--space-3); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 500; }
.ms-benefit svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (min-width: 640px) { .ms-benefits__inner { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Store: category chips ---------- */
.ms-chips { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); }
.ms-chip { flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius-pill); background: transparent; color: var(--ink); padding: 10px 20px; font: 600 14px/20px var(--font-sans); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ms-chip:hover { border-color: var(--forest-900); }
.ms-chip[aria-pressed="true"] { background: var(--forest-900); border-color: var(--forest-900); color: var(--on-forest); }

/* ---------- Store: product card ---------- */
.ms-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
@media (min-width: 768px) { .ms-products { grid-template-columns: repeat(3, 1fr); column-gap: 24px; } }
@media (min-width: 1024px) { .ms-products { row-gap: 56px; } }
.ms-product { position: relative; }
.ms-product__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-tint); }
.ms-product__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s; }
.ms-product:hover .ms-product__media img { transform: scale(1.035); }
.ms-badge { display: inline-block; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime); padding: 6px 12px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ms-product__media .ms-badge { position: absolute; left: 16px; top: 16px; }
.ms-product__add { position: absolute; text-decoration: none; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 12px 16px; border: 0; border-radius: var(--radius-pill); background: var(--forest-900); color: var(--on-forest); font: 700 14px/20px var(--font-sans); cursor: pointer; box-shadow: var(--shadow-soft); transition: opacity .3s, transform .3s, background-color .15s, color .15s; }
.ms-product__add svg { width: 16px; height: 16px; }
.ms-product__add:hover { background: var(--lime-500); color: var(--on-lime); }
@media (min-width: 768px) and (hover: hover) {
  .ms-product__add { opacity: 0; transform: translateY(8px); }
  .ms-product:hover .ms-product__add, .ms-product__add:focus-visible { opacity: 1; transform: none; }
}
.ms-product__body { padding: var(--space-4) 4px var(--space-2); }
.ms-product__category { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.ms-product__name { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.ms-product__name:hover { text-decoration: underline; text-decoration-color: var(--lime-500); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Price */
.ms-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); margin-top: var(--space-2); }
.ms-price__now { font-weight: 600; color: var(--text-body); }
.ms-price__old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.ms-price--lg { gap: var(--space-3); }
.ms-price--lg .ms-price__now { font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 700; color: var(--ink); }
.ms-price--lg .ms-price__old { font-size: 18px; }

/* Quantity stepper */
.ms-qty { display: inline-flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: var(--radius-pill); }
.ms-qty button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.ms-qty button:hover { background: var(--surface-tint); }
.ms-qty button:disabled { opacity: .3; cursor: not-allowed; background: transparent; }
.ms-qty button svg { width: 14px; height: 14px; }
.ms-qty__value { min-width: 28px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.ms-qty--lg { height: 52px; padding: 0 8px; min-width: 128px; }
.ms-qty--lg button { width: 36px; height: 36px; }
.ms-qty--lg button svg { width: 16px; height: 16px; }
.ms-qty--lg .ms-qty__value { font-size: 16px; font-weight: 700; }

/* Breadcrumb */
.ms-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ms-breadcrumb a { color: inherit; text-decoration: none; }
.ms-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.ms-breadcrumb svg { width: 12px; height: 12px; }
.ms-breadcrumb [aria-current] { color: var(--text-body); }

/* Checklist (product details) */
.ms-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ms-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 24px; color: var(--text-muted); }
.ms-checklist svg { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; color: var(--ink); }

/* ---------- Store: cart drawer ---------- */
.ms-drawer { position: fixed; inset: 0; z-index: 50; }
.ms-drawer[hidden] { display: none; }
.ms-drawer__scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--overlay); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); cursor: default; }
.ms-drawer__panel { position: absolute; top: 0; bottom: 0; right: 0; display: flex; flex-direction: column; width: 100%; max-width: 448px; background: var(--surface-100); box-shadow: var(--shadow-drawer); outline: none; }
.ms-drawer--static { position: relative; inset: auto; z-index: auto; }
.ms-drawer--static .ms-drawer__panel { position: relative; height: 640px; margin-left: auto; }
.ms-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--space-6); border-bottom: 1px solid var(--border); }
.ms-drawer__title { margin: 4px 0 0; font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ms-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.ms-icon-btn:hover { background: var(--surface-tint); }
.ms-icon-btn svg { width: 20px; height: 20px; }
.ms-drawer__body { flex: 1; overflow-y: auto; padding: 20px var(--space-6); }
.ms-drawer__foot { border-top: 1px solid var(--border); padding: 20px var(--space-6) var(--space-6); }
.ms-drawer__total { display: flex; align-items: flex-end; justify-content: space-between; }
.ms-drawer__total span:first-child { font-size: 14px; color: var(--text-muted); }
.ms-drawer__total strong { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.ms-drawer__note { margin: var(--space-2) 0 0; font-size: 12px; line-height: 20px; color: var(--text-muted); }
.ms-drawer__foot .ms-btn--primary { margin-top: 20px; }
.ms-drawer__back { display: flex; width: 100%; align-items: center; justify-content: center; gap: 4px; margin-top: var(--space-3); padding: 8px; border: 0; background: none; color: var(--ink); font: 600 14px/20px var(--font-sans); cursor: pointer; }
.ms-drawer__back:hover { text-decoration: underline; }
.ms-drawer__back svg { width: 16px; height: 16px; }
.ms-drawer__fields { display: grid; gap: var(--space-3); margin-top: var(--space-6); }

.ms-cart-line { display: flex; gap: var(--space-4); padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.ms-cart-line__thumb { flex-shrink: 0; width: 80px; height: 96px; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-tint); }
.ms-cart-line__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-cart-line__main { flex: 1; min-width: 0; }
.ms-cart-line__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.ms-cart-line__name { font-weight: 600; line-height: 20px; color: var(--ink); text-decoration: none; }
.ms-cart-line__name:hover { text-decoration: underline; }
.ms-cart-line__unit { margin: 4px 0 0; font-size: 14px; color: var(--text-muted); }
.ms-cart-line__remove { padding: 4px; border: 0; background: none; color: var(--text-muted); cursor: pointer; }
.ms-cart-line__remove:hover { color: var(--danger); }
.ms-cart-line__remove svg { width: 16px; height: 16px; }
.ms-cart-line__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-3); }
.ms-cart-line__sum { font-size: 14px; font-weight: 700; color: var(--ink); }

.ms-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-8); text-align: center; }
.ms-empty__icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); }
.ms-empty__icon svg { width: 32px; height: 32px; }
.ms-empty__title { margin: var(--space-6) 0 0; font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ms-empty__text { margin: var(--space-2) 0 var(--space-6); font-size: 14px; line-height: 24px; color: var(--text-muted); }

/* ---------- Store theme (lojas reais) ----------
   Mesmas formas e fontes, cores sóbrias. Vai no <body class="ms-page ms-theme-store">.
   Cor própria de uma loja no futuro: definir --store-accent / --store-on-accent (e, se quiser,
   --store-ink) no style do <body>; todo componente que usa lime/ink passa a usar essas cores. */
.ms-theme-store {
  --store-ink: #1c1917;
  --store-accent: var(--store-ink);
  --store-accent-hover: #292524;
  --store-on-accent: #fafaf9;
  --surface-100: #fafaf9;
  --surface-000: #ffffff;
  --surface-tint: #f1f0ee;
  --surface-muted: #e9e7e4;
  --forest-900: var(--store-ink);
  --forest-800: #292524;
  --forest-line: #44403c;
  --ink: var(--store-ink);
  --lime-500: var(--store-accent);
  --lime-600: var(--store-accent-hover);
  --on-lime: var(--store-on-accent);
  --text-body: #1c1917;
  --text-muted: #57534e;
  --on-forest: #fafaf9;
  --on-forest-muted: #d6d3d1;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --focus: var(--store-ink);
  --overlay: rgba(28, 25, 23, .45);
  --shadow-soft: 0 20px 50px -20px rgba(28, 25, 23, .25);
  --shadow-glow: none;
}

/* Store: faixa do lojista logado */
.ms-store-admin { background: var(--forest-900); color: var(--on-forest); font-size: 14px; line-height: 20px; }
.ms-store-admin__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); max-width: 1152px; margin-inline: auto; padding: 8px var(--space-5); }
.ms-store-admin a { display: inline-flex; align-items: center; gap: 6px; color: var(--on-forest-muted); font-weight: 500; text-decoration: none; }
.ms-store-admin a:hover { color: var(--on-forest); }
.ms-store-admin a:focus-visible { outline-color: currentColor; }
.ms-store-admin svg { width: 16px; height: 16px; }

/* Store: marca no cabeçalho (logo + nome) */
.ms-store-brand { display: flex; align-items: center; gap: var(--space-3); min-width: 0; color: var(--ink); text-decoration: none; }
.ms-store-brand__logo { display: block; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-tint); object-fit: cover; }
.ms-store-brand__logo--icon { display: grid; place-items: center; color: var(--ink); }
.ms-store-brand__logo--icon svg { width: 22px; height: 22px; }
.ms-store-brand__name { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .ms-store-brand__logo { width: 56px; height: 56px; } .ms-store-brand__name { font-size: 24px; line-height: 30px; } }
.ms-nav--store .ms-nav__actions { gap: var(--space-2); flex-shrink: 0; }

/* Store: apresentação da loja abaixo do cabeçalho */
.ms-store-intro { background: var(--surface-000); border-bottom: 1px solid var(--border); }
.ms-store-intro__inner { max-width: 1152px; margin-inline: auto; padding: var(--space-6) var(--space-5); }
.ms-store-intro__text { max-width: 768px; margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.ms-store-intro__more { margin-top: var(--space-2); padding: 0; border: 0; background: none; color: var(--ink); font: 600 14px/20px var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ms-back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; }
.ms-back-link:hover { text-decoration: underline; }
.ms-back-link svg { width: 16px; height: 16px; }
.ms-store-intro__text + .ms-back-link, .ms-store-intro__more + .ms-back-link { margin-top: var(--space-4); }
.ms-store-intro .ms-back-link { display: flex; width: fit-content; }

/* Footer escuro com colunas automáticas (rodapé da loja) */
.ms-footer--forest { background: var(--forest-900); border-top: 0; color: var(--on-forest-muted); }
.ms-footer--forest a, .ms-footer--forest .ms-footer__title, .ms-footer--forest .ms-footer__name { color: var(--on-forest); }
.ms-footer--forest a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ms-footer--forest .ms-footer__links a { color: var(--on-forest-muted); }
.ms-footer--forest .ms-footer__links a:hover { color: var(--on-forest); }
.ms-footer--forest .ms-footer__social a { border-color: var(--forest-line); color: var(--on-forest); }
.ms-footer--forest .ms-footer__social a:hover { background: var(--forest-800); }
.ms-footer--forest .ms-footer__bottom { border-top-color: var(--forest-line); }
.ms-footer--forest .ms-btn--outline { border-color: var(--forest-line); color: var(--on-forest); }
.ms-footer--forest .ms-btn--outline:hover { background: var(--forest-800); }
.ms-footer__grid--auto { display: flex; flex-wrap: wrap; gap: var(--space-10); }
.ms-footer__grid--auto > * { flex: 1 1 180px; min-width: 0; }
.ms-footer__grid--auto > :first-child { flex: 2 1 280px; }
.ms-footer__name { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.ms-footer__contact { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: 10px; }
.ms-footer__contact li { display: flex; align-items: flex-start; gap: var(--space-2); overflow-wrap: anywhere; }
.ms-footer__contact svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.ms-footer__contact a { text-decoration: none; }
.ms-footer__contact a:hover { text-decoration: underline; }
.ms-footer__platform p:not(.ms-footer__title) { margin: 0; }
.ms-footer__platform .ms-btn { margin-top: var(--space-4); }

/* Botão flutuante do WhatsApp */
.ms-wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--whatsapp); color: #fff; box-shadow: 0 4px 16px rgba(37, 211, 102, .4); transition: transform .2s, box-shadow .2s; }
.ms-wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37, 211, 102, .5); }
.ms-wa-float svg { width: 28px; height: 28px; }
.ms-wa-float:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Avisos rápidos (toasts) no canto da tela */
.ms-toast-stack { position: fixed; top: 16px; left: 16px; right: 16px; z-index: 60; display: grid; justify-items: end; gap: var(--space-2); pointer-events: none; }
.ms-toast-stack .ms-alert { width: 100%; max-width: 380px; box-shadow: var(--shadow-soft); pointer-events: auto; }

/* ---------- Store: vitrine (busca, ordenação, categorias, paginação) ---------- */
.ms-shop { padding-block: var(--space-12) var(--space-24); }
.ms-shop__head { margin-bottom: var(--space-10); }
.ms-shop__toolbar { display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .ms-shop__toolbar { grid-template-columns: 1fr 240px; } }
.ms-search { position: relative; margin: 0; }
.ms-search > svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.ms-search .ms-input { margin-top: 0; padding-left: 44px; background: var(--surface-000); }
.ms-select { margin-top: 0; padding-right: 40px; background: var(--surface-000) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357534e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ms-shop__toolbar form { margin: 0; }
.ms-shop .ms-chips { margin-top: var(--space-5); }
a.ms-chip { text-decoration: none; }
.ms-chip[aria-current="true"] { background: var(--forest-900); border-color: var(--forest-900); color: var(--on-forest); }
.ms-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-filter-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); font-weight: 600; }
.ms-filter-pill a { display: grid; text-decoration: none; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-pill); color: inherit; }
.ms-filter-pill a:hover { background: rgba(0, 0, 0, .08); }
.ms-filter-pill svg { width: 14px; height: 14px; }
.ms-shop__count { margin: var(--space-6) 0 var(--space-6); font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-shop__count strong { color: var(--text-body); font-weight: 600; }

/* Product card: extras usados nas lojas reais */
.ms-product__media > a:not(.ms-product__add) { display: block; color: inherit; text-decoration: none; }
.ms-product__media--placeholder img { object-fit: contain; padding: var(--space-8); background: var(--surface-000); }
.ms-product__overlay { position: absolute; inset: 0; display: grid; place-items: center; background: var(--overlay); pointer-events: none; }
.ms-badge--light { background: var(--surface-000); color: var(--ink); }
.ms-product__desc { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ms-product__stock { margin: 6px 0 0; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ms-product__name { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 479px) {
  .ms-product__name { font-size: 16px; line-height: 22px; }
  .ms-product__add { left: 8px; right: 8px; bottom: 8px; padding: 10px 8px; font-size: 13px; }
  .ms-product__media .ms-badge { left: 8px; top: 8px; }
  .ms-product__add-extra { display: none; }
}

/* ---------- Store: página de produto ---------- */
.ms-pdp { padding-block: var(--space-12) var(--space-24); }
.ms-pdp__grid { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 900px) {
  .ms-pdp__grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .ms-pdp__gallery { position: sticky; top: 136px; }
}
.ms-gallery__main { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-000); }
.ms-gallery__main > img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; cursor: zoom-in; }
.ms-gallery__main--placeholder > img { padding: var(--space-12); opacity: .5; cursor: default; }
.ms-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-soft); }
.ms-gallery__nav--prev { left: 12px; }
.ms-gallery__nav--next { right: 12px; }
.ms-gallery__thumbs { display: flex; gap: var(--space-2); margin-top: var(--space-3); padding: 2px; overflow-x: auto; }
.ms-gallery__thumb { flex-shrink: 0; width: 72px; height: 72px; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-000); cursor: pointer; }
.ms-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ms-gallery__thumb[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ms-pdp__gallery.is-zoomed { z-index: 80; } /* com a imagem ampliada, a galeria sobe acima do cabeçalho (z 40) */
.ms-lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: rgba(12, 10, 9, .85); cursor: zoom-out; }
.ms-lightbox__inner { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 1024px; height: 100%; }
.ms-lightbox__inner img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-md); }
.ms-lightbox .ms-icon-btn { position: absolute; top: 0; right: 0; background: var(--surface-000); }

.ms-pdp__edit { margin-bottom: var(--space-5); }
.ms-pdp__title { margin: var(--space-2) 0 0; font-family: var(--font-display); font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 768px) { .ms-pdp__title { font-size: 44px; } }
.ms-pdp .ms-price--lg { align-items: center; margin-top: var(--space-4); }
.ms-pdp__stock { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.ms-pdp__stock--out { color: var(--danger-text); }
.ms-pdp__stock svg { width: 18px; height: 18px; }
.ms-pdp__sku { margin: var(--space-2) 0 0; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.ms-pdp__section { margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.ms-pdp__subtitle { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ms-pdp__desc { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.ms-pdp__buy { display: grid; gap: var(--space-4); }
.ms-pdp__qty { display: flex; align-items: center; gap: var(--space-4); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.ms-qty__input { width: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: center; font: 700 16px/24px var(--font-sans); -moz-appearance: textfield; appearance: textfield; }
.ms-qty__input::-webkit-inner-spin-button, .ms-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ms-qty__input:focus-visible { outline: 2px solid var(--focus); border-radius: 6px; }
.ms-pdp__note { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-pdp__note svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.ms-pdp__related { margin-top: var(--space-24); }
.ms-pdp__related .ms-h-sub { margin-bottom: var(--space-8); }
@media (min-width: 1024px) { .ms-products--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Store: checkout ---------- */
.ms-checkout { padding-block: var(--space-12) var(--space-24); }
.ms-checkout__grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) {
  .ms-checkout__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .ms-checkout__summary { position: sticky; top: 136px; }
}
.ms-field__req { margin-left: 2px; color: var(--danger-text); }
.ms-cart-lines { list-style: none; margin: 0; padding: 0; }
.ms-cart-lines.ms-panel__body { margin-top: var(--space-6); }
.ms-btn__label { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
@media (max-width: 479px) { .ms-checkout .ms-btn--lg { font-size: 16px; line-height: 24px; padding-inline: 20px; } }
.ms-cart-lines .ms-cart-line:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.ms-cart-line__thumb--empty { display: grid; place-items: center; color: var(--text-muted); }
.ms-cart-line__thumb--empty svg { width: 24px; height: 24px; }
.ms-cart-line__name { overflow-wrap: anywhere; }
.ms-summary { display: grid; gap: var(--space-2); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; }
.ms-summary__row { display: flex; justify-content: space-between; gap: var(--space-4); margin: 0; color: var(--text-muted); }
.ms-summary__row strong { color: var(--text-body); font-weight: 600; text-align: right; }
.ms-summary__total { align-items: flex-end; margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border); color: var(--ink); font-size: 16px; font-weight: 700; }
.ms-summary__total strong { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.ms-checkout__actions { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.ms-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ms-spin .7s linear infinite; }
@keyframes ms-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ms-spinner { animation-duration: 1.6s; } }

/* ---------- Store: confirmação do pedido ---------- */
.ms-order { padding-block: var(--space-12) var(--space-24); }
.ms-order .ms-panel { max-width: 768px; margin-inline: auto; }
.ms-order__hero { text-align: center; }
.ms-order__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--space-4); border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); }
.ms-order__icon svg { width: 28px; height: 28px; }
.ms-order__hero p { margin: var(--space-2) 0 0; color: var(--text-muted); }
.ms-order__meta { display: grid; gap: var(--space-5); margin: var(--space-8) 0 0; padding-block: var(--space-6); border-block: 1px solid var(--border); }
.ms-order__meta dt, .ms-order__info dt { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-muted); }
.ms-order__meta dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.ms-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); font: 600 14px/20px var(--font-sans); }
.ms-status svg { width: 16px; height: 16px; }
.ms-order__section { margin-top: var(--space-8); }
.ms-order__info { display: grid; gap: var(--space-4); margin: 0; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-100); }
.ms-order__info dd { margin: 2px 0 0; font-weight: 600; color: var(--text-body); overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .ms-order__meta, .ms-order__info { grid-template-columns: 1fr 1fr; }
  .ms-order__info .is-wide { grid-column: 1 / -1; }
}
.ms-order__items { list-style: none; margin: 0; padding: 0; }
.ms-order__item { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--border); }
.ms-order__item-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ms-order__item-unit { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-order__item-total { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ms-order__items + .ms-summary { margin-top: var(--space-4); padding-top: 0; border-top: 0; }
.ms-store-card { display: flex; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-8); padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-100); }
.ms-store-card__body { min-width: 0; }
.ms-store-card__name { margin: 0; font-weight: 700; color: var(--ink); }
.ms-store-card__desc { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ms-store-card__contact { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-store-card__contact span { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.ms-store-card__contact svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Store: páginas Sobre e Contato ---------- */
.ms-store-page { padding-block: var(--space-12) var(--space-24); }
.ms-store-page--narrow .ms-container { max-width: 808px; }
.ms-store-page__head { margin-bottom: var(--space-8); }
.ms-store-page__head .ms-h-section { overflow-wrap: anywhere; }
.ms-about__brand { display: flex; align-items: center; gap: var(--space-5); }
.ms-about__logo { width: 80px; height: 80px; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); object-fit: cover; }
.ms-about__name { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.ms-about__address { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-about__address svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.ms-about__text { color: var(--text-body); font-size: 16px; line-height: 28px; overflow-wrap: anywhere; }
.ms-about__text--muted { color: var(--text-muted); }
.ms-about__text p { margin: 0; }
.ms-about__text p + p { margin-top: var(--space-4); }
.ms-about__section { margin-top: var(--space-8); }
.ms-about__section:first-child { margin-top: 0; }
.ms-about__foot { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.ms-info-grid { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .ms-info-grid--2 { grid-template-columns: 1fr 1fr; } }
.ms-info-card { display: flex; align-items: center; gap: var(--space-4); min-width: 0; padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-000); color: inherit; text-decoration: none; transition: border-color .15s, background-color .15s; }
.ms-panel .ms-info-card { background: var(--surface-100); }
a.ms-info-card:hover { border-color: var(--ink); }
.ms-info-card .ms-icon-chip { width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-pill); }
.ms-info-card .ms-icon-chip svg { width: 22px; height: 22px; }
.ms-info-card--wa .ms-icon-chip { background: var(--whatsapp); color: #fff; }
.ms-info-card__body { min-width: 0; }
.ms-info-card__label, .ms-info-card__value, .ms-info-card__hint { display: block; }
.ms-info-card__label { margin: 0; font-weight: 700; color: var(--ink); }
.ms-info-card__value { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); overflow-wrap: anywhere; }
.ms-info-card__value--trunc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ms-info-card__hint { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ms-social-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ms-about__label { margin: 0 0 var(--space-3); font-weight: 700; color: var(--ink); }
.ms-contact-grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) { .ms-contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.ms-contact-stack { display: grid; gap: var(--space-4); min-width: 0; }
.ms-panel__title--icon { display: flex; align-items: center; gap: 10px; }
.ms-panel__title--icon svg { width: 22px; height: 22px; }
.ms-form__note { margin: 0; font-size: 12px; line-height: 16px; text-align: center; color: var(--text-muted); }
.ms-btn[aria-disabled="true"] { pointer-events: none; }
.ms-store-cta { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-8); border-radius: var(--radius-xl); background: var(--forest-900); color: var(--on-forest); }
@media (min-width: 900px) { .ms-store-cta { position: sticky; top: 136px; } }
.ms-store-cta__logo { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: var(--space-6); border: 4px solid rgba(255, 255, 255, .2); border-radius: var(--radius-pill); background: var(--forest-800); object-fit: cover; }
.ms-store-cta__logo svg { width: 32px; height: 32px; }
.ms-store-cta__name { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--on-forest); overflow-wrap: anywhere; }
.ms-store-cta__desc { margin: var(--space-2) 0 0; font-size: 14px; line-height: 22px; color: var(--on-forest-muted); overflow-wrap: anywhere; }
.ms-store-cta .ms-btn { margin-top: var(--space-6); background: var(--on-forest); color: var(--ink); }
.ms-store-cta .ms-btn:hover { opacity: .9; }
.ms-store-cta a:focus-visible { outline-color: currentColor; }

/* ---------- Store: avisos de página inteira (manutenção, loja bloqueada) ---------- */
.ms-notice { max-width: 560px; margin-inline: auto; padding: var(--space-16) var(--space-5) var(--space-24); text-align: center; }
.ms-notice__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--space-6); border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); }
.ms-notice__icon svg { width: 28px; height: 28px; }
.ms-notice__icon--danger { background: var(--danger-tint); color: var(--danger-text); }
.ms-notice .ms-h-sub { overflow-wrap: anywhere; }
.ms-notice__text { margin: var(--space-4) 0 0; color: var(--text-body); overflow-wrap: anywhere; }
.ms-notice__text strong { font-weight: 600; }
.ms-notice__text--muted { margin-top: var(--space-3); color: var(--text-muted); }
.ms-notice__actions { display: grid; gap: var(--space-4); justify-items: center; margin-top: var(--space-8); }
.ms-notice__actions .ms-footer__social { margin-top: 0; justify-content: center; }
.ms-notice__back { margin-top: var(--space-10); }

/* ---------- Store: cabeçalho com menu à esquerda, logo central e carrinho à direita ---------- */
.ms-nav--store { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); padding-block: 12px; }
.ms-nav--store > .ms-store-menu { grid-column: 1; justify-self: start; }
.ms-nav--store > .ms-store-brand { grid-column: 2; flex-direction: column; gap: 6px; text-align: center; }
.ms-nav--store > .ms-nav__actions { grid-column: 3; justify-self: end; }
.ms-nav--store .ms-store-brand__logo { width: 64px; height: 64px; }
.ms-nav--store .ms-store-brand__logo--icon svg { width: 26px; height: 26px; }
.ms-nav--store .ms-store-brand--named .ms-store-brand__name { max-width: 220px; font-size: 16px; line-height: 20px; }
/* Loja com logo: nome como legenda discreta abaixo do logo (caixa alta espaçada, uma linha) */
.ms-nav--store .ms-store-brand__name--caption { display: block; max-width: 200px; padding-left: .16em; font-family: var(--font-sans); font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.ms-nav--store a.ms-store-brand:hover .ms-store-brand__name--caption { color: var(--ink); }
@media (min-width: 768px) {
  .ms-nav--store .ms-store-brand__logo { width: 76px; height: 76px; }
  .ms-nav--store .ms-store-brand--named .ms-store-brand__name { max-width: 360px; font-size: 20px; line-height: 24px; }
  .ms-nav--store .ms-store-brand__name--caption { max-width: 320px; font-size: 11px; line-height: 16px; letter-spacing: .18em; padding-left: .18em; }
}
@media (min-width: 1024px) { .ms-nav--store .ms-store-brand__logo { width: 88px; height: 88px; } }
.ms-store-menu { position: relative; }
.ms-store-menu__btn { display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font: 600 14px/20px var(--font-sans); cursor: pointer; transition: background-color .15s; }
.ms-store-menu__btn:hover { background: var(--surface-tint); }
.ms-store-menu__btn svg { width: 20px; height: 20px; }
.ms-store-menu__label { display: none; }
@media (min-width: 640px) { .ms-store-menu__label { display: inline; } }
.ms-store-menu__list { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; display: grid; min-width: 210px; padding: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-000); box-shadow: var(--shadow-soft); }
.ms-store-menu__list a, .ms-store-menu__list button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: 500 15px/20px var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
.ms-store-menu__list a:hover, .ms-store-menu__list button:hover { background: var(--surface-tint); }
.ms-store-menu__list [aria-current="page"] { font-weight: 700; }
.ms-back-bar { max-width: 1152px; margin-inline: auto; padding: var(--space-5) var(--space-5) 0; }

/* Modal simples (<dialog> nativo) */
.ms-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--surface-000); color: var(--text-body); box-shadow: var(--shadow-drawer); }
.ms-dialog::backdrop { background: rgba(28, 25, 23, .45); }
.ms-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 20px var(--space-6); border-bottom: 1px solid var(--border); }
.ms-dialog__title { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ms-dialog__head form { margin: 0; }
.ms-dialog__body { padding: var(--space-6); color: var(--text-muted); overflow-wrap: anywhere; }
.ms-dialog__body p { margin: 0; }

/* Paginação */
.ms-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-16); }
.ms-pagination a, .ms-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s; }
.ms-pagination a:hover { background: var(--surface-tint); }
.ms-pagination [aria-current="page"] { background: var(--forest-900); border-color: var(--forest-900); color: var(--on-forest); }
.ms-pagination svg { width: 16px; height: 16px; }

/* ---------- Scroll reveal (bundle.js adds .is-in) ---------- */
.ms-js .ms-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ms-js .ms-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ms-marquee__track, .ms-hero-media > img { animation: none; }
  .ms-js .ms-reveal { opacity: 1; transform: none; transition: none; }
  .ms-btn, .ms-card, .ms-product__media img, .ms-product__add, .ms-wa-float { transition: none; }
}

/* ---------- Painel do lojista: menu lateral + barra no celular ----------
   <body class="ms-page"> → .ms-dash (id usado pelo botão data-ms-sidebar) → aside.ms-dash__sidebar + .ms-dash__scrim + .ms-dash__main.
   No celular o menu fica fora da tela e abre por cima (.ms-dash.is-open); a partir de 768px fica fixo à esquerda. */
.ms-dash { --dash-sidebar: 256px; min-height: 100vh; }
.ms-dash__sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; display: flex; flex-direction: column; width: var(--dash-sidebar); max-width: calc(100% - 48px); background: var(--forest-900); color: var(--on-forest); overflow-y: auto; overscroll-behavior: contain; transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.ms-dash.is-open .ms-dash__sidebar { transform: none; visibility: visible; box-shadow: var(--shadow-drawer); transition: transform .25s ease; }
.ms-dash__scrim { position: fixed; inset: 0; z-index: 45; width: 100%; border: 0; padding: 0; background: var(--overlay); cursor: default; }
.ms-dash__scrim[hidden] { display: none; }
.ms-dash__sidebar a:focus-visible, .ms-dash__sidebar button:focus-visible { outline-color: var(--lime-500); }
.ms-dash__brand { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 20px var(--space-5) 16px; }
.ms-dash__brand .ms-logo { color: var(--on-forest); font-size: 22px; }
.ms-dash__close { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--on-forest); cursor: pointer; }
.ms-dash__close:hover { background: var(--forest-800); }
.ms-dash__close svg { width: 20px; height: 20px; }
.ms-dash__nav { display: grid; gap: 4px; padding: var(--space-2) var(--space-3); }
.ms-dash__group { display: grid; gap: 4px; margin: var(--space-2) var(--space-3) 0; padding-top: var(--space-3); border-top: 1px solid var(--forest-line); }
.ms-dash__foot { margin-top: auto; padding: var(--space-3); border-top: 1px solid var(--forest-line); }
/* Rodapé da barra lateral: "Minha Conta" (com o primeiro nome embaixo) e "Sair" */
.ms-dash__foot { display: grid; gap: 2px; }
.ms-dash__account .ms-dash__label { display: grid; min-width: 0; }
.ms-dash__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 500; opacity: .8; }

/* Minha Conta (/dashboard/account) */
.ms-account { display: grid; gap: var(--space-5); }
.ms-account .ms-dash-card { scroll-margin-top: 80px; }
.ms-account__actions { display: flex; justify-content: flex-end; }
.ms-account__current { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); overflow-wrap: anywhere; color: var(--ink); }
.ms-account__current form { margin: 0; }
.ms-account__change { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.ms-account__change > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink); font-weight: 700; font-size: 15px; list-style: none; }
.ms-account__change > summary::-webkit-details-marker { display: none; }
.ms-account__change > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-tint); font-weight: 800; }
.ms-account__change[open] > summary::before { content: "−"; }
.ms-account__change[open] > summary { margin-bottom: var(--space-4); }
.ms-account__plans { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.ms-account__plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ms-account__plan-store { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ms-account__plan-info { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-account__plan-side { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.ms-account__empty { margin: 0; color: var(--text-muted); }
.ms-account__empty a, .ms-account__help a { color: var(--ink); font-weight: 700; }
.ms-account__help { margin: 0; text-align: center; font-size: 14px; color: var(--text-muted); }
.ms-blog-row { display: flex; align-items: center; gap: var(--space-3); min-width: 240px; }
.ms-blog-row__thumb { width: 64px; height: 40px; flex-shrink: 0; border-radius: 8px; object-fit: cover; background: var(--surface-tint); }
.ms-blog-row__thumb--empty { display: grid; place-items: center; color: var(--text-muted); }
.ms-blog-row__thumb--empty svg { width: 18px; height: 18px; }
.ms-blog-row__title { color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.ms-blog-row__title:hover { text-decoration: underline; }
.ms-blog-row__slug { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
/* HUB > Notificações (backlog #29) */
.ms-notify-row__text { margin: 2px 0 0; max-width: 46ch; font-size: 13px; line-height: 18px; color: var(--text-muted); overflow-wrap: anywhere; }
.ms-notify-row__failed { color: var(--danger-text); font-weight: 600; }
.ms-notify-form__button { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-4); }
@media (max-width: 559px) { .ms-notify-form__button { grid-template-columns: 1fr; } }
.ms-notify-form__buttons { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: var(--space-3); margin-left: auto; }
.ms-notify-form__actions [aria-disabled="true"] { opacity: .6; pointer-events: none; }
@media (max-width: 559px) { .ms-notify-form__buttons, .ms-notify-form__buttons .ms-btn { width: 100%; } }
.ms-notify-preview { display: block; width: 100%; height: 720px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #f9f7ee; }
.ms-blog-cover { display: grid; gap: var(--space-3); }
.ms-blog-cover__img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.ms-blog-cover__img.is-removed { opacity: .35; }
.ms-blog-cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.ms-blog-editor .trumbowyg-box { margin: 6px 0 0; border-color: var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-000); }
.ms-blog-editor .trumbowyg-button-pane { background: var(--surface-100); border-bottom-color: var(--border); }
.ms-blog-editor .trumbowyg-editor { min-height: 360px; font: 400 16px/1.7 var(--font-sans); color: var(--ink); }
.ms-blog-editor .trumbowyg-editor h2, .ms-blog-editor .trumbowyg-editor h3, .ms-blog-editor .trumbowyg-editor h4 { font-family: var(--font-display, inherit); line-height: 1.25; }
.ms-blog-editor .trumbowyg-editor img { max-width: 100%; height: auto; }
.ms-blog-editor .trumbowyg-editor blockquote { margin-left: 0; padding-left: var(--space-4); border-left: 3px solid var(--lime-500); color: var(--text-muted); }
.trumbowyg-fullscreen .ms-blog-editor .trumbowyg-box, .trumbowyg-box.trumbowyg-fullscreen { border-radius: 0; }
.ms-account__pro-kicker { margin: 0 0 var(--space-2); }
.ms-account__pro-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.ms-account__pro-features li { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; color: var(--ink); }
.ms-account__pro-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; background: var(--lime-500); color: var(--on-lime); }
.ms-account__pro-icon svg { width: 18px; height: 18px; }
.ms-account__pro-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); border-top: 1px solid var(--border); padding-top: var(--space-4); }
.ms-account__pro-price { margin: 0; color: var(--text-muted); }
.ms-account__pro-price strong { color: var(--ink); font-size: 18px; }
.ms-dash__link { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--on-forest-muted); font: 500 15px/20px var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.ms-dash__link svg { width: 20px; height: 20px; flex-shrink: 0; }
.ms-dash__link:hover { background: var(--forest-800); color: var(--on-forest); }
.ms-dash__link[aria-current="page"] { background: var(--lime-500); color: var(--on-lime); font-weight: 700; }
.ms-dash__label { flex: 1; min-width: 0; }
.ms-dash__badge { min-width: 22px; padding: 2px 7px; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime); font-size: 11px; line-height: 16px; font-weight: 700; text-align: center; }
.ms-dash__tag { padding: 1px 7px; border: 1px solid currentColor; border-radius: var(--radius-pill); color: var(--lime-500); font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ms-dash__link[aria-current="page"] .ms-dash__badge { background: var(--forest-900); color: var(--on-forest); }
.ms-dash__link[aria-current="page"] .ms-dash__tag { color: var(--forest-900); }
.ms-dash__main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.ms-dash__topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: 64px; padding: 0 var(--space-4); background: rgba(249, 247, 238, .9); background: color-mix(in srgb, var(--surface-100) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.ms-dash__topbar .ms-logo { font-size: 20px; }
.ms-dash__topbar-spacer { width: 40px; }
.ms-dash__notice { display: flex; align-items: flex-start; gap: var(--space-3); padding: 12px var(--space-5); background: var(--warning-tint); color: var(--warning-text); border-bottom: 1px solid var(--border); font-size: 14px; line-height: 20px; }
.ms-dash__notice > svg { width: 20px; height: 20px; flex-shrink: 0; }
.ms-dash__notice p { margin: 0; }
.ms-dash__notice a { color: inherit; font-weight: 700; text-decoration: underline; }
.ms-dash__notice { flex-wrap: wrap; }
.ms-dash__notice p { flex: 1 1 240px; overflow-wrap: anywhere; }
.ms-dash__notice-action { margin: 0; flex-shrink: 0; }
.ms-dash__notice-action .ms-btn { background: var(--surface-000); }
.ms-dash__content { flex: 1; }
@media (min-width: 768px) {
  .ms-dash { padding-left: var(--dash-sidebar); }
  .ms-dash__sidebar { max-width: none; transform: none; visibility: visible; transition: none; }
  .ms-dash.is-open .ms-dash__sidebar { box-shadow: none; }
  .ms-dash__topbar, .ms-dash__scrim, .ms-dash__close { display: none !important; }
  .ms-dash__notice { padding-inline: var(--space-8); }
}
@media (prefers-reduced-motion: reduce) { .ms-dash__sidebar, .ms-dash.is-open .ms-dash__sidebar { transition: none; } }

/* Modal pequeno com formulário (Caixa de Sugestões do painel) */
.ms-dialog--sm { width: min(480px, calc(100% - 32px)); }
.ms-dialog__title--icon { display: flex; align-items: center; gap: 10px; }
.ms-dialog__title--icon svg { width: 22px; height: 22px; flex-shrink: 0; }
.ms-dialog__body .ms-form { margin-top: var(--space-4); }
.ms-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); }
/* Botão vermelho para ações que apagam (excluir produto, pedido, categoria, imagem) */
.ms-btn--danger { background: var(--danger-text); border-color: var(--danger-text); color: #fff; }
.ms-btn--danger:hover { filter: brightness(1.08); }
/* Modal de confirmação do painel (msConfirm) */
.ms-confirm .ms-dialog__body p { color: var(--text-body); font-size: 15px; line-height: 22px; }
.ms-confirm .ms-dialog__actions { margin-top: var(--space-5); }
.ms-confirm.is-danger .ms-dialog__title svg { color: var(--danger-text); }
.ms-confirm__value { margin-top: var(--space-4); font-size: 14px; }
.ms-confirm [hidden] { display: none !important; } /* .ms-input e .ms-btn têm display próprio, que venceria o hidden */
.ms-counter { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: -8px; }
.ms-counter .ms-field__help { margin: 0 0 0 auto; }
.ms-counter .ms-field__error { margin: 0; }

/* ---------- Painel: blocos das páginas (cabeçalho, indicadores, cartões, listas, tabela) ---------- */
.ms-dash-page { width: 100%; max-width: 1200px; margin-inline: auto; padding: var(--space-6) var(--space-4) var(--space-12); display: grid; gap: var(--space-6); align-content: start; }
.ms-dash-head__title { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.ms-dash-head__text { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; line-height: 22px; }
.ms-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.ms-kpi { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; padding: var(--space-5); background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ms-kpi .ms-icon-chip { width: 40px; height: 40px; border-radius: 14px; }
.ms-kpi .ms-icon-chip svg { width: 20px; height: 20px; }
.ms-kpi__label { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-muted); }
.ms-kpi__value { margin: 2px 0 0; font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.ms-kpi__note { font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.ms-dash-card { min-width: 0; padding: var(--space-6); background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.ms-dash-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.ms-dash-card__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ms-dash-card__title > svg { width: 20px; height: 20px; flex-shrink: 0; }
.ms-dash-card__text { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-dash-card__head .ms-dash-card__title { margin: 0; }
.ms-dash-grid { display: grid; gap: var(--space-6); }
.ms-dash-actions { display: grid; gap: var(--space-3); }
.ms-dash-welcome { display: grid; gap: var(--space-4); justify-items: start; }
.ms-dash-welcome p { margin: 0; color: var(--text-muted); }
.ms-chart { position: relative; height: 256px; }
.ms-dash-empty { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 160px; padding: var(--space-4); text-align: center; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-dash-empty.ms-chart { min-height: 0; }
.ms-dash-empty > svg { width: 40px; height: 40px; margin-bottom: 6px; color: var(--border-strong); }
.ms-dash-empty p { margin: 0; }
.ms-dash-empty strong { color: var(--text-body); font-weight: 600; }
.ms-rank { list-style: none; margin: 0; padding: 0; }
.ms-rank li { display: flex; align-items: center; gap: var(--space-3); padding: 12px 0; border-top: 1px solid var(--border); }
.ms-rank li:first-child { border-top: 0; padding-top: 0; }
.ms-rank li:last-child { padding-bottom: 0; }
.ms-rank__icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--surface-tint); color: var(--ink); }
.ms-rank__icon svg { width: 16px; height: 16px; }
.ms-rank__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; color: var(--text-body); }
.ms-rank__count { flex-shrink: 0; min-width: 32px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); font-size: 12px; line-height: 18px; font-weight: 700; text-align: center; }
.ms-tag-premium { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime); font-family: var(--font-sans); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ms-date-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ms-date-filter .ms-input { width: auto; height: 40px; margin: 0; padding: 0 12px; font-size: 14px; }
.ms-date-filter__sep { font-size: 14px; color: var(--text-muted); }
.ms-mini-stats { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0 0 var(--space-5); }
.ms-mini-stats div { display: flex; flex-direction: column-reverse; }
.ms-mini-stats dt { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ms-mini-stats dd { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 800; color: var(--ink); }
.ms-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.ms-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.ms-table th { padding: 10px 16px; background: var(--surface-100); border-bottom: 1px solid var(--border); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: left; white-space: nowrap; }
.ms-table td { padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-body); }
.ms-table tbody tr:first-child td { border-top: 0; }
.ms-table tbody tr:hover td { background: var(--surface-100); }
.ms-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.ms-upsell { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); padding: var(--space-6); background: var(--surface-tint); border-radius: var(--radius-xl); }
.ms-upsell .ms-icon-chip { width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--surface-000); }
.ms-upsell .ms-icon-chip svg { width: 22px; height: 22px; }
.ms-upsell__body { flex: 1 1 260px; }
.ms-upsell__title { margin: 0; font-weight: 700; color: var(--ink); }
.ms-upsell__text { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
@media (min-width: 640px) {
  .ms-dash-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .ms-dash-page { padding: var(--space-8) var(--space-8) var(--space-16); gap: var(--space-8); }
  .ms-dash-head__title { font-size: 32px; line-height: 38px; }
}
@media (min-width: 1100px) {
  .ms-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
  .ms-dash-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Título no topo do cartão */
.ms-dash-card > .ms-dash-card__title:first-child { margin-bottom: 20px; }

/* ---------- Painel: produtos (lista, filtros, formulário, envio de imagens) ---------- */
.ms-dash-head--action { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.ms-dash-page .ms-pagination { margin-top: 0; }
.ms-icon-btn--sm { width: 36px; height: 36px; }
.ms-icon-btn--sm svg { width: 18px; height: 18px; }
.ms-icon-btn--danger:hover { background: var(--danger-tint); color: var(--danger-text); }
a.ms-icon-btn { text-decoration: none; }
.ms-link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; border: 0; background: none; color: var(--ink); font: 600 14px/20px var(--font-sans); cursor: pointer; }
.ms-link-btn svg { width: 16px; height: 16px; }
.ms-link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.ms-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-tag svg { width: 12px; height: 12px; flex-shrink: 0; }
.ms-tag--lime { background: var(--lime-500); color: var(--on-lime); }
.ms-tag--dark { background: var(--text-body); color: var(--surface-000); }

/* Filtros recolhíveis (<details>) */
.ms-dash-filters { background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.ms-dash-filters > summary { display: flex; align-items: center; gap: 10px; padding: var(--space-4) var(--space-6); border-radius: var(--radius-xl); color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.ms-dash-filters > summary::-webkit-details-marker { display: none; }
.ms-dash-filters > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ms-dash-filters > summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.ms-dash-filters__chev { margin-left: auto; transition: transform .15s; }
.ms-dash-filters[open] .ms-dash-filters__chev { transform: rotate(180deg); }
.ms-dash-filters form { padding: var(--space-5) var(--space-6) var(--space-6); border-top: 1px solid var(--border); }
.ms-dash-filters .ms-search { margin-top: 6px; }
.ms-dash-filters .ms-search .ms-input { background: var(--surface-100); }
.ms-dash-filters__actions { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: var(--space-3); }
.ms-dash-count { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-dash-count strong { color: var(--text-body); font-weight: 600; }
.ms-dash-count__stats { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.ms-dash-count__stats span { display: inline-flex; align-items: center; gap: 6px; }
.ms-dash-count__stats svg { width: 16px; height: 16px; }

/* Lista de produtos do lojista: linha com miniatura no celular, cartões a partir de 640px */
.ms-admin-products { display: grid; gap: var(--space-3); }
.ms-admin-product { display: grid; grid-template-columns: 96px minmax(0, 1fr); min-width: 0; overflow: hidden; background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ms-admin-product__media { position: relative; display: grid; place-items: center; min-height: 120px; background: var(--surface-tint); color: var(--text-muted); }
.ms-admin-product__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-admin-product__media > svg { width: 32px; height: 32px; }
.ms-admin-product__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; }
.ms-admin-product__body h2 { margin: 0; }
.ms-admin-product__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ms-admin-product__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-family: var(--font-display); font-size: 16px; line-height: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.ms-admin-product__name:hover { text-decoration: underline; text-decoration-color: var(--lime-500); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ms-admin-product__sku { margin: 0; font-size: 12px; line-height: 16px; color: var(--text-muted); overflow-wrap: anywhere; }
.ms-admin-product__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 12px; margin-top: auto; padding-top: 6px; }
.ms-admin-product__price { margin: 0; font-weight: 700; color: var(--text-body); }
.ms-admin-product__price s { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--text-muted); }
.ms-admin-product__stock { margin: 0; text-align: right; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-body); }
.ms-admin-product__stock.is-low { color: var(--danger-text); }
.ms-admin-product__stock small { display: block; font-size: 12px; line-height: 16px; }
.ms-admin-product__actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 10px; background: var(--surface-100); border-top: 1px solid var(--border); }
.ms-admin-product__actions form { margin: 0; }
.ms-admin-product__icons { display: flex; align-items: center; gap: 4px; }
.ms-admin-product__icons .ms-icon-btn { border-color: transparent; }
.ms-admin-product__icons .ms-icon-btn:hover { border-color: var(--border); }
@media (min-width: 640px) {
  .ms-admin-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .ms-admin-product { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .ms-admin-product__media { aspect-ratio: 4 / 3; min-height: 0; }
  .ms-admin-product__body { padding: 14px 16px; }
}
@media (min-width: 1100px) { .ms-admin-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .ms-admin-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Formulário do painel: seções em cartões, grade de campos, preço com prefixo, opções */
.ms-dash-form { display: grid; gap: var(--space-6); }
.ms-form-grid { display: grid; gap: var(--space-5); align-items: start; }
.ms-dash-form .ms-dash-card > * + * { margin-top: var(--space-5); }
.ms-dash-form .ms-dash-card > .ms-dash-card__head, .ms-dash-form .ms-dash-card > .ms-dash-card__title:first-child { margin-bottom: 0; }
.ms-field > .ms-select { margin-top: 6px; background-color: var(--surface-100); }
.ms-field > textarea.ms-input { resize: vertical; }
.ms-input-affix { position: relative; display: block; margin-top: 6px; }
.ms-input-affix > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 500; pointer-events: none; }
.ms-input-affix .ms-input { margin-top: 0; padding-left: 46px; }
.ms-checks { display: grid; gap: var(--space-3); }
.ms-check--strong { color: var(--ink); font-weight: 600; }
/* Opção com ícone de linha (ex.: "Marque para mostrar" / "Marque para destacar" no produto) */
.ms-check__label { display: inline-flex; align-items: flex-start; gap: 8px; }
.ms-check__label svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--forest-900); }
/* "(Opcional)" ao lado do título de um cartão */
.ms-dash-card__optional { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.ms-check__help { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--text-muted); }
.ms-form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-6); background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: 0 -8px 24px rgba(3, 74, 46, .06); }
@media (max-width: 479px) {
  .ms-form-actions { position: static; box-shadow: none; }
  .ms-form-actions .ms-btn { flex: 1 1 100%; }
}
@media (min-width: 768px) {
  .ms-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ms-form-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ms-form-grid .is-wide { grid-column: span 2; }
  .ms-form-grid .is-full { grid-column: 1 / -1; }
  .ms-form-grid .is-check { padding-top: 38px; }
}

/* Envio de imagens: área de arrastar/soltar + miniaturas com capa */
.ms-upload { display: grid; justify-items: center; gap: 6px; padding: var(--space-8) var(--space-6); border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-100); text-align: center; transition: border-color .15s, background-color .15s; }
.ms-upload:hover, .ms-upload.is-dragover { border-color: var(--forest-900); background: var(--surface-tint); }
.ms-upload:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.ms-upload__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); }
.ms-upload:hover .ms-upload__icon, .ms-upload.is-dragover .ms-upload__icon { background: var(--surface-000); }
.ms-upload__icon svg { width: 24px; height: 24px; }
.ms-upload__text { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-body); }
.ms-upload__text label { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ms-upload__help { margin: 0; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ms-upload__label { display: block; margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.ms-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: var(--space-3); width: 100%; margin: var(--space-4) 0 0; padding: 0; list-style: none; text-align: left; }
.ms-upload__label + .ms-thumbs { margin-top: 0; }
@media (max-width: 479px) {
  .ms-upload { padding: var(--space-6) var(--space-4); }
  .ms-thumbs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2); }
  .ms-thumb__cover { left: 4px; right: 4px; bottom: 4px; padding: 5px 4px; font-size: 11px; white-space: nowrap; }
}
.ms-thumb { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-000); }
.ms-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ms-thumb.is-cover { border-color: var(--forest-900); box-shadow: 0 0 0 2px var(--forest-900); }
.ms-thumb .ms-badge { position: absolute; left: 6px; top: 6px; padding: 4px 8px; font-size: 10px; line-height: 12px; }
.ms-thumb__remove { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .94); color: var(--danger-text); box-shadow: var(--shadow-soft); cursor: pointer; }
.ms-thumb__remove:hover { background: var(--danger-tint); }
.ms-thumb__remove svg { width: 16px; height: 16px; }
.ms-thumb__cover { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 6px 8px; border: 0; border-radius: var(--radius-pill); background: rgba(3, 74, 46, .88); color: var(--on-forest); font: 700 12px/16px var(--font-sans); cursor: pointer; }
.ms-thumb__cover:hover { background: var(--forest-900); }
.ms-thumb [hidden] { display: none; }

/* ---------- Painel: categorias (lista + formulário ao lado) ---------- */
.ms-cat-layout { display: grid; gap: var(--space-6); align-items: start; }
.ms-cat-list { list-style: none; margin: 0; padding: 0; }
.ms-cat { position: relative; display: flex; align-items: flex-start; gap: var(--space-4); margin: 0 calc(var(--space-3) * -1); padding: var(--space-4) var(--space-3); border-radius: 12px; transition: background-color .15s; }
.ms-cat + .ms-cat::before { content: ""; position: absolute; top: 0; left: var(--space-3); right: var(--space-3); border-top: 1px solid var(--border); }
.ms-cat:hover::before, .ms-cat:hover + .ms-cat::before, .ms-cat.is-editing::before, .ms-cat.is-editing + .ms-cat::before { border-color: transparent; }
.ms-cat:hover { background: var(--surface-100); }
.ms-cat.is-editing { background: var(--surface-tint); box-shadow: inset 3px 0 0 var(--forest-900); }
.ms-cat__body { flex: 1; min-width: 0; }
.ms-cat__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.ms-cat__name > span:first-child { min-width: 0; }
.ms-cat__desc { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--text-body); overflow-wrap: anywhere; }
.ms-cat__meta { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.ms-cat__actions { display: flex; flex-shrink: 0; gap: var(--space-2); }
.ms-cat__actions form { margin: 0; }
.ms-cat-form { scroll-margin-top: 88px; }
.ms-cat-form__actions { display: flex; flex-wrap: wrap-reverse; gap: var(--space-3); margin-top: var(--space-2); }
.ms-cat-form__actions .ms-btn { flex: 1 1 140px; }
@media (min-width: 1100px) {
  .ms-cat-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .ms-cat-form { position: sticky; top: var(--space-6); scroll-margin-top: var(--space-6); }
}

/* ---------- Painel: pedidos (indicadores, cartões, status, detalhes) ---------- */
.ms-btn--whatsapp { background: var(--whatsapp); color: var(--text-body); }
.ms-btn--whatsapp:hover { opacity: .9; }
.ms-kpi--pending .ms-icon-chip { background: var(--warning-tint); color: var(--warning-text); }
.ms-kpi--paid .ms-icon-chip { background: var(--lime-500); color: var(--on-lime); }
.ms-kpi--refunded .ms-icon-chip { background: var(--danger-tint); color: var(--danger-text); }
.ms-pay-status { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); font-size: 12px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.ms-pay-status svg { width: 14px; height: 14px; }
.ms-pay-status--pending { background: var(--warning-tint); color: var(--warning-text); }
.ms-pay-status--paid { background: var(--lime-500); color: var(--on-lime); }
.ms-pay-status--refunded { background: var(--danger-tint); color: var(--danger-text); }
.ms-dash-orders { display: grid; gap: var(--space-4); }
.ms-dash-order { display: flex; flex-direction: column; min-width: 0; background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ms-dash-order__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 14px var(--space-5); background: var(--surface-100); border-bottom: 1px solid var(--border); }
.ms-dash-order__number { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.ms-dash-order__body { display: grid; gap: var(--space-4); flex: 1; padding: var(--space-5); }
.ms-dash-order__summary { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.ms-dash-order__summary p { margin: 0; }
.ms-dash-order__total { white-space: nowrap; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.ms-dash-order__date, .ms-dash-order__phone { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.ms-dash-order__customer { min-width: 0; text-align: right; }
.ms-dash-order__name { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-body); overflow-wrap: anywhere; }
.ms-dash-order__items { display: flex; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-dash-order__items svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.ms-dash-order__items span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ms-dash-order__actions { display: flex; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border); }
.ms-dash-order__actions .ms-btn { flex: 1; }
.ms-dash-order__actions .ms-icon-btn { flex-shrink: 0; }
.ms-dash-order-detail { display: grid; gap: var(--space-5); color: var(--text-body); }
.ms-dash-order-detail [hidden] { display: none; }
.ms-dash-order-detail__box { padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-100); }
.ms-dash-order-detail__title { margin: 0 0 var(--space-2); font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.ms-dash-order-detail__contact { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.ms-dash-order-detail__contact li { display: flex; gap: 8px; }
.ms-dash-order-detail__contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }
.ms-dash-order-detail__items { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-md); }
.ms-dash-order-detail__items li { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: 12px var(--space-4); border-top: 1px solid var(--border); }
.ms-dash-order-detail__items li:first-child { border-top: 0; }
.ms-dash-order-detail__items p { margin: 0; }
.ms-dash-order-detail__item-name { font-size: 14px; line-height: 20px; font-weight: 600; }
.ms-dash-order-detail__item-meta { margin-top: 2px !important; font-size: 12px; line-height: 18px; color: var(--text-muted); }
.ms-dash-order-detail__item-meta a { color: var(--ink); font-weight: 600; }
.ms-dash-order-detail__item-price { flex-shrink: 0; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.ms-dash-order-detail__total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); font-weight: 700; color: var(--ink); }
.ms-dash-order-detail__total strong { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 800; }
.ms-dash-order-detail__notes { font-size: 14px; line-height: 20px; font-style: italic; color: var(--text-muted); white-space: pre-line; }
.ms-pay-options { display: grid; gap: var(--space-2); margin: var(--space-4) 0; }
.ms-pay-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px var(--space-4); border: 1px solid transparent; border-radius: var(--radius-md); font: 600 14px/20px var(--font-sans); text-align: left; cursor: pointer; transition: filter .15s, box-shadow .15s; }
.ms-pay-option svg { width: 18px; height: 18px; flex-shrink: 0; }
.ms-pay-option:hover:not(:disabled) { filter: brightness(.96); }
.ms-pay-option:disabled { opacity: .55; cursor: default; }
.ms-pay-option__check { display: none; margin-left: auto; }
.ms-pay-option[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); cursor: default; }
.ms-pay-option[aria-pressed="true"] .ms-pay-option__check { display: block; }
.ms-pay-option--pending { background: var(--warning-tint); color: var(--warning-text); }
.ms-pay-option--paid { background: var(--lime-500); color: var(--on-lime); }
.ms-pay-option--refunded { background: var(--danger-tint); color: var(--danger-text); }
.ms-pay-note { display: flex; gap: 8px; margin: 0 0 var(--space-4) !important; padding: 12px var(--space-4); border-radius: var(--radius-md); background: var(--surface-100); font-size: 13px; line-height: 18px; color: var(--text-body); }
.ms-pay-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.ms-pay-note[hidden] { display: none; }
.ms-pay-saving { margin: 0 0 var(--space-4) !important; font-size: 14px; text-align: center; }
@media (min-width: 640px) {
  .ms-dash-orders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .ms-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ms-dash-orders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Painel: loja (criar e configurar) ---------- */
.ms-dash-page--narrow { max-width: 880px; }
.ms-step-head { display: flex; align-items: flex-start; gap: var(--space-4); }
.ms-step-num { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime); font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.ms-step-head .ms-dash-card__title .ms-tag { font-family: var(--font-sans); letter-spacing: 0; }
.ms-link-preview { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px var(--space-4); border-radius: var(--radius-md); background: var(--surface-tint); font-size: 14px; line-height: 20px; color: var(--text-body); overflow-wrap: anywhere; }
.ms-link-preview svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.ms-link-preview strong { color: var(--ink); }
.ms-link-preview--warn { background: var(--warning-tint); color: var(--warning-text); }
.ms-link-preview[hidden] { display: none; }
.ms-more { border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ms-more > summary { display: flex; align-items: center; gap: 8px; padding: 14px var(--space-5); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.ms-more > summary::-webkit-details-marker { display: none; }
.ms-more > summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.ms-more__chev { margin-left: auto; transition: transform .2s; }
.ms-more[open] .ms-more__chev { transform: rotate(180deg); }
.ms-more__body { display: grid; gap: var(--space-5); padding: 0 var(--space-5) var(--space-5); }
.ms-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ms-fieldset legend { padding: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.ms-fieldset > .ms-field__help { margin: 2px 0 var(--space-4); }
.ms-input-affix--icon > span { display: grid; place-items: center; color: var(--text-muted); }
.ms-input-affix--icon > span svg { width: 18px; height: 18px; }
.ms-form-actions__note { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.ms-logo-field { display: grid; gap: var(--space-3); }
.ms-logo-field [hidden] { display: none !important; }
.ms-logo-field__preview { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-100); }
.ms-logo-field__preview img { width: 96px; height: 96px; flex-shrink: 0; object-fit: contain; border-radius: var(--radius-md); background: var(--surface-000); border: 1px solid var(--border); }
.ms-logo-field__info { display: grid; gap: var(--space-3); min-width: 0; }
.ms-logo-field__name { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-logo-field__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.ms-logo-field__actions label { cursor: pointer; }
.ms-logo-field:has(#logo:focus-visible) .ms-upload, .ms-logo-field:has(#logo:focus-visible) .ms-logo-field__actions label { box-shadow: 0 0 0 2px var(--focus); }
.ms-store-link { display: grid; gap: var(--space-3); background: var(--forest-900); border-color: var(--forest-900); color: var(--on-forest); }
.ms-store-link .ms-dash-card__title { color: var(--on-forest); margin: 0 !important; }
.ms-store-link__url { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; overflow-wrap: anywhere; }
.ms-store-link__url a { color: var(--lime-500); text-decoration: none; }
.ms-store-link__url a:hover { text-decoration: underline; }
.ms-store-link__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ms-store-link .ms-btn--dark { background: var(--lime-500); color: var(--on-lime); }
.ms-store-link .ms-field__help { margin: 0; color: var(--on-forest); opacity: .8; }
.ms-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ms-steps__item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.ms-steps__item:first-child { border-top: 0; padding-top: 0; }
.ms-steps__item:last-child { padding-bottom: 0; }
.ms-steps__mark { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 2px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--ink); }
.ms-steps__mark svg { width: 28px; height: 28px; }
.ms-steps__item.is-done .ms-steps__mark { border: 0; background: var(--lime-500); }
.ms-steps__body { flex: 1; min-width: 0; }
.ms-steps__title { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.ms-steps__item.is-done .ms-steps__title { color: var(--text-muted); text-decoration: line-through; }
.ms-steps__text { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.ms-steps__item .ms-btn { flex-shrink: 0; }
.ms-store-dates { margin: var(--space-4) 0 0 !important; font-size: 13px; line-height: 18px; color: var(--text-muted); }
/* Configurar Loja > Domínio próprio: links do robots.txt e sitemap.xml do domínio */
.ms-domain-seo { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: 13px; line-height: 18px; color: var(--text-muted); }
.ms-domain-seo p { margin: 0; }
.ms-domain-seo p + p { margin-top: var(--space-2); }
.ms-domain-seo__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.ms-domain-seo__links a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ms-domain-seo__links svg { width: 14px; height: 14px; }
@media (max-width: 559px) {
  .ms-steps__item { flex-wrap: wrap; }
  .ms-steps__item .ms-btn { margin-left: 44px; }
}
.ms-link-btn--danger { color: var(--danger-text); }
.ms-link-btn--danger svg { width: 16px; height: 16px; }
.ms-link-preview .ms-link-btn { display: inline; padding: 0; font-size: inherit; }

/* ---------- Painel: Loja PRO (situação, planos, recursos, pagamento PIX) ---------- */
.ms-pro-store-select { max-width: 320px; }
.ms-pro-status { display: flex; align-items: flex-start; gap: var(--space-4); padding: var(--space-5) var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface-000); }
.ms-pro-status__icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); }
.ms-pro-status__icon svg { width: 24px; height: 24px; }
.ms-pro-status__title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.ms-pro-status__text { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--text-body); }
.ms-pro-status--active { background: var(--forest-900); border-color: var(--forest-900); }
.ms-pro-status--active .ms-pro-status__icon { background: var(--lime-500); color: var(--on-lime); }
.ms-pro-status--active .ms-pro-status__title, .ms-pro-status--active .ms-pro-status__text { color: var(--on-forest); }
.ms-pro-status--warn { background: var(--warning-tint); border-color: transparent; }
.ms-pro-status--warn .ms-pro-status__icon { background: var(--surface-000); color: var(--warning-text); }
.ms-pro-status--warn .ms-pro-status__title, .ms-pro-status--warn .ms-pro-status__text { color: var(--warning-text); }
.ms-pro-status--expired .ms-pro-status__icon { background: var(--danger-tint); color: var(--danger-text); }
.ms-pro-section-title { margin: 0 0 var(--space-4); font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ms-pro-plans { display: grid; gap: var(--space-4); }
.ms-pro-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface-000); }
.ms-pro-plan.is-featured { border: 2px solid var(--forest-900); box-shadow: var(--shadow-soft); }
.ms-pro-plan__badge { position: absolute; top: -12px; right: var(--space-5); padding: 4px 12px; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime); font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .02em; }
.ms-pro-plan__name { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.ms-pro-plan__price { margin: 0; font-family: var(--font-display); font-size: 36px; line-height: 42px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.ms-pro-plan__price span { font-family: var(--font-sans); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.ms-pro-plan__note { margin: 0 0 var(--space-3); font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-pro-plan .ms-btn { margin-top: auto; }
.ms-pro-howto { display: flex; gap: 8px; margin: var(--space-4) 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-pro-howto svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--ink); }
.ms-pro-features { display: grid; gap: var(--space-4); }
.ms-pro-feature { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-000); }
.ms-pro-feature__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--lime-500); color: var(--on-lime); }
.ms-pro-feature__icon svg { width: 22px; height: 22px; }
.ms-pro-feature.is-locked .ms-pro-feature__icon { background: var(--surface-tint); color: var(--ink); }
.ms-pro-feature__name { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); }
.ms-pro-feature__desc { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-pro-feature__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.ms-pro-feature__state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ms-pro-feature__state svg { width: 16px; height: 16px; flex-shrink: 0; }
.ms-pro-feature__state.is-locked { color: var(--text-muted); }
.ms-pro-soon { margin: var(--space-4) 0 0; font-size: 14px; color: var(--text-muted); }
.ms-pro-history-link { margin: 0; text-align: center; }
.ms-pro-history-link a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.ms-pro-history-link svg { width: 16px; height: 16px; }
.ms-pro-pay { display: grid; gap: var(--space-4); color: var(--text-body); text-align: center; }
.ms-pro-pay__step { display: none; gap: var(--space-4); justify-items: center; }
.ms-pro-pay[data-pay-state="loading"] [data-step="loading"],
.ms-pro-pay[data-pay-state="qr"] [data-step="qr"],
.ms-pro-pay[data-pay-state="paid"] [data-step="paid"],
.ms-pro-pay[data-pay-state="expired"] [data-step="expired"],
.ms-pro-pay[data-pay-state="error"] [data-step="error"] { display: grid; }
.ms-pro-pay [data-step="loading"] { padding: var(--space-8) 0; color: var(--ink); }
.ms-pro-pay__amount { margin: 0; font-size: 15px; color: var(--text-body); }
.ms-pro-pay__amount strong { color: var(--ink); font-size: 18px; }
.ms-pro-pay__how { margin: 0; padding-left: 20px; text-align: left; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-pro-pay__how li + li { margin-top: 4px; }
.ms-pro-pay__qr { width: 220px; height: 220px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.ms-pro-pay .ms-field { width: 100%; text-align: left; }
.ms-pro-pay__code { display: flex; gap: var(--space-2); margin-top: 6px; }
.ms-pro-pay__code .ms-input { margin-top: 0; min-width: 0; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ms-pro-pay__code .ms-btn { flex-shrink: 0; }
.ms-pro-pay__waiting { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.ms-pro-pay__waiting .ms-spinner { width: 16px; height: 16px; }
.ms-pro-pay__timer { margin: 0; font-size: 13px; color: var(--text-muted); }
.ms-pro-pay__result { padding: var(--space-4) 0; }
.ms-pro-pay__result p { margin: 0; }
.ms-pro-pay__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-pill); background: var(--warning-tint); color: var(--warning-text); }
.ms-pro-pay__icon svg { width: 32px; height: 32px; }
.ms-pro-pay__icon.is-ok { background: var(--lime-500); color: var(--on-lime); }
.ms-pro-pay__icon.is-error { background: var(--danger-tint); color: var(--danger-text); }
.ms-pro-pay__result-title { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 800; color: var(--ink); }
.ms-pro-dns { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-100); color: var(--text-body); font-size: 14px; line-height: 20px; }
.ms-pro-dns p { margin: 0; }
.ms-pro-dns__title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.ms-pro-dns__title svg { width: 16px; height: 16px; }
.ms-pro-dns .ms-table td { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ms-pro-inst { display: grid; gap: var(--space-3); margin: 0; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); min-width: 0; }
.ms-pro-inst__body[hidden] { display: none; }
.ms-pro-inst__body { padding-left: 24px; }
/* Ajuda e contador abaixo do texto da página Sobre: afastados da caixa (o -8px de .ms-counter é da Caixa de Sugestões) */
.ms-pro-inst__body .ms-counter { align-items: flex-start; margin-top: var(--space-2); }
.ms-pro-inst__body .ms-counter .ms-field__help:last-child { flex-shrink: 0; }
.ms-pro-form-msg { margin: 0; padding: 10px var(--space-4); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; font-weight: 600; }
.ms-pro-form-msg.is-ok { background: var(--surface-tint); color: var(--ink); }
.ms-pro-form-msg.is-error { background: var(--danger-tint); color: var(--danger-text); }
.ms-pro-form-msg[hidden] { display: none; }
@media (min-width: 640px) {
  .ms-pro-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-pro-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .ms-pro-status { flex-direction: column; padding: var(--space-5); }
  .ms-pro-pay__code { flex-direction: column; }
}

/* ---------- HUB (admin interno): mesmo layout do painel + selo "HUB" ---------- */
.ms-hub-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ms-hub-tag { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime); font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: .08em; }
.ms-hub__content { padding: var(--space-6) var(--space-4) var(--space-12); min-width: 0; }
.ms-hub__guest { min-height: 100vh; }
.ms-dash__link--sub { min-height: 36px; padding: 6px 14px 6px 46px; font-size: 14px; }
@media (min-width: 768px) {
  .ms-hub__content { padding: var(--space-8) var(--space-8) var(--space-12); }
}

/* HUB: tela de login (AuthCard centralizado na tela) */
.ms-hub-login { min-height: 100vh; display: grid; align-items: center; }
.ms-hub-login__brand { margin-bottom: var(--space-6); }
.ms-hub-login__brand .ms-logo { font-size: 24px; }
/* HUB: páginas do design system dentro do conteúdo (que já tem espaçamento próprio) */
.ms-hub__content > .ms-dash-page { padding: 0; }

/* HUB: filtros em linha, ações da tabela e textos auxiliares (4.4) */
.ms-hub-filters { display: grid; gap: var(--space-4); align-items: end; }
.ms-hub-filters__actions { display: flex; gap: var(--space-2); }
.ms-hub-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ms-hub-actions form { margin: 0; }
.ms-hub-actions .ms-btn { white-space: nowrap; }
.ms-hub-sub { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
a.ms-hub-sub { color: var(--ink); }
.ms-hub-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.ms-hub-link:hover { text-decoration: underline; }
.ms-hub-muted { color: var(--text-muted); font-size: 13px; }
.ms-hub-nowrap { white-space: nowrap; }
.ms-hub-danger { color: var(--danger-text); }
.ms-hub-danger:hover { background: var(--danger-tint); }
@media (min-width: 768px) {
  .ms-hub-filters { grid-template-columns: minmax(140px, 200px) repeat(auto-fit, minmax(180px, 1fr)); }
  .ms-hub-filters__actions { grid-column: auto; }
}
.ms-hub__content .ms-table { min-width: 960px; }
/* HUB: listagens com largura fluida e registros em fundo branco */
.ms-dash-page--fluid { max-width: none; }
.ms-hub__content .ms-table-wrap { background: var(--surface-000); }
.ms-hub__content .ms-table tbody tr:hover td { background: var(--surface-100); }
.ms-hub__content .ms-hub-actions { flex-wrap: nowrap; }
.ms-hub__content .ms-table td:nth-child(2) { min-width: 180px; }
.ms-hub-sub svg { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; }
.ms-hub-message { min-width: 320px; max-width: 640px; white-space: normal; overflow-wrap: anywhere; }
.ms-hub-url { max-width: 420px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ms-hub-feature-row + .ms-hub-feature-row { padding-top: var(--space-5); border-top: 1px solid var(--border); }
/* HUB > Backlog: "A fazer" e "Feito" (lado a lado em telas largas) */
.ms-backlog { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 1100px) { .ms-backlog { grid-template-columns: 1fr 1fr; } }
.ms-backlog__col { display: grid; gap: var(--space-4); min-width: 0; scroll-margin-top: 80px; }
.ms-backlog__title { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 800; color: var(--ink); }
.ms-backlog__title svg { width: 20px; height: 20px; }
.ms-backlog__group { padding: var(--space-5); }
.ms-backlog__group-title { display: flex; align-items: baseline; gap: var(--space-2); margin: 0 0 var(--space-3); font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); }
.ms-backlog__count { padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--text-muted); font-family: var(--font-sans); font-size: 12px; line-height: 20px; font-weight: 700; }
.ms-backlog__list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.ms-backlog__item + .ms-backlog__item { padding-top: var(--space-3); border-top: 1px solid var(--border); }
.ms-backlog__line { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.ms-backlog__text { font-size: 14px; line-height: 21px; color: var(--ink); overflow-wrap: anywhere; }
.ms-backlog__detail { margin: 4px 0 0; font-size: 13px; line-height: 19px; color: var(--text-muted); overflow-wrap: anywhere; }
.ms-backlog code { padding: 1px 5px; border-radius: 6px; background: var(--surface-100); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ms-backlog-level { flex-shrink: 0; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--ink); font-size: 11px; line-height: 18px; font-weight: 700; }
.ms-backlog-level--medium { background: var(--warning-tint); color: var(--warning-text); }
.ms-backlog-level--high { background: var(--danger-tint); color: var(--danger-text); }
.ms-backlog__timeline { display: grid; gap: var(--space-5); margin: 0; padding: 0 0 0 var(--space-5); list-style: none; border-left: 2px solid var(--border); }
.ms-backlog__day { position: relative; }
.ms-backlog__day::before { content: ""; position: absolute; left: calc(-1 * var(--space-5) - 7px); top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime-500); border: 2px solid var(--surface-000); }

/* HUB > Configurações > Verificação em duas etapas (/settings/2fa) */
.ms-hub-2fa .ms-dash-card { display: grid; gap: var(--space-5); }
.ms-hub-2fa .ms-dash-card p { margin: 0; }
.ms-hub-2fa-steps { display: grid; gap: var(--space-3); min-width: 0; }
.ms-hub-2fa-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); }
@media (max-width: 767px) { .ms-hub-2fa-actions .ms-btn { flex: 1 1 100%; } }
.ms-hub-2fa-setup { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 720px) { .ms-hub-2fa-setup { grid-template-columns: 220px 1fr; } }
.ms-hub-2fa-qr { width: 220px; max-width: 100%; aspect-ratio: 1; padding: var(--space-3); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); }
.ms-hub-2fa-qr svg { display: block; width: 100%; height: 100%; }
.ms-hub-2fa-key { margin: 0; padding: var(--space-2) var(--space-3); background: var(--surface-tint); border-radius: var(--radius-md); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: 1px; overflow-wrap: anywhere; color: var(--ink); }
.ms-hub-2fa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); margin: 0; padding: var(--space-4); list-style: none; background: var(--surface-tint); border-radius: var(--radius-md); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; color: var(--ink); }
.ms-hub-2fa-status { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-weight: 600; color: var(--ink); }
.ms-hub-2fa-status svg { width: 18px; height: 18px; color: var(--forest-900); }

/* ---------- Painel: relatórios (/dashboard/reports) ---------- */
.ms-report-bar { display: grid; gap: var(--space-3); }
.ms-report-periods { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
.ms-report-periods .ms-chip { position: relative; padding: 8px 16px; }
.ms-chip--locked { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; color: var(--text-muted); }
.ms-chip--locked svg { width: 14px; height: 14px; }
.ms-chip--locked:hover { border-color: var(--border-strong); background: var(--surface-tint); color: var(--ink); }
.ms-report-range { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-report-range svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.ms-report-range strong { color: var(--text-body); font-weight: 600; }
.ms-kpi__sub { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.ms-delta { display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 0; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 12px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ms-delta svg { width: 14px; height: 14px; flex-shrink: 0; }
.ms-delta--up { background: var(--surface-tint); color: var(--forest-900); }
.ms-delta--down { background: var(--danger-tint); color: var(--danger-text); }
.ms-delta--flat { background: var(--surface-muted); color: var(--text-muted); }
.ms-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.ms-legend li { display: inline-flex; align-items: center; gap: 8px; }
.ms-legend__swatch { width: 20px; border-top: 3px solid var(--forest-900); border-radius: 2px; }
.ms-legend__swatch--prev { border-top: 2px dashed #8a978f; }
.ms-chart--lg { height: 300px; }
.ms-chart--sm { height: 200px; }

/* Caminho até o pedido (funil) */
.ms-funnel { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.ms-funnel__step { position: relative; display: grid; gap: 2px; padding: var(--space-5); background: var(--surface-100); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.ms-funnel__icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 12px; background: var(--surface-tint); color: var(--ink); }
.ms-funnel__icon svg { width: 18px; height: 18px; }
.ms-funnel__label { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-muted); }
.ms-funnel__value { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ms-funnel__pct { margin: 0 0 10px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
@media (min-width: 768px) {
  .ms-funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
  .ms-funnel__step + .ms-funnel__step::before { content: ""; position: absolute; top: 50%; left: -23px; width: 12px; height: 12px; border-top: 2px solid var(--border-strong); border-right: 2px solid var(--border-strong); transform: translateY(-50%) rotate(45deg); }
}

/* Lista com barras (origem das visitas, aparelhos) */
.ms-bars { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.ms-bars__row { display: flex; align-items: center; gap: var(--space-3); }
.ms-bars__icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--surface-tint); color: var(--ink); }
.ms-bars__icon svg { width: 16px; height: 16px; }
.ms-bars__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-body); }
.ms-bars__value { flex-shrink: 0; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ms-bars__track { height: 8px; margin: 8px 0 0 44px; overflow: hidden; border-radius: var(--radius-pill); background: var(--surface-muted); }
.ms-bars__fill { display: block; height: 100%; border-radius: inherit; background: var(--forest-900); }
.ms-bars__note { margin: 4px 0 0 44px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ms-funnel .ms-bars__track { margin: 0; }
.ms-report-foot { margin: var(--space-5) 0 0; font-size: 12px; line-height: 18px; color: var(--text-muted); }
.ms-report-tip { display: flex; gap: 10px; margin: var(--space-5) 0 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-tint); color: var(--text-body); font-size: 13px; line-height: 19px; }
.ms-report-tip svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--ink); }

/* Produtos (mais vistos / mais pedidos) */
.ms-rank__thumb { width: 40px; height: 40px; flex-shrink: 0; overflow: hidden; border-radius: 12px; background: var(--surface-muted); }
.ms-rank__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ms-rank--report .ms-rank__icon { width: 40px; height: 40px; border-radius: 12px; }
.ms-rank__body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ms-rank__body .ms-rank__name { position: relative; flex: none; font-weight: 600; color: var(--text-body); text-decoration: none; }
.ms-rank--report .ms-rank__count { position: relative; }
a.ms-rank__name:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ms-rank__sub { font-size: 12px; line-height: 16px; color: var(--text-muted); }

/* Quando seus clientes visitam */
.ms-report-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3); margin: 0 0 var(--space-6); }
.ms-report-highlights div { display: flex; flex-direction: column-reverse; padding: var(--space-4); background: var(--surface-100); border: 1px solid var(--border); border-radius: var(--radius-md); }
.ms-report-highlights dt { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.ms-report-highlights dd { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.ms-report-split { display: grid; gap: var(--space-6); }
.ms-report-split > div { min-width: 0; }
.ms-report-subtitle { margin: 0 0 var(--space-3); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
@media (min-width: 900px) { .ms-report-split { grid-template-columns: 3fr 2fr; } }

/* Plano grátis: convite para a Loja PRO */
.ms-pro-hero { position: relative; overflow: hidden; padding: var(--space-8) var(--space-6); border-radius: var(--radius-xl); background: var(--forest-900); color: var(--on-forest); scroll-margin-top: var(--space-6); }
.ms-pro-hero::after { content: ""; position: absolute; top: -140px; right: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(187, 236, 76, .32), rgba(187, 236, 76, 0) 70%); pointer-events: none; }
.ms-pro-hero__body { position: relative; z-index: 1; display: grid; justify-items: start; gap: var(--space-4); max-width: 880px; }
.ms-pro-hero__title { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--on-forest); }
.ms-pro-hero__text { margin: 0; max-width: 640px; font-size: 16px; line-height: 24px; color: var(--on-forest-muted); }
.ms-pro-hero__list { display: grid; gap: 10px var(--space-6); width: 100%; margin: var(--space-2) 0; padding: 0; list-style: none; }
.ms-pro-hero__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: var(--on-forest); }
.ms-pro-hero__list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--lime-500); }
.ms-pro-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-2); }
.ms-pro-hero__price { margin: 0; font-size: 14px; line-height: 20px; color: var(--on-forest-muted); }
.ms-pro-hero__price strong { font-weight: 700; color: var(--on-forest); }
.ms-pro-hero__soon { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .12); color: var(--on-forest); font-size: 14px; line-height: 20px; font-weight: 700; }
.ms-pro-hero__soon svg { width: 16px; height: 16px; }
@media (min-width: 768px) {
  .ms-pro-hero { padding: var(--space-10); }
  .ms-pro-hero__title { font-size: 34px; line-height: 40px; }
  .ms-pro-hero__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Plano grátis: prévia bloqueada (ilustração, sem dados reais) */
.ms-locked-grid { display: grid; gap: var(--space-4); }
.ms-locked-card { display: flex; flex-direction: column; gap: 8px; padding: var(--space-5); background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-lg); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ms-locked-card:hover { border-color: var(--forest-900); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.ms-locked-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.ms-locked-card__title { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); }
.ms-locked-card__lock { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .06em; }
.ms-locked-card__lock svg { width: 12px; height: 12px; }
.ms-locked-card__text { font-size: 13px; line-height: 19px; color: var(--text-muted); }
.ms-locked-card__preview { display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 96px; margin-top: auto; padding: 12px; border-radius: var(--radius-md); background: var(--surface-100); filter: blur(2px); opacity: .85; user-select: none; }
.ms-locked-card__preview i { display: block; height: 10px; border-radius: var(--radius-pill); background: var(--forest-900); opacity: .5; }
.ms-locked-card__preview--rank i { display: flex; align-items: center; gap: 8px; height: auto; background: none; opacity: 1; }
.ms-locked-card__preview--rank b { width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; background: var(--border-strong); }
.ms-locked-card__preview--rank s { height: 8px; border-radius: var(--radius-pill); background: var(--forest-900); opacity: .45; }
.ms-locked-card__preview--columns { flex-direction: row; align-items: flex-end; gap: 4px; }
.ms-locked-card__preview--columns i { flex: 1; border-radius: 3px 3px 0 0; }
.ms-locked-card__preview--funnel i { height: 14px; }
@media (prefers-reduced-motion: reduce) { .ms-locked-card, .ms-locked-card:hover { transition: none; transform: none; } }
@media (min-width: 640px) { .ms-locked-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ms-locked-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* reCAPTCHA v2 (caixinha de 304×78 do Google): reserva o espaço e encolhe em telas estreitas para não estourar */
.ms-recaptcha { min-height: 78px; max-width: 100%; }
@media (max-width: 380px) { .ms-recaptcha .g-recaptcha { transform: scale(0.88); transform-origin: 0 0; } .ms-recaptcha { min-height: 69px; } }

/* ---------- Promoção da Loja PRO (Black Friday) ----------
   Só aparece com a promoção ligada no HUB > Loja PRO (getProPromo()). Desligada, volta o visual normal
   (o box anual original continua no código). Depois da campanha, este bloco pode ficar ou ser apagado. */
.ms-bf-bar { position: sticky; top: 64px; z-index: 39; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px var(--space-3); padding: 10px var(--space-4); background: #0b0b0b; color: #fff; font-size: 14px; line-height: 20px; text-decoration: none; border-bottom: 2px solid var(--lime-500); }
.ms-bf-bar:hover .ms-bf-bar__cta { background: #fff; }
.ms-bf-bar__tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.ms-bf-bar__tag svg { width: 14px; height: 14px; }
.ms-bf-bar__text { text-align: center; }
.ms-bf-bar__text strong { color: var(--lime-500); font-weight: 800; }
.ms-bf-bar__text s { color: rgba(255, 255, 255, .6); }
.ms-bf-bar__cta { display: inline-flex; align-items: center; gap: 2px; padding: 4px 8px 4px 14px; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime); font-weight: 800; white-space: nowrap; transition: background .15s; }
.ms-bf-bar__cta svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .ms-bf-bar { font-size: 13px; line-height: 18px; padding: 8px var(--space-3); } .ms-bf-bar__when, .ms-bf-bar__cta { display: none; } }
@media (min-width: 768px) { .ms-bf-bar { top: 0; padding-inline: var(--space-8); } }

.ms-pro-plan--bf { gap: 8px; background: #0b0b0b; color: #fff; border: 2px solid var(--lime-500); box-shadow: 0 12px 32px rgba(11, 11, 11, .28), 0 0 0 6px rgba(187, 236, 76, .18); }
.ms-pro-plan--bf .ms-pro-plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: rgba(255, 255, 255, .72); }
.ms-pro-plan--bf .ms-pro-plan__price { font-size: 44px; line-height: 48px; color: var(--lime-500); }
.ms-pro-plan--bf .ms-pro-plan__price span { color: rgba(255, 255, 255, .72); }
.ms-bf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; background: var(--lime-500); color: var(--on-lime); box-shadow: 0 4px 12px rgba(187, 236, 76, .35); }
.ms-bf-badge svg { width: 14px; height: 14px; }
.ms-bf-tag { padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-pill); font-size: 11px; line-height: 16px; letter-spacing: .04em; color: #fff; }
.ms-bf-from { margin: 4px 0 0; font-size: 15px; line-height: 20px; color: rgba(255, 255, 255, .72); }
.ms-bf-from s { font-weight: 700; color: rgba(255, 255, 255, .85); text-decoration-thickness: 2px; text-decoration-color: #ff4d4d; }
.ms-bf-perks { display: grid; gap: 6px; margin: 4px 0 0; font-size: 14px; line-height: 20px; color: #fff; }
.ms-bf-perks span { display: flex; align-items: center; gap: 8px; }
.ms-bf-perks svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--lime-500); }
.ms-bf-deadline { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 6px 0 var(--space-2); padding: 4px 12px; border-radius: var(--radius-pill); background: rgba(255, 77, 77, .16); color: #ff8a8a; font-size: 13px; line-height: 18px; font-weight: 700; }
.ms-bf-deadline svg { width: 14px; height: 14px; }
.ms-pro-plan--bf .ms-bf-cta { font-size: 16px; font-weight: 800; box-shadow: 0 6px 18px rgba(187, 236, 76, .35); }
.ms-bf-fine { margin: 2px 0 0; font-size: 12px; line-height: 16px; text-align: center; color: rgba(255, 255, 255, .55); }
.ms-bf-inline { display: inline-block; padding: 0 8px; border-radius: var(--radius-pill); background: var(--lime-500); color: var(--on-lime) !important; font-size: 12px; }

/* ---------- Blog do site (backlog #31) ---------- */
.ms-blog { padding-bottom: var(--space-24); }
.ms-blog__empty { margin: 0 0 var(--space-16); text-align: center; color: var(--text-muted); font-size: 18px; }
.ms-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-blog-meta svg { width: 16px; height: 16px; }
.ms-blog-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ms-blog-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface-000); transition: transform .2s, box-shadow .2s; }
.ms-blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.ms-blog-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-tint); }
.ms-blog-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ms-blog-card:hover .ms-blog-card__media img { transform: scale(1.03); }
.ms-blog-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--forest-900); }
.ms-blog-card__placeholder svg { width: 48px; height: 48px; }
.ms-blog-card__body { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; padding: var(--space-6); }
.ms-blog-card__title { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.ms-blog-card__title a { color: inherit; text-decoration: none; }
.ms-blog-card__title a::after { content: ""; position: absolute; inset: 0; }
.ms-blog-card__title a:focus-visible { outline: none; }
.ms-blog-card:has(.ms-blog-card__title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.ms-blog-card__excerpt { margin: 0; font-size: 16px; line-height: 24px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ms-blog-card__more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: var(--space-2); font-weight: 700; color: var(--ink); }
.ms-blog-card__more svg { width: 18px; height: 18px; transition: transform .2s; }
.ms-blog-card:hover .ms-blog-card__more svg { transform: translateX(3px); }
.ms-blog-card--featured { margin-bottom: var(--space-8); }
@media (min-width: 900px) {
  .ms-blog-card--featured { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: center; }
  .ms-blog-card--featured .ms-blog-card__body { justify-content: center; padding: var(--space-8); }
  .ms-blog-card--featured .ms-blog-card__title { font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; }
  .ms-blog-card--featured .ms-blog-card__excerpt { font-size: 17px; line-height: 26px; -webkit-line-clamp: 3; }
}
.ms-blog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-10); }
.ms-blog-pager__info { color: var(--text-muted); font-size: 14px; }
.ms-blog-related { padding-bottom: var(--space-24); }
.ms-blog-related__title { margin: 0 0 var(--space-6); font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

/* Artigo */
.ms-article { padding: var(--space-12) 0 var(--space-16); }
.ms-article__head { max-width: 768px; margin: 0 auto; padding-inline: var(--space-5); display: grid; justify-items: start; gap: var(--space-5); }
.ms-article__back { text-decoration: none; }
.ms-article__back:hover { background: var(--lime-500); color: var(--on-lime); }
.ms-article__title { margin: 0; font-family: var(--font-display); font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.ms-article__lede { font-size: 20px; line-height: 30px; }
.ms-article__cover { max-width: 1104px; margin: var(--space-10) auto 0; padding-inline: var(--space-5); }
.ms-article__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-2xl); }
.ms-article__body { max-width: 720px; margin: var(--space-12) auto 0; padding-inline: var(--space-5); font-size: 18px; line-height: 1.75; color: var(--text-body); overflow-wrap: break-word; }
.ms-article__body > * { margin: 0; }
.ms-article__body > * + * { margin-top: 1.25em; }
.ms-article__body h2 { margin-top: 2em; font-family: var(--font-display); font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.ms-article__body h3 { margin-top: 1.75em; font-family: var(--font-display); font-size: 23px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.ms-article__body h4 { margin-top: 1.5em; font-size: 19px; font-weight: 700; color: var(--ink); }
.ms-article__body h2 + *, .ms-article__body h3 + *, .ms-article__body h4 + * { margin-top: .6em; }
.ms-article__body strong, .ms-article__body b { color: var(--ink); font-weight: 700; }
.ms-article__body a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ms-article__body a:hover { background: var(--lime-500); text-decoration-color: transparent; }
.ms-article__body ul, .ms-article__body ol { padding-left: 1.4em; }
.ms-article__body li + li { margin-top: .5em; }
.ms-article__body li::marker { color: var(--forest-900); font-weight: 700; }
.ms-article__body blockquote { padding: var(--space-5) var(--space-6); border-left: 4px solid var(--lime-500); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--surface-000); font-size: 20px; line-height: 1.6; color: var(--ink); }
.ms-article__body img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-lg); }
.ms-article__body hr { border: 0; height: 1px; background: var(--border); margin-block: 2.5em; }
.ms-article__body pre { overflow-x: auto; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-tint); font-size: 15px; }
.ms-article__cta { max-width: 1104px; margin: var(--space-16) auto 0; padding-inline: var(--space-5); }
@media (min-width: 768px) {
  .ms-article { padding-top: var(--space-16); }
  .ms-article__title { font-size: 52px; }
}

/* Box "crie sua loja" (fim do artigo e da lista) */
.ms-blog-cta { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: var(--space-8); align-items: center; margin-top: var(--space-16); padding: var(--space-10) var(--space-6); border-radius: var(--radius-2xl); background: var(--forest-900); color: var(--on-forest); }
.ms-article__cta .ms-blog-cta { margin-top: 0; }
.ms-blog-cta::before, .ms-blog-cta::after { content: ""; position: absolute; z-index: -1; background: var(--lime-500); }
.ms-blog-cta::before { width: 420px; height: 420px; right: -160px; bottom: -200px; border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; }
.ms-blog-cta::after { width: 220px; height: 220px; left: -110px; top: -120px; border-radius: 50%; opacity: .14; }
.ms-blog-cta__text { display: grid; justify-items: start; gap: var(--space-5); }
.ms-blog-cta__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .1); color: var(--lime-500); font-size: 14px; line-height: 20px; font-weight: 700; }
.ms-blog-cta__eyebrow svg { width: 16px; height: 16px; }
.ms-blog-cta__title { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--on-forest); text-wrap: balance; }
.ms-blog-cta__title span { color: var(--lime-500); }
.ms-blog-cta__lede { margin: 0; max-width: 520px; font-size: 18px; line-height: 28px; color: var(--on-forest-muted); }
.ms-blog-cta__list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.ms-blog-cta__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 24px; color: var(--on-forest); }
.ms-blog-cta__list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--lime-500); }
.ms-blog-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-2); }
.ms-blog-cta__note { font-size: 14px; line-height: 20px; color: var(--on-forest-muted); }
.ms-blog-cta__media { position: relative; justify-self: center; width: min(100%, 300px); }
.ms-blog-cta__media img { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); transform: rotate(3deg); }
.ms-blog-cta__bubble { position: absolute; left: -18px; bottom: 28px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius-lg); background: var(--surface-000); color: var(--ink); box-shadow: var(--shadow-soft); transform: rotate(-3deg); }
.ms-blog-cta__bubble svg { width: 22px; height: 22px; color: var(--whatsapp); }
.ms-blog-cta__bubble small { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ms-blog-cta__bubble strong { display: block; font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 800; }
@media (min-width: 900px) {
  .ms-blog-cta { grid-template-columns: 1.35fr 1fr; gap: var(--space-12); padding: var(--space-16); }
  .ms-blog-cta__title { font-size: 48px; }
  .ms-blog-cta__media { width: 100%; max-width: 340px; }
}
@media (max-width: 599px) { .ms-blog-cta__media { display: none; } .ms-blog-cta::before { width: 200px; height: 200px; right: -110px; bottom: auto; top: -110px; } .ms-blog-cta::after { display: none; } }

/* ---------- HUB: Relatório da Loja PRO (backlog #9) ---------- */
.ms-hub__content .ms-hub-report__card .ms-table { min-width: 520px; }
.ms-hub-report__empty { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ms-hub-report__barcol { width: 30%; min-width: 120px; }
.ms-hub-report__bar { display: block; height: 10px; min-width: 2px; border-radius: var(--radius-pill); background: var(--lime-500); }

/* ---------- Painel: Cor da Loja (Loja PRO, backlog #6) ---------- */
.ms-color-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--space-2); }
.ms-color-swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-000); color: var(--text-body); font: inherit; font-size: 12px; line-height: 16px; font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ms-color-swatch:hover { border-color: var(--border-strong); }
.ms-color-swatch[aria-pressed="true"] { border-color: var(--forest-900); box-shadow: 0 0 0 2px var(--forest-900); }
.ms-color-swatch__dot { display: block; width: 32px; height: 32px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ms-color-swatch__name { text-align: center; }
.ms-color-swatch--custom input { width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; cursor: pointer; }
.ms-color-swatch--custom input::-webkit-color-swatch-wrapper { padding: 0; }
.ms-color-swatch--custom input::-webkit-color-swatch { border: 0; border-radius: var(--radius-pill); }
.ms-color-swatch--custom input::-moz-color-swatch { border: 0; border-radius: var(--radius-pill); }
.ms-color-swatch--custom:focus-within { border-color: var(--forest-900); }
.ms-color-preview { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-100); color: var(--text-body); }
.ms-color-preview__label { margin: 0; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ms-color-preview__card { display: flex; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-000); }
.ms-color-preview__media { flex-shrink: 0; width: 72px; height: 72px; padding: 6px; border-radius: var(--radius-sm); background: var(--surface-tint); }
.ms-color-preview__media .ms-badge { padding: 4px 8px; font-size: 10px; white-space: nowrap; }
.ms-color-preview__body { display: grid; align-content: start; justify-items: start; gap: 4px; min-width: 0; }
.ms-color-preview__name { margin: 0; font-family: var(--font-display); font-size: 16px; line-height: 20px; font-weight: 700; color: var(--ink); }
.ms-color-preview__price { margin: 0 0 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
.ms-color-preview .ms-btn { pointer-events: none; }
.ms-color-preview__cta { justify-self: stretch; }
.ms-color-preview__footer { padding: 10px 14px; border-radius: var(--radius-md); background: var(--forest-900); color: var(--on-forest); font-size: 13px; line-height: 18px; font-weight: 600; }
.ms-color-note[hidden] { display: none; }
.ms-color-preview__body .ms-btn--sm { padding: 8px 16px; }
.ms-pro-form-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* ---------- Imagem nas categorias (Loja PRO, backlog #34) ---------- */
/* Painel > Categorias */
.ms-cat__thumb { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-md); border: 1px solid var(--border); object-fit: cover; background: var(--surface-tint); }
.ms-cat__thumb--empty { display: grid; place-items: center; color: var(--text-muted); border-style: dashed; background: transparent; }
.ms-cat__thumb--empty svg { width: 18px; height: 18px; }
.ms-cat-image { display: flex; align-items: center; gap: var(--space-4); margin-top: 6px; }
.ms-cat-image__preview { display: grid; place-items: center; flex-shrink: 0; width: 88px; height: 88px; overflow: hidden; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-100); color: var(--text-muted); }
.ms-cat-image__preview img { width: 100%; height: 100%; object-fit: cover; }
.ms-cat-image__preview [hidden] { display: none; }
.ms-cat-image__preview svg { width: 24px; height: 24px; }
.ms-cat-image__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ms-cat-image__actions label { cursor: pointer; }
.ms-cat-image__actions [hidden] { display: none; }
.ms-cat-image__actions input:focus-visible + .ms-btn, .ms-cat-image__actions label:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.ms-cat-image-locked { display: flex; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-2); padding: var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-muted); font-size: 14px; line-height: 20px; text-decoration: none; }
.ms-cat-image-locked strong { color: var(--ink); }
.ms-cat-image-locked:hover { background: var(--surface-tint); }
.ms-cat-image-locked__icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--surface-tint); color: var(--ink); }
.ms-cat-image-locked__icon svg { width: 20px; height: 20px; }
/* Vitrine da loja */
.ms-cat-cards { display: flex; gap: var(--space-4); overflow-x: auto; padding: 4px 4px var(--space-3); margin: 0 -4px; scrollbar-width: thin; }
.ms-cat-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); flex-shrink: 0; width: 96px; color: var(--ink); text-decoration: none; }
.ms-cat-card__media { display: grid; place-items: center; width: 88px; height: 88px; border-radius: var(--radius-pill); border: 2px solid var(--border); object-fit: cover; background: var(--surface-tint); color: var(--ink); transition: border-color .15s, transform .15s; }
.ms-cat-card__media svg { width: 28px; height: 28px; }
.ms-cat-card__media--empty { color: var(--text-muted); }
.ms-cat-card__name { max-width: 100%; font-size: 13px; line-height: 18px; font-weight: 600; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-cat-card:hover .ms-cat-card__media { border-color: var(--lime-500); transform: translateY(-2px); }
.ms-cat-card[aria-current="true"] .ms-cat-card__media { border-color: var(--lime-500); box-shadow: 0 0 0 2px var(--lime-500); }
.ms-cat-card[aria-current="true"] .ms-cat-card__name { font-weight: 700; }
.ms-cat-card:focus-visible { outline: none; }
.ms-cat-card:focus-visible .ms-cat-card__media { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (min-width: 768px) { .ms-cat-card { width: 112px; } .ms-cat-card__media { width: 104px; height: 104px; } }
.ms-shop .ms-cat-cards { margin-top: var(--space-5); }

/* Área de notificações do painel (#30): sino e janela "Avisos" */
.ms-dash__topbar-actions { display: flex; align-items: center; gap: var(--space-2); }
.ms-inbox-bell { position: relative; }
.ms-inbox-bell__count { position: absolute; top: -4px; right: -4px; min-width: 20px; padding: 2px 5px; border-radius: var(--radius-pill); background: var(--danger-text); color: #fff; font-size: 11px; line-height: 14px; font-weight: 700; text-align: center; box-shadow: 0 0 0 2px var(--surface-100); }
.ms-inbox-bell__count[hidden], .ms-dash__badge[hidden] { display: none; }
.ms-inbox { width: min(560px, calc(100% - 32px)); }
.ms-inbox .ms-dialog__body { max-height: min(70vh, 640px); overflow-y: auto; padding: var(--space-3) var(--space-6) var(--space-6); }
.ms-inbox__empty { padding: var(--space-4) 0 0; }
.ms-inbox__bar { display: flex; justify-content: flex-end; }
.ms-inbox__bar[hidden] { display: none; }
.ms-inbox__all { padding: 6px 0; border: 0; background: none; color: var(--ink); font: 600 13px/18px var(--font-sans); text-decoration: underline; cursor: pointer; }
.ms-inbox__list { margin: 0; padding: 0; list-style: none; }
.ms-inbox__list > li + li { border-top: 1px solid var(--border); }
.ms-inbox__summary { display: grid; grid-template-columns: 10px 1fr auto 18px; align-items: center; gap: var(--space-3); padding: 14px 0; color: var(--text-body); cursor: pointer; list-style: none; }
.ms-inbox__summary::-webkit-details-marker { display: none; }
.ms-inbox__summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.ms-inbox__dot { width: 10px; height: 10px; border-radius: 50%; }
.ms-inbox__item.is-unread .ms-inbox__dot { background: var(--danger-text); }
.ms-inbox__subject { min-width: 0; font-size: 15px; line-height: 21px; font-weight: 500; }
.ms-inbox__item.is-unread .ms-inbox__subject { font-weight: 700; color: var(--ink); }
.ms-inbox__date { color: var(--text-muted); font-size: 12px; line-height: 16px; white-space: nowrap; }
.ms-inbox__chevron { width: 18px; height: 18px; color: var(--text-muted); transition: transform .15s; }
.ms-inbox__item[open] .ms-inbox__chevron { transform: rotate(180deg); }
.ms-inbox__text { padding: 0 0 var(--space-4) 22px; color: var(--text-body); font-size: 15px; line-height: 23px; }
.ms-inbox .ms-dialog__body .ms-inbox__text p { margin: 0 0 12px; }
.ms-inbox__text a:not(.ms-btn) { color: var(--ink); font-weight: 600; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .ms-inbox__chevron { transition: none; } }

/* HUB > Notificações: canal do aviso */
.ms-notify-channel { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.ms-notify-channel label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.ms-notify-row__panel { color: var(--text-muted); }
.ms-notify-channel { margin-top: var(--space-2); }
.ms-notify-table .ms-hub-actions { flex-direction: column; align-items: stretch; }
@media (max-width: 767px) { .ms-dash__topbar { display: grid; grid-template-columns: 1fr auto 1fr; } .ms-dash__topbar-actions { justify-self: end; } }
/* HUB > Relatório do aviso: abas E-mail / Painel (#30) */
.ms-notify-views { display: inline-flex; align-self: flex-start; width: max-content; max-width: 100%; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-000); }
.ms-notify-views__tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: var(--radius-pill); color: var(--ink); font: 600 14px/20px var(--font-sans); text-decoration: none; }
.ms-notify-views__tab svg { width: 18px; height: 18px; }
.ms-notify-views__tab:hover { background: var(--surface-tint); }
.ms-notify-views__tab[aria-current="page"] { background: var(--forest-900); color: var(--on-forest); }
