@import url("./design-system/index.css");

.food-shot {
  background-image: url("./food-sprite-2026.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.food-0 { background-position: 0 0; }
.food-1 { background-position: 50% 0; }
.food-2 { background-position: 100% 0; }
.food-3 { background-position: 0 100%; }
.food-4 { background-position: 50% 100%; }
.food-5 { background-position: 100% 100%; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-lockup__mark {
  width: 38px;
  color: var(--dv-orange-500);
}

.brand-lockup strong {
  color: var(--dv-petrol-900);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.brand-lockup strong span {
  color: var(--dv-orange-500);
}

.app-header {
  position: relative;
  z-index: 60;
  display: flex;
  min-height: 64px;
  align-items: center;
  border-bottom: 1px solid var(--dv-line);
  background: rgb(248 246 241 / 94%);
  backdrop-filter: blur(18px);
}

.app-header--store {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 520px) auto;
  justify-content: space-between;
  gap: var(--dv-space-6);
  min-height: 84px;
  padding: 0 clamp(32px, 4vw, 48px);
}

.app-header--store .dv-search {
  min-height: 48px;
  border-radius: var(--dv-radius-pill);
}

.app-header--store .dv-search kbd {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius-pill);
  color: var(--dv-text-soft);
  background: var(--dv-paper-50);
  font: inherit;
  font-size: 10px;
}

.delivery-address {
  display: grid;
  grid-template-columns: 20px 1fr 16px;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--dv-text);
  background: transparent;
  text-align: left;
}

.delivery-address > svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.delivery-address span {
  display: flex;
  flex-direction: column;
}

.delivery-address small {
  color: var(--dv-text-muted);
  font-size: 10px;
}

.delivery-address strong {
  font-size: 12px;
}

.header-cart {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 7px 0 15px;
  border-radius: 8px;
  color: #fff;
  background: var(--dv-petrol-900);
  font-size: var(--dv-text-body-sm);
  font-weight: 800;
}

.header-cart svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-cart b {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  padding-inline: 7px;
  border-radius: var(--dv-radius-pill);
  color: var(--dv-petrol-900);
  background: var(--dv-orange-500);
  font-size: 11px;
}

/* Store */

.store-page {
  padding-bottom: var(--dv-space-16);
}

.merchant-hero {
  display: grid;
  width: 100%;
  min-height: 248px;
  grid-template-columns: 52% 48%;
  overflow: hidden;
  margin: 0;
  border-bottom: 1px solid var(--dv-line);
  color: var(--dv-text);
  background: var(--dv-surface);
}

.merchant-hero__content {
  display: flex;
  justify-content: center;
  padding: 30px clamp(36px, 4.5vw, 68px);
  flex-direction: column;
}

.merchant-hero__title {
  display: flex;
  align-items: center;
  gap: var(--dv-space-4);
}

.merchant-avatar {
  display: grid;
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--dv-petrol-800);
  border-radius: 12px;
  color: var(--dv-orange-500);
  background: var(--dv-petrol-900);
  font-size: 1.75rem;
  font-weight: 850;
}

.merchant-hero h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.merchant-status {
  display: flex;
  align-items: center;
  gap: var(--dv-space-2);
  margin-top: 9px;
  color: var(--dv-text);
  font-size: var(--dv-text-body);
}

.merchant-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57c779;
}

.merchant-status span {
  color: var(--dv-text-muted);
}

.merchant-facts {
  display: flex;
  gap: clamp(28px, 4vw, 58px);
  margin-top: 28px;
}

.merchant-fact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.merchant-fact > svg {
  width: 30px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--dv-petrol-900);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.merchant-fact p {
  display: flex;
  margin: 0;
  flex-direction: column;
}

.merchant-fact strong {
  color: var(--dv-text);
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}

.merchant-fact span {
  margin-top: 3px;
  color: var(--dv-text-muted);
  font-size: var(--dv-text-body-sm);
}

.merchant-hero__image {
  min-height: 248px;
  background-color: var(--dv-petrol-800);
}

