:root {
  color-scheme: light;
  --cream: #f8f5ef;
  --paper: #fffefa;
  --ink: #34251d;
  --muted: #776b62;
  --accent: #a64e32;
  --accent-dark: #843a25;
  --line: #e9e1d7;
  --green: #2f7b4e;
  --red: #bd4438;
  --special-bg: #E8F3EF;
  --special-border: #6FB7A6;
  --special-thumb: #D5ECE5;
  --special-accent: #1F7A70;
  --shadow: 0 5px 20px rgb(52 37 29 / 6%);
  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "DM Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.site-header {
  max-width: 900px;
  min-height: 94px;
  margin: 0 auto;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.brand-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fffaf3;
  font-family: var(--heading-font);
  font-size: 23px;
  font-weight: 700;
}

.brand-name {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.header-hours {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tagline {
  margin: 0 0 0 48px;
  color: var(--muted);
  font-size: 13px;
}

.category-nav {
  position: sticky;
  z-index: 5;
  top: 0;
  border-block: 1px solid rgb(233 225 215 / 85%);
  background: rgb(248 245 239 / 96%);
  backdrop-filter: blur(12px);
}

.category-nav::before,
.category-nav::after {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  content: "";
}

.category-nav::before {
  left: max(0px, calc((100% - 900px) / 2));
  background: linear-gradient(to right, rgb(248 245 239 / 98%), transparent);
}

.category-nav::after {
  right: max(0px, calc((100% - 900px) / 2));
  background: linear-gradient(to left, rgb(248 245 239 / 98%), transparent);
}

.category-nav.is-scrolled::before,
.category-nav.has-overflow:not(.at-end)::after {
  opacity: 1;
}

.category-home-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(0px, calc((100% - 900px) / 2));
  display: grid;
  width: 44px;
  height: 44px;
  padding: 6px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  visibility: hidden;
  transition: opacity 160ms ease;
}

.category-home-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.category-home-button .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 20px;
}

.category-tabs {
  position: relative;
  display: flex;
  max-width: 900px;
  min-height: 58px;
  margin: 0 auto;
  padding: 7px 12px 7px 56px;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.category-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}

.category-tab:hover,
.category-tab:focus-visible {
  color: var(--accent-dark);
}

.category-tab.is-active {
  background: var(--ink);
  color: #fffefa;
}

.page-content {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 24px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 2px 8px rgb(52 37 29 / 3%);
}

.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(166 78 50 / 12%);
}

.search-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-right: 11px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.search-wrap input::placeholder {
  color: #8a8078;
}

.veg-toggle {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.veg-toggle.is-on {
  background: #e8f2ea;
  border-color: rgba(47, 123, 78, 0.4);
  color: var(--green);
}

.menu-section {
  margin: 0 0 32px;
  scroll-margin-top: 78px;
}

.specials-section {
  padding: 14px;
  border: 1px solid var(--special-border);
  border-radius: 20px;
  background: var(--special-bg);
}

.specials-section .menu-item {
  border: 1.5px solid var(--special-border);
}

.specials-section .category-thumbnail,
.category-thumbnail--specials {
  background: var(--special-thumb);
}

.special-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--special-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.specials-section .item-title-row {
  padding-right: 58px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 13px;
}

.section-heading--noted {
  margin-bottom: 0;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.specials-section .section-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.specials-star {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: var(--special-accent);
}

.section-description {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 6px 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #f1ece3;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.section-description svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.section-description span {
  min-width: 0;
}

.item-list {
  display: grid;
  gap: 11px;
}

.menu-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  min-height: 114px;
  padding: 11px;
  gap: 13px;
  border: 1px solid rgb(233 225 215 / 70%);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.item-image,
.image-placeholder {
  width: 90px;
  height: 90px;
  overflow: hidden;
  border-radius: 12px;
}

.item-image {
  display: block;
  object-fit: cover;
  background: #e9dccb;
}

.image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f1e4d3, #e4d0b9);
  color: #a17b5d;
}

.category-thumbnail--specials {
  background: var(--special-thumb);
  color: #a98134;
}

.category-thumbnail--juices {
  background: #faeddd;
  color: #bf7945;
}

.category-thumbnail--thickshakes {
  background: #f7e9eb;
  color: #a65c67;
}

.category-thumbnail--coffee,
.category-thumbnail--frappe {
  background: #eee5db;
  color: #805c43;
}

.category-thumbnail--quick-bites {
  background: #f5efda;
  color: #96743b;
}

.category-thumbnail--pizza {
  background: #f6e5df;
  color: #a4523e;
}

.category-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
}

