﻿:root {
  --primary: #0757d8;
  --primary-dark: #06245a;
  --ink: #12213f;
  --muted: #64748b;
  --line: #d7e4f5;
  --soft: #eef6ff;
  --bg: #f6fbff;
  --ok: #12805c;
  --warn: #b7791f;
  --danger: #c62828;
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, select { font: inherit; }
button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
button:hover { border-color: var(--primary); }
.danger-btn {
  width: 100%;
  margin-top: 10px;
  border-color: #bfdbfe;
  color: var(--danger);
  font-weight: 800;
}
.danger-btn:hover {
  border-color: var(--danger);
  background: #eff6ff;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .12);
}
textarea { min-height: 88px; resize: vertical; }
h1, h2, h3, p { margin-top: 0; }
.hidden { display: none !important; }
.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}
.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--soft);
  color: var(--primary-dark);
  font-weight: 800;
}
.message {
  min-height: 22px;
  color: var(--primary-dark);
  font-weight: 700;
}
.row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 10px;
}

.store-header, .admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(14px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 250, .96);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand h1, .admin-header h1 {
  margin-bottom: 2px;
  font-size: clamp(24px, 4vw, 34px);
  color: var(--primary);
  letter-spacing: 0;
}
.brand p, .admin-header p {
  margin: 0;
  color: var(--muted);
}
.logo {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 24px clamp(14px, 4vw, 42px);
}
.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 16px;
}
.tab, .tabs button {
  white-space: nowrap;
  font-weight: 800;
}
.tab.active, .tabs button.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.product-card {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 14px;
  min-height: 148px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.product-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}
