:root {
  --bg: #080706;
  --panel: rgba(21, 18, 13, 0.9);
  --line: rgba(244, 190, 70, 0.2);
  --gold: #f4be46;
  --gold-strong: #ffd86a;
  --red: #ee3f25;
  --cream: #fff4d2;
  --muted: #c9b994;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--cream);
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(rgba(244, 190, 70, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, rgba(244, 190, 70, 0.12), transparent 34rem),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  margin: 0;
}

button,
input,
a {
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}

button {
  cursor: pointer;
}

body.is-order-modal-open {
  overflow: hidden;
}

.shell {
  min-height: 100vh;
  padding-bottom: 116px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(18px, 4vw, 42px);
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(18px, 5vw, 54px) clamp(16px, 4vw, 40px) 24px;
}

.hero-copy,
.hero-photo,
.toolbar,
.card,
.order-bar {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-copy {
  background:
    linear-gradient(135deg, rgba(244, 190, 70, 0.1), rgba(238, 63, 37, 0.06)),
    rgba(0, 0, 0, 0.48);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
  padding: clamp(18px, 5vw, 36px);
}

.logo-card {
  align-items: center;
  background: #020202;
  border: 1px solid rgba(244, 190, 70, 0.32);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  max-width: 360px;
  overflow: hidden;
  padding: 10px;
}

.logo-card img {
  display: block;
  height: auto;
  width: 100%;
}

.kicker,
.section-head span,
.tag {
  color: var(--gold);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1 {
  color: #fff8df;
  font-size: clamp(2.6rem, 10vw, 6.7rem);
  letter-spacing: 0;
  line-height: 0.86;
  margin-top: 12px;
  text-transform: uppercase;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.35;
  margin-top: 14px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions a,
.send,
.qty button,
.categories button,
.order-bar a {
  touch-action: manipulation;
}

.hero-actions a {
  align-items: center;
  background: linear-gradient(135deg, rgba(244, 190, 70, 0.26), rgba(238, 63, 37, 0.18));
  border: 1px solid rgba(244, 190, 70, 0.46);
  border-radius: 8px;
  color: #fff6d9;
  display: inline-flex;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

.hero-actions a:last-child {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-photo {
  aspect-ratio: 1;
  background: #030303;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  min-height: 260px;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.hero-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-photo::after {
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.8));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-photo > div {
  bottom: 16px;
  left: 16px;
  position: absolute;
  right: 16px;
  z-index: 1;
}

.hero-photo span,
.hero-photo strong {
  display: block;
}

.hero-photo span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-photo strong {
  color: #fff8df;
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  line-height: 0.95;
  margin-top: 4px;
}

.toolbar {
  backdrop-filter: blur(16px);
  background: rgba(8, 7, 6, 0.86);
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.search {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(244, 190, 70, 0.22);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 48px;
  padding: 0 10px;
}

.search span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search input {
  background: transparent;
  border: 0;
  color: var(--cream);
  min-height: 46px;
  min-width: 0;
  padding: 0;
}

.search input:focus {
  outline: 0;
}

.search:focus-within {
  border-color: rgba(244, 190, 70, 0.68);
  box-shadow: 0 0 0 3px rgba(244, 190, 70, 0.12);
}

.categories {
  display: grid;
  gap: 8px;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
}

.categories button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 13px;
  white-space: nowrap;
}

.categories button.is-active {
  background: linear-gradient(135deg, rgba(244, 190, 70, 0.28), rgba(238, 63, 37, 0.2));
  border-color: rgba(244, 190, 70, 0.56);
  color: #fff7db;
}

.menu {
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px clamp(16px, 4vw, 40px);
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  color: #fff8df;
  font-size: clamp(1.35rem, 5vw, 2.5rem);
  line-height: 1;
  margin-top: 6px;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.36));
  display: grid;
  gap: 12px;
  grid-template-columns: 94px minmax(0, 1fr);
  min-height: 132px;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.card::before {
  background: linear-gradient(180deg, var(--gold), transparent);
  content: "";
  inset: 10px auto 10px -1px;
  opacity: 0.7;
  position: absolute;
  width: 2px;
}

.card.is-highlighted {
  border-color: rgba(244, 190, 70, 0.88);
  box-shadow:
    0 0 0 3px rgba(244, 190, 70, 0.18),
    0 24px 80px rgba(244, 190, 70, 0.14);
}

.photo {
  background-image: url("/gold-dogs-food-board.jpg");
  background-position: var(--photo-position);
  background-size: 310%;
  border: 1px solid rgba(244, 190, 70, 0.24);
  border-radius: 8px;
  min-height: 112px;
  overflow: hidden;
}

.photo.has-custom-photo {
  background-image: none;
}

.photo img {
  display: block;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  width: 100%;
}

.body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.title {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.title h3 {
  color: #fff8df;
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.title strong {
  color: var(--gold-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.98rem;
  justify-self: end;
  white-space: nowrap;
}

.tag {
  color: var(--red);
  font-size: 0.62rem;
  margin-bottom: 4px;
}

.body p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.28;
}

.qty {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-self: end;
}

.qty button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 190, 70, 0.24);
  border-radius: 8px;
  color: var(--cream);
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.qty button:last-child {
  background: linear-gradient(135deg, rgba(244, 190, 70, 0.34), rgba(238, 63, 37, 0.24));
  border-color: rgba(244, 190, 70, 0.52);
}

.qty button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.qty span {
  color: #fff8df;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  min-width: 18px;
  text-align: center;
}

.empty {
  background: rgba(255, 255, 255, 0.055);
  border: 1px dashed rgba(244, 190, 70, 0.3);
  border-radius: 8px;
  color: var(--muted);
  margin-top: 12px;
  padding: 18px;
  text-align: center;
}

.order-bar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(8, 7, 6, 0.92);
  bottom: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  left: 12px;
  margin: 0 auto;
  max-width: 720px;
  padding: 12px;
  position: fixed;
  right: 12px;
  z-index: 20;
}

.order-bar span,
.order-bar strong {
  display: block;
}

.order-bar span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-bar strong {
  color: #fff8df;
  font-size: 1rem;
  line-height: 1.05;
}

.order-bar a {
  align-items: center;
  background: linear-gradient(135deg, rgba(244, 190, 70, 0.34), rgba(238, 63, 37, 0.25));
  border: 1px solid rgba(244, 190, 70, 0.56);
  border-radius: 8px;
  color: #fff8df;
  display: inline-flex;
  font-weight: 900;
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  text-decoration: none;
}

.order-bar a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}

.order-modal {
  align-items: stretch;
  background:
    linear-gradient(rgba(244, 190, 70, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(8, 7, 6, 0.96);
  background-size: 42px 42px, 42px 42px, auto;
  display: grid;
  inset: 0;
  padding: clamp(16px, 5vw, 40px);
  position: fixed;
  z-index: 50;
}

.order-modal[hidden] {
  display: none;
}

.order-modal-panel {
  align-content: center;
  background:
    linear-gradient(135deg, rgba(244, 190, 70, 0.13), rgba(238, 63, 37, 0.08)),
    rgba(12, 10, 7, 0.92);
  border: 1px solid rgba(244, 190, 70, 0.36);
  border-radius: 8px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 18px;
  margin: auto;
  max-height: calc(100vh - 32px);
  max-width: 720px;
  min-height: min(720px, calc(100vh - 32px));
  overflow-y: auto;
  padding: clamp(18px, 6vw, 38px);
  position: relative;
  width: min(100%, 720px);
}

.order-modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--cream);
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
}

.order-modal-panel > span,
.order-question strong,
.customer-name-field {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-modal-panel h2 {
  color: #fff8df;
  font-size: clamp(2.4rem, 10vw, 5.2rem);
  line-height: 0.88;
  max-width: 620px;
  padding-right: 42px;
  text-transform: uppercase;
}

.order-question {
  display: grid;
  gap: 12px;
}

.order-type-options {
  display: grid;
  gap: 10px;
}

.order-type-options button,
.order-modal-send {
  align-items: center;
  border-radius: 8px;
  color: #fff8df;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 64px;
  padding: 16px;
}

.order-type-options button {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
}

.order-type-options button.is-selected {
  background: linear-gradient(135deg, rgba(244, 190, 70, 0.38), rgba(238, 63, 37, 0.22));
  border-color: rgba(244, 190, 70, 0.76);
  box-shadow: 0 0 0 3px rgba(244, 190, 70, 0.14);
}

.customer-name-field {
  display: grid;
  gap: 8px;
}

.customer-name-field input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 190, 70, 0.24);
  border-radius: 8px;
  color: var(--cream);
  font-size: 1.1rem;
  min-height: 58px;
  padding: 12px 14px;
  width: 100%;
}

.customer-name-field input:focus {
  border-color: rgba(244, 190, 70, 0.72);
  box-shadow: 0 0 0 3px rgba(244, 190, 70, 0.12);
  outline: 0;
}

.order-modal-panel p {
  color: var(--muted);
  line-height: 1.35;
}

.order-modal-send {
  background: linear-gradient(135deg, rgba(244, 190, 70, 0.42), rgba(238, 63, 37, 0.28));
  border: 1px solid rgba(244, 190, 70, 0.64);
  font-size: 1.05rem;
}

.order-modal-send:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-photo,
  .toolbar,
  .section-head,
  .card,
  .order-bar {
    animation: riseIn 420ms ease both;
  }

  .card:nth-child(2n) {
    animation-delay: 50ms;
  }

  .card:nth-child(3n) {
    animation-delay: 100ms;
  }

  .hero-photo img,
  .photo,
  .hero-actions a,
  .categories button,
  .qty button,
  .order-bar a {
    transition:
      border-color 160ms ease,
      box-shadow 160ms ease,
      transform 160ms ease,
      background 160ms ease;
  }

  .hero-photo:hover img,
  .card:hover .photo {
    transform: scale(1.025);
  }

  .hero-actions a:hover,
  .categories button:hover,
  .qty button:hover,
  .order-bar a:hover {
    transform: translateY(-1px);
  }
}

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

@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  }

  .toolbar {
    grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  }

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

  .order-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .order-bar a {
    grid-column: auto;
  }

  .order-type-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .photo {
    min-height: 104px;
  }

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

  .title strong {
    justify-self: start;
  }
}