.category-tabs {
  position: sticky;
  z-index: 50;
  top: 84px;
  min-height: 68px;
  border-bottom: 1px solid var(--dv-line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(18px);
}

.category-tabs__track {
  display: flex;
  width: 100%;
  height: 68px;
  align-items: stretch;
  gap: 42px;
  margin: 0 auto;
  padding: 0 36px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs__track::-webkit-scrollbar {
  display: none;
}

.category-tabs__item {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  align-items: center;
  gap: 10px;
  color: var(--dv-text-muted);
  background: transparent;
  font-size: var(--dv-text-body);
  font-weight: 700;
}

.category-tabs__item {
  display: flex;
}

.category-tabs__item svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.category-tabs__item::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: transparent;
}

.category-tabs__item.is-active {
  color: var(--dv-text);
}

.category-tabs__item.is-active::after {
  background: var(--dv-orange-500);
}

.store-shell {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
  gap: 0;
  align-items: stretch;
  margin: 0;
  background: var(--dv-surface);
}

.catalog {
  min-width: 0;
  padding: 40px 36px 56px;
}

.catalog__header {
  display: flex;
  min-height: 38px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.catalog__header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
}

.catalog__header h2 svg {
  width: 18px;
  fill: none;
  stroke: var(--dv-orange-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.catalog__header span {
  color: var(--dv-text-muted);
  font-size: var(--dv-text-body-sm);
}

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

.product-card {
  display: grid;
  min-height: 200px;
  grid-template-columns: 172px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius-card);
  background: var(--dv-surface);
  transition:
    border-color 120ms ease,
    transform 120ms ease;
}

.product-card:hover {
  border-color: var(--dv-line-strong);
  transform: translateY(-1px);
}

.product-card__image {
  position: relative;
  min-height: 198px;
}

.product-card__image > span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: var(--dv-radius-pill);
  color: var(--dv-petrol-900);
  background: var(--dv-orange-500);
  font-size: 9px;
  font-weight: 850;
}

.product-card__content {
  display: flex;
  min-width: 0;
  padding: 26px 22px 20px;
  flex-direction: column;
}

.product-card h3 {
  margin: 0;
  font-size: 1.075rem;
  letter-spacing: -0.025em;
}

.product-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--dv-text-muted);
  font-size: var(--dv-text-body);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card footer strong {
  font-size: 1.1rem;
}

.product-card__add {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--dv-petrol-900);
  background: var(--dv-orange-500);
}

.product-card__add svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.catalog-empty {
  padding: var(--dv-space-12);
  border: 1px dashed var(--dv-line-strong);
  border-radius: var(--dv-radius-card);
  color: var(--dv-text-muted);
  text-align: center;
}

.catalog-more {
  display: flex;
  min-width: 196px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 28px auto 0;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius-control);
  background: var(--dv-surface);
  font-size: var(--dv-text-body);
  font-weight: 700;
}

.cart-sidebar {
  position: sticky;
  top: 152px;
  max-height: calc(100vh - 152px);
  overflow-y: auto;
  padding: 38px 38px 32px;
  border: 0;
  border-left: 1px solid var(--dv-line);
  border-radius: 0;
  background: var(--dv-surface);
}

.drawer-handle,
.drawer-close {
  display: none;
}

.cart-sidebar__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.cart-sidebar__header h2 {
  font-size: 1.5rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--dv-space-3);
  padding: 20px 0;
  border-bottom: 1px solid var(--dv-line);
}

.cart-line__image {
  width: 62px;
  height: 62px;
  border-radius: 8px;
}

.cart-line__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.cart-line__copy > strong,
.cart-line > b {
  font-size: var(--dv-text-body-sm);
}

.cart-line__copy small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--dv-text-muted);
  font-size: var(--dv-text-label);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 78px;
  margin-top: 4px;
}

.cart-line {
  position: relative;
}

.quantity-control button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--dv-line);
  border-radius: 50%;
  background: #fff;
}

.quantity-control button svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.quantity-control span {
  min-width: 12px;
  font-size: var(--dv-text-body-sm);
  text-align: center;
}

