:root {
  --orange: #ff5a18;
  --gold: #ffbd45;
  --dark: #08090d;
  --text: #08090d;
  --muted: #667085;
  --line: #dfe7f2;
  --soft: #f4f7fb;
  --card: #ffffff;
  --shadow: 0 18px 38px rgba(22, 33, 56, 0.12);
  --shadow-soft: 0 10px 24px rgba(22, 33, 56, 0.08);
  --hero-image: url("assets/knupp-banner.jpeg");
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 78px;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 90, 24, 0.09), transparent 28%),
    radial-gradient(circle at 96% 6%, rgba(255, 189, 69, 0.18), transparent 26%),
    #eef3f9;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.has-store-footer-notice {
  padding-bottom: 108px;
}

body[data-client-view="history"] .page,
body[data-client-view="profile"] .page {
  display: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 90, 24, 0.25);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page {
  width: min(1120px, calc(100% - 52px));
  margin: 12px auto 34px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 68px;
  background: linear-gradient(135deg, #0c0d12 0%, #171018 48%, #250d07 100%);
  border-top: 1px solid rgba(255, 189, 69, 0.22);
  box-shadow: 0 -14px 34px rgba(8, 9, 13, 0.22);
}

.bottom-nav button {
  display: grid;
  gap: 4px;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.bottom-nav button.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 90, 24, 0.26), rgba(255, 90, 24, 0));
}

.bottom-nav svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-footer-notice {
  position: fixed;
  right: 0;
  bottom: 68px;
  left: 0;
  z-index: 71;
  min-height: 32px;
  border-top: 1px solid rgba(255, 189, 69, 0.3);
  background: linear-gradient(135deg, #07080b 0%, #171018 52%, #250d07 100%);
  color: #fff7e8;
  display: grid;
  place-items: center;
  padding: 7px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 189, 69, 0.12),
    0 -10px 24px rgba(8, 9, 13, 0.22);
}

.client-page {
  display: none;
  width: min(820px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 24px;
}

body[data-client-view="history"] #historyPage,
body[data-client-view="profile"] #profilePage {
  display: block;
}

.client-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 90, 24, 0.18);
  background: rgba(246, 249, 253, 0.94);
  backdrop-filter: blur(14px);
}

.client-header h2 {
  font-size: 22px;
  font-weight: 900;
}

.client-back {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #11100f;
  font-size: 30px;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.client-content {
  display: grid;
  gap: 16px;
  padding: 16px 0 4px;
}

.client-auth-card,
.client-empty,
.history-card {
  border: 1px solid rgba(255, 90, 24, 0.16);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.client-auth-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.client-auth-card strong {
  color: #12131a;
  font-size: 20px;
  font-weight: 900;
}

.client-auth-card p,
.client-empty p {
  color: var(--muted);
  line-height: 1.45;
}

.client-profile-form {
  display: grid;
  gap: 12px;
}

.client-profile-form label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.client-profile-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  color: #111827;
  background: #fff;
}

.client-profile-form button,
.history-repeat {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange), #ff8100);
  color: #fff;
  font-weight: 900;
}

.client-profile-form small {
  min-height: 16px;
  color: #16864a;
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 16px;
}

.history-card {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.history-card-head span {
  display: grid;
  gap: 4px;
}

.history-card-head strong {
  color: #11100f;
  font-size: 16px;
  font-weight: 900;
}

.history-card-head small {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.history-card-head b {
  border-radius: 7px;
  padding: 7px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.history-card-head b.done,
.history-card-head b.progress {
  background: #198754;
}

.history-card-head b.danger {
  background: #c51f26;
}

.history-card:has(.history-card-head b.done),
.history-card:has(.history-card-head b.progress) {
  border-color: rgba(25, 135, 84, 0.28);
}

.history-card:has(.history-card-head b.danger) {
  border-color: rgba(197, 31, 38, 0.3);
}

.history-card:has(.history-card-head b.done) .history-repeat,
.history-card:has(.history-card-head b.progress) .history-repeat {
  background: #198754;
}

.history-card:has(.history-card-head b.danger) .history-repeat {
  background: #c51f26;
}

.history-items {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.history-item-line {
  color: #1f2937;
  font-size: 14px;
}

.history-total {
  color: #11100f;
  font-size: 16px;
}

.history-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.history-progress span {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
}

.history-progress i {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #cfd6e0;
}

.history-progress .active i {
  background: #198754;
}

.history-progress .danger i {
  background: #c51f26;
}

.history-details {
  min-height: 42px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: #fff;
  color: #c44a08;
  font-weight: 900;
}

.history-extra {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fafbfc;
  color: #667085;
}

.history-extra p + p {
  margin-top: 6px;
}

.client-empty {
  padding: 18px;
}

.client-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #11100f;
  font-size: 16px;
  font-weight: 900;
}

.hero-card {
  min-height: 330px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.56) 36%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.08) 100%),
    var(--hero-image) center / cover no-repeat;
  box-shadow: 0 18px 44px rgba(30, 40, 60, 0.11);
  overflow: hidden;
}