.image-placeholder svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

.item-title-row h3 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.diet-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 4px 1px 0 0;
  border: 1.5px solid var(--green);
  border-radius: 3px;
}

.diet-dot::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 2.5px;
  border-radius: 50%;
  background: var(--green);
}

.diet-dot.non-veg {
  border-color: var(--red);
}

.diet-dot.non-veg::after {
  background: var(--red);
}

.item-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.price-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-chip {
  display: inline-flex;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f7efe7;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.item-price {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.item-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.tag-badge,
.sold-out {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.tag-badge {
  background: #f8ebdf;
  color: var(--accent-dark);
}

.sold-out {
  background: #eeeae5;
  color: #655b54;
}

.menu-item.is-unavailable {
  background: #f2efeb;
  box-shadow: none;
}

.menu-item.is-unavailable .item-image,
.menu-item.is-unavailable .image-placeholder {
  filter: grayscale(1);
  opacity: 0.58;
}

.menu-item.is-unavailable .item-info {
  opacity: 0.7;
}

.empty-results,
.status-message,
.error-message,
.noscript-message {
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

.error-message strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 21px;
}

.noscript-message {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
}

.site-footer {
  padding: 24px 16px 34px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.visit-us {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 14px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  text-align: left;
}

.visit-us h2 {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-size: 26px;
  line-height: 1.2;
}

.visit-us-grid {
  display: grid;
  gap: 12px;
}

.footer-label {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-us p,
.visit-us a {
  margin: 0;
  color: var(--ink);
  text-decoration: none;
}

.directions-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf3;
  font-weight: 700;
}

.footer-note {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 12px;
  text-align: center;
}

@media (min-width: 601px) {
  .site-header {
    min-height: 105px;
    padding-inline: 28px;
  }

  .page-content {
    width: min(100% - 56px, 760px);
  }

  .item-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .menu-item {
    grid-template-columns: 83px minmax(0, 1fr);
    gap: 11px;
  }

  .item-image,
  .image-placeholder {
    width: 83px;
    height: 92px;
  }

  .visit-us-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .menu-section {
    margin-bottom: 22px;
  }

  .specials-section {
    padding: 10px 12px;
  }

  .section-heading {
    margin-bottom: 8px;
  }

  .item-list {
    gap: 8px;
  }

  .menu-item {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 74px;
    padding: 10px 12px;
    gap: 12px;
  }

  .item-image,
  .image-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .item-info {
    justify-content: space-between;
  }

  .item-title-row {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }

  .item-title-row h3 {
    order: 1;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .diet-dot {
    order: 0;
    margin: 3px 0 0;
  }

  .item-description {
    margin: 0 0 1px;
    font-size: 13px;
    line-height: 1.2;
    -webkit-line-clamp: 1;
  }

  .item-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 8px;
  }

  .item-price {
    font-size: 16px;
  }

  .price-chip-list {
    gap: 4px;
  }

  .price-chip {
    min-height: 22px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .special-badge {
    top: auto;
    right: 12px;
    bottom: 10px;
  }

  .specials-section .item-title-row {
    padding-right: 0;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding: 16px;
  }

  .brand-group {
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .brand-name {
    font-size: 19px;
    letter-spacing: -0.6px;
  }

  .header-hours {
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .tagline {
    margin-left: 44px;
  }

  .specials-section {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
