[hidden] {
  display: none !important;
}

:root {
  --red-500: #e30613;
  --red-600: #c40010;
  --red-50: #fff1f1;
  --green-600: #15803d;
  --error-700: #b91c1c;
  --error-50: #fef2f2;
  --ink-900: #111418;
  --ink-700: #3a414c;
  --ink-500: #5b6470;
  --ink-300: #d9dde3;
  --ink-100: #eceef2;
  --page: #f5f6f8;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 1px 2px rgba(17, 20, 24, 0.06), 0 8px 24px rgba(17, 20, 24, 0.06);
  --shadow-lift: 0 2px 4px rgba(17, 20, 24, 0.06), 0 20px 40px rgba(17, 20, 24, 0.14);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-900);
  background-color: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.muted {
  color: var(--ink-500);
}

.top {
  padding: 20px 20px 24px;
  background-color: var(--red-500);
  color: var(--white);
  border-radius: 0 0 28px 28px;
  animation: fade-up 0.5s var(--ease) both;
}

.top-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.top-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top-place {
  font-size: 0.875rem;
  font-weight: 600;
}

.top h1 {
  font-size: 1.5rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 20px;
  color: var(--ink-500);
  background-color: var(--white);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s;
}

.search:focus-within {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 6px 18px rgba(0, 0, 0, 0.12);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-900);
  background: transparent;
  border: none;
  outline: none;
}

.search input::placeholder {
  color: var(--ink-500);
}

.categories {
  padding: 20px 0 8px;
}

.categories-inner {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 20px 8px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.categories-inner::-webkit-scrollbar {
  display: none;
}

.categories-inner li {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 92px;
  color: var(--ink-900);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.category-media {
  display: block;
  width: 92px;
  height: 92px;
  overflow: hidden;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.category-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.category:hover .category-media {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.category:hover .category-media img {
  transform: scale(1.08);
}

.shop {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 120px;
}

.combos-main {
  min-width: 0;
}

.section-head {
  margin: 8px 0 16px;
}

.section-head h2 {
  font-size: 1.5rem;
}

.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.combo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: fade-up 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 80ms);
}

.combo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.combo-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--ink-100);
}

.combo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.combo-card:hover .combo-media img {
  transform: scale(1.06);
}

.combo-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}

.combo-body h3 {
  font-size: 1rem;
}

.combo-desc {
  font-size: 0.8125rem;
  color: var(--ink-500);
}

.combo-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.price {
  font-size: 1.125rem;
  font-weight: 800;
}

.add-btn {
  height: 40px;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  color: var(--white);
  background-color: var(--red-500);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.add-btn:hover {
  background-color: var(--red-600);
}

.add-btn:active {
  transform: scale(0.95);
}

.stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 4px;
  background-color: var(--red-50);
  border-radius: 999px;
}

.stepper button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  color: var(--red-500);
  background-color: var(--white);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.stepper button:hover {
  background-color: var(--ink-100);
}

.stepper button:active {
  transform: scale(0.9);
}

.stepper span {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
}

.sold-out {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ink-500);
}

.empty {
  padding: 48px 0;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(80px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--white);
  border-top: 1px solid var(--ink-100);
  box-shadow: 0 -8px 24px rgba(17, 20, 24, 0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-500);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--ink-900);
}

.nav-item:hover .nav-icon {
  background-color: var(--ink-100);
}

.nav-cart.bump {
  animation: bump 0.4s var(--ease);
}

.nav-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.nav-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.nav-icon svg * {
  stroke-width: 1.6px;
}

.nav-label {
  line-height: 1;
}

.nav-count {
  position: absolute;
  top: -6px;
  right: -12px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  background-color: var(--red-500);
  border-radius: 999px;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background-color: var(--white);
  box-shadow: -16px 0 48px rgba(17, 20, 24, 0.14);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s;
}

.drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ink-100);
}

.drawer-head h2 {
  font-size: 1.375rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-900);
  background-color: var(--ink-100);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-button:hover {
  background-color: var(--ink-300);
}

.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-100);
}

.cart-line img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
}

.line-name {
  font-weight: 800;
}

.line-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.line-end strong {
  font-weight: 800;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700);
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-weight: 400;
  color: var(--ink-900);
  background-color: var(--page);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.order-form textarea {
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px var(--red-50);
}

.form-error {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--error-700);
  background-color: var(--error-50);
  border-radius: var(--radius-md);
}

.order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 0;
  text-align: center;
  animation: fade-up 0.4s var(--ease) both;
}

.order-success h3 {
  font-size: 1.625rem;
}

.success-mark {
  position: relative;
  width: 64px;
  height: 64px;
  background-color: var(--green-600);
  border-radius: 50%;
  animation: pop 0.45s var(--ease) both;
}

.success-mark::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 24px;
  width: 14px;
  height: 24px;
  border: solid var(--white);
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.drawer-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--ink-100);
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.total-row strong {
  font-size: 1.5rem;
  font-weight: 800;
}

.drawer-foot .btn + .btn {
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  font: inherit;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: var(--white);
  background-color: var(--red-500);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--red-600);
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.3);
}

.btn-ghost {
  color: var(--ink-900);
  background-color: var(--white);
  border-color: var(--ink-300);
}

.btn-ghost:hover {
  border-color: var(--ink-900);
}

.btn-block {
  width: 100%;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background-color: rgba(17, 20, 24, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.site-footer {
  padding: 32px 20px 120px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-500);
}

:focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 2px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (min-width: 1024px) {
  .top {
    padding: 24px 40px 32px;
  }

  .top-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .top-brand {
    flex-shrink: 0;
  }

  .search {
    width: 440px;
    max-width: 100%;
  }

  .categories {
    padding: 28px 0 8px;
  }

  .categories-inner {
    justify-content: center;
    padding: 0 40px 8px;
  }

  .category {
    width: 112px;
  }

  .category-media {
    width: 112px;
    height: 112px;
  }

  .shop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
    padding: 24px 40px 80px;
  }

  .combo-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .combo-body {
    padding: 16px;
  }

  .combo-body h3 {
    font-size: 1.125rem;
  }

  .combo-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .price {
    font-size: 1.25rem;
  }

  .drawer {
    position: sticky;
    top: 24px;
    z-index: auto;
    width: auto;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transform: none;
    visibility: visible;
  }

  .drawer-head .icon-button,
  .overlay,
  .bottom-nav {
    display: none;
  }

  .site-footer {
    padding-bottom: 32px;
  }

  .drawer-head h2 {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
