/* HuahinFood — styles added by the intro-version rework pass (Nov 2026).
   Kept out of platform.css so the shared shell stays untouched. Everything here belongs
   to a block that exists on more than one page, or to the shared enquiry form. */

/* honeypot — hidden from view, still in DOM for bots */
.enq-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- shared enquiry: the two doors and the copyable address ---------- */
.enq__doors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.enq__door {
  flex: 1 1 180px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(13, 92, 99, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: #0d5c63;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.enq__door:hover {
  border-color: rgba(232, 93, 76, 0.5);
}

.enq__door.is-on {
  background: #0d5c63;
  border-color: #0d5c63;
  color: #fff;
}

.enq__copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.86rem;
  color: #5e564e;
}

.enq__addr {
  border: 1px dashed rgba(13, 92, 99, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #0d5c63;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
}

/* the form is rendered by enquiry.js, so give the language spans room */
.cform__field .cform__lab {
  display: block;
  margin-bottom: 4px;
}

/* ---------- the desk: four human steps, replacing internal state names ---------- */
.tower-steps {
  counter-reset: hhstep;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tower-steps li {
  position: relative;
  counter-increment: hhstep;
  padding: 10px 12px 10px 40px;
  border-radius: 12px;
  border: 1px solid rgba(13, 92, 99, 0.14);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
  color: #1c1814;
}

.tower-steps li::before {
  content: counter(hhstep);
  position: absolute;
  left: 12px;
  top: 50%;
  translate: 0 -50%;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #0d5c63;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ---------- storefront: facts that must not scroll away ---------- */
.cart-bar__facts {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  color: #e8d9b4;
}

.service-chip a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- owner page: the closing band (form + the three answers) ---------- */
.fo-promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.fo-promise {
  border: 1px solid rgba(13, 92, 99, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
}

.fo-promise__h {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0d5c63;
  line-height: 1.35;
}

.fo-promise p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #463f38;
}

/* .cform was written for the dark band at home; the owner band is cream, so the
   same form would render cream-on-cream there */
.fo-band--form .cform__lab {
  color: #0d5c63;
}

.fo-band--form .cform__in {
  background: #fff;
  color: #1c1814;
  border: 1px solid rgba(13, 92, 99, 0.28);
}

.fo-band--form .cform__in::placeholder {
  color: #7d746b;
}

.fo-band--form .cform__tiny,
.fo-band--form .cform__status {
  color: #463f38;
}

.fo-band--form .cform__link {
  color: #b8402f;
}

.fo-band--form .enq__door {
  background: #fff;
  color: #0d5c63;
}

@media (max-width: 719px) {
  .cart-bar__facts {
    flex: 1 1 100%;
    order: 3;
  }
}

@media (max-width: 560px) {
  .enq__door {
    flex: 1 1 100%;
  }
}

/* ---------- shop zone: sticky platform bar, one line, under the header ----------
   Every shop page gets the same control in the same place: a dark teal bar fixed under the
   platform header, so navigation never depends on the shop's own skin or page length. The
   panel drops over the storefront (positioned) instead of pushing the page down.
   Colours are the platform tokens, and text is light on dark so it holds up over any theme. */
.shopnav {
  position: sticky;
  top: var(--stick-nav, var(--platform-main-h, 63px));
  z-index: var(--z-shopnav, 40);
  background: #0d5c63;
  border-bottom: 1px solid rgba(9, 52, 56, 0.6);
}

.shopnav__bar {
  display: flex;
  align-items: center;
  min-height: var(--shopnav-h, 44px);
}

.shopnav__in {
  position: relative;
  align-self: stretch;
  display: flex;
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 18px;
  padding-left: 18px;
}



.shopnav__sum {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 2px 4px;
  color: #f5efe6;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.shopnav__sum::-webkit-details-marker { display: none; }

.shopnav__sum::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #9fd8d1;
  border-bottom: 2px solid #9fd8d1;
  transform: rotate(45deg);
}

.shopnav__pick[open] .shopnav__sum::after { transform: rotate(-135deg); }

.shopnav__sum-label { opacity: 0.92; }

.shopnav__sum-label--short { display: none; }

.shopnav__ptitle {
  margin: 0 0 6px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(159, 216, 209, 0.22);
  color: #eaf7f4;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.shopnav__sum-sep { opacity: 0.55; }

.shopnav__sum-here { color: #fff; }

.shopnav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  max-width: min(760px, calc(100vw - 36px));
  min-width: 268px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  padding: 12px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #0b4f56;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 2px 16px;
}

.shopnav__ghead {
  margin: 8px 0 2px;
  color: #a8cfc9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shopnav__glist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shopnav__glink {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  color: #f5efe6;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.shopnav__glink:hover { background: rgba(255, 255, 255, 0.12); }

.shopnav__glink.is-current {
  border-left: 3px solid #9fd8d1;
  background: #083f45;
  color: #fff;
}

.shopnav__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.shopnav__f-link {
  color: #9fd8d1;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.shopnav__f-link:hover { text-decoration: underline; }

/* the no-JS fallback link inside the host */
.shopnav__all {
  display: inline-flex;
  align-items: center;
  min-height: var(--shopnav-h, 44px);
  padding-right: 18px;
  padding-left: 18px;
  color: #f5efe6;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 560px) {
  .shopnav__panel { grid-template-columns: 1fr; }
}

/* Store-row links (this shop's own menu, its other shelf). They sit on the shop's identity
   bar, whose colour differs per store, so they inherit the bar's own text colour and only add
   shape and a hover edge. */
/* Store-row pills carry their OWN opaque surface instead of inheriting the bar's text colour.
   Measured first: inheriting looked elegant and was wrong twice. On /lam-tete/souvenirs/ the bar's
   own text colour computes to rgb(28,24,20) sitting on a teal bar (1.98:1), and on all six demo
   kitchens an <a> with no colour of its own falls back to the browser's default link blue,
   rgb(0,0,238), on a dark bar (1.7-1.9:1). A dark plate with a cream label measures the same on
   every skin, reuses the colour the platform already uses for a selected item, and means a new
   restaurant page inherits nothing risky. */
.shop-identity__link {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid rgba(249, 244, 235, 0.45);
  border-radius: 999px;
  background: #083f45;
  color: #f9f4eb;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  opacity: 0.94;
}

.shop-identity__link:hover { opacity: 1; }

/* The wrapper markup actually uses is .shop-identity__actions; .shop-identity__links was written
   but never applied, so both names are matched here and every store row is laid out by one rule. */
.shop-identity__actions,
.shop-identity__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

@media (max-width: 640px) {
  body.huahinfood-shop .shopnav__sum-label--full {
    display: none;
  }

  body.huahinfood-shop .shopnav__sum-label--short {
    display: inline;
  }

  body.huahinfood-shop .shopnav__sum-here {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.huahinfood-shop .shopnav__in {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.huahinfood-shop .shop-identity {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 8px 12px;
    gap: 8px;
  }

  body.huahinfood-shop .shop-identity__tag {
    display: none;
  }

  body.huahinfood-shop .shop-identity__logo {
    width: 72px;
  }

  body.huahinfood-shop .shop-identity__actions,
  body.huahinfood-shop .shop-identity__links {
    width: 100%;
    justify-content: flex-start;
  }

  body.huahinfood-shop .platform-chrome-bottom {
    display: none;
  }
}

@media (max-width: 380px) {
  body.huahinfood-shop .shop-identity__logo {
    display: none;
  }

  body.huahinfood-shop .shop-identity__name {
    font-size: 1.05rem;
  }
}

/* Anchor landings: without this the sticky header sits on top of the section heading, so a
   link to #categories or #how-it-works looks like it went to the wrong place.
   --site-header-h is measured at runtime by header-height.js, because the header has no single
   height: measured at 1440 / 1000 / 900 / 760 / 700 / 390 / 320 px it renders
   69 / 69 / 91 / 91 / 111 / 149 / 239 px. The literals are only the fallback for the moment
   before that script runs, and for a visitor with JavaScript off — a desktop tier and a phone
   tier, rather than one number that is wrong on one of them. */
section[id],
div[id] {
  scroll-margin-top: calc(var(--site-header-h, 69px) + 14px);
}

@media (max-width: 999px) {
  section[id],
  div[id] {
    scroll-margin-top: calc(var(--site-header-h, 149px) + 14px);
  }
}


/* ---- one basket, several kitchens (home band, 2026-11-23) ----
   Sits directly under the shop grid: the only place the site explains that the cart is
   shared. Platform palette, so it reads as HuahinFood's rule rather than a shop's ad. */
.basket-band{
  background: var(--hf-cream, #fffdf8);
  border: 1px solid var(--hf-line, rgba(13,92,99,.14));
  border-radius: 18px;
  padding: 22px 24px;
}
.basket-band__eyebrow{
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .10em; text-transform: uppercase;
  color: var(--hf-teal, #0d5c63);
}
.basket-band__dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hf-coral, #e85d4c);
}
.basket-band__title{
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  color: var(--hf-ink, #1c1814);
}
.basket-band__lead{
  margin: 0;
  max-width: 62ch;
  font-size: .95rem; line-height: 1.6;
  color: var(--hf-muted, #5e564e);
}
@media (max-width: 520px){
  .basket-band{padding: 18px 16px}
  .basket-band__lead{font-size: .9rem}
}


/* ---- partner-shop identity band (2026-11-23) ----
   The generator emits the same structure as the flagship storefront, but a partner page has no
   hand-written identity CSS of its own, so the frame lives here, scoped to .partner-shop: the
   flagship and the six demos keep their own bands untouched. Colour is inherited from the shop
   skin; only the layout is shared. */
body.partner-shop .shop-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
body.partner-shop .shop-identity__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
body.partner-shop .shop-identity__logo {
  flex: none;
  border-radius: 10px;
}
body.partner-shop .shop-identity__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.partner-shop .shop-identity__name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}
body.partner-shop .shop-identity__tag {
  font-size: 0.82rem;
  opacity: 0.72;
}
body.partner-shop .shop-identity__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 640px) {
  body.partner-shop .shop-identity { padding: 10px 14px; gap: 10px; }
  body.partner-shop .shop-identity__actions { margin-left: 0; width: 100%; }
}
