:root {
  --yellow: #FFD600;
  --black: #111111;
  --white: #FFFFFF;
  --soft: #F6F6F6;
  --line: #ECECEC;
  --whatsapp: #25D366;
  --text-muted: #6F6F6F;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: #F3F3F3;
  color: var(--black);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: pageEnter 0.18s ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #F3F3F3;
  content: "";
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.modal-open {
  overflow: hidden;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--white);
  box-shadow: 0 20px 70px rgba(17, 17, 17, 0.11);
  padding: 0 14px calc(132px + var(--safe-bottom));
}

.detail-shell {
  padding-right: 0;
  padding-left: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 -14px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.brand strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--text-muted);
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
}

.logo-slot {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  font-weight: 900;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-slot img + .logo-fallback {
  display: none;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--black);
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-button:active,
.quick-add:active,
.upsell-add:active,
.primary-button:active,
.whatsapp-button:active {
  transform: scale(0.96);
}

.page {
  display: none;
}

.page-active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.category-strip {
  display: flex;
  gap: 10px;
  margin: 0 -14px;
  padding: 8px 14px 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

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

.category-pill,
.category-card {
  display: flex;
  width: 98px;
  min-width: 98px;
  height: 136px;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 8px 8px;
  background: #FFFFFF;
  color: var(--black);
  font-weight: 700;
  scroll-snap-align: start;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.category-icon {
  display: flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  flex: 0 0 82px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
}

.category-icon img {
  display: block;
  width: 78px;
  height: 78px;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.category-emoji {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  background: transparent;
  font-size: 30px;
  line-height: 1;
}

.category-title {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--black);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.category-pill.active {
  border-color: var(--yellow);
  background: #FFFFFF;
  box-shadow: 0 3px 0 var(--yellow);
}

.subcategory-strip {
  display: flex;
  gap: 8px;
  margin: -4px -14px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 14px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.subcategory-strip[hidden] {
  display: none;
}

.subcategory-strip::-webkit-scrollbar {
  display: none;
}

.subcategory-pill {
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  scroll-snap-align: start;
  cursor: pointer;
}

.subcategory-pill.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.promo-banner {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: var(--yellow);
  box-shadow: 0 14px 28px rgba(255, 214, 0, 0.22);
}

.promo-photo,
.product-image,
.detail-photo,
.cart-image,
.upsell-image {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 214, 0, 0.8), transparent 34%),
    linear-gradient(135deg, #fff9bf, #f0f0f0);
}

.promo-photo {
  width: 100%;
  height: 100%;
}

.promo-photo::after,
.product-image::after,
.detail-photo::after,
.cart-image::after,
.upsell-image::after {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: rgba(17, 17, 17, 0.45);
  content: "TOKI";
  font-weight: 900;
}

.food-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: rgba(17, 17, 17, 0.62);
  font-size: 42px;
  font-weight: 900;
}

.image-missing .food-placeholder {
  display: grid;
}

.food-placeholder em {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(17, 17, 17, 0.34);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0;
}

.image-missing::after {
  display: grid;
}

.promo-photo img,
.product-image img,
.detail-photo img,
.cart-image img,
.upsell-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-missing img {
  display: none;
}

.section-heading,
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 14px;
}

.section-heading h2,
.section-heading h1,
.page-title-row h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.search-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 18px;
  cursor: pointer;
}

.search-panel {
  margin: -4px 0 16px;
}

.search-panel[hidden] {
  display: none;
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--soft);
  color: var(--black);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.search-panel input:focus {
  border-color: var(--yellow);
  background: var(--white);
}

.category-mode .category-strip,
.category-mode .promo-banner,
.category-mode .section-heading {
  display: none;
}

.category-toolbar {
  padding-top: 8px;
}

.category-toolbar[hidden] {
  display: none;
}

.category-topline {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 14px;
}

.category-topline h1 {
  margin: 0;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
}

.plain-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--black);
  font-size: 26px;
  font-weight: 600;
  cursor: pointer;
}

.subfilter-strip {
  display: flex;
  gap: 8px;
  margin: 0 -14px 16px;
  overflow-x: auto;
  padding: 0 14px;
  scrollbar-width: none;
}

.subfilter-strip::-webkit-scrollbar {
  display: none;
}

