/* ============================================================
   CANTINHO DO CHURRASCO — Design Foundations (ported from v2/ prototype)
   Colors + Typography tokens. Palette sampled from the brand logo
   (fire / wood / charcoal / cream).
   ============================================================ */

/* Google Fonts are loaded by shared/_theme using the saved families. */

:root {
  /* ============ BRAND PALETTE (raw) ============ */
  --charcoal-950: #080605;
  --charcoal-900: #120D0B;
  --charcoal-800: #1C1512;
  --charcoal-700: #2A1F19;
  --charcoal-600: #3A2C24;
  --charcoal-500: #4E3A2E;

  --ember-600:    #B5410E;
  --ember-500:    #DA5C18;
  --ember-400:    #F2772A;
  --flame-400:    #F5A623;
  --flame-300:    #FBC453;
  --coal-red:     #8D1402;
  --coal-red-bright: #B5311A;

  --wood-900:     #3A1C08;
  --wood-800:     #622100;
  --wood-700:     #8A4A22;
  --wood-600:     #AB5733;
  --wood-500:     #C47A45;
  --wood-400:     #D9975F;

  --cream-50:     #FBF6EC;
  --cream-100:    #F9F0E1;
  --cream-200:    #F4E9D4;
  --cream-300:    #E7D8BD;

  --ash-400:      #9F8C73;
  --ash-500:      #847358;
  --smoke-600:    #6B5D4F;
  --smoke-700:    #534840;

  /* ============ BRAND-CONSTANT SEMANTIC TOKENS ============ */
  --primary:       #E51F0E;
  --primary-hover: #FB3A22;
  --primary-press: #B81206;
  --accent:        var(--flame-400);
  --glow-primary:  0 0 26px rgba(229,31,14,.55);

  --success:       #4E8A3F;
  --warning:       var(--flame-400);
  --danger:        var(--coal-red-bright);

  /* Stable fills for kitchen actions. Theme-aware lane accents are declared
     with the surface tokens below. */
  --action-accept:   #1D4ED8;
  --action-weigh:    #0E7490;
  --action-prepare:  #C2410C;
  --action-ready:    #15803D;
  --action-delivery: #6D28D9;
  --action-complete: #166534;
  --action-cancel:   #B91C1C;

  /* ============ TYPOGRAPHY ============ */
  --font-display: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-heading: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Oswald', 'Arial Narrow', Arial, sans-serif;

  --weight-serif-medium: 600;
  --weight-serif-bold: 700;
  --weight-serif-extra: 800;
  --weight-serif-black: 900;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.75rem;
  --text-5xl:  5rem;

  --leading-tight: 1.08;
  --leading-snug:  1.25;
  --leading-normal:1.55;

  --tracking-display: 0.01em;
  --tracking-label:   0.14em;
  --tracking-body:    0;

  /* ============ SPACING (8pt base) ============ */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  /* ============ RADII ============ */
  --radius-xs: 3px; --radius-sm: 6px; --radius-md: 10px;
  --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;

  --shadow-glow: 0 0 24px rgba(218,92,24,.45);
}

/* ---- DARK (default) ---- */
:root,
[data-theme="dark"] {
  color-scheme: dark;

  --bg:            var(--charcoal-900);
  --bg-deep:       var(--charcoal-950);
  --surface:       var(--charcoal-800);
  --surface-2:     var(--charcoal-700);
  --surface-hover: var(--charcoal-700);

  --fg-bright:     var(--cream-100);
  --fg:            var(--cream-200);
  --fg-soft:       var(--cream-300);
  --fg-muted:      var(--ash-400);
  --fg-faint:      var(--ash-500);
  --placeholder:   var(--smoke-600);
  --on-primary:    var(--cream-50);

  --border:        var(--charcoal-600);
  --border-strong: var(--wood-700);
  --hairline:      rgba(255,255,255,.06);

  --scrim:         rgba(8,6,5,.82);
  --scrim-strong:  rgba(8,6,5,.96);

  --price:         var(--flame-400);
  --receipt-paper: var(--cream-50);
  --receipt-ink:   var(--charcoal-800);
  --receipt-edge:  var(--cream-300);

  --shadow-sm:   0 1px 2px rgba(0,0,0,.5);
  --shadow-md:   0 6px 18px rgba(0,0,0,.55);
  --shadow-lg:   0 18px 48px rgba(0,0,0,.6);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,.04);

  --kanban-new:      #60A5FA;
  --kanban-weigh:    #22D3EE;
  --kanban-prepare:  #FB923C;
  --kanban-ready:    #4ADE80;
  --kanban-delivery: #A78BFA;
  --kanban-complete: #4ADE80;
  --kanban-cancel:   #F87171;

  /* Danger legível sobre superfícies escuras (o --danger da marca é escuro
     demais como texto no tema noturno). */
  --danger-strong:   #F87171;
}

/* ---- LIGHT (warm parchment / daytime grill) ---- */
[data-theme="light"] {
  color-scheme: light;

  --bg:            #F7EFE2;
  --bg-deep:       #EFE3CF;
  --surface:       #FFFDF8;
  --surface-2:     #F1E6D4;
  --surface-hover: #EFE3CF;

  --fg-bright:     #1C1512;
  --fg:            #2A1F19;
  --fg-soft:       #4E3A2E;
  --fg-muted:      #7A6A55;
  --fg-faint:      #9A8A73;
  --placeholder:   #A1907A;
  --on-primary:    var(--cream-50);

  --border:        #E6D8C0;
  --border-strong: #C9A878;
  --hairline:      rgba(58,28,8,.10);

  --scrim:         rgba(251,246,236,.84);
  --scrim-strong:  rgba(251,246,236,.95);

  --price:         var(--ember-600);
  --receipt-paper: var(--cream-50);
  --receipt-ink:   var(--charcoal-800);
  --receipt-edge:  var(--cream-300);

  --shadow-sm:   0 1px 2px rgba(58,28,8,.10);
  --shadow-md:   0 8px 22px rgba(58,28,8,.12);
  --shadow-lg:   0 22px 52px rgba(58,28,8,.16);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,.6);

  --kanban-new:      var(--action-accept);
  --kanban-weigh:    var(--action-weigh);
  --kanban-prepare:  var(--action-prepare);
  --kanban-ready:    var(--action-ready);
  --kanban-delivery: var(--action-delivery);
  --kanban-complete: var(--action-complete);
  --kanban-cancel:   var(--action-cancel);

  --danger-strong:   var(--coal-red-bright);
}

/* ============ SEMANTIC ELEMENT STYLES ============ */
.cc-display { font-family: var(--font-display); font-weight: var(--weight-serif-black); letter-spacing: var(--tracking-display); line-height: var(--leading-tight); color: var(--fg-bright); }
.cc-h1 { font-family: var(--font-display); font-weight: var(--weight-serif-black); font-size: var(--text-4xl); line-height: var(--leading-tight); color: var(--fg-bright); margin: 0; }
.cc-h2 { font-family: var(--font-heading); font-weight: var(--weight-serif-extra); font-size: var(--text-3xl); line-height: var(--leading-snug); color: var(--fg-bright); margin: 0; }
.cc-h3 { font-family: var(--font-heading); font-weight: var(--weight-serif-bold); font-size: var(--text-xl); line-height: var(--leading-snug); color: var(--fg); margin: 0; }
.cc-eyebrow { font-family: var(--font-heading); font-weight: var(--weight-serif-bold); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--primary); }
.cc-body { font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-normal); color: var(--fg); }
.cc-small { font-family: var(--font-body); font-size: var(--text-sm); color: var(--fg-muted); }
.cc-price { font-family: var(--font-heading); font-weight: var(--weight-serif-extra); color: var(--price); font-variant-numeric: tabular-nums; }

/* ============ BASE RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

/* Turbo subscription elements only maintain the WebSocket connection. Keeping
   them out of layout prevents them from becoming anonymous grid/flex items. */
turbo-cable-stream-source { display: none !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  min-height: 100vh;
  transition: background .35s ease;
}
input { color-scheme: inherit; }
input::placeholder { color: var(--placeholder); }

.scroll-y { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.scroll-y::-webkit-scrollbar { width: 7px; height: 7px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.scroll-y::-webkit-scrollbar-thumb:hover { background: var(--fg-faint); }
.scroll-y::-webkit-scrollbar-track { background: transparent; }

/* ============ THEME SWITCHER + FLASH ============ */
/* Visual language from theme-switcher.zip / CodePen reference. */
.cc-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 0; color: inherit;
}
.cc-theme-toggle__input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cc-theme-toggle__label {
  display: grid; width: 40px; height: 40px; margin: 0; position: relative; place-items: center;
  cursor: pointer; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2); color: var(--fg-muted); box-shadow: var(--shadow-sm);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.cc-theme-toggle__label::before {
  content: none;
}
.cc-theme-toggle__icon {
  display: flex; align-items: center; justify-content: center;
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; opacity: 1; transition: opacity .2s ease, transform .3s cubic-bezier(.22, 1.35, .36, 1);
}
.cc-theme-toggle__icon svg { display: block; }
.cc-theme-toggle__icon--sun { opacity: 0; transform: scale(.65) rotate(-28deg); }
.cc-theme-toggle__icon--moon { opacity: 1; transform: scale(1); }
.cc-theme-toggle__input:checked + .cc-theme-toggle__label {
  background: var(--surface-2); color: var(--fg-muted);
}
.cc-theme-toggle__input:checked + .cc-theme-toggle__label .cc-theme-toggle__icon--sun {
  opacity: 1; transform: scale(1) rotate(0);
}
.cc-theme-toggle__input:checked + .cc-theme-toggle__label .cc-theme-toggle__icon--moon {
  opacity: 0; transform: scale(.65) rotate(28deg);
}
.cc-theme-toggle__input:focus-visible + .cc-theme-toggle__label {
  outline: 2px solid var(--primary); outline-offset: 3px;
}
.cc-theme-toggle__label:hover { color: var(--fg-bright); border-color: var(--border-strong); transform: translateY(-1px); }

.cc-flash { font-family: var(--font-body); border-radius: var(--radius-md); padding: 12px 16px; margin: 0 0 12px; }
.cc-flash--notice { background: rgba(78,138,63,.14); border: 1px solid rgba(78,138,63,.4); color: var(--fg-bright); }
.cc-flash--alert  { background: rgba(141,20,2,.14); border: 1px solid rgba(181,49,26,.45); color: var(--fg-bright); }
/* Estado intermediario (ex.: sessao WAHA aguardando pareamento). */
.cc-flash--warn   { background: rgba(214,142,26,.14); border: 1px solid rgba(214,142,26,.45); color: var(--fg-bright); }

/* Global feedback floats above the page without changing the content layout. */
.cc-toasts {
  position: fixed; z-index: 240;
  top: max(4px, env(safe-area-inset-top)); right: max(4px, env(safe-area-inset-right));
  display: flex; flex-direction: column; gap: 12px; width: min(420px, calc(100vw - 40px));
  box-sizing: content-box; padding: 16px;
  max-height: calc(100dvh - 40px - env(safe-area-inset-top));
  overflow-y: auto; overscroll-behavior: contain; pointer-events: none;
}
.cc-toast {
  --toast-accent: var(--success);
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: start; gap: 12px;
  flex-shrink: 0; padding: 16px; border: 1px solid var(--border); border-left: 4px solid var(--toast-accent);
  border-radius: var(--radius-lg); background: var(--surface); color: var(--fg-bright);
  box-shadow: var(--shadow-lg); font-family: var(--font-body); pointer-events: auto;
  animation: cc-toast-in .24s ease-out;
}
.cc-toast--alert { --toast-accent: var(--warning); }
.cc-toast__icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--toast-accent) 14%, var(--surface)); color: var(--toast-accent);
}
.cc-toast__content { min-width: 0; padding-top: 2px; }
.cc-toast__title { display: block; color: var(--fg-bright); font-size: 14px; font-weight: 700; line-height: 1.4; }
.cc-toast__message { margin: 4px 0 0; color: var(--fg-soft); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.cc-toast__close {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--fg-muted); cursor: pointer;
}
.cc-toast__close:hover { background: var(--surface-2); color: var(--fg-bright); }
.cc-toast__close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@keyframes cc-toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .cc-toasts {
    top: env(safe-area-inset-top); right: env(safe-area-inset-right); left: env(safe-area-inset-left);
    width: auto; max-height: calc(100dvh - 24px - env(safe-area-inset-top)); padding: 12px; gap: 8px;
  }
  .cc-toast { grid-template-columns: 32px minmax(0, 1fr) 36px; padding: 12px; gap: 10px; }
  .cc-toast__icon { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .cc-toast { animation: none; } }

/* ============ WEB LAYOUT (cliente-web) ============ */
.cc-web-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 5vw, 48px);
  background: var(--scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50;
}
.cc-web-brand {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  line-height: 0;
}
.cc-web-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.cc-web-navlink {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 7px; overflow: hidden;
  padding: 9px 11px; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em; text-decoration: none; color: var(--fg);
  transition: color .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.22, 1.35, .36, 1);
}
.cc-web-navlink > span, .cc-web-navlink__icon { position: relative; z-index: 2; }
.cc-web-navlink::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(112deg, transparent 28%, color-mix(in srgb, var(--cream-50) 38%, transparent) 48%, transparent 64%); transform: translateX(-115%) skewX(-14deg); }
.cc-web-navlink::after { content: ""; position: absolute; z-index: 2; left: 22%; right: 22%; bottom: 4px; height: 2px; border-radius: 999px; background: var(--primary); box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 78%, transparent); transform: scaleX(0); transition: transform .22s ease; }
.cc-web-navlink:is(:hover, :focus-visible) { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 70%, var(--border)); background: color-mix(in srgb, var(--primary) 11%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent), 0 0 18px color-mix(in srgb, var(--primary) 24%, transparent); transform: translateY(-3px); outline: 0; }
.cc-web-navlink:is(:hover, :focus-visible)::before { opacity: 1; animation: cc-nav-shine .65s ease-out both; }
.cc-web-navlink:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.cc-web-navlink:is(:hover, :focus-visible) .cc-web-navlink__icon { animation: cc-nav-icon .45s cubic-bezier(.22, 1.45, .36, 1) both; }
.cc-web-navlink__icon { flex: none; transition: color .2s ease; }
@keyframes cc-nav-shine { from { transform: translateX(-115%) skewX(-14deg); } to { transform: translateX(115%) skewX(-14deg); } }
@keyframes cc-nav-icon { 0% { transform: scale(.7) rotate(-12deg); } 62% { transform: translateY(-2px) scale(1.2) rotate(7deg); } 100% { transform: scale(1) rotate(0); } }
.cc-web-nav__actions { display: flex; align-items: center; gap: 10px; }
.cc-account-menu { position: relative; }
.cc-account-menu > summary { list-style: none; }
.cc-account-menu > summary::-webkit-details-marker { display: none; }
.cc-account-menu__chevron { transition: transform .18s ease; }
.cc-account-menu[open] .cc-account-menu__chevron { transform: rotate(180deg); }
.cc-account-menu__panel {
  position: absolute; z-index: 6; top: calc(100% + 8px); right: 0; min-width: 178px;
  padding: 7px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-md);
}
.cc-account-menu__panel a,
.cc-account-menu__panel button {
  display: flex; width: 100%; box-sizing: border-box; padding: 10px 11px;
  border: 0; border-radius: 8px; background: transparent; color: var(--fg-bright);
  font: 600 13px var(--font-heading); text-align: left; text-decoration: none; cursor: pointer;
}
.cc-account-menu__panel a:hover,
.cc-account-menu__panel button:hover { background: var(--surface-2); color: var(--primary); }
.cc-web-bag {
  position: relative; background: var(--surface-2); border: 1px solid var(--border);
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 12px; padding: 0; cursor: pointer; display: inline-flex;
  isolation: isolate; overflow: visible;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.22, 1.35, .36, 1);
}
.cc-web-bag::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit; clip-path: inset(0 round 12px); background: linear-gradient(112deg, transparent 24%, color-mix(in srgb, var(--cream-50) 42%, transparent) 48%, transparent 68%); transform: translateX(-115%) skewX(-14deg); }
.cc-web-bag::after { content: ""; position: absolute; z-index: 1; inset: 1px; pointer-events: none; opacity: 0; border: 1px solid color-mix(in srgb, var(--flame-300) 80%, transparent); border-radius: 10px; box-shadow: inset 0 0 12px color-mix(in srgb, var(--primary) 20%, transparent); transition: opacity .2s ease; }
.cc-web-bag > svg { position: relative; z-index: 2; transform-origin: 50% 25%; }
.cc-web-bag:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--primary) 16%, var(--surface-2)); border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent), 0 0 20px color-mix(in srgb, var(--primary) 30%, transparent); transform: translateY(-3px) scale(1.045); outline: 0; }
.cc-web-bag:is(:hover, :focus-visible)::before { opacity: 1; animation: cc-bag-shine .62s ease-out both; }
.cc-web-bag:is(:hover, :focus-visible)::after { opacity: 1; }
.cc-web-bag:is(:hover, :focus-visible) > svg { animation: cc-bag-swing .58s cubic-bezier(.22, 1.45, .36, 1) both; }
@keyframes cc-bag-shine { from { transform: translateX(-115%) skewX(-14deg); } to { transform: translateX(115%) skewX(-14deg); } }
@keyframes cc-bag-swing { 0% { transform: rotate(-10deg) scale(.82); } 42% { transform: translateY(-2px) rotate(9deg) scale(1.14); } 70% { transform: rotate(-4deg) scale(1.03); } 100% { transform: rotate(0) scale(1); } }
.cc-web-bag__badge {
  position: absolute; z-index: 3; top: -7px; right: -7px; background: var(--ember-500); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 11px; min-width: 20px; height: 20px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.cc-web-main { max-width: 1100px; margin: 0 auto; padding: clamp(20px, 5vw, 48px); }
.cc-web-main--flush { max-width: none; padding: 0; }
.cc-float-actions {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
}
.cc-float-actions--mobile { top: 16px; right: 18px; bottom: auto; }
.cc-float-actions .cc-theme-toggle,
.cc-float-actions .cc-theme-toggle--fixed,
.cc-float-actions .cc-tour-launch { position: static; }
.cc-float-actions .cc-theme-toggle__label,
.cc-float-actions .cc-tour-launch {
  min-height: 64px; height: 64px; box-sizing: border-box;
  border-radius: 14px;
}
.cc-float-actions .cc-theme-toggle__label { width: 64px; }
.cc-float-actions .cc-tour-launch {
  min-width: 108px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 18px; font-size: 15px; letter-spacing: .08em;
}
.cc-float-actions .cc-theme-toggle__icon svg,
.cc-float-actions .cc-tour-launch svg { width: 22px; height: 22px; }

/* Web footer */
.cc-web-footer {
  background: var(--bg-deep); border-top: 1px solid var(--surface-2);
  padding: 46px clamp(20px, 5vw, 48px); display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 48px;
}
.cc-web-footer__brand { display: flex; align-items: center; gap: 14px; min-width: min(100%, 360px); }
.cc-web-footer__copy { font-family: var(--font-body); font-size: 13.5px; color: var(--fg-muted); }
.cc-web-footer__links,
.cc-web-footer__channels { display: flex; align-items: center; gap: 10px; }
.cc-web-footer__links { flex-wrap: wrap; }
.cc-web-footer__textlink {
  color: var(--fg-muted); font-family: var(--font-heading); font-size: 12px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.cc-web-footer__textlink:hover,
.cc-web-footer__textlink:focus-visible { color: var(--fg-bright); text-decoration: underline; }
.cc-web-social {
  width: 42px; height: 42px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--fg); text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.cc-web-social:hover, .cc-web-social:focus-visible { border-color: var(--primary); background: var(--surface-2); transform: translateY(-2px); outline: 0; }

/* Cart drawer */
.cc-drawer__scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 80;
  opacity: 0; transition: opacity .25s;
}
.cc-drawer__scrim.is-open { opacity: 1; }
.cc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 90vw;
  background: var(--bg); border-left: 1px solid var(--surface-2); z-index: 81;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.cc-drawer.is-open { transform: translateX(0); }
.cc-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--surface-2); flex: none;
}
.cc-drawer__title {
  font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: var(--fg-bright);
  text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 10px;
}
.cc-drawer__close { background: none; border: 0; cursor: pointer; display: flex; padding: 4px; }
.cc-drawer__empty { text-align: center; color: var(--fg-muted); font-family: var(--font-body); padding: 70px 24px; }
.cc-drawer__empty p { margin: 14px 0 22px; }
.cc-drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px 18px; }
.cc-drawer__row {
  display: flex; gap: 14px; align-items: center; padding: 13px 0;
  border-bottom: 1px solid var(--surface-2);
}
.cc-drawer__media { flex: none; }
.cc-drawer__info { flex: 1; min-width: 0; }
.cc-drawer__name {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--fg-bright);
  text-transform: uppercase; letter-spacing: .02em;
}
.cc-drawer__line { font-size: 14px; margin-top: 3px; }
.cc-drawer__unit { font-family: var(--font-body); font-size: 11.5px; color: var(--fg-faint); }
.cc-drawer__stepper { display: flex; align-items: center; gap: 10px; flex: none; }
.cc-drawer__qty {
  font-family: var(--font-heading); font-weight: 700; color: var(--fg-bright);
  min-width: 42px; text-align: center;
}
.cc-drawer__foot { padding: 18px 20px 28px; border-top: 1px solid var(--surface-2); flex: none; }
.cc-drawer__meta {
  display: flex; justify-content: space-between; margin-bottom: 5px;
  font-family: var(--font-body); font-size: 13.5px; color: var(--fg-muted);
}
.cc-drawer__hint { font-size: 12.5px; color: var(--fg-faint); }
.cc-drawer__total {
  display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 18px;
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .1em;
  color: var(--fg-muted); font-size: 13px;
}
.cc-drawer__total .cc-price { font-size: 28px; text-transform: none; letter-spacing: 0; }
.cc-drawer__note {
  display: flex; align-items: center; gap: 7px; font-family: var(--font-body);
  font-size: 12.5px; color: var(--fg-muted); margin: 0 0 14px;
}
.cc-drawer__more { width: 100%; box-sizing: border-box; justify-content: center; margin-bottom: 10px; }
.cc-drawer__cta { width: 100%; justify-content: center; }
.cc-step {
  width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2);
  border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cc-step form { margin: 0; }