.product-card p {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.price {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 900;
}
.product-img, .product-placeholder {
  width: 92px;
  height: 92px;
  border-radius: var(--radius);
  object-fit: cover;
  background: linear-gradient(135deg, #fff, #dbeafe);
}
.product-placeholder {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
}
.qty {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty button {
  border: 0;
  border-radius: 0;
  padding: 7px 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}
.qty span {
  text-align: center;
  font-weight: 800;
}
.obs-input {
  margin-top: 8px;
  padding: 9px;
  font-size: 13px;
}
.details-btn {
  margin-top: 10px;
  padding: 8px 12px;
  color: var(--primary);
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 31, 31, .48);
}
.product-detail {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 22px 60px rgba(33, 31, 31, .24);
}
.modal-close {
  position: sticky;
  top: 10px;
  z-index: 2;
  float: right;
  margin: 10px;
  font-weight: 900;
}
.detail-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, #fff, #dbeafe);
}
.detail-placeholder {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 42px;
  font-weight: 900;
}
.detail-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.detail-content h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.12;
}
.detail-description {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-add {
  min-width: 190px;
}

.cart-panel {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.cart-panel h2 { color: var(--primary); }
.cart-items {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.cart-line {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdfd;
}
.cart-line strong { display: block; }
.cart-line small { color: var(--muted); }
.empty {
  padding: 14px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 14px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.totals strong:last-child {
  color: var(--primary-dark);
  font-size: 20px;
}
.checkout-form {
  display: grid;
  gap: 10px;
}
.checkout-form h3 { margin-bottom: 0; }
.payment-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdfd;
}
.payment-panel h3 {
  margin-bottom: 0;
  color: var(--primary);
}
.payment-result {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.pix-qr {
  width: min(260px, 100%);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
#pixCode {
  min-height: 116px;
  font-size: 13px;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at top, #dbeafe, transparent 42%), var(--bg);
}
.login-card, .editor, .inline-form {
  display: grid;
  gap: 12px;
  width: min(430px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.login-card h1 {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 34px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin main {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 42px) 32px;
}
.admin > .tabs {
  width: min(1360px, 100%);
  margin: 18px auto 0;
  padding-inline: clamp(14px, 4vw, 42px);
}
.orders-list {
  display: grid;
  gap: 12px;
}
.order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius);
  background: #fff;
}
.order-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}
.order-meta {
  color: var(--muted);
  font-size: 14px;
}
.order-items {
  margin: 10px 0;
  padding-left: 18px;
}
.payment-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 900;
  background: var(--soft);
  color: var(--primary-dark);
}
.payment-approved {
  background: #e8fff6;
  color: var(--ok);
}
.payment-pending {
  background: #fff8e6;
  color: var(--warn);
}
.payment-rejected, .payment-cancelled {
  background: #ffecec;
  color: var(--danger);
}
.status {
  min-width: 150px;
}
.cash-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.cash-toolbar h2 {
  margin-bottom: 4px;
}
.cash-toolbar p {
  margin: 0;
  color: var(--muted);
}
.cash-actions {
  display: grid;
  grid-template-columns: 160px 150px 150px auto auto;
  gap: 10px;
  align-items: center;
}
.cash-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.cash-card {
  display: grid;
  gap: 6px;
  min-height: 122px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.cash-card span {
  color: var(--muted);
  font-weight: 800;
}
.cash-card strong {
  font-size: 26px;
  color: var(--ink);
}
.cash-card small {
  color: var(--muted);
}
.cash-ok {
  border-left: 6px solid var(--ok);
}
.cash-warn {
  border-left: 6px solid var(--warn);
}
.cash-danger {
  border-left: 6px solid var(--danger);
}
.cash-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.cash-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}
.cash-table th,
.cash-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.cash-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff7f6;
  color: var(--primary-dark);
  font-size: 13px;
  text-transform: uppercase;
}
.cash-table tr:last-child td {
  border-bottom: 0;
}
.split {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
}
.editor.wide { width: min(760px, 100%); }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.check input { width: auto; }
.inline-form {
  width: 100%;
  grid-template-columns: 1fr 100px auto;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
}
.product-admin-list, .delivery-area-list {
  display: grid;
  gap: 10px;
}
.admin-product, .delivery-area {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.delivery-area {
  grid-template-columns: 1fr auto;
}
.admin-product img, .admin-product .product-placeholder {
  width: 70px;
  height: 70px;
}
.admin-product h3, .delivery-area h3 { margin-bottom: 4px; }
.admin-product p, .delivery-area p { margin: 0; color: var(--muted); }

@media (max-width: 980px) {
  .shop-layout, .split { grid-template-columns: 1fr; }
  .cash-toolbar {
    display: grid;
    align-items: stretch;
  }
  .cash-actions {
    grid-template-columns: 1fr 1fr;
  }
  .cash-actions select {
    grid-column: 1 / -1;
  }
  .cash-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cart-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 620px) {
  .customer {
    font-size: 17px;
    line-height: 1.45;
  }
  .customer button,
  .customer input,
  .customer textarea,
  .customer select {
    min-height: 50px;
    font-size: 16px;
  }
  .customer button {
    padding: 12px 14px;
  }
  .customer .store-header {
    position: static;
    gap: 12px;
    padding: 16px;
  }
  .store-header, .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .customer .brand {
    gap: 12px;
    width: 100%;
  }
  .customer .brand h1 {
    font-size: 29px;
    line-height: 1.08;
  }
  .customer .brand p {
    font-size: 15px;
    line-height: 1.35;
  }
  .customer .logo {
    width: 54px;
    height: 54px;
  }
  .customer .badge {
    min-height: 36px;
    font-size: 15px;
  }
  .shop-layout {
    gap: 16px;
    padding: 14px 12px 24px;
  }
  .customer .tabs {
    position: sticky;
    top: 0;
    z-index: 8;
    gap: 8px;
    margin: 0 -12px 4px;
    padding: 10px 12px;
    background: rgba(255, 250, 250, .97);
    border-bottom: 1px solid var(--line);
  }
  .customer .tabs button {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 16px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
    min-height: 0;
    padding: 16px;
  }
  .product-card h3 {
    margin-bottom: 7px;
    font-size: 20px;
    line-height: 1.2;
  }
  .product-card p {
    min-height: 0;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }
  .price {
    font-size: 21px;
  }
  .product-img, .product-placeholder {
    width: 104px;
    height: 104px;
  }
  .qty {
    grid-template-columns: 46px 46px 46px;
    margin-top: 12px;
  }
  .qty button {
    min-height: 44px;
    padding: 0;
    font-size: 24px;
  }
  .qty span {
    font-size: 18px;
  }
  .obs-input {
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
  }
  .details-btn {
    min-height: 42px;
    margin-top: 10px;
    padding: 9px 12px;
    font-size: 16px;
  }
  .modal {
    align-items: end;
    padding: 0;
  }
  .product-detail {
    width: 100%;
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }
  .detail-content {
    padding: 18px 16px 22px;
  }
  .detail-content h2 {
    font-size: 26px;
  }
  .detail-description {
    font-size: 18px;
  }
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .detail-add {
    width: 100%;
  }
  .cart-panel {
    padding: 16px;
    border-radius: var(--radius);
  }
  .cart-panel h2 {
    font-size: 26px;
  }
  .cart-line {
    padding: 12px;
  }
  .cash-actions,
  .cash-summary {
    grid-template-columns: 1fr;
  }
  .cash-card {
    min-height: auto;
  }
  .cash-card strong {
    font-size: 24px;
  }
  .totals {
    gap: 10px;
    font-size: 17px;
  }
  .totals strong:last-child {
    font-size: 24px;
  }
  .checkout-form {
    gap: 12px;
  }
  .checkout-form h3 {
    font-size: 22px;
  }
  .row, .order-card, .admin-product, .delivery-area, .inline-form {
    grid-template-columns: 1fr;
  }
  .header-actions { justify-content: flex-start; }
}

@media (max-width: 390px) {
  .product-card {
    grid-template-columns: minmax(0, 1fr) 92px;
    padding: 14px;
  }
  .product-img, .product-placeholder {
    width: 92px;
    height: 92px;
  }
  .product-card p {
    -webkit-line-clamp: 1;
  }
  .customer .brand h1 {
    font-size: 26px;
  }
}

@media print {
  body {
    background: #fff;
  }
  .login-view,
  .admin-header,
  .admin > .tabs,
  .admin-panel:not(#cashPanel),
  .cash-actions {
    display: none !important;
  }
  #adminView,
  #cashPanel {
    display: block !important;
  }
  .admin main {
    width: 100%;
    padding: 0;
  }
  .cash-toolbar,
  .cash-summary,
  .cash-table-wrap {
    break-inside: avoid;
  }
  .cash-table-wrap {
    overflow: visible;
    border: 0;
  }
  .cash-table {
    min-width: 0;
    font-size: 12px;
  }
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(33, 31, 31, .07);
  backdrop-filter: blur(10px);
}
.public-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.public-header .logo,
.footer-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
}
.public-header .logo img,
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.public-header h1,
.public-header p {
  margin: 0;
}
.public-header h1 {
  font-size: 24px;
  line-height: 1;
}
.public-header p {
  color: var(--muted);
  font-weight: 700;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.header-search input {
  min-height: 34px;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  min-height: 46px;
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.cart-icon {
  font-size: 20px;
  line-height: 1;
}
.cart-total-small {
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  opacity: .95;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
}
.public-hero {
  display: grid;
  gap: 16px;
  min-height: 260px;
  padding: clamp(36px, 7vw, 86px) clamp(18px, 7vw, 86px);
  background:
    linear-gradient(90deg, rgba(33, 31, 31, .78), rgba(33, 31, 31, .22)),
    url('https://images.unsplash.com/photo-1550547660-d9450f859349?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: #fff;
}
.public-hero h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
}
.public-hero p {
  max-width: 520px;
  color: rgba(255, 255, 255, .9);
  font-size: 19px;
  line-height: 1.45;
}
.status-banner {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, .16);
  font-weight: 900;
}
.store-open {
  color: #9ff2bd;
}
.store-closed {
  color: #ffd1cf;
}
.product-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title-row h2 {
  margin-bottom: 4px;
  font-size: 30px;
}
.section-title-row p {
  color: var(--muted);
}
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  overscroll-behavior-inline: contain;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.category-tabs button {
  flex: 0 0 auto;
  max-width: calc(100vw - 36px);
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 900;
}
.category-tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.customer .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.customer .product-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(33, 31, 31, .06);
}
.product-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.product-card .product-img,
.product-card .product-placeholder {
  width: 100%;
  height: 180px;
  border-radius: 0;
}
.product-card .category-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.product-card .add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.drawer-backdrop,
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, .38);
}
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
  pointer-events: none;
}
.cart-drawer .cart-backdrop,
.cart-drawer .cart-panel {
  pointer-events: auto;
}
.cart-drawer .cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1;
  display: block;
  width: min(480px, 100vw);
  max-height: 100vh;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: -20px 0 45px rgba(0, 0, 0, .18);
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.cart-body {
  overflow: auto;
  padding: 18px;
}
.cart-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.cart-line strong,
.cart-line small {
  display: block;
}
.cart-line small {
  color: var(--muted);
}
.cart-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-controls button {
  width: 34px;
  height: 34px;
  padding: 0;
}
.choice-row,
.coupon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice-card {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-weight: 800;
}
.minimum-notice,
.checkout-result {
  border-radius: 10px;
  padding: 12px;
  background: var(--soft);
  color: var(--primary-dark);
  font-weight: 800;
}
.minimum-notice:empty,
.checkout-result:empty {
  display: none;
}
.public-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 28px;
  padding: 34px clamp(18px, 6vw, 74px);
  background: #201f1f;
  color: #fff;
}
.public-footer p {
  color: rgba(255, 255, 255, .78);
}
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.footer-whatsapp {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}
.admin main {
  max-width: 1260px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 42px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.admin > .tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px clamp(18px, 4vw, 42px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.admin > .tabs .tab {
  flex: 0 0 auto;
  font-weight: 900;
}
.admin > .tabs .tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.split {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 18px;
  align-items: start;
}
.editor {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.editor .row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.editor.wide {
  max-width: 760px;
}
.admin-item,
.admin-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.admin-line {
  grid-template-columns: 1fr auto;
}
.admin-item img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
}
.admin-thumb-placeholder {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.admin-item small,
.admin-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.item-actions,
.admin-line > div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.order-actions {
  display: grid;
  gap: 10px;
  min-width: 210px;
}
.badge.closed {
  background: #eff6ff;
  color: var(--danger);
}
.store-operation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(31, 125, 79, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfff5, #ffffff);
  box-shadow: 0 14px 34px rgba(13, 28, 44, .08);
}
.store-operation.closed {
  border-color: rgba(214, 48, 49, .2);
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}
.store-operation span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.store-operation strong {
  display: block;
  color: #157347;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}
.store-operation.closed strong {
  color: var(--danger);
}
.store-operation p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.store-operation button {
  min-width: 230px;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: #157347;
  color: #fff;
  box-shadow: 0 14px 24px rgba(21, 115, 71, .24);
  font-size: 17px;
  font-weight: 950;
}
.store-operation button.close-action {
  background: var(--danger);
  box-shadow: 0 14px 24px rgba(214, 48, 49, .22);
}
.store-operation button:disabled {
  cursor: wait;
  opacity: .72;
}
.cash-table-wrap {
  margin-top: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.cash-table-wrap h3 {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.cash-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.cash-table th,
.cash-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.cash-table th {
  background: var(--soft);
  color: var(--primary-dark);
}

@media (max-width: 820px) {
  .public-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .public-header .brand {
    grid-column: 1 / 2;
  }
  .public-header .header-search {
    grid-column: 1 / -1;
    order: 3;
  }
  .public-header .badge {
    grid-column: 1 / 2;
    width: fit-content;
    order: 4;
  }
  .cart-button {
    grid-column: 2 / 3;
    grid-row: 1;
    min-width: 128px;
  }
  .public-footer,
  .split,
  .section-title-row,
  .admin-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .choice-row,
  .coupon-row {
    grid-template-columns: 1fr;
  }
  .admin-item,
  .admin-line,
  .order-card {
    grid-template-columns: 1fr;
  }
  .store-operation {
    align-items: stretch;
    flex-direction: column;
  }
  .store-operation button {
    width: 100%;
    min-width: 0;
  }
  .item-actions,
  .admin-line > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Cliente - vitrine de pedidos */
.customer {
  background: #fbf7f4;
}
.client-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(300px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 46px);
  background: linear-gradient(135deg, #0757d8 0%, #063b91 42%, #020617 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 16px 38px rgba(2, 6, 23, .24);
  backdrop-filter: blur(14px);
}
.client-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand-mark,
.brand-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 12px 22px rgba(183, 28, 28, .25);
}
.brand-logo {
  width: 300px;
  height: 90px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  object-fit: contain;
  padding: 10px 16px;
  box-shadow: none;
}
.client-brand:has(.brand-logo:not(.hidden)) strong,
.client-brand:has(.brand-logo:not(.hidden)) small {
  display: none;
}
.client-brand strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-brand small {
  display: block;
  max-width: 260px;
  overflow: hidden;
  margin-top: 4px;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-search {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(2, 6, 23, .16);
}
.client-search svg,
.cart-summary svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.client-search input {
  min-height: 32px;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.client-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 8px 13px;
  background: #ecfff4;
  color: #137849;
  font-weight: 950;
}
.store-pill.closed {
  background: #fff0ef;
  color: var(--danger);
}
.cart-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #06245a;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(2, 6, 23, .22);
}
.cart-summary svg,
.cart-summary span {
  color: #06245a;
  stroke: #06245a;
}
.cart-summary span {
  font-size: 13px;
  white-space: nowrap;
}
.cart-summary strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}
.benefits-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  padding: 22px clamp(18px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid rgba(33, 31, 31, .08);
}
.benefit-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.benefit-item i,
.benefit-item svg {
  width: 42px;
  height: 42px;
  color: #0d1b36;
  stroke-width: 1.8;
}
.benefit-item.accent i,
.benefit-item.accent svg {
  color: #2bb9aa;
}
.benefit-item strong,
.benefit-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.benefit-item strong {
  color: #0d1b36;
  font-size: 14px;
  font-weight: 950;
}
.benefit-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.delivery-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(22px, 5vw, 58px);
  align-items: end;
  height: 560px;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 7vw, 86px);
  background:
    linear-gradient(90deg, rgba(23, 19, 18, .86), rgba(23, 19, 18, .42), rgba(23, 19, 18, .08)),
    url('https://images.unsplash.com/photo-1550547660-d9450f859349?auto=format&fit=crop&w=1800&q=82') center/cover;
  background-position: center;
  background-size: cover;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity .75s ease;
}
.hero-bg.active {
  opacity: 1;
}
.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}
.hero-copy {
  display: grid;
  align-content: end;
  max-width: 760px;
  min-height: 388px;
}
.hero-status,
.menu-heading span,
.drawer-title span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.delivery-hero h1 {
  max-width: 780px;
  min-height: 154px;
  margin: 18px 0 14px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: .98;
}
.delivery-hero p {
  max-width: 600px;
  min-height: 58px;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.hero-dots button {
  width: 12px;
  height: 12px;
  min-height: 12px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, .22);
}
.hero-dots button.active {
  width: 28px;
  background: #fff;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-arrow:hover { background: rgba(255, 255, 255, .28); }
.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 950;
  text-decoration: none;
}
.hero-primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}
.hero-secondary {
  border: 1px solid rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.hero-panel {
  display: grid;
  align-self: end;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 28px 55px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}
.hero-panel strong {
  font-size: 20px;
}
.hero-panel span {
  display: block;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .9);
  font-weight: 800;
}
.menu-shell {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 58px;
}
.featured-shell {
  position: relative;
  z-index: 4;
  max-width: 1180px;
  margin: -76px auto 0;
  padding: 0 18px 34px;
}
.featured-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(33, 31, 31, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(33, 31, 31, .08);
}
.featured-heading span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.featured-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}
.featured-controls {
  display: flex;
  gap: 8px;
}
.featured-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0;
  background: #fff;
  color: var(--primary-dark);
  font-size: 26px;
  font-weight: 900;
}
.featured-viewport {
  overflow: hidden;
}
.featured-track {
  --per-view: 4;
  display: flex;
  gap: 18px;
  transition: transform .55s ease;
  will-change: transform;
}
.featured-card {
  flex: 0 0 calc((100% - (18px * (var(--per-view) - 1))) / var(--per-view));
  overflow: hidden;
  border: 1px solid rgba(33, 31, 31, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(33, 31, 31, .07);
}
.featured-card .menu-media {
  height: 170px;
}
.featured-card .menu-card-body {
  padding: 14px;
}
.featured-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
}
.featured-card p {
  display: -webkit-box;
  min-height: 39px;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.promo-banners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 28px clamp(14px, 5vw, 72px) 8px;
  background: #fbf7f4;
}
.promo-banner {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #111;
  box-shadow: 0 16px 34px rgba(33, 31, 31, .12);
  cursor: pointer;
  animation: bannerReveal .55s ease both;
  transition: transform .22s ease, box-shadow .22s ease;
}
.promo-banner:nth-child(2) { animation-delay: .06s; }
.promo-banner:nth-child(3) { animation-delay: .12s; }
.promo-banner:nth-child(4) { animation-delay: .18s; }
.promo-banner:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 22px 44px rgba(33, 31, 31, .18);
}
.promo-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes bannerReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.menu-heading {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 380px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(33, 31, 31, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(33, 31, 31, .08);
}
.menu-heading span {
  background: var(--soft);
  color: var(--primary-dark);
}
.menu-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}
.menu-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}
.customer .category-tabs {
  gap: 10px;
  margin: 0 0 18px;
  padding: 0 0 10px;
}
.customer .category-tabs button {
  min-height: 42px;
  border-color: rgba(33, 31, 31, .13);
  background: #fff;
  box-shadow: 0 8px 18px rgba(33, 31, 31, .05);
}
.customer .category-tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.customer .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.menu-card {
  overflow: hidden;
  border: 1px solid rgba(33, 31, 31, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(33, 31, 31, .07);
}
.menu-media {
  height: 178px;
  background: linear-gradient(135deg, #fff2ef, #f7faf9);
}
.menu-media .product-img,
.menu-media .product-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.menu-media .product-img {
  object-fit: cover;
}
.menu-media .product-placeholder {
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-size: 38px;
  font-weight: 950;
}
.menu-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.menu-card .product-category {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.menu-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}
.menu-card p {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.menu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.menu-card-footer strong {
  color: var(--primary-dark);
  font-size: 22px;
}
.compact-qty {
  display: grid;
  grid-template-columns: 36px 30px 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.compact-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 900;
}
.compact-qty span {
  text-align: center;
  font-weight: 950;
}
.menu-card .details-btn {
  min-height: 40px;
  border-color: rgba(33, 31, 31, .12);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.add-cart-btn {
  min-height: 40px;
  border-radius: 999px;
  padding-inline: 16px;
}
.detail-hint {
  border-radius: 12px;
  padding: 12px;
  background: var(--soft);
  color: var(--primary-dark);
  font-weight: 800;
}
.drawer-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}
.drawer-title span {
  background: var(--soft);
  color: var(--primary-dark);
}
.drawer-title h2 {
  margin: 6px 0 0;
  font-size: 32px;
}
.cart-drawer .cart-panel {
  padding: 22px;
}
.clean-totals {
  margin: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.clean-checkout h3 {
  margin: 14px 0 0;
}
.payment-security-note {
  margin: -4px 0 4px;
  border: 1px solid rgba(18, 128, 92, .22);
  border-radius: 12px;
  padding: 11px 13px;
  background: #f1fff6;
  color: #124b2a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.cart-line {
  grid-template-columns: 1fr auto;
  padding: 12px;
}
.cart-line-price {
  font-weight: 950;
  color: var(--primary-dark);
}
.cart-line .cart-controls {
  grid-column: 1 / -1;
}
.cart-line .cart-controls button:last-child {
  width: auto;
  padding: 0 10px;
}
.cart-note-label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.cart-note {
  min-height: 64px;
  margin-top: 0;
  resize: vertical;
}
.client-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr) minmax(220px, .8fr);
  gap: 28px;
  padding: 38px clamp(18px, 6vw, 74px);
  background: #12213f;
  color: #fff;
}
.client-footer h3,
.client-footer strong {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
}
.client-footer p,
.client-footer span {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.55;
}
.client-footer a {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.footer-brand {
  align-items: flex-start;
}
.footer-mark {
  box-shadow: none;
}
.footer-logo-img {
  width: min(320px, 100%);
  max-height: 120px;
  object-fit: contain;
}
.rich-footer {
  grid-template-columns: minmax(220px, 1.1fr) minmax(190px, .8fr) minmax(230px, .9fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: start;
  padding-top: 50px;
  padding-bottom: 24px;
  background: #102f54;
}
.rich-footer .footer-brand {
  margin-bottom: 18px;
}
.footer-brand-block p {
  max-width: 300px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.footer-column,
.footer-map-wrap {
  display: grid;
  gap: 10px;
}
.footer-column h3,
.footer-map-wrap h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
}
.footer-column h3::after,
.footer-map-wrap h3::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, .55);
}
.rich-footer a,
.rich-footer span {
  color: #fff;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.rich-footer a {
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.rich-footer a:hover {
  color: #ffb22e;
}
.footer-contact-link {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  background: var(--primary);
  color: #fff !important;
}
.footer-map-wrap iframe {
  width: 100%;
  min-height: 190px;
  border: 0;
  border-radius: 12px;
  filter: saturate(.95);
}
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  text-align: center;
}
.footer-bottom span {
  font-size: 14px;
}
.policy-page {
  min-height: 100vh;
  background: #fbf7f4;
}
.policy-shell {
  width: min(860px, calc(100% - 32px));
  margin: 34px auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 5vw, 44px);
  background: #fff;
  box-shadow: 0 18px 45px rgba(33, 31, 31, .08);
}
.policy-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
}
.policy-shell h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
}
.policy-shell h2 {
  margin: 24px 0 8px;
  font-size: 22px;
}
.policy-shell p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.field-help {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.field-label {
  display: grid;
  gap: 7px;
}
.field-label span,
.field-help span {
  font-weight: 900;
}
.field-label small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.field-help small,
.form-note {
  color: var(--muted);
  line-height: 1.45;
}
.form-note {
  margin: 0;
  border-radius: 10px;
  padding: 12px;
  background: var(--soft);
}
.personalization-slides {
  margin-top: 18px;
}
.hero-slide-line strong {
  line-height: 1.25;
}

@media (max-width: 900px) {
  .client-header {
    grid-template-columns: 1fr auto;
  }
  .client-search {
    grid-column: 1 / -1;
    order: 3;
  }
  .client-actions {
    justify-content: end;
  }
  .store-pill {
    display: none;
  }
  .benefits-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 14px 14px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .benefits-strip::-webkit-scrollbar {
    display: none;
  }
  .benefit-item {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
  }
  .delivery-hero {
    grid-template-columns: 1fr;
    height: 610px;
  }
  .hero-panel {
    max-width: 420px;
  }
  .featured-heading {
    align-items: start;
    flex-direction: column;
  }
  .promo-banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 22px 12px 4px;
  }
  .menu-heading,
  .client-footer {
    grid-template-columns: 1fr;
  }
  .rich-footer {
    gap: 26px;
  }
  .footer-bottom {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 540px) {
  .client-header {
    padding: 12px;
  }
  .brand-mark,
  .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .brand-logo {
    width: 172px;
    height: 58px;
    border-radius: 8px;
    padding: 7px 10px;
  }
  .client-brand strong {
    max-width: 148px;
    font-size: 18px;
  }
  .client-brand small {
    max-width: 150px;
    font-size: 12px;
  }
  .cart-summary {
    min-height: 44px;
    padding: 10px 11px;
  }
  .cart-summary span {
    font-size: 12px;
  }
  .cart-summary svg {
    width: 20px;
    height: 20px;
  }
  .benefits-strip {
    padding-inline: 12px;
  }
  .benefit-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 4px 0;
  }
  .benefit-item i,
  .benefit-item svg {
    width: 32px;
    height: 32px;
  }
  .benefit-item strong,
  .benefit-item span {
    font-size: 12px;
  }
  .delivery-hero {
    padding: 34px 16px 74px;
    height: 560px;
  }
  .hero-copy {
    min-height: 392px;
  }
  .delivery-hero h1 {
    font-size: 42px;
    min-height: 126px;
  }
  .delivery-hero p {
    font-size: 17px;
    min-height: 74px;
  }
  .hero-actions {
    display: grid;
  }
  .hero-panel {
    display: none;
  }
  .hero-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .hero-prev { left: 16px; }
  .hero-next { right: 16px; }
  .menu-shell {
    margin-top: 0;
    padding: 22px 12px 42px;
  }
  .featured-shell {
    margin-top: -72px;
    padding: 0 12px 28px;
  }
  .featured-track {
    --per-view: 2;
    gap: 12px;
  }
  .featured-card {
    flex-basis: calc((100% - 12px) / 2);
  }
  .featured-card .menu-media {
    height: 118px;
  }
  .featured-card .menu-card-body {
    padding: 11px;
  }
  .featured-card h3 {
    font-size: 15px;
  }
  .featured-card p,
  .featured-card .product-category {
    display: none;
  }
  .featured-card .menu-card-footer,
  .featured-card .card-actions {
    display: grid;
    gap: 8px;
  }
  .menu-heading {
    padding: 18px;
    border-radius: 18px;
  }
  .menu-heading h2 {
    font-size: 30px;
  }
  .customer .product-grid {
    grid-template-columns: 1fr;
  }
  .menu-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 176px;
  }
  .menu-media {
    height: 100%;
  }
  .menu-card-body {
    padding: 13px;
  }
  .menu-card h3 {
    font-size: 18px;
  }
  .menu-card p {
    min-height: 38px;
    font-size: 14px;
  }
  .menu-card-footer {
    display: grid;
    gap: 8px;
  }
  .card-actions {
    grid-template-columns: 1fr;
  }
  .add-cart-btn,
  .menu-card .details-btn {
    width: 100%;
  }
  .cart-drawer .cart-panel {
    width: 100%;
    padding: 18px;
  }
  .choice-row,
  .coupon-row {
    grid-template-columns: 1fr;
  }
}

/* AquaGas vertical polish */
.footer { background: #020617 !important; color: #eaf4ff; }
.footer a, .footer p, .footer li, .footer small { color: #dbeafe; }
.hero::after { background: linear-gradient(90deg, rgba(2, 6, 23, .82), rgba(7, 87, 216, .36), rgba(2, 6, 23, .2)); }
.promo-banner-card { box-shadow: 0 18px 40px rgba(6, 36, 90, .18); }
