/* HuahinFood in-store laminated QR — partner table card */
:root {
  --hf-ink: #1c1814;
  --hf-sand: #f5efe6;
  --hf-teal: #0d5c63;
  --hf-teal-light: #14808a;
  --hf-coral: #e85d4c;
  --hf-muted: #5e564e;
  --card-w: 92mm;
  --card-h: 128mm;
}

.qr-page {
  font-family: "Sarabun", system-ui, sans-serif;
  color: var(--hf-ink);
  background: var(--hf-sand);
  min-height: 100vh;
}

.qr-page__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(13, 92, 99, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

.qr-page__top a {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--hf-teal);
  text-decoration: none;
}

.qr-page__top a:hover {
  text-decoration: underline;
}

.qr-page__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.qr-page__head h1 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
}

.qr-page__head .lead {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--hf-muted);
  max-width: 58ch;
  line-height: 1.5;
}

.qr-page__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hf-teal);
}

.qr-page__head h1 em {
  font-style: normal;
  color: var(--hf-teal);
}

.qr-flow {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(13, 92, 99, 0.12);
  box-shadow: 0 8px 22px rgba(28, 24, 20, 0.05);
}

.qr-flow__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hf-muted);
}

.qr-flow__steps {
  margin: 12px 0 0;
  padding: 0 0 0 1.15rem;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--hf-muted);
}

.qr-flow__steps strong { color: var(--hf-ink); }

.qr-showcase {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .qr-showcase {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.qr-mock-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 12px 32px;
  background: linear-gradient(165deg, rgba(13, 92, 99, 0.08) 0%, rgba(232, 93, 76, 0.06) 100%);
  border-radius: 24px;
  border: 1px solid rgba(13, 92, 99, 0.12);
}

.qr-mock-wrap__label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hf-teal);
  margin-bottom: 16px;
}

.qr-mock-stage {
  perspective: 900px;
}

.qr-mock-tilt {
  transform: rotateY(-6deg) rotateX(4deg);
  filter: drop-shadow(0 28px 40px rgba(28, 24, 20, 0.22));
}

.qr-laminate {
  position: relative;
  width: min(100%, 280px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #e8e4dc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 0 rgba(0, 0, 0, 0.06);
}

.qr-laminate::after {
  content: "";
  position: absolute;
  inset: 8px 12px auto;
  height: 42%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 100%);
  pointer-events: none;
}

.hf-table-card {
  position: relative;
  width: 100%;
  aspect-ratio: 92 / 128;
  max-width: var(--card-w);
  margin: 0 auto;
  padding: 14px 14px 12px;
  box-sizing: border-box;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #faf6ef 100%);
  border: 2px solid rgba(13, 92, 99, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hf-table-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--hf-teal), var(--hf-teal-light), var(--hf-coral));
}

.hf-table-card__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.hf-table-card__brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.hf-table-card__platform {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: left;
}

.hf-table-card__platform .food {
  color: var(--hf-coral);
}

.hf-table-card__platform .tld {
  font-size: 0.85em;
  color: var(--hf-teal);
}

.hf-table-card__hook {
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--hf-teal);
}

.hf-table-card__shop {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hf-ink);
  line-height: 1.2;
}

.hf-table-card__shop-sub {
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--hf-muted);
}

.hf-table-card__qr {
  margin: 10px auto 8px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid rgba(13, 92, 99, 0.15);
  box-shadow: 0 4px 14px rgba(13, 92, 99, 0.1);
}

.hf-table-card__qr img {
  display: block;
  width: 120px;
  height: 120px;
}

.hf-table-card__scan {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hf-coral);
}

.hf-table-card__url {
  margin-top: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--hf-muted);
  word-break: break-all;
}

.hf-table-card__foot {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(94, 86, 78, 0.85);
  line-height: 1.35;
  border-top: 1px dashed rgba(13, 92, 99, 0.2);
  width: 100%;
}

.qr-copy-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-copy-block {
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(13, 92, 99, 0.1);
  box-shadow: 0 8px 24px rgba(28, 24, 20, 0.05);
}

.qr-copy-block h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hf-teal);
  margin-bottom: 8px;
}

.qr-copy-block p {
  font-size: 0.88rem;
  color: var(--hf-muted);
  line-height: 1.5;
}

.qr-copy-block ul {
  margin-top: 10px;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--hf-muted);
  line-height: 1.45;
}

.qr-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qr-actions a {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.qr-actions .btn-primary {
  background: linear-gradient(135deg, var(--hf-coral), #d94a3a);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 93, 76, 0.3);
}

.qr-actions .btn-ghost {
  background: #fff;
  color: var(--hf-teal);
  border: 2px solid rgba(13, 92, 99, 0.2);
}

.qr-actions--center { justify-content: center; }

.qr-copy-block--muted {
  background: rgba(255, 255, 255, 0.72);
  border-style: dashed;
}

.qr-sample-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(13, 92, 99, 0.08);
  border: 1px solid rgba(13, 92, 99, 0.15);
  font-size: 0.82rem;
  color: var(--hf-ink);
  line-height: 1.45;
}

/* Print: Lam tete partner card only */
@media print {
  body.print-card-only * {
    visibility: hidden;
  }

  body.print-card-only .hf-table-card,
  body.print-card-only .hf-table-card * {
    visibility: visible;
  }

  body.print-card-only .hf-table-card {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--card-w);
    height: var(--card-h);
    max-width: none;
    aspect-ratio: auto;
    page-break-inside: avoid;
  }

  @page {
    size: 92mm 128mm;
    margin: 0;
  }
}
