:root {
  /* Colors */
  --brown-dark: #2b0f0f;
  --brown-medium: #4a1e1e;
  --red-deep: #a30000;
  --gold-primary: #f4b400;
  --gold-light: #ffd166;
  --cream: #fff3e0;
  --white: #fff;
  --muted: rgba(43, 15, 15, 0.45);

  /* Typography */
  --font-display: "Rye", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-receipt: "OCR A Std", "ORC-A", "OCR-A", monospace;
  --font-western: var(--font-display);

  /* Design Tokens */
  --radius-btn: 16px;
  --radius-card: 32px;
  --shadow-warm:
    0 4px 6px -1px rgba(74, 30, 30, 0.1), 0 2px 4px -2px rgba(74, 30, 30, 0.05);
  --shadow-premium: 0 20px 40px -10px rgba(74, 30, 30, 0.15);
  --btn-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  --btn-padding: 16px 28px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
  font-family: "OCR A Std";
  src: local("OCR A Std"), url("assets/fonts/ocr-a-std.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ORC-A";
  src: local("OCR A Std"), url("assets/fonts/ocr-a-std.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown-dark);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-western {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

body.no-scroll {
  overflow: hidden !important;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

/* Hero Section - Desktop Principal */
.hero {
  position: relative;
  min-height: 75vh;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* CAMINHO RELATIVO AO ARQUIVO CSS (MESMO NÍVEL DA PASTA ASSETS) */
  background:
    linear-gradient(rgba(20, 8, 4, 0.75), rgba(20, 8, 4, 0.92)),
    url("./assets/img/hero-caipira.webp") center center / cover no-repeat !important;
  background-attachment: fixed;
  background-color: #2b0f0f; /* Fallback de cor */
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.bg-texture {
  background-image: radial-gradient(
    circle at 2px 2px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 0
  );
  background-size: 40px 40px;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(244, 180, 0, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 800px);
  margin: 0 auto;
}

.logo {
  width: min(392px, 98vw);
  max-width: 392px;
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto 32px;
  display: block;
  object-fit: cover;
  overflow: hidden;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.hero-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: var(--gold-primary);
  margin-bottom: 12px;
  opacity: 0.95;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(25.6px, 3.36vw, 41.6px);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--gold-primary);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-title span {
  display: block;
}

.hero-title span:last-child {
  color: var(--white);
}

.hero p {
  font-family: var(--font-display);
  font-size: clamp(12.8px, 0.96vw, 15.2px);
  max-width: 580px;
  margin: 0 auto 40px;
  color: rgba(255, 243, 224, 0.9);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-family: var(--font-display);
}

.hero-cta {
  padding: 20px 42px;
  font-size: 16px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #de9d24 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px rgba(222, 157, 36, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-padding);
  border-radius: var(--radius-btn);
  font-weight: 800;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gold-primary);
  color: var(--brown-dark);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-btn);
  padding: var(--btn-padding);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(244, 180, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(244, 180, 0, 0.25);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.menu-section {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0;
  min-height: 100vh;
}

.section-heading {
  text-align: center;
  margin-bottom: clamp(40px, 8vw, 80px);
}

.section-heading h2 {
  font-size: clamp(32px, 7vw, 78px);
  margin: 0;
  color: var(--brown-dark);
  letter-spacing: -0.04em;
}

.section-heading p {
  color: rgba(43, 15, 15, 0.45);
  font-weight: 600;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
  max-width: 620px;
  margin: 16px auto 0;
}

.menu-layout {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: 32px;
  align-items: start;
}

.category-card,
.cart-card,
.product-card,
.white-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(74, 30, 30, 0.1);
  border-radius: 32px;
  box-shadow: var(--shadow-warm);
  backdrop-filter: blur(10px);
}
.sticky {
  position: sticky;
  top: 100px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card {
  padding: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(43, 15, 15, 0.05);
  transition: all 0.3s ease;
}
.category-card.is-stuck {
  box-shadow: var(--shadow-premium);
  border-color: rgba(244, 180, 0, 0.2);
}
.tiny-label {
  font-family: var(--font-western);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
  color: rgba(43, 15, 15, 0.22);
  padding: 16px 24px;
}
.tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tab {
  font-family: var(--font-display);
  position: relative;
  text-align: left;
  background: transparent;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 400;
  color: rgba(43, 15, 15, 0.48);
  transition: var(--transition-fast);
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}
.tab:hover {
  background: rgba(43, 15, 15, 0.05);
  color: rgba(43, 15, 15, 0.8);
}
.tab.active {
  background: var(--gold-primary);
  color: var(--brown-dark);
  box-shadow: 0 4px 12px rgba(244, 180, 0, 0.15);
  transform: scale(1.02);
}
.tab.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 3px;
  background: var(--brown-dark);
  border-radius: 0 40px 40px 0;
  opacity: 0.5;
}
.mobile-tabs {
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  margin: 0 -16px 32px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 30, 30, 0.05);
  box-shadow: none;
  scrollbar-width: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-tabs.is-stuck {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px -10px rgba(43, 15, 15, 0.12);
  padding-top: 14px;
  padding-bottom: 14px;
}
.mobile-tabs::-webkit-scrollbar {
  display: none;
}
.mobile-tabs .tab {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(74, 30, 30, 0.05);
  padding: 10px 20px;
  font-size: 14px;
}
.mobile-tabs .tab.active {
  background: var(--gold-primary);
  color: var(--brown-dark);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(244, 180, 0, 0.2);
}
.mobile-tabs .tab.active:before {
  display: none;
}
.category-block {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}
.category-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.category-title h3 {
  font-size: 32px;
  color: var(--red-deep);
  margin: 0;
  white-space: nowrap;
}
.category-title div {
  height: 1px;
  flex: 1;
  background: rgba(74, 30, 30, 0.1);
}
.category-desc {
  font-size: 14px;
  font-weight: 700;
  color: rgba(43, 15, 15, 0.42);
  margin: 0 0 32px;
}
.empty-category-note {
  width: 100%;
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed rgba(74, 30, 30, 0.18);
  background: rgba(255, 255, 255, 0.62);
  color: rgba(43, 15, 15, 0.48);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.products {
  display: grid;
  gap: 16px;
}
.product-card {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  cursor: pointer;
  transition: var(--transition-fast);
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 180, 0, 0.35);
  box-shadow: var(--shadow-premium);
}
.product-card.is-sold-out {
  opacity: 0.72;
  cursor: not-allowed;
  border-color: rgba(166, 0, 0, 0.14);
  background: linear-gradient(180deg, #fff, #fff8f8);
}
.product-card.is-sold-out:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}
.product-card.is-sold-out .product-image {
  filter: grayscale(0.55);
}
.product-card.is-sold-out .plus-box {
  background: #f4eeee;
  color: var(--red-deep);
  border-color: rgba(166, 0, 0, 0.14);
}
.product-main {
  display: flex;
  gap: 20px;
  min-width: 0;
  flex: 1;
}
.product-image {
  width: 112px;
  height: 112px;
  border-radius: 20px;
  background: rgba(43, 15, 15, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: rgba(43, 15, 15, 0.1);
  font-size: 42px;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.product-card:hover .product-image img {
  transform: scale(1.06);
}
.product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-info h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card:hover h4 {
  color: var(--red-deep);
}
.product-info p {
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 12px;
  color: rgba(43, 15, 15, 0.42);
  font-weight: 600;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.starting {
  font-size: 10px;
  color: rgba(43, 15, 15, 0.32);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.price {
  font-family: var(--font-display);
  color: var(--red-deep);
  font-size: 25px;
}
.sold-out-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(166, 0, 0, 0.08);
  color: var(--red-deep);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plus-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(43, 15, 15, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.product-card:hover .plus-box {
  background: var(--gold-primary);
  color: var(--brown-dark);
}
.cart-card {
  height: auto;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.cart-head {
  padding: 24px;
  border-bottom: 1px solid rgba(74, 30, 30, 0.07);
  background: rgba(43, 15, 15, 0.02);
}
.cart-head h2 {
  font-size: 24px;
  margin: 0;
  font-family: var(--font-display);
}
.cart-head p {
  font-size: 9px;
  color: rgba(43, 15, 15, 0.33);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 8px 0 0;
  font-family: var(--font-body);
}
.cart-items {
  overflow: auto;
  padding: 8px 24px;
}
.empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: rgba(43, 15, 15, 0.2);
  font-weight: 800;
}
.cart-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(74, 30, 30, 0.06);
}
.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cart-name {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 900;
  margin: 0;
  font-family: var(--font-body);
}
/* Item composition in cart and summary */
.item-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.item-main-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--brown-dark);
  margin: 0;
  line-height: 1.2;
}
.cart-item .item-main-name {
  font-size: 12px;
}
.item-composition {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 2px;
  margin-top: 4px;
}
.item-detail-line {
  font-size: 10px;
  color: rgba(43, 15, 15, 0.5);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.summary-line .item-details {
  flex: 1;
}
.cart-meta {
  font-size: 9px;
  color: rgba(43, 15, 15, 0.4);
  line-height: 1.35;
  margin: 3px 0 0;
}
.cart-price {
  font-family: var(--font-display);
  color: var(--red-deep);
  white-space: nowrap;
  font-size: 14px;
}
.cart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.qty {
  display: flex;
  align-items: center;
  background: rgba(43, 15, 15, 0.035);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(74, 30, 30, 0.06);
}
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  color: rgba(43, 15, 15, 0.4);
  font-weight: 900;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}
.qty button:hover {
  background: #fff;
  color: var(--red-deep);
}
.qty span {
  width: 30px;
  text-align: center;
  font-weight: 900;
  font-size: 11px;
}
.trash {
  background: transparent;
  color: rgba(43, 15, 15, 0.18);
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}
.trash:hover {
  color: var(--red-deep);
}
.cart-foot {
  padding: 24px;
  border-top: 1px solid rgba(74, 30, 30, 0.1);
  background: rgba(43, 15, 15, 0.02);
}
.total-label {
  font-size: 9px;
  color: rgba(43, 15, 15, 0.35);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-body);
}
.total-price {
  font-family: var(--font-display);
  color: var(--red-deep);
  font-size: 33px;
  margin: 2px 0 14px;
}
.wide {
  width: 100%;
}
.clear-btn {
  width: 100%;
  background: transparent;
  color: rgba(43, 15, 15, 0.26);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}
.clear-btn:hover {
  color: var(--red-deep);
}
.floating-cart {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  background: var(--gold-primary);
  color: var(--brown-dark);
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  gap: 8px;
  align-items: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}
.floating-cart:hover {
  transform: translateY(-5px);
  filter: brightness(1.05);
}
body.no-scroll .floating-cart {
  display: none !important;
}
.badge {
  background: var(--red-deep);
  color: white;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 15, 15, 0.65);
  backdrop-filter: blur(7px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: white;
  border-radius: 36px;
  width: min(900px, 100%);
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-media {
  background: rgba(43, 15, 15, 0.04);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(43, 15, 15, 0.1);
  font-size: 120px;
  position: relative;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 92vh;
  min-height: 0;
}
.modal-scroll {
  padding: 42px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--brown-dark) rgba(43, 15, 15, 0.05);
}
.modal-scroll::-webkit-scrollbar {
  width: 8px;
}
.modal-scroll::-webkit-scrollbar-track {
  background: rgba(43, 15, 15, 0.05);
  border-radius: 10px;
}
.modal-scroll::-webkit-scrollbar-thumb {
  background: var(--brown-dark);
  border-radius: 10px;
}
.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--brown-medium);
}
.modal h3 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  margin: 0 0 14px;
}
.modal p {
  color: rgba(43, 15, 15, 0.52);
  line-height: 1.55;
  font-family: var(--font-body);
}
.close {
  position: absolute;
  top: 20px;
  left: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  width: 44px;
  height: 44px;
  font-size: 24px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.close:hover {
  background: rgba(255, 255, 255, 0.4);
}
.option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
}
.option-label span:first-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 900;
  color: rgba(43, 15, 15, 0.35);
  font-family: var(--font-body);
}
.required {
  background: rgba(163, 0, 0, 0.06);
  color: var(--red-deep);
  font-size: 10px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
}
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.option {
  padding: 18px;
  border-radius: 18px;
  background: rgba(43, 15, 15, 0.04);
  border: 2px solid transparent;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  color: var(--brown-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}
.option.active {
  border-color: var(--gold-primary);
  background: rgba(244, 180, 0, 0.1);
}
.option small {
  display: block;
  color: rgba(43, 15, 15, 0.45);
  font-size: 12px;
}
.check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--gold-primary);
  display: none;
  text-align: center;
  line-height: 20px;
}
.option.active .check {
  display: block;
}
.flavors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(43, 15, 15, 0.05);
  color: rgba(43, 15, 15, 0.65);
  font-weight: 800;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}
