:root {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #2b1818;
  background:
    radial-gradient(circle at top left, rgba(206, 38, 54, 0.1), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
  line-height: 1.5;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg-base: #fff7f7;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --bg-strong: #ffffff;
  --text-main: #2b1818;
  --text-soft: rgba(43, 24, 24, 0.72);
  --accent: #c62839;
  --accent-strong: #a61e2d;
  --accent-soft: rgba(198, 40, 57, 0.1);
  --accent-faint: rgba(198, 40, 57, 0.06);
  --line: rgba(94, 20, 30, 0.1);
  --shadow: 0 22px 50px rgba(158, 34, 48, 0.12);
}

:root[data-theme="dark"] {
  color: #fff5f5;
  background:
    radial-gradient(circle at top left, rgba(198, 40, 57, 0.28), transparent 20%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, #140b0c 0%, #241012 100%);
  --bg-base: #1b1012;
  --bg-elevated: rgba(34, 18, 20, 0.88);
  --bg-strong: #241315;
  --text-main: #fff5f5;
  --text-soft: rgba(255, 235, 235, 0.72);
  --accent: #ff6b7f;
  --accent-strong: #ff8e9c;
  --accent-soft: rgba(255, 107, 127, 0.18);
  --accent-faint: rgba(255, 107, 127, 0.12);
  --line: rgba(255, 196, 202, 0.12);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-base);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(198, 40, 57, 0.08), transparent 24%),
    linear-gradient(180deg, var(--bg-strong) 0%, var(--bg-base) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

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

.page-shell {
  min-height: 100vh;
  padding: 20px;
}

.topbar,
.page-content,
.footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 10px;
  position: relative;
  z-index: 30;
}

.topbar--nav-open {
  z-index: 50;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--text-main);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.mobile-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.mobile-nav-toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle--open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.brand__mark {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand h1,
.hero h2,
.section__heading h2,
.content-card h2,
.footer h3,
.promo-slider h3,
.summary-card h3,
.cart__header h2,
.checkout__header h2,
.empty-state h2 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-soft);
}

.admin-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navlinks a {
  padding: 10px 0;
  position: relative;
}

.admin-dropdown__toggle {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text-soft);
  background: transparent;
}

.admin-dropdown__toggle svg {
  width: 16px;
  height: 16px;
}

.admin-dropdown__toggle:hover {
  background: var(--accent-faint);
}

.admin-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-strong);
  box-shadow: var(--shadow);
  z-index: 20;
}

.admin-dropdown__menu[hidden] {
  display: none;
}

.admin-dropdown__menu a {
  padding: 10px 12px;
  border-radius: 12px;
}

.admin-dropdown__menu a.active,
.admin-dropdown__menu a:hover {
  background: var(--accent-faint);
}

.navlinks a.active {
  color: var(--text-main);
}

.navlinks a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.theme-toggle {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-main);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.cart-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text-main);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.cart-toggle svg {
  width: 22px;
  height: 22px;
}

.cart-toggle__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(166, 30, 45, 0.24);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  border: 0;
  background: rgba(36, 11, 14, 0.18);
}

.page-content {
  padding: 24px 0 0;
}

.hero,
.content-card,
.menu-card,
.blog-card,
.footer,
.summary-card,
.promo-slider,
.cart,
.checkout__panel,
.empty-state {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}

.hero--home,
.hero--home .hero__copy,
.hero--home .promo-slider {
  border: 0;
}

.hero--menu,
.hero--menu .hero__copy,
.hero--menu .summary-card {
  border: 0;
}

.page-intro {
  display: block;
}

.page-intro__card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 244, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none'%3E%3Cpath d='M24 45c14-18 32-26 55-24 28 3 39 17 57 22 19 6 42 2 74-16' stroke='%23c62839' stroke-opacity='.12' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M35 156c22-15 43-18 63-11 20 6 26 20 46 24 23 4 46-7 60-17' stroke='%23c62839' stroke-opacity='.08' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E")
      right bottom / 220px no-repeat;
}

:root[data-theme="dark"] .page-intro__card {
  background:
    linear-gradient(135deg, rgba(34, 18, 20, 0.96), rgba(50, 23, 27, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none'%3E%3Cpath d='M24 45c14-18 32-26 55-24 28 3 39 17 57 22 19 6 42 2 74-16' stroke='%23ff6b7f' stroke-opacity='.16' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M35 156c22-15 43-18 63-11 20 6 26 20 46 24 23 4 46-7 60-17' stroke='%23ff6b7f' stroke-opacity='.10' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E")
      right bottom / 220px no-repeat;
}

.page-intro__card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.1rem, 3.2vw, 3.4rem);
  line-height: 1.08;
  max-width: 18ch;
}