.hero-copy {
  width: min(430px, 48%);
  padding: 38px 42px;
  background: transparent;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.status-line strong {
  color: #fff;
}

.status-line.closed .status-light {
  border-color: #ffd9d4;
  background: #ff3d2b;
}

.status-light {
  width: 16px;
  height: 16px;
  border: 4px solid #d9f8df;
  border-radius: 999px;
  background: #35c95f;
}

.round-logo {
  width: 76px;
  height: 76px;
  overflow: hidden;
  margin-top: 22px;
  border: 4px solid var(--orange);
  border-radius: 999px;
  background: #07080b;
  box-shadow: 0 12px 24px rgba(8, 9, 13, 0.16);
}

.round-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin-top: 16px;
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
}

.hero-copy p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.badges span {
  border-radius: 999px;
  border: 1px solid rgba(255, 189, 69, 0.42);
  background: rgba(255, 189, 69, 0.18);
  padding: 7px 11px;
  color: #ffd384;
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.burger {
  position: relative;
  display: block;
  filter: drop-shadow(0 20px 18px rgba(20, 18, 13, 0.34));
}

.product-photo {
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #fff1df;
}

.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.burger-large {
  width: 260px;
  height: 180px;
}

.burger-medium {
  width: 138px;
  height: 96px;
}

.burger-small {
  width: 82px;
  height: 58px;
  filter: none;
}

.product-photo.burger-small {
  width: 132px;
  height: 104px;
  border-radius: 11px;
  box-shadow: none;
}

.product-photo.burger-medium {
  width: 138px;
  height: 96px;
  box-shadow: 0 20px 26px rgba(20, 18, 13, 0.18);
}

.burger span {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
}

.bun-top {
  top: 0;
  height: 45%;
  border-radius: 90px 90px 16px 16px;
  background: #e49422;
}

.bun-top::before,
.bun-top::after {
  content: "";
  position: absolute;
  top: 0;
  width: 30px;
  height: 20px;
  border-radius: 999px;
  background: #ffe7a6;
}

.burger-large .bun-top::before {
  right: 74px;
}

.burger-large .bun-top::after {
  right: 24px;
}

.burger-medium .bun-top::before,
.burger-small .bun-top::before {
  right: 42px;
  width: 16px;
  height: 12px;
}

.burger-medium .bun-top::after,
.burger-small .bun-top::after {
  right: 20px;
  width: 16px;
  height: 12px;
}

.cheese {
  top: 34%;
  height: 12%;
  background: #ffd45f;
}

.meat {
  top: 46%;
  height: 24%;
  background: #431a0d;
}

.lettuce {
  top: 70%;
  height: 9%;
  background: #18c970;
}

.tomato {
  top: 79%;
  height: 7%;
  background: #e8352c;
}

.bun-bottom {
  bottom: 0;
  height: 28%;
  border-radius: 10px 10px 44px 44px;
  background: #eda64a;
  box-shadow: inset 0 -8px 0 rgba(124, 71, 18, 0.2);
}

.search-row {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-inline: -1px;
  padding: 13px 0;
  background: rgba(238, 243, 249, 0.92);
  backdrop-filter: blur(10px);
}

.search-box {
  position: relative;
  display: block;
}

.search-box span {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1.8px solid #8c98aa;
  border-radius: 999px;
  transform: translateY(-50%);
}

.search-box span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #8c98aa;
  transform: rotate(45deg);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 16px 0 40px;
  color: #334155;
  box-shadow: var(--shadow-soft);
}

.tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.tabs:empty {
  display: none;
}

.tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: #e6edf6;
  padding: 0 17px;
  color: #647084;
  font-size: 13px;
  font-weight: 900;
}

