:root {
  --orange: #e55727;
  --orange-dark: #bc3d13;
  --ink: #252724;
  --muted: #73756e;
  --paper: #f7f7f2;
  --line: #e6e7df;
  --green: #278359;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffb491;
  outline-offset: 3px;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dbd1;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #e5572718;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
textarea {
  resize: vertical;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.1px;
  line-height: 1.15;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
p {
  color: var(--muted);
  line-height: 1.6;
}
small {
  color: var(--muted);
  line-height: 1.5;
}
.primary,
.secondary {
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 650;
  white-space: nowrap;
}
.primary {
  border: 1px solid var(--orange);
  background: var(--orange);
  color: white;
}
.primary:hover {
  background: var(--orange-dark);
}
.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: #f5f3ed;
}
.text-button {
  border: 0;
  background: none;
  color: var(--orange);
  padding: 8px 0;
  font-weight: 650;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.9px;
  color: var(--orange);
  display: block;
  margin-bottom: 14px;
}
.brand {
  font-size: 22px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.6px;
}
.brand-mark {
  background: var(--orange);
  color: white;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #252d26;
  color: #fff;
  padding: 44px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
}
.login-story > div {
  margin: 60px 0 30px;
}
.login-story .eyebrow {
  color: #f3ae8f;
}
.login-story h1 {
  font-size: clamp(40px, 4vw, 66px);
  letter-spacing: -2px;
}
.login-story p {
  max-width: 380px;
  color: #c2cbbd;
  font-size: 17px;
}
.story-footer {
  color: #99a493;
  font-size: 13px;
}
.story-plate {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
}
.plate {
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #394534;
  border: 18px solid #47523f;
  box-shadow: 0 24px 60px #0003;
}
.plate span {
  font-size: 120px;
}
.story-tag {
  position: absolute;
  bottom: 5px;
  right: 0;
  border: 1px solid #5e6855;
  background: #394534;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 385px;
}
.login-card h2 {
  font-size: 30px;
}
.login-card > p {
  font-size: 14px;
}
.full {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.login-help {
  text-align: center;
  font-size: 12px !important;
  margin-top: 25px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 85px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 12px;
  padding: 8px;
  color: var(--muted);
}
.form-error {
  font-size: 13px;
  color: #b23427;
  margin: 12px 0;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}
.sidebar {
  padding: 30px 24px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-caption {
  font-size: 10px;
  color: #969990;
  letter-spacing: 1.7px;
  margin: 48px 12px 14px;
}
.nav-link {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  padding: 14px;
  border-radius: 10px;
  color: #686c61;
  margin: 5px 0;
}
.nav-link span {
  font-size: 21px;
}
.nav-link:hover {
  background: var(--paper);
}
.nav-link.active {
  background: #fff0e9;
  color: var(--orange);
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 6px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.store-avatar {
  border-radius: 12px;
  background: #eef0e6;
  color: #62724c;
  padding: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.sidebar-bottom strong {
  font-size: 13px;
}
.sidebar-bottom > span {
  font-size: 12px;
  color: var(--muted);
}
.sidebar-bottom .text-button {
  font-size: 12px;
  margin-top: 6px;
}
.logout-button {
  margin-top: 10px;
  font-size: 12px;
  color: #797d71;
  background: none;
  border: 0;
  padding: 8px 0;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 80px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.session-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}
.session-badge i {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}
.view {
  padding: 38px 42px;
  max-width: 1440px;
  margin: auto;
  min-height: calc(100vh - 125px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  margin-bottom: 10px;
}
.page-heading p {
  font-size: 14px;
  margin-bottom: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.stats article {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stats article > span {
  font-size: 13px;
  color: var(--muted);
}
.stats strong {
  display: block;
  font-size: 38px;
  letter-spacing: -1px;
  margin: 16px 0 8px;
}
.stats small {
  font-size: 12px;
}
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 35px 38px;
  border-radius: 16px;
  background: #ecefe3;
  margin: 30px 0;
}
.welcome-banner h2 {
  font-size: 28px;
}
.welcome-banner p {
  font-size: 14px;
}
.banner-emoji {
  font-size: 120px;
  margin: 0 10px 0 30px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-heading h2 {
  font-size: 19px;
  margin: 0;
}
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.category-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 13px 20px;
  font-size: 13px;
}
.category-chip small {
  margin-left: 8px;
}
.toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.toolbar label {
  margin: 0;
}
.toolbar .search-label {
  flex: 1;
}
.toolbar select {
  min-width: 210px;
}
.result-count {
  font-size: 12px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-art {
  height: 135px;
  background: #f1efe2;
  display: grid;
  place-items: center;
  font-size: 66px;
}
.product-card:nth-child(3n + 2) .product-art {
  background: #efe8df;
}
.product-card:nth-child(3n + 3) .product-art {
  background: #e9eee4;
}
.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}
.product-category-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #8b856d;
}
.availability {
  font-size: 10px;
  color: var(--green);
  background: #edf7ef;
  padding: 5px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.availability.off {
  color: #79766b;
  background: #efeee9;
}
.product-card h2 {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 10px;
}
.description {
  font-size: 12px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 6px;
}
.price {
  font-size: 19px;
}
.product-card-footer .secondary {
  padding: 8px 13px;
  font-size: 12px;
}
.availability-button {
  font-size: 11px;
  border: 0;
  background: none;
  color: var(--muted);
  text-align: left;
  padding: 12px 0 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.category-list {
  display: grid;
  gap: 12px;
}
.category-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.category-icon {
  font-size: 25px;
  color: #9c7f57;
  background: #f6efe2;
  padding: 12px;
  border-radius: 10px;
}
.category-row > div {
  flex: 1;
}
.category-row h2 {
  font-size: 16px;
  margin-bottom: 5px;
}
.category-row p {
  font-size: 12px;
  margin: 0;
}
.empty-state {
  text-align: center;
  padding: 55px 20px;
  border: 1px dashed #d8daca;
  border-radius: 14px;
}
.empty-state h2 {
  font-size: 20px;
}
.workspace-footer {
  font-size: 11px;
  color: #989b91;
  padding: 16px 42px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(560px, calc(100% - 32px));
  padding: 28px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #20261db3;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading .eyebrow {
  margin-bottom: 6px;
}
.close-dialog {
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--muted);
}
.dialog-actions .close-dialog {
  font-size: 14px;
  border: 1px solid var(--line);
  background: white;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 14px;
}
.check-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
#notice {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #263c29;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 30px #0002;
  max-width: calc(100% - 30px);
  font-size: 14px;
}
#notice.error {
  background: #a83c2b;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 215px 1fr;
  }
  .sidebar {
    padding: 25px 16px;
  }
  .view {
    padding: 30px 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .banner-emoji {
    font-size: 90px;
  }
}
@media (max-width: 720px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: auto;
    padding: 24px;
  }
  .login-story > div,
  .story-footer {
    display: none;
  }
  .login-form-wrap {
    padding: 40px 24px;
    min-height: calc(100vh - 85px);
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 19px;
  }
  .sidebar-caption,
  .store-avatar,
  .sidebar-bottom strong,
  .sidebar-bottom > span {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin-top: 12px;
    gap: 5px;
  }
  .nav-link {
    justify-content: center;
    padding: 10px 6px;
    font-size: 12px;
    gap: 6px;
  }
  .nav-link span {
    font-size: 16px;
  }
  .sidebar-bottom {
    border-top: 0;
    flex-direction: row;
    justify-content: flex-end;
    gap: 18px;
    margin: 0;
    padding: 0;
  }
  .sidebar-bottom .text-button,
  .logout-button {
    margin: 0;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
  }
  .view {
    padding: 25px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .stats {
    gap: 8px;
  }
  .stats article {
    padding: 15px 10px;
  }
  .stats article > span {
    font-size: 11px;
  }
  .stats strong {
    font-size: 29px;
  }
  .stats small {
    font-size: 10px;
  }
  .welcome-banner {
    padding: 25px;
  }
  .welcome-banner h2 {
    font-size: 24px;
  }
  .banner-emoji {
    display: none;
  }
  .toolbar {
    flex-direction: column;
  }
  .toolbar select {
    width: 100%;
  }
  .product-grid {
    gap: 12px;
  }
  .product-art {
    height: 110px;
    font-size: 52px;
  }
  .product-body {
    padding: 13px;
  }
  .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .product-card h2 {
    font-size: 15px;
  }
  .product-card-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .price {
    font-size: 17px;
  }
  .category-row {
    padding: 15px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .category-row .category-icon {
    padding: 8px;
  }
  .category-row > div {
    min-width: 100px;
  }
  .workspace-footer {
    padding: 15px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      opacity 0.15s;
  }
  .view {
    animation: appear 0.2s ease;
  }
  @keyframes appear {
    from {
      opacity: 0.7;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
/* Store order management */
.order-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.order-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
}
.order-stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.order-stat strong {
  display: block;
  font-size: 30px;
  margin-top: 10px;
}
.order-stat:hover {
  border-color: var(--orange);
}
.order-toolbar {
  flex-wrap: wrap;
}
.order-toolbar select {
  min-width: 155px;
}
.order-toolbar .search-label {
  min-width: 200px;
}
.orders-update {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0;
}
.order-board {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 18px;
}
.order-column {
  flex: 1 0 245px;
  min-width: 245px;
  max-width: 360px;
  background: #efefe8;
  border-radius: 14px;
  padding: 13px;
}
.order-column > h2 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin: 5px 0 15px;
}
.order-column > h2 span {
  font-size: 11px;
  border-radius: 20px;
  background: white;
  padding: 3px 8px;
}
.order-column-empty {
  font-size: 12px;
  text-align: center;
  padding: 25px 5px;
}
.order-card {
  border: 1px solid var(--line);
  border-left: 4px solid #df9454;
  background: white;
  border-radius: 11px;
  padding: 15px;
  margin-bottom: 12px;
}
.order-card[data-status="EM_PRODUCAO"] {
  border-left-color: #cc832c;
}
.order-card[data-status="PRONTO"] {
  border-left-color: #278359;
}
.order-card[data-status="SAIU_PARA_ENTREGA"] {
  border-left-color: #477ac2;
}
.order-card[data-status="CANCELADO"] {
  border-left-color: #b4493c;
}
.order-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.order-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.order-card p {
  font-size: 12px;
  margin-bottom: 12px;
}
.order-card ul {
  padding-left: 17px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.order-card-total {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin: 12px 0;
}
.order-card-total strong {
  font-size: 18px;
}
.payment-tag {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 20px;
  background: #fff0da;
  color: #89631f;
}
.payment-tag.paid {
  background: #edf7ef;
  color: var(--green);
}
.order-card .primary,
.order-card .secondary {
  width: 100%;
  font-size: 12px;
  padding: 10px;
  margin-top: 8px;
}
.order-card .order-kind {
  display: inline-block;
  font-size: 10px;
  background: #f4f4ee;
  color: #737366;
  border-radius: 5px;
  padding: 4px 7px;
}
.orders-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  gap: 12px;
  margin-top: 12px;
}
.order-detail-dialog,
.new-order-dialog {
  width: min(720px, calc(100% - 32px));
}
.order-detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background: var(--paper);
  padding: 18px;
  border-radius: 10px;
  margin: 20px 0;
}
.order-detail-info p {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.order-detail-info strong {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.order-detail-content-title {
  font-size: 16px;
  margin-top: 24px;
}
.order-item-detail {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.order-history {
  list-style: none;
  padding: 0;
}
.order-history li {
  border-left: 2px solid var(--line);
  padding: 0 0 18px 15px;
  margin-left: 3px;
  font-size: 13px;
}
.order-history li small {
  display: block;
  font-size: 11px;
  margin: 4px 0;
}
.order-actions {
  flex-wrap: wrap;
}
.danger {
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff1ef;
  border: 1px solid #eed0cb;
  color: #a33d2e;
  font-weight: 650;
}
.order-item-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 75px 35px;
  gap: 10px;
  margin-bottom: 10px;
}
.order-item-line label {
  margin: 0;
}
.order-item-line button {
  border: 0;
  background: #f2f1eb;
  border-radius: 8px;
  color: var(--muted);
  font-size: 22px;
}
.order-draft-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.order-draft-total strong {
  font-size: 21px;
}
#cancel-paid-warning {
  background: #fff3d9;
  padding: 12px;
  border-radius: 8px;
  color: #85601f;
  font-size: 13px;
}
@media (max-width: 720px) {
  .order-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-stat {
    padding: 15px;
  }
  .orders-update {
    flex-direction: column;
    gap: 5px;
  }
  .order-board {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .order-column {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
  .order-detail-info {
    grid-template-columns: 1fr;
  }
  .order-toolbar .search-label {
    min-width: 0;
  }
  .sidebar nav {
    flex-wrap: wrap;
  }
  .nav-link {
    flex: 1;
    min-width: 80px;
    width: auto;
  }
  .order-actions > * {
    flex: 1;
  }
  .order-item-line {
    grid-template-columns: minmax(0, 1fr) 64px 30px;
    gap: 5px;
  }
  .order-item-line select {
    padding: 12px 8px;
  }
  .orders-pagination {
    flex-wrap: wrap;
  }
}
.product-art {
  overflow: hidden;
}
.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image-editor {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center;
}
.product-image-editor input {
  padding: 9px;
}
.product-image-editor small {
  display: block;
  margin-top: 8px;
}
.product-image-preview {
  width: 130px;
  height: 100px;
  border-radius: 12px;
  background: #f1efe2;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 46px;
  overflow: hidden;
}
.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image-editor .text-button {
  display: block;
  margin-top: 5px;
}
@media (max-width: 480px) {
  .product-image-editor {
    grid-template-columns: 1fr;
  }
  .product-image-preview {
    width: 100%;
    height: 150px;
  }
}

.product-option-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--border, #777);
  border-radius: 10px;
}
.product-option-row label {
  min-width: 0;
  margin: 0;
}
.product-option-row input[type="checkbox"] {
  display: block;
  width: auto;
  margin: 12px;
}
@media (max-width: 600px) {
  .product-option-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.manual-product-options {
  grid-column: 1 / -1;
}

.order-reception-card {
  padding: 18px 22px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface, white);
}
.store-order-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  cursor: pointer;
  position: relative;
  margin: 0;
}
.store-order-switch > span:first-child {
  font-weight: 700;
}
.store-order-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.store-order-switch-track {
  position: relative;
  display: inline-block;
  flex: none;
  width: 56px;
  height: 30px;
  border-radius: 30px;
  background: #b42318;
  transition: background 0.15s;
}
.store-order-switch-track::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.store-order-switch input:checked + .store-order-switch-track {
  background: #15803d;
}
.store-order-switch input:checked + .store-order-switch-track::before {
  transform: translateX(26px);
}
.store-order-switch input:focus-visible + .store-order-switch-track {
  outline: 3px solid var(--accent, #ff8559);
  outline-offset: 4px;
}
.store-order-switch input:disabled + .store-order-switch-track {
  opacity: 0.55;
  cursor: wait;
}
#order-reception-status {
  color: #b42318;
}
#order-reception-status.is-active {
  color: #15803d;
}
@media (prefers-reduced-motion: reduce) {
  .store-order-switch-track,
  .store-order-switch-track::before {
    transition: none;
  }
}
html[data-theme="dark"] .order-reception-card {
  background: #242d25;
}
html[data-theme="dark"] #order-reception-status {
  color: #ffaaa3;
}
html[data-theme="dark"] #order-reception-status.is-active {
  color: #75c99b;
}

.order-estimate-form {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.order-estimate-form label {
  display: block;
  margin: 12px 0;
}

.store-card-wrap {
  position: relative;
  min-width: 0;
}
.store-card-wrap .store-card {
  height: 100%;
}
.favorite-store {
  position: absolute;
  right: 12px;
  top: 12px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  font-size: 24px;
  background: var(--card, #fff);
  color: #d84323;
  border: 1px solid #aaa;
}
.table-scroll {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #8885;
}
#delivery-receipt {
  display: none;
}
@media print {
  body.printing-receipt > * {
    display: none !important;
  }
  body.printing-receipt > #delivery-receipt {
    display: block !important;
    color: #000;
    background: #fff;
    font: 14px sans-serif;
    max-width: 80mm;
    margin: 0 auto;
  }
  #delivery-receipt p {
    margin: 8px 0;
  }
  @page {
    margin: 8mm;
  }
}

.branding-preview {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 18px 0;
  background: var(--paper);
  overflow: hidden;
}
.branding-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.branding-preview span {
  color: var(--muted);
  font-size: 14px;
}
.branding-preview [hidden] {
  display: none;
}
.branding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}

.store-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