.subfilter {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.subfilter.active {
  border-color: var(--yellow);
  background: var(--yellow);
}

.text-button,
.ghost-button,
.plain-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 28px 18px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--text-muted);
  font-weight: 800;
  text-align: center;
}

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.055);
  cursor: pointer;
  transition: none;
}

.product-link {
  display: block;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px 16px 12px 12px;
  transition: none;
}

.product-info {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 10px 10px;
}

.product-info h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portion-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  background: #f5f5f5;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.detail-content > .portion-label {
  margin: -6px 0 14px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 10px;
}

.product-bottom strong {
  font-size: 16px;
  white-space: nowrap;
}

.quick-add,
.mini-counter {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
}

.mini-counter {
  display: flex;
  min-width: 86px;
  justify-content: space-between;
  border-radius: 10px;
  padding: 0 7px;
  font-size: 14px;
}

.mini-counter button {
  display: grid;
  width: 24px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--black);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.qty-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.16);
}

.new-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #ff2f2f;
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.16);
}

.tap-pop {
  animation: tapPop 0.22s ease;
}

.cart-pop {
  animation: cartPop 0.22s ease;
}

.simple-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 0 16px;
}

.simple-header > div {
  min-width: 0;
}

.simple-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.simple-header p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.danger-icon {
  color: #D52B2B;
}

.detail-photo {
  width: 100%;
  height: clamp(320px, 48vh, 480px);
  min-height: 320px;
  max-height: none;
}

.modal-back,
.back-checkout {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  z-index: 2;
}

.modal-back,
.back-checkout {
  left: 14px;
}

.modal-back {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.16);
}

.detail-content {
  padding: 18px 14px 126px;
  border-radius: 24px 24px 0 0;
  background: var(--white);
}

.detail-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-content h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.detail-price {
  display: block;
  font-size: 21px;
  white-space: nowrap;
}

.detail-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.detail-description {
  margin-top: 12px !important;
}

.detail-meta-section {
  margin-top: 18px;
}

.detail-meta-section h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.spicy-level {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-weight: 600;
}

.spicy-level > span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.spicy-level > strong {
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
}

.flames {
  display: flex;
  align-items: center;
  gap: 5px;
}

.spicy-fire {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: cover;
  object-position: center;
}

.spicy-fire.active {
  opacity: 1;
  filter: none;
}

.spicy-fire.inactive {
  opacity: .2;
  filter: grayscale(1);
}

.addons {
  margin-top: 24px;
}

.addons h2,
.option-group h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.option-group {
  margin-top: 22px;
}

.option-list {
  display: grid;
  gap: 8px;
}

.option-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  cursor: pointer;
}

.option-row.active {
  border-color: var(--yellow);
  background: var(--yellow);
}

.addon-row {
  display: grid;
  grid-template-columns: 1fr auto 38px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 55px;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 0;
  padding: 9px 10px 9px 14px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.addon-counter-row {
  grid-template-columns: 1fr auto 104px;
  cursor: default;
}

.addon-counter {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.addon-counter button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.addon-row:first-of-type {
  border-radius: 14px 14px 0 0;
}

.addon-row:last-of-type {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
}

.addon-row b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
  background: var(--soft);
  font-size: 20px;
}

.addon-row.selected {
  border-color: var(--yellow);
  background: #fffbea;
}

.addon-row.selected b {
  background: var(--yellow);
}

.detail-sticky,
.bottom-nav,
.sticky-cart {
  position: fixed;
  right: 50%;
  transform: translateX(50%);
  width: min(100%, 430px);
}

.detail-sticky {
  bottom: 0;
  z-index: 60;
  padding: 12px 14px calc(12px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.add-detail-button,
.primary-button,
.whatsapp-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--black);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.delivery-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 18px;
  padding: 5px;
  border-radius: 18px;
  background: var(--soft);
}

.delivery-option {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.delivery-option.active {
  background: var(--yellow);
}

.cart-list {
  display: grid;
  gap: 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
}

.cart-image {
  width: 76px;
  height: 76px;
  border-radius: 14px;
}

.cart-info {
  min-width: 0;
}

.cart-info h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.cart-info span {
  display: block;
  margin-bottom: 8px;
  color: var(--black);
  font-size: 14px;
}

.cart-info p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.3;
}

.cart-info .cart-spicy-text {
  color: var(--black);
  font-weight: 600;
}

.cart-controls {
  display: flex;
  width: 96px;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.cart-controls button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.cart-line-total {
  display: grid;
  min-height: 76px;
  align-content: space-between;
  justify-items: end;
}

.cart-line-total strong {
  font-size: 16px;
  white-space: nowrap;
}

.remove-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #FFE9E9;
  color: #D52B2B;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.cart-summary {
  margin-top: 18px;
  padding: 0 0 4px;
  border-radius: 0;
  background: transparent;
}

.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-summary span {
  color: var(--text-muted);
  font-weight: 700;
}

.cart-summary strong {
  font-size: 28px;
}

.whatsapp-button {
  background: var(--yellow);
  color: var(--black);
}

.whatsapp-link {
  background: var(--whatsapp);
  color: var(--white);
}

.empty-cart {
  padding: 40px 22px;
  border-radius: 24px;
  background: var(--soft);
  text-align: center;
}

.empty-cart strong {
  font-size: 22px;
}

.empty-cart p {
  color: var(--text-muted);
}

[hidden] {
  display: none !important;
}

.checkout-shell {
  padding: 0 20px calc(172px + var(--safe-bottom));
  background: var(--white);
}

.checkout-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 0 16px;
}