.chip.active {
  background: var(--brown-dark);
  color: var(--cream);
}
.modal-foot {
  padding: 26px 34px;
  border-top: 1px solid rgba(74, 30, 30, 0.1);
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fff;
}
.add-btn {
  flex: 1;
  border-radius: var(--radius-btn);
  padding: 20px;
  background: var(--gold-primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-dark);
  box-shadow: 0 14px 30px rgba(244, 180, 0, 0.22);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}
.add-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 36px rgba(244, 180, 0, 0.3);
}
.add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.checkout {
  z-index: 1200;
}
.checkout-modal {
  background: white;
  width: min(860px, 100%);
  max-height: 94vh;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}
.checkout-brand {
  width: 100%;
  padding: clamp(32px, 6vw, 56px);
  background: var(--brown-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  position: relative;
}
.checkout-brand-logo {
  width: clamp(110px, 22vw, 150px);
  height: clamp(110px, 22vw, 150px);
  object-fit: contain;
  border-radius: 50%;
  border: 4px solid rgba(244, 180, 0, 0.2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}
.checkout-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.checkout-brand-title {
  margin: 0;
  color: #ffbd08;
  font-size: clamp(52px, 12vw, 84px);
  line-height: 0.85;
}
.checkout-brand-category {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(12px, 2vw, 15px);
  text-transform: uppercase;
  letter-spacing: 7px;
  font-weight: 800;
  font-family: var(--font-body);
}
.checkout-brand-subtitle {
  margin: 12px 0 0;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(11px, 2vw, 13px);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1.6;
}
.checkout-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.checkout-head {
  padding: 28px 34px;
  border-bottom: 1px solid rgba(74, 30, 30, 0.09);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkout-head h2 {
  font-family: var(--font-display);
  font-size: 34px;
  margin: 0;
}
.xbtn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(43, 15, 15, 0.06);
  font-size: 24px;
  color: rgba(43, 15, 15, 0.55);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.xbtn:hover {
  background: rgba(43, 15, 15, 0.1);
  color: var(--red-deep);
}
.checkout-scroll {
  padding: 30px 34px;
  overflow: auto;
  display: grid;
  gap: 28px;
}
.form-section h4 {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 900;
  color: rgba(43, 15, 15, 0.35);
  margin: 0 0 14px;
}
.input {
  width: 100%;
  border: 2px solid transparent;
  background: rgba(43, 15, 15, 0.045);
  border-radius: 14px;
  padding: 15px 17px;
  outline: 0;
  color: var(--brown-dark);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}
.input:focus {
  border-color: var(--gold-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.1);
}
.grid2,
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice {
  padding: 16px;
  border-radius: 14px;
  background: rgba(43, 15, 15, 0.04);
  border: 2px solid transparent;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-body);
  color: var(--brown-dark);
}
.choice.active {
  border-color: var(--gold-primary);
  background: rgba(244, 180, 0, 0.1);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(74, 30, 30, 0.06);
}
.summary-line span {
  font-size: 14px;
  color: rgba(43, 15, 15, 0.65);
  font-weight: 600;
  line-height: 1.3;
}
.summary-line b {
  font-family: var(--font-display);
  color: var(--brown-dark);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}
.checkout-foot {
  padding: 32px 34px;
  border-top: 1px solid rgba(74, 30, 30, 0.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.checkout-total-label {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: rgba(43, 15, 15, 0.35);
  line-height: 1;
}
.checkout-total-value {
  font-family: var(--font-display);
  color: var(--red-deep);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}
.checkout-submit {
  width: 100%;
  max-width: 100%;
  min-height: 64px;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-primary);
  color: var(--brown-dark);
  box-shadow: 0 12px 28px rgba(244, 180, 0, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.checkout-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 36px rgba(244, 180, 0, 0.25);
}
.checkout-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.8);
}
.order-success-modal {
  width: min(540px, 100%);
  border-radius: 32px;
  max-height: min(92vh, 760px);
  overflow: hidden;
}
.order-success-content {
  position: relative;
  padding: clamp(34px, 6vw, 54px);
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  max-height: inherit;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 15, 15, 0.28) rgba(43, 15, 15, 0.05);
}
.order-success-content::-webkit-scrollbar {
  width: 8px;
}
.order-success-content::-webkit-scrollbar-track {
  background: rgba(43, 15, 15, 0.05);
}
.order-success-content::-webkit-scrollbar-thumb {
  background: rgba(43, 15, 15, 0.28);
  border-radius: 999px;
}
.order-success-close {
  position: absolute;
  top: 18px;
  right: 18px;
}
.order-success-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-primary);
  color: var(--brown-dark);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  box-shadow: 0 16px 34px rgba(244, 180, 0, 0.28);
}
.order-success-kicker {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(43, 15, 15, 0.42);
}
.order-success-content h2 {
  margin: 0;
  color: var(--brown-dark);
  font-size: clamp(44px, 9vw, 68px);
  line-height: 0.95;
}
.order-success-message {
  margin: 0;
  max-width: 390px;
  color: rgba(43, 15, 15, 0.72);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}