.page-intro__card p:last-child {
  margin-bottom: 0;
  max-width: 70ch;
  color: var(--text-soft);
}

.page-intro__card--wide h2,
.page-intro__card--wide p:last-child {
  max-width: 100%;
}

.hero__copy,
.content-card,
.summary-card {
  padding: 36px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 244, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none'%3E%3Cpath d='M24 45c14-18 32-26 55-24 28 3 39 17 57 22 19 6 42 2 74-16' stroke='%23c62839' stroke-opacity='.12' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M35 156c22-15 43-18 63-11 20 6 26 20 46 24 23 4 46-7 60-17' stroke='%23c62839' stroke-opacity='.08' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E")
      right bottom / 220px no-repeat;
}

:root[data-theme="dark"] .hero__copy,
:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .summary-card {
  background:
    linear-gradient(135deg, rgba(34, 18, 20, 0.96), rgba(50, 23, 27, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none'%3E%3Cpath d='M24 45c14-18 32-26 55-24 28 3 39 17 57 22 19 6 42 2 74-16' stroke='%23ff6b7f' stroke-opacity='.16' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M35 156c22-15 43-18 63-11 20 6 26 20 46 24 23 4 46-7 60-17' stroke='%23ff6b7f' stroke-opacity='.10' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E")
      right bottom / 220px no-repeat;
}

.hero__badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.hero h2 {
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  line-height: 1;
  max-width: 11ch;
}

.hero__copy p:last-of-type {
  color: var(--text-soft);
  max-width: 60ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.chip,
.qty-stepper button,
.cart-item__controls button,
.cart-item__meta button,
.cart__close,
.slider-dot,
.theme-toggle {
  border: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    opacity 180ms ease,
    color 180ms ease;
}

.button:hover,
.chip:hover,
.qty-stepper button:hover,
.cart-item__controls button:hover,
.cart-item__meta button:hover,
.cart__close:hover,
.slider-dot:hover,
.theme-toggle:hover {
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 700;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button--secondary {
  color: var(--text-main);
  background: var(--bg-elevated);
}

.button--full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.promo-slider {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--bg-elevated), var(--accent-faint));
}

.promo-slide {
  display: grid;
  gap: 16px;
}

.promo-slide[hidden] {
  display: none;
}

.promo-slider__media {
  overflow: hidden;
  border-radius: 24px;
  background: #fff1f2;
}

.promo-slider__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.promo-slider__content {
  padding: 8px 6px 0;
}

.promo-slider__content h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.promo-slider__content p,
.promo-slider__content strong {
  color: var(--text-main);
}

.promo-slider__dots {
  display: flex;
  gap: 8px;
  padding: 0 6px 6px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(107, 33, 43, 0.2);
}

.slider-dot--active {
  width: 34px;
  background: var(--accent);
}

.section {
  padding: 40px 0 0;
}

.two-column,
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.home-swipe__item {
  min-width: 0;
}

.info-grid--top {
  align-items: start;
}

.section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.menu-toolbar,
.view-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.menu-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-main);
  background: var(--accent-faint);
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.search-input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.checkout__form input,
.checkout__form select,
.checkout__form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text-main);
  background: var(--bg-elevated);
}

.search-input::placeholder,
.admin-form input::placeholder,
.admin-form textarea::placeholder,
.checkout__form input::placeholder,
.checkout__form textarea::placeholder {
  color: var(--text-soft);
}

.search-input {
  max-width: 360px;
  padding: 14px 16px;
}

.view-toggle {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
}

.view-toggle__button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--text-main);
  background: transparent;
}

.view-toggle__button--active {
  color: #fff;
  background: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 26px;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-main);
  background: var(--bg-elevated);
}

.chip--active {
  color: #fff;
  background: var(--accent);
}

.menu-grid,
.blog-grid {
  display: grid;
  gap: 18px;
}

.menu-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-swipe--menu {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 0 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-swipe--menu::-webkit-scrollbar {
  display: none;
}

.home-swipe--menu .home-swipe__item {
  flex: 0 0 min(320px, calc(100vw - 56px));
  scroll-snap-align: start;
}

.home-swipe--blog {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 0 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-swipe--blog::-webkit-scrollbar {
  display: none;
}

.home-swipe--blog > * {
  flex: 0 0 min(360px, calc(100vw - 56px));
  min-width: 0;
  scroll-snap-align: start;
}

.menu-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.menu-grid--list {
  grid-template-columns: 1fr;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.menu-card,
.blog-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--bg-elevated);
}

.menu-card__media {
  position: relative;
}

.menu-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff1f2;
}