/* Prototype-style hero */
.cc-hero-web {
  position: relative; overflow: hidden; padding: 88px clamp(20px, 5vw, 40px) 72px; text-align: center;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(218,92,24,.32), rgba(141,20,2,.12) 38%, transparent 66%),
    var(--bg-deep);
}
.cc-hero-web__inner { position: relative; max-width: 980px; margin: 0 auto; }
.cc-hero-web__eyebrow { justify-content: center; margin-bottom: 22px; }
.cc-hero-web__title {
  font-family: var(--font-display); font-size: clamp(48px, 9vw, 84px); line-height: .98;
  color: var(--fg-bright); margin: 0 auto; max-width: 14ch; letter-spacing: .01em;
  animation: cc-hero-ember 13.8s linear infinite;
}
.cc-hero-web__title span { color: var(--ember-500); animation: cc-hero-ember-hot 13.8s linear infinite; }
@keyframes cc-hero-ember {
  0% { opacity: 1; filter: brightness(1.05); }
  4% { opacity: .8; filter: brightness(.94); }
  8% { opacity: .91; filter: brightness(1); }
  12% { opacity: .74; filter: brightness(.9); }
  17% { opacity: .97; filter: brightness(1.04); }
  21% { opacity: .84; filter: brightness(.96); }
  27% { opacity: .9; filter: brightness(.99); }
  31% { opacity: .7; filter: brightness(.86); }
  36% { opacity: .95; filter: brightness(1.03); }
  41% { opacity: .78; filter: brightness(.92); }
  46% { opacity: .88; filter: brightness(.98); }
  52% { opacity: .72; filter: brightness(.88); }
  58% { opacity: 1; filter: brightness(1.06); }
  63% { opacity: .83; filter: brightness(.95); }
  69% { opacity: .93; filter: brightness(1.01); }
  74% { opacity: .76; filter: brightness(.91); }
  80% { opacity: .98; filter: brightness(1.05); }
  86% { opacity: .81; filter: brightness(.94); }
  92% { opacity: .9; filter: brightness(.99); }
  96% { opacity: .73; filter: brightness(.89); }
  100% { opacity: 1; filter: brightness(1.05); }
}
@keyframes cc-hero-ember-hot {
  0%, 17%, 36%, 58%, 80%, 100% { opacity: 1; text-shadow: 0 0 17px color-mix(in srgb, var(--ember-500) 58%, transparent); }
  4%, 21%, 41%, 63%, 86% { opacity: .78; text-shadow: 0 0 6px color-mix(in srgb, var(--ember-500) 26%, transparent); }
  12%, 31%, 52%, 74%, 96% { opacity: .68; text-shadow: 0 0 2px color-mix(in srgb, var(--ember-500) 14%, transparent); }
  8%, 27%, 46%, 69%, 92% { opacity: .91; text-shadow: 0 0 11px color-mix(in srgb, var(--ember-500) 42%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-hero-web__title, .cc-hero-web__title span { animation: none; filter: none; }
}
.cc-hero-web__cta { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 38px; }
.cc-hero-web__search {
  position: relative; display: flex; align-items: center; gap: 10px; width: min(100%, 320px); height: 46px;
  padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cc-hero-web__search input {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg-bright);
  font-family: var(--font-body); font-size: 14px;
}
.cc-hero-web__search input::placeholder { color: var(--fg-muted); }
.cc-hero-web__search:focus-within { border-color: var(--ember-400); box-shadow: 0 0 0 3px rgba(218, 92, 24, .18); }
.cc-hero-web__search .cc-suggestions { text-align: left; }
.cc-hero-web__tour { margin-top: 34px; border: 1px solid color-mix(in srgb, var(--primary) 46%, var(--border)); color: var(--ember-400); }
.cc-hero-web__tour:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 22%, transparent); transform: translateY(-2px); }
@media (max-width: 560px) {
  .cc-hero-web__cta { align-items: stretch; flex-direction: column; }
  .cc-hero-web__cta .cc-btn { justify-content: center; }
  .cc-hero-web__search { width: 100%; }
}

/* First-visit account modal */
.cc-welcome { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 20px; }
.cc-welcome__backdrop { position: absolute; inset: 0; background: rgba(8, 5, 4, .74); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.cc-welcome__card { position: relative; width: min(100%, 440px); max-height: min(760px, calc(100vh - 40px)); overflow-y: auto; padding: 30px; border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border)); border-radius: 24px; background: linear-gradient(145deg, var(--surface), var(--bg-deep)); box-shadow: 0 24px 72px rgba(0, 0, 0, .52), 0 0 38px color-mix(in srgb, var(--primary) 18%, transparent); animation: cc-welcome-in .5s cubic-bezier(.16, 1, .3, 1) both; }
.cc-welcome__close { position: absolute; top: 13px; right: 13px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--fg-muted); cursor: pointer; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.cc-welcome__close:is(:hover, :focus-visible) { color: var(--fg-bright); border-color: var(--primary); transform: rotate(90deg); outline: 0; }
.cc-welcome__brand { display: flex; width: min(240px, 78vw); margin: 0 auto 22px; justify-content: center; text-align: center; }
.cc-welcome__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--ember-400); font-family: var(--font-heading); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.cc-welcome h2 { margin: 0; color: var(--fg-bright); font-family: var(--font-heading); font-size: 28px; line-height: 1; text-transform: uppercase; }
.cc-welcome p { margin: 10px 0 20px; color: var(--fg-muted); font-family: var(--font-body); line-height: 1.5; }
.cc-welcome__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.cc-welcome__field { display: flex; flex-direction: column; gap: 7px; margin: 12px 0; color: var(--fg-soft); font-family: var(--font-heading); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cc-welcome__field input { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; outline: 0; background: var(--surface-2); color: var(--fg-bright); font: 16px var(--font-body); text-transform: none; }
.cc-welcome__field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.cc-welcome__submit { width: 100%; justify-content: center; margin-top: 8px; }
.cc-welcome__login, .cc-welcome__back { display: block; width: 100%; margin-top: 14px; border: 0; text-align: center; font: 600 13px var(--font-heading); text-decoration: none; cursor: pointer; }
.cc-welcome__back { background: none; color: var(--ember-400); }
.cc-btn.cc-welcome__login { box-sizing: border-box; justify-content: center; padding: 9px 18px; }
.cc-welcome__divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--fg-faint); font: 12px var(--font-body); }
.cc-welcome__divider::before, .cc-welcome__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.cc-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-social form { margin: 0; }
.cc-social__button { display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--fg-bright); font: 700 12px var(--font-heading); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cc-social__button--google:hover:not(:disabled) { border-color: #4285f4; box-shadow: 0 0 18px rgba(66, 133, 244, .24); transform: translateY(-2px); }
.cc-social__button--facebook { background: #1877f2; border-color: #1877f2; color: white; }
.cc-social__button--facebook:hover:not(:disabled) { box-shadow: 0 0 20px rgba(24, 119, 242, .45); transform: translateY(-2px); }
.cc-social__button:disabled { cursor: not-allowed; opacity: .43; filter: grayscale(.7); }
.cc-social__logo { display: inline-grid; width: 20px; height: 20px; place-items: center; border-radius: 999px; font: 800 17px/1 Arial, sans-serif; }
.cc-social__logo--google { color: #4285f4; background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 48%, #fbbc05 0 70%, #ea4335 0 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cc-social__logo--facebook { color: #1877f2; background: white; }
@keyframes cc-welcome-in { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.cc-steps { max-width: 980px; margin: 56px auto 0; text-align: left; }
.cc-steps__label {
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; color: var(--fg-muted); font-size: 12.5px; margin-bottom: 26px; text-align: center;
}
.cc-steps__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.cc-steps__line {
  position: absolute; top: 29px; left: 12.5%; right: 12.5%; height: 2px;
  background: var(--surface-2); z-index: 0;
  transform-origin: left center; transform: scaleX(0);
  transition: transform 4.2s cubic-bezier(.16, 1, .3, 1) .28s;
}
.cc-steps:has(.cc-steps__item.is-in) .cc-steps__line { transform: scaleX(1); }
.cc-steps__item {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center; padding: 0 16px;
  opacity: 1; transform: none;
  filter: blur(0);
  transition: opacity 2.35s cubic-bezier(.16, 1, .3, 1), transform 2.35s cubic-bezier(.16, 1, .3, 1), filter 1.85s ease-out;
}
.cc-steps__item.is-pending {
  opacity: 0; transform: translateY(54px) scale(.88); filter: blur(8px);
}
.cc-steps__item.is-in {
  opacity: 1; transform: translateY(0) scale(1); filter: blur(0);
}
.cc-steps__item.is-in .cc-steps__icon {
  animation: stepsIgnite 1.9s cubic-bezier(.16, 1, .3, 1) both;
}
.cc-steps__icon {
  width: 60px; height: 60px; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; position: relative; margin-bottom: 16px;
  background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
}
.cc-steps__icon::after { content: ""; position: absolute; inset: -9px; border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent); border-radius: inherit; pointer-events: none; opacity: 0; transform: scale(.72); }
.cc-steps__item.is-in .cc-steps__icon::after { animation: stepsHalo 2.1s ease-out .28s both; }
.cc-steps__icon.is-hot {
  background: var(--ember-500); border-color: var(--ember-500); box-shadow: var(--shadow-glow);
}
.cc-steps__n {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 999px;
  background: var(--bg-deep); border: 1px solid var(--border); font-family: var(--font-heading);
  font-weight: 700; font-size: 12px; color: var(--fg-bright); display: flex; align-items: center; justify-content: center;
}
.cc-steps__title {
  font-family: var(--font-heading); font-weight: 700; font-size: 16px; text-transform: uppercase;
  letter-spacing: .03em; color: var(--fg-bright); line-height: 1.15;
}
.cc-steps__item.is-in .cc-steps__title { animation: stepsCopyIn 1.55s cubic-bezier(.16, 1, .3, 1) .38s both; }
.cc-steps__title.is-hot { color: var(--ember-400); }
.cc-steps__desc {
  font-family: var(--font-body); font-size: 13.5px; color: var(--fg-muted);
  margin-top: 8px; line-height: 1.5; max-width: 22ch;
}
.cc-steps__item.is-in .cc-steps__desc { animation: stepsCopyIn 1.55s cubic-bezier(.16, 1, .3, 1) .68s both; }
@keyframes stepsIgnite {
  0% { transform: translateY(24px) scale(.62) rotate(-10deg); opacity: 0; box-shadow: 0 0 0 transparent; }
  48% { transform: translateY(-5px) scale(1.16) rotate(5deg); opacity: 1; box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 0%, transparent), 0 0 32px color-mix(in srgb, var(--primary) 40%, transparent); }
  76% { transform: translateY(2px) scale(.98) rotate(-2deg); }
  100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; box-shadow: var(--shadow-sm); }
}
@keyframes stepsHalo { 0% { opacity: 0; transform: scale(.72); } 28% { opacity: .85; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes stepsCopyIn { 0% { opacity: 0; transform: translateY(16px); filter: blur(5px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }
@media (max-width: 820px) {
  .cc-steps__grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .cc-steps__line { display: none; }
}

/* ============ PUBLICAÇÃO, DOCUMENTOS E CONSENTIMENTO ============ */
.cc-legal { max-width: 880px; margin: 0 auto; }
.cc-legal__notice {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--ember-400) 42%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--ember-500) 8%, var(--surface));
  color: var(--fg);
}
.cc-legal__notice strong { display: block; color: var(--fg-bright); margin-bottom: 4px; }
.cc-legal__notice a { color: var(--ember-400); font-weight: 700; }
.cc-legal__document { display: grid; gap: 12px; margin-top: 18px; }
.cc-legal__document h2,
.cc-legal__document h3,
.cc-legal__document h4 { margin: 12px 0 0; color: var(--fg-bright); }
.cc-legal__document p,
.cc-legal__document ul { margin: 0; color: var(--fg); line-height: 1.65; }
.cc-legal__links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.cc-legal__links a { color: var(--ember-400); font-weight: 700; }
.cc-hero-web__publication { max-width: 660px; }

.cc-cookie-banner {
  position: fixed;
  z-index: 1400;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}
.cc-cookie-banner strong { display: block; color: var(--fg-bright); }
.cc-cookie-banner p { max-width: 68ch; margin: 5px 0; color: var(--fg); font-size: 14px; }
.cc-cookie-banner__link { color: var(--ember-400); font-size: 13px; font-weight: 700; }
.cc-cookie-banner__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.cc-cookie-banner__actions form { margin: 0; }

.cc-cookie-settings { display: grid; gap: 12px; margin: 18px 0; }
.cc-cookie-settings__option { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.cc-cookie-settings__option input { margin-top: 4px; accent-color: var(--ember-500); }
.cc-cookie-settings__option span,
.cc-cookie-settings__option small { display: block; }
.cc-cookie-settings__option small { margin-top: 3px; color: var(--fg-muted); }
.cc-co__confirmed { color: var(--success); font-weight: 700; text-align: center; }
.cc-co__cancel,
.cc-weigh__cancel { width: 100%; justify-content: center; margin-top: 8px; }

@media (max-width: 760px) {
  .cc-cookie-banner { align-items: stretch; flex-direction: column; }
  .cc-cookie-banner__actions { justify-content: stretch; }
  .cc-cookie-banner__actions > *,
  .cc-cookie-banner__actions form,
  .cc-cookie-banner__actions .cc-btn { flex: 1 1 100%; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-steps__item, .cc-steps__item.is-pending, .cc-steps__line {
    opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
  }
  .cc-steps__item.is-in .cc-steps__icon, .cc-steps__item.is-in .cc-steps__icon::after, .cc-steps__item.is-in .cc-steps__title, .cc-steps__item.is-in .cc-steps__desc { opacity: 1 !important; filter: none !important; transform: none !important; animation: none !important; }
  .cc-tabbar__tab, .cc-tabbar__tab *, .cc-tabbar__tab::before, .cc-chip > span, .cc-chip > span::before, .cc-chip > span::after, .cc-chip__icon, .cc-chip__label, .cc-grid .cc-card, .cc-m-list .cc-m-row, .cc-web-navlink, .cc-web-navlink::before, .cc-web-navlink::after, .cc-web-navlink__icon, .cc-card__add, .cc-card__add::before, .cc-m-row__add, .cc-m-row__add::before, .cc-web-bag, .cc-web-bag::before, .cc-web-bag::after, .cc-web-bag > svg {
    transform: none !important; transition: none !important; animation: none !important;
  }
}


/* Story + location */
.cc-story {
  background: var(--surface); border-top: 1px solid var(--surface-2); border-bottom: 1px solid var(--surface-2);
}
.cc-story__inner {
  max-width: 1040px; margin: 0 auto; padding: 80px clamp(20px, 5vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.cc-story__title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 44px); color: var(--fg-bright);
  line-height: 1.05; margin: 16px 0 18px;
}
.cc-story__p { font-family: var(--font-body); font-size: 16.5px; color: var(--fg-soft); line-height: 1.6; margin: 0 0 14px; }
.cc-story__p--muted { color: var(--fg-muted); margin-bottom: 0; }
.cc-story__art {
  height: 320px; border-radius: 18px; position: relative; overflow: hidden;
  background: radial-gradient(110% 110% at 70% 10%, var(--wood-500), var(--wood-800) 60%, var(--wood-900));
  border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center;
}
.cc-story__caption {
  position: absolute; bottom: 14px; right: 16px; font-size: 10px; letter-spacing: .16em;
  color: rgba(255,255,255,.4); font-family: var(--font-heading); text-transform: uppercase;
}
.cc-location { max-width: 1040px; margin: 0 auto; padding: 84px clamp(20px, 5vw, 40px); }
.cc-location__head { text-align: center; margin-bottom: 40px; }
.cc-location__head .cc-eyebrow { justify-content: center; margin-bottom: 14px; }
.cc-location__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cc-location__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; text-align: center;
}
.cc-location__icon {
  width: 52px; height: 52px; border-radius: 999px; background: rgba(218,92,24,.14);
  border: 1px solid rgba(218,92,24,.35); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.cc-location__label {
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .1em;
  font-size: 12px; color: var(--fg-muted); margin-bottom: 7px;
}
.cc-location__value { font-family: var(--font-body); font-size: 16px; color: var(--fg-bright); }
@media (max-width: 820px) {
  .cc-story__inner, .cc-location__grid { grid-template-columns: 1fr; }
}

.cc-ig { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px) 84px; }
.cc-ig__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.cc-ig__lead { margin: 10px 0 0; font-family: var(--font-body); font-size: 15px; color: var(--fg-muted); max-width: 36rem; }
.cc-ig__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.cc-ig__card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); transition: transform .18s ease, border-color .18s ease;
}
.cc-ig__card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.cc-ig__media {
  position: relative; aspect-ratio: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cc-ig__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-ig__ph { display: flex; align-items: center; justify-content: center; }
.cc-ig__badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-family: var(--font-heading);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}
.cc-ig__caption {
  margin: 0; padding: 12px 14px 14px; font-family: var(--font-body); font-size: 13px;
  color: var(--fg-muted); line-height: 1.45;
}
@media (max-width: 820px) {
  .cc-ig__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cc-ig__grid { grid-template-columns: 1fr; }
}

.cc-admin__igthumb, .cc-admin__igph {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: block;
}
.cc-admin__igph { border: 1px solid var(--border); }

.cc-featured__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cc-card--action { position: relative; }
.cc-card__hit { display: flex; flex-direction: column; text-decoration: none; flex: 1; color: inherit; }
.cc-card__addform { margin: 0 14px 14px; }
.cc-card__add { width: 100%; justify-content: center; }
.cc-card__add, .cc-m-row__add {
  position: relative; isolation: isolate; overflow: visible;
  transition: background .2s ease, box-shadow .22s ease, transform .22s cubic-bezier(.22, 1.35, .36, 1);
}
.cc-card__add::before, .cc-m-row__add::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; opacity: 0;
  inset: -8px -5px -12px; border-radius: inherit;
  background: radial-gradient(ellipse at 50% 105%, color-mix(in srgb, var(--flame-400) 68%, transparent) 0 20%, transparent 60%), radial-gradient(ellipse at 28% 100%, color-mix(in srgb, var(--ember-500) 56%, transparent) 0 12%, transparent 48%), radial-gradient(ellipse at 72% 100%, color-mix(in srgb, var(--flame-300) 56%, transparent) 0 12%, transparent 48%);
  filter: blur(5px); transform: scale(.78) translateY(4px);
}
.cc-card__add > svg, .cc-card__add-label, .cc-m-row__add > svg { position: relative; z-index: 1; }
.cc-card__add:is(:hover, :focus-visible), .cc-m-row__add:is(:hover, :focus-visible) { background: var(--primary-hover); box-shadow: 0 0 0 1px color-mix(in srgb, var(--flame-300) 52%, transparent), 0 5px 18px color-mix(in srgb, var(--ember-500) 48%, transparent), 0 0 28px color-mix(in srgb, var(--flame-400) 32%, transparent); animation: cc-add-heat 1.15s ease-in-out infinite; outline: 0; }
.cc-card__add:is(:hover, :focus-visible)::before, .cc-m-row__add:is(:hover, :focus-visible)::before { opacity: .9; animation: cc-add-fire .82s ease-in-out infinite alternate; }
@keyframes cc-add-fire { from { transform: scale(.78) translateY(4px); filter: blur(5px); } to { transform: scale(1.08) translateY(-3px); filter: blur(7px); } }
@keyframes cc-add-heat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.025); } }
.cc-detail__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cc-detail__hint {
  display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 13px;
  color: var(--fg-muted); background: rgba(218,92,24,.1); border: 1px solid rgba(218,92,24,.25);
  border-radius: 11px; padding: 10px 12px; margin: 0 0 18px;
}
.cc-web-order { max-width: 560px; margin: 0 auto; }
.cc-web-order__body { margin-top: 8px; }
.cc-web-account { max-width: 900px; }
.cc-web-account__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.cc-web-account__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; }
.cc-web-account__h {
  font-family: var(--font-heading); font-weight: 700; font-size: 14px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--fg-muted); margin: 0 0 14px;
}
.cc-web-account__addrs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cc-web-account__addrs li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.cc-web-cartpage { max-width: 520px; }
@media (max-width: 820px) {
  .cc-web-account__grid { grid-template-columns: 1fr; }
  .cc-web-navlink { display: none; }
}