.order-success-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(43, 15, 15, 0.045);
}
.order-success-card span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(43, 15, 15, 0.42);
}
.order-success-card strong {
  font-family: var(--font-display);
  color: var(--red-deep);
  font-size: 26px;
  font-weight: 400;
  white-space: nowrap;
}
.order-success-note {
  margin: 4px 0 6px;
  max-width: 420px;
  color: rgba(43, 15, 15, 0.54);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
.order-success-action {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.order-success-whatsapp {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  background: #25d366;
  color: #073b1a;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.22);
}
.order-success-whatsapp:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(120%);
  background: var(--brown-dark);
  color: var(--cream);
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
  z-index: 2000;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  transition: var(--transition-fast);
  font-family: var(--font-body);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Footer SaaS Premium */
.site-footer,
.footerbar {
  padding: 36px 18px 24px;
  background: transparent;
  font-family:
    Inter,
    Manrope,
    Montserrat,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.footer-premium-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 30px;
  border-radius: 34px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 197, 79, 0.08),
      rgba(255, 197, 79, 0) 32%
    ),
    linear-gradient(180deg, rgba(28, 16, 9, 0.98), rgba(9, 6, 4, 0.99));
  border: 1px solid rgba(248, 196, 79, 0.16);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-premium-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.footer-brand-block,
.footer-map-block {
  min-width: 0;
}

.footer-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(248, 196, 79, 0.1);
  border: 1px solid rgba(248, 196, 79, 0.16);
  color: #f8c44f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-brand-title {
  margin: 0;
  color: #f8c44f;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.footer-brand-description {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 248, 234, 0.78);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
}

.footer-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.footer-info-card {
  margin: 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(248, 196, 79, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.footer-info-label {
  display: block;
  margin-bottom: 9px;
  color: #f8c44f;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-info-text {
  margin: 0;
  color: rgba(255, 248, 234, 0.9);
  font-size: 0.96rem;
  line-height: 1.65;
  font-weight: 550;
}

.footer-copy {
  margin: 22px 0 0;
  color: rgba(255, 248, 234, 0.54);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}

.footer-map-block {
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(248, 196, 79, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.footer-map-frame {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-map-frame iframe,
.footer-map-placeholder {
  width: 100%;
  height: 286px;
  display: block;
  border: 0;
}

.footer-location-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8c44f 0%, #de9d24 100%);
  color: #1a1008;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(222, 157, 36, 0.22);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.footer-location-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 20px 40px rgba(222, 157, 36, 0.28);
}

.footer-location-btn:active {
  transform: translateY(0);
}

.footer-location-btn:focus-visible {
  outline: 3px solid rgba(248, 196, 79, 0.35);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .footer-premium-grid {
    grid-template-columns: 1fr;
  }

  .footer-info-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-footer,
  .footerbar {
    padding: 28px 14px 20px;
  }

  .footer-premium-shell {
    padding: 22px;
    border-radius: 28px;
  }

  .footer-brand-block {
    text-align: center;
  }

  .footer-kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-brand-description {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-info-card {
    text-align: center;
    border-radius: 22px;
  }

  .footer-map-block {
    border-radius: 24px;
    padding: 12px;
  }

  .footer-map-frame {
    border-radius: 18px;
  }

  .footer-map-frame iframe,
  .footer-map-placeholder {
    height: 230px;
  }

  .footer-copy {
    text-align: center;
  }
}

/* CRM Premium UI */
.crm-body {
  background: #fdf8ef;
  font-family: var(--font-body);
  min-height: 100vh;
}
.crm-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  align-items: stretch;
  font-family: var(--font-body);
}
.crm-shell h1,
.crm-shell h2,
.crm-shell h3,
.crm-shell h4,
.crm-shell b,
.crm-shell strong,
.crm-shell .btn,
.crm-shell button,
.crm-shell .status,
.crm-shell .crm-badge {
  font-family: var(--font-display);
  font-weight: 400;
}
.crm-sidebar {
  background: var(--brown-dark);
  color: var(--cream);
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.crm-main {
  grid-column: 2;
  min-height: 100vh;
}
.crm-brand {
  text-align: center;
  margin-bottom: 48px;
}
.crm-brand h1 {
  font-family: var(--font-display);
  color: var(--gold-primary);
  font-size: 32px;
  margin: 0;
  letter-spacing: 1px;
}
.crm-brand p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 243, 224, 0.4);
  font-weight: 800;
  margin-top: 8px;
  font-family: var(--font-body);
}
.crm-nav {
  display: grid;
  gap: 8px;
  flex: 1;
  align-content: flex-start;
}
.crm-nav a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 22px;
  font-weight: 400;
  color: rgba(255, 243, 224, 0.6);
  font-size: 15px;
  transition: var(--transition-fast);
  cursor: pointer;
  font-family: var(--font-display);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.crm-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.crm-nav a.active {
  background: var(--gold-primary);
  color: var(--brown-dark);
  box-shadow: 0 8px 20px rgba(244, 180, 0, 0.2);
  border-radius: 24px;
}
.crm-back {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.order-sound-toggle {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  border: 1px solid rgba(244, 180, 0, 0.28);
  border-radius: 12px;
  background: rgba(244, 180, 0, 0.14);
  color: var(--gold-primary);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition-fast);
}
.order-sound-toggle:hover {
  background: rgba(244, 180, 0, 0.22);
  transform: translateY(-1px);
}
.order-sound-toggle.is-off {
  color: rgba(255, 243, 224, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}
.crm-main {
  padding: clamp(24px, 5vw, 56px);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.crm-header {
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.crm-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  margin: 0;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
}
.crm-header p {
  color: var(--muted);
  font-weight: 700;
  margin-top: 8px;
  font-size: 16px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.stat {
  background: #fff;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(74, 30, 30, 0.06);
  box-shadow: var(--shadow-warm);
  transition: 0.3s;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 800;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  color: var(--red-deep);
  font-size: 34px;
  margin-top: 12px;
}
.crm-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(74, 30, 30, 0.06);
  box-shadow: var(--shadow-warm);
  overflow: hidden;
}
.crm-card.pad {
  padding: 32px;
}
.cashier-hero,
.cashier-closed,
.cashier-panel,
.cashier-history,
.cashier-metric {
  background: #fff;
  border: 1px solid rgba(47, 35, 28, 0.08);
  box-shadow: 0 18px 50px rgba(47, 35, 28, 0.08);
  font-family: var(--font-display);
}
.cashier-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 24px;
  border-radius: 18px;
  color: #241719;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 242, 0.9)),
    linear-gradient(90deg, rgba(244, 180, 0, 0.18), rgba(163, 0, 0, 0.05));
}
.cashier-hero-main {
  display: grid;
  align-content: center;
  gap: 12px;
}
.cashier-hero h1,
.cashier-closed h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  color: #241719;
}
.cashier-hero p,
.cashier-closed p {
  max-width: 620px;
  margin: 0;
  color: rgba(36, 23, 25, 0.58);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.cashier-status-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf8ee;
  color: #19723a;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cashier-status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1fb457;
  box-shadow: 0 0 0 4px rgba(31, 180, 87, 0.16);
}
.cashier-hero-side {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border-radius: 14px;
  background: #241719;
  color: #fff7e9;
}
.cashier-hero-side span,
.cashier-metric span,
.cashier-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cashier-hero-side span {
  color: rgba(255, 247, 233, 0.62);
}
.cashier-hero-side strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  color: #fff7e9;
}
.cashier-primary-action {
  width: max-content;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #f4b400;
  color: #241719;
  cursor: pointer;
  font-family: var(--font-display) !important;
  font-size: 13px;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.cashier-primary-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 24px rgba(244, 180, 0, 0.24);
}
.cashier-close-action {
  width: 100%;
  margin-top: 8px;
}
.cashier-secondary-action {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(244, 180, 0, 0.28);
  background: rgba(255, 247, 233, 0.08);
  color: inherit;
  cursor: pointer;
  font-family: var(--font-display) !important;
  font-size: 12px;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition-fast);
}
.cashier-secondary-action:hover {
  background: rgba(244, 180, 0, 0.18);
  transform: translateY(-1px);
}
.cashier-metrics {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.cashier-metric {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 20px;
  border-radius: 14px;
}
.cashier-metric.is-featured {
  background: #fff8e8;
  border-color: rgba(244, 180, 0, 0.28);
}
.cashier-metric span,
.cashier-eyebrow {
  color: rgba(36, 23, 25, 0.48);
}
.cashier-metric strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
  color: #a30000;
}
.cashier-metric small {
  color: rgba(36, 23, 25, 0.5);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.cashier-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: 24px;
  margin-bottom: 24px;
}
.cashier-panel,
.cashier-history,
.cashier-closed {
  border-radius: 16px;
}
.cashier-panel {
  padding: 24px;
}
.cashier-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.cashier-panel-head h2 {
  margin-top: 4px;
  color: #241719;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}
.cashier-payment-list,
.cashier-order-list {
  display: grid;
  gap: 10px;
}
.cashier-payment-row,
.cashier-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #faf7f2;
  border: 1px solid rgba(47, 35, 28, 0.05);
}
.cashier-payment-row span,
.cashier-order-row span {
  color: rgba(36, 23, 25, 0.58);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.cashier-payment-row strong,
.cashier-order-row b,
.cashier-order-row strong {
  color: #241719;
  font-family: var(--font-display);
  font-weight: 400;
}
.cashier-order-row div {
  display: grid;
  gap: 2px;
}
.cashier-empty {
  margin: 0;
  padding: 22px;
  border-radius: 10px;
  background: #faf7f2;
  color: rgba(36, 23, 25, 0.54);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
}
.cashier-history {
  padding: 24px;
  overflow: hidden;
}
.cashier-history-count {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2ece4;
  color: rgba(36, 23, 25, 0.58);
  font-size: 12px;
  font-weight: 400;
  font-family: var(--font-display);
}
.cashier-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cashier-history .cashier-secondary-action {
  color: #241719;
  background: #fff8e8;
}
.cashier-table-wrap {
  overflow: auto;
  border: 1px solid rgba(47, 35, 28, 0.06);
  border-radius: 12px;
}
.cashier-table th {
  background: #faf7f2;
}
.cashier-table td,
.cashier-table th {
  padding: 16px 18px;
}
.cashier-closed {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(36px, 7vw, 72px) 24px;
  margin-bottom: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 242, 0.92)),
    radial-gradient(circle at top, rgba(244, 180, 0, 0.16), transparent 45%);
}
.cashier-closed p {
  margin-bottom: 8px;
}
.cashier-closed-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #eaf8ee;
  color: #159447;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
}
.cashier-table th,
.cashier-table td {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.filters {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.filters .input {
  background: #fff;
  border: 1.5px solid rgba(74, 30, 30, 0.08);
  border-radius: 16px;
  height: 54px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  padding: 20px 24px;
  background: #faf7f2;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 800;
  border-bottom: 1px solid rgba(74, 30, 30, 0.06);
}
td {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(74, 30, 30, 0.04);
  font-size: 14px;
  font-weight: 600;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #fcfaf7;
}
.status {
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  outline: 0;
  appearance: none;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}
.status.Novo {
  background: #e3f2fd;
  color: #1976d2;
}
.status.Em-preparo {
  background: #fff3e0;
  color: #e65100;
}
.status.Saiu-para-entrega {
  background: #f3e5f5;
  color: #7b1fa2;
}
.status.Finalizado {
  background: #e8f5e9;
  color: #2e7d32;
}
.status.Cancelado {
  background: #ffebee;
  color: #c62828;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #faf7f2;
  color: var(--brown-dark);
  font-size: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(74, 30, 30, 0.05);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--gold-primary);
  color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 180, 0, 0.15);
  border-color: transparent;
}
.order-out-btn {
  background: rgba(244, 180, 0, 0.16);
  border-color: rgba(244, 180, 0, 0.28);
}
.order-out-btn:hover {
  background: var(--gold-primary);
}
.customers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.customer-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(74, 30, 30, 0.06);
  box-shadow: var(--shadow-warm);
  transition: var(--transition-fast);
}
.customer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
}
.customer-top {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: center;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.customer-card h3 {
  margin: 0;
  font-size: 22px;
  color: var(--brown-dark);
  font-family: var(--font-display);
}
.customer-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
}
.customer-meta {
  border-top: 1px solid rgba(74, 30, 30, 0.06);
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-family: var(--font-body);
}
.customer-meta span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 4px;
}
.customer-meta b {
  font-size: 16px;
  color: var(--brown-dark);
  font-family: var(--font-display);
}
.details-modal {
  width: min(800px, 95%);
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.details-head {
  padding: 32px 40px;
  border-bottom: 1px solid rgba(74, 30, 30, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #faf7f2;
}
.details-head h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 32px;
  color: var(--brown-dark);
}
.details-content {
  padding: 40px;
  overflow-y: auto;
  background: #fff;
  display: grid;
  gap: 24px;
  font-family: var(--font-body);
}
.detail-box {
  background: #faf7f2;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(74, 30, 30, 0.04);
}
.detail-box h4 {
  margin: 0 0 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 800;
}
.detail-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(74, 30, 30, 0.06);
}
.detail-line:last-child {
  border-bottom: 0;
}
.details-foot {
  padding: 32px 40px;
  background: var(--brown-dark);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.details-foot strong {
  font-family: var(--font-display);
  color: var(--gold-primary);
  font-size: 32px;
}
#printArea {
  display: none;
}