.menu-card__media span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 700;
}

:root[data-theme="dark"] .menu-card__media span {
  color: #fff;
  background: rgba(45, 20, 24, 0.88);
}

.menu-card__body,
.blog-card {
  padding: 18px;
}

.menu-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-card__title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.menu-card__title h3,
.blog-card h3 {
  margin: 0;
}

.menu-card__body p,
.blog-card p,
.content-card p,
.summary-card p {
  margin: 0;
  color: var(--text-soft);
}

.menu-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.menu-card__action {
  flex: 1;
}

.menu-card--list {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.menu-card--list .menu-card__media img {
  height: 100%;
  min-height: 100%;
}

.menu-card--list .menu-card__media span {
  top: 12px;
  left: 12px;
}

.menu-card--compact .menu-card__media img {
  aspect-ratio: 1 / 1;
}

.menu-card--compact .menu-card__media span {
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  font-size: 0.72rem;
}

.menu-card--compact .menu-card__body {
  gap: 10px;
  padding: 14px;
}

.menu-card--compact .menu-card__title {
  flex-direction: column;
  gap: 6px;
}

.menu-card--compact .menu-card__title h3 {
  font-size: 0.98rem;
  line-height: 1.25;
}

.menu-card--compact .menu-card__body p {
  font-size: 0.88rem;
}

.menu-card--compact .menu-card__footer {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.qty-stepper,
.cart-item__controls,
.checkout__header,
.checkout__summary-item,
.checkout__summary-total {
  display: flex;
}

.qty-stepper {
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  background: var(--accent-faint);
}

.qty-stepper button,
.cart-item__controls button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--text-main);
  background: var(--bg-strong);
}

.qty-stepper span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.summary-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.summary-card strong {
  font-size: 2rem;
}

.blog-card {
  display: grid;
  gap: 12px;
}

.blog-card--interactive {
  position: relative;
}

.blog-card--full {
  align-content: start;
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #fff1f2;
}

.blog-card__content p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.blog-card__link {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 40px;
  padding: 24px 28px 40px;
  border-radius: 28px;
  background: var(--bg-elevated);
}

.footer__meta p {
  margin: 0 0 8px;
  color: var(--text-soft);
}

.footer__link {
  display: flex;
  align-items: start;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--text-soft);
}

.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.4;
}

.map-card {
  gap: 20px;
}

.map-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-strong);
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(460px, 100vw);
  height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  background: var(--bg-strong);
  transform: translateX(105%);
  transition: transform 240ms ease;
}

.cart--open {
  transform: translateX(0);
}

.cart__header,
.cart__total,
.cart-item,
.cart-item__meta {
  display: flex;
}

.cart__header,
.cart__total,
.checkout__header,
.checkout__summary-total {
  justify-content: space-between;
  align-items: center;
}

.cart__close {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-main);
  background: var(--accent-faint);
}

.cart__empty {
  margin: auto 0;
  text-align: center;
}

.cart__empty p,
.cart-item p {
  color: var(--text-soft);
}

.cart__items {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  overflow: auto;
}

.cart-item {
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item p,
.cart-item__meta button {
  margin: 0;
}

.cart-item__controls {
  align-items: center;
  gap: 10px;
}

.cart-item__meta {
  flex-direction: column;
  align-items: end;
  gap: 6px;
}

.cart-item__meta button {
  padding: 0;
  color: var(--accent);
  background: transparent;
}

.cart__footer {
  margin-top: auto;
  padding-top: 18px;
}

.cart__total {
  margin-bottom: 16px;
}

.checkout {
  position: fixed;
  inset: 0;
  z-index: 61;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.checkout--open {
  opacity: 1;
  pointer-events: auto;
}

.checkout__panel {
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 32px;
  color: var(--text-main);
  background: var(--bg-strong);
}

.checkout__layout {
  display: flex;
  gap: 18px;
  align-items: start;
}

.checkout__summary,
.checkout__form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-elevated);
}

.checkout__summary {
  width: min(320px, 100%);
}

.checkout__summary h3 {
  margin-top: 0;
}

.checkout__summary-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.checkout__summary-item {
  justify-content: space-between;
  gap: 12px;
}

.checkout__summary-total {
  padding: 16px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
}

.checkout__form {
  flex: 1;
  display: grid;
  gap: 12px;
}

.checkout__form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.checkout__form input,
.checkout__form select,
.checkout__form textarea {
  padding: 13px 14px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 59;
  border: 0;
  background: rgba(36, 11, 14, 0.42);
}

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 62;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.article-overlay {
  z-index: 61;
}

