:root {
  --red: #d71920;
  --red-dark: #a90f15;
  --gold: #e0a81d;
  --cream: #fff3d7;
  --cream-strong: #f8e2aa;
  --ink: #231f20;
  --muted: #6f6864;
  --surface: #fffdf8;
  --line: #eadfcd;
  --shadow: 0 18px 50px rgba(74, 30, 20, .12);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Nunito", sans-serif;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand strong { display: block; font: 800 1rem "Montserrat"; }
.brand span { display: block; color: var(--muted); font-size: .86rem; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.store-status { padding: 9px 12px; border-radius: 999px; font-weight: 800; font-size: .84rem; }
.store-status.open { background: #e8f7ec; color: #16703a; }
.store-status.closed { background: #feeaea; color: #a4161a; }
.cart-button, .secondary-button, .primary-button {
  border: 0; cursor: pointer; font-weight: 800; border-radius: 14px;
}
.cart-button { padding: 12px 16px; background: var(--cream); color: var(--red); }
.cart-count { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 999px; background: var(--red); color: white; margin-left: 5px; }
.primary-button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 48px; padding: 0 20px; background: var(--red); color: white;
  box-shadow: 0 10px 26px rgba(215, 25, 32, .22);
}
.primary-button:hover { background: var(--red-dark); }
.secondary-button { min-height: 43px; padding: 0 16px; background: var(--cream); color: var(--red); width: 100%; }
.hero {
  background:
    linear-gradient(135deg, rgba(215, 25, 32, .96), rgba(169, 15, 21, .94)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.07) 18px 34px);
  color: white; padding: 54px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 44px; }
.eyebrow, .section-kicker { font: 800 .78rem "Montserrat"; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow { color: #ffd75f; }
.hero h1 { margin: 13px 0 16px; max-width: 640px; font: 800 clamp(2.4rem, 5vw, 4.9rem)/.98 "Montserrat"; }
.hero p { max-width: 590px; font-size: 1.14rem; line-height: 1.6; color: #fff4e6; }
.hero .primary-button { background: #ffd12f; color: #8d0b11; margin-top: 10px; }
.hero-image img { width: 100%; height: 360px; object-fit: cover; border-radius: 30px; border: 8px solid rgba(255,255,255,.12); box-shadow: var(--shadow); }
.catalog-section { padding: 54px 0 90px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-kicker { color: var(--red); }
.catalog-toolbar h2, .cart-panel h2, .admin-header h1 { font: 800 1.85rem "Montserrat"; margin: 6px 0 0; }
.search-box {
  min-width: 290px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: white;
}
.search-box input { width: 100%; min-height: 46px; border: 0; outline: 0; background: transparent; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 24px 0 22px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { flex: 0 0 auto; border: 1px solid var(--line); background: white; padding: 10px 15px; border-radius: 999px; cursor: pointer; font-weight: 800; }
.category-tab.active { background: var(--red); color: white; border-color: var(--red); }
.storefront-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card {
  border: 1px solid var(--line); background: white; border-radius: var(--radius); padding: 20px;
  box-shadow: 0 8px 30px rgba(74, 30, 20, .06); display: flex; flex-direction: column;
}
.product-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-code { color: var(--red); font-weight: 900; }
.featured-badge { color: #745000; background: #fff0ae; border-radius: 999px; padding: 5px 9px; font-size: .75rem; font-weight: 900; }
.product-card h3 { font: 800 1.18rem "Montserrat"; margin: 13px 0 6px; }
.product-card p { color: var(--muted); margin: 0 0 16px; min-height: 44px; line-height: 1.4; }
.price-list { display: grid; gap: 8px; margin-top: auto; margin-bottom: 16px; }
.price-list div { display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 8px; }
.price-list strong { color: var(--red); }
.cart-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.desktop-cart .cart-panel { position: sticky; top: 98px; }
.cart-panel-header { display: flex; justify-content: space-between; align-items: start; }
.cart-count-large { min-width: 36px; height: 36px; }
.cart-items { display: grid; gap: 10px; max-height: 430px; overflow: auto; margin: 18px 0; }
.empty-cart { padding: 38px 14px; text-align: center; color: var(--muted); }
.empty-cart span { display: block; font-size: 2.4rem; margin-bottom: 8px; }
.empty-cart strong { display: block; color: var(--ink); }
.cart-line { padding: 12px; border-radius: 14px; background: #fff8e8; }
.cart-line-top { display: flex; justify-content: space-between; gap: 12px; }
.cart-line h4 { margin: 0; }
.cart-line small { display: block; color: var(--muted); margin-top: 4px; }
.cart-line-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cart-line-actions button { border: 0; background: transparent; color: var(--red); cursor: pointer; font-weight: 800; }
.cart-summary { border-top: 1px solid var(--line); padding-top: 16px; }
.cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 14px; }
.checkout-button { width: 100%; }
.checkout-button.disabled { opacity: .45; pointer-events: none; }
.mobile-cart-bar, .cart-drawer, .drawer-backdrop { display: none; }
.modal-backdrop, .drawer-backdrop {
  position: fixed; inset: 0; background: rgba(35,31,32,.6); z-index: 70; opacity: 0; pointer-events: none; transition: .2s;
}
.product-modal {
  position: fixed; z-index: 80; left: 50%; top: 50%; transform: translate(-50%, -46%);
  width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 30px); overflow: auto;
  background: white; border-radius: 26px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.32);
  opacity: 0; pointer-events: none; transition: .2s;
}
.product-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }
.product-modal h2 { font: 800 1.65rem "Montserrat"; margin: 10px 38px 5px 0; }
.product-modal > p { color: var(--muted); }
.option-group { margin-top: 22px; }
.option-group h3 { font: 800 1rem "Montserrat"; }
.option-group small { color: var(--muted); font-family: "Nunito"; }
.variation-option, .extras-grid label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.variation-option + .variation-option { margin-top: 8px; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.extras-grid label { justify-content: flex-start; }
.notes-field { display: grid; gap: 7px; margin-top: 22px; font-weight: 800; }
.notes-field textarea, .form-grid input { border: 1px solid var(--line); border-radius: 12px; padding: 12px; outline: 0; }
.modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 22px; }
.quantity-selector { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.quantity-selector button { width: 42px; height: 46px; border: 0; background: var(--cream); cursor: pointer; }
.quantity-selector strong { min-width: 38px; text-align: center; }
.simple-header { border-bottom: 1px solid var(--line); background: white; }
.simple-header .container { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.simple-header img { width: 58px; }
.back-link { font-weight: 800; color: var(--red); }
.checkout-page { padding: 42px 0 80px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 26px; align-items: start; }
.checkout-main h1 { font: 800 2rem "Montserrat"; }
.delivery-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 15px; padding: 5px; margin: 24px 0; }
.delivery-switch button { border: 0; background: transparent; padding: 14px; border-radius: 11px; cursor: pointer; font-weight: 900; }
.delivery-switch button.active { background: white; color: var(--red); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.form-card { border: 1px solid var(--line); background: white; border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.form-card h2 { font: 800 1.15rem "Montserrat"; margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: grid; gap: 6px; font-weight: 800; }
.form-grid .full { grid-column: 1 / -1; }
.form-note, .payment-message { color: var(--muted); }
.payment-options { display: grid; gap: 10px; }
.payment-options label { border: 1px solid var(--line); border-radius: 12px; padding: 13px; font-weight: 800; }
.payment-message { margin-top: 14px; padding: 12px; border-radius: 12px; background: #fff8e8; font-size: .9rem; }
.large-button { width: 100%; min-height: 56px; }
.sticky { position: sticky; top: 24px; }
.checkout-item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checkout-item small { display: block; color: var(--muted); }
.review-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-top: 18px; }
.success-modal { position: fixed; inset: 0; z-index: 100; background: rgba(35,31,32,.7); display: grid; place-items: center; padding: 20px; }
.success-modal > div { width: min(470px, 100%); background: white; border-radius: 26px; padding: 30px; text-align: center; }
.success-modal img { width: 100px; }
.hidden { display: none !important; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); background: #f7f3ec; align-items: start; }
.admin-sidebar {
  background: #2a2323;
  color: white;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 20;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
  box-shadow: 8px 0 24px rgba(34, 22, 20, .08);
}
.admin-sidebar::-webkit-scrollbar { width: 5px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 999px; }
.admin-sidebar img { display: block; width: 110px; margin: 0 auto 28px; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar a {
  min-height: 48px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #eee4dd;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.admin-sidebar a > span:not(.nav-lock) { flex: 1; }
.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: var(--red);
  color: white;
  transform: translateX(2px);
}
.admin-nav-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}
.admin-sidebar a.active .admin-nav-icon,
.admin-sidebar a:hover .admin-nav-icon {
  opacity: 1;
}
.admin-sidebar .nav-lock {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: .82rem;
  opacity: .92;
}
.admin-main { padding: 32px; overflow: hidden; min-width: 0; }
.admin-header { display: flex; justify-content: space-between; align-items: center; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.admin-stats > div { background: white; border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.admin-stats span { display: block; color: var(--muted); }
.admin-stats strong { display: block; font: 800 1.65rem "Montserrat"; margin-top: 7px; }
.orders-board { display: grid; grid-template-columns: repeat(4, minmax(250px,1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.order-column { background: #efe9df; border-radius: 18px; padding: 12px; min-height: 420px; }
.order-column header { display: flex; justify-content: space-between; align-items: center; }
.order-column h2 { font: 800 1rem "Montserrat"; }
.order-column header span { background: white; border-radius: 999px; min-width: 28px; height: 28px; display: grid; place-items: center; }
.empty-column { background: rgba(255,255,255,.6); border: 1px dashed #cabdad; border-radius: 14px; padding: 24px 15px; text-align: center; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image img { height: 300px; }
  .storefront-layout { grid-template-columns: 1fr; }
  .desktop-cart { display: none; }
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mobile-cart-bar {
    display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px;
    justify-content: space-between; align-items: center; border: 0; border-radius: 16px;
    padding: 15px 18px; background: var(--red); color: white; box-shadow: 0 14px 38px rgba(0,0,0,.25);
  }
  .cart-drawer {
    display: flex; flex-direction: column; position: fixed; z-index: 80; top: 0; right: 0;
    width: min(430px, 92vw); height: 100%; background: white; padding: 20px;
    transform: translateX(105%); transition: .25s; box-shadow: -20px 0 50px rgba(0,0,0,.2);
  }
  .cart-drawer.open { transform: translateX(0); }
  .drawer-backdrop { display: block; }
  .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
  .drawer-header { display: flex; justify-content: space-between; align-items: center; }
  .drawer-header button { border: 0; background: var(--cream); width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; }
  .cart-drawer .cart-items { flex: 1; max-height: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-review { order: -1; }
  .sticky { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1180px); }
  .desktop-cart-button { display: none; }
  .brand img { width: 50px; height: 50px; }
  .brand span { display: none; }
  .topbar-inner { min-height: 68px; }
  .hero { padding: 38px 0; }
  .hero h1 { font-size: 2.45rem; }
  .hero-image img { height: 230px; border-radius: 22px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card p { min-height: 0; }
  .extras-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .modal-footer { align-items: stretch; flex-direction: column; }
  .modal-footer .primary-button { width: 100%; }
  .quantity-selector { align-self: center; }
  .admin-header { align-items: flex-start; gap: 15px; }
  .admin-stats { grid-template-columns: 1fr; }
}

/* V1.0.1 — ajustes de navegação, banner e painel administrativo */
.product-card.is-filtered-out {
  display: none !important;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 360px;
  box-shadow: var(--shadow);
  isolation: isolate;
  background: #7f0d12;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(108, 4, 11, .56), rgba(108, 4, 11, .08) 48%, rgba(255, 174, 0, .14)),
    linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .32));
  pointer-events: none;
}

.hero-image::after {
  content: "Pastel quentinho, crocante e feito na hora!";
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 24px;
  max-width: 440px;
  color: white;
  font: 800 clamp(1.25rem, 2.6vw, 2rem)/1.08 "Montserrat";
  text-shadow: 0 3px 18px rgba(0, 0, 0, .65);
  pointer-events: none;
}

.hero-image img {
  border: 0 !important;
  border-radius: 0 !important;
  filter: saturate(1.22) contrast(1.10) brightness(.86) sepia(.08);
  transform: scale(1.045);
  transition: transform .5s ease;
}

.hero-image:hover img {
  transform: scale(1.075);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-sidebar a {
  cursor: pointer;
}

.admin-content-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 28px rgba(74, 30, 20, .05);
}

.admin-content-card h2 {
  margin: 0 0 8px;
  font: 800 1.2rem "Montserrat";
}

.admin-content-card p {
  margin: 0;
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fffdf8;
}

.admin-placeholder-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .hero-image {
    min-height: 230px;
  }

  .hero-image::after {
    left: 18px;
    right: 18px;
    bottom: 17px;
    font-size: 1.2rem;
  }
}

/* V1.1.0 — pedidos, acompanhamento e gestão do cardápio */
.tracking-page { padding: 42px 0 80px; }
.tracking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 26px; align-items: start; }
.tracking-page h1 { font: 800 2rem "Montserrat"; margin-bottom: 8px; }
.tracking-intro { color: var(--muted); }
.tracking-timeline { display: grid; gap: 12px; margin: 26px 0; }
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  opacity: .55;
}
.timeline-step.completed, .timeline-step.current { opacity: 1; }
.timeline-step.current { border-color: var(--red); box-shadow: 0 9px 26px rgba(215,25,32,.12); }
.timeline-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cream); color: var(--red); font-weight: 900;
}
.timeline-step.completed .timeline-icon, .timeline-step.current .timeline-icon { background: var(--red); color: white; }
.timeline-step h3 { margin: 0; font: 800 1rem "Montserrat"; }
.timeline-step p { margin: 5px 0 0; color: var(--muted); }
.tracking-notifications { margin-top: 20px; }
.notification-row small { display: block; color: var(--muted); margin-top: 5px; }

.order-card {
  background: white; border: 1px solid var(--line); border-radius: 15px;
  padding: 14px; margin-bottom: 10px; box-shadow: 0 7px 20px rgba(74,30,20,.05);
}
.order-card-header, .order-card-total { display: flex; justify-content: space-between; gap: 12px; }
.order-card h3 { margin: 0; font: 800 1rem "Montserrat"; }
.order-card small { color: var(--muted); }
.order-card-items { margin: 12px 0; padding: 10px; background: #fff8e8; border-radius: 11px; font-size: .9rem; }
.order-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.order-card-actions select, .order-card-actions input {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px; min-width: 0;
}
.order-card-actions button { border: 0; background: var(--red); color: white; border-radius: 10px; padding: 9px 12px; cursor: pointer; font-weight: 800; }
.whatsapp-simulated { margin-top: 9px; padding: 8px; border-radius: 9px; background: #e9f8ee; color: #176b38; font-size: .8rem; }

.admin-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.product-admin-table { display: grid; gap: 10px; margin-top: 20px; }
.product-admin-row {
  display: grid; grid-template-columns: 70px minmax(180px,1fr) 150px 160px 110px;
  align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; background: #fffdf8;
}
.product-admin-row strong { font-family: "Montserrat"; }
.product-admin-status { display: flex; gap: 5px; flex-wrap: wrap; }
.status-chip { padding: 5px 8px; border-radius: 999px; font-size: .74rem; font-weight: 900; background: #ece7df; }
.status-chip.active { background: #e6f6ea; color: #16703a; }
.status-chip.sold-out { background: #feeaea; color: #a4161a; }
.product-admin-row button { border: 0; background: var(--cream); color: var(--red); border-radius: 10px; padding: 9px; cursor: pointer; font-weight: 900; }
.product-admin-modal textarea { resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.product-flags { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-weight: 800; }
.danger-button { border: 0; border-radius: 12px; padding: 12px 18px; color: #a4161a; background: #feeaea; cursor: pointer; font-weight: 900; }

@media (max-width: 960px) {
  .tracking-grid { grid-template-columns: 1fr; }
  .product-admin-row { grid-template-columns: 55px 1fr 100px; }
  .product-admin-row .product-category, .product-admin-row .product-status-column { display: none; }
}
@media (max-width: 640px) {
  .admin-card-header { align-items: stretch; flex-direction: column; }
  .product-admin-row { grid-template-columns: 50px 1fr auto; }
}

/* V1.1.2 — separação do histórico técnico e novos status de retirada */
.customer-latest-update {
  margin-top: 20px;
  border-left: 5px solid var(--red);
}
.customer-latest-update h2 {
  margin: 6px 0 8px;
  font: 800 1.15rem "Montserrat";
}
.customer-latest-update p {
  margin: 0;
  color: var(--muted);
}
.notification-admin-card {
  margin-top: 24px;
}
.notification-admin-card .admin-list {
  max-height: 480px;
  overflow-y: auto;
  margin-top: 18px;
}

/* V1.1.3 — pausa operacional e correção do checkout de entrega */
.store-pause-banner {
  background: #2b211d;
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.store-pause-banner .container {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.store-pause-banner strong {
  color: var(--gold);
  font-family: "Montserrat";
}
button.orders-paused {
  background: #177245;
}
button:disabled,
.add-product:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.primary-button.disabled {
  pointer-events: none;
  opacity: .55;
}

/* V1.2.0 — instalação PWA */
.pwa-install-card {
  margin: 14px auto 0;
  width: min(1120px, calc(100% - 28px));
  background: #fffdf8;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(74, 30, 20, .08);
}
.pwa-install-card strong {
  display: block;
  font-family: "Montserrat";
}
.pwa-install-card span {
  color: var(--muted);
  font-size: .9rem;
}
@media (max-width: 640px) {
  .pwa-install-card {
    align-items: stretch;
    flex-direction: column;
  }
}

/* V1.2.1 — status dinâmico e aviso de instalação móvel */
.store-status {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pwa-install-card [data-install-instructions] {
  line-height: 1.45;
}

/* V1.2.3 — funcionamento automático/manual */
.store-settings-form {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}
.settings-switch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
}
.settings-switch input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.settings-switch strong,
.settings-switch small {
  display: block;
}
.settings-switch small {
  margin-top: 4px;
  color: var(--muted);
}
.operating-hours-fields {
  transition: opacity .2s ease;
}
.operating-hours-fields.settings-disabled {
  opacity: .5;
}
.settings-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.settings-actions span {
  color: var(--muted);
  font-size: .92rem;
}
.store-operation-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: .82rem;
  background: #eee7e2;
  color: #554b46;
}
.store-operation-chip.open {
  background: #dff5e8;
  color: #146c3d;
}
.store-operation-chip.closed {
  background: #fbe3e3;
  color: #a52323;
}


/* V1.2.6 — identidade visual e capa configuráveis */
.identity-settings-form {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}
.settings-subsection {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf9;
}
.settings-subsection h3 {
  margin: 0 0 4px;
  font-family: "Montserrat";
}
.settings-subsection > div > p {
  margin: 0;
}
.image-setting-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(240px, 1fr);
  align-items: center;
  gap: 22px;
}
.image-preview-card {
  display: grid;
  gap: 9px;
}
.image-preview-card > span {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}
.identity-image-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 170px;
  border: 1px dashed #cabbb1;
  border-radius: 16px;
  background: #f7eee8;
}
.identity-image-preview img {
  display: block;
  max-width: 100%;
}
.identity-image-preview.logo-preview img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}
.identity-image-preview.hero-preview img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.image-upload-controls {
  display: grid;
  gap: 10px;
}
.image-upload-controls input[type="file"] {
  margin-top: 8px;
}
.image-upload-controls small {
  color: var(--muted);
}
.inline-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}
.inline-checkbox input {
  width: 18px;
  height: 18px;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 15px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
@media (max-width: 760px) {
  .image-setting-grid {
    grid-template-columns: 1fr;
  }
  .identity-image-preview.hero-preview img {
    height: 200px;
  }
}

.product-flags label[title] { cursor: help; }


/* CardPed Online V1.3.0 */
.hero-image {
  position: relative;
}
.hero-image > img {
  position: relative;
  z-index: 0;
}
.hero-image::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 42% 0 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .62));
}
.hero-image-overlay {
  position: absolute;
  z-index: 3;
  max-width: calc(100% - 40px);
  color: var(--hero-overlay-color, #fff);
  font-family: "Montserrat";
  font-size: var(--hero-overlay-font-size, 32px);
  font-weight: 900;
  line-height: 1.05;
  white-space: pre-line;
}
.hero-image-overlay-top-left { top: 20px; left: 22px; text-align: left; }
.hero-image-overlay-top-center { top: 20px; left: 50%; transform: translateX(-50%); text-align: center; }
.hero-image-overlay-top-right { top: 20px; right: 22px; text-align: right; }
.hero-image-overlay-center-left { top: 50%; left: 22px; transform: translateY(-50%); text-align: left; }
.hero-image-overlay-center { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.hero-image-overlay-center-right { top: 50%; right: 22px; transform: translateY(-50%); text-align: right; }
.hero-image-overlay-bottom-left { bottom: 20px; left: 22px; text-align: left; }
.hero-image-overlay-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); text-align: center; }
.hero-image-overlay-bottom-right { bottom: 20px; right: 22px; text-align: right; }
.hero-image-effect-none { text-shadow: none; -webkit-text-stroke: 0; }
.hero-image-effect-shadow { text-shadow: 0 3px 14px rgba(0, 0, 0, .92); }
.hero-image-effect-outline { text-shadow: none; -webkit-text-stroke: 1.5px rgba(0, 0, 0, .92); }
.hero-image-effect-both {
  text-shadow: 0 3px 14px rgba(0, 0, 0, .92);
  -webkit-text-stroke: 1px rgba(0, 0, 0, .8);
}
.admin-global-status-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 16px;
  background: var(--admin-banner-color, #157a3d);
  color: #fff;
  font-size: .92rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
}
.admin-global-status-banner.closed { background: #9f2020; }
.admin-global-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
}
.identity-settings-form select {
  width: 100%;
  min-height: 45px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
@media (max-width: 760px) {
  .hero-image-overlay {
    left: 16px;
    right: 16px;
    bottom: 15px;
    font-size: min(var(--hero-overlay-font-size, 32px), 34px);
  }
}


/* CardPed Online V1.4.0 */
.storefront-theme {
  min-height: 100vh;
  background: var(--brand-background, #fff8f2);
  color: var(--brand-text, #2d211d);
}
.storefront-theme .hero {
  background: var(--brand-primary, #d71920);
}
.storefront-theme .eyebrow,
.storefront-theme .section-kicker {
  color: var(--brand-secondary, #ffcf28);
}
.storefront-theme .primary-button,
.storefront-theme .mobile-cart-bar {
  background: var(--brand-button, #ffcf28);
}
.powered-by-cardped {
  padding: 22px;
  text-align: center;
  color: var(--brand-text, #2d211d);
  font-size: .84rem;
  opacity: .72;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.integration-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
}
.integration-card p {
  margin: 0;
  color: var(--muted);
}
.payment-settings-flags {
  align-items: flex-start;
}
.color-settings-grid input[type="color"],
.identity-settings-form input[type="color"] {
  min-height: 48px;
  padding: 4px;
  cursor: pointer;
}
@media (max-width: 850px) {
  .integration-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .hero-image-overlay {
    max-width: calc(100% - 28px);
    font-size: min(var(--hero-overlay-font-size, 32px), 34px);
  }
  .hero-image-overlay-top-left,
  .hero-image-overlay-center-left,
  .hero-image-overlay-bottom-left { left: 14px; }
  .hero-image-overlay-top-right,
  .hero-image-overlay-center-right,
  .hero-image-overlay-bottom-right { right: 14px; }
  .hero-image-overlay-top-left,
  .hero-image-overlay-top-center,
  .hero-image-overlay-top-right { top: 14px; }
  .hero-image-overlay-bottom-left,
  .hero-image-overlay-bottom-center,
  .hero-image-overlay-bottom-right { bottom: 14px; }
}


/* CardPed Online V1.5.0 */
.system-version-chip,
.pending-orders-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: #f1e7df;
  font-size: .78rem;
  font-weight: 800;
}
.admin-notification-controls,
.report-export-actions,
.customer-order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.report-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px;
  gap: 12px;
  margin: 22px 0 14px;
}
.report-filters input,
.report-filters select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.orders-history-table {
  display: grid;
  gap: 10px;
}
.history-order-row,
.customer-order-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.history-order-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 80px 160px minmax(140px, 1fr) 100px 140px 110px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.history-order-details,
.customer-order-details {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fffaf6;
}
.history-timeline {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  font-size: .86rem;
}
.customer-orders-page {
  min-height: 100vh;
  background: #fff8f2;
}
.simple-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px max(20px, calc((100vw - 1100px) / 2));
  background: #fff;
  border-bottom: 1px solid #eadbd2;
}
.simple-page-header h1 {
  margin: 3px 0 0;
}
.customer-orders-content {
  width: min(900px, calc(100% - 32px));
  margin: 28px auto;
}
.customer-orders-list {
  display: grid;
  gap: 14px;
}
.customer-order-summary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.customer-order-summary div {
  display: grid;
  gap: 5px;
}
.customer-order-summary span {
  color: var(--muted);
}
.customer-order-status {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 11px;
  background: #e4f5e9;
  font-weight: 800;
}
.system-version-footer,
.admin-version-footer {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
}
.my-orders-link {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .history-order-summary {
    grid-template-columns: 70px 1fr 110px;
  }
  .history-order-summary span:nth-child(2),
  .history-order-summary span:nth-child(4),
  .history-order-summary span:nth-child(5) {
    display: none;
  }
}
@media (max-width: 650px) {
  .simple-page-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .report-filters {
    grid-template-columns: 1fr;
  }
  .my-orders-link {
    padding: 8px 10px;
    font-size: .8rem;
  }
}


/* Ajuste V1.5.0 — botão Meus pedidos na capa */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-height: 46px;
  margin: 0;
}
.hero-my-orders-button {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero-my-orders-button:hover {
  background: rgba(255, 255, 255, .2);
}
@media (max-width: 600px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
    padding-inline: 12px;
    text-align: center;
  }
}
@media (max-width: 390px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
}


/* Ajuste V1.5.0.2 — botões da capa com dimensões iguais */
.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
  width: auto;
  margin-top: 22px;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 150px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  min-height: 46px;
  margin: 0;
  padding: 11px 14px;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.hero-my-orders-button {
  border: 1px solid rgba(255, 255, 255, .82);
  background: transparent;
  color: #fff;
}

.hero-my-orders-button:hover {
  background: rgba(255, 255, 255, .12);
}

@media (max-width: 600px) {
  .hero-actions {
    display: flex;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    padding-inline: 10px;
  }
}

@media (max-width: 340px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }
}


/* Ajuste V1.5.0.3 — diagnóstico e teste de notificações */
.notification-feedback {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f3eee9;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.25;
}

.notification-feedback.success {
  background: #e5f5e9;
  color: #176b36;
}

.notification-feedback.warning {
  background: #fff4d8;
  color: #7a5610;
}

.notification-feedback.error {
  background: #fde7e7;
  color: #9b2020;
}

.customer-notification-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
  max-width: 330px;
}

@media (max-width: 650px) {
  .customer-notification-actions {
    width: 100%;
    max-width: none;
    justify-items: stretch;
  }

  .customer-notification-actions .notification-feedback {
    width: 100%;
  }
}

.integration-card-featured{grid-column:1/-1}.integration-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.integration-form{display:grid;gap:16px;margin-top:14px}.payment-pix-panel{display:grid;justify-items:start;gap:12px;margin:18px 0 24px;padding:20px;border:1px solid rgba(0,0,0,.1);border-radius:18px;background:#fff}.payment-pix-qr{width:min(260px,100%);aspect-ratio:1;object-fit:contain;border-radius:12px}.payment-pix-code{width:100%;min-height:96px;font-family:ui-monospace,Consolas,monospace;font-size:.82rem}.payment-pix-actions{display:flex;flex-wrap:wrap;gap:10px}@media(max-width:650px){.payment-pix-actions{width:100%}.payment-pix-actions>*{flex:1 1 100%}}

/* V1.7.0 — impressão opcional */
.printing-settings-panel form{width:100%}.secondary-order-button{background:#fff!important;color:#332722!important;border:1px solid #d9cec8!important}.order-card-actions{gap:.45rem}.order-card-actions button{min-width:0}.printing-settings-panel small{display:block;color:#756b66;margin-top:.25rem}
@media(max-width:760px){.printing-settings-panel .form-grid{grid-template-columns:1fr}}


/* V1.7.1 — cartão online Mercado Pago */
.card-payment-area{margin-top:16px;padding:16px;border:1px solid rgba(0,0,0,.1);border-radius:16px;background:#fff}.card-payment-loading{padding:12px 0;color:#6b7280;font-weight:700}.payment-card-status{margin-top:12px;padding:12px 14px;border-radius:12px;font-weight:800}.payment-card-status.success{background:#e8f7ed;color:#176b36}.payment-card-status.warning{background:#fff5d6;color:#7a5600}.payment-card-status.error{background:#fde8e8;color:#9b1c1c}#cardPaymentBrick_container{min-height:120px}@media(max-width:650px){.card-payment-area{padding:12px}}


/* V1.7.2 — Cardápio visual opcional */
.visual-catalog-enabled .products-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}
.visual-catalog-enabled .product-card{position:relative;padding:0;overflow:hidden}
.product-card-content{display:grid;gap:12px;padding:18px;height:100%}
.visual-catalog-disabled .product-card-content{display:contents}
.product-image-button{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.product-image{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.product-image-placeholder{width:100%;aspect-ratio:1/1;display:grid;place-content:center;gap:6px;text-align:center;background:linear-gradient(135deg,rgba(255,207,40,.2),rgba(215,25,32,.08));color:var(--brand-text)}
.product-image-placeholder span{font-size:3rem}
.favorite-button{position:absolute;z-index:4;top:12px;right:12px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 4px 16px rgba(0,0,0,.15);font-size:1.55rem;cursor:pointer}
.favorite-button.active{color:#d71920}
.product-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.promotion-badge{background:#fff0c2;color:#805600}.dietary-badge{background:#e5f5e9;color:#176b36}.spicy-badge{background:#ffe4df;color:#9a2417}.sold-out-badge{background:#eee;color:#555}
.product-modal-image-wrap{margin:-6px -6px 18px;overflow:hidden;border-radius:16px}
.product-modal-image-wrap img{width:100%;max-height:360px;object-fit:cover;display:block}
.image-zoom-backdrop{position:fixed;inset:0;z-index:1100;background:rgba(20,12,10,.72);opacity:0;pointer-events:none;transition:opacity .2s ease}
.image-zoom-backdrop.open{opacity:1;pointer-events:auto}
.image-zoom-modal{position:fixed;z-index:1101;inset:50% auto auto 50%;transform:translate(-50%,-47%) scale(.97);width:min(92vw,680px);max-height:90vh;overflow:auto;padding:18px;border-radius:22px;background:#fff;opacity:0;pointer-events:none;transition:.2s ease}
.image-zoom-modal.open{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
.image-zoom-modal>img{width:100%;max-height:65vh;object-fit:contain;border-radius:16px;background:#f5f1ed}
.product-image-admin-section{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:center}
.product-image-admin-preview{aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;border:1px dashed rgba(0,0,0,.2);border-radius:14px;background:#faf7f3}
.product-image-admin-preview img{width:100%;height:100%;object-fit:cover}
.product-admin-description{display:flex;align-items:center;gap:10px}
.product-admin-thumb{width:48px;height:48px;flex:0 0 auto;object-fit:cover;border-radius:9px}
.status-chip.warning{background:#fff0c2;color:#805600}
@media(max-width:650px){
.visual-catalog-enabled .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.visual-catalog-enabled .product-card-content{padding:13px;gap:9px}
.visual-catalog-enabled .product-card h3{font-size:1rem}
.visual-catalog-enabled .product-card p{font-size:.84rem}
.visual-catalog-enabled .product-badges{justify-content:flex-start}
.visual-catalog-enabled .featured-badge{font-size:.68rem}
.favorite-button{width:36px;height:36px;top:8px;right:8px}
.product-image-admin-section{grid-template-columns:1fr}
.product-image-admin-preview{max-width:180px}
}


/* V1.7.2.5 — Reimpressão no histórico */
.history-order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.history-order-actions .secondary-button {
  min-width: 170px;
}

@media (max-width: 650px) {
  .history-order-actions .secondary-button {
    width: 100%;
  }
}


/* V1.7.2.6 — Banner operacional dinâmico */
.admin-global-status-banner.closed {
  background: #a4161a !important;
}

.admin-global-status-banner.paused {
  background: #b45309 !important;
}

.admin-global-status-banner.closed .admin-global-status-dot,
.admin-global-status-banner.paused .admin-global-status-dot {
  animation: none;
}

.admin-global-status-banner:not(.closed):not(.paused) .admin-global-status-dot {
  animation: admin-status-pulse 1.8s infinite;
}

@keyframes admin-status-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(255,255,255,.18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255,255,255,.05);
  }
}


/* V1.7.2.7 — Degradê configurável da capa */
.hero-image.hero-gradient-enabled::after {
  inset: 18% 0 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.12) 24%,
    rgba(0,0,0,.48) 68%,
    rgba(0,0,0,.76) 100%
  );
}

.hero-image.hero-gradient-disabled::after {
  display: none;
}

@media (max-width: 760px) {
  .hero-image.hero-gradient-enabled::after {
    inset: 30% 0 0;
  }
}


/* RC 1.0 — Entrega e endereço */
.cep-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.cep-input-row .secondary-button { min-width: 84px; }
.delivery-quote-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4efe9;
  border: 1px solid rgba(0,0,0,.08);
  font-size: .92rem;
}
.delivery-quote-box.loading { background: #fff8dd; }
.delivery-quote-box.success { background: #e5f5e9; color: #176b36; }
.delivery-quote-box.error { background: #ffe8e5; color: #991b1b; }
.review-values {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
.review-values > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.delivery-tiers-editor { width: 100%; }
.delivery-tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.delivery-settings-panel { margin-top: 20px; }
@media (max-width: 650px) {
  .delivery-tier-row { grid-template-columns: 1fr 1fr; }
  .delivery-tier-row button { grid-column: 1 / -1; }
  .cep-input-row { grid-template-columns: 1fr; }
}


/* RC 1.0.1 — Diagnóstico de entrega */
[data-test-delivery]:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

[data-delivery-feedback] {
  display: block;
  line-height: 1.45;
  overflow-wrap: anywhere;
}


/* RC 1.0.4 — Carrinho mobile */
.mobile-cart-bar {
  z-index: 95 !important;
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.mobile-cart-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-cart-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.cart-drawer {
  z-index: 110 !important;
}

.drawer-backdrop {
  z-index: 105 !important;
}

body.cart-drawer-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .mobile-cart-bar {
    min-height: 64px;
  }
}


/* RC 1.0.5 — Diagnóstico de entrega */
.delivery-diagnostic-panel {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,.1);
}

.delivery-diagnostic-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 16px;
  background: #fffdf9;
}

.diagnostic-status {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.diagnostic-status.success {
  background: #e5f5e9;
  color: #176b36;
}

.diagnostic-status.error {
  background: #ffe8e5;
  color: #991b1b;
}

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

.diagnostic-grid section {
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: white;
}

.diagnostic-grid h4,
.diagnostic-grid p {
  margin: 0 0 7px;
}

.diagnostic-grid code {
  overflow-wrap: anywhere;
  font-size: .78rem;
}

.delivery-diagnostic-result pre {
  white-space: pre-wrap;
  font-size: .8rem;
}

@media (max-width: 700px) {
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }
}


/* RC 1.0.6 — Carrinho responsivo */
.desktop-cart {
  scroll-margin-top: 110px;
  outline: none;
}

.desktop-cart.cart-attention .cart-panel {
  animation: desktop-cart-attention 1.6s ease;
}

@keyframes desktop-cart-attention {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(215, 25, 32, 0);
  }
  35% {
    transform: scale(1.018);
    box-shadow: 0 0 0 6px rgba(215, 25, 32, .16);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(215, 25, 32, 0);
  }
}

@media (min-width: 961px) {
  body.cart-drawer-open {
    overflow: auto !important;
  }

  .cart-drawer,
  .drawer-backdrop {
    display: none !important;
  }
}
.protected-stat{position:relative}.protected-stat button{position:absolute;right:12px;top:50%;transform:translateY(-50%);border:0;background:transparent;cursor:pointer;font-size:1.15rem}.admin-auth-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:300}.admin-auth-modal{position:fixed;z-index:301;left:50%;top:50%;transform:translate(-50%,-50%);width:min(420px,calc(100% - 28px));background:#fff;border-radius:20px;padding:24px;box-shadow:0 30px 80px rgba(0,0,0,.3)}.admin-auth-modal form{display:grid;gap:14px}.admin-auth-modal label{display:grid;gap:7px;font-weight:800}.admin-auth-modal input{border:1px solid var(--line);border-radius:12px;padding:12px}
.admin-auth-modal:not(.hidden){display:block!important}
.admin-auth-backdrop:not(.hidden){display:block!important}

.admin-sidebar a[data-admin-target="integracoes"],
.admin-sidebar a[data-admin-target="configuracoes"]{display:flex;align-items:center;justify-content:space-between;gap:10px}
.nav-lock{font-size:.95rem}
.product-option-group-admin{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fffaf3}
.product-option-group-admin h3{margin-top:0}


/* RC 1.0.16 — modal longo e resumo da entrega */
.tracking-financial-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tracking-financial-summary > div,
.customer-order-financials > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tracking-financial-summary .review-total,
.customer-order-financials .customer-order-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}

.customer-order-financials {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  body.product-modal-open .mobile-cart-bar {
    display: none !important;
  }

  .product-modal {
    padding-bottom: 0;
  }

  .product-modal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 22px -26px 0;
    padding: 14px 26px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, .08);
  }

  .product-modal .modal-footer .primary-button {
    min-height: 54px;
  }
}


/* RC 1.0.17 — histórico resiliente */
.customer-orders-temporary-error {
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf3;
}

.customer-orders-temporary-error strong {
  display: block;
  margin-bottom: 8px;
}

.customer-orders-temporary-error p {
  margin: 0;
  color: var(--muted);
}


/* RC 1.0.18 — indicadores do dia */
.admin-stat-card {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.admin-stat-link {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.admin-stat-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.admin-stat-link span {
  display: block;
  color: var(--muted);
}

.admin-stat-link strong {
  display: block;
  font: 800 1.65rem "Montserrat";
  margin-top: 7px;
}

.admin-stat-link small {
  display: block;
  margin-top: 7px;
  color: var(--red);
  font-weight: 800;
}

.order-card-confirmation {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.estimate-field {
  display: grid;
  gap: 4px;
}

.estimate-field span {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 800;
}

.estimate-field input {
  width: 100%;
  min-width: 0;
}

.order-card-confirmation > button {
  min-height: 39px;
}


/* RC 1.0.19 — tempo estimado e pendências */
.order-card-confirmation {
  grid-template-columns: 92px minmax(96px, auto);
}

.estimate-field input {
  max-width: 92px;
  padding: 7px 8px;
  text-align: center;
}

.order-card-confirmation > button {
  background: var(--red) !important;
  color: #fff !important;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  padding: 0 14px;
  cursor: pointer;
}

.pending-orders-link {
  border: 0;
  cursor: pointer;
}

.pending-orders-link:hover {
  text-decoration: underline;
}


/* RC 1.0.24 — disponibilidade por categoria */
.category-availability-panel {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf1;
}
.category-availability-panel > div:first-child {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}
.category-availability-panel small { color: var(--muted); }
.category-availability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.category-availability-button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  min-width: 150px;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  text-align: left;
  transition: .18s ease;
}
.category-availability-button span { font-weight: 900; }
.category-availability-button small { font-size: .72rem; }
.category-availability-button strong { font-size: .75rem; }
.category-availability-button.enabled {
  border-color: #a9d9b9;
  background: #effaf2;
  color: #176b38;
}
.category-availability-button.disabled {
  border-color: #efb7b7;
  background: #fff1f1;
  color: #a4161a;
}
.category-availability-button:disabled { opacity: .55; cursor: wait; }

/* RC 1.0.24 — atalhos de cadastro */
.product-admin-footer {
  gap: 10px;
  flex-wrap: wrap;
}
.product-quick-actions {
  display: flex;
  gap: 8px;
  flex: 1 1 330px;
}
.product-quick-actions .secondary-button {
  width: auto;
  flex: 1;
}

/* RC 1.0.24 — feedback de processamento do pedido */
.checkout-submit-progress {
  position: relative;
  overflow: hidden;
  gap: 10px;
}
.checkout-submit-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: cardped-checkout-spin .72s linear infinite;
}
.checkout-submit-progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 38%;
  background: rgba(255,255,255,.92);
  transform: translateX(-120%);
  display: none;
  border-radius: 999px;
}
.checkout-submit-progress.is-processing .checkout-submit-spinner,
.checkout-submit-progress.is-processing .checkout-submit-progress-bar {
  display: block;
}
.checkout-submit-progress.is-processing .checkout-submit-progress-bar {
  animation: cardped-checkout-progress 1.15s ease-in-out infinite;
}
.checkout-submit-progress.is-processing {
  cursor: wait;
  opacity: .94;
}
@keyframes cardped-checkout-spin {
  to { transform: rotate(360deg); }
}
@keyframes cardped-checkout-progress {
  0% { transform: translateX(-120%); }
  55% { transform: translateX(165%); }
  100% { transform: translateX(310%); }
}
@media (max-width: 620px) {
  .category-availability-button { min-width: calc(50% - 5px); }
  .product-quick-actions { flex-basis: 100%; flex-direction: column; }
  .product-quick-actions .secondary-button { width: 100%; }
}


/* RC 1.0.26 — tempo estimado visível para operação e cliente */
.order-estimate-display {
  margin: 9px 0 2px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff4d8;
  border: 1px solid #efd9a4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .78rem;
}
.order-estimate-display span {
  color: #6d5b43;
  font-weight: 700;
}
.order-estimate-display strong {
  color: var(--brand-primary, #d71920);
  font-size: .9rem;
}

.tracking-estimate {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #efd9a4;
  border-radius: 16px;
  background: #fff4d8;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tracking-estimate > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 1.1rem;
}
.tracking-estimate div {
  display: grid;
  gap: 2px;
}
.tracking-estimate small {
  color: #7b6a55;
  font-weight: 700;
}
.tracking-estimate strong {
  color: var(--brand-primary, #d71920);
  font-size: 1.15rem;
}
.tracking-estimate.hidden {
  display: none;
}

.customer-order-estimate {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4d8;
  border: 1px solid #efd9a4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.customer-order-estimate span {
  color: #6d5b43;
  font-weight: 700;
}
.customer-order-estimate strong {
  color: var(--brand-primary, #d71920);
}


/* RC 1.0.27 — menu administrativo fixo e iconográfico */
@media (min-width: 961px) {
  .admin-sidebar {
    position: sticky;
    top: 0;
  }
}