/* Product Manager Styles */
.crm-btn-primary,
.crm-btn-secondary {
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}
.crm-btn-primary {
  background: var(--gold-primary);
  color: var(--brown-dark);
  box-shadow: 0 10px 20px rgba(244, 180, 0, 0.18);
}
.crm-btn-secondary {
  background: #fff;
  color: var(--brown-dark);
  border: 1px solid rgba(74, 30, 30, 0.1);
}
.crm-btn-primary:hover,
.crm-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}
.crm-products-manager {
  display: grid;
  gap: 48px;
}
.product-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.crm-product-form {
  background: #fff;
  padding: 40px;
  border-radius: 18px;
  border: 1px solid rgba(74, 30, 30, 0.06);
  box-shadow: var(--shadow-premium);
  display: grid;
  gap: 28px;
}
.product-editor-form {
  width: 100%;
}
.product-editor-intro h3 {
  font-size: 30px;
  margin: 8px 0;
  color: var(--brown-dark);
}
.product-editor-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.product-editor-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244, 180, 0, 0.12);
  color: #9a6f00;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-editor-preview {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(74, 30, 30, 0.06);
  box-shadow: var(--shadow-warm);
}
.product-preview-card {
  display: grid;
  gap: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #faf7f2;
  border: 1px solid rgba(74, 30, 30, 0.05);
}
.product-preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #fff8ec;
  color: var(--brown-dark);
  border: 1px solid rgba(74, 30, 30, 0.06);
}
.product-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-preview-card h4 {
  margin: 0;
  color: var(--brown-dark);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}
.product-preview-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.product-preview-card strong {
  color: var(--red-deep);
  font-family: var(--font-display);
  font-size: 24px;
}
.product-sync-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: var(--brown-dark);
  color: var(--cream);
}
.product-sync-panel h4 {
  margin: 0;
  color: var(--gold-primary);
  font-size: 20px;
}
.product-sync-panel p {
  margin: 0;
  color: rgba(255, 243, 224, 0.72);
  font-size: 13px;
  line-height: 1.45;
}
.product-sync-panel div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 243, 224, 0.12);
}
.product-sync-panel span {
  color: rgba(255, 243, 224, 0.64);
  font-size: 12px;
  font-weight: 800;
}
.product-sync-panel b {
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-size: 20px;
}
.product-form-message {
  display: none;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff0f0;
  color: #c62828;
  font-size: 13px;
  font-weight: 800;
}
.product-form-message.show {
  display: block;
}
.product-options-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #fffaf0;
  border: 1px solid rgba(244, 180, 0, 0.18);
}
.product-options-box small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}
.category-creator-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(74, 30, 30, 0.08);
  box-shadow: var(--shadow-warm);
}
.category-creator-box p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.category-creator-box small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.category-creator-fields {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.2fr) auto;
  gap: 10px;
}
.category-creator-fields .input {
  min-height: 48px;
  border: 1.5px solid rgba(74, 30, 30, 0.08);
  border-radius: 12px;
  padding: 0 14px;
  background: #faf7f2;
  color: var(--brown-dark);
  font-weight: 700;
}
.category-creator-fields .crm-btn-secondary {
  padding: 0 16px;
  border-radius: 12px;
}
.crm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.crm-field {
  display: grid;
  gap: 8px;
}
.crm-field label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown-medium);
}
.crm-field .input {
  background: #faf7f2;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brown-dark);
  transition: var(--transition-fast);
}
.crm-field .input:focus {
  border-color: var(--gold-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.1);
  outline: none;
}