.article-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.article-modal__panel {
  position: relative;
  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-strong);
  box-shadow: var(--shadow);
}

.article-modal__close {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-left: auto;
  display: block;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--text-main);
  background: var(--accent-faint);
}

.article-modal__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 8px 0 20px;
  border-radius: 20px;
  object-fit: cover;
  background: #fff1f2;
}

.article-modal__panel h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
}

.article-modal__excerpt {
  margin: 0 0 18px;
  font-size: 1.04rem;
  color: var(--text-soft);
}

.article-modal__content p {
  margin: 0;
  line-height: 1.75;
  color: var(--text-soft);
}

.empty-state {
  padding: 32px;
  border-radius: 28px;
  background: var(--bg-elevated);
  text-align: center;
}

.empty-state p {
  color: var(--text-soft);
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-shell--single {
  grid-template-columns: 1fr;
}

.admin-stack {
  display: grid;
  gap: 20px;
}

.admin-tabs {
  display: flex;
  gap: 12px;
  padding-top: 20px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--text-main);
  background: var(--bg-elevated);
}

.admin-tab--active {
  color: #fff;
  background: var(--accent);
}

.admin-header,
.admin-header__meta,
.admin-stat,
.admin-product__meta,
.admin-product__footer,
.admin-product__actions {
  display: flex;
}

.admin-header {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.admin-header__title h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.admin-header__meta {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-stat {
  min-width: 140px;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-strong);
}

.admin-stat span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.admin-stat strong {
  font-size: 1.05rem;
}

.admin-auth,
.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-panel--sticky {
  position: sticky;
  top: 20px;
}

.admin-form--grid {
  grid-template-columns: 1fr;
}

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

.admin-form label {
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  padding: 13px 14px;
}

.admin-form__full,
.admin-form__submit,
.form-feedback {
  grid-column: 1 / -1;
}

.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-checkbox input {
  width: 18px;
  height: 18px;
}

.form-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.form-feedback--error {
  color: #fff2f2;
  background: rgba(179, 31, 48, 0.92);
}

.form-feedback--success {
  color: var(--text-main);
  background: var(--accent-soft);
}

.admin-table {
  display: grid;
  gap: 14px;
}

.admin-section-gap {
  margin-top: 28px;
}

.admin-product {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, var(--bg-elevated), var(--accent-faint));
}

.admin-product img {
  width: 100%;
  height: 124px;
  object-fit: cover;
  border-radius: 18px;
  background: #fff1f2;
}

.admin-product__content,
.admin-product__content {
  flex-direction: column;
  gap: 12px;
}

