@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; }
.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 { 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); }
.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__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); }
.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; }
.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); }
@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; }
.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; }
@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-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); }