.crm-image-upload-wrapper {
  display: flex;
  gap: 24px;
  align-items: center;
}
.product-image-preview {
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: rgba(255, 248, 236, 0.75);
  border: 2px dashed rgba(74, 30, 30, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.product-image-preview:hover {
  border-color: var(--gold-primary);
  background: rgba(244, 180, 0, 0.05);
}
.product-image-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.catalog-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.catalog-overview div {
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(74, 30, 30, 0.06);
  box-shadow: var(--shadow-warm);
}
.catalog-overview span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.catalog-overview strong {
  display: block;
  margin-top: 8px;
  color: var(--red-deep);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}
.category-admin-panel {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(74, 30, 30, 0.06);
  box-shadow: var(--shadow-warm);
}
.category-sequence-panel {
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, #fff, #fffaf1);
}
.category-sequence-panel .category-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.category-admin-head h3 {
  margin: 0 0 4px;
  color: var(--brown-dark);
  font-size: 18px;
  font-weight: 900;
}
.category-sequence-panel .category-admin-head h3 {
  margin-top: 8px;
  font-size: 24px;
}
.category-admin-head p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.category-sequence-panel .category-admin-head p {
  max-width: 680px;
  line-height: 1.5;
}
.category-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.category-sequence-list {
  display: grid;
  gap: 10px;
}
.category-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(74, 30, 30, 0.08);
  border-radius: 12px;
  background: #faf7f2;
}
.category-sequence-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  background: #fff;
}
.category-order-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(244, 180, 0, 0.16);
  color: var(--brown-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
}
.category-admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.category-admin-item b,
.category-admin-item span {
  display: block;
}
.category-admin-item b {
  color: var(--brown-dark);
  font-size: 13px;
  font-weight: 900;
}
.category-admin-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.category-delete-btn {
  border: 1px solid rgba(166, 0, 0, 0.18);
  background: rgba(166, 0, 0, 0.06);
  color: var(--red-deep);
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
}
.category-delete-btn:hover {
  background: var(--red-deep);
  color: #fff;
}
.category-move-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(74, 30, 30, 0.12);
  background: #fff;
  color: var(--brown-dark);
  font-weight: 900;
  cursor: pointer;
  padding: 0 12px;
}
.category-move-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.product-order-panel {
  margin-top: 16px;
}
.product-order-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.product-order-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #faf7f2;
  border: 1px solid rgba(74, 30, 30, 0.08);
}
.product-order-row b,
.product-order-row span {
  display: block;
}
.product-order-row b {
  color: var(--brown-dark);
  font-size: 12px;
  font-weight: 900;
}
.product-order-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.delivery-settings-card {
  background: #fff;
  border: 1px solid rgba(74, 30, 30, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow-warm);
  padding: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}
.delivery-settings-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(244, 180, 0, 0.14);
  font-size: 34px;
}
.delivery-settings-card h2 {
  margin: 8px 0;
  color: var(--brown-dark);
  font-size: 34px;
}
.delivery-settings-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.delivery-toggle input {
  position: absolute;
  opacity: 0;
}
.delivery-toggle span {
  width: 72px;
  height: 40px;
  border-radius: 999px;
  background: #e9e0d6;
  display: block;
  position: relative;
  cursor: pointer;
  transition: 0.2s ease;
}
.delivery-toggle span::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  top: 4px;
  left: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: 0.2s ease;
}
.delivery-toggle input:checked + span {
  background: var(--gold-primary);
}
.delivery-toggle input:checked + span::after {
  transform: translateX(32px);
}
.stock-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stock-overview div,
.stock-panel {
  background: #fff;
  border: 1px solid rgba(74, 30, 30, 0.06);
  border-radius: 20px;
  box-shadow: var(--shadow-warm);
}
.stock-overview div {
  padding: 24px;
}
.stock-overview span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stock-overview strong {
  display: block;
  margin-top: 8px;
  color: var(--red-deep);
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
}
.stock-panel {
  padding: 24px;
  margin-bottom: 20px;
}
.stock-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.stock-panel-head h2 {
  margin: 8px 0 0;
  color: var(--brown-dark);
  font-size: 28px;
}
.stock-panel-note {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}
.stock-category-section {
  border: 1px solid rgba(74, 30, 30, 0.08);
  border-radius: 20px;
  background: #fffdf9;
  padding: 18px;
  margin-top: 18px;
}
.stock-category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.stock-category-head h2 {
  margin: 6px 0 0;
  color: var(--brown-dark);
  font-size: 26px;
}
.stock-category-head b {
  color: var(--red-deep);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stock-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.stock-product-block {
  border: 1px solid rgba(74, 30, 30, 0.08);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.stock-product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.stock-product-head h3 {
  margin: 0;
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 900;
}
.stock-product-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 760px;
}
.stock-product-total {
  min-width: 0;
  border-radius: 14px;
  background: rgba(244, 180, 0, 0.12);
  color: var(--brown-dark);
  text-align: center;
  padding: 8px 10px;
}
.stock-product-total span {
  display: block;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stock-product-total b {
  display: block;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  margin-top: 4px;
}
.stock-variant-list {
  display: grid;
  gap: 6px;
}
.stock-alert {
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(166, 0, 0, 0.07);
  color: var(--red-deep);
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 900;
}
.stock-table {
  display: grid;
  gap: 10px;
}
.stock-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 86px 280px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbf8f4;
  border: 1px solid rgba(74, 30, 30, 0.08);
}
.stock-row.compact {
  grid-template-columns: minmax(220px, 1fr) 76px 260px;
  padding: 8px 10px;
  border-radius: 11px;
}
.stock-row.low {
  background: rgba(166, 0, 0, 0.06);
  border-color: rgba(166, 0, 0, 0.18);
}
.stock-row b {
  display: block;
}
.stock-row b {
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}
.stock-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.stock-item-meta span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
}
.stock-qty {
  color: var(--red-deep);
  font-family: var(--font-body);
  font-size: 18px;
  text-align: right;
  font-weight: 900;
  white-space: nowrap;
}
.stock-qty small {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
.stock-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.stock-actions button {
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(74, 30, 30, 0.1);
  background: #fff;
  color: var(--brown-dark);
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.stock-actions button.danger {
  color: var(--red-deep);
  background: rgba(166, 0, 0, 0.06);
  border-color: rgba(166, 0, 0, 0.16);
}
.stock-empty {
  margin: 0;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}
.stock-empty.inline {
  padding: 18px;
  border-radius: 14px;
  background: #fbf8f4;
  border: 1px dashed rgba(74, 30, 30, 0.14);
  font-size: 13px;
}
.stock-modal {
  width: min(620px, calc(100vw - 28px));
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.24);
}
@media screen and (max-width: 980px) {
  .stock-row,
  .stock-row.compact {
    grid-template-columns: 1fr;
  }
  .stock-product-head {
    grid-template-columns: 1fr;
  }
  .stock-product-total {
    width: 92px;
  }
  .stock-qty {
    text-align: left;
  }
  .stock-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px 190px;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(74, 30, 30, 0.06);
  box-shadow: var(--shadow-warm);
}
.catalog-toolbar .input {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid rgba(74, 30, 30, 0.08);
  border-radius: 12px;
  background: #faf7f2;
  padding: 0 16px;
  color: var(--brown-dark);
  font-weight: 700;
  outline: none;
}
.catalog-toolbar .input:focus {
  border-color: var(--gold-primary);
  background: #fff;
}

.crm-products-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.crm-item-card {
  background: #fff;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(74, 30, 30, 0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-warm);
  position: relative;
}
.crm-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-premium);
}
.crm-item-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.crm-item-img {
  width: 90px;
  height: 90px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 248, 236, 0.75);
  border: 1px solid rgba(74, 30, 30, 0.04);
}
.crm-item-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.crm-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crm-item-info h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  color: var(--brown-dark);
  line-height: 1.2;
}
.crm-item-info p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.crm-item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  align-items: center;
}
.crm-badge {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.crm-badge.cat-badge {
  background: #faf7f2;
  color: var(--muted);
  border-color: rgba(74, 30, 30, 0.05);
}
.crm-badge.fixed {
  background: rgba(74, 30, 30, 0.05);
  color: var(--brown-dark);
}
.crm-badge.custom {
  background: rgba(244, 180, 0, 0.1);
  color: #b38600;
  border-color: rgba(244, 180, 0, 0.2);
}
.crm-badge.options {
  background: #eef7ff;
  color: #1565c0;
  border-color: rgba(21, 101, 192, 0.14);
}
.crm-badge.flavors {
  background: #f1f8e9;
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.14);
}
.crm-item-price {
  font-family: var(--font-display);
  color: var(--red-deep);
  font-size: 20px;
  display: block;
  width: 100%;
  margin-top: 4px;
}