.checkout-header h1,
.checkout-header h3 {
  margin: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.checkout-icon-button,
.checkout-header-spacer {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
}

.checkout-icon-button {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.checkout-icon-button svg {
  width: 21px;
  height: 21px;
}

.clear-order-button {
  justify-self: end;
  color: #E43A3A;
}

.checkout-shell .cart-list {
  gap: 14px;
}

.checkout-shell .cart-item {
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 18px 16px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.checkout-shell .cart-image {
  width: 90px;
  height: 90px;
  border-radius: 18px;
}

.checkout-shell .cart-info h3 {
  margin: 1px 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.12;
}

.checkout-shell .cart-info span {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 400;
}

.checkout-shell .cart-controls {
  width: 144px;
  min-height: 52px;
  border-radius: 16px;
  background: var(--white);
}

.checkout-shell .cart-controls button {
  width: 48px;
  height: 50px;
  font-size: 24px;
}

.checkout-shell .cart-controls b {
  font-size: 18px;
  font-weight: 700;
}

.checkout-shell .cart-line-total {
  min-height: 90px;
}

.checkout-shell .cart-line-total strong {
  font-size: 17px;
  font-weight: 700;
}

.checkout-shell .remove-button {
  width: 52px;
  height: 52px;
  background: #FFE7E7;
}

.checkout-shell .remove-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 3;
}

.delivery-block,
.order-summary-block {
  margin-top: 24px;
}

.delivery-block h2,
.order-summary-block h2,
.payment-section h2 {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
}

.checkout-shell .delivery-toggle {
  display: grid;
  height: 58px;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 12px;
  padding: 5px;
  border-radius: 18px;
  background: #F5F5F5;
}

.checkout-shell .delivery-option {
  min-height: 48px;
  border-radius: 14px;
  background: transparent;
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
  box-shadow: none;
}

.checkout-shell .delivery-option.active {
  background: var(--yellow);
  color: var(--black);
}

.delivery-info-card,
.order-summary-card,
.payment-summary-card,
.payment-details-card,
.payment-warning,
.payment-empty {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.delivery-info-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 11px;
  padding: 14px 15px;
}

.info-card-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #FFF5B8;
  color: var(--black);
}

.info-card-icon svg {
  width: 20px;
  height: 20px;
}

.delivery-info-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}

.delivery-info-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.delivery-address-fields {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.delivery-address-fields[hidden] {
  display: none;
}

.delivery-field {
  display: grid;
  gap: 7px;
}

.delivery-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.delivery-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.delivery-field input:focus {
  outline: 2px solid rgba(255, 208, 0, 0.45);
  border-color: var(--yellow);
}

.payment-summary-card {
  padding: 18px;
}

.order-summary-card {
  height: auto;
  padding: 18px;
  box-sizing: border-box;
}

.summary-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
}

.summary-text {
  min-width: 0;
}