.admin-product__meta,
.admin-product__footer {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-product__meta h3 {
  margin: 0;
  font-size: 1.08rem;
}

.admin-product__meta p,
.admin-product__content p {
  margin: 0;
  color: var(--text-soft);
}

.admin-product__content > p {
  line-height: 1.55;
}

.admin-product__actions {
  gap: 10px;
}

.admin-product__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-product__actions .button {
  min-height: 40px;
  padding: 0 14px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
}

.status-pill--off {
  background: rgba(107, 33, 43, 0.45);
}

.status-pill--featured {
  color: var(--accent-strong);
  background: rgba(255, 244, 214, 0.95);
}

:root[data-theme="dark"] .status-pill--featured {
  color: #ffe8a3;
  background: rgba(92, 59, 13, 0.85);
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .info-grid,
  .menu-grid,
  .blog-grid,
  .checkout__layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .two-column,
  .info-grid,
  .menu-grid,
  .blog-grid {
    display: grid;
  }

  .section__heading,
  .footer,
  .checkout__layout {
    flex-direction: column;
    align-items: start;
  }

  .menu-toolbar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search-input,
  .checkout__summary {
    max-width: 100%;
    width: 100%;
  }

  .admin-shell,
  .admin-form--grid,
  .admin-product {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .admin-header__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-panel--sticky {
    position: static;
  }

  .hero h2 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand .eyebrow {
    display: none;
  }

  .brand__mark {
    width: 44px;
    height: 44px;
    padding: 4px;
    border-radius: 14px;
  }

  .brand h1 {
    font-size: 1rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
  }

  .topbar__actions {
    width: auto;
    justify-content: flex-end;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .navlinks {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 42;
    width: min(320px, calc(100vw - 24px));
    height: 100vh;
    padding: 96px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid var(--line);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 244, 0.98)),
      var(--bg-strong);
    box-shadow: var(--shadow);
    transform: translateX(108%);
    transition: transform 220ms ease;
  }

  :root[data-theme="dark"] .navlinks {
    background:
      linear-gradient(180deg, rgba(36, 19, 21, 0.98), rgba(28, 14, 16, 0.98)),
      var(--bg-strong);
  }

  .navlinks--open {
    transform: translateX(0);
  }

  .navlinks a {
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--bg-elevated);
    font-size: 0.95rem;
  }

  .navlinks a.active::after {
    display: none;
  }

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

  .theme-toggle {
    flex: 1;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .admin-dropdown__menu {
    position: static;
    min-width: 0;
    margin-top: 4px;
    grid-column: 1 / -1;
    box-shadow: none;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .hero__copy,
  .content-card,
  .summary-card,
  .promo-slider,
  .footer,
  .checkout__panel,
  .empty-state {
    border-radius: 24px;
  }

  .hero__copy,
  .content-card,
  .summary-card {
    padding: 22px;
  }

  .page-intro__card {
    padding: 22px;
    border-radius: 24px;
  }

  .page-intro__card h2 {
    font-size: 1.9rem;
    line-height: 1.12;
    max-width: 100%;
  }

  .page-intro__card p:last-child,
  .hero__copy p:last-of-type,
  .content-card p,
  .summary-card p,
  .footer__link,
  .button,
  .text-link {
    font-size: 0.92rem;
  }

  .map-embed iframe {
    height: 320px;
  }

  .hero h2 {
    font-size: 2rem;
    line-height: 1.08;
    max-width: 100%;
  }

  .hero--home .hero__copy p:last-of-type {
    display: none;
  }

  .section__heading h2,
  .content-card h2,
  .footer h3,
  .promo-slider h3,
  .summary-card h3,
  .cart__header h2,
  .checkout__header h2,
  .empty-state h2 {
    font-size: 1.45rem;
    line-height: 1.18;
  }

  .section__heading .eyebrow,
  .hero__badge,
  .menu-highlights span {
    font-size: 0.74rem;
  }

  .hero__actions {
    gap: 10px;
    margin-top: 20px;
  }

  .home-swipe {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(calc(100% - 18px), calc(100% - 18px));
    gap: 14px;
    overflow-x: auto;
    padding: 4px 12px 12px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-swipe::-webkit-scrollbar {
    display: none;
  }

  .home-swipe--info {
    grid-template-columns: none;
  }

  .home-swipe__item {
    scroll-snap-align: start;
  }

  .home-swipe--menu .home-swipe__item {
    flex-basis: calc(100vw - 44px);
    min-width: calc(100vw - 44px);
  }

  .home-swipe--blog > * {
    flex-basis: calc(100vw - 28px);
    min-width: calc(100vw - 28px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-swipe--blog .blog-card {
    gap: 8px;
    padding: 12px 14px;
  }

  .home-swipe--blog .eyebrow {
    margin-bottom: 2px;
  }

  .home-swipe--blog .blog-card h3 {
    font-size: 1.08rem;
    line-height: 1.16;
    margin-bottom: 2px;
  }

  .home-swipe--blog .blog-card p {
    font-size: 0.91rem;
    line-height: 1.32;
  }

  .home-swipe--blog .blog-card__link {
    margin-top: 2px;
    font-size: 0.9rem;
  }

  .button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
  }

  .search-input,
  .view-toggle__button {
    font-size: 0.9rem;
  }

  .menu-card__footer,
  .menu-card--list {
    flex-direction: column;
  }

  .menu-card--list {
    display: block;
  }

  .qty-stepper {
    justify-content: space-between;
  }

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

  .menu-card--compact {
    border-radius: 18px;
  }

  .menu-card--compact .menu-card__body {
    padding: 10px;
  }

  .menu-card--compact .menu-card__title h3 {
    font-size: 0.82rem;
  }

  .menu-card--compact .menu-card__body p {
    display: none;
  }

  .menu-card--compact .menu-card__action {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .menu-card--compact .qty-stepper {
    gap: 6px;
    padding: 6px;
  }

  .menu-card--compact .qty-stepper button {
    width: 28px;
    height: 28px;
  }

  .menu-card--compact .menu-card__media span {
    display: none;
  }

  .admin-header {
    padding: 18px;
    border-radius: 22px;
  }

  .admin-stat {
    min-width: 0;
  }

  .admin-product__footer,
  .admin-product__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart {
    width: 100vw;
  }

  .checkout {
    padding: 12px;
  }

  .checkout__panel {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .checkout__summary,
  .checkout__form {
    width: 100%;
    max-width: 100%;
  }

  .checkout__form {
    min-width: 0;
  }

  .checkout__form label {
    width: 100%;
  }

  .article-modal {
    padding: 12px;
  }

  .article-modal__panel {
    max-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 22px;
  }
}