.cart-summary {
  margin: 20px 0 0;
}

.cart-observation {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid var(--dv-line);
  color: var(--dv-text-muted);
  background: transparent;
  font-size: var(--dv-text-body);
}

.cart-observation svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cart-summary > div,
.pedido-values > div {
  display: flex;
  justify-content: space-between;
  margin: 9px 0;
  color: var(--dv-text-muted);
  font-size: var(--dv-text-body-sm);
}

.cart-summary dd,
.pedido-values dd {
  margin: 0;
  color: var(--dv-text);
}

.cart-summary .is-discount {
  color: var(--dv-success);
}

.cart-summary .is-discount dd {
  color: inherit;
}

.cart-total,
.pedido-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--dv-space-4);
  padding-top: var(--dv-space-4);
  border-top: 1px solid var(--dv-line-strong);
}

.cart-total span,
.pedido-total span {
  font-size: var(--dv-text-body);
  font-weight: 800;
}

.cart-total strong,
.pedido-total strong {
  font-size: var(--dv-text-h3);
  letter-spacing: -0.04em;
}

.cart-checkout {
  width: 100%;
  margin-top: var(--dv-space-4);
}

.cart-note {
  margin: var(--dv-space-3) 0 0;
  color: var(--dv-text-soft);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.mobile-cart-dock,
.drawer-backdrop {
  display: none;
}

/* Panel */

.panel-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--dv-sidebar-width) minmax(0, 1fr);
  background: #faf9f6;
}

.sidebar {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  height: 100vh;
  align-items: center;
  padding: 14px 8px;
  flex-direction: column;
  color: #fff;
  background: var(--dv-petrol-900);
}

.sidebar__brand {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: var(--dv-orange-500);
}

.sidebar__brand svg {
  width: 40px;
}

.sidebar__nav {
  display: flex;
  width: 100%;
  gap: var(--dv-space-2);
  margin-top: var(--dv-space-8);
  flex-direction: column;
}

.sidebar__item {
  position: relative;
  display: grid;
  width: 52px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: #91aaa3;
  background: transparent;
}

.sidebar__item:hover {
  color: #fff;
  background: rgb(255 255 255 / 7%);
}

.sidebar__item.is-active {
  color: var(--dv-petrol-900);
  background: var(--dv-orange-500);
}

.sidebar__item svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar__item span {
  position: absolute;
  left: 62px;
  display: none;
}

.sidebar__footer {
  display: flex;
  align-items: center;
  gap: var(--dv-space-2);
  margin-top: auto;
  flex-direction: column;
}

.sidebar__avatar {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--dv-petrol-700);
  font-size: 11px;
  font-weight: 800;
}

.sidebar__avatar i {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--dv-petrol-900);
  border-radius: 50%;
  background: #56c273;
}

.panel-main {
  min-width: 0;
  padding: 0 20px 20px;
}

.app-header--panel {
  min-height: 82px;
  justify-content: space-between;
  margin: 0 -20px;
  padding: 0 36px;
  background: #fff;
}

.app-header--panel h1 {
  font-size: 1.75rem;
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: var(--dv-space-2);
}

.header-control,
.header-more {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius-control);
  background: var(--dv-surface);
  font-size: var(--dv-text-body-sm);
  font-weight: 700;
}

.header-control > svg,
.header-more svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-control--store i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55bd6e;
}

.header-more {
  width: 40px;
  justify-content: center;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.status-filters {
  display: flex;
  min-height: 58px;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--dv-line);
  background: var(--dv-surface);
}

.status-filters__list,
.status-filters__tools {
  display: flex;
  align-items: stretch;
}

.status-filters__list {
  gap: 56px;
}

.status-filters__tools {
  align-items: center;
  gap: 12px;
}

.status-filters__tools button {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--dv-text-muted);
  background: transparent;
  font-size: var(--dv-text-body-sm);
}

.status-filters__tools button + button {
  width: 42px;
  justify-content: center;
  border-left: 1px solid var(--dv-line);
}