.summary-title {
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.summary-subtitle {
  margin-top: 3px;
  overflow: hidden;
  color: #777777;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-price {
  flex-shrink: 0;
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.payment-summary-card .summary-row span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
}

.payment-summary-card .summary-row small {
  color: #777777;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.payment-summary-card .summary-row strong {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.summary-divider {
  height: 1px;
  margin: 10px 0;
  background: var(--line);
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid #EEEEEE;
}

.summary-total span {
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
}

.summary-total-price {
  color: var(--black);
  font-size: 25px;
  font-weight: 750;
  white-space: nowrap;
}

.payment-summary-card .grand-total span {
  font-size: 18px;
}

.payment-summary-card .grand-total strong {
  font-size: 27px;
  font-weight: 750;
}

.checkout-submit {
  min-height: 58px;
  margin-top: 18px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
}

.payment-shell {
  padding-bottom: calc(120px + var(--safe-bottom));
}

.payment-shell .checkout-header {
  padding-bottom: 18px;
}

.payment-intro {
  margin-bottom: 20px;
}

.payment-intro h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.payment-intro p {
  margin: 0;
  margin-top: 6px;
  color: #777777;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.payment-section {
  margin-top: 22px;
}

.payment-shell .payment-section h2 {
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
}

.payment-summary-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.payment-items {
  display: grid;
  gap: 9px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.payment-item-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.payment-item-line span {
  min-width: 0;
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.payment-item-line small {
  display: block;
  margin-top: 3px;
  color: #777777;
  font-size: 12px;
  font-weight: 500;
}

.payment-item-line strong {
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.remote-payment-section {
  margin-top: 24px;
}

.remote-payment-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.remote-payment-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.remote-payment-card > p {
  margin: 0 0 18px;
  color: #6F6F6F;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.payment-method-group {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

.payment-method-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-method {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border-radius: 14px;
  background: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: 0.18s ease;
}

.payment-method.kaspi {
  border: 1px solid #E53935;
  color: #C62828;
}

.payment-method.halyk {
  border: 1px solid #1F9D55;
  color: #178144;
}

.payment-method.cash {
  border: 1px solid #333333;
  color: #333333;
}

.payment-method.kaspi.active {
  border-color: #E53935;
  background: #E53935;
  color: #FFFFFF;
}

.payment-method.halyk.active {
  border-color: #1F9D55;
  background: #1F9D55;
  color: #FFFFFF;
}

.payment-method.cash.active {
  border-color: #222222;
  background: #222222;
  color: #FFFFFF;
}

.method-error {
  min-height: 18px;
  margin: 0;
  color: #D72F2F;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.remote-phone-block {
  margin-top: 2px;
}

.phone-field {
  display: grid;
  gap: 8px;
}

.phone-field span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.phone-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #E2E2E2;
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--black);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  box-sizing: border-box;
  outline: none;
}

.phone-field input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.22);
}

.phone-field input.has-error {
  border-color: #E43A3A;
  box-shadow: 0 0 0 3px rgba(228, 58, 58, 0.1);
}

.phone-hint,
.phone-error {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

.phone-hint {
  color: #777777;
}

.phone-error {
  min-height: 18px;
  color: #D72F2F;
  font-weight: 600;
}

.remote-payment-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #FFF7CC;
  color: #4A3B00;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.payment-action-bar {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 40;
  width: min(100%, 430px);
  padding: 12px 20px calc(12px + var(--safe-bottom));
  transform: translateX(50%);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.payment-main-button {
  min-height: 62px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
}

.payment-main-button:disabled {
  background: #EFEFEF;
  color: #8A8A8A;
  cursor: default;
}

.payment-empty {
  margin-top: 22px;
  padding: 38px 22px;
  text-align: center;
}

.payment-empty strong {
  font-size: 24px;
  font-weight: 700;
}

.about-shell {
  padding: 0 0 calc(112px + var(--safe-bottom));
}

.about-hero {
  position: relative;
  z-index: 3;
  min-height: 228px;
  overflow: visible;
  padding: calc(84px + env(safe-area-inset-top, 0px)) 150px 48px 24px;
  background: var(--yellow);
}

.about-hero-copy {
  position: relative;
  z-index: 7;
  max-width: calc(100% - 132px);
}

.about-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
}

.about-hero p {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.about-mascot {
  position: absolute;
  right: 8px;
  bottom: -24px;
  z-index: 6;
  display: block;
  width: 140px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.about-panel {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - 228px - var(--nav-height));
  margin-top: -18px;
  border-radius: 26px 26px 0 0;
  padding: 18px 24px 28px;
  background: #FFFFFF;
}

.about-accordion {
  display: grid;
}

.about-accordion-item {
  border-bottom: 1px solid var(--line);
}

.about-accordion-trigger {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--black);
  text-align: left;
  cursor: pointer;
}

.about-accordion-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.about-row-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--black);
}