.cc-linkbtn {
  display: inline-flex; min-height: 40px; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  color: var(--fg-bright); background: transparent; border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: .15s;
}
.cc-linkbtn:hover { border-color: var(--border-strong); }
.cc-linkbtn--primary { background: var(--primary); color: var(--on-primary); border-color: transparent; box-shadow: var(--glow-primary); }
.cc-linkbtn--primary:hover { background: var(--primary-hover); }
/* button_to renders a form; keep it inline with the nav */
.cc-web-nav form { margin: 0; }

/* ============ HOME HUB ============ */
.cc-hero { text-align: left; margin-bottom: 40px; }
.cc-hero .cc-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cc-hero__brand { margin: 0; line-height: 0; }
.cc-hero__lead { max-width: 52ch; margin-top: 16px; color: var(--fg-soft); }
.cc-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .cc-hub { grid-template-columns: 1fr; } }
.cc-hub__card {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-md); transition: border-color .2s, transform .1s;
}
.cc-hub__card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cc-hub__icon {
  width: 48px; height: 48px; flex: none; border-radius: var(--radius-md);
  background: rgba(218,92,24,.12); display: flex; align-items: center; justify-content: center;
}
.cc-hub__card > :nth-child(2) { flex: 1; min-width: 0; }
.cc-hub__title { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--fg-bright); }
.cc-hub__soon { font-family: var(--font-heading); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--flame-400); border: 1px solid rgba(245,166,35,.4); background: rgba(245,166,35,.12); border-radius: 999px; padding: 2px 7px; margin-left: 4px; }

/* ============ BUTTONS ============ */
.cc-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  border: 0; border-radius: var(--radius-md); padding: 14px 26px; transition: .15s;
}
.cc-btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--glow-primary); }
.cc-btn--primary:hover { background: var(--primary-hover); }
.cc-btn--success { background: var(--success); color: var(--on-primary); box-shadow: 0 8px 22px color-mix(in srgb, var(--success) 32%, transparent); }
.cc-btn--success:hover { background: color-mix(in srgb, var(--success) 86%, white); }
.cc-btn--ghost { background: transparent; color: var(--ember-400); padding: 10px 8px; }
.cc-btn--ghost:hover { color: var(--ember-500); }
.cc-btn--icon { width: 34px; height: 34px; justify-content: center; padding: 0; border: 1px solid var(--border); border-radius: 10px; }
/* Ações destrutivas ficam legíveis já em repouso: sem uma cor base, "Remover"
   era indistinguível de um link secundário até o cursor passar por cima. */
.cc-btn--danger { color: var(--danger-strong); }
/* Botão destrutivo isolado (fora de uma linha de tabela) ganha contorno; as
   variantes ghost/icon mantêm a própria borda para não desalinhar a linha. */
.cc-btn--danger:not(.cc-btn--ghost):not(.cc-btn--icon) { border: 1px solid color-mix(in srgb, var(--danger-strong) 45%, var(--border)); background: transparent; }
.cc-btn--danger:hover, .cc-btn--danger:focus-visible { color: var(--danger-strong); border-color: color-mix(in srgb, var(--danger-strong) 56%, var(--border)); background: color-mix(in srgb, var(--danger-strong) 12%, transparent); }
.cc-card .cc-card__add { transition: background .2s ease, box-shadow .22s ease, transform .22s cubic-bezier(.22, 1.35, .36, 1); }

/* ============ BADGES ============ */
.cc-badge {
  display: inline-block; font-family: var(--font-heading); font-weight: 700;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.cc-badge--hot { background: var(--coal-red); color: var(--on-primary); }
.cc-badge--new { background: var(--flame-400); color: #1C1512; }
.cc-badge--veg { background: rgba(78,138,63,.18); color: #7FB86B; border: 1px solid rgba(78,138,63,.4); }

/* ============ SECTIONS ============ */
.cc-section { margin-top: 44px; }
.cc-section > .cc-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }

/* ============ STOREFRONT HOME ============ */
.cc-store-hero { padding: 8px 0 8px; }
.cc-store-hero .cc-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cc-store-hero__lead { max-width: 50ch; margin: 16px 0 22px; color: var(--fg-soft); }

.cc-featured {
  display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: center;
  text-decoration: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-md); transition: border-color .2s;
}
.cc-featured:hover { border-color: var(--border-strong); }
.cc-featured__media .cc-thumb { width: 100%; }
.cc-featured__desc { color: var(--fg-soft); margin: 10px 0 14px; max-width: 52ch; }
.cc-featured__price { font-size: 22px; }
@media (max-width: 720px) { .cc-featured { grid-template-columns: 1fr; } }

.cc-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cc-promo {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.cc-promo__media { display: block; text-decoration: none; }
.cc-promo__media .cc-thumb { width: 100%; transition: transform .22s ease, filter .22s ease; }
.cc-promo__media:hover .cc-thumb,
.cc-promo__media:focus-visible .cc-thumb { transform: scale(1.025); filter: saturate(1.08); }
.cc-promo__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-promo__title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--fg-bright); margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.cc-promo__blurb { color: var(--fg-muted); }
.cc-promo__items { margin: 0; padding-left: 18px; color: var(--fg); font-family: var(--font-body); font-size: 13px; }
.cc-promo__price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.cc-promo__was { font-family: var(--font-body); color: var(--fg-faint); text-decoration: line-through; font-size: 14px; }
.cc-promo__price .cc-price { font-size: 19px; }
.cc-promo__actions { display: flex; align-items: stretch; gap: 8px; margin-top: 4px; }
.cc-promo__actions > a, .cc-promo__actions > form { flex: 1 1 0; min-width: 0; }
.cc-promo__actions .cc-btn { width: 100%; min-width: 0; justify-content: center; padding-inline: 10px; }

.cc-m-menu__title { display: flex; align-items: center; gap: 10px; }

.cc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cc-cat-tile {
  display: flex; flex-direction: column; gap: 4px; min-height: 140px;
  text-decoration: none; border-radius: var(--radius-lg); padding: 18px;
  border: 1px solid var(--hairline); box-shadow: var(--shadow-md); color: var(--cream-100);
  justify-content: flex-end; transition: transform .1s;
}
.cc-cat-tile:hover { transform: translateY(-2px); }
.cc-cat-tile__emoji { font-size: 30px; }
.cc-cat-tile__name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.cc-cat-tile__tag { font-family: var(--font-body); font-size: 12px; color: rgba(249,240,225,.75); }

/* ============ MENU + FILTER ============ */
.cc-menu__head { margin-bottom: 18px; }
.cc-menu__head .cc-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cc-search {
  position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 14px;
}
.cc-search__input { flex: 1; background: transparent; border: 0; outline: 0; font-family: var(--font-body); font-size: 15px; color: var(--fg-bright); }
.cc-suggestions { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); }
.cc-suggestions[hidden] { display: none; }
.cc-suggestions__item { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--fg); text-decoration: none; transition: background .16s ease; }
.cc-suggestions__item:last-child { border-bottom: 0; }
.cc-suggestions__item:is(:hover, :focus-visible, .is-active) { background: var(--surface-2); outline: 0; }
.cc-suggestions__item strong { font-family: var(--font-heading); font-size: 14px; color: var(--fg-bright); }
.cc-suggestions__item span { font-family: var(--font-body); font-size: 12px; color: var(--fg-muted); }
.cc-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.cc-chip { position: relative; cursor: pointer; }
.cc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cc-chip > span {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 7px; overflow: hidden;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg-muted);
  transition: border-color .24s ease, color .2s ease, font-weight .2s ease, box-shadow .24s ease, transform .24s cubic-bezier(.22, 1.35, .36, 1);
}
.cc-chip > span::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(112deg, transparent 28%, color-mix(in srgb, var(--cream-50) 38%, transparent) 48%, transparent 64%); transform: translateX(-115%) skewX(-14deg); }
.cc-chip > span::after { content: ""; position: absolute; z-index: -1; inset: -55%; border-radius: inherit; background: var(--primary); transform: scale(0); }
.cc-chip__icon { position: relative; z-index: 2; display: inline-block; flex: none; font-size: 16px; line-height: 1; transform-origin: 50% 65%; }
.cc-chip__label { position: relative; z-index: 2; color: inherit; font: inherit; transition: color .2s ease, font-weight .2s ease; }
.cc-chip input:checked + span { border-color: transparent; background: var(--primary); color: var(--on-primary); font-weight: 800; animation: cc-chip-select .42s cubic-bezier(.22, 1.35, .36, 1); }
.cc-chip input:checked + span::after { animation: cc-chip-fill .42s ease-out both; }
.cc-chip input:checked + span .cc-chip__icon { animation: cc-chip-icon-select .48s cubic-bezier(.22, 1.45, .36, 1); }
.cc-chip input:checked + span .cc-chip__label { color: var(--on-primary); font-weight: 800; animation: cc-chip-label-select .42s ease-out; }
.cc-chip:is(:hover, :focus-within) > span { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 28%, transparent), 0 0 22px color-mix(in srgb, var(--primary) 34%, transparent), inset 0 0 14px color-mix(in srgb, var(--primary) 16%, transparent); transform: translateY(-3px) scale(1.035); }
.cc-chip:is(:hover, :focus-within) > span::before { opacity: 1; animation: cc-chip-shine .7s ease-out both; }

@keyframes cc-chip-select {
  0% { background: var(--surface-2); color: var(--fg-muted); transform: scale(.93); }
  58% { background: var(--primary-hover); transform: scale(1.055); }
  100% { background: var(--primary); transform: scale(1); }
}
@keyframes cc-chip-fill { from { transform: scale(0); opacity: .45; } to { transform: scale(1); opacity: 0; } }
@keyframes cc-chip-icon-select { 0% { transform: scale(.65) rotate(-18deg); } 58% { transform: translateY(-2px) scale(1.28) rotate(13deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes cc-chip-label-select { 0% { color: var(--fg-muted); font-weight: 600; letter-spacing: .05em; } 60% { color: var(--cream-50); font-weight: 800; letter-spacing: .085em; } 100% { color: var(--on-primary); font-weight: 800; letter-spacing: .05em; } }
@keyframes cc-chip-shine { from { transform: translateX(-115%) skewX(-14deg); } to { transform: translateX(115%) skewX(-14deg); } }

/* ============ PRODUCT GRID + CARD ============ */
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.cc-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); transition: border-color .24s ease, box-shadow .24s ease, transform .24s cubic-bezier(.22, 1.35, .36, 1);
}
.cc-card::after {
  content: ""; position: absolute; z-index: 2; inset: -1px; pointer-events: none; opacity: 0;
  border: 2px solid color-mix(in srgb, var(--primary) 78%, var(--cream-50)); border-radius: inherit;
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--primary) 26%, transparent), 0 0 22px color-mix(in srgb, var(--primary) 34%, transparent);
  transition: opacity .2s ease;
}
.cc-card::before {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(112deg, transparent 28%, color-mix(in srgb, var(--cream-50) 38%, transparent) 48%, transparent 64%);
  transform: translateX(-115%) skewX(-14deg);
}
.cc-card:is(:hover, :focus-within) { border-color: var(--primary); box-shadow: 0 16px 30px rgba(0, 0, 0, .3), 0 0 0 2px color-mix(in srgb, var(--primary) 28%, transparent), 0 0 30px color-mix(in srgb, var(--primary) 30%, transparent); transform: translateY(-7px) scale(1.012); }
.cc-card:is(:hover, :focus-within)::after { opacity: 1; }
.cc-card:is(:hover, :focus-within)::before { opacity: 1; animation: cc-card-shine .75s ease-out both; }
.cc-card__media { padding: 12px 12px 0; }
.cc-card__body { display: flex; flex-direction: column; gap: 7px; padding: 14px; }
.cc-card__badge { margin-bottom: 2px; }
.cc-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; color: var(--fg-bright); margin: 0; line-height: 1.1; }
.cc-card__desc { font-family: var(--font-body); font-size: 13px; color: var(--fg-muted); margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-card__price { font-size: 17px; margin-top: 4px; }
.cc-empty { text-align: center; color: var(--fg-muted); font-family: var(--font-body); padding: 50px 0; }
.cc-grid .cc-card, .cc-m-list .cc-m-row { animation: cc-product-reveal .5s cubic-bezier(.22, 1.18, .36, 1) both; animation-delay: var(--cc-item-delay, 0ms); }
.cc-grid > :nth-child(1), .cc-m-list > :nth-child(1) { --cc-item-delay: 0ms; }
.cc-grid > :nth-child(2), .cc-m-list > :nth-child(2) { --cc-item-delay: 55ms; }
.cc-grid > :nth-child(3), .cc-m-list > :nth-child(3) { --cc-item-delay: 110ms; }
.cc-grid > :nth-child(4), .cc-m-list > :nth-child(4) { --cc-item-delay: 165ms; }
.cc-grid > :nth-child(5), .cc-m-list > :nth-child(5) { --cc-item-delay: 220ms; }
.cc-grid > :nth-child(6), .cc-m-list > :nth-child(6) { --cc-item-delay: 275ms; }
.cc-grid > :nth-child(7), .cc-m-list > :nth-child(7) { --cc-item-delay: 330ms; }
.cc-grid > :nth-child(8), .cc-m-list > :nth-child(8) { --cc-item-delay: 385ms; }
.cc-grid > :nth-child(9), .cc-m-list > :nth-child(9) { --cc-item-delay: 440ms; }
.cc-grid > :nth-child(10), .cc-m-list > :nth-child(10) { --cc-item-delay: 495ms; }
.cc-grid > :nth-child(11), .cc-m-list > :nth-child(11) { --cc-item-delay: 550ms; }
.cc-grid > :nth-child(12), .cc-m-list > :nth-child(12) { --cc-item-delay: 605ms; }
@keyframes cc-product-reveal { from { opacity: 0; transform: translateY(18px) scale(.975); filter: blur(3px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes cc-card-shine { from { transform: translateX(-115%) skewX(-14deg); } to { transform: translateX(115%) skewX(-14deg); } }

/* ============ THUMBNAIL ============ */
.cc-thumb { width: 100%; display: block; flex: none; }
.cc-thumb--img { object-fit: cover; }
.cc-thumb--ph { display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* ============ PRODUCT DETAIL ============ */
.cc-detail { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .cc-detail { grid-template-columns: 1fr; } }
.cc-detail__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cc-detail__title { margin: 0 0 10px; }
.cc-detail__price { font-size: 24px; display: flex; align-items: baseline; gap: 8px; }
.cc-detail__perkg { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--fg-faint); }
.cc-detail__desc { color: var(--fg-soft); margin: 16px 0 22px; max-width: 56ch; }

/* ============================================================
   MOBILE SURFACE — cliente-app
   ============================================================ */
.cc-layout-mobile {
  height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: var(--bg);
}

/* Fixed chrome (hub link + theme toggle) */
.cc-fixed-chip { position: fixed; top: 16px; z-index: 60; }
.back-home {
  left: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  color: var(--fg-bright); background: var(--scrim);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px;
  box-shadow: var(--shadow-md);
}
.back-home:hover { border-color: var(--border-strong); }
.cc-layout-mobile .cc-theme-toggle--fixed { right: 18px; bottom: auto; }

/* The app fills the viewport directly, without simulated device chrome. */
.cc-mobile-app { width: min(100%, 430px); height: 100%; min-height: 0; margin: 0 auto; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.cc-mobile-app__content { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-x: none; }

@media (max-width: 760px) {
  .cc-layout-mobile .cc-float-actions--mobile { display: none; }
}

.cc-statusbar { height: 52px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px 6px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--fg-bright); }
.cc-statusbar__right { display: flex; gap: 6px; align-items: center; }
.cc-statusbar__dots { font-size: 12px; }

/* Bottom tab bar */
.cc-tabbar { flex: none; display: flex; background: var(--scrim-strong); border-top: 1px solid var(--surface-2); padding: 10px 8px 26px; }
.cc-tabbar__tab { flex: 1; min-width: 0; padding: 0 4px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--fg-faint); transition: color .2s ease; }
.cc-tabbar__tab span { font-family: var(--font-heading); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.cc-tabbar__tab.is-active span { color: var(--ember-500); }
.cc-tabbar__tab.is-disabled { opacity: .5; pointer-events: none; }
.cc-tabbar__tab:focus-visible { outline: 2px solid var(--ember-500); outline-offset: 3px; border-radius: 10px; }
.cc-tabbar__icon { transform-origin: center; }
.cc-tabbar__tab:not(.is-active):is(:hover, :focus-visible) .cc-tabbar__icon { transform: translateY(-2px); }
.cc-tabbar__tab.is-active .cc-tabbar__icon { will-change: transform; }
.cc-tabbar__label { display: block; width: 100%; min-width: 0; box-sizing: border-box; padding: 0 7px; overflow: hidden; text-align: center; }
.cc-tabbar__label-text { display: inline-block; white-space: nowrap; transform: translateX(0); }
.cc-tabbar__label.is-overflowing { text-align: left; }
.cc-tabbar__label.is-overflowing .cc-tabbar__label-text { animation: cc-label-scroll 3s ease-in-out infinite alternate; }
.cc-tabbar__tab--explore.is-active .cc-tabbar__icon { animation: cc-tab-flame 1.9s ease-in-out infinite; }
.cc-tabbar__tab--menu.is-active .cc-tabbar__icon { animation: cc-tab-utensils 2.5s ease-in-out infinite; }
.cc-tabbar__tab--cart.is-active .cc-tabbar__icon { animation: cc-tab-bag 2.25s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.cc-tabbar__tab--account.is-active .cc-tabbar__icon { animation: cc-tab-user 2.7s ease-in-out infinite; }
.cc-tabbar__tab--cart.is-active .cc-tabbar__badge { animation: cc-tab-badge 2.25s ease-in-out infinite; }

@keyframes cc-tab-flame {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: translateY(-1px) rotate(3deg) scale(1.12); }
}
@keyframes cc-tab-utensils {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-2px) rotate(-5deg); }
  65% { transform: translateY(-1px) rotate(3deg); }
}
@keyframes cc-tab-bag {
  0%, 100% { transform: translateY(0) scale(1); }
  18% { transform: translateY(-3px) scale(1.06); }
  38% { transform: translateY(0) scale(.98); }
}
@keyframes cc-tab-user {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.09); }
}
@keyframes cc-tab-badge {
  0%, 100% { transform: scale(1); }
  18% { transform: scale(1.13); }
  38% { transform: scale(1); }
}
@keyframes cc-label-scroll {
  0%, 16% { transform: translateX(0); }
  84%, 100% { transform: translateX(calc(-1 * var(--cc-tab-label-overflow))); }
}

/* Explore */
.cc-m-explore { padding: 4px 20px 20px; min-width: 0; max-width: 100%; box-sizing: border-box; }
.cc-m-greeting {
  display: flex; align-items: center; gap: 14px;
  min-width: 0;
}
.cc-m-greeting__copy { flex: 1; min-width: 0; }
.cc-m-greeting .cc-eyebrow { font-size: 12px; }
.cc-m-title { font-family: var(--font-display); font-size: 34px; color: var(--fg-bright); margin: 4px 0 0; line-height: 1.05; }
.cc-m-greeting .cc-logo--mobile { flex: none; max-width: 118px; }
.cc-m-search { position: relative; display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 12px 14px; text-decoration: none; }
.cc-m-search__ph { font-family: var(--font-body); font-size: 14.5px; color: var(--fg-muted); }
.cc-m-search--input .cc-m-search__field { flex: 1; background: transparent; border: 0; outline: 0; font-family: var(--font-body); font-size: 14.5px; color: var(--fg-bright); }
.cc-suggestions--mobile { top: calc(100% + 8px); }
.cc-m-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cc-m-cat { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; text-decoration: none; color: var(--cream-100); border: 1px solid var(--hairline); box-shadow: var(--shadow-md); min-width: 0; overflow: hidden; }
.cc-m-cat__emoji { font-size: 22px; flex: none; }
.cc-m-cat__name { flex: 1; min-width: 0; box-sizing: border-box; padding: 0 3px; overflow: hidden; font-family: var(--font-heading); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.cc-m-cat__name-text { display: inline-block; white-space: nowrap; transform: translateX(0); }
.cc-m-cat__name.is-overflowing .cc-m-cat__name-text { animation: cc-label-scroll 3s ease-in-out infinite alternate; }
.cc-m-sectlabel { display: inline-flex; align-items: center; gap: 7px; margin: 22px 0 12px; font-size: 11px; }
.cc-m-featured { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.cc-m-featured .cc-thumb { width: 100%; }
.cc-m-featured__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.cc-m-featured__name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--fg-bright); }