.crm-item-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(74, 30, 30, 0.06);
}
.crm-btn-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  font-weight: 400;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.crm-btn-edit {
  background: #faf7f2;
  color: var(--brown-dark);
  border-color: rgba(74, 30, 30, 0.05);
}
.crm-btn-edit:hover {
  background: rgba(244, 180, 0, 0.1);
  border-color: rgba(244, 180, 0, 0.2);
  transform: translateY(-2px);
}
.crm-btn-delete {
  background: #fff0f0;
  color: #d32f2f;
}
.crm-btn-delete:hover {
  background: #ffe0e0;
  transform: translateY(-2px);
}

.crm-btn-mini {
  background: var(--white);
  border: 1px solid rgba(74, 30, 30, 0.1);
  color: var(--brown-dark);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  flex-shrink: 0;
}

.crm-btn-mini:hover {
  background: var(--cream);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.crm-btn-mini.danger:hover {
  background: #fff5f5;
  border-color: #ff4d4d;
  color: #ff4d4d;
}

.variant-photo-row {
  transition: all 0.2s ease;
}

.variant-photo-row:hover {
  background: rgba(43, 15, 15, 0.05) !important;
  border-color: rgba(74, 30, 30, 0.15) !important;
}

.crm-form-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.crm-btn-submit {
  background: linear-gradient(135deg, var(--gold-primary), #e6a800);
  color: var(--brown-dark);
  padding: 22px 56px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 15px 35px rgba(230, 168, 0, 0.3);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  overflow: hidden;
}
.crm-btn-submit:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 45px rgba(230, 168, 0, 0.4);
  filter: brightness(1.15);
}
.crm-btn-submit:active {
  transform: translateY(-2px) scale(0.97);
  box-shadow: 0 10px 20px rgba(230, 168, 0, 0.2);
}
.crm-btn-submit::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: 0.6s;
  pointer-events: none;
}
.crm-btn-submit:hover::after {
  opacity: 1;
  transform: scale(1.2);
}
.crm-btn-cancel {
  background: transparent;
  color: var(--brown-dark);
  padding: 18px 36px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 15px;
  border: 2px solid rgba(74, 30, 30, 0.1);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.crm-btn-cancel:hover {
  background: rgba(74, 30, 30, 0.05);
  border-color: rgba(74, 30, 30, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .crm-form-grid {
    grid-template-columns: 1fr;
  }
  .product-options-box {
    grid-template-columns: 1fr;
  }
  .category-creator-fields {
    grid-template-columns: 1fr;
  }
  .product-editor-shell,
  .catalog-overview,
  .catalog-toolbar {
    grid-template-columns: 1fr;
  }
  .product-editor-preview {
    position: static;
  }
  .crm-products-list {
    grid-template-columns: 1fr;
  }
  .crm-image-upload-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .product-image-preview {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  .crm-form-actions {
    flex-direction: column;
  }
  .crm-btn-submit,
  .crm-btn-cancel {
    width: 100%;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--brown-medium);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1280px) {
  .menu-layout {
    grid-template-columns: 240px 1fr 320px;
    gap: 24px;
  }
}

@media (max-width: 1180px) {
  .menu-layout {
    grid-template-columns: 1fr 330px;
  }
  .desktop-cats {
    display: none;
  }
  .mobile-tabs {
    display: flex;
  }
  .menu-main {
    min-width: 0;
  }
}

@media (max-width: 960px) {
  .menu-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cart-column {
    display: none;
  }
  .floating-cart {
    display: flex;
    z-index: 150;
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .hero {
    padding: 60px 0;
    min-height: 60vh;
    background-attachment: scroll;
  }
  .logo {
    width: min(336px, 95vw);
    max-width: 336px;
    margin-bottom: 20px;
  }
  .hero-kicker {
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: clamp(20.8px, 6.8vw, 27.2px);
    line-height: 1.2;
  }
  .hero p {
    font-size: 12px;
    margin-bottom: 28px;
    padding: 0 10px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    padding: 0 32px;
  }
  .btn {
    width: 100%;
  }
  .section-heading h2 {
    font-size: clamp(28px, 8vw, 42px);
  }
  .category-title h3 {
    font-size: 24px;
  }
  .category-title div {
    display: none; /* Prevenir scroll horizontal */
  }
  .product-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .product-main {
    gap: 12px;
  }
  .product-image {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }
  .product-info h4 {
    white-space: normal;
    font-size: 16px;
  }
  .plus-box {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    cursor: pointer;
  }
  .modal {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    width: 94%;
    max-height: 85vh;
    border-radius: 16px;
  }
  .modal-media {
    display: none;
  }
  .modal-scroll {
    padding: 20px;
  }
  .modal h3,
  .modal-product-title {
    font-size: 28px;
  }
  .summary-line {
    font-size: 14px;
    align-items: flex-start;
  }
  .summary-line span {
    flex: 1;
    line-height: 1.3;
  }
  .summary-line b {
    white-space: nowrap;
    font-size: 15px;
  }
  .checkout-total {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .checkout-total-value {
    font-size: clamp(2rem, 12vw, 3rem);
  }
  .checkout-submit {
    border-radius: 18px;
    font-size: 1rem;
    min-height: 58px;
  }
  .checkout-foot {
    padding: 24px;
    gap: 20px;
  }
  .checkout-modal {
    width: 94%;
    height: auto;
    max-height: 85vh;
    border-radius: 16px;
  }
  .order-success-modal {
    width: min(94vw, 540px);
    max-height: 86vh;
    border-radius: 22px;
  }
  .order-success-content {
    padding: 26px 18px 18px;
    gap: 10px;
  }
  .order-success-mark {
    width: 46px;
    height: 46px;
    font-size: 28px;
  }
  .order-success-kicker {
    font-size: 9px;
    letter-spacing: 0.16em;
    margin-top: 0;
  }
  .order-success-content h2 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1;
    white-space: nowrap;
  }
  .order-success-message {
    font-size: 13px;
    line-height: 1.35;
  }
  .order-success-card {
    padding: 10px 12px;
    border-radius: 12px;
  }
  .order-success-card span {
    font-size: 9px;
  }
  .order-success-card strong {
    font-size: 19px;
  }
  .order-success-note {
    font-size: 12px;
    line-height: 1.35;
    margin: 0;
  }
  .order-success-whatsapp,
  .order-success-action {
    min-height: 46px;
    border-radius: 13px;
    font-size: 11px;
  }
  .checkout-brand {
    padding: 40px 24px;
  }
  .checkout-content {
    height: auto;
  }
  .grid2,
  .choice-grid,
  .option-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-section {
    margin-bottom: 12px;
  }
  .crm-shell {
    display: block;
  }
  .crm-sidebar {
    min-height: 100dvh;
    height: auto;
    position: sticky;
    top: 0;
    padding: 16px;
  }
  .crm-nav {
    display: grid;
    overflow: visible;
    padding: 8px 0;
    gap: 8px;
  }
  .crm-nav a {
    white-space: normal;
    padding: 12px 16px;
    min-height: 48px;
    align-self: auto;
  }
  .crm-main {
    padding: 20px 12px;
  }
  .crm-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cashier-hero,
  .cashier-grid,
  .cashier-metrics {
    grid-template-columns: 1fr;
  }
  .cashier-hero {
    padding: 22px;
  }
  .cashier-hero-side,
  .cashier-panel,
  .cashier-history {
    padding: 18px;
  }
  .cashier-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .cashier-payment-row,
  .cashier-order-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .cashier-primary-action {
    width: 100%;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat {
    padding: 20px;
  }
  .filters {
    flex-direction: column;
  }
  .customers-grid {
    grid-template-columns: 1fr;
  }
  table {
    min-width: 600px;
  }
  .crm-card {
    border-radius: 16px;
  }
  @media (max-width: 480px) {
    .checkout-scroll,
    .checkout-head,
    .checkout-foot {
      padding: 16px;
    }
  }
}

@media print {
  body > *:not(#printArea) {
    display: none !important;
  }
  html,
  body {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: visible !important;
  }
  #printArea {
    display: block !important;
    position: static !important;
    width: 72mm;
    max-width: 72mm;
    padding: 4mm;
    background: white;
    color: black;
    font-family: monospace;
    font-size: 13.5px;
    line-height: 1.25;
    break-after: avoid;
    page-break-after: avoid;
  }
  #printArea.order-print-mode {
    page: order-receipt;
  }
  #printArea.cashier-print-mode {
    page: cashier-report;
  }

  /* Layout Profissional A4 para Relatórios */
  #printArea.cashier-print-mode {
    width: 100% !important;
    max-width: none !important;
    padding: 12mm !important;
    box-sizing: border-box !important;
    font-family: "Inter", sans-serif !important;
    font-size: 11px !important;
  }

  #printArea.cashier-print-mode h1 {
    font-size: 32px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }

  .report-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
  }
  .report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .report-box {
    border: 1px solid #000;
    padding: 15px;
  }
  .report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  .report-table th,
  .report-table td {
    padding: 10px;
    border: 1px solid #000;
    text-align: left;
  }

  #printArea h1 {
    text-align: center;
    font-size: 20px;
    margin: 0 0 5px;
  }
  .print-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed #000;
    padding-top: 5px;
    margin-top: 5px;
  }
  .print-section {
    margin: 7px 0;
  }
  .print-section b {
    display: block;
    border-bottom: 1px solid #000;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 4px;
  }
  .print-section p {
    margin: 3px 0;
  }
  #printArea .total {
    border-top: 1px solid #000;
    padding-top: 9px;
    font-weight: 900;
    font-size: 22px;
  }
  @page {
    margin: 0;
    size: 80mm 160mm;
  }
  @page order-receipt {
    margin: 0;
    size: 80mm 160mm;
  }
  @page cashier-report {
    margin: 8mm;
    size: A4;
  }
}

