/* ── Craft — menu-board anatomy ─────────────────────────────────────────────
   Cafés, bakeries, craft retail. Layout devices: three-zone centered nav,
   menu-board hero with polaroid photo on a rail, stitched ribbon ticker,
   zigzag shelf of products with swinging price tags. */

.theme-craft {
  --ink: #2d1f16;
  --ink-soft: #52403a;
  --muted: #7d6a60;
  --line: #e5d9cc;
  --bg: #f7f1e8;
  --card: #fffdf9;
  --radius: 14px;
  font-family: 'IBM Plex Sans Thai', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.65;
}

.theme-craft h1, .theme-craft h2, .theme-craft .brand, .theme-craft .post-title,
.theme-craft .product-name, .theme-craft .page-head h1, .theme-craft .section-head h2 {
  font-family: 'Chonburi', 'IBM Plex Sans Thai', serif;
  font-weight: 400;
  letter-spacing: 0;
}

/* ── Nav: three-zone menu header — links / brand centered / actions ── */
.theme-craft .nav { background: color-mix(in srgb, var(--bg) 90%, white); border-bottom: 3px double var(--ink); }
.theme-craft .nav-inner {
  height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.theme-craft .brand { justify-self: center; font-size: 1.3rem; }
.theme-craft .brand-logo { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.theme-craft .nav-links { justify-content: flex-start; flex: initial; }
.theme-craft .nav-actions { justify-content: flex-end; }
.theme-craft .nav-links a { font-weight: 500; }
.theme-craft .nav-links a.active { border-bottom-color: var(--brand); }
@media (max-width: 900px) {
  .theme-craft .nav-inner { grid-template-columns: auto 1fr; }
  .theme-craft .brand { justify-self: start; grid-column: 1; }
  .theme-craft .nav-actions { grid-column: 2; }
  .theme-craft .nav-links { display: none; }
}

/* ── Hero: the menu board — photo hangs off a rail on the right ── */
.theme-craft .hero { padding: 76px 0 40px; text-align: left; }
.theme-craft .hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 280px at 85% 10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
}
.theme-craft .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
.theme-craft .hero h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.3; }
.theme-craft .eyebrow {
  background: var(--card); border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, var(--line));
  color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-size: 0.9rem;
  font-weight: 600; border-radius: 999px; padding: 6px 16px;
}
/* polaroid on a clip rail */
.theme-craft .hero-visual { display: block; position: relative; padding: 14px 14px 44px; background: var(--card); border: 1.5px solid var(--line); border-bottom: 4px solid var(--line); border-radius: 6px; transform: rotate(2deg); box-shadow: 0 16px 36px rgb(45 31 22 / 16%); }
.theme-craft .hero-visual::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 60px; height: 22px;
  transform: translateX(-50%); background: var(--ink); border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}
.theme-craft .hero-visual img { aspect-ratio: 1 / 1; border-radius: 3px; animation: ss-polaroid 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.2) 0.1s both; }
@keyframes ss-polaroid { from { opacity: 0; transform: translateY(-16px) rotate(-1deg); } to { opacity: 1; transform: none; } }

/* ── Stitched ribbon ticker ── */
.theme-craft .ticker {
  display: block; margin: 18px 0 30px;
  border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line);
}
.theme-craft .ticker-item { color: var(--ink-soft); font-size: 0.92rem; padding: 10px 0; }
.theme-craft .ticker-track { animation: ss-marquee-craft 34s linear infinite; }
@keyframes ss-marquee-craft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Product shelf: zigzag two-wide, tags swing ── */
.theme-craft .grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; align-items: start; }
.theme-craft .grid.cols-3 .product-card:nth-child(4n + 2) { margin-top: 34px; }
.theme-craft .product-card { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.theme-craft .product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgb(45 31 22 / 12%); }
.theme-craft .product-media { border-radius: 0; aspect-ratio: 1 / 1; }
.theme-craft .product-body { padding: 16px 16px 18px; }
.theme-craft .price {
  display: inline-block; background: var(--card); border: 1.5px solid var(--ink);
  border-radius: 6px; padding: 3px 10px; transform: rotate(-2deg); font-size: 0.98rem;
  font-weight: 700; box-shadow: 2px 2px 0 rgb(45 31 22 / 14%);
  font-family: 'IBM Plex Sans Thai', sans-serif;
  transform-origin: 18px -6px;
}
.theme-craft .product-card:hover .price { animation: ss-swing 0.65s cubic-bezier(0.3, 1.6, 0.4, 1); }
@keyframes ss-swing { 0% { transform: rotate(-2deg); } 35% { transform: rotate(5deg); } 70% { transform: rotate(-3deg); } 100% { transform: rotate(-2deg); } }
.theme-craft .price-lg { font-size: 1.3rem; padding: 6px 14px; }
.theme-craft .price-strike { text-decoration-color: var(--muted); }
@media (max-width: 900px) { .theme-craft .grid.cols-3 .product-card:nth-child(4n + 2) { margin-top: 0; } }

/* ── Noticeboard posts ── */
.theme-craft .post-row {
  border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 12px;
  background: var(--card); position: relative; padding: 22px 24px;
}
.theme-craft .post-row::before {
  content: ""; position: absolute; top: -6px; left: 28px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brand); border: 2px solid var(--card);
  box-shadow: 0 2px 4px rgb(45 31 22 / 25%);
}
.theme-craft .post-row:hover { border-color: var(--brand); }
.theme-craft .post-title { font-size: 1.15rem; }

/* ── Buttons: printed on kraft ── */
.theme-craft .btn {
  border-radius: 12px; font-weight: 700; border: 2px solid var(--ink);
  background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.theme-craft .btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.theme-craft .btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.theme-craft .btn-primary { background: var(--brand); color: white; }
.theme-craft .mobile-cart-bar { background: var(--ink); border: 2px solid var(--brand); }

.theme-craft .section-head h2 { font-size: 1.55rem; }
.theme-craft .page-head h1 { font-size: 2.1rem; }
.theme-craft .prose { font-size: 1.04rem; }
.theme-craft .prose blockquote { border-left: 4px solid var(--brand); background: var(--card); border-radius: 0 10px 10px 0; }
.theme-craft .pill { border-radius: 999px; font-weight: 600; }
.theme-craft .footer { background: var(--ink); margin-top: 30px; }
.theme-craft .footer-note { border-top: 1px solid rgb(255 255 255 / 12%); }