.tabs button.active {
  background: linear-gradient(135deg, var(--orange), #ff8d00);
  color: #101014;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 16px;
  align-items: start;
}

.menu-area {
  min-width: 0;
}

.featured-card,
.product-card,
.cart-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.featured-card {
  display: none;
  width: 100%;
  min-height: 160px;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 20px;
  padding: 26px 22px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.featured-card:hover,
.product-card:hover {
  box-shadow: 0 20px 42px rgba(22, 33, 56, 0.15);
}

.featured-copy small,
.cart-title span {
  color: #ffb127;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-copy small {
  display: inline-block;
  border-radius: 999px;
  background: #fff0d6;
  padding: 7px 10px;
}

.featured-copy strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 900;
}

.featured-copy span {
  display: block;
  margin-top: 5px;
  color: #627089;
  font-size: 14px;
}

.featured-copy em {
  display: block;
  margin-top: 13px;
  color: #ffb127;
  font-style: normal;
  font-size: 17px;
  font-weight: 900;
}

.section-title {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 14px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 900;
}

.section-title span {
  color: #536176;
  font-size: 12px;
  font-weight: 900;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.menu-category-section {
  display: grid;
  gap: 12px;
  scroll-margin-top: 18px;
}

.menu-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-category-title h3 {
  margin: 0;
  color: #101014;
  font-size: 25px;
  font-weight: 900;
}

.menu-category-title span {
  color: #536176;
  font-size: 12px;
  font-weight: 900;
}

.menu-category-list {
  display: grid;
  gap: 12px;
}

.product-card {
  min-height: 138px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 132px;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 18px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.product-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 24, 0.24);
}

.product-card small {
  display: block;
  color: #ffb127;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.product-card p {
  max-width: 680px;
  margin-top: 6px;
  color: #63708a;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card em {
  display: block;
  margin-top: 18px;
  color: #101014;
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
}

.promotion-section .menu-category-title h3 {
  font-size: 24px;
  text-transform: uppercase;
}

.promotion-card {
  border-color: rgba(255, 90, 24, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 247, 232, 0.92), #fff 42%),
    #fff;
}

.promotion-card small {
  color: #ff5a18;
}

.promotion-card em.promotion-price {
  margin-top: 18px;
  color: #ff8d00;
  font-size: 18px;
}

.old-price {
  display: inline-block;
  margin-top: 3px;
  color: #7b8496;
  font-size: 12px;
  font-weight: 800;
  text-decoration: line-through;
}

.discount-badge {
  display: inline-grid;
  min-width: 32px;
  height: 20px;
  place-items: center;
  margin-left: 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--orange), #ff7a00);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.cart-card {
  position: sticky;
  top: 14px;
  align-self: start;
  padding: 18px 15px 15px;
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.cart-title {
  position: relative;
  padding-right: 42px;
  cursor: pointer;
}

.cart-title strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.cart-title b {
  position: absolute;
  right: 0;
  top: 4px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font-size: 13px;
}

.cart-items {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.cart-empty {
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fffaf3;
  padding: 14px 12px;
}

.cart-empty strong {
  display: block;
  color: #111;
  font-size: 14px;
}

.cart-empty span {
  display: block;
  margin-top: 5px;
  color: #647084;
  font-size: 12px;
  line-height: 1.35;
}

.cart-card.is-empty .coupon-box,
.cart-card.is-empty .summary,
.cart-card.is-empty .finish-button,
.cart-card.is-empty .secure-note,
.cart-card.is-empty .payment {
  display: none;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 10px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.cart-row strong {
  font-size: 13px;
}

.cart-row span {
  display: block;
  margin-top: 4px;
  color: #647084;
  font-size: 11px;
}

.cart-row button {
  margin-top: 5px;
  border: 0;
  background: transparent;
  color: #f05a54;
  padding: 0;
  font-size: 12px;
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.checkout-form label {
  display: grid;
  gap: 5px;
}

.checkout-form span {
  color: #536176;
  font-size: 10px;
  font-weight: 900;
}

.checkout-form input,
.checkout-form select,
.note {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  color: #18202c;
  font-size: 12px;
}

.checkout-form input:focus,
.checkout-form select:focus,
.note:focus {
  border-color: rgba(255, 90, 24, 0.65);
}

.coupon-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.coupon-box label {
  color: #df7600;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coupon-box div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.coupon-box input {
  min-width: 0;
  min-height: 42px;
  border: 1px dashed #ffba77;
  border-radius: 9px;
  background: #fffaf3;
  padding: 0 12px;
  color: #18202c;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.coupon-box button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: #111;
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.coupon-box small {
  color: #7c8798;
  font-size: 11px;
  font-weight: 800;
}

.coupon-box small.coupon-success {
  color: #16884a;
}

.coupon-box small.coupon-error {
  color: #d13a2f;
}

.coupon-button {
  width: 100%;
  min-height: 36px;
  margin-top: 12px;
  border: 1px dashed #ffc47a;
  border-radius: 8px;
  background: #fffaf3;
  color: #df7600;
  font-size: 12px;
  font-weight: 900;
}

.summary {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.summary p {
  display: flex;
  justify-content: space-between;
  color: #5f6b7d;
  font-size: 13px;
}

.delivery-line {
  display: none !important;
}

.delivery-line.visible {
  display: flex !important;
}

.delivery-fee-row {
  display: none !important;
}

.delivery-fee-row.visible {
  display: flex !important;
}

.summary p:last-child {
  color: #111;
  font-size: 17px;
  font-weight: 900;
}

.discount-line {
  display: none;
}

.discount-line.visible {
  display: flex;
  color: #16884a;
}

.finish-button,
.add-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange), #ff8a00);
  color: #111;
  font-weight: 900;
}

.finish-button {
  margin-top: 12px;
  box-shadow: 0 10px 20px rgba(255, 90, 24, 0.24);
}

.finish-button:disabled {
  cursor: not-allowed;
  background: #d8dee8;
  color: #7b8494;
  box-shadow: none;
}

.secure-note {
  display: block;
  margin-top: 8px;
  color: #7c8798;
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
}

.payment {
  display: none;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 189, 69, 0.25), transparent 40%),
    #111827;
  padding: 10px;
  color: #fff;
}

.payment.visible {
  display: grid;
}

.payment span,
.payment small {
  display: block;
  color: #bcc4d0;
  font-size: 11px;
}

.payment strong {
  display: block;
  margin: 3px 0;
}

.qr {
  width: 66px;
  height: 66px;
  border: 7px solid #fff;
  border-radius: 6px;
  background:
    linear-gradient(90deg, #111 7px, transparent 7px) 0 0 / 14px 14px,
    linear-gradient(#111 7px, transparent 7px) 0 0 / 14px 14px,
    #eee;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(15, 23, 42, 0.54);
  padding: 18px;
}

.modal.open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font-size: 24px;
}

.modal-visual {
  display: grid;
  place-items: center;
  min-height: 210px;
  background: linear-gradient(135deg, #fff8ec, #edf4ff);
}

.modal-visual.no-image {
  display: none;
}

.modal-visual img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.modal-photo-empty {
  display: none;
}

.modal-body {
  padding: 20px;
}

.modal-body h2 {
  font-size: 28px;
}

.modal-body p {
  margin-top: 6px;
  color: #647084;
  font-size: 14px;
  line-height: 1.45;
}

#modalBasePrice {
  display: block;
  margin-top: 12px;
  color: #ffb127;
  font-size: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed #cdd7e5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  padding: 28px;
  color: #657087;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.combo-builder {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.combo-builder[hidden] {
  display: none;
}

.combo-builder > input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.combo-builder > input:focus {
  border-color: rgba(255, 91, 31, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.12);
}

.combo-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3e8;
}

.combo-step strong,
.combo-step small {
  display: block;
}

.combo-step small {
  margin-top: 2px;
  color: #5f6878;
  font-size: 12px;
  font-weight: 800;
}

.combo-step b {
  min-width: 42px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.combo-step b.complete {
  background: #19b967;
}

.combo-options {
  display: grid;
  max-height: 340px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.combo-option {
  display: grid;
  grid-template-columns: 56px 1fr 38px;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 10px 0;
  color: var(--ink);
  text-align: left;
}

.combo-option.no-photo {
  grid-template-columns: 1fr 38px;
}

.combo-option img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.combo-option span {
  min-width: 0;
}

.combo-option strong,
.combo-option small,
.combo-option b {
  display: block;
}

.combo-option small {
  margin: 2px 0;
  color: #647084;
  font-size: 12px;
  line-height: 1.35;
}

.combo-option b {
  color: var(--ink);
  font-size: 14px;
}

.combo-option i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-style: normal;
  font-size: 20px;
  font-weight: 900;
}

.combo-option.selected {
  background: linear-gradient(90deg, rgba(255, 91, 31, 0.1), #fff 48%);
}

.combo-option.selected i {
  background: #19b967;
}

.combo-ready-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px 0;
  color: var(--ink);
  text-align: left;
}

.combo-ready-option i {
  width: 15px;
  height: 15px;
  border: 1.6px solid #8b95a6;
  border-radius: 999px;
}

.combo-ready-option strong {
  font-size: 15px;
  line-height: 1.35;
}

.combo-ready-option b {
  color: var(--red);
  font-size: 14px;
  white-space: nowrap;
}

.combo-ready-option.selected {
  background: linear-gradient(90deg, rgba(255, 91, 31, 0.1), #fff 48%);
}

.combo-ready-option.selected i {
  border-color: var(--red);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--red);
}

fieldset {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  font-weight: 900;
}

.fieldset-help {
  display: block;
  margin: -3px 0 9px;
  color: #445066;
  font-size: 11px;
  font-weight: 800;
}

fieldset label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 7px 0;
  color: #101014;
  font-size: 13px;
}

fieldset input {
  accent-color: var(--orange);
}

.note-label {
  display: block;
  margin-top: 14px;
  color: #4f596b;
  font-size: 12px;
  font-weight: 900;
}

.note {
  width: 100%;
  margin-top: 12px;
  min-height: 82px;
  resize: vertical;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding-top: 14px;
}

.qty {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qty button {
  height: 42px;
  border: 0;
  background: #fff;
  font-size: 19px;
  font-weight: 900;
}

.qty strong {
  text-align: center;
}

/* Professional checkout flow */
.checkout-flow {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(16, 18, 24, 0.58);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.checkout-flow.open {
  display: grid;
}

.checkout-phone {
  width: min(430px, 100%);
  height: min(850px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: #fff8ef;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.checkout-browser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid #ffe0b8;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 189, 69, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.96);
  padding: 14px 18px;
  color: #111827;
}

.checkout-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark-small {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid var(--orange);
  background: #07080b;
}

.brand-mark-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-brand strong,
.checkout-brand small {
  display: block;
}

.checkout-brand strong {
  font-size: 15px;
}

.checkout-brand small {
  margin-top: 2px;
  color: #737c8d;
  font-size: 12px;
  font-weight: 800;
}

.checkout-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #fff1df;
  color: #bb5600;
  font-size: 24px;
}

.checkout-screen {
  display: none;
  height: calc(100% - 74px);
  position: relative;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 189, 69, 0.15), transparent 34%),
    #fff8ef;
  color: #252525;
  overflow: hidden;
}

.checkout-screen.active {
  display: block;
}

.blue-header {
  position: relative;
  display: block;
  min-height: 128px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.24), transparent 20%),
    linear-gradient(135deg, #ff5a18, #ff9500);
  color: #16110c;
  padding: 24px 22px 18px 64px;
}

.blue-header h2 {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 900;
}

.blue-header > span {
  display: block;
  color: rgba(22, 17, 12, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-progress {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.flow-progress i {
  display: block;
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: rgba(22, 17, 12, 0.16);
}

.flow-progress i.active {
  background: #16110c;
}

.back-button {
  position: absolute;
  left: 18px;
  top: 28px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.34);
  color: #16110c;
  font-size: 32px;
  line-height: 1;
}

.chosen-list {
  height: calc(100% - 230px);
  overflow: auto;
  padding: 18px;
}

.chosen-item {
  position: relative;
  border: 1px solid #ffe0b8;
  border-radius: 14px;
  background: white;
  padding: 16px 118px 16px 16px;
  box-shadow: 0 12px 26px rgba(111, 66, 13, 0.08);
}

.chosen-item + .chosen-item {
  margin-top: 12px;
}

.chosen-item h3 {
  font-size: 18px;
  font-weight: 900;
}

.chosen-item p {
  margin-top: 6px;
  color: #75614a;
  font-size: 14px;
  line-height: 1.45;
}

.chosen-item strong {
  display: block;
  margin-top: 8px;
  color: #11100f;
  font-size: 17px;
  font-weight: 900;
}

.chosen-qty {
  position: absolute;
  right: 14px;
  top: 16px;
  display: grid;
  grid-template-columns: 34px 26px 34px;
  align-items: center;
  gap: 4px;
}

.chosen-qty button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.chosen-qty button:first-child {
  background: #cf3b2f;
}

.chosen-qty button:last-child {
  background: #119447;
}

.chosen-qty span {
  text-align: center;
  font-size: 18px;
}

.obs-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.obs-field span {
  color: #d76700;
  font-size: 12px;
  font-weight: 900;
}

.obs-field textarea {
  width: min(360px, 100%);
  min-height: 74px;
  resize: vertical;
  border: 1px solid #ffd8a3;
  border-radius: 10px;
  background: #fff8ef;
  padding: 10px 12px;
  color: #2d251c;
  font: inherit;
  font-size: 13px;
}

.checkout-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid #ffe0b8;
  background: rgba(255, 255, 255, 0.98);
  padding: 14px 16px 16px;
  box-shadow: 0 -12px 28px rgba(111, 66, 13, 0.1);
}

.center-total {
  margin-bottom: 12px;
  text-align: center;
  color: #7a684f;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.center-total strong {
  color: #11100f;
  font-size: 22px;
  font-weight: 900;
}

.bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.outline-blue,
.solid-blue,
.next-button,
.confirm-order {
  min-height: 50px;
  border-radius: 9px;
  border: 0;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
}

.outline-blue {
  border: 1px solid #ffd399;
  background: #fff;
  color: #b65300;
}

.solid-blue,
.confirm-order {
  background: linear-gradient(135deg, #ff5a18, #ff9500);
  color: #11100f;
}

.delivery-choice {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  min-height: 74px;
  margin: 14px 18px 0;
  border: 1px solid #ffe0b8;
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
  box-shadow: 0 10px 24px rgba(111, 66, 13, 0.07);
}

.delivery-choice.active,
.delivery-choice.selected {
  border-color: rgba(255, 90, 24, 0.52);
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(135deg, #ff5a18, #ff9500);
  color: #16110c;
}

.delivery-choice strong {
  font-size: 19px;
  font-weight: 900;
}

.delivery-choice em {
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
}

.delivery-choice[aria-pressed="true"] {
  box-shadow: 0 12px 24px rgba(255, 90, 24, 0.14);
}

.line-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #fff8ef;
  box-shadow: inset 0 0 0 1px #ffe0b8;
  font-size: 21px;
  line-height: 1;
}

.delivery-choice.active .line-icon,
.delivery-choice.selected .line-icon {
  background: rgba(17, 16, 15, 0.13);
  box-shadow: inset 0 0 0 1px rgba(17, 16, 15, 0.18);
}

.address-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  min-height: 104px;
  border: 1px solid #ffe0b8;
  border-radius: 14px;
  background: white;
  margin: 14px 18px 0;
  padding: 16px;
  text-align: left;
  width: calc(100% - 36px);
  box-shadow: 0 10px 24px rgba(111, 66, 13, 0.07);
}

.address-row.hidden,
.checkout-form.hidden {
  display: none;
}

.pin-icon {
  position: relative;
  width: 28px;
  height: 38px;
  border: 4px solid #111;
  border-radius: 18px 18px 18px 0;
  transform: rotate(-45deg);
}

.pin-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  margin: 8px;
  border-radius: 999px;
  background: #111;
}

.address-row small {
  display: block;
  color: #7a684f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.address-row input {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid #ffe0b8;
  border-radius: 10px;
  background: #fffdf9;
  padding: 0 12px;
  color: #2d251c;
  font-size: 14px;
}

.client-fields {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.client-fields input {
  min-height: 54px;
  border: 1px solid #ffe0b8;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  color: #333;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(111, 66, 13, 0.06);
}

.checkout-totals {
  display: grid;
  gap: 7px;
  padding-right: 150px;
}

.checkout-totals p {
  display: flex;
  justify-content: space-between;
  color: #7a684f;
  font-size: 14px;
}

.checkout-totals p:last-child {
  margin-top: 4px;
  color: #11100f;
  font-size: 20px;
  font-weight: 900;
}

.next-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 150px;
  min-height: 54px;
  background: linear-gradient(135deg, #ff5a18, #ff9500);
  color: #11100f;
}

.pay-summary {
  margin: 18px 18px 0;
  border: 1px solid #ffe0b8;
  border-radius: 14px;
  background: white;
  padding: 18px;
  color: #7a684f;
  box-shadow: 0 10px 24px rgba(111, 66, 13, 0.07);
}

.pay-summary p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 15px;
}

.pay-summary p:last-child {
  margin-bottom: 0;
  border-top: 1px solid #ffe0b8;
  padding-top: 14px;
  color: #11100f;
  font-size: 26px;
  font-weight: 900;
}

.payment-question {
  margin-top: 24px;
  color: #7a684f;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 18px 0;
}

.pay-option,
.pay-wide {
  min-height: 92px;
  border: 1px solid #ffe0b8;
  border-radius: 14px;
  background: white;
  color: #7a684f;
  box-shadow: 0 10px 24px rgba(111, 66, 13, 0.07);
  font-size: 16px;
  font-weight: 900;
}

.pay-option.active,
.pay-wide.active {
  border-color: #ff5a18;
  background:
    radial-gradient(circle at 96% 12%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #ff5a18, #ff9500);
  color: #11100f;
}

.pay-option.unavailable,
.pay-wide.unavailable {
  cursor: not-allowed;
  border-color: #ead8c4;
  background: #f7f1ec;
  color: #a08a78;
  box-shadow: none;
  opacity: 0.82;
}

.pay-option.unavailable .pay-emblem,
.pay-wide.unavailable .pay-emblem {
  filter: grayscale(1);
  opacity: 0.55;
}

.pay-wide {
  grid-column: 1 / -1;
  min-height: 56px;
}

.change-panel {
  display: none;
  margin: 14px 18px 0;
  border: 1px solid #ffe0b8;
  border-radius: 14px;
  background: white;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(111, 66, 13, 0.07);
}

.change-panel.visible {
  display: grid;
  gap: 12px;
}

.change-panel label {
  display: grid;
  gap: 7px;
}

.change-panel span {
  color: #7a684f;
  font-size: 12px;
  font-weight: 900;
}

.change-panel select,
.change-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ffe0b8;
  border-radius: 10px;
  background: #fffdf9;
  padding: 0 12px;
  color: #2d251c;
}

.change-value {
  display: none !important;
}

.change-value.visible {
  display: grid !important;
}

.pay-emblem {
  position: relative;
  display: block;
  width: 42px;
  height: 34px;
  margin: 0 auto 9px;
  color: currentColor;
}

.pay-wide .pay-emblem {
  display: inline-block;
  margin: 0 10px 0 0;
  vertical-align: middle;
}

.pix-icon::before,
.pix-icon::after {
  content: "";
  position: absolute;
  inset: 5px 9px;
  border-radius: 8px;
  background: #16c7b7;
  transform: rotate(45deg);
}

.pix-icon::after {
  inset: 12px 16px;
  border-radius: 4px;
  background: #fff;
}

.card-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  bottom: 5px;
  border: 3px solid currentColor;
  border-radius: 7px;
}

