:root {
  --ink: #172016;
  --muted: #65705f;
  --surface: #fffdf6;
  --paper: #f6f1e4;
  --line: #ded6c3;
  --green: #244a2f;
  --green-2: #376844;
  --sage: #dce8cf;
  --gold: #c9a14a;
  --gold-soft: #f5e4ad;
  --rose: #7f4f47;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(23, 32, 22, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(201, 161, 74, 0.18), transparent 30%),
    linear-gradient(135deg, #fffdf7 0%, #f7f1e4 48%, #eef4e9 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

input[type="range"] {
  accent-color: var(--gold);
}

button {
  cursor: pointer;
}

.kiosk-shell {
  min-height: 100vh;
}

.brand {
  display: grid;
  gap: 14px;
}

.brand img {
  width: 160px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.choice-view {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}

.choice-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/home-background.png") center / cover no-repeat;
  opacity: 0.52;
  filter: grayscale(1) contrast(1.04);
}

.choice-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 253, 246, 0.42), rgba(255, 253, 246, 0.24) 34%, rgba(246, 241, 228, 0.38) 100%),
    rgba(255, 253, 246, 0.28);
}

.choice-header {
  display: flex;
  justify-content: center;
  text-align: center;
}

.choice-header .brand {
  justify-items: center;
}

.choice-header .brand img {
  width: min(260px, 48vw);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  gap: clamp(18px, 3vw, 34px);
  margin: 36px 0;
}

.choice-card {
  display: grid;
  grid-template-rows: minmax(330px, 45vh) auto;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--green);
  border: 1px solid rgba(36, 74, 47, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: left;
}

.choice-card img {
  width: 100%;
  height: 100%;
  padding: clamp(18px, 3vw, 36px);
  object-fit: contain;
  background: var(--white);
}

.choice-card-copy {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 34px);
  align-content: center;
}

.choice-card-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.95;
}

.choice-card-copy span {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.45;
}

.compact-brand {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.compact-brand img {
  width: 138px;
}

.choice-card,
.tab-button,
.ghost-button,
.close-button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 54px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.content {
  min-width: 0;
  padding: 30px clamp(24px, 3vw, 46px) 46px;
}

.topbar,
.section-title,
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.menu-heading {
  margin: 28px 0 0;
}

.content:not(.is-choosing-category) .menu-heading {
  text-align: center;
}

.content.is-choosing-category .menu-heading {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.35rem);
}

.ghost-button {
  padding: 0 18px;
  color: var(--green);
  background: transparent;
  border-color: var(--green);
  font-weight: 800;
}

.filters {
  margin: 30px 0 18px;
  align-items: stretch;
}

.content:not(.is-choosing-category) .filters {
  justify-content: center;
}

.content:not(.is-choosing-category) .category-tabs {
  justify-content: center;
}

.filters.is-selecting {
  display: grid;
  min-height: min(560px, calc(100vh - 320px));
  align-content: center;
  justify-content: center;
  justify-items: center;
  margin-top: clamp(24px, 5vw, 62px);
}

.filters.is-selecting .category-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  justify-self: center;
  width: calc(100vw - 96px);
  max-width: 1120px;
  margin: 0 auto;
}

.filters.is-selecting .tab-button {
  min-height: clamp(150px, 22vh, 230px);
  padding: 24px;
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  box-shadow: var(--shadow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 3.2rem);
  line-height: 1;
}

.filters.is-selecting .tab-button.is-active {
  color: #241b08;
  background: var(--gold);
  border-color: var(--gold);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-button {
  padding: 0 18px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  font-weight: 850;
}

.tab-button.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #241b08;
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: 260px;
  margin: 0 0 30px;
  overflow: hidden;
  background: var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
  color: var(--white);
}

.spotlight-copy .eyebrow {
  color: var(--gold-soft);
}

.spotlight-copy h2 {
  max-width: 650px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: 1;
}

