:root {
  --ink: #26201d;
  --muted: #746c67;
  --line: #eadfd9;
  --surface: #ffffff;
  --surface-soft: #fff7f2;
  --cream: #fffaf6;
  --rose: #e9639d;
  --rose-dark: #c73f7a;
  --tiffany: #0abab5;
  --mint: #0abab5;
  --mint-soft: #e7fbfa;
  --cocoa: #6b4638;
  --success: #12824c;
  --warning: #946200;
  --shadow-sm: 0 8px 22px rgba(64, 39, 31, .08);
  --shadow-md: 0 18px 48px rgba(64, 39, 31, .13);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #fffaf6;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  flex: 0 0 auto;
  stroke-width: 2.1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - var(--container)) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(234, 223, 217, .8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: white;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 14px 26px rgba(10, 186, 181, .24);
  overflow: hidden;
}

.brand-logo svg {
  width: 27px;
  height: 27px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-info {
  display: grid;
  gap: 2px;
}

.brand-info strong {
  color: var(--cocoa);
  font-size: 22px;
  line-height: 1;
}

.brand-info span,
.drawer-logo span {
  color: var(--rose-dark);
  font-size: 12px;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.menu a,
.menu button {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cocoa);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 750;
  transition: background .2s ease, color .2s ease;
}

.menu a svg,
.menu button svg {
  width: 18px;
  height: 18px;
}

.menu a:hover,
.menu a.active,
.menu button:hover,
.menu button.active {
  color: var(--rose-dark);
  background: rgba(233, 99, 157, .09);
}

.admin-topbar {
  grid-template-columns: auto 1fr auto;
}

.admin-menu {
  justify-content: center;
}

.admin-lock {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--success);
  background: rgba(18, 130, 76, .08);
  border: 1px solid rgba(18, 130, 76, .18);
  border-radius: var(--radius);
  font-weight: 850;
}

.admin-lock svg {
  width: 18px;
  height: 18px;
}

.icon-button,
.cart-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  color: var(--cocoa);
}

.cart-button {
  position: relative;
  z-index: 45;
  justify-self: end;
  gap: 8px;
  padding: 0 14px;
  color: white;
  background: var(--rose);
  box-shadow: 0 12px 26px rgba(233, 99, 157, .27);
  font-weight: 850;
}

.cart-button.active,
.cart-button:hover {
  background: var(--rose-dark);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  opacity: 0;
  background: rgba(27, 21, 18, .55);
  transition: opacity .2s ease, visibility .2s ease;
}

.mobile-overlay.active {
  visibility: visible;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: min(86vw, 390px);
  padding: 28px 18px;
  overflow-y: auto;
  transform: translateX(-105%);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform .24s ease;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-logo {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 0 26px;
  text-align: center;
}

.drawer-logo .brand-logo {
  width: 74px;
  height: 74px;
}

.drawer-logo h2 {
  color: var(--cocoa);
}

.mobile-drawer a,
.mobile-drawer button {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cocoa);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 760;
  text-align: left;
}

.mobile-drawer a:hover,
.mobile-drawer button:hover {
  background: var(--surface-soft);
}

.drawer-footer {
  margin-top: 24px;
  padding: 16px;
  display: grid;
  gap: 4px;
  color: var(--cocoa);
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.page-shell {
  width: min(var(--container), calc(100% - 48px));
  min-height: 68vh;
  margin: 0 auto;
  padding: 38px 0 64px;
}

.hero {
  min-height: clamp(430px, 58vh, 620px);
  display: flex;
  align-items: center;
  padding: clamp(32px, 7vw, 76px);
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 46, 45, .76) 0%, rgba(8, 46, 45, .46) 52%, rgba(8, 46, 45, .12) 100%),
    url("../assets/banner-principal.jpg");
  background-blend-mode: multiply;
  background-position: center;
  background-size: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.hero-content {
  max-width: 620px;
}

.badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--rose-dark);
  background: #fff;
  border: 1px solid rgba(233, 99, 157, .16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.hero h1,
.page-title h1,
.checkout-box h1 {
  margin-top: 14px;
  color: inherit;
  font-size: clamp(38px, 7vw, 72px);
  line-height: .96;
  letter-spacing: 0;
}

.hero p,
.page-title p,
.section-head p,
.product-info p,
.summary-box p,
.empty-state p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  max-width: 560px;
  margin: 20px 0 28px;
  color: rgba(255, 255, 255, .92);
  font-size: 18px;
}