/* Modal and Typography Refinements */
.modal-header {
  padding: 24px 34px 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.modal-header
  :is(h1, h2, h3, .modal-title, .product-title, .modal-product-name) {
  display: none !important;
}
.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(43, 15, 15, 0.06);
  font-size: 24px;
  color: rgba(43, 15, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
  border: none;
  cursor: pointer;
  z-index: 20;
}
.modal-close:hover {
  background: rgba(43, 15, 15, 0.12);
  color: var(--red-deep);
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: modalImageFadeIn 0.5s ease;
}
@keyframes modalImageFadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.modal-close-image {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.25);
  color: white;
}
.western-title,
.modal-product-title,
.category-title,
.section-title,
.site-title,
.page-title,
.product-name,
.product-title,
.menu-item-title,
.card-title,
.item-title {
  font-family: var(--font-display);
  color: var(--brown-dark);
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-weight: 400;
}
.modal-product-title {
  font-size: 48px;
  line-height: 1;
  margin: 0 0 14px;
}

@media (max-width: 860px) {
  .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(74, 30, 30, 0.09);
  }
  .modal-product-title {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .checkout-brand {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
  }
}

/* Fixes for Modal Headers and Buttons */
.modal-header {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
}
.modal-close:not(.modal-close-image), .xbtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(43,15,15,0.06);
  color: rgba(43,15,15,0.5);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close:not(.modal-close-image):hover, .xbtn:hover {
  background: rgba(43,15,15,0.12);
  color: var(--red-deep);
}
.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

@media (max-width: 768px) {
  .modal {
    grid-template-rows: minmax(0, 1fr);
  }
}

/* Flavor Selector Layout */
.flavors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flavor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(43,15,15,0.03);
  border-radius: 12px;
  border: 1px solid rgba(74,30,30,0.05);
}
.flavor-item span {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--brown-dark);
  font-size: 14px;
}
.fqty {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.fqty button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }

}

/* Balcao CRM */
.crm-registrar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  height: calc(100vh - 120px);
  margin-top: 24px;
}
.crm-catalog-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.crm-order-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.catalog-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-content: start;
}
.counter-search-panel {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(74, 30, 30, 0.06);
  box-shadow: var(--shadow-warm);
}
.counter-search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--brown-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.counter-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}
.counter-search-row .input {
  min-height: 58px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 22px;
}
.counter-toolbar {
  grid-template-columns: 240px 1fr;
  align-items: center;
  box-shadow: none;
  border-radius: 22px;
}
.counter-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}
.counter-product-row {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 58px minmax(0, 1fr) max-content 42px;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(74, 30, 30, 0.07);
  border-radius: 24px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 24px rgba(43, 15, 15, 0.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.counter-product-row:hover {
  transform: translateY(-1px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-warm);
}
.counter-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 18px;
  background: #2b0f0f;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.counter-product-row .crm-mini-img,
.counter-product-row .crm-mini-img img,
.counter-product-row .crm-mini-img .font-western {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  background: #f4efe6;
}
.counter-product-info h4 {
  margin: 0 0 4px;
  color: var(--brown-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}
.counter-product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.counter-product-row strong {
  color: var(--red-deep);
  font-family: var(--font-display);
  font-size: 20px;
  white-space: nowrap;
}
.counter-add-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 18px;
  background: var(--gold-primary);
  color: var(--brown-dark);
  font-size: 26px;
  font-weight: 900;
}
.crm-mini-product-card {
  background: white;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}
.crm-mini-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
  border-color: var(--gold-primary);
}
.crm-mini-product-card img, .crm-mini-product-card .font-western {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(43, 15, 15, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(43, 15, 15, 0.1);
}
.crm-mini-product-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: var(--brown-dark);
  line-height: 1.2;
}
.crm-mini-product-card .price {
  font-size: 20px;
  color: var(--red-deep);
}

.crm-order-card {
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow-warm);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}
.crm-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: rgba(43,15,15,0.02);
}
.crm-order-head span,
.crm-order-head strong {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.crm-order-head h3 {
  font-size: 18px;
  color: var(--brown-dark);
  margin: 3px 0 0;
}
.crm-order-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.crm-order-foot {
  padding: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(43,15,15,0.02);
}

.counter-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.counter-item:last-child { border-bottom: none; }
.counter-item-info {
  flex: 1;
  min-width: 0;
  padding-right: 14px;
}
.counter-item-info b {
  display: block;
  margin-bottom: 8px;
  color: var(--brown-dark);
  font-size: 18px;
  line-height: 1.22;
}
.counter-item-composition {
  display: grid;
  gap: 2px;
  padding-left: 2px;
}
.counter-item-composition span {
  display: block;
  color: rgba(43, 15, 15, 0.42);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}
.counter-line-code {
  display: inline-flex !important;
  margin-right: 8px;
  padding: 2px 6px;
  border-radius: 12px;
  background: #2b0f0f;
  color: #fff !important;
  font-size: 10px !important;
}
.counter-empty {
  padding: 32px 18px;
  border: 1px dashed rgba(74,30,30,.18);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.counter-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.counter-item-actions button {
  width: 24px;
  height: 24px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.1);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.counter-item-actions button:hover { background: var(--gold-primary); border-color: var(--gold-primary); }

.crm-order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.counter-print-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brown-dark);
  font-size: 13px;
  font-weight: 900;
}
.counter-print-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-primary);
}
.counter-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.counter-actions {
  display: block;
}
.counter-search-row button,
.counter-actions button,
#counterQuickAdd,
#printCounterDraftBtn,
#submitCounterBtn {
  min-height: 58px;
  border-radius: 24px !important;
}

.counter-closed-state {
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,250,241,.98)),
    radial-gradient(circle at 50% 0%, rgba(244,180,0,.18), transparent 38%);
  border: 1px solid rgba(74,30,30,.06);
  box-shadow: var(--shadow-warm);
}
.counter-closed-visual {
  width: 116px;
  height: 116px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244,180,0,.14);
  border: 1px solid rgba(244,180,0,.24);
  margin-bottom: 26px;
}
.counter-closed-visual span {
  font-size: 58px;
}
.counter-closed-state h2 {
  color: var(--brown-dark);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  margin: 0 0 14px;
}
.counter-closed-state p {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}
.counter-closed-state .cashier-primary-action {
  width: min(100%, 280px);
  border-radius: 24px;
}

