/* Restaurant (Shop Homepage), redesigned as a menu board: a photo header, then dishes listed with
   photo, name, and price the way delivery apps show them, instead of a web shop's product grid.
   The markup is unchanged, so saved edits and the editor's targets still apply. */
body {
  background: #f6f3ee;
  color: var(--aii-ink);
}

.navbar {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--aii-line);
}

.navbar-brand {
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

/* Header: the owner's photo, or the illustrated table, dimmed so the headline reads. The image is
   not !important: a cover photo set in the editor is applied inline and must win. */
header.bg-dark.py-5 {
  position: relative;
  isolation: isolate;
  padding: 5.5rem 0 4.5rem !important;
  background-image: url("/v1/template-assets/aii-common/restaurant-hero-1.svg");
  background-position: center !important;
  background-size: cover !important;
  color: #fff !important;
}

header.bg-dark.py-5::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.3), rgba(20, 16, 12, 0.68));
  pointer-events: none;
}

/* Stays white on the photo even when a light theme darkens text on accent surfaces. */
header.bg-dark .text-center.text-white,
header.bg-dark .text-center.text-white h1 {
  color: #fff !important;
}

header.bg-dark .text-center.text-white .lead {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 1.05rem !important;
}

header.bg-dark h1 {
  font-size: clamp(2.1rem, 9vw, 3.25rem) !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

/* Menu: one dish per row on phones, two per row on wider screens. */
section.py-5:not(#visit) {
  padding: 1.25rem 0 1.5rem !important;
}

section.py-5:not(#visit) .container {
  margin-top: 0 !important;
  max-width: 960px;
}

section.py-5:not(#visit) .row {
  --bs-gutter-x: 0.75rem;
  row-gap: 0.75rem;
}

section.py-5:not(#visit) .row > .col {
  flex: 0 0 100%;
  max-width: 100%;
  margin-bottom: 0 !important;
}

@media (min-width: 768px) {
  section.py-5:not(#visit) .row > .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

section.py-5:not(#visit) .card {
  display: grid !important;
  grid-template-areas: "photo body" "photo actions";
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 14px;
  min-height: 128px;
  padding: 12px;
  border-radius: 18px !important;
  background: #fff;
  box-shadow: 0 6px 20px rgba(25, 31, 40, 0.06);
}

section.py-5:not(#visit) .card-img-top {
  grid-area: photo;
  align-self: center;
  width: 104px;
  height: 104px;
  border-radius: 14px !important;
  object-fit: cover;
}

section.py-5:not(#visit) .card-body {
  grid-area: body;
  align-self: center;
  padding: 2px 0 0 !important;
}

section.py-5:not(#visit) .card-body .text-center {
  color: var(--aii-ink);
  font-size: 1rem;
  font-weight: 800;
  text-align: left !important;
}

section.py-5:not(#visit) .card h5 {
  margin-bottom: 0.3rem !important;
  font-size: 1.05rem !important;
  line-height: 1.35 !important;
}

section.py-5:not(#visit) .card .d-flex.justify-content-center {
  justify-content: flex-start !important;
  gap: 1px;
  margin-bottom: 0.3rem !important;
  font-size: 0.72rem;
}

section.py-5:not(#visit) .card .text-decoration-line-through {
  margin-right: 0.3rem;
  color: var(--aii-ink-faint) !important;
  font-size: 0.88rem;
  font-weight: 500;
}

section.py-5:not(#visit) .card-footer {
  grid-area: actions;
  align-self: end;
  border-top: 0 !important;
  background: transparent !important;
  padding: 0.5rem 0 0 !important;
}

section.py-5:not(#visit) .card-footer .text-center {
  text-align: left !important;
}

section.py-5:not(#visit) .card-footer .btn {
  border-radius: 999px !important;
  font-size: 0.85rem !important;
  padding: 0.45rem 0.95rem !important;
}

/* The 추천 badge sits on the dish photo. */
section.py-5:not(#visit) .card > .badge {
  z-index: 1;
  top: 18px !important;
  right: auto !important;
  left: 18px !important;
  border-radius: 999px !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  padding: 0.3rem 0.55rem !important;
}

/* Card buttons use the theme color as text on white; light themes (amber) need the deeper shade. */
section.py-5 .card .btn-outline-dark {
  border-width: 1.5px !important;
  color: var(--aii-accent-text) !important;
}

section.py-5 .card .btn-outline-dark:hover,
section.py-5 .card .btn-outline-dark:focus {
  background-color: var(--aii-accent) !important;
  color: var(--aii-on-accent) !important;
}

/* 방문 안내 reads as a short info list: label on the left, the owner's value on the right. */
#visit {
  border-top: 0 !important;
  padding: 0.75rem 0 2.5rem !important;
}

#visit .container {
  max-width: 720px;
}

#visit h2 {
  margin-bottom: 0.75rem !important;
  font-size: 1.35rem !important;
  text-align: left !important;
}

#visit .row {
  margin: 0 !important;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(25, 31, 40, 0.06);
  padding: 0.25rem 1.1rem;
}

#visit .row > .col {
  display: flex;
  flex: 0 0 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 100%;
  margin: 0 !important;
  border-bottom: 1px solid var(--aii-line);
  padding: 0.95rem 0 !important;
  text-align: left !important;
}

#visit .row > .col:last-child {
  border-bottom: 0;
}

/* A row the owner left empty is hidden with its label (its value is already hidden). */
#visit .row > .col:has(> p[hidden]) {
  display: none;
}

#visit h3 {
  flex: 0 0 auto;
  margin: 0 !important;
  color: var(--aii-ink-soft) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

#visit p {
  font-size: 0.98rem;
  text-align: right;
  word-break: keep-all;
}
