/* ==========================================================================
   DELIVERY-MENU REDESIGN
   Screenshot-inspired UI for the existing Heritage Coffee menu
   Add AFTER your current "Pasted code (2).css" so these rules override it.
   ========================================================================== */

.menu-app-section {
  --delivery-bg: #fff;
  --delivery-panel: #f8f8f8;
  --delivery-border: #dedede;
  --delivery-text: #151515;
  --delivery-muted: #555;
  --delivery-dark: #444;
  --delivery-radius: 14px;
  background: #fff;
  color: var(--delivery-text);
  padding: 2rem 0 5rem;
}

.menu-app-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

/* ---------- LEFT SIDEBAR ---------- */

.menu-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 2px 0;
}

.menu-sidebar-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .15rem;
}

.menu-sidebar-hours {
  font-size: .78rem;
  color: #333;
  margin-bottom: 1.8rem;
}

.menu-category-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-category {
  position: relative;
  display: block;
  padding: .52rem .8rem .52rem 1rem;
  color: #555;
  font-family: var(--font-sans);
  font-size: .82rem;
  line-height: 1.35;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.menu-category:hover {
  color: #111;
  background: #f3f3f3;
  transform: translateX(2px);
}

.menu-category.active {
  color: #111;
  font-weight: 800;
  background: #f5f5f5;
}

.menu-category.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: #222;
}

/* ---------- MAIN AREA ---------- */

.menu-main {
  min-width: 0;
}

.menu-address-bar {
  position: sticky;
  top: 14px;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 32px;
  border-radius: 12px;
  background: #454545;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.menu-location-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: #666;
  background: #fff;
  border-radius: 50%;
  font-size: 18px;
}

.menu-address-bar input {
  width: 100%;
  height: 40px;
  border: 0;
  outline: 0;
  border-radius: 7px;
  background: #fff;
  color: #222;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
}

.menu-address-bar input::placeholder {
  color: #555;
  opacity: 1;
}

.menu-dietary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 0 2px 24px;
  margin-bottom: 20px;
  color: #555;
  font-size: .76rem;
}

.menu-dietary-bar strong {
  color: #222;
}

.menu-kitchen-note {
  margin-left: auto;
  font-style: italic;
  color: #777;
}

/* ---------- SECTION HEADINGS ---------- */

.menu-card-layout {
  scroll-margin-top: 105px;
  margin-bottom: 44px;
}

.menu-card-section-heading {
  margin-bottom: 18px;
}

.menu-card-section-heading .eyebrow {
  margin-bottom: 7px;
  color: #666;
}

.menu-card-section-heading .section-title {
  margin-bottom: 5px;
  color: #111;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  letter-spacing: -.025em;
}

.menu-card-section-heading .section-subtitle {
  max-width: 780px;
  color: #666;
  font-size: .86rem;
  line-height: 1.55;
}

/* ---------- TWO-COLUMN CARDS ---------- */

.delivery-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.delivery-menu-card {
  position: relative;
  min-height: 142px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--delivery-border);
  border-radius: var(--delivery-radius);
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,.02);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.delivery-menu-card:hover {
  transform: translateY(-2px);
  border-color: #c7c7c7;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.delivery-menu-card-copy {
  flex: 1;
  min-width: 0;
  padding: 18px 48px 18px 16px;
}

.delivery-menu-card-top {
  display: flex;
  flex-wrap: wrap;
  
  gap: 12px;
}