/* Menu */
.cc-m-menu { padding: 4px 18px 20px; }
.cc-m-menu__title { font-size: 30px; margin-bottom: 12px; }
.cc-m-chips { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.cc-m-chips::-webkit-scrollbar { display: none; }
.cc-m-chips .cc-chip > span { white-space: nowrap; padding: 8px 14px; font-size: 12px; }

/* Product list rows */
.cc-m-list { display: flex; flex-direction: column; gap: 12px; }
.cc-m-row { position: relative; display: flex; gap: 13px; align-items: center; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; text-decoration: none; transition: border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.22, 1.35, .36, 1); }
.cc-m-row::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: 0; border: 2px solid color-mix(in srgb, var(--primary) 72%, var(--cream-50)); border-radius: inherit; box-shadow: inset 0 0 14px color-mix(in srgb, var(--primary) 20%, transparent), 0 0 18px color-mix(in srgb, var(--primary) 24%, transparent); transition: opacity .2s ease; }
.cc-m-row:is(:hover, :focus-within) { border-color: var(--primary); box-shadow: 0 10px 24px rgba(0, 0, 0, .28), 0 0 0 2px color-mix(in srgb, var(--primary) 24%, transparent); transform: translateY(-3px) scale(1.01); }
.cc-m-row:is(:hover, :focus-within)::after { opacity: 1; }
.cc-m-row__media { width: 84px; flex: none; }
.cc-m-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-m-row__name { font-family: var(--font-heading); font-weight: 700; font-size: 15.5px; text-transform: uppercase; letter-spacing: .02em; color: var(--fg-bright); line-height: 1.1; }
.cc-m-row__desc { font-family: var(--font-body); font-size: 12.5px; color: var(--fg-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-m-row__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cc-m-row__foot .cc-price { font-size: 16px; }
.cc-m-row__add { width: 34px; height: 34px; border-radius: 11px; background: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-primary); }

/* Mobile detail */
.cc-m-detail { display: flex; flex-direction: column; height: 100%; }
.cc-m-detail__hero { position: relative; flex: none; }
.cc-m-detail__hero .cc-thumb { width: 100%; }
.cc-m-detail__back { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 999px; background: var(--scrim-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.cc-m-detail__body { padding: 18px 20px 8px; }
.cc-m-detail__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cc-m-detail__name { font-family: var(--font-display); font-size: 30px; color: var(--fg-bright); margin: 6px 0 8px; line-height: 1.05; }
.cc-m-detail__price { font-size: 20px; }
.cc-m-detail__perkg { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--fg-faint); }
.cc-m-detail__desc { font-family: var(--font-body); font-size: 14.5px; color: var(--fg); line-height: 1.6; margin: 14px 0; }
.cc-m-detail__hint { display: flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 12.5px; color: var(--fg-muted); background: rgba(218,92,24,.1); border: 1px solid rgba(218,92,24,.25); border-radius: 11px; padding: 10px 12px; }
.cc-m-detail__bar { margin-top: auto; padding: 14px 20px 22px; border-top: 1px solid var(--surface-2); background: var(--scrim-strong); }
.cc-m-detail__cta { width: 100%; justify-content: center; opacity: .65; }

/* ============================================================
   PHASE 2 — CART, STEPPERS, WEIGHING, STAFF
   ============================================================ */

/* Tab bar cart badge */
.cc-tabbar__icon { position: relative; display: inline-flex; }
.cc-tabbar__badge { position: absolute; top: -7px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--ember-500); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 10px; display: flex; align-items: center; justify-content: center; }

/* Step buttons (shared) */
.cc-step { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cc-step:hover { border-color: var(--border-strong); }

/* Mobile cart */
.cc-cart { padding: 4px 18px 18px; display: flex; flex-direction: column; min-height: 100%; }
.cc-cart__title { font-size: 30px; margin-bottom: 12px; }
.cc-cart__empty { text-align: center; color: var(--fg-muted); font-family: var(--font-body); padding: 60px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cc-cart__items { display: flex; flex-direction: column; }
.cc-cart__row { display: flex; gap: 13px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--surface-2); }
.cc-cart__media { width: 60px; flex: none; }
.cc-cart__info { flex: 1; min-width: 0; }
.cc-cart__name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; color: var(--fg-bright); }
.cc-cart__line { font-size: 14.5px; margin-top: 3px; }
.cc-cart__unit { font-family: var(--font-body); font-size: 11.5px; color: var(--fg-faint); margin-top: 1px; }
.cc-cart__stepper { display: flex; align-items: center; gap: 10px; }
.cc-cart__stepper form { margin: 0; }
.cc-cart__qty { font-family: var(--font-heading); font-weight: 700; color: var(--fg-bright); min-width: 48px; text-align: center; }
.cc-cart__summary { margin-top: auto; padding-top: 16px; }
.cc-cart__subtotal { display: flex; justify-content: space-between; font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--fg-bright); }
.cc-cart__subtotal span:last-child { color: var(--price); }
.cc-cart__note { display: flex; gap: 8px; align-items: flex-start; font-family: var(--font-body); font-size: 12px; color: var(--fg-muted); margin: 10px 0 14px; }
.cc-cart__cta { width: 100%; justify-content: center; }

/* Mobile detail add bar */
.cc-m-detail__qty { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.cc-m-detail__qtyval { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--fg-bright); min-width: 72px; text-align: center; }
.cc-m-row__add { width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--primary); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-primary); }
.cc-m-row__add form, form.cc-m-row__add { margin: 0; }
.cc-m-row__link { display: flex; gap: 13px; align-items: center; flex: 1; min-width: 0; text-decoration: none; }
.cc-m-row { gap: 10px; }

/* Order header + weighing panel */
.cc-order { padding: 6px 18px 18px; }
.cc-order__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cc-order__back { background: none; border: 0; cursor: pointer; display: inline-flex; }
.cc-order__title { font-family: var(--font-display); font-size: 26px; color: var(--fg-bright); margin: 0; }

.cc-weigh { display: flex; flex-direction: column; gap: 14px; }
.cc-weigh__status { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border-radius: 18px; padding: 22px 20px; border: 1px solid var(--border); background: var(--surface); }
.cc-weigh__status--done { background: rgba(60,170,80,.1); border-color: rgba(60,170,80,.35); }
.cc-weigh__icon { width: 56px; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.cc-weigh__icon--pulse { background: var(--surface-2); animation: pulse 1.6s ease-in-out infinite; }
.cc-weigh__icon--ok { background: var(--success); box-shadow: 0 8px 24px rgba(60,170,80,.35); }
.cc-weigh__h { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--fg-bright); text-transform: uppercase; letter-spacing: .03em; }
.cc-weigh__p { font-family: var(--font-body); font-size: 13.5px; color: var(--fg-muted); line-height: 1.55; margin: 2px 0 0; max-width: 280px; }
.cc-weigh__row { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 13px; }
.cc-weigh__row--done { border-color: rgba(60,170,80,.3); }
.cc-weigh__name { font-family: var(--font-heading); font-weight: 700; font-size: 14.5px; text-transform: uppercase; color: var(--fg-bright); }
.cc-weigh__reqline { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-family: var(--font-body); font-size: 12.5px; color: var(--fg-muted); }
.cc-weigh__pulse { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-heading); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--ember-400); animation: pulse 1.6s ease-in-out infinite; }
.cc-weigh__pulse .cc-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ember-400); }
.cc-weigh__delta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cc-weigh__was { font-family: var(--font-body); font-size: 12px; color: var(--fg-faint); text-decoration: line-through; }
.cc-weigh__conf { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--success); }
.cc-weigh__price { margin-left: auto; font-size: 15.5px; }
.cc-weigh__summary { display: flex; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; font-family: var(--font-heading); font-weight: 700; color: var(--fg-bright); }
.cc-weigh__locked { width: 100%; justify-content: center; background: var(--surface); border: 1px solid var(--border); color: var(--fg-faint); cursor: default; }
.cc-weigh__locked span, .cc-weigh__locked { animation: pulse 1.6s ease-in-out infinite; }
.cc-weigh__cta { width: 100%; justify-content: center; }
.cc-weigh__whatsapp {
  width: 100%; justify-content: center; margin-top: 10px;
  background: #168a46; color: #fff; box-shadow: 0 8px 20px rgba(22, 138, 70, .24);
}
.cc-weigh__whatsapp:hover { background: #10743a; color: #fff; }

/* Staff weighing station (web layout) */
.cc-staff { max-width: 720px; }
.cc-staff > .cc-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cc-staff__order { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.cc-staff__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cc-staff__id { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--fg-bright); }
.cc-staff__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--surface-2); }
.cc-staff__name { font-family: var(--font-body); color: var(--fg); }
.cc-staff__field { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-heading); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); }
.cc-staff__field input { width: 130px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-family: var(--font-body); font-size: 15px; color: var(--fg-bright); }
.cc-staff__order .cc-btn { margin-top: 14px; }

/* ============ PHASE 3 — CHECKOUT & PAYMENTS (mobile) ============ */
/* Shared input */
.cc-input { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; font-family: var(--font-body); font-size: 15px; color: var(--fg-bright); }
.cc-input::placeholder { color: var(--fg-faint); }
.cc-input:focus { outline: none; border-color: var(--ember-400); }
.cc-input--sm { width: auto; flex: 0 0 90px; }

/* Checkout panel */
.cc-co { display: flex; flex-direction: column; gap: 18px; }
.cc-co__form { display: flex; flex-direction: column; gap: 14px; }
.cc-co__step { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); color: var(--fg-bright); }
.cc-co__stepnum { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; flex: none; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.cc-co__hint { margin: -4px 0 0; font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); }
.cc-co__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-co__segopt { position: relative; cursor: pointer; }
.cc-co__segopt input { position: absolute; opacity: 0; pointer-events: none; }
.cc-co__segopt span { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--fg-muted); font-family: var(--font-heading); font-weight: 600; font-size: 14px; }
.cc-co__segopt input:checked + span { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.cc-co__addr { display: flex; flex-direction: column; gap: 10px; }
.cc-co__addr[hidden] { display: none; }
.cc-co__addropt { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-family: var(--font-body); font-size: 14px; color: var(--fg); cursor: pointer; }
.cc-co__newaddr summary { cursor: pointer; color: var(--ember-400); font-family: var(--font-heading); font-weight: 600; font-size: 14px; padding: 6px 0; }
.cc-co__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cc-co__grid .cc-input { width: 100%; }
.cc-co__grid .cc-field > label,
.cc-address-street > label { font-family: var(--font-heading); font-size: 12px; font-weight: 600; color: var(--fg-muted); }
.cc-co__field--cep,
.cc-address-street { grid-column: 1 / -1; }
.cc-address-street { position: relative; }
.cc-address-suggestions { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); }
.cc-address-suggestions[hidden] { display: none; }
.cc-address-suggestions__option { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--surface-2); background: transparent; color: var(--fg); font: 13px/1.35 var(--font-body); text-align: left; cursor: pointer; }
.cc-address-suggestions__option:hover,
.cc-address-suggestions__option[aria-selected="true"] { background: var(--surface-2); color: var(--fg-bright); }
.cc-address-suggestions__attribution { padding: 6px 10px; color: var(--fg-faint); font: 600 10px var(--font-body); text-align: right; }
.cc-address-status { min-height: 18px; margin: 7px 0 0; color: var(--success); font: 12px/1.4 var(--font-body); }
.cc-address-status:empty { display: none; }
.cc-address-status.is-error { color: var(--warning); }
.cc-address-save { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--fg-muted); font: 600 13px var(--font-body); cursor: pointer; }
.cc-address-save input { inline-size: 17px; block-size: 17px; accent-color: var(--primary); }
.cc-address-labels { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.cc-address-labels legend { margin-bottom: 7px; color: var(--fg-muted); font: 600 12px var(--font-heading); }
.cc-address-labels__options { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cc-address-labels__option { position: relative; cursor: pointer; }
.cc-address-labels__option input { position: absolute; opacity: 0; pointer-events: none; }
.cc-address-labels__option span { display: block; padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--fg-muted); font: 600 12px var(--font-heading); }
.cc-address-labels__option input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 17%, var(--surface)); color: var(--fg-bright); }
.cc-address-labels__custom { flex: 1 1 150px; min-width: 0; }
.cc-address-labels__custom[hidden] { display: none; }
.cc-co__promo { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.cc-co__promo .cc-input { flex: 1; }
.cc-co__promo .cc-btn { justify-content: center; }
.cc-co__continue { width: 100%; justify-content: center; }
.cc-co__review { display: flex; flex-direction: column; gap: 10px; padding: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cc-co__reviewrow { display: flex; align-items: flex-start; gap: 9px; font-family: var(--font-body); font-size: 13.5px; color: var(--fg); }
.cc-co__reviewrow svg { flex: none; margin-top: 2px; }
.cc-co__edit { align-self: flex-start; font-family: var(--font-heading); font-weight: 600; font-size: 13px; color: var(--ember-400); }
.cc-co__pay { display: flex; flex-direction: column; gap: 10px; }
.cc-co__paybtn { width: 100%; justify-content: center; }

/* Order summary (line items + totals) */
.cc-osum { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.cc-osum__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-family: var(--font-body); color: var(--fg); }
.cc-osum__name small { display: block; color: var(--fg-faint); font-size: 12px; }
.cc-osum__line { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--surface-2); color: var(--fg-muted); font-family: var(--font-body); font-size: 14px; }
.cc-osum__line--disc { color: var(--success); }
.cc-osum__total { display: flex; justify-content: space-between; padding-top: 11px; margin-top: 6px; border-top: 1px solid var(--border); font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--fg-bright); }
.cc-osum__total .cc-price { font-size: 19px; }

/* Pix payment */
.cc-pix { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cc-pix__head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cc-pix__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); }
.cc-pix__h { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--fg-bright); }
.cc-pix__p { font-family: var(--font-body); font-size: 14px; color: var(--fg-muted); max-width: 30ch; }
.cc-pix__qr { width: 220px; height: 220px; border-radius: 16px; background: #fff; display: grid; place-items: center; padding: 14px; border: 1px solid var(--border); }
.cc-pix__qrimg { width: 100%; height: 100%; image-rendering: pixelated; object-fit: contain; }
.cc-pix__amount { display: flex; gap: 10px; align-items: baseline; font-family: var(--font-heading); color: var(--fg-muted); }
.cc-pix__copy { display: flex; gap: 8px; width: 100%; align-items: center; }
.cc-pix__code { font-family: var(--font-mono, monospace); font-size: 12px; flex: 1; }
.cc-pix__exp { font-family: var(--font-body); font-size: 12px; color: var(--fg-faint); }
.cc-pix__sim { width: 100%; justify-content: center; opacity: .8; }

/* Card (Stripe Elements) */
.cc-card { display: flex; flex-direction: column; gap: 14px; }
.cc-card__head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cc-card__amount { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-heading); color: var(--fg-muted); }
.cc-card__element { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; min-height: 44px; }
.cc-card__error { color: var(--danger, #e5484d); font-family: var(--font-body); font-size: 13px; min-height: 0; }
.cc-card__error:empty { display: none; }
.cc-card__alt { justify-content: center; }

/* Confirmation */
.cc-conf { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cc-conf__badge { width: 72px; height: 72px; border-radius: 999px; display: grid; place-items: center; background: var(--success); box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 22%, transparent); }
.cc-conf__h { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--fg-bright); }
.cc-conf__p { font-family: var(--font-body); font-size: 14px; color: var(--fg-muted); max-width: 32ch; }
.cc-conf__status .cc-chip--live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--fg-bright); font-family: var(--font-heading); font-weight: 600; font-size: 13px; }
.cc-chip--live .cc-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--success); animation: pulse 1.6s ease-in-out infinite; }
.cc-conf__addr { display: flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 13px; color: var(--fg-muted); }
.cc-conf__track { font-family: var(--font-body); font-size: 13px; color: var(--fg-faint); }
.cc-conf__cta { width: 100%; justify-content: center; }

/* ============ PHASE 4 — TRACKING & KITCHEN ============ */
/* Customer tracking timeline */
.cc-track { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.cc-track__eta { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--font-body); font-size: 13px; color: var(--fg); }
.cc-timeline { list-style: none; margin: 4px 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 2px; }
.cc-timeline__step { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 4px 0; position: relative; }
.cc-timeline__dot { flex: 0 0 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); z-index: 1; }
.cc-timeline__step:not(:last-child) .cc-timeline__dot::after { content: ""; position: absolute; left: 14px; top: 30px; width: 2px; height: calc(100% - 22px); background: var(--border); z-index: 0; }
.cc-timeline__step--done .cc-timeline__dot { background: var(--success); border-color: transparent; }
.cc-timeline__step--done .cc-timeline__dot::after { background: var(--success); }
.cc-timeline__step--current .cc-timeline__dot { background: var(--primary); border-color: transparent; box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 24%, transparent); animation: pulse 1.8s ease-in-out infinite; }
.cc-timeline__body { display: flex; flex-direction: column; gap: 1px; padding-top: 5px; }
.cc-timeline__label { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--fg-bright); }
.cc-timeline__step--pending .cc-timeline__label { color: var(--fg-faint); font-weight: 500; }
.cc-timeline__at { font-family: var(--font-body); font-size: 11px; color: var(--fg-faint); }
.cc-track__driver, .cc-track__eta { color: var(--fg-muted); }
.cc-track__cancel { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cc-track__cancelicon { width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center; background: var(--danger, #e5484d); }

/* Kitchen board (web layout, staff) */
.cc-staff__title { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--fg-bright); margin: 2px 0; }
.cc-staff__lead { font-family: var(--font-body); color: var(--fg-muted); margin-bottom: 18px; }
.cc-staff__empty { padding: 32px; text-align: center; color: var(--fg-muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.cc-kitchen { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cc-kitchen__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.cc-kitchen__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-kitchen__badge { padding: 3px 9px; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); color: var(--fg-muted); }
.cc-kitchen__badge--received { background: color-mix(in srgb, var(--ember-400) 20%, transparent); color: var(--ember-400); }
.cc-kitchen__badge--preparing { background: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--primary); }
.cc-kitchen__badge--ready_for_pickup, .cc-kitchen__badge--out_for_delivery { background: color-mix(in srgb, var(--success) 22%, transparent); color: var(--success); }
.cc-kitchen__mode { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-body); font-size: 12px; color: var(--fg-muted); }
.cc-kitchen__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-body); font-size: 13px; color: var(--fg); }
.cc-kitchen__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--surface-2); }
.cc-kitchen__actions { display: flex; gap: 8px; }
.cc-btn--sm { padding: 8px 12px; font-size: 13px; }

/* ============ PHASE 4b — ACCOUNT (mobile) ============ */
.cc-acct { display: flex; flex-direction: column; gap: 18px; }
.cc-acct__head { display: flex; align-items: center; gap: 13px; }
.cc-acct__avatar { flex: 0 0 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: var(--primary); }
.cc-acct__name { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--fg-bright); }
.cc-acct__email { font-family: var(--font-body); font-size: 13px; color: var(--fg-muted); }
.cc-acct__links { display: flex; flex-direction: column; gap: 8px; }
.cc-acct__link { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--fg-bright); }
.cc-acct__link span { display: inline-flex; align-items: center; gap: 10px; }
.cc-acct__h { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--fg-bright); margin-top: 4px; }
.cc-acct__orders { display: flex; flex-direction: column; gap: 8px; }
.cc-acct__logout { justify-content: center; margin-top: 8px; }