@media (max-width: 1024px) {
  .crm-registrar-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .catalog-scroll {
    max-height: 400px;
  }
}

@media screen {
  .crm-body {
    background: var(--brown-dark);
  }
  .crm-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    min-height: 100vh;
    background: #fdf8ef;
  }
  .crm-sidebar {
    width: 280px;
    min-width: 280px;
    min-height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    align-self: start;
    overflow-y: auto;
  }
  .crm-main {
    min-width: 0;
    min-height: 100vh;
    background: #fdf8ef;
  }
}

@media screen and (max-width: 768px) {
  .crm-shell {
    display: grid;
    grid-template-columns: 280px minmax(420px, 1fr);
    overflow-x: auto;
  }
  .crm-sidebar {
    position: sticky;
    left: 0;
    z-index: 30;
  }
}

/* Modern Print Design System */
@media print {
  body { background: white !important; color: black !important; padding: 0 !important; margin: 0 !important; }
  .crm-shell, .modal-root, #modalRoot, .floating-cart, .toast, .mobile-tabs, .hero, .menu-section, footer, .crm-header, .filters, .crm-nav, .crm-sidebar { display: none !important; }
  #printArea { display: block !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }

  /* Thermal Receipt Style (Comprovante) */
  #printArea.order-print-mode {
    page: order-receipt;
    width: 72mm !important;
    max-width: 72mm !important;
    margin: 0 !important;
    padding: 4mm 3mm !important;
    box-sizing: border-box;
    font-family: var(--font-receipt);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.32;
    color: black;
    overflow: visible !important;
    word-break: normal;
  }
  #printArea.order-print-mode * {
    box-sizing: border-box;
    font-family: var(--font-receipt) !important;
    max-width: 100%;
  }
  .receipt-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .receipt-header h1 {
    font-family: var(--font-receipt);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
    margin: 0 0 6px;
    text-transform: uppercase;
  }
  .receipt-header p {
    font-size: 10px;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0;
  }
  
  .receipt-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
  }
  .receipt-meta div {
    border: 1px solid #000;
    padding: 6px;
    min-width: 0;
  }
  .receipt-meta span {
    display: block;
    font-size: 9px;
    line-height: 1;
    margin-bottom: 5px;
    text-transform: uppercase;
  }
  .receipt-meta strong {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.1;
    white-space: nowrap;
  }
  .receipt-id { background: #000; color: #fff; padding: 2px 8px; border-radius: 4px; }
  
  .receipt-section { border-bottom: 1px solid #d8d8d8; padding: 11px 0; }
  .receipt-section:last-child { border-bottom: none; }
  .receipt-section-title {
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 400;
    color: #000;
    margin-bottom: 7px;
    display: block;
  }
  .receipt-section b {
    font-size: 16px;
    font-weight: 400;
    display: block;
    margin-bottom: 3px;
    overflow-wrap: anywhere;
  }
  .receipt-section p {
    font-size: 12px;
    margin: 0;
    white-space: pre-line;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .receipt-item { display: block; padding: 9px 0; border-bottom: 1px dashed #999; }
  .receipt-item:last-child { border-bottom: none; }
  .receipt-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    align-items: start;
  }
  .receipt-item-name {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.18;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .receipt-item-name span {
    white-space: nowrap;
  }
  .receipt-item-name small {
    display: inline-block;
    font-size: 10px;
    padding-right: 4px;
  }
  .receipt-item-price {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.18;
    text-align: right;
    white-space: nowrap;
  }
  .receipt-item-flavors {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    padding-left: 9px;
    border-left: 2px solid #000;
    margin-top: 7px;
    color: #000;
    overflow-wrap: anywhere;
  }

  .receipt-total-box {
    margin-top: 13px;
    padding: 11px 8px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    text-align: center;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .receipt-total-label {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
  }
  .receipt-total-value {
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    display: block;
    color: #fff;
    margin-top: 7px;
    white-space: nowrap;
  }
  
  .receipt-footer {
    text-align: center;
    margin-top: 16px;
    border-top: 2px dashed #000;
    padding-top: 14px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  #printArea.counter-receipt-mode {
    font-size: 12px;
    line-height: 1.18;
    padding: 3mm 3mm !important;
  }
  .counter-receipt-mode .receipt-store,
  .counter-receipt-mode .receipt-centered,
  .counter-receipt-mode .receipt-charge,
  .counter-receipt-mode .receipt-footer {
    text-align: center;
  }
  .counter-receipt-mode .receipt-store div {
    font-size: 13px;
  }
  .counter-receipt-mode .receipt-store strong {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    font-weight: 400;
  }
  .counter-receipt-mode .receipt-divider {
    border-top: 1px dashed #000;
    margin: 11px 0;
  }
  .counter-receipt-mode .receipt-centered b,
  .counter-receipt-mode .receipt-centered span {
    display: block;
    font-weight: 400;
  }
  .counter-receipt-mode .receipt-lines div,
  .counter-receipt-mode .receipt-summary-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    margin: 3px 0;
  }
  .counter-receipt-mode .receipt-lines span,
  .counter-receipt-mode .receipt-summary-line span {
    overflow-wrap: anywhere;
  }
  .counter-receipt-mode .receipt-lines b,
  .counter-receipt-mode .receipt-summary-line b {
    font-weight: 400;
    text-align: right;
  }
  .counter-receipt-mode .receipt-counter-item {
    padding: 5px 0;
  }
  .counter-receipt-mode .receipt-counter-item b {
    display: block;
    font-weight: 400;
    overflow-wrap: anywhere;
  }
  .counter-receipt-mode .receipt-counter-composition {
    display: grid;
    gap: 1px;
    margin-top: 2px;
    padding-left: 18px;
  }
  .counter-receipt-mode .receipt-counter-composition span {
    display: block;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 400;
    overflow-wrap: anywhere;
  }
  .counter-receipt-mode .receipt-observation {
    margin: 8px 0 4px;
    padding-top: 5px;
  }
  .counter-receipt-mode .receipt-observation b,
  .counter-receipt-mode .receipt-observation span {
    display: block;
    font-weight: 400;
    overflow-wrap: anywhere;
  }
  .counter-receipt-mode .receipt-observation span {
    padding-left: 18px;
    font-size: 11px;
    line-height: 1.18;
  }
  .counter-receipt-mode .receipt-charge span,
  .counter-receipt-mode .receipt-charge b {
    display: block;
    font-weight: 400;
  }
  .counter-receipt-mode .receipt-final-line {
    border-top: 1px dashed #000;
    margin-top: 10px;
    padding-top: 8px;
  }

  /* Admin Report Style (Caixa) */
  .cashier-print-mode {
    page: cashier-report;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
  }
  .report-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--brown-dark); padding-bottom: 12px; margin-bottom: 16px; }
  .report-header h1 { font-family: 'Rye', serif; font-size: 26px; color: var(--brown-dark); }
  .report-header .report-title-box { text-align: right; }
  .report-header h2 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
  
  .report-metrics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
  .report-metric-card { padding: 10px; border: 1px solid #ddd; border-radius: 8px; background: #fcfcfc; }
  .report-metric-card b { font-size: 11px; text-transform: uppercase; color: #777; display: block; margin-bottom: 8px; }
  .report-metric-card strong { font-size: 14px; color: #000; }
  
  .report-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; }
  .report-section-head { font-size: 12px; font-weight: 900; padding-bottom: 8px; border-bottom: 2px solid #eee; margin-bottom: 10px; text-transform: uppercase; }
  
  .report-table { width: 100%; border-collapse: collapse; }
  .report-table th { text-align: left; font-size: 9px; text-transform: uppercase; color: #777; padding: 6px 4px; border-bottom: 1px solid #ddd; }
  .report-table td { padding: 6px 4px; border-bottom: 1px solid #eee; font-size: 10px; font-weight: 600; }
  .report-table tr:last-child td { border-bottom: none; }
  
  .report-payment-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #eee; font-weight: 700; }
  
  .report-total-footer { margin-top: 18px; padding: 14px; background: var(--brown-dark); color: #fff; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; }
  .report-total-footer span { font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
  .report-total-footer strong { font-size: 26px; font-family: 'Rye', serif; }
}
