:root {
  --orange: #e55727;
  --ink: #252724;
  --muted: #73756e;
  --line: #e6e7df;
  --paper: #f7f7f2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible {
  outline: 3px solid #ffb491;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.store {
  padding: 30px max(24px, calc((100vw - 1180px) / 2));
  background: #252d26;
  color: white;
}
.brand {
  color: #f3ae8f;
  font-weight: 750;
  margin-bottom: 30px;
}
.brand span {
  font-size: 12px;
  font-weight: 400;
  margin-left: 15px;
}
.store h1 {
  font-size: 36px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.store p {
  color: #c2cbbd;
  margin-bottom: 5px;
  font-size: 14px;
}
main {
  max-width: 1228px;
  margin: auto;
  padding: 36px 24px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}
.menu-heading h2 {
  font-size: 25px;
  margin-bottom: 8px;
}
.menu-heading p {
  font-size: 14px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dbd1;
  border-radius: 10px;
  background: white;
  color: var(--ink);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
textarea {
  resize: vertical;
}
#categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 13px;
}
.chip.active {
  background: #fff0e9;
  border-color: var(--orange);
  color: #bc3d13;
}
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.product {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.product .category {
  font-size: 11px;
  color: #8b856d;
  margin-bottom: 12px;
}
.product h3 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.product p {
  font-size: 13px;
  overflow-wrap: anywhere;
  flex: 1;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.product-bottom strong {
  font-size: 19px;
}
.add {
  border: 1px solid var(--orange);
  color: #bc3d13;
  background: #fff0e9;
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 600;
}
.cart {
  align-self: start;
  position: sticky;
  top: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.cart h2 {
  font-size: 22px;
  display: flex;
  justify-content: space-between;
}
.cart h2 span {
  background: #fff0e9;
  color: #bc3d13;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 15px;
}
.cart-line {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.cart-line-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 7px;
}
.total {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0;
  font-size: 14px;
}
.total strong {
  font-size: 21px;
}
.hint {
  font-size: 12px;
}
.primary {
  width: 100%;
  background: var(--orange);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 650;
}
.primary:hover {
  background: #bc3d13;
}
dialog {
  width: min(540px, calc(100% - 30px));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #20261db3;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading button {
  border: 0;
  background: none;
  font-size: 28px;
  color: var(--muted);
}
form > p {
  font-size: 13px;
  margin-top: 12px;
}
#checkout-error,
#page-error {
  color: #b23427;
}
#page-error {
  padding: 20px;
  background: #fff1ef;
  border-radius: 10px;
}
.confirmation {
  max-width: 560px;
  margin: 30px auto;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 35px;
}
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: #edf7ef;
  color: #278359;
  font-size: 32px;
  border-radius: 50%;
  margin-bottom: 20px;
}
footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .cart {
    position: static;
  }
  .store h1 {
    font-size: 28px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 24px 16px;
  }
  .products {
    grid-template-columns: 1fr;
  }
  .store {
    padding: 24px 20px;
  }
  .product {
    padding: 18px;
  }
  dialog {
    padding: 22px;
  }
}
.product {
  overflow: hidden;
}
.product-image {
  width: calc(100% + 44px);
  height: 160px;
  object-fit: cover;
  margin: -22px -22px 18px;
}
@media (max-width: 480px) {
  .product-image {
    width: calc(100% + 36px);
    margin: -18px -18px 18px;
  }
}

.customize-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.customize-option input[type="checkbox"] {
  width: auto;
  flex: none;
  margin: 0;
}
#customize-sizes select {
  width: 100%;
}

.store-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}
.menu-store-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex: 0 0 auto;
}
.store-identity h1 {
  overflow-wrap: anywhere;
  min-width: 0;
}
@media (max-width: 600px) {
  .menu-store-logo {
    width: 72px;
    height: 72px;
  }
  .store-identity {
    gap: 12px;
  }
}

.cart-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  background: var(--paper, #f7f7f2);
  color: var(--ink, #20251e);
  box-shadow: 0 4px 20px #0002;
  pointer-events: none;
}
.cart-toast[hidden] {
  display: none;
}