/* Order history rows */
.cc-orow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.cc-orow__main { display: flex; flex-direction: column; gap: 2px; }
.cc-orow__id { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--fg-bright); }
.cc-orow__date { font-family: var(--font-body); font-size: 12px; color: var(--fg-faint); }
.cc-orow__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cc-orow__state { padding: 2px 9px; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); color: var(--fg-muted); }
.cc-orow__state--received, .cc-orow__state--preparing { color: var(--primary); background: color-mix(in srgb, var(--primary) 18%, transparent); }
.cc-orow__state--completed, .cc-orow__state--delivered, .cc-orow__state--ready_for_pickup, .cc-orow__state--out_for_delivery { color: var(--success); background: color-mix(in srgb, var(--success) 18%, transparent); }
.cc-orow__state--cancelled { color: var(--danger, #e5484d); background: color-mix(in srgb, var(--danger, #e5484d) 16%, transparent); }

/* Addresses */
.cc-addr { display: flex; flex-direction: column; gap: 16px; }
.cc-addr__list { display: flex; flex-direction: column; gap: 8px; }
.cc-addr__card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.cc-addr__info { display: flex; flex-direction: column; gap: 2px; }
.cc-addr__label { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--fg-bright); }
.cc-addr__default { color: var(--success); }
.cc-addr__line { font-family: var(--font-body); font-size: 13px; color: var(--fg-muted); }
.cc-addr__delivery { font: 700 11px var(--font-heading); color: var(--success); }
.cc-addr__delivery.is-unavailable { color: var(--warning); }
.cc-addr__actions { display: flex; align-items: center; gap: 6px; }
.cc-addr__form { margin-top: 10px; }

/* Customer coupon wallet */
.cc-coupons { display: flex; flex-direction: column; gap: 18px; }
.cc-coupons__head { display: flex; align-items: center; gap: 11px; }
.cc-coupons__title { margin: 2px 0 0; color: var(--fg-bright); font: 700 22px var(--font-heading); }
.cc-coupons__list { display: flex; flex-direction: column; gap: 10px; }
.cc-coupon-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.cc-coupon-card--muted { opacity: .72; }
.cc-coupon-card__value { display: grid; place-items: center; min-width: 72px; min-height: 54px; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 17%, var(--surface-2)); color: var(--price); font: 800 15px var(--font-heading); text-align: center; }
.cc-coupon-card__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-coupon-card__body strong { color: var(--fg-bright); font: 700 14px var(--font-heading); }
.cc-coupon-card__body span { color: var(--fg-muted); font: 12px/1.4 var(--font-body); }
.cc-coupon-card__body code { align-self: flex-start; margin-top: 3px; color: var(--ember-400); font: 700 12px var(--font-mono, monospace); }
.cc-coupon-card__action { display: flex; justify-content: flex-end; }

@media (max-width: 560px) {
  .cc-coupon-card { grid-template-columns: 72px minmax(0, 1fr); }
  .cc-coupon-card__action { grid-column: 1 / -1; }
  .cc-coupon-card__action .cc-btn { width: 100%; justify-content: center; }
}

/* ============ PHASE 5 — ADMIN DASHBOARD ============ */
.cc-admin { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: var(--bg); transition: grid-template-columns .18s ease; }
.cc-admin__side { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--border); }
.cc-admin__brand { display: flex; align-items: center; gap: 7px; padding: 6px 4px 16px 10px; }
.cc-admin__brandlink {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; color: var(--fg-bright);
}
.cc-admin__brandlabel {
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted);
}
.cc-admin__collapse {
  width: 34px; height: 32px; flex: none; display: inline-grid; place-items: center;
  padding: 0; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--fg-faint); cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.cc-admin__collapse:hover { background: var(--surface-2); border-color: var(--border); color: var(--fg-bright); }
.cc-admin__collapse:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cc-admin__collapse-glyph { display: inline-flex; align-items: center; justify-content: center; }
.cc-admin__collapse-menu { flex: none; }
.cc-admin__collapse-direction { display: inline-flex; align-items: center; margin-left: -2px; }
.cc-admin__collapse-direction svg { flex: none; }
.cc-admin__collapse-direction svg + svg { margin-left: -6px; }
.cc-admin__collapse-direction--collapsed { display: none; }
.cc-admin__nav { display: flex; flex-direction: column; gap: 3px; }
.cc-admin__navlink { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--fg-muted); }
.cc-admin__navlink:hover { background: var(--surface-2); color: var(--fg-bright); }
.cc-report-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.cc-report-filter__actions { display: flex; align-items: end; gap: 8px; }
.cc-report-kpis { grid-template-columns: repeat(3, 1fr); }
.cc-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.cc-report-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-report-card { margin: 0; min-width: 0; }
.cc-report-list { display: grid; gap: 7px; margin: 0; }
.cc-report-list div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--surface-2); font-family: var(--font-body); font-size: 13px; }
.cc-report-list dt { color: var(--fg-muted); } .cc-report-list dd { margin: 0; color: var(--fg-bright); font-family: var(--font-heading); font-weight: 700; }
.cc-report-bars { display: flex; align-items: end; gap: 7px; height: 170px; padding: 10px 0 2px; border-bottom: 1px solid var(--border); }
.cc-report-bars div { display: flex; flex: 1; min-width: 10px; height: 100%; flex-direction: column; justify-content: end; gap: 7px; }
.cc-report-bars span { min-height: 5px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--flame-300), var(--primary)); box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 24%, transparent); }
.cc-report-bars small { color: var(--fg-faint); font: 10px var(--font-body); white-space: nowrap; transform: rotate(-45deg); transform-origin: left center; }
@media (max-width: 1100px) { .cc-report-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cc-report-grid--wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .cc-report-filter, .cc-report-grid, .cc-report-grid--wide, .cc-report-kpis { grid-template-columns: 1fr; } }
.cc-admin__navlink.is-active { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.cc-admin__sidefoot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 8px; }
.cc-admin__main { display: flex; flex-direction: column; padding: 22px 30px 60px; max-width: 1200px; }
.cc-admin__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cc-admin__who { display: flex; flex-direction: column; }
.cc-admin__role { font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--fg-bright); }
.cc-admin__email { font-family: var(--font-body); font-size: 12px; color: var(--fg-faint); }
.cc-admin__h1 { font-family: var(--font-heading); font-weight: 700; font-size: 26px; color: var(--fg-bright); }
.cc-admin__lead { font-family: var(--font-body); color: var(--fg-muted); margin: 4px 0 22px; }
.cc-admin__h2 { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--fg-bright); display: inline-flex; align-items: center; gap: 8px; }
.cc-admin__block { margin-top: 28px; }
.cc-admin__blockhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.cc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cc-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; }
.cc-kpi__label { font-family: var(--font-heading); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); }
.cc-kpi__value { font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--fg-bright); }

.cc-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cc-table th { text-align: left; font-family: var(--font-heading); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cc-table td { padding: 11px 14px; font-family: var(--font-body); font-size: 14px; color: var(--fg); border-bottom: 1px solid var(--surface-2); }
.cc-table tr:last-child td { border-bottom: none; }

.cc-table__actions { display: flex; gap: 6px; justify-content: flex-end; }
.cc-admin__headactions { display: flex; gap: 8px; }

@media (min-width: 821px) {
  .cc-admin.is-sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
  .cc-admin.is-sidebar-collapsed .cc-admin__side { padding-inline: 10px; }
  .cc-admin.is-sidebar-collapsed .cc-admin__brand { flex-direction: column; justify-content: center; gap: 5px; padding-inline: 0; }
  .cc-admin.is-sidebar-collapsed .cc-admin__brandlink { flex: none; }
  .cc-admin.is-sidebar-collapsed .cc-admin__brandlabel,
  .cc-admin.is-sidebar-collapsed .cc-admin__navlabel { display: none; }
  .cc-admin.is-sidebar-collapsed .cc-logo--admin { width: 52px; }
  .cc-admin.is-sidebar-collapsed .cc-admin__navlink { justify-content: center; gap: 0; padding-inline: 10px; }
  .cc-admin.is-sidebar-collapsed .cc-admin__collapse-direction--expanded { display: none; }
  .cc-admin.is-sidebar-collapsed .cc-admin__collapse-direction--collapsed { display: inline-flex; }
}

/* Admin forms */
.cc-admin__form { max-width: 620px; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.cc-field { display: flex; flex-direction: column; gap: 5px; }
.cc-field > span { font-family: var(--font-heading); font-size: 12px; font-weight: 600; color: var(--fg-muted); }
.cc-mfa-qr { width: min(280px, 100%); margin: 18px 0 8px; padding: 14px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.cc-mfa-qr svg { display: block; width: 100%; height: auto; }
.cc-mfa-qr__hint { max-width: 560px; color: var(--fg-muted); font-size: 13px; }
.cc-admin__formrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.cc-check { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 14px; color: var(--fg); }
.cc-admin__group { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cc-admin__group legend { font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--fg-bright); padding: 0 6px; }
.cc-admin__group[hidden] { display: none; }
.cc-admin__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.cc-admin__formactions { display: flex; gap: 10px; margin-top: 6px; }

@media (max-width: 820px) {
  .cc-admin { grid-template-columns: 1fr; }
  .cc-admin__side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; overflow-x: auto; }
  .cc-admin__sidefoot { margin: 0; border: none; padding: 0; }
  .cc-admin__collapse { display: none; }
}

/* ============ PHASE 6 — DRIVER APP ============ */
.cc-driver { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 40px; }
.cc-driver__top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--border); }
.cc-driver__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; color: var(--fg-bright); }
.cc-driver__right { display: flex; align-items: center; gap: 8px; }
.cc-driver__main { padding: 18px; display: flex; flex-direction: column; gap: 20px; }
.cc-driver__h1 { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--fg-bright); }
.cc-driver__section { display: flex; flex-direction: column; gap: 10px; }
.cc-driver__h2 { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .05em; }
.cc-deliv { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 15px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 9px; }
.cc-deliv__head { display: flex; align-items: center; justify-content: space-between; }
.cc-deliv__addr, .cc-deliv__phone { display: flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 13px; color: var(--fg); }
.cc-deliv__actions { margin-top: 4px; }
.cc-deliv__actions .cc-btn { width: 100%; justify-content: center; }

/* ============ AUTH (Devise login / signup / password) ============ */
.cc-auth {
  display: flex; justify-content: center; padding: 12px 0 40px;
}
.cc-auth__card {
  width: 100%; max-width: 430px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 32px;
  box-shadow: var(--shadow-lg);
}
.cc-auth__brand {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 26px; text-align: center;
}
.cc-auth__tagline {
  font-family: var(--font-body); font-size: 13px; color: var(--fg-faint);
}
.cc-auth__tabs {
  display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; margin-bottom: 22px;
}
.cc-auth__tab {
  flex: 1; text-align: center; text-decoration: none;
  font-family: var(--font-heading); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 12px; border-radius: 9px;
  color: var(--fg-muted); transition: .2s;
}
.cc-auth__tab.is-active {
  background: var(--primary); color: var(--on-primary); box-shadow: var(--glow-primary);
}
.cc-auth__tab:not(.is-active):hover { color: var(--fg-bright); }
.cc-auth__heading {
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  color: var(--fg-bright); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .03em;
}
.cc-auth__lede {
  font-family: var(--font-body); font-size: 14px; color: var(--fg-muted);
  margin: 0 0 18px; line-height: 1.45;
}
.cc-auth__form { display: flex; flex-direction: column; gap: 15px; }
.cc-auth__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.cc-auth__link {
  font-family: var(--font-body); font-size: 14px; color: var(--ember-400);
  text-decoration: none;
}
.cc-auth__link:hover { color: var(--ember-500); text-decoration: underline; }
.cc-auth__submit { width: 100%; justify-content: center; margin-top: 4px; }
.cc-auth__hint {
  font-family: var(--font-body); font-size: 12px; color: var(--fg-faint);
}
.cc-auth__identifier { display: flex; flex-direction: column; gap: 8px; }
.cc-identifier-field.is-email > span, .cc-identifier-field.is-whatsapp > span { color: var(--flame-300); }
.cc-identifier-field.is-email .cc-input, .cc-identifier-field.is-whatsapp .cc-input { border-color: var(--flame-400); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flame-400) 20%, transparent); }
.cc-identifier-type { display: flex; gap: 7px; min-height: 26px; align-items: center; }
.cc-identifier-type[hidden] { display: none; }
.cc-identifier-type span { padding: 4px 8px; border-radius: 6px; color: var(--fg-faint); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cc-identifier-type span.is-selected { color: var(--on-primary); background: var(--flame-500); }
.cc-identifier-type + [hidden] { display: none; }
.cc-field small { font-size: .9em; font-weight: 500; color: var(--fg-faint); }
.cc-auth__footer { margin: 18px 0 0; text-align: center; }
.cc-auth .cc-flash ul { margin: 8px 0 0; padding-left: 18px; }

/* ============ GUIDED TOUR ============ */
.cc-tour-launch {
  left: 18px; top: 64px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--fg-bright); background: var(--scrim);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px;
  box-shadow: var(--shadow-md); cursor: pointer;
}
.cc-tour-launch--web { left: auto; right: 18px; top: auto; bottom: 72px; }
.cc-tour {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0; transition: opacity .22s ease;
}
.cc-tour.is-open { opacity: 1; pointer-events: auto; }
.cc-tour__mask {
  position: absolute; inset: 0;
  background: rgba(8, 5, 4, .72);
  pointer-events: auto;
}
.cc-tour__spotlight {
  position: absolute; border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(8, 5, 4, .72), 0 0 0 2px var(--ember-400), var(--shadow-glow);
  background: transparent; pointer-events: none;
  transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease;
}
.cc-tour__mask { background: transparent; } /* spotlight box-shadow paints the dim */
.cc-tour__target {
  position: relative; z-index: 201 !important;
  pointer-events: none;
}
.cc-tour__card {
  position: absolute; z-index: 202; width: min(340px, calc(100vw - 24px));
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  padding: 18px 18px 14px; box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: tourCardIn .28s cubic-bezier(.22,1,.36,1) both;
}
.cc-tour__eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ember-400);
  margin-bottom: 10px;
}
.cc-tour__progress {
  margin-left: auto; color: var(--fg-faint); letter-spacing: .06em;
}
.cc-tour__title {
  font-family: var(--font-heading); font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: .03em; color: var(--fg-bright);
  margin: 0 0 8px; line-height: 1.15;
}
.cc-tour__body {
  font-family: var(--font-body); font-size: 14.5px; color: var(--fg-muted);
  line-height: 1.5; margin: 0 0 16px;
}
.cc-tour__actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cc-tour__skip {
  background: none; border: 0; cursor: pointer; padding: 8px 0;
  font-family: var(--font-body); font-size: 13px; color: var(--fg-faint);
}
.cc-tour__skip:hover { color: var(--fg); }
.cc-tour__nav { display: flex; align-items: center; gap: 6px; }
.cc-tour__prev { padding: 10px 12px; }
.cc-tour__next { padding: 10px 16px; }
.cc-tour__prev:disabled { opacity: .35; pointer-events: none; }
@keyframes tourCardIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-tour, .cc-tour__spotlight, .cc-tour__card { transition: none !important; animation: none !important; }
}

/* ============ ANIMATIONS + LOGO THEME SWITCH ============ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.18); opacity: 0; } }

.cc-logo {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 0; flex: none;
}
.cc-logo img {
  display: block; width: auto; height: auto; max-width: 100%;
}
.cc-logo--header { width: clamp(156px, 16vw, 190px); }
.cc-logo--hero { width: min(620px, 86vw); }
.cc-logo--auth { width: min(300px, 78vw); }
.cc-logo--admin { width: 110px; }
.cc-logo--mobile { width: 118px; }
.cc-logo--header img, .cc-logo--hero img, .cc-logo--auth img,
.cc-logo--admin img, .cc-logo--mobile img { width: 100%; height: auto; }

[data-theme="dark"]  .cc-logo-day   { display: none; }
[data-theme="light"] .cc-logo-night { display: none; }


/* ============ IMPRESSÃO NÃO FISCAL (admin) ============ */
.cc-printnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; border-bottom: 1px solid var(--border); }
.cc-printnav__tab {
  padding: 9px 14px; border-radius: 10px 10px 0 0; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px; color: var(--fg-muted);
}
.cc-printnav__tab:hover { background: var(--surface-2); color: var(--fg-bright); }
.cc-printnav__tab.is-active { background: var(--surface); color: var(--primary); border: 1px solid var(--border); border-bottom-color: var(--surface); margin-bottom: -1px; }

.cc-printfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.cc-printhealth { font-family: var(--font-body); font-size: 12px; }
.cc-printhealth--ok { color: var(--success); }
.cc-printhealth--erro { color: var(--danger, #e5484d); }
.cc-printhealth--idle { color: var(--fg-faint); }

.cc-printstatus { font-size: 14px; }
.cc-printstatus[data-tone="ok"] { color: var(--success); }
.cc-printstatus[data-tone="erro"] { color: var(--danger, #e5484d); }
.cc-printstatus[data-tone="idle"] { color: var(--fg-faint); }

/* Prévia do cupom: monoespaçada, largura de bobina */
.cc-receipt {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; overflow-x: auto; white-space: pre; color: var(--fg);
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.45;
}

.cc-printlog {
  display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--fg-muted);
}
.cc-printlog:empty::after { content: "Sem eventos ainda."; color: var(--fg-faint); }

/* Configuração visual e diagnóstico de impressão */
.cc-print-layout-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 18px; align-items: start;
}
.cc-print-preview {
  position: sticky; top: 18px; min-width: 0; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.cc-print-preview__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.cc-print-preview__head div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-print-preview__head strong { color: var(--fg-bright); font-family: var(--font-heading); }
.cc-print-preview__head span { color: var(--fg-muted); font-size: 12px; }
.cc-print-preview__status { flex: none; }
.cc-print-preview__status[data-tone="loading"] { color: var(--primary); }
.cc-print-preview__status[data-tone="error"] { color: var(--danger); }
.cc-print-preview__status[data-tone="ok"] { color: var(--success); }
.cc-print-preview__paper {
  width: min(100%, 380px); min-height: 480px; margin: 0 auto; padding: 24px 20px 32px;
  overflow-x: auto; background: var(--receipt-paper); color: var(--receipt-ink);
  border: 1px solid var(--receipt-edge); border-radius: var(--radius-xs);
  box-shadow: var(--shadow-md);
  transition: width .2s ease;
}
.cc-print-preview__paper.is-narrow { width: min(100%, 285px); }
.cc-print-preview__paper pre {
  margin: 0; white-space: pre; font: 11px/1.35 "Cascadia Mono", Consolas, monospace;
  color: inherit;
}
.cc-printer-tests { display: grid; gap: 10px; }
.cc-printer-test {
  display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 10px 16px;
  align-items: center; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface);
}
.cc-printer-test__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-printer-test__info strong { color: var(--fg-bright); }
.cc-printer-test__info span { color: var(--fg-muted); font-size: 12px; overflow-wrap: anywhere; }
.cc-printer-test__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cc-printer-test__result {
  grid-column: 1 / -1; margin: 0; padding-top: 8px; border-top: 1px solid var(--border);
  color: var(--fg-faint); font-size: 12px;
}
.cc-printer-test__result[data-tone="loading"] { color: var(--primary); }
.cc-printer-test__result[data-tone="ok"] { color: var(--success); }
.cc-printer-test__result[data-tone="error"] { color: var(--danger); }

@media (max-width: 980px) {
  .cc-print-layout-grid { grid-template-columns: 1fr; }
  .cc-print-preview { position: static; }
}

@media (max-width: 620px) {
  .cc-printer-test { grid-template-columns: 1fr; }
  .cc-printer-test__actions { justify-content: flex-start; }
}

/* Payment gateway admin helpers */
.cc-admin__hint { color: var(--fg-muted); font-size: 0.875rem; margin: 0.5rem 0 1rem; }
.cc-table__tag { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 9999px; background: var(--surface-2, rgba(255,255,255,0.08)); color: var(--fg-muted); font-size: 0.75rem; margin-right: 0.25rem; }
.cc-admin__credgroup { display: none; }
.cc-admin__credgroup:not([hidden]) { display: block; }

/* ============ OPERATIONAL UI/UX REFINEMENTS ============ */
/* Visible only to assistive technology, including table captions and filter legends. */
.cc-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;
}
.cc-skip-link {
  position: fixed; z-index: 300; top: 10px; left: 10px; transform: translateY(-160%);
  padding: 10px 14px; border-radius: var(--radius-md); background: var(--primary);
  color: var(--on-primary); font-family: var(--font-heading); font-weight: 700;
  text-decoration: none; box-shadow: var(--shadow-lg); transition: transform .16s ease;
}
.cc-skip-link:focus { transform: translateY(0); outline: 3px solid var(--flame-300); outline-offset: 3px; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--flame-300); outline-offset: 3px;
}
.cc-btn:focus-visible, .cc-input:focus-visible, .cc-table-wrap:focus-visible {
  outline: 3px solid var(--flame-300); outline-offset: 3px;
}
.cc-btn:disabled, .cc-btn[aria-disabled="true"] {
  cursor: not-allowed; opacity: .62; box-shadow: none;
}