.actions,
.card-actions,
.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.details-btn,
.add-btn {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary-btn {
  color: white;
  background: var(--rose);
  box-shadow: 0 12px 26px rgba(233, 99, 157, .24);
}

.primary-btn:hover,
.add-btn:hover {
  transform: translateY(-1px);
  background: var(--rose-dark);
}

.secondary-btn,
.details-btn {
  color: var(--cocoa);
  background: white;
  border: 1px solid var(--line);
}

.secondary-btn:hover,
.details-btn:hover {
  background: var(--surface-soft);
}

.full {
  width: 100%;
}

.section-block {
  margin-top: 46px;
}

.section-head,
.page-title {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head.clean {
  margin-bottom: 20px;
}

.section-head h2,
.empty-state h1 {
  color: var(--cocoa);
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: 0;
}

.page-title {
  display: block;
  max-width: 760px;
}

.page-title.compact h1,
.checkout-box h1 {
  color: var(--cocoa);
  font-size: clamp(34px, 5vw, 54px);
}

.text-link {
  color: var(--rose-dark);
  font-weight: 850;
}

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

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.category-card,
.product-card,
.order-card,
.summary-box,
.checkout-box,
.empty-state {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(234, 223, 217, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.category-card {
  min-height: 150px;
  padding: 20px;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--cocoa);
  transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--rose-dark);
  background: var(--mint-soft);
  border-radius: var(--radius);
}

.product-card {
  overflow: hidden;
}

.product-media {
  width: 100%;
  display: block;
  background: transparent;
}

.product-img,
.cart-thumb {
  display: grid;
  place-items: center;
  color: var(--cocoa);
  background: var(--mint-soft);
}

.product-img {
  height: 210px;
}

.product-img svg {
  width: 58px;
  height: 58px;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.product-info {
  padding: 18px;
}

.product-meta {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 850;
}

.product-info h3 {
  color: var(--cocoa);
  font-size: 20px;
  margin-bottom: 8px;
}

.product-info p {
  min-height: 68px;
  font-size: 14px;
}

.card-actions {
  margin-top: 16px;
}

.details-btn,
.add-btn {
  flex: 1;
  min-width: 120px;
}

.add-btn {
  color: white;
  background: var(--rose);
}

.catalog-tools {
  position: sticky;
  top: 90px;
  z-index: 25;
  margin-bottom: 24px;
  padding: 12px;
  display: grid;
  gap: 14px;
  background: rgba(255, 250, 246, .96);
  border: 1px solid rgba(234, 223, 217, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.search-field {
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.search-field input {
  border: 0;
  padding: 0;
  font-weight: 650;
}

.catalog-grid-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.catalog-grid-products .product-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
}

.catalog-grid-products .product-img,
.catalog-grid-products .product-card img {
  height: 100%;
  min-height: 168px;
}

.catalog-grid-products .product-info {
  min-width: 0;
  padding: 16px;
}

.catalog-grid-products .product-info p {
  min-height: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.catalog-grid-products .card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.catalog-grid-products .details-btn,
.catalog-grid-products .add-btn {
  min-width: 0;
  padding-inline: 10px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-btn {
  min-height: 40px;
  padding: 0 14px;
  color: var(--cocoa);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
}

.category-btn.active,
.category-btn:hover {
  color: white;
  background: var(--mint);
  border-color: var(--mint);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.cart-item {
  margin-bottom: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cart-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
}

.cart-item h3 {
  color: var(--cocoa);
}

.cart-item p,
.cart-item small {
  color: var(--muted);
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.qty button,
.remove-btn,
.close-modal {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--rose-dark);
  background: #fff0f6;
  border-radius: var(--radius);
}

.qty-large {
  margin: 16px 0;
}

.summary-box {
  position: sticky;
  top: 100px;
  padding: 22px;
  display: grid;
  gap: 12px;
}

.summary-box span,
.order-top span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-box h2,
.price {
  color: var(--rose-dark);
  font-size: 28px;
}

.summary-box.inline {
  position: static;
}

.checkout-box {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
}

.checkout-box .payment-options {
  gap: 10px;
}

.checkout-box .payment-card {
  min-height: 72px;
  padding: 10px 12px;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
}

.checkout-box .payment-card input,
.checkout-box .payment-card svg {
  grid-row: 1 / span 2;
}

.checkout-box .payment-card strong,
.checkout-box .payment-card span {
  grid-column: 2;
}

.checkout-box .payment-card span {
  font-size: 12px;
  line-height: 1.3;
}

.checkout-box.center {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.checkout-access-box {
  padding: 14px;
  display: grid;
  gap: 12px;
  background: var(--mint-soft);
  border: 1px solid rgba(10, 186, 181, .28);
  border-radius: var(--radius);
}

.checkout-access-box strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cocoa);
}

.checkout-access-box p {
  color: var(--muted);
}

.form-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

#addressFields {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--tiffany);
  flex: 0 0 18px;
}

textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(95, 200, 196, .16);
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.payment-card {
  min-height: 112px;
  padding: 16px;
  display: grid;
  gap: 6px;
  justify-items: start;
  color: var(--cocoa);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.payment-card input[type="radio"] {
  margin-bottom: 2px;
}

.payment-card.active {
  border-color: var(--rose);
  background: #fff4f8;
  box-shadow: 0 0 0 4px rgba(233, 99, 157, .1);
}

.payment-card span {
  color: var(--muted);
  font-size: 14px;
}

.card-fields,
.pix-area {
  display: none;
}

.card-fields.active,
.pix-area.active {
  display: grid;
  gap: 14px;
}

.pix-box {
  width: 100%;
  padding: 22px;
  display: grid;
  justify-items: center;
  gap: 14px;
  background: var(--mint-soft);
  border: 1px dashed var(--mint);
  border-radius: var(--radius);
  text-align: center;
}

.qr-placeholder {
  width: 190px;
  height: 190px;
  background-color: white;
  border: 12px solid white;
  border-radius: var(--radius);
  outline: 2px solid var(--tiffany);
  box-shadow: inset 0 0 0 18px #111, inset 0 0 0 34px white, inset 0 0 0 48px #111;
}

.copy-code {
  width: min(100%, 560px);
  padding: 14px;
  color: var(--cocoa);
  background: white;
  border-radius: var(--radius);
  font-size: 12px;
  word-break: break-all;
}

.timer {
  color: var(--rose-dark);
  font-size: 28px;
  font-weight: 900;
}

.success-icon {
  width: 58px;
  height: 58px;
  color: var(--success);
}

.orders-list {
  display: grid;
  gap: 16px;
}

.orders-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.order-card {
  padding: 20px;
}

.order-top {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-top h3 {
  color: var(--cocoa);
  font-size: 24px;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.order-grid p {
  padding: 12px;
  display: grid;
  gap: 4px;
  color: var(--ink);
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.order-grid strong,
.order-items strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.order-items {
  margin-top: 16px;
}

.order-items ul,
.ingredients ul {
  margin: 8px 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.status {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: var(--warning);
  background: #fff2c7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status.pago {
  color: var(--success);
  background: #dcfce7;
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-login-shell {
  min-height: 62vh;
  display: grid;
  place-items: center;
}

.admin-login-box {
  max-width: 520px;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.admin-sidebar button {
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cocoa);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 850;
  text-align: left;
}

.admin-sidebar button.active,
.admin-sidebar button:hover {
  color: white;
  background: var(--tiffany);
}

.admin-content {
  display: grid;
  gap: 16px;
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-head h2 {
  color: var(--cocoa);
  font-size: 30px;
}

.admin-section-head p,
.muted-line {
  color: var(--muted);
  line-height: 1.55;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card,
.admin-panel,
.kanban-column,
.kanban-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  min-height: 138px;
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.metric-card svg {
  color: var(--tiffany);
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.metric-card strong {
  color: var(--cocoa);
  font-size: 27px;
  line-height: 1.1;
}

.admin-panel {
  padding: 18px;
}

.admin-panel h3 {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cocoa);
}

.admin-whatsapp-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-whatsapp-action h3 {
  margin-bottom: 4px;
}

.admin-order-toolbar {
  position: sticky;
  top: 74px;
  z-index: 5;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.admin-order-modal {
  width: min(720px, 100%);
}

.admin-order-modal .modal-content {
  max-height: min(88vh, 760px);
}

.ranking-list,
.admin-product-list {
  display: grid;
  gap: 10px;
}

.ranking-list div {
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.ranking-list span,
.admin-product-row span,
.admin-product-row small,
.kanban-card small {
  color: var(--muted);
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-category-picker {
  padding: 12px;
  display: grid;
  gap: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-category-picker > span {
  color: var(--cocoa);
  font-weight: 850;
}

.admin-category-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.admin-category-picker .check-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 750;
}

.admin-category-picker .check-line input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.admin-active-toggle {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: var(--cocoa);
  font-weight: 850;
}

.admin-active-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.admin-payment-box {
  padding: 12px;
  display: grid;
  gap: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-payment-box .check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cocoa);
  font-weight: 850;
}

.admin-payment-box .check-line input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.admin-product-row {
  min-height: 82px;
  padding: 10px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-product-thumb {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--cocoa);
  background: var(--mint-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-row > div:nth-child(2) {
  display: grid;
  gap: 3px;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.danger-btn {
  min-height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #991b1b;
  background: #fee2e2;
  border-radius: var(--radius);
  font-weight: 850;
}

.admin-kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.admin-order-group {
  display: grid;
  gap: 12px;
}

.kanban-column {
  min-height: 260px;
  max-height: 68vh;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.kanban-column h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cocoa);
}

.kanban-column h3 span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--tiffany);
  border-radius: 999px;
  font-size: 13px;
}

.kanban-card {
  padding: 12px;
  display: grid;
  gap: 9px;
}

.admin-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-card-actions .secondary-btn {
  min-height: 38px;
  padding: 0 8px;
  font-size: 12px;
}

.kanban-card .order-top {
  margin-bottom: 0;
}

.kanban-card .order-top h3 {
  font-size: 20px;
}

#thermalPrintArea {
  display: none;
}

.thermal-receipt {
  width: 72mm;
  padding: 4mm;
  color: #000;
  background: #fff;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.35;
}

.thermal-receipt h1,
.thermal-receipt h2 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 15px;
}

.thermal-receipt h2 {
  margin-top: 6px;
  font-size: 13px;
}

.thermal-receipt p {
  margin: 2px 0;
}

.thermal-receipt hr {
  margin: 7px 0;
  border: 0;
  border-top: 1px dashed #000;
}

.thermal-item {
  margin-bottom: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.thermal-item small {
  grid-column: 1 / -1;
}

.empty-state {
  min-height: 420px;
  padding: 40px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.empty-state svg {
  width: 54px;
  height: 54px;
  color: var(--rose-dark);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  padding: 18px;
  overflow-y: auto;
  background: rgba(30, 22, 19, .55);
}

.modal.active {
  display: grid;
  place-items: center;
}

.modal-box {
  width: min(780px, 100%);
  max-height: min(88vh, 720px);
  overflow: hidden;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.app-modal-box {
  width: min(560px, 100%);
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.modal-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.checkout-choice-grid {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.checkout-choice-grid button {
  min-height: 82px;
  padding: 14px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  color: var(--cocoa);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.checkout-choice-grid button:hover {
  border-color: var(--tiffany);
  box-shadow: 0 0 0 4px rgba(10, 186, 181, .12);
}

.checkout-choice-grid svg {
  grid-row: 1 / span 2;
  color: var(--tiffany);
}

.checkout-choice-grid span {
  color: var(--muted);
  font-size: 13px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  max-height: inherit;
}

.modal-img {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: var(--rose-dark);
  background: var(--mint-soft);
}

.modal-img svg {
  width: 70px;
  height: 70px;
}

.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  max-height: min(88vh, 720px);
  padding: 22px;
  overflow-y: auto;
}

.close-modal {
  float: right;
}

.modal-content h2 {
  clear: none;
  margin: 10px 0 6px;
  color: var(--cocoa);
  font-size: 26px;
}

.modal-content > p {
  color: var(--muted);
  line-height: 1.65;
}

.ingredients,
.option-group {
  margin: 12px 0;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.option-group {
  display: grid;
  gap: 10px;
}

.option-line {
  min-height: 32px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--cocoa);
  line-height: 1.35;
}

.option-line input {
  grid-column: 1;
}

.option-line span {
  grid-column: 2;
}

.option-line small {
  grid-column: 3;
  color: var(--muted);
  white-space: nowrap;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: white;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(37, 211, 102, .32);
}

footer {
  padding: 36px 24px;
  color: white;
  background: var(--cocoa);
  text-align: center;
}

footer p,
footer small {
  color: #f2d8cf;
}

@media print {
  @page {
    size: 80mm auto;
    margin: 0;
  }

  body > *:not(#thermalPrintArea) {
    display: none !important;
  }

  #thermalPrintArea {
    display: block !important;
  }

  .thermal-receipt {
    width: 72mm;
    box-shadow: none;
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 12px 18px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .brand {
    justify-self: center;
  }

  .brand-info strong {
    font-size: 19px;
  }

  .brand-info span {
    display: none;
  }

  .menu {
    display: none;
  }

  .page-shell {
    width: min(100% - 32px, var(--container));
    padding-top: 24px;
  }

  .catalog-tools {
    top: 76px;
  }

  .catalog-grid-products .product-card {
    grid-template-columns: 1fr;
  }

  .catalog-grid-products .product-img,
  .catalog-grid-products .product-card img {
    height: 132px;
    min-height: 132px;
  }

  .cart-layout,
  .modal-grid,
  .order-grid,
  .orders-access-grid,
  .admin-shell,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-sidebar button {
    justify-content: center;
    text-align: center;
  }

  .admin-kanban {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .modal-grid {
    max-height: none;
  }

  .modal-box {
    max-height: 90vh;
  }

  .summary-box {
    position: static;
  }

  .cart-item {
    grid-template-columns: 50px 1fr auto;
  }

  .cart-item > strong,
  .cart-item .remove-btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .modal-img {
    min-height: 160px;
    max-height: 180px;
  }

  .modal-content {
    max-height: calc(90vh - 180px);
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 10px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-info strong {
    font-size: 17px;
  }

  .cart-button {
    min-width: 46px;
    min-height: 46px;
    padding: 0 10px;
  }

  .catalog-tools {
    top: 70px;
    margin-inline: -6px;
    padding: 10px;
  }

  .search-field {
    height: 48px;
  }

  .categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .category-btn {
    flex: 0 0 auto;
  }

  .catalog-grid-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-grid-products .product-img,
  .catalog-grid-products .product-card img {
    height: 104px;
    min-height: 104px;
  }

  .catalog-grid-products .product-img svg {
    width: 42px;
    height: 42px;
  }

  .catalog-grid-products .product-info {
    padding: 10px;
  }

  .catalog-grid-products .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 7px;
    font-size: 11px;
  }

  .catalog-grid-products .product-info h3 {
    font-size: 15px;
    line-height: 1.2;
  }

  .catalog-grid-products .product-info p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .catalog-grid-products .card-actions {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .catalog-grid-products .details-btn {
    display: none;
  }

  .catalog-grid-products .add-btn {
    min-height: 38px;
    font-size: 12px;
  }

  .hero {
    padding: 28px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-options,
  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-kanban,
  .admin-product-row,
  .admin-whatsapp-action {
    grid-template-columns: 1fr;
  }

  .admin-whatsapp-action {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-sidebar button {
    justify-content: flex-start;
  }

  .admin-product-thumb {
    width: 100%;
    height: 150px;
  }

  .admin-row-actions {
    justify-content: stretch;
  }

  .admin-row-actions .secondary-btn,
  .admin-row-actions .danger-btn {
    flex: 1;
  }

  .product-info p {
    min-height: auto;
  }

  .card-actions {
    flex-direction: column;
  }

  .modal {
    padding: 10px;
  }

  .modal-img {
    min-height: 120px;
    max-height: 140px;
  }

  .modal-img svg {
    width: 54px;
    height: 54px;
  }

  .modal-content {
    max-height: calc(90vh - 140px);
    padding: 16px;
  }

  .modal-content h2 {
    font-size: 22px;
  }

  .ingredients,
  .option-group {
    padding: 10px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
}