.spotlight-copy p {
  max-width: 640px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.spotlight-image {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.product-section {
  padding-bottom: 24px;
}

.section-title {
  margin-bottom: 18px;
  justify-content: center;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 320px));
  justify-content: center;
  gap: 18px;
  max-width: 1060px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  grid-template-rows: 210px auto;
  min-height: 376px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(222, 214, 195, 0.9);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 22, 0.08);
  text-align: left;
}

.product-card:active,
.choice-card:active,
.tab-button:active,
.ghost-button:active {
  transform: scale(0.98);
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--paper);
}

.product-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: var(--green);
  background: var(--sage);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.pill.gold {
  color: #2c220d;
  background: var(--gold-soft);
}

.product-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.16;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--green);
  font-weight: 900;
}

.empty-state {
  padding: 42px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.product-dialog {
  width: min(1040px, calc(100vw - 34px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.product-dialog::backdrop {
  background: rgba(14, 22, 13, 0.58);
  backdrop-filter: blur(10px);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  height: min(690px, calc(100dvh - 28px));
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-media {
  min-height: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: clamp(18px, 2.5vw, 28px);
  overflow: hidden;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.close-button {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: var(--green);
  background: var(--white);
  border-color: var(--line);
  font-size: 1.4rem;
  line-height: 1;
}

.detail-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.8vw, 3.1rem);
  line-height: 0.98;
}

.detail-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.42;
}

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

.detail-box {
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-box strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 0.95rem;
}

.effects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quantity-panel {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quantity-head,
.quantity-prices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quantity-head span,
.quantity-prices span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quantity-head strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1;
}

.quantity-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.quantity-slider-wrap {
  position: relative;
  padding-bottom: 17px;
}

.quantity-slider::-webkit-slider-runnable-track {
  height: 12px;
  background: linear-gradient(90deg, var(--gold) var(--progress, 0%), var(--sage) var(--progress, 0%));
  border-radius: 999px;
}

.quantity-slider::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -9px;
  appearance: none;
  background: var(--green);
  border: 4px solid var(--gold-soft);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(23, 32, 22, 0.22);
}

.quantity-slider::-moz-range-track {
  height: 12px;
  background: var(--sage);
  border-radius: 999px;
}

.quantity-slider::-moz-range-progress {
  height: 12px;
  background: var(--gold);
  border-radius: 999px;
}

.quantity-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  background: var(--green);
  border: 4px solid var(--gold-soft);
  border-radius: 999px;
}

.quantity-markers {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  pointer-events: none;
}

.quantity-markers span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.quantity-markers span::before {
  content: "";
  display: block;
  width: 2px;
  height: 8px;
  margin: -13px auto 4px;
  background: var(--green);
  border-radius: 999px;
  opacity: 0.75;
}

.quantity-prices {
  align-items: stretch;
}

.quantity-prices div {
  flex: 1;
  display: grid;
  gap: 4px;
}

.quantity-prices strong {
  color: var(--green);
  font-size: 1rem;
  line-height: 1.1;
}

.notice {
  margin: 0;
  padding: 9px 12px;
  color: #5e4c19;
  background: #fff2c5;
  border: 1px solid #ead58b;
  border-radius: 8px;
  line-height: 1.25;
}

@media (hover: hover) {
  .product-card:hover,
  .choice-card:hover,
  .tab-button:hover,
  .ghost-button:hover,
  .close-button:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 980px) {
  .choice-view {
    padding: 22px 30px;
  }

  .choice-header {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    margin: 26px 0;
  }

  .choice-card {
    grid-template-rows: 205px auto;
    min-height: auto;
  }

  .choice-card-copy {
    padding: 18px 22px 22px;
  }

  .filters,
  .topbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .spotlight,
  .product-detail {
    grid-template-columns: 1fr;
    height: min(900px, calc(100dvh - 28px));
  }

  .detail-media {
    height: 280px;
  }
}

@media (max-width: 620px) {
  .choice-view {
    padding: 22px 16px 32px;
  }

  .content {
    padding: 22px 16px 32px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-image {
    display: none;
  }
}