/* A true, readable kanban: the existing lifecycle actions remain unchanged. */
.cc-kitchen {
  grid-template-columns: repeat(5, minmax(264px, 1fr)); align-items: start;
  overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.cc-kitchen__lane {
  min-width: 0; min-height: 160px; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 88%, var(--bg));
  scroll-snap-align: start;
}
.cc-kitchen__lanehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc-kitchen__lanetitle {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin: 0;
  color: var(--fg-bright); font-family: var(--font-heading); font-size: 14px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .045em;
}
.cc-kitchen__lanetitle svg { flex: none; }
.cc-kitchen__count {
  display: grid; flex: none; width: 25px; height: 25px; place-items: center;
  border-radius: 999px; background: var(--surface-2); color: var(--fg-bright);
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
}
.cc-kitchen__lane--new .cc-kitchen__lanetitle { color: var(--ember-400); }
.cc-kitchen__lane--pending_weighing .cc-kitchen__lanetitle,
.cc-kitchen__lane--awaiting_payment .cc-kitchen__lanetitle { color: var(--ember-400); }
.cc-kitchen__lane--preparing .cc-kitchen__lanetitle { color: var(--primary); }
.cc-kitchen__lane--ready_for_pickup .cc-kitchen__lanetitle,
.cc-kitchen__lane--out_for_delivery .cc-kitchen__lanetitle { color: var(--success); }
.cc-kitchen__lanedesc { min-height: 32px; margin: 6px 0 12px; color: var(--fg-muted); font-size: 12px; line-height: 1.35; }
.cc-kitchen__cards { display: flex; flex-direction: column; gap: 10px; }
.cc-kitchen__laneempty {
  margin: 0; padding: 16px 10px; border: 1px dashed var(--border); border-radius: var(--radius-md);
  color: var(--fg-faint); font-family: var(--font-body); font-size: 12px; text-align: center;
}
.cc-kitchen__card { padding: 14px; gap: 11px; box-shadow: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.cc-kitchen__card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cc-kitchen__card[draggable="true"] { cursor: grab; }
.cc-kitchen__card.is-dragging { cursor: grabbing; opacity: .48; transform: scale(.985); }
.cc-kitchen__lane.is-drop-allowed {
  border-color: color-mix(in srgb, var(--primary) 66%, var(--border));
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}
.cc-kitchen__lane.is-drop-over {
  border-color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, var(--surface));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}
.cc-kitchen__head { align-items: flex-start; gap: 8px; }
.cc-kitchen__head .cc-staff__id { margin: 0; }
.cc-kitchen__badge { flex: none; }
.cc-kitchen__mode { align-self: center; }
.cc-kitchen__items { gap: 6px; }
.cc-kitchen__items li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; align-items: baseline; line-height: 1.35; }
.cc-kitchen__items li::before { content: "•"; color: var(--primary); font-size: 16px; line-height: .8; }
.cc-kitchen__foot { align-items: flex-end; }
.cc-kitchen__actions { justify-content: flex-end; flex-wrap: wrap; }
.cc-kitchen__actions form { display: flex; margin: 0; }
.cc-kitchen__actions .cc-btn { min-height: 36px; }
.cc-kitchen__accepted { display: inline-flex; align-items: center; gap: 5px; color: var(--success); font-size: 12px; line-height: 1.3; }
.cc-staff__empty--kitchen { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.cc-staff__empty--kitchen p { margin: 0; color: var(--fg); }
.cc-staff__empty--kitchen span { font-size: 13px; }

/* Admin information hierarchy, keyboard navigation and compact mobile navigation. */
.cc-admin__side { overflow-y: auto; }
.cc-admin__navlink { min-height: 42px; text-decoration: none; }
.cc-admin__navlink svg { flex: none; }
.cc-admin__navlink:focus-visible { background: var(--surface-2); color: var(--fg-bright); outline-offset: -2px; }
.cc-admin__main { width: 100%; max-width: 1320px; min-width: 0; }
.cc-admin__content { width: 100%; min-width: 0; }
.cc-admin__pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.cc-admin__pagehead .cc-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.cc-admin__pagehead .cc-admin__lead { margin-bottom: 0; }
.cc-admin__block--first { margin-top: 0; }
.cc-admin__blockhead, .cc-admin__actions { gap: 12px; flex-wrap: wrap; }
.cc-admin__actions { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.cc-kpi { min-width: 0; }
.cc-kpi__label { display: inline-flex; align-items: center; gap: 6px; }
.cc-kpi__label svg { flex: none; color: var(--primary); }
.cc-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.cc-table-wrap .cc-table { margin: 0; border: 0; border-radius: 0; }

/* Reports: preserve detail while making filters and data summaries scannable. */
.cc-report__pagehead { margin-bottom: 18px; }
.cc-report__period {
  display: inline-flex; align-items: center; gap: 8px; flex: none; margin: 0; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface);
  color: var(--fg-muted); font-family: var(--font-body); font-size: 13px;
}
.cc-report__period svg { color: var(--primary); }
.cc-report-filter { display: flex; flex-direction: column; gap: 15px; margin: 0 0 20px; padding: 18px; }
.cc-report-filter__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cc-report-filter__heading p { margin: 4px 0 0; color: var(--fg-muted); font-size: 13px; }
.cc-report-filter__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-width: 0; padding: 0; margin: 0; border: 0; }
.cc-report-filter__actions { align-self: flex-end; }
.cc-report-card { display: flex; flex-direction: column; padding: 18px; }
.cc-report-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cc-report-card__head > span { color: var(--fg-faint); font-family: var(--font-heading); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.cc-report-list { flex: 1; }
.cc-report-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.cc-report-empty { margin: auto 0; padding: 16px 0; color: var(--fg-muted); font-size: 13px; line-height: 1.45; }
.cc-report-tableempty { color: var(--fg-muted) !important; font-style: italic; text-align: center; }
.cc-report-bars { gap: 6px; min-height: 180px; height: 180px; }
.cc-report-bars__item { position: relative; min-width: 12px; }
.cc-report-bars__item span { height: var(--cc-report-bar-height); transition: filter .16s ease, transform .16s ease; }
.cc-report-bars__item:hover span { filter: brightness(1.13); transform: scaleY(1.02); transform-origin: bottom; }
.cc-report-bars__item small { overflow: hidden; text-overflow: clip; }

@media (max-width: 1100px) {
  .cc-report-filter__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .cc-admin__side {
    position: sticky; z-index: 30; top: 0; height: auto; align-self: auto;
    flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px;
    padding: 8px 10px; overflow-x: auto; overflow-y: hidden; border-right: 0;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
  }
  .cc-admin__brand { flex: none; padding: 0 4px; }
  .cc-admin__brand .cc-logo--admin img { width: 100%; height: auto; }
  .cc-admin__nav { flex: none; flex-direction: row; gap: 4px; }
  .cc-admin__navlink { flex: none; min-height: 36px; padding: 8px 10px; white-space: nowrap; font-size: 12px; }
  .cc-admin__sidefoot { flex: none; margin: 0; padding: 0; border: 0; }
  .cc-admin__main { max-width: none; padding: 18px 16px 42px; }
  .cc-admin__top { margin-bottom: 18px; }
  .cc-admin__pagehead { align-items: flex-start; flex-direction: column; }
  .cc-report__period { align-self: flex-start; }
  .cc-kitchen { grid-template-columns: 1fr; overflow: visible; padding-bottom: 0; }
  .cc-kitchen__lane { min-height: auto; }
}

@media (max-width: 760px) {
  .cc-report-filter__fields { grid-template-columns: 1fr; }
  .cc-report-filter__actions { align-self: stretch; }
  .cc-report-filter__actions .cc-btn { flex: 1; justify-content: center; }
  .cc-report-grid, .cc-report-grid--wide, .cc-report-kpis { grid-template-columns: 1fr; }
  .cc-table-wrap .cc-table { min-width: 360px; }
  .cc-admin__content > .cc-table, .cc-admin__block > .cc-table {
    display: block; overflow-x: auto; white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .cc-admin__top { align-items: flex-start; gap: 12px; }
  .cc-admin__email { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cc-kitchen__foot { align-items: stretch; flex-direction: column; }
  .cc-kitchen__actions { width: 100%; }
  .cc-kitchen__actions form { flex: 1; }
  .cc-kitchen__actions .cc-btn { width: 100%; justify-content: center; }
  .cc-report__period { width: 100%; align-items: flex-start; border-radius: var(--radius-md); }
}

/* ============ ADMIN / STAFF POLISH — high-density operational views ============ */
.cc-admin__top {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--hairline);
}
.cc-admin__topactions { display: inline-flex; align-items: center; gap: 16px; }
.cc-admin__role { display: inline-flex; align-items: center; gap: 6px; }
.cc-admin__live {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--success) 42%, var(--border));
  border-radius: var(--radius-pill); color: var(--fg-muted);
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.cc-admin__live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 18%, transparent);
}
.cc-admin__side { background: linear-gradient(180deg, var(--surface), var(--bg-deep)); }
.cc-admin__navlink { border: 1px solid transparent; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.cc-admin__navlink:hover { border-color: var(--border); }
.cc-admin__navlink.is-active { border-color: color-mix(in srgb, var(--primary) 44%, var(--border)); box-shadow: inset 3px 0 0 var(--primary); }
.cc-kpi { transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.cc-kpi:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.cc-table tbody tr { transition: background .15s ease; }
.cc-table tbody tr:hover { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.cc-table th:last-child, .cc-table td:last-child { white-space: nowrap; }

/* The kitchen is a wide work surface for staff, while weighing stays compact. */
.cc-staff--kitchen { max-width: none; }
.cc-staff__toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 14px; padding: 10px 13px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface); color: var(--fg-muted);
  font-family: var(--font-heading); font-size: 12px;
}
.cc-staff__toolbaritem, .cc-staff__toolbarhint { display: inline-flex; align-items: center; gap: 6px; }
.cc-staff__toolbaritem svg { color: var(--primary); }
.cc-staff__toolbaritem strong { color: var(--fg-bright); font-size: 16px; }
.cc-staff__toolbarhint { color: var(--fg-faint); font-family: var(--font-body); }
.cc-staff__empty--weighing { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.cc-staff__empty--weighing strong { color: var(--fg); font-family: var(--font-heading); }
.cc-staff__empty--weighing span { font-size: 13px; }
.cc-staff__row { min-width: 0; }
.cc-staff__name { min-width: 0; overflow-wrap: anywhere; }
.cc-staff__field input { min-height: 44px; text-align: right; }
.cc-staff__field input:focus-visible { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--flame-300) 70%, transparent); outline-offset: 2px; }

/* Kanban hierarchy: lane accents, explicit freshness and a touch-friendly action row. */
.cc-kitchen__toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 10px; color: var(--fg-muted); font-family: var(--font-body); font-size: 12px;
}
.cc-kitchen__summary, .cc-kitchen__scrollhint { display: inline-flex; align-items: center; gap: 6px; }
.cc-kitchen__summary strong { color: var(--fg-bright); font-family: var(--font-heading); font-size: 16px; }
.cc-kitchen__scrollhint { color: var(--fg-faint); }
.cc-kitchen__lane { border-top: 3px solid var(--border-strong); }
.cc-kitchen__lane--new { border-top-color: var(--ember-400); }
.cc-kitchen__lane--preparing { border-top-color: var(--primary); }
.cc-kitchen__lane--ready_for_pickup, .cc-kitchen__lane--out_for_delivery { border-top-color: var(--success); }
.cc-kitchen__orderid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-kitchen__time { color: var(--fg-faint); font-family: var(--font-body); font-size: 11px; }
.cc-kitchen__card { border-left: 3px solid var(--border); }
.cc-kitchen__card:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 22%, transparent); }
.cc-kitchen__card:has(.cc-kitchen__badge--received) { border-left-color: var(--ember-400); }
.cc-kitchen__card:has(.cc-kitchen__badge--preparing) { border-left-color: var(--primary); }
.cc-kitchen__card:has(.cc-kitchen__badge--ready_for_pickup), .cc-kitchen__card:has(.cc-kitchen__badge--out_for_delivery) { border-left-color: var(--success); }
.cc-kitchen__items li { overflow-wrap: anywhere; }

/* Focused admin kitchen board: weight confirmations are intentionally the
   first queue and carry a clear urgency treatment. */
.cc-admin-kitchen__lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cc-admin-kitchen__lane { min-width: 0; padding: 14px; border: 1px solid var(--border); border-top: 3px solid var(--border-strong); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 54%, transparent); }
.cc-admin-kitchen__lane--pending_weighing { border-top-color: var(--kanban-weigh); }
.cc-admin-kitchen__lane--preparing { border-top-color: var(--kanban-prepare); }
.cc-admin-kitchen__lane--pending_weighing .cc-kitchen__lanetitle { color: var(--kanban-weigh); }
.cc-admin-kitchen__lane--preparing .cc-kitchen__lanetitle { color: var(--kanban-prepare); }
.cc-admin-kitchen__lanehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc-admin-kitchen__card--urgent { border-color: color-mix(in srgb, var(--kanban-weigh) 66%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--kanban-weigh) 20%, transparent), var(--shadow-sm); }
.cc-admin-kitchen__urgent { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 8px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--kanban-weigh) 16%, transparent); color: var(--kanban-weigh); font-family: var(--font-heading); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cc-kitchen__urgent-summary { display: inline-flex; align-items: center; gap: 6px; color: var(--kanban-weigh); font-family: var(--font-heading); font-size: 12px; font-weight: 700; }
.cc-admin-kitchen__prep-state { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-muted); font-family: var(--font-body); font-size: 12px; }

/* Native dialog keeps weight entry focused and prevents accidental card edits. */
.cc-weight-modal { width: min(540px, calc(100vw - 32px)); max-height: min(680px, calc(100dvh - 32px)); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-lg); }
.cc-weight-modal::backdrop { background: rgba(10, 12, 10, .68); backdrop-filter: blur(2px); }
.cc-weight-modal__head { padding: 22px 22px 16px; border-bottom: 1px solid var(--border); }
.cc-weight-modal__head .cc-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--kanban-weigh); }
.cc-weight-modal__title { margin: 6px 0 3px; color: var(--fg-bright); font-family: var(--font-heading); font-size: 21px; line-height: 1.15; }
.cc-weight-modal__head p { margin: 0; color: var(--fg-muted); font-family: var(--font-body); font-size: 13px; line-height: 1.4; }
.cc-weight-modal__form { display: flex; flex-direction: column; gap: 16px; padding: 18px 22px 20px; }
.cc-weight-modal__items { display: flex; flex-direction: column; gap: 9px; }
.cc-weight-modal__field { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.cc-weight-modal__item, .cc-weight-modal__input { display: flex; flex-direction: column; min-width: 0; }
.cc-weight-modal__item strong { overflow-wrap: anywhere; color: var(--fg-bright); font-family: var(--font-heading); font-size: 14px; }
.cc-weight-modal__item small, .cc-weight-modal__input small { color: var(--fg-faint); font-family: var(--font-body); font-size: 11px; }
.cc-weight-modal__input { flex: 0 0 104px; gap: 2px; align-items: flex-end; }
.cc-weight-modal__input input { width: 100%; min-height: 42px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--fg-bright); font: 16px var(--font-body); text-align: right; }
.cc-weight-modal__input input:focus { border-color: var(--kanban-weigh); outline: 3px solid color-mix(in srgb, var(--kanban-weigh) 24%, transparent); outline-offset: 1px; }
.cc-weight-modal__actions { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 3px; }
.cc-weight-modal__cancel { border: 0; padding: 2px 4px; background: transparent; color: var(--fg-faint); cursor: pointer; font-family: var(--font-body); font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.cc-weight-modal__cancel:hover, .cc-weight-modal__cancel:focus-visible { color: var(--fg-muted); }
.cc-weight-modal__cancel:focus-visible { outline: 2px solid var(--kanban-weigh); outline-offset: 2px; border-radius: 3px; }

@media (max-width: 760px) {
  .cc-admin-kitchen__lanes { grid-template-columns: 1fr; }
  .cc-weight-modal__head { padding: 18px 16px 14px; }
  .cc-weight-modal__form { padding: 16px; }
}

  /* Reports: active filters and horizontally scrollable long periods remain readable. */
.cc-report-active {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: -8px 0 18px;
  color: var(--fg-muted); font-family: var(--font-body); font-size: 12px;
}
.cc-report-active__label { display: inline-flex; align-items: center; gap: 5px; color: var(--fg-faint); font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cc-report-active__chip { padding: 5px 9px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); color: var(--fg); }
.cc-report-card { min-height: 220px; }
.cc-report-bars { overflow-x: auto; overscroll-behavior-inline: contain; padding-inline: 2px; }
.cc-report-bars__item { flex: 1 0 34px; }
.cc-report-bars__item:focus-visible { outline: 2px solid var(--flame-300); outline-offset: 3px; border-radius: 5px; }
.cc-report-card .cc-table-wrap { flex: 1; }

@media (max-width: 820px) {
  .cc-admin__topactions { gap: 10px; }
  .cc-admin__live span:last-child { display: none; }
  .cc-staff--kitchen { width: 100%; }
}

@media (max-width: 560px) {
  .cc-staff__toolbar, .cc-kitchen__toolbar { align-items: flex-start; flex-direction: column; }
  .cc-staff__toolbar { gap: 7px; }
  .cc-kitchen__scrollhint { display: none; }
  .cc-staff__row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .cc-staff__field, .cc-staff__field input { width: 100%; }
  .cc-staff__field input { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-admin, .cc-admin__collapse, .cc-kpi, .cc-table tbody tr, .cc-admin__navlink, .cc-kitchen__card { transition: none; }
}

/* ============ AVISOS DA OPERAÇÃO — sino do topo + central ============
   O botão fica no canto superior direito do shell admin e é substituído por
   broadcast a cada aviso; o dropdown é um turbo-frame irmão, para que recontar
   não feche o painel que o operador está lendo. */
.cc-bell { position: relative; display: inline-flex; }
.cc-bell__btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--fg-muted);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.cc-bell__btn:hover { color: var(--fg-bright); border-color: var(--border-strong); }
.cc-bell__btn:focus-visible { outline: 2px solid var(--flame-300); outline-offset: 2px; }
.cc-bell__btn.is-alert { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 46%, var(--border)); }
.cc-bell__count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary);
  font-family: var(--font-heading); font-size: 10px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--bg);
}
.cc-bell__btn.is-alert svg { animation: cc-bell-ring 2.4s ease-in-out 2; transform-origin: 50% 15%; }

@keyframes cc-bell-ring {
  0%, 72%, 100% { transform: rotate(0); }
  76% { transform: rotate(11deg); }
  80% { transform: rotate(-9deg); }
  84% { transform: rotate(6deg); }
  88% { transform: rotate(-4deg); }
}

.cc-bell__panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: min(370px, calc(100vw - 32px));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
}
.cc-bell__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--hairline);
}
.cc-bell__title {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--fg-bright);
}
.cc-bell__headaction {
  border: 0; background: transparent; cursor: pointer; padding: 0;
  font-family: var(--font-body); font-size: 12px; color: var(--ember-400);
}
.cc-bell__headaction:hover { color: var(--ember-500); text-decoration: underline; }
.cc-bell__loading, .cc-bell__empty {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 0; padding: 30px 18px; text-align: center;
  font-family: var(--font-body); font-size: 13px; color: var(--fg-muted);
}
.cc-bell__list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; overscroll-behavior: contain; }
.cc-bell__list--page { max-height: none; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.cc-bell__foot { padding: 9px 14px; border-top: 1px solid var(--hairline); text-align: center; }
.cc-bell__all {
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted);
}
.cc-bell__all:hover { color: var(--primary); }