.delivery-menu-card h3,
.delivery-menu-card .menu-item-name {
  margin: 0;
  color: #111;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.delivery-menu-card p,
.delivery-menu-card .menu-item-desc {
  margin: 7px 0 0;
  max-width: 100%;
  color: #555;
  font-family: var(--font-sans);
  font-size: .79rem;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.delivery-price,
.delivery-menu-card .menu-item-price {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #333;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 800;
}

.delivery-menu-card .dietary-tag,
.menu-dietary-bar .dietary-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #555;
  font-family: var(--font-sans);
  font-size: .58rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
}

.delivery-menu-card-action {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.delivery-menu-card-action button,
.delivery-menu-card .menu-item-add,
.delivery-menu-card .add-to-cart {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  transition: transform .2s ease, background .2s ease;
}

.delivery-menu-card-action button:hover,
.delivery-menu-card .menu-item-add:hover,
.delivery-menu-card .add-to-cart:hover {
  background: #111;
  color: #fff;
  transform: scale(1.08);
}

/* ---------- CONVERT EXISTING .menu-item MARKUP ---------- */

.delivery-menu-grid .menu-item {
  position: relative;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 48px 18px 16px;
  margin: 0;
  border: 1px solid var(--delivery-border);
  border-radius: var(--delivery-radius);
  background: #fff;
  box-shadow: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.delivery-menu-grid .menu-item:hover {
  transform: translateY(-2px);
  border-color: #c7c7c7;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.delivery-menu-grid .menu-item-header {
  gap: 12px;
}

.delivery-menu-grid .menu-item-name {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
}

.delivery-menu-grid .menu-item-price {
  font-family: var(--font-sans);
  font-size: .78rem;
  color: #333;
  font-weight: 800;
}

.delivery-menu-grid .menu-item-desc {
  max-width: 100%;
  margin-top: 7px;
  font-family: var(--font-sans);
  font-size: .79rem;
  line-height: 1.48;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.delivery-menu-grid .menu-item::after {
  content: "+";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 300;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

/* If your cards contain images, the image becomes a clean right-side thumbnail. */
.delivery-menu-grid .menu-item:has(img) {
  padding-right: 150px;
}

.delivery-menu-grid .menu-item img {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  max-width: 140px;
  object-fit: cover;
  border-radius: 0 var(--delivery-radius) var(--delivery-radius) 0;
}

/* ---------- DARK RESERVATION CALLOUT ---------- */

.menu-app-section .menu-reservation-callout {
  margin-top: 36px;
  padding: 36px;
  border-radius: 14px;
  background: #242424;
  color: #fff;
  text-align: center;
}

.menu-app-section .menu-reservation-callout .eyebrow {
  color: #fff;
}

.menu-app-section .menu-reservation-callout h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 800;
}

.menu-app-section .menu-reservation-callout p {
  max-width: 650px;
  margin: 0 auto 20px;
  color: #d8d8d8;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1050px) {
  .menu-app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
  }

  .delivery-menu-grid {
    gap: 12px;
  }
}

@media (max-width: 820px) {
  .menu-app-shell {
    width: min(100% - 24px, 720px);
    grid-template-columns: 1fr;
  }

  .menu-sidebar {
    position: static;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .menu-sidebar-title,
  .menu-sidebar-hours {
    display: none;
  }

  .menu-category-nav {
    flex-direction: row;
    width: max-content;
    gap: 7px;
  }

  .menu-category {
    white-space: nowrap;
    padding: .6rem .9rem;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
  }

  .menu-category.active {
    background: #111;
    color: #fff;
    border-color: #111;
  }

  .menu-category.active::before {
    display: none;
  }

  .menu-address-bar {
    position: static;
    margin-bottom: 18px;
  }

  .menu-kitchen-note {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .menu-app-section {
    padding-top: 12px;
  }

  .menu-app-shell {
    width: calc(100% - 20px);
  }

  .delivery-menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card-layout {
    margin-bottom: 32px;
  }

  .menu-card-section-heading .section-title {
    font-size: 1.65rem;
  }

  .menu-dietary-bar {
    display: none;
  }

  .delivery-menu-card,
  .delivery-menu-grid .menu-item {
    min-height: 128px;
  }

  .delivery-menu-grid .menu-item:has(img) {
    padding-right: 120px;
  }

  .delivery-menu-grid .menu-item img {
    width: 110px;
    max-width: 110px;
  }
}