.status-filters__tools svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.status-filter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  color: var(--dv-text-muted);
  background: transparent;
  font-size: var(--dv-text-body-sm);
  font-weight: 700;
}

.status-filter::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: transparent;
}

.status-filter.is-active {
  color: var(--dv-text);
}

.status-filter.is-active::after {
  background: var(--dv-orange-500);
}

.status-filter b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding-inline: 6px;
  border-radius: var(--dv-radius-pill);
  color: var(--dv-petrol-900);
  background: var(--dv-surface-subtle);
  font-size: 11px;
}

.status-filter[data-filter="new"] b {
  color: #ad3126;
  background: var(--dv-danger-soft);
}

.status-filter[data-filter="preparing"] b {
  color: #875b08;
  background: var(--dv-warning-soft);
}

.status-filter[data-filter="ready"] b {
  color: #207643;
  background: var(--dv-success-soft);
}

.panel-workspace {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius-control);
  background: var(--dv-surface);
}

.operation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--dv-detail-width);
  gap: 0;
  align-items: start;
  margin-top: 0;
}

.order-queue {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--dv-line);
  border-radius: 0;
  background: var(--dv-surface);
}

.queue-toolbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--dv-space-4);
  border-bottom: 1px solid var(--dv-line);
}

.queue-toolbar strong {
  font-size: var(--dv-text-body-sm);
}

.queue-toolbar span {
  color: var(--dv-text-muted);
  font-size: var(--dv-text-label);
}

.pedido-row {
  position: relative;
  display: grid;
  min-height: 80px;
  grid-template-columns: 64px minmax(150px, 0.85fr) minmax(180px, 1.25fr) 58px 76px 92px 28px;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--dv-line);
  background: var(--dv-surface);
  outline: 0;
  transition: background-color 120ms ease;
}

.pedido-row:last-child {
  border-bottom: 0;
}

.pedido-row:hover,
.pedido-row:focus-visible {
  background: #fbfaf7;
}

.pedido-row.is-selected {
  background: var(--dv-surface);
}

.pedido-row.is-selected::before,
.pedido-row.is-critical::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--dv-orange-500);
}

.pedido-row.is-critical::before {
  background: var(--dv-danger);
}

.pedido-row__id {
  font-size: var(--dv-text-body);
}

.pedido-row__customer {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.pedido-row__customer b {
  overflow: hidden;
  font-size: var(--dv-text-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedido-row__customer small,
.pedido-row__items {
  overflow: hidden;
  margin-top: 3px;
  color: var(--dv-text-muted);
  font-size: var(--dv-text-body-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedido-row__time {
  color: var(--dv-text);
  font-size: var(--dv-text-body-sm);
  font-weight: 800;
  text-align: right;
}

.pedido-row.is-critical .pedido-row__time {
  color: var(--dv-danger);
}

.pedido-row__action {
  width: 92px;
  border-color: var(--dv-orange-500);
  color: var(--dv-orange-600);
  background: #fff;
}

.pedido-row__action--ready {
  border-color: #8fcf9f;
  color: #2e8b4b;
}

.pedido-row__action--preparing {
  border-color: var(--dv-orange-500);
  color: var(--dv-orange-600);
}

.pedido-row__more {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: transparent;
}

.pedido-row__more svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.pedido-detail {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 156px);
  overflow-y: auto;
  padding: 26px 24px;
  border: 0;
  border-radius: 0;
  background: var(--dv-surface);
  box-shadow: none;
}

.pedido-detail__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--dv-space-3);
}

.pedido-detail__header h2 {
  font-size: var(--dv-text-h3);
}

.pedido-customer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--dv-space-3);
  margin-top: var(--dv-space-4);
  padding: var(--dv-space-4) 0;
  border-top: 1px solid var(--dv-line);
  border-bottom: 1px solid var(--dv-line);
}

.pedido-customer__initials {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--dv-petrol-900);
  background: var(--dv-orange-500);
  font-size: 11px;
  font-weight: 850;
}

.pedido-customer > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.pedido-customer strong {
  font-size: var(--dv-text-body);
}