.cc-notif { display: flex; align-items: stretch; border-bottom: 1px solid var(--hairline); }
.cc-notif:last-child { border-bottom: 0; }
.cc-notif__main {
  flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 6px 11px 14px; border: 0; border-left: 3px solid transparent;
  background: transparent; color: inherit; cursor: pointer; text-align: left;
  font: inherit; transition: background .15s ease;
}
.cc-notif__main:hover { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.cc-notif__main:focus-visible { outline: 2px solid var(--flame-300); outline-offset: -2px; }
.cc-notif__icon { flex: none; margin-top: 1px; color: var(--fg-faint); }
.cc-notif__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-notif__title {
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  color: var(--fg-bright); overflow-wrap: anywhere;
}
.cc-notif__body { font-family: var(--font-body); font-size: 12px; color: var(--fg-muted); overflow-wrap: anywhere; }
.cc-notif__time { font-family: var(--font-body); font-size: 11px; color: var(--fg-faint); }
.cc-notif__dot {
  flex: none; align-self: center; width: 7px; height: 7px; margin-left: auto;
  border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.cc-notif.is-unread { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.cc-notif.is-unread .cc-notif__main { border-left-color: var(--primary); }
.cc-notif--success .cc-notif__icon { color: var(--success); }
.cc-notif--warning .cc-notif__icon { color: var(--flame-400); }
.cc-notif--critical .cc-notif__icon { color: var(--danger); }
.cc-notif--critical.is-unread .cc-notif__main { border-left-color: var(--danger); }
.cc-notif__dismiss {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; border: 0; background: transparent; color: var(--fg-faint);
  cursor: pointer; transition: color .15s ease, background .15s ease;
}
.cc-notif__dismiss:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.cc-notif__dismiss:focus-visible { outline: 2px solid var(--flame-300); outline-offset: -2px; }
.cc-notifpage__purge { border: 1px solid var(--border); background: transparent; color: var(--fg-muted); }
.cc-notifpage__purge:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 56%, var(--border)); }

/* button_to embrulha o botão num form; sem isso as linhas do aviso e as ações
   do cabeçalho quebrariam o layout flex. */
.cc-notif > form, .cc-bell__head > form { display: contents; }

@media (prefers-reduced-motion: reduce) {
  .cc-bell__btn.is-alert svg { animation: none; }
}

@media (max-width: 560px) {
  .cc-bell__panel { position: fixed; top: auto; right: 12px; left: 12px; width: auto; }
}

/* ============ CENTRAL DE AVISOS DO CLIENTE ============
   O sino do cliente é um link para a central (e não um dropdown): a moldura do
   telefone tem overflow oculto, e o cliente recebe poucos avisos — abrir uma
   tela é mais direto do que espiar um painel. As duas superfícies reaproveitam
   .cc-bell__btn / .cc-bell__count com variantes de tamanho. */
.cc-bell__btn--web {
  width: auto; height: auto; padding: 9px 11px; border-radius: 10px;
  background: var(--surface-2); color: var(--fg-bright);
  transition: background .22s ease, border-color .22s ease, transform .22s cubic-bezier(.22, 1.35, .36, 1);
}
.cc-bell__btn--web:hover {
  background: color-mix(in srgb, var(--primary) 16%, var(--surface-2));
  border-color: var(--primary); transform: translateY(-2px);
}
.cc-bell__btn--mobile {
  width: 22px; height: 22px; border: 0; border-radius: 7px;
  background: transparent; color: var(--fg-bright);
}
.cc-bell__btn--mobile .cc-bell__count {
  top: -5px; right: -7px; min-width: 15px; height: 15px; font-size: 9px;
}
.cc-bell__btn--mobile.is-alert { color: var(--primary); }

/* ============ NOTIFICAÇÕES NATIVAS DO NAVEGADOR ============ */
.cc-browser-notifications {
  /* The controller is rendered directly under <body>. Keeping it in normal
     flow makes it consume a CSS-grid column in the admin layout, swapping the
     sidebar and main content. The wrapper is an inert viewport layer; only
     the prompt itself receives pointer events. */
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
}
.cc-browser-notifications__prompt {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; align-items: center; gap: 16px; max-width: min(520px, calc(100vw - 36px));
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg); pointer-events: auto;
}
.cc-browser-notifications__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc-browser-notifications__copy strong { font-family: var(--font-heading); font-size: 13px; color: var(--fg-bright); }
.cc-browser-notifications__copy span { font-family: var(--font-body); font-size: 12px; color: var(--fg-muted); }
.cc-browser-notifications__actions { display: flex; align-items: center; gap: 9px; flex: none; }
.cc-browser-notifications__enable { white-space: nowrap; padding: 9px 12px; font-size: 11px; }
.cc-browser-notifications__dismiss {
  border: 0; background: transparent; color: var(--fg-muted); cursor: pointer;
  font-family: var(--font-body); font-size: 12px; white-space: nowrap;
}
.cc-browser-notifications__dismiss:hover { color: var(--fg-bright); }
.cc-browser-notifications__status {
  position: absolute; left: 16px; right: 16px; bottom: -26px; margin: 0;
  font-family: var(--font-body); font-size: 11px; color: var(--fg-muted);
}
@media (max-width: 560px) {
  .cc-browser-notifications__prompt { right: 12px; bottom: 12px; left: 12px; display: block; }
  .cc-browser-notifications__actions { margin-top: 11px; justify-content: flex-end; }
}

.cc-notifcenter { max-width: 720px; }
.cc-notifcenter__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.cc-notifcenter__lead {
  margin: 0; flex: 1; min-width: 200px;
  font-family: var(--font-body); font-size: 13px; color: var(--fg-muted);
}
.cc-notifcenter__action {
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: transparent; cursor: pointer; padding: 6px 12px; white-space: nowrap;
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted);
}
.cc-notifcenter__action:hover { color: var(--primary); border-color: var(--primary); }
.cc-notifcenter__empty {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 44px 24px; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--fg-muted); font-family: var(--font-body); font-size: 13px;
}
.cc-notifcenter__empty strong { color: var(--fg-bright); font-family: var(--font-heading); font-size: 15px; }

/* button_to embrulha o botão num form (ver a nota na seção do sino do painel). */
.cc-notifcenter__head > form { display: contents; }

/* ============ 2026 BRAND + ADMIN INFORMATION ARCHITECTURE ============ */
/* Header actions share one 40px rhythm. Labeled actions stay pill-shaped;
   icon-only actions use the same quiet square treatment on admin and web. */
.cc-web-nav__actions, .cc-admin__topactions { gap: 8px; }
.cc-web-nav__actions .cc-linkbtn { gap: 7px; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.cc-web-nav__actions .cc-linkbtn--primary { background: var(--primary); box-shadow: var(--glow-primary); }
.cc-bell__btn, .cc-bell__btn--web {
  width: 40px; height: 40px; padding: 0; border-radius: 12px;
  background: var(--surface-2); color: var(--fg-muted);
}
.cc-bell__btn--web { color: var(--fg-bright); }
.cc-admin__live {
  min-height: 40px; padding: 0 12px; background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

/* The sidebar now exposes five task-oriented groups instead of one long flat
   list. Only the active/selected group opens, keeping the scan path short. */
.cc-admin__brand { gap: 8px; padding-inline: 6px; }
.cc-admin__brandlink { gap: 8px; }
.cc-admin__nav { gap: 4px; }
.cc-admin__navgroup { display: flex; flex-direction: column; min-width: 0; }
.cc-admin__grouptrigger {
  width: 100%; min-height: 42px; display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--fg-muted); cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.cc-admin__grouptrigger:hover, .cc-admin__grouptrigger:focus-visible {
  background: var(--surface-2); border-color: var(--border); color: var(--fg-bright);
}
.cc-admin__grouptrigger > svg:first-child { flex: none; }
.cc-admin__groupchevron { flex: none; margin-left: auto; transition: transform .18s ease; }
.cc-admin__navgroup.is-open > .cc-admin__grouptrigger { color: var(--fg-bright); }
.cc-admin__navgroup.is-open .cc-admin__groupchevron { transform: rotate(180deg); }
.cc-admin__submenu {
  display: none; flex-direction: column; gap: 2px; margin: 2px 0 5px 20px;
  padding: 2px 0 2px 10px; border-left: 1px solid var(--border);
}
.cc-admin__navgroup.is-open .cc-admin__submenu { display: flex; }
.cc-admin__navlink--sub { min-height: 38px; padding: 8px 10px; font-size: 13px; }
.cc-admin__navlink--sub.is-active { box-shadow: inset 2px 0 0 var(--primary); }

@media (min-width: 821px) {
  .cc-admin.is-sidebar-collapsed .cc-admin__grouptrigger { justify-content: center; gap: 0; padding-inline: 10px; }
  .cc-admin.is-sidebar-collapsed .cc-admin__groupchevron,
  .cc-admin.is-sidebar-collapsed .cc-admin__submenu { display: none; }
  .cc-admin.is-sidebar-collapsed .cc-admin__brand .cc-logo--admin img { width: 100%; height: auto; }
}

/* Mobile uses the same accessible accordion vertically; the sidebar remains
   sticky and scrolls internally if the active group is taller than the view. */
@media (max-width: 820px) {
  .cc-admin__side {
    position: sticky; top: 0; z-index: 30; height: auto; max-height: min(72vh, 640px);
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 5px;
    padding: 9px 10px; overflow-x: hidden; overflow-y: auto;
    border-right: 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
  }
  .cc-admin__brand { width: 100%; flex: none; padding: 2px 4px 8px; }
  .cc-admin__brand .cc-logo--admin { width: 112px; }
  .cc-admin__brand .cc-logo--admin img { width: 100%; height: auto; }
  .cc-admin__nav { width: 100%; flex: none; flex-direction: column; gap: 4px; }
  .cc-admin__navgroup, .cc-admin__navlink, .cc-admin__grouptrigger { width: 100%; }
  .cc-admin__navlink { flex: none; min-height: 40px; padding: 9px 11px; white-space: normal; font-size: 13px; }
  .cc-admin__sidefoot { width: 100%; flex: none; margin: 2px 0 0; padding-top: 6px; border-top: 1px solid var(--border); }
}

@media (max-width: 560px) {
  .cc-web-header { gap: 8px; padding: 10px 12px; }
  .cc-logo--header { width: 140px; }
  .cc-web-nav { gap: 0; }
  .cc-web-nav__actions { gap: 6px; }
  .cc-web-nav__actions .cc-linkbtn { width: 40px; padding: 0; border-radius: 12px; }
  .cc-web-nav__actions .cc-linkbtn > span { display: none; }
}

/* ============ SEMANTIC KANBAN COLORS ============ */
.cc-kitchen__lane--new { border-top-color: var(--kanban-new); }
.cc-kitchen__lane--pending_weighing { border-top-color: var(--kanban-weigh); }
.cc-kitchen__lane--preparing { border-top-color: var(--kanban-prepare); }
.cc-kitchen__lane--ready_for_pickup { border-top-color: var(--kanban-ready); }
.cc-kitchen__lane--out_for_delivery { border-top-color: var(--kanban-delivery); }
.cc-kitchen__lane--new .cc-kitchen__lanetitle { color: var(--kanban-new); }
.cc-kitchen__lane--pending_weighing .cc-kitchen__lanetitle { color: var(--kanban-weigh); }
.cc-kitchen__lane--preparing .cc-kitchen__lanetitle { color: var(--kanban-prepare); }
.cc-kitchen__lane--ready_for_pickup .cc-kitchen__lanetitle { color: var(--kanban-ready); }
.cc-kitchen__lane--out_for_delivery .cc-kitchen__lanetitle { color: var(--kanban-delivery); }
.cc-kitchen__badge--pending_weighing, .cc-kitchen__badge--awaiting_payment {
  color: var(--kanban-weigh); background: color-mix(in srgb, var(--kanban-weigh) 16%, transparent);
}
.cc-kitchen__badge--received { color: var(--kanban-new); background: color-mix(in srgb, var(--kanban-new) 16%, transparent); }
.cc-kitchen__badge--preparing { color: var(--kanban-prepare); background: color-mix(in srgb, var(--kanban-prepare) 16%, transparent); }
.cc-kitchen__badge--ready_for_pickup { color: var(--kanban-ready); background: color-mix(in srgb, var(--kanban-ready) 16%, transparent); }
.cc-kitchen__badge--out_for_delivery { color: var(--kanban-delivery); background: color-mix(in srgb, var(--kanban-delivery) 16%, transparent); }
.cc-kitchen__card:has(.cc-kitchen__badge--pending_weighing),
.cc-kitchen__card:has(.cc-kitchen__badge--awaiting_payment) { border-left-color: var(--kanban-weigh); }
.cc-kitchen__card:has(.cc-kitchen__badge--received) { border-left-color: var(--kanban-new); }
.cc-kitchen__card:has(.cc-kitchen__badge--preparing) { border-left-color: var(--kanban-prepare); }
.cc-kitchen__card:has(.cc-kitchen__badge--ready_for_pickup) { border-left-color: var(--kanban-ready); }
.cc-kitchen__card:has(.cc-kitchen__badge--out_for_delivery) { border-left-color: var(--kanban-delivery); }
.cc-btn--kanban { color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.cc-btn--kanban:hover { filter: brightness(1.12); }
.cc-btn--kanban-accept { background: var(--action-accept); }
.cc-btn--kanban-weigh { background: var(--action-weigh); }
.cc-btn--kanban-prepare { background: var(--action-prepare); }
.cc-btn--kanban-ready { background: var(--action-ready); }
.cc-btn--kanban-delivery { background: var(--action-delivery); }
.cc-btn--kanban-complete { background: var(--action-complete); }
.cc-btn--kanban-whatsapp { background: #25D366; color: #102018; }
.cc-btn--kanban-whatsapp:hover { background: #1ebe5d; color: #07140c; }
.cc-btn--kanban-cancel {
  border: 1px solid color-mix(in srgb, var(--kanban-cancel) 62%, var(--border));
  background: color-mix(in srgb, var(--kanban-cancel) 10%, transparent);
  color: var(--kanban-cancel);
}
.cc-btn--kanban-cancel:hover { background: color-mix(in srgb, var(--kanban-cancel) 18%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .cc-admin__groupchevron, .cc-theme-toggle__label, .cc-theme-toggle__icon { transition: none; }
}

/* ============ NOTO SERIF WEIGHT HIERARCHY ============
   Black 900 carries the strongest brand moments. ExtraBold 800 supports
   component titles, Bold 700 keeps navigation authoritative, and SemiBold
   600 leaves labels legible without making every surface equally loud. */
.cc-hero-web__title,
.cc-story__title,
.cc-welcome h2,
.cc-m-title,
.cc-m-detail__name,
.cc-order__title,
.cc-card__title,
.cc-cat-tile__name,
.cc-m-featured__name,
.cc-m-row__name,
.cc-promo__title,
.cc-admin__h1,
.cc-staff__title,
.cc-conf__h,
.cc-driver__h1 {
  font-weight: var(--weight-serif-black);
}

.cc-drawer__title,
.cc-hub__title,
.cc-btn,
.cc-linkbtn,
.cc-price,
.cc-m-cat__name,
.cc-cart__name,
.cc-cart__subtotal,
.cc-weigh__h,
.cc-weigh__name,
.cc-weigh__summary,
.cc-pix__h,
.cc-acct__name,
.cc-admin__h2,
.cc-kpi__value,
.cc-kitchen__lanetitle,
.cc-report-list dd,
.cc-driver__brand,
.cc-bell__title,
.cc-notif__title,
.cc-notifcenter__empty strong {
  font-weight: var(--weight-serif-extra);
}

.cc-web-navlink,
.cc-admin__brandlabel,
.cc-admin__navlink,
.cc-admin__grouptrigger,
.cc-admin__role,
.cc-eyebrow,
.cc-welcome__eyebrow,
.cc-badge,
.cc-tabbar__tab span,
.cc-field > span,
.cc-table th,
.cc-kitchen__badge {
  font-weight: var(--weight-serif-bold);
}

.cc-hub__soon,
.cc-orow__state,
.cc-report-card__head > span,
.cc-kpi__label {
  font-weight: var(--weight-serif-medium);
}

/* Keep the floating tools and footer usable on narrow storefronts. */
@media (max-width: 720px) {
  .cc-web-footer {
    align-items: flex-start;
  }

  .cc-web-footer__brand,
  .cc-web-footer__links,
  .cc-web-footer__channels {
    width: 100%;
  }

  .cc-web-footer__brand {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .cc-float-actions {
    right: 12px;
    gap: 6px;
  }

  .cc-float-actions .cc-theme-toggle__label,
  .cc-float-actions .cc-tour-launch {
    min-height: 64px;
    height: 64px;
  }

  .cc-float-actions .cc-theme-toggle__label {
    width: 64px;
  }

  .cc-float-actions .cc-tour-launch {
    min-width: 108px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .cc-float-actions .cc-theme-toggle__icon svg,
  .cc-float-actions .cc-tour-launch svg {
    width: 22px;
    height: 22px;
  }

  .cc-web-footer__copy {
    max-width: 30ch;
  }
}

/* ============ ADMIN — TABELAS LARGAS E NAVEGAÇÃO NO CELULAR ============
   Duas correções transversais das telas de listagem do painel:
   (1) linha de "nenhum registro" com o mesmo tom das demais tabelas;
   (2) no celular a barra lateral podia ocupar quase toda a tela antes do
       conteúdo — o botão de recolher, que só existia no desktop, passa a
       valer também aqui e a altura máxima do menu aberto foi reduzida. */
.cc-table__empty { color: var(--fg-muted); font-style: italic; text-align: center; }

/* Formulário de uma ação só dentro de uma linha (revogar sessão/acesso, ativar
   uma plataforma): os campos ficam na horizontal em vez de empilhar. A classe
   já era usada no HTML sem existir no CSS. */
.cc-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.cc-inline-form .cc-input { width: auto; min-width: 130px; padding: 8px 11px; font-size: 14px; }
.cc-admin__list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.cc-admin__list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--fg); font-family: var(--font-body); }

@media (max-width: 820px) {
  .cc-admin__side { max-height: min(58vh, 460px); }
  .cc-admin__brand { align-items: center; justify-content: space-between; }
  .cc-admin__collapse { display: inline-grid; }
  .cc-admin.is-sidebar-collapsed .cc-admin__side { max-height: none; overflow: visible; }
  .cc-admin.is-sidebar-collapsed .cc-admin__nav,
  .cc-admin.is-sidebar-collapsed .cc-admin__sidefoot { display: none; }
}

/* ============ FAVORITOS ============ */
.cc-favorite-wrap,
.cc-favorite__form { display: inline-flex; flex: none; margin: 0; }
.cc-favorite {
  width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--fg-muted);
  box-shadow: var(--shadow-sm); cursor: pointer; -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cc-favorite:is(:hover, :focus-visible) {
  color: var(--flame-400); border-color: var(--flame-400);
  background: color-mix(in srgb, var(--flame-400) 13%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--flame-400) 16%, transparent), var(--shadow-sm);
  transform: translateY(-2px) scale(1.04); outline: 0;
}
.cc-favorite.is-favorite {
  color: var(--flame-400); border-color: color-mix(in srgb, var(--flame-400) 72%, var(--border));
  background: color-mix(in srgb, var(--flame-400) 16%, var(--surface));
  box-shadow: 0 0 18px color-mix(in srgb, var(--flame-400) 22%, transparent);
}
.cc-card__favorite { position: absolute; z-index: 5; top: 21px; right: 21px; }
.cc-card__favorite .cc-favorite { background: var(--scrim); color: var(--cream-200); }
.cc-card__favorite .cc-favorite.is-favorite { color: var(--flame-300); }
.cc-m-row__actions { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.cc-m-row__actions .cc-favorite { width: 34px; height: 34px; background: var(--surface-2); box-shadow: none; }
.cc-m-detail__favorite { position: absolute; z-index: 4; top: 14px; right: 14px; }
.cc-m-detail__favorite .cc-favorite { background: var(--scrim-strong); color: var(--cream-200); }
.cc-m-featured { position: relative; }
.cc-m-featured__link { display: block; color: inherit; text-decoration: none; }
.cc-m-featured__favorite { position: absolute; z-index: 4; top: 10px; right: 10px; }
.cc-m-featured__favorite .cc-favorite { background: var(--scrim-strong); color: var(--cream-200); }

.cc-favorites-page { min-height: 62vh; }
.cc-favorites-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.cc-favorites-page__head .cc-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.cc-favorites-page__head .cc-body { margin: 8px 0 0; color: var(--fg-muted); }
.cc-favorites-empty {
  min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 40px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 76%, transparent); text-align: center;
}
.cc-favorites-empty > svg { color: var(--flame-400); }
.cc-favorites-empty h2,
.cc-favorites-empty strong { margin: 2px 0 0; color: var(--fg-bright); font-family: var(--font-heading); font-size: 20px; }
.cc-favorites-empty p { max-width: 42ch; margin: 0 0 10px; color: var(--fg-muted); font-family: var(--font-body); }
.cc-mobile-favorites { padding: 18px 18px 26px; }
.cc-favorites-count {
  min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding-inline: 9px;
  border: 1px solid color-mix(in srgb, var(--flame-400) 45%, var(--border)); border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--flame-400) 12%, var(--surface)); color: var(--flame-400);
  font-family: var(--font-heading); font-weight: var(--weight-serif-bold);
}
.cc-mobile-favorites .cc-menu__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.cc-favorites-empty--mobile { min-height: 300px; padding: 30px 20px; }
.cc-favorites-empty--mobile strong { font-size: 17px; }

/* ============ CONTA DO CLIENTE — DASHBOARD WEB ============ */
.cc-account-dashboard { display: flex; flex-direction: column; gap: 18px; max-width: 1120px; margin: 0 auto; }
.cc-account-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 4vw, 38px); border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--border));
  border-radius: var(--radius-xl); background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 15%, var(--surface)) 0%, var(--surface) 54%, var(--bg-deep) 100%);
  box-shadow: var(--shadow-lg);
}
.cc-account-hero::after {
  content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; top: -155px; right: 6%;
  border-radius: 50%; background: color-mix(in srgb, var(--primary) 20%, transparent); filter: blur(5px);
}
.cc-account-hero__identity { display: flex; align-items: center; min-width: 0; gap: 18px; }
.cc-account-hero__avatar {
  width: 78px; height: 78px; flex: 0 0 78px; display: grid; place-items: center;
  border: 2px solid color-mix(in srgb, var(--flame-300) 70%, var(--primary)); border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-hover), var(--primary-press)); color: var(--on-primary);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 13%, transparent), var(--glow-primary);
  font-family: var(--font-heading); font-size: 25px; font-weight: var(--weight-serif-extra); letter-spacing: .04em;
}
.cc-account-hero h1 { margin: 4px 0 6px; color: var(--fg-bright); font-family: var(--font-display); font-size: clamp(31px, 5vw, 46px); line-height: 1.05; }
.cc-account-hero__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--fg-muted); font-family: var(--font-body); font-size: 13px; }
.cc-account-hero__contacts > span { display: inline-flex; align-items: center; gap: 6px; }
.cc-account-hero__actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.cc-account-hero__actions form { margin: 0; }

