/* First line on purpose: an @import below a style rule is discarded by the browser, and the
   shared HuahinFood header then stops loading on every /shops/* page. */
@import url("/partner-platform-chrome.css?v=5");

/* The demo pages never reset the user-agent body margin, so every /shops/* page had an
   8px strip of page background above the platform header (and the sticky bar sat 8px
   below it at rest). */
body.demo-shop {
  margin-top: 0;
  margin-bottom: 0;
}

/* Anchor landings on a demo store, the same rule the real storefront uses. --stick-h is the
   measured stuck stack (186px here), so a jump to the menu heading cannot land underneath it:
   /shops/night-bar/ arrived with its heading at 38px under a 63px header. */
body.demo-shop [id] {
  scroll-margin-top: calc(var(--stick-h, 190px) + 10px);
}

.demo-shop {
  --demo-max: 920px;
  font-family: "Sarabun", system-ui, sans-serif;
  background: var(--shop-bg, #0f1419);
  color: var(--shop-text, #f5efe6);
  line-height: 1.45;
}

.demo-shop .shop-identity-wrap {
  display: block;
  position: sticky;
  top: var(--stick-identity, calc(var(--platform-main-h, 63px) + var(--shopnav-h, 44px)));
  z-index: var(--z-shop-skin, 20);
  background: linear-gradient(180deg, #f5efe6 0%, rgba(245, 239, 230, 0.35) 100%);
  border-bottom: 2px solid rgba(13, 92, 99, 0.2);
}

.demo-shop .shop-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--demo-max);
  margin: 0 auto;
  padding: 10px 14px;
  border-top: 3px solid #0d5c63;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(135deg, var(--shop-surface, #1a2228) 0%, var(--shop-bg, #0f1419) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.demo-shop .shop-identity__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.demo-shop .shop-identity__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.demo-shop .shop-identity__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--shop-accent-light, var(--shop-accent, #7fd4dc));
}

.demo-shop .shop-identity__tag {
  color: rgba(245, 239, 230, 0.72);
}

.demo-shop__main {
  width: 100%;
  max-width: var(--demo-max);
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

.demo-preview-ribbon {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(90deg, rgba(232, 93, 76, 0.14), rgba(13, 92, 99, 0.12));
  border-bottom: 1px solid rgba(232, 93, 76, 0.35);
  color: var(--shop-text, #f5efe6);
}

.demo-available {
  width: 100%;
  margin: 0 0 4px;
  padding: 14px 16px;
  text-align: center;
  border-radius: 0 0 16px 16px;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(13, 92, 99, 0.2), rgba(232, 93, 76, 0.12));
  border: 1px solid rgba(13, 92, 99, 0.25);
  border-top: 0;
}

.demo-available__pill {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--hf-coral, #e85d4c);
  color: #fff;
}

.demo-available p {
  font-size: 0.88rem;
  color: rgba(245, 239, 230, 0.9);
  max-width: 42ch;
  margin: 0 auto;
}

.demo-live-nudge {
  margin: 0 1rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(42, 157, 143, 0.12);
  border: 1px solid rgba(42, 157, 143, 0.35);
  font-size: 0.95rem;
  font-weight: 600;
}
.demo-live-nudge a { text-decoration: underline; }

.demo-available a {
  color: var(--hf-teal-light, #7fd4dc);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-hero {
  width: 100%;
  margin: 0 auto;
  padding: 16px 0 8px;
}

.demo-hero__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.demo-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 20, 25, 0.65) 100%);
}

.demo-hero__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-hero__order {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--hf-coral, #e85d4c), #f0705a);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.92);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-hero__order:hover {
  transform: scale(1.02);
  box-shadow:
    0 8px 24px rgba(232, 93, 76, 0.45),
    0 0 0 2px #fff;
}

.demo-hero h1 {
  margin-top: 16px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.demo-hero .lead {
  margin-top: 8px;
  font-size: 0.92rem;
  color: rgba(245, 239, 230, 0.75);
  max-width: 48ch;
}

.demo-menu {
  width: 100%;
  margin: 0 auto;
  padding: 16px 0 24px;
}

.demo-menu h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--shop-accent-light, var(--shop-accent));
}

.demo-menu__note {
  font-size: 0.78rem;
  color: rgba(245, 239, 230, 0.55);
  margin-bottom: 14px;
}

.demo-dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.demo-dish {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-dish__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.15) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-dish__visual-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18% 12% 8%;
  opacity: 0.85;
  pointer-events: none;
}

.demo-dish__visual-icon {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.demo-dish__visual-hint {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(245, 239, 230, 0.45);
}

.demo-dish__body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-dish__name {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.demo-dish__price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--shop-accent-light, var(--shop-accent));
}

.demo-dish__add {
  margin-top: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--shop-accent, #0d5c63);
  color: #fff;
}

.demo-dish__add:hover {
  filter: brightness(1.08);
}

.demo-lamtete-star {
  width: 100%;
  max-width: var(--demo-max);
  margin: 0 auto 28px;
  padding: 16px 18px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(92, 26, 22, 0.95), rgba(20, 8, 6, 0.98));
  border: 2px solid rgba(201, 162, 74, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.demo-lamtete-star__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8cc72;
}

.demo-lamtete-star p {
  margin-top: 4px;
  font-size: 0.88rem;
  color: rgba(242, 228, 184, 0.88);
  max-width: 36ch;
}

.demo-lamtete-star .btn-live {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  color: #140806;
  background: linear-gradient(135deg, #e8cc72, #c9a24a);
  white-space: nowrap;
}

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  z-index: 50;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #fff;
  color: var(--hf-ink, #1c1814);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
  max-width: min(92vw, 360px);
  text-align: center;
}

.demo-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.demo-shop-foot {
  padding: 20px 18px 40px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(245, 239, 230, 0.55);
}

.demo-shop-foot a {
  color: var(--hf-teal-light, #7fd4dc);
  font-weight: 800;
}

/* phase3-demo-visuals: photo tiles + a11y (merged from delivery deltas) */
.demo-dish__visual--photo .demo-dish__visual-plate {
  padding: 0;
  opacity: 1;
  object-fit: cover;
}

.demo-dish__visual--photo .demo-dish__visual-icon,
.demo-dish__visual--photo .demo-dish__visual-hint {
  display: none;
}

.demo-shop .demo-dish__add {
  color: var(--shop-bg, #0b0710);
}

.demo-shop .demo-dish__add:hover {
  filter: brightness(0.94);
}

/* Retired: the shop-zone bar (shopnav.js) shows the category context now. Leaving this
   row inside the header made --platform-main-h 36px short on /shops/*, so the sticky bar
   slid under the header when the page scrolled. */
.platform-chrome__handoff {
  display: none;
  margin: 0;
  padding: 4px 14px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--hf-muted, #5e564e);
  border-top: 1px solid rgba(28, 24, 20, 0.06);
}

.platform-chrome__handoff-label {
  margin-right: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hf-teal, #0d5c63);
}