.about-row-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.about-chevron {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transition: transform .2s ease;
}

.about-accordion-item.open .about-chevron {
  transform: rotate(90deg);
}

.about-accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease;
}

.about-accordion-item.open .about-accordion-content {
  max-height: 320px;
  opacity: 1;
}

.about-accordion-content p {
  margin: 0 0 12px 38px;
  color: #555555;
  font-size: 14px;
  line-height: 1.45;
}

.about-accordion-content a {
  color: var(--black);
  font-weight: 700;
}

.about-socials {
  display: grid;
  gap: 10px;
  margin-top: 44px;
}

.social-link {
  display: grid;
  grid-template-columns: minmax(86px, auto) 1fr;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
}

.social-link:last-child {
  border-bottom: 0;
}

.social-label {
  color: var(--text-muted);
  font-weight: 600;
}

.social-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-hidden-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.primary-link,
.whatsapp-link {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: 16px;
  color: var(--black);
  background: var(--yellow);
  font-weight: 900;
  text-decoration: none;
}

.link-button {
  text-decoration: none;
}

.whatsapp-link {
  color: var(--white);
}

.sticky-cart {
  bottom: calc(var(--nav-height) + 12px + var(--safe-bottom));
  z-index: 25;
  display: grid;
  grid-template-columns: 44px 1fr 36px;
  align-items: center;
  width: min(calc(100% - 28px), 402px);
  min-height: 58px;
  border: 0;
  border-radius: 15px;
  padding: 0 10px;
  background: var(--yellow);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.16);
  color: var(--black);
  font-size: 17px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.sticky-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
}

.sticky-arrow {
  font-size: 27px;
  text-align: right;
}

.sticky-cart.bump {
  animation: bump 0.25s ease;
}