.card-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 14px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 9px 0 -1px currentColor;
}

.cash-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 6px;
  bottom: 6px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.cash-icon::after {
  content: "R$";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.pay-total-line {
  margin-top: 24px;
  color: #7a684f;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.pay-total-line strong {
  color: #11100f;
  font-weight: 900;
}

.confirm-order {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  width: calc(100% - 36px);
  min-height: 62px;
  box-shadow: 0 14px 26px rgba(255, 90, 24, 0.26);
}

.pix-wait-screen {
  background: #fff;
}

.pix-wait-header {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px 0 54px;
  background: #f23a2e;
  color: #fff;
  font-weight: 900;
}

.pix-wait-header .back-button {
  top: 10px;
  left: 12px;
  width: 34px;
  height: 34px;
  background: transparent;
  color: #fff;
}

.pix-wait-content {
  height: calc(100% - 56px);
  overflow: auto;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  padding: 26px 22px 28px;
  text-align: center;
}

.pix-wait-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 8px solid #ffdcd7;
  border-radius: 999px;
  background: #f23a2e;
  color: #fff;
  box-shadow: 0 0 0 8px #fff1ef;
}

.pix-wait-icon .pay-emblem {
  width: 34px;
  height: 34px;
  margin: 0;
}

.pix-wait-content h2 {
  margin: 16px 0 0;
  font-size: 28px;
  font-weight: 900;
}