.pedido-customer small,
.pedido-customer time {
  margin-top: 3px;
  color: var(--dv-text-muted);
  font-size: var(--dv-text-label);
}

.pedido-customer__actions {
  display: flex;
  gap: 8px;
}

.pedido-customer__actions button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--dv-line);
  border-radius: 8px;
  background: #fff;
}

.pedido-customer__actions svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.pedido-address {
  display: flex;
  padding: var(--dv-space-4) 0;
  border-bottom: 1px solid var(--dv-line);
  flex-direction: column;
}

.pedido-address > small,
.pedido-items > small {
  color: var(--dv-text-muted);
  font-size: var(--dv-text-label);
}

.pedido-address strong {
  margin-top: 8px;
  font-size: var(--dv-text-body-sm);
}

.pedido-address span,
.pedido-address p {
  margin: 4px 0 0;
  color: var(--dv-text-muted);
  font-size: var(--dv-text-label);
  line-height: 1.45;
}

.pedido-address span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pedido-address span button {
  flex: 0 0 auto;
  color: var(--dv-orange-600);
  background: transparent;
  font-size: var(--dv-text-label);
  font-weight: 800;
}

.pedido-address p {
  margin-top: var(--dv-space-3);
  padding-top: var(--dv-space-3);
  border-top: 1px dashed var(--dv-line);
  color: var(--dv-text);
}

.pedido-items {
  padding: var(--dv-space-4) 0;
}

.pedido-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: var(--dv-space-2);
  padding: 10px 0;
}

.pedido-item > span {
  color: var(--dv-orange-600);
  font-size: var(--dv-text-body-sm);
  font-weight: 800;
}

.pedido-item p {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
}

.pedido-item strong,
.pedido-item > b {
  font-size: var(--dv-text-body-sm);
}

.pedido-item small {
  margin-top: 3px;
  color: var(--dv-text-muted);
  font-size: var(--dv-text-label);
}

.pedido-values {
  margin: 0;
  padding-top: var(--dv-space-3);
  border-top: 1px solid var(--dv-line);
}

.pedido-detail__primary {
  width: 100%;
  margin-top: var(--dv-space-4);
  color: #fff;
  background: var(--dv-orange-600);
}

.pedido-detail__secondary {
  display: block;
  margin: var(--dv-space-3) auto 0;
  color: var(--dv-orange-600);
  background: transparent;
  font-size: var(--dv-text-body-sm);
  font-weight: 700;
}

.mobile-command-bar {
  display: none;
}