.cc-account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cc-account-stats article {
  min-width: 0; display: flex; align-items: center; gap: 12px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm);
}
.cc-account-stat__icon {
  width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center;
  border-radius: 12px; background: color-mix(in srgb, var(--primary) 13%, var(--surface-2)); color: var(--primary);
}
.cc-account-stats article > div { min-width: 0; display: flex; flex-direction: column; }
.cc-account-stats strong { overflow: hidden; color: var(--fg-bright); font-family: var(--font-heading); font-size: 20px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.cc-account-stats article:last-child strong { font-size: 15px; }
.cc-account-stats article > div > span { color: var(--fg-muted); font-family: var(--font-body); font-size: 12px; }

.cc-account-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cc-account-panel {
  min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.cc-account-panel--orders,
.cc-account-panel--favorites { grid-column: span 7; }
.cc-account-panel--settings,
.cc-account-panel--addresses { grid-column: span 5; }
.cc-account-panel__head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.cc-account-panel__head .cc-eyebrow { font-size: 10px; }
.cc-account-panel__head h2 { margin: 4px 0 0; color: var(--fg-bright); font-family: var(--font-heading); font-size: 21px; }
.cc-account-panel__link { display: inline-flex; align-items: center; gap: 5px; color: var(--ember-400); font: 600 12px var(--font-heading); text-decoration: none; white-space: nowrap; }
.cc-account-panel__link:hover { color: var(--primary-hover); }
.cc-account-orders { display: flex; flex-direction: column; }
.cc-account-order {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px;
  padding: 13px 4px; border-bottom: 1px solid var(--surface-2); color: inherit; text-decoration: none;
  transition: background .16s ease, padding .16s ease;
}
.cc-account-order:first-child { padding-top: 4px; }
.cc-account-order:last-child { padding-bottom: 4px; border-bottom: 0; }
.cc-account-order:is(:hover, :focus-visible) { padding-inline: 9px; border-radius: 12px; background: var(--surface-2); outline: 0; }
.cc-account-order__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, var(--surface-2)); color: var(--primary); }
.cc-account-order__main,
.cc-account-order__aside { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-account-order__topline { display: flex; align-items: baseline; gap: 9px; }
.cc-account-order__topline strong { color: var(--fg-bright); font-family: var(--font-heading); font-size: 14px; }
.cc-account-order__topline > span,
.cc-account-order__items,
.cc-account-order__mode { overflow: hidden; color: var(--fg-muted); font-family: var(--font-body); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cc-account-order__items { color: var(--fg-soft); font-size: 12px; }
.cc-account-order__items em { color: var(--ember-400); font-style: normal; }
.cc-account-order__aside { align-items: flex-end; }
.cc-account-order__aside .cc-price { font-size: 14px; }

.cc-account-actions { display: flex; flex-direction: column; }
.cc-account-actions > a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 3px; border-bottom: 1px solid var(--surface-2); color: inherit; text-decoration: none; }
.cc-account-actions > a:last-child { border-bottom: 0; }
.cc-account-actions > a:hover { color: var(--primary); }
.cc-account-actions__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2); color: var(--ember-400); }
.cc-account-actions > a > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-account-actions strong { color: var(--fg-bright); font-family: var(--font-heading); font-size: 13px; }
.cc-account-actions small { overflow: hidden; color: var(--fg-muted); font-family: var(--font-body); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.cc-account-favorites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cc-account-favorites article { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.cc-account-favorite__link { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.cc-account-favorite__link .cc-thumb { width: 64px; }
.cc-account-favorite__link > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-account-favorite__link strong,
.cc-account-favorite__link small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-account-favorite__link strong { color: var(--fg-bright); font: 600 12px var(--font-heading); }
.cc-account-favorite__link small { color: var(--price); font: 600 11px var(--font-body); }
.cc-account-favorites .cc-favorite { width: 34px; height: 34px; box-shadow: none; }
.cc-account-addresses { display: flex; flex-direction: column; gap: 9px; }
.cc-account-addresses article { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border-radius: 13px; background: var(--surface-2); }
.cc-account-addresses article > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.cc-account-addresses article > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-account-addresses strong { color: var(--fg-bright); font: 600 13px var(--font-heading); }
.cc-account-addresses small { overflow: hidden; color: var(--fg-muted); font: 12px var(--font-body); text-overflow: ellipsis; white-space: nowrap; }
.cc-account-addresses em { padding: 3px 7px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); font: 600 10px var(--font-heading); font-style: normal; }
.cc-account-panel__hint { margin: 11px 0 0; color: var(--fg-faint); font: 11px var(--font-body); }
.cc-account-empty { min-height: 145px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px; border: 1px dashed var(--border); border-radius: 15px; background: var(--surface-2); }
.cc-account-empty > span,
.cc-account-empty > svg { flex: none; color: var(--flame-400); }
.cc-account-empty > div { min-width: 0; flex: 1; }
.cc-account-empty strong { color: var(--fg-bright); font-family: var(--font-heading); }
.cc-account-empty p { margin: 4px 0 0; color: var(--fg-muted); font: 12px/1.45 var(--font-body); }
.cc-account-empty--compact { min-height: 118px; }
.cc-account-empty--stacked { flex-direction: column; min-height: 180px; text-align: center; }

/* Account hierarchy inside the compact mobile surface. */
.cc-acct--dashboard { padding: 18px 18px 28px; gap: 16px; }
.cc-acct-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border)); border-radius: 18px; background: linear-gradient(125deg, color-mix(in srgb, var(--primary) 15%, var(--surface)), var(--surface)); }
.cc-acct-hero::after { content: ""; position: absolute; width: 92px; height: 92px; top: -50px; right: -20px; border-radius: 50%; background: color-mix(in srgb, var(--flame-400) 17%, transparent); }
.cc-acct-hero__avatar { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border: 2px solid var(--flame-400); border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 800 17px var(--font-heading); }
.cc-acct-hero__copy { min-width: 0; flex: 1; }
.cc-acct-hero__copy > span { color: var(--primary); font: 700 9px var(--font-heading); text-transform: uppercase; letter-spacing: .12em; }
.cc-acct-hero__copy h1 { overflow: hidden; margin: 3px 0 2px; color: var(--fg-bright); font: 700 20px/1.1 var(--font-heading); text-overflow: ellipsis; white-space: nowrap; }
.cc-acct-hero__copy p { overflow: hidden; margin: 0; color: var(--fg-muted); font: 11px var(--font-body); text-overflow: ellipsis; white-space: nowrap; }
.cc-acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc-acct-stats article { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 5px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.cc-acct-stats strong { color: var(--fg-bright); font: 800 18px var(--font-heading); }
.cc-acct-stats span { color: var(--fg-muted); font: 10px var(--font-body); }
.cc-acct--dashboard .cc-acct__link { padding: 12px 13px; text-decoration: none; }
.cc-acct__count { min-width: 22px; justify-content: center; padding: 2px 6px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--flame-400) 15%, var(--surface-2)); color: var(--flame-400); font-size: 10px; }
.cc-acct-section__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 3px; }
.cc-acct-section__head h2 { margin: 0; color: var(--fg-bright); font: 700 15px var(--font-heading); }
.cc-acct-section__head a { color: var(--ember-400); font: 600 11px var(--font-body); text-decoration: none; }
.cc-acct-favorites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cc-acct-favorites a { min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 7px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; }
.cc-acct-favorites a > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-acct-favorites strong,
.cc-acct-favorites small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-acct-favorites strong { color: var(--fg-bright); font: 600 10px var(--font-heading); }
.cc-acct-favorites small { color: var(--price); font: 10px var(--font-body); }

/* ============ ADMIN — CAMPANHAS E RANKING DE FAVORITOS ============ */
.cc-admin__subtitle { max-width: 64ch; margin: 5px 0 0; color: var(--fg-muted); font: 14px/1.45 var(--font-body); }
.cc-admin__pagehead--form { margin-bottom: 18px; }
.cc-campaign-kpis,
.cc-favorite-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0; }
.cc-kpi__value--name { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.cc-table__sub { display: block; max-width: 36ch; margin-top: 3px; color: var(--fg-muted); font-size: 11px; }
.cc-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: var(--radius-pill); font: 700 10px var(--font-heading); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.cc-status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cc-status-pill--active { color: var(--success); background: color-mix(in srgb, var(--success) 15%, transparent); }
.cc-status-pill--scheduled { color: var(--warning); background: color-mix(in srgb, var(--warning) 15%, transparent); }
.cc-status-pill--expired,
.cc-status-pill--muted { color: var(--fg-muted); background: var(--surface-2); }
.cc-campaign-table { min-width: 1020px; }
.cc-campaign-table td:first-child { min-width: 210px; }
.cc-campaign-form { max-width: 900px; gap: 16px; }
.cc-campaign-form__section { min-width: 0; display: flex; flex-direction: column; gap: 15px; margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.cc-campaign-form__section[hidden] { display: none; }
.cc-campaign-form__heading { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--surface-2); }
.cc-campaign-form__heading h2 { margin: 0; color: var(--fg-bright); font: 700 17px var(--font-heading); }
.cc-campaign-form__heading p { margin: 3px 0 0; color: var(--fg-muted); font: 12px/1.4 var(--font-body); }
.cc-campaign-form__step { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 10px; background: var(--primary); color: var(--on-primary); font: 800 13px var(--font-heading); box-shadow: 0 0 16px color-mix(in srgb, var(--primary) 25%, transparent); }
.cc-campaign-form__active { align-self: flex-start; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); }
.cc-campaign-form__rule-note { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); color: var(--fg-muted); font: 12px/1.35 var(--font-body); }
.cc-campaign-form__audience,
.cc-campaign-form__validity { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: color-mix(in srgb, var(--surface-2) 62%, transparent); }
.cc-campaign-form__audience[hidden] { display: none; }
.cc-campaign-form__subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-campaign-form__subhead strong { color: var(--fg-bright); font: 700 13px var(--font-heading); }
.cc-campaign-form__subhead > span { color: var(--fg-muted); font: 11px var(--font-body); }
.cc-campaign-form__customers { max-height: 250px; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: 2px; }
.cc-campaign-form__customer { align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.cc-campaign-form__customer > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-campaign-form__customer strong,
.cc-campaign-form__customer small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-campaign-form__customer strong { color: var(--fg-bright); font-family: var(--font-heading); font-size: 12px; }
.cc-campaign-form__customer small { color: var(--fg-muted); font-size: 11px; }
.cc-campaign-form__products { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.cc-campaign-form__actions { padding-top: 4px; }
.cc-btn--danger { color: var(--danger-strong); }
.cc-favorite-ranking { min-width: 760px; }
.cc-ranking-position { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--flame-400) 13%, var(--surface-2)); color: var(--flame-400); font: 800 12px var(--font-heading); }
.cc-ranking-product { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.cc-ranking-product .cc-thumb { width: 46px; }
.cc-ranking-product strong { color: var(--fg-bright); font-family: var(--font-heading); }
.cc-ranking-share { min-width: 150px; display: grid; grid-template-columns: minmax(80px, 1fr) 34px; align-items: center; gap: 8px; }
.cc-ranking-share > span { width: max(4px, var(--share)); height: 7px; max-width: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--primary), var(--flame-400)); }
.cc-ranking-share small { color: var(--fg-muted); font-size: 11px; }

@media (max-width: 900px) {
  .cc-account-hero { align-items: flex-start; flex-direction: column; }
  .cc-account-hero__actions { justify-content: flex-start; }
  .cc-account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-account-panel--orders,
  .cc-account-panel--favorites { grid-column: span 12; }
  .cc-account-panel--settings,
  .cc-account-panel--addresses { grid-column: span 6; }
  .cc-campaign-kpis,
  .cc-favorite-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .cc-favorites-page__head,
  .cc-admin__pagehead { align-items: stretch; flex-direction: column; }
  .cc-account-hero__identity { align-items: flex-start; }
  .cc-account-hero__avatar { width: 62px; height: 62px; flex-basis: 62px; font-size: 20px; }
  .cc-account-hero__contacts { align-items: flex-start; flex-direction: column; gap: 5px; }
  .cc-account-panel--settings,
  .cc-account-panel--addresses { grid-column: span 12; }
  .cc-account-favorites { grid-template-columns: 1fr; }
  .cc-account-order { grid-template-columns: 38px minmax(0, 1fr) 18px; }
  .cc-account-order__icon { width: 38px; height: 38px; }
  .cc-account-order__aside { grid-column: 2; align-items: flex-start; flex-direction: row; }
  .cc-account-order > svg { grid-column: 3; grid-row: 1 / span 2; }
  .cc-campaign-kpis,
  .cc-favorite-kpis { grid-template-columns: 1fr 1fr; }
  .cc-campaign-form__section { padding: 16px; }
  .cc-campaign-form__subhead { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-favorite { transition: none; }
}

/* ============ FRONTEND POLISH — 2026-09-16 ============ */
/* Keep toast shadows outside the scrolling box. The former overflow container
   clipped the blur into a rectangular strip below light-theme notifications. */
.cc-toasts {
  box-sizing: border-box;
  max-height: none;
  overflow: visible;
}
.cc-toast {
  box-shadow: 0 16px 42px color-mix(in srgb, #000 24%, transparent);
}

/* Theme belongs to the same action group as the bag. The remaining floating
   help control is intentionally compact and no longer obscures product cards. */
.cc-web-nav__actions .cc-theme-toggle__label {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.cc-float-actions .cc-theme-toggle__label,
.cc-float-actions .cc-tour-launch {
  min-height: 34px;
  height: 34px;
  border-radius: 10px;
}
.cc-float-actions .cc-theme-toggle__label { width: 34px; }
.cc-float-actions .cc-tour-launch {
  min-width: 64px;
  gap: 5px;
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: .06em;
}
.cc-float-actions .cc-theme-toggle__icon svg,
.cc-float-actions .cc-tour-launch svg {
  width: 13px;
  height: 13px;
}

/* Mobile starts directly with the brand content; simulated operating-system
   time and status icons are deliberately absent. */
.cc-m-explore { padding-top: 16px; }
.cc-m-greeting {
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
}
.cc-m-greeting .cc-logo--mobile {
  order: 2;
  width: 132px;
  max-width: 42%;
}
.cc-m-greeting .cc-eyebrow { order: 1; }
.cc-m-greeting .cc-m-title {
  order: 3;
  margin-top: 2px;
  max-width: 9ch;
}
.cc-m-cat {
  min-height: 44px;
  padding: 8px 11px;
}
.cc-m-cat__emoji { font-size: 18px; }

/* On a phone the authentication card is the whole task; the generic site
   header duplicated the same brand and actions above it. */
@media (max-width: 720px) {
  .cc-layout-auth > .cc-web-header { display: none; }
  .cc-layout-auth > .cc-web-main {
    max-width: none;
    padding: 16px;
  }
  .cc-layout-auth .cc-auth { padding-top: 0; }
  .cc-layout-auth .cc-auth__card {
    padding: 28px 22px;
    border-radius: 18px;
  }
}

/* Delayed mobile overview. It sits above the app chrome and uses session
   storage, so it appears once per visit instead of on every Turbo render. */
.cc-mobile-intro {
  position: fixed;
  z-index: 260;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.cc-mobile-intro[hidden] { display: none; }
.cc-mobile-intro.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cc-mobile-intro__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(8, 5, 4, .8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  cursor: pointer;
}
.cc-mobile-intro__card {
  position: relative;
  width: min(390px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px 20px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  color: var(--fg);
  transform: translateY(12px) scale(.98);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}
.cc-mobile-intro.is-open .cc-mobile-intro__card { transform: none; }
.cc-mobile-intro__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--fg-muted);
  cursor: pointer;
}
.cc-mobile-intro__close:hover { color: var(--fg-bright); border-color: var(--border-strong); }
.cc-mobile-intro__brand { width: 128px; margin-bottom: 16px; }
.cc-mobile-intro__brand .cc-logo--mobile { width: 100%; max-width: none; }
.cc-mobile-intro > .cc-eyebrow,
.cc-mobile-intro__card > .cc-eyebrow { margin: 0 0 5px; }
.cc-mobile-intro h2 {
  margin: 0;
  color: var(--fg-bright);
  font: var(--weight-serif-black) 26px/1.06 var(--font-display);
}
.cc-mobile-intro__steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.cc-mobile-intro__steps li {
  display: grid;
  grid-template-columns: 24px 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}
.cc-mobile-intro__number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font: 700 10px var(--font-heading);
}
.cc-mobile-intro__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-2));
  color: var(--primary);
}
.cc-mobile-intro__steps strong,
.cc-mobile-intro__steps small { display: block; }
.cc-mobile-intro__steps strong {
  color: var(--fg-bright);
  font: 700 12px/1.25 var(--font-heading);
  text-transform: uppercase;
}
.cc-mobile-intro__steps small {
  margin-top: 2px;
  color: var(--fg-muted);
  font: 11.5px/1.35 var(--font-body);
}
.cc-mobile-intro__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cc-mobile-intro__actions .cc-btn {
  min-width: 0;
  justify-content: center;
  padding-inline: 10px;
  font-size: 11px;
}
.cc-mobile-intro__actions .cc-btn:last-child { grid-column: 1 / -1; }

@media (max-width: 560px) {
  .cc-float-actions .cc-theme-toggle__label,
  .cc-float-actions .cc-tour-launch {
    min-height: 34px;
    height: 34px;
  }
  .cc-float-actions .cc-theme-toggle__label { width: 34px; }
  .cc-float-actions .cc-tour-launch {
    min-width: 64px;
    padding-inline: 10px;
    font-size: 10px;
  }
  .cc-float-actions .cc-theme-toggle__icon svg,
  .cc-float-actions .cc-tour-launch svg {
    width: 13px;
    height: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-mobile-intro,
  .cc-mobile-intro__card { transition: none; }
}

/* Admin badge catalog and compact order actions. */
.cc-kitchen__card {
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, var(--surface-2)), var(--surface));
  box-shadow: 0 7px 20px color-mix(in srgb, #000 10%, transparent);
}
.cc-kitchen__head { gap: 10px; }
.cc-kitchen__items { padding-block: 3px; }
.cc-badge--custom {
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, #000 12%, transparent);
}
.cc-admin__formrow--badge { align-items: end; }
.cc-admin__inlinehint {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  min-height: 44px;
  color: var(--fg-muted);
  font-size: 12px;
}
.cc-admin__inlinehint .cc-link { width: fit-content; }
.cc-input--color { min-height: 44px; padding: 4px; }
.cc-admin-badges { display: grid; gap: 10px; }
.cc-admin-badge-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cc-admin-badge-card__preview,
.cc-admin-badge-card__meta,
.cc-admin-badge-card__actions { display: flex; align-items: center; gap: 9px; }
.cc-admin-badge-card__preview { color: var(--fg-muted); font-size: 12px; }
.cc-admin-badge-card__meta { flex-direction: column; align-items: flex-start; gap: 3px; }
.cc-admin-badge-card__meta strong { color: var(--fg-bright); font: 700 13px var(--font-heading); }
.cc-admin-badge-card__meta small { color: var(--fg-muted); font-size: 11px; }
.cc-admin-badge-card__actions { justify-content: flex-end; }
.cc-admin-badge-card__actions form { margin: 0; }
.cc-btn--compact {
  min-height: 30px !important;
  padding: 5px 9px !important;
  gap: 4px;
  font-size: 11px !important;
}
.cc-kitchen__actions .cc-btn--kanban-cancel {
  min-height: 30px;
  padding: 5px 9px;
  gap: 4px;
  font-size: 11px;
}

@media (max-width: 720px) {
  .cc-admin-badge-card { grid-template-columns: 1fr; gap: 10px; }
  .cc-admin-badge-card__actions { justify-content: flex-start; }
}