.pix-wait-content p {
  max-width: 360px;
  color: #2b2b2b;
  font-size: 16px;
  line-height: 1.45;
}

.pix-expire {
  color: #252525;
  font-size: 16px;
  font-weight: 900;
}

.pix-qr {
  width: 146px;
  height: 146px;
  border: 10px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #111 6px, transparent 6px) 0 0 / 13px 13px,
    linear-gradient(#111 6px, transparent 6px) 0 0 / 13px 13px,
    #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.pix-qr.has-image {
  display: grid;
  place-items: center;
  background: #fff;
}

.pix-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pix-code {
  width: min(360px, 100%);
  min-height: 76px;
  border: 1px dashed #d6d6d6;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: #111;
  font-size: 14px;
  line-height: 1.35;
  resize: none;
}

.copy-pix {
  border: 0;
  background: transparent;
  color: #cb1f18;
  font-size: 16px;
  font-weight: 900;
}

.pix-wait-content > small {
  color: #555;
  font-size: 11px;
}

.pix-order-time {
  width: min(360px, 100%);
  display: grid;
  gap: 3px;
  border-block: 1px solid #e7e7e7;
  padding: 16px 0;
  color: #111;
  font-size: 15px;
}

.pix-total-row {
  width: min(360px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  color: #111;
}

.pix-total-row span {
  font-size: 28px;
}

.pix-total-row strong {
  font-size: 30px;
  font-weight: 900;
}

.pix-finish {
  width: min(360px, 100%);
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: #93d7ab;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
}

.pix-finish:disabled {
  cursor: wait;
  opacity: 0.82;
}

.success-screen {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px 24px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a18, #ff9500);
  color: #11100f;
  font-size: 44px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(255, 90, 24, 0.26);
}

.success-screen small {
  color: #d76700;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.success-screen h2 {
  color: #16110c;
  font-size: 30px;
  line-height: 1.05;
}

.success-screen p {
  color: #7a684f;
  font-size: 15px;
  line-height: 1.5;
}

.success-card {
  display: grid;
  gap: 4px;
  border: 1px solid #ffe0b8;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(111, 66, 13, 0.07);
}

.success-card span {
  color: #7a684f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.success-card strong {
  color: #11100f;
  font-size: 26px;
}

.whatsapp-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: 12px;
  background: #14b85a;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(20, 184, 90, 0.22);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: #fff;
}

.success-close {
  min-height: 48px;
}

.closing-alert {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(17, 20, 28, 0.56);
  backdrop-filter: blur(8px);
}

.closing-alert.open {
  display: grid;
}

.closing-alert-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(520px, 100%);
  border: 1px solid rgba(255, 189, 69, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 189, 69, 0.18), transparent 42%),
    #fff;
  padding: 34px 26px 30px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.closing-alert-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff1df;
  color: #c54a00;
  font-size: 22px;
  font-weight: 900;
}