@media (max-width: 1180px) {
  .app-header--store {
    grid-template-columns: auto minmax(220px, 1fr) auto;
  }

  .delivery-address {
    display: none;
  }

  .store-shell {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .product-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .pedido-row {
    grid-template-columns: 58px minmax(130px, 0.9fr) minmax(130px, 1fr) 54px 70px 82px 26px;
  }

  .pedido-row__action {
    width: 82px;
  }
}

@media (max-width: 900px) {
  .merchant-hero,
  .store-shell,
  .category-tabs__track {
    width: min(calc(100% - 32px), var(--dv-content-max));
  }

  .store-shell {
    display: block;
  }

  .cart-sidebar {
    position: fixed;
    z-index: 140;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    max-height: 90vh;
    padding: 12px var(--dv-space-4) calc(var(--dv-space-4) + env(safe-area-inset-bottom));
    border: 0;
    border-radius: var(--dv-radius-drawer) var(--dv-radius-drawer) 0 0;
    box-shadow: var(--dv-shadow-drawer);
    transform: translateY(105%);
    transition: transform 200ms ease;
  }

  .cart-open .cart-sidebar {
    transform: translateY(0);
  }

  .drawer-handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 0 auto var(--dv-space-4);
    border-radius: var(--dv-radius-pill);
    background: var(--dv-line-strong);
  }

  .drawer-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--dv-surface-subtle);
  }

  .drawer-close svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }

  .mobile-cart-dock {
    position: fixed;
    z-index: 100;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    min-height: 60px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--dv-space-4);
    border-radius: var(--dv-radius-control);
    color: var(--dv-petrol-900);
    background: var(--dv-orange-500);
    box-shadow: 0 14px 34px rgb(5 46 37 / 18%);
    font-size: var(--dv-text-body-sm);
    font-weight: 800;
  }

  .mobile-cart-dock strong {
    justify-self: end;
  }

  .drawer-backdrop {
    position: fixed;
    z-index: 130;
    inset: 0;
    display: block;
    background: rgb(5 46 37 / 58%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .cart-open .drawer-backdrop,
  .order-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.checkout-open .drawer-backdrop,
  body.checkout-open.cart-open .drawer-backdrop {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .panel-page {
    display: block;
    padding-bottom: 72px;
  }

  .sidebar {
    display: none;
  }

  .panel-main {
    padding: 0 12px var(--dv-space-4);
  }

  .app-header--panel {
    position: sticky;
    top: 0;
    min-height: 60px;
    margin: 0 -12px;
    padding: 0 var(--dv-space-4);
  }

  .app-header--panel .dv-eyebrow,
  .header-control--sound,
  .header-more {
    display: none;
  }

  .app-header--panel h1 {
    margin: 0;
    font-size: var(--dv-text-h3);
  }

  .header-control--store span {
    display: none;
  }

  .status-filters {
    position: sticky;
    z-index: 55;
    top: 60px;
    min-height: 50px;
    margin: 0 -12px;
    overflow-x: auto;
    padding: 0 var(--dv-space-4);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scrollbar-width: none;
  }

  .status-filters::-webkit-scrollbar {
    display: none;
  }

  .status-filter {
    flex: 0 0 auto;
  }

  .status-filters__list {
    gap: var(--dv-space-4);
  }

  .status-filters__tools {
    display: none;
  }

  .panel-workspace {
    overflow: visible;
    margin-top: 0;
    border: 0;
    border-radius: 0;
  }

  .operation-layout {
    display: block;
    margin-top: 12px;
  }

  .queue-toolbar {
    min-height: 38px;
  }

  .pedido-row {
    min-height: 68px;
    grid-template-columns: 54px minmax(0, 1fr) 56px;
    gap: var(--dv-space-2);
    padding: 0 var(--dv-space-3);
  }

  .pedido-row .dv-badge {
    display: none;
  }

  .pedido-row__items,
  .pedido-row__action,
  .pedido-row__more {
    display: none;
  }

  .pedido-row__customer b {
    font-size: var(--dv-text-body-sm);
  }

  .pedido-row__customer small {
    white-space: normal;
  }

  .pedido-detail {
    position: fixed;
    z-index: 140;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    max-height: 90vh;
    padding: 12px var(--dv-space-4) calc(var(--dv-space-4) + env(safe-area-inset-bottom));
    border: 0;
    border-radius: var(--dv-radius-drawer) var(--dv-radius-drawer) 0 0;
    box-shadow: var(--dv-shadow-drawer);
    transform: translateY(105%);
    transition: transform 200ms ease;
  }

  .order-open .pedido-detail {
    transform: translateY(0);
  }

  .pedido-detail__header {
    grid-template-columns: 1fr auto auto;
  }

  .mobile-command-bar {
    position: fixed;
    z-index: 110;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: calc(64px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgb(255 255 255 / 8%);
    background: var(--dv-petrol-900);
  }

  .mobile-command-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #91aaa3;
    background: transparent;
    flex-direction: column;
    font-size: 9px;
  }

  .mobile-command-bar button.is-active {
    color: var(--dv-orange-500);
  }

  .mobile-command-bar svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }
}

@media (max-width: 760px) {
  .store-page {
    padding-bottom: 86px;
  }

  .app-header--store {
    grid-template-columns: auto 42px 42px;
    gap: var(--dv-space-3);
    min-height: 64px;
    padding: 0 var(--dv-space-4);
  }

  .brand-lockup__mark {
    width: 29px;
  }

  .brand-lockup strong {
    font-size: 1rem;
  }

  .app-header--store .dv-search {
    width: 42px;
    min-height: 40px;
    justify-self: end;
    padding: 0 12px;
    border-radius: 50%;
  }

  .app-header--store .dv-search input,
  .app-header--store .dv-search kbd {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .app-header--store.is-search-open {
    position: relative;
    z-index: 120;
    grid-template-columns: 1fr;
    gap: var(--dv-space-2);
  }

  .app-header--store.is-search-open .store-header-status,
  .app-header--store.is-search-open .header-cart {
    display: none;
  }

  .app-header--store.is-search-open .dv-search {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    justify-self: stretch;
    padding: 0 14px;
    border-radius: var(--dv-radius-pill);
    cursor: text;
  }

  .app-header--store.is-search-open .dv-search input {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    clip: auto;
    font-size: 1rem;
  }

  .app-header--store.is-search-open .dv-search kbd {
    display: none;
  }

  .header-cart {
    width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
  }

  .header-cart > span,
  .header-cart > svg {
    display: none;
  }

  .header-cart b {
    min-width: 28px;
    height: 28px;
  }

  .merchant-hero {
    min-height: 136px;
    grid-template-columns: minmax(0, 1fr) 112px;
    margin: var(--dv-space-3) auto;
    border: 1px solid var(--dv-line);
    border-radius: var(--dv-radius-card);
  }

  .merchant-hero__content {
    padding: var(--dv-space-4);
  }

  .merchant-avatar,
  .merchant-status span,
  .merchant-fact:nth-child(3) {
    display: none;
  }

  .merchant-hero h1 {
    font-size: 1.5rem;
  }

  .merchant-status {
    margin-top: 7px;
  }

  .merchant-facts {
    gap: var(--dv-space-4);
    margin-top: var(--dv-space-4);
  }

  .merchant-fact strong {
    font-size: var(--dv-text-body);
  }

  .merchant-fact span {
    font-size: 9px;
  }

  .merchant-hero__image {
    min-height: 136px;
  }

  .category-tabs {
    top: 64px;
  }

  .category-tabs__track {
    gap: var(--dv-space-2);
    height: 50px;
  }

  .category-tabs__item {
    height: 32px;
    align-self: center;
    padding: 0 var(--dv-space-3);
    border: 1px solid var(--dv-line);
    border-radius: var(--dv-radius-pill);
    background: var(--dv-surface);
    font-size: 11px;
  }

  .category-tabs__item::after {
    display: none;
  }

  .category-tabs__item.is-active {
    color: #fff;
    background: var(--dv-petrol-900);
    border-color: var(--dv-petrol-900);
  }

  .store-shell {
    width: calc(100% - 32px);
    margin-inline: auto;
    margin-top: var(--dv-space-4);
  }

  .catalog__header {
    min-height: 34px;
  }

  .catalog__header h2 {
    font-size: var(--dv-text-body-lg);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .catalog {
    padding: 0;
  }

  .catalog-more {
    margin-bottom: var(--dv-space-4);
  }

  .product-card {
    min-height: 136px;
    grid-template-columns: minmax(0, 1fr) 112px;
    border: 0;
    border-bottom: 1px solid var(--dv-line);
    border-radius: 0;
    background: transparent;
  }

  .product-card:hover {
    transform: none;
  }

  .product-card__image {
    min-height: 112px;
    align-self: center;
    border-radius: var(--dv-radius-control);
    order: 2;
  }

  .product-card__image > span {
    display: none;
  }

  .product-card__content {
    padding: var(--dv-space-4) var(--dv-space-4) var(--dv-space-4) 0;
    order: 1;
  }

  .product-card h3 {
    font-size: var(--dv-text-body);
  }

  .product-card p {
    font-size: var(--dv-text-label);
  }

  .product-card__add {
    width: 34px;
    height: 34px;
  }

  .cart-sidebar {
    max-height: 88vh;
  }
}

@media (max-width: 430px) {
  .pedido-row {
    grid-template-columns: 50px minmax(0, 1fr) 48px;
  }
}