.bottom-nav {
  bottom: 0;
  z-index: 24;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  min-height: calc(var(--nav-height) + var(--safe-bottom));
  padding: 8px 12px calc(8px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.nav-item {
  position: relative;
  display: grid;
  min-height: 56px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-item span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.nav-item svg,
.checkout-icon-button svg,
.remove-button svg,
.delivery-info-card svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.checkout-header .checkout-icon-button svg {
  width: 21px;
  height: 21px;
}

.checkout-shell .delivery-info-card svg {
  width: 20px;
  height: 20px;
}

.nav-item.active {
  background: transparent;
  color: var(--black);
}

.nav-item.active span {
  color: var(--yellow);
  filter: drop-shadow(0 1px 0 rgba(17, 17, 17, 0.65));
}

.nav-item b {
  position: absolute;
  top: 6px;
  right: 24%;
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.upsell-page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 0 18px calc(18px + var(--safe-bottom));
}

.upsell-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.upsell-overlay.open {
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
  pointer-events: auto;
}

.upsell-overlay.closing {
  opacity: 0;
}

.upsell-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 86dvh;
  overflow-y: auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  background: var(--white);
  box-shadow: 0 -18px 50px rgba(17, 17, 17, 0.18);
  transform: translateY(100%);
}

.upsell-overlay.open .upsell-sheet {
  animation: sheetUp 0.28s cubic-bezier(.22, .8, .2, 1) forwards;
}

.upsell-overlay.closing .upsell-sheet {
  animation: sheetDown 0.2s ease forwards;
}

.upsell-sheet-header {
  position: relative;
  display: block;
  padding: 0 42px 14px 0;
}

.upsell-sheet-header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.upsell-sheet-header p {
  margin: 5px 0 0;
  color: #777777;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.upsell-sheet-close {
  position: absolute;
  top: -6px;
  right: 0;
  width: 36px;
  height: 36px;
  color: var(--black);
  font-size: 24px;
  line-height: 1;
}

.upsell-header {
  position: relative;
  display: block;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 14px;
}

.upsell-header > span {
  display: none;
}

.upsell-header h1 {
  padding-right: 42px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.upsell-header p {
  margin-top: 5px;
  color: #777777;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.upsell-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 0;
  width: 36px;
  height: 36px;
  color: var(--black);
  font-size: 24px;
  line-height: 1;
}

.upsell-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.upsell-card {
  display: flex;
  min-width: 0;
  min-height: 154px;
  flex-direction: column;
  padding: 8px;
  border: 1px solid #ECECEC;
  border-radius: 16px;
  background: var(--white);
  box-shadow: none;
  box-sizing: border-box;
}

.upsell-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #FAFAFA;
}

.upsell-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.upsell-card-body {
  display: grid;
  gap: 6px;
  min-height: 54px;
  padding-top: 7px;
}

.upsell-card-body h2 {
  display: -webkit-box;
  min-height: 30px;
  margin: 0;
  overflow: hidden;
  color: var(--black);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.upsell-card-body strong {
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.upsell-card-footer {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
}

.upsell-control-slot {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
}

.upsell-add {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.upsell-counter {
  display: grid;
  width: 58px;
  height: 30px;
  grid-template-columns: 18px 1fr 18px;
  align-items: center;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
}

.upsell-counter button {
  display: grid;
  width: 18px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.upsell-counter b {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.upsell-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.upsell-primary,
.upsell-secondary {
  width: 100%;
  border-radius: 16px;
  padding: 12px 20px;
  color: var(--black);
  line-height: 1.18;
  cursor: pointer;
}

.upsell-primary {
  min-height: 52px;
  border: 0;
  background: var(--yellow);
  font-size: 16px;
  font-weight: 700;
}

.upsell-secondary {
  min-height: 52px;
  border: 1px solid var(--yellow);
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.upsell-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #555555;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.upsell-note img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  object-fit: contain;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes sheetDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tapPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cartPop {
  0% {
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(24px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes bump {
  50% {
    transform: translateX(50%) scale(1.035);
  }
}

@media (max-width: 360px) {
  .app-shell {
    padding-inline: 12px;
  }

  .detail-shell {
    padding-inline: 0;
  }

  .app-header,
  .category-strip,
  .subcategory-strip {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .product-grid,
  .upsell-grid {
    gap: 9px;
  }

  .brand strong {
    font-size: 30px;
  }

  .category-pill {
    width: 92px;
    min-width: 92px;
    height: 130px;
    padding-inline: 7px;
  }

  .category-icon {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .category-icon img,
  .category-emoji {
    width: 72px;
    height: 72px;
  }

  .category-title {
    min-height: 36px;
    font-size: 12px;
  }

  .about-hero {
    min-height: 214px;
    padding: calc(80px + env(safe-area-inset-top, 0px)) 128px 44px 22px;
  }

  .about-logo {
    font-size: 33px;
  }

  .about-hero p {
    font-size: 16px;
  }

  .about-mascot {
    right: 4px;
    bottom: -22px;
    width: 130px;
  }

  .about-panel {
    min-height: calc(100dvh - 214px - var(--nav-height));
    padding-inline: 22px;
  }

  .about-socials {
    gap: 8px;
  }

  .social-link {
    font-size: 12px;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .cart-image {
    width: 64px;
    height: 64px;
  }

  .cart-controls {
    width: 88px;
  }

  .cart-line-total {
    min-height: 64px;
  }

  .checkout-shell {
    padding-inline: 14px;
  }

  .checkout-shell .cart-item {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 14px 10px;
  }

  .checkout-shell .cart-image {
    width: 78px;
    height: 78px;
  }

  .checkout-shell .cart-info h3 {
    font-size: 17px;
  }

  .checkout-shell .cart-info span {
    font-size: 14px;
  }

  .checkout-shell .cart-controls {
    width: 116px;
    min-height: 44px;
  }

  .checkout-shell .cart-controls button {
    width: 38px;
    height: 42px;
  }

  .checkout-shell .cart-line-total {
    min-height: 78px;
  }

  .checkout-shell .cart-line-total strong {
    font-size: 16px;
  }

  .checkout-shell .remove-button {
    width: 44px;
    height: 44px;
  }

  .delivery-block h2,
  .order-summary-block h2,
  .payment-section h2 {
    font-size: 20px;
  }

  .sticky-cart {
    width: min(calc(100% - 24px), 406px);
    font-size: 15px;
  }
}

@media (min-width: 481px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: calc(100vh - 48px);
    border-radius: 30px;
  }

  .bottom-nav {
    bottom: 24px;
    border-radius: 0 0 30px 30px;
  }

  .sticky-cart {
    bottom: calc(24px + var(--nav-height) + 12px + var(--safe-bottom));
  }

  .payment-action-bar {
    bottom: 24px;
    border-radius: 0 0 30px 30px;
  }
}

.product-card.unavailable {
  opacity: 0.72;
}

.product-card.unavailable .product-image img {
  filter: grayscale(0.2);
}

.unavailable-badge,
.detail-unavailable-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px;
}

.detail-unavailable-badge {
  right: 16px;
  bottom: 16px;
  font-size: 13px;
  padding: 9px 12px;
}

.unavailable-add,
.unavailable-add:disabled,
.add-detail-button:disabled {
  background: #efefef;
  color: #777;
  cursor: default;
  transform: none;
}

.product-unavailable-note,
.cart-warning {
  border: 1px solid #f0e2a0;
  border-radius: 16px;
  background: #fff8d8;
  color: #352d00;
}

.product-unavailable-note {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
}

.cart-warning {
  margin-bottom: 12px;
  padding: 12px 14px;
}

.cart-warning strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.cart-warning p {
  margin: 0;
  color: #5b521e;
  font-size: 13px;
  line-height: 1.35;
}

.admin-shell {
  width: min(100%, 860px);
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
  color: var(--black);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-login {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px 16px;
}

.admin-login-card {
  width: min(100%, 390px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 26px 18px 20px;
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
  text-align: center;
}

.admin-login-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.admin-login-card h1 {
  margin: 10px 0 2px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-login-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}

.admin-form label,
.admin-toolbar {
  display: grid;
  gap: 8px;
}

.admin-form label {
  color: #343434;
  font-size: 14px;
  font-weight: 650;
}

.admin-form input,
.admin-toolbar input,
.admin-toolbar select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f8f8;
  color: var(--black);
  font: inherit;
  font-size: 15px;
  padding: 0 14px;
  outline: none;
}

.admin-form input:focus,
.admin-toolbar input:focus,
.admin-toolbar select:focus {
  border-color: var(--yellow);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.2);
}

.admin-message {
  min-height: 18px;
  color: #c82929;
  font-size: 13px;
  text-align: center;
}

.admin-panel {
  padding: 14px 14px 28px;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 -14px 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.admin-header strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.admin-header span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-logout {
  min-width: 82px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
}

.admin-toolbar {
  margin-bottom: 10px;
}

.admin-filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: 16px;
  background: #f3f3f3;
  padding: 5px;
}

.admin-filter {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.admin-filter.active {
  background: var(--yellow);
  color: var(--black);
}

.admin-save-status {
  min-height: 20px;
  margin: 8px 0;
  color: #18823a;
  font-size: 13px;
  font-weight: 700;
}

.admin-save-status.error {
  color: #c82929;
}

.admin-products {
  display: grid;
  gap: 10px;
}

.admin-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 10px;
}

.admin-product.off {
  background: #fafafa;
}

.admin-product img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.admin-product.off img {
  opacity: 0.68;
  filter: grayscale(0.25);
}

.admin-product-info {
  min-width: 0;
}

.admin-product-info h2 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 750;
}

.admin-product-info p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.25;
}

.admin-product-info strong {
  font-size: 14px;
}

.admin-toggle {
  grid-column: 1 / -1;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: var(--black);
  font-size: 15px;
  font-weight: 800;
}

.admin-toggle.on {
  background: var(--yellow);
}

.admin-toggle.off {
  background: #ececec;
  color: #555;
}

.admin-empty {
  border-radius: 18px;
  background: #f7f7f7;
  padding: 26px 16px;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 620px) {
  .admin-shell {
    min-height: calc(100vh - 48px);
    border-radius: 28px;
  }

  .admin-panel {
    padding: 18px 22px 34px;
  }

  .admin-header {
    margin-right: -22px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
    border-radius: 28px 28px 0 0;
  }

  .admin-toolbar {
    grid-template-columns: 1.3fr 0.8fr;
  }

  .admin-filter-row {
    grid-column: 1 / -1;
  }

  .admin-product {
    grid-template-columns: 82px minmax(0, 1fr) 150px;
  }

  .admin-product img {
    width: 82px;
    height: 82px;
  }

  .admin-toggle {
    grid-column: auto;
  }
}