.closing-alert-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 4px solid #ffd4a2;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3b30, #ff8a00);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.closing-alert-card h2 {
  max-width: 360px;
  color: #4c4f58;
  font-size: 30px;
  line-height: 1.18;
}

.closing-alert-card p {
  color: #6f7480;
  font-size: 17px;
  line-height: 1.4;
}

.closing-alert-card p strong {
  color: #ff5a18;
  font-weight: 900;
}

.closing-loader {
  width: 44px;
  height: 44px;
  border: 5px solid #e9eef7;
  border-top-color: #ff5a18;
  border-radius: 999px;
  animation: closingSpin 0.9s linear infinite;
}

@keyframes closingSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .page {
    width: min(100% - 24px, 760px);
  }

  .hero-card {
    min-height: 430px;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.22) 34%, rgba(0, 0, 0, 0.78) 100%),
      var(--hero-image) center top / cover no-repeat;
  }

  .hero-copy {
    width: 100%;
    padding: 26px;
    background: transparent;
  }

  .search-row,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .cart-card {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .page {
    width: 100%;
    margin-top: 0;
  }

  .hero-card {
    border-radius: 0;
    min-height: 420px;
  }

  .search-row,
  .content-grid {
    padding-inline: 12px;
  }

  h1 {
    font-size: 42px;
  }

  .featured-card {
    grid-template-columns: 1fr 110px;
    padding: 18px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .checkout-flow {
    padding: 0;
  }

  .checkout-phone {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .checkout-screen {
    height: calc(100% - 74px);
  }

  .pay-methods {
    padding-inline: 18px;
  }

  .pay-summary p:last-child {
    font-size: 24px;
  }

  .chosen-item {
    padding-right: 102px;
  }

  .chosen-qty {
    right: 10px;
    grid-template-columns: 30px 24px 30px;
  }

  .chosen-qty button {
    width: 30px;
    height: 30px;
  }

  .delivery-choice {
    grid-template-columns: 42px 1fr;
  }

  .checkout-totals {
    padding-right: 132px;
  }

  .next-button {
    width: 120px;
  }

  .pay-total-line {
    font-size: 19px;
  }
}
