/* ร้านเค้ก: โทนมินิมอล ครีม / ชมพูนู้ด / โกโก้ */
:root {
  --bg: #fbf8f4;
  --bg-soft: #f5efe8;
  --surface: #ffffff;
  --blush: #f3dfdc;
  --rose: #c98b8f;
  --rose-deep: #a8676d;
  --cocoa: #3d2f2a;
  --text: #4a3c36;
  --muted: #8b7d76;
  --line: #ebe3da;
  --ok: #5f8a6b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -24px rgba(61, 47, 42, .35);
  --serif: 'Noto Serif Thai', 'Cormorant Garamond', Georgia, serif;
  --latin: 'Cormorant Garamond', Georgia, serif;
  --sans: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hdr-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 16px/1.75 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--cocoa); line-height: 1.3; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cocoa); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-family: var(--latin); font-style: italic; font-size: 1.15rem; color: var(--rose-deep); letter-spacing: .02em; margin-bottom: 10px; }
.sec { padding: 104px 0; }
.sec-head { max-width: 620px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.sec-head > p:not(.eyebrow) { color: var(--muted); margin-top: 12px; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; max-width: none; }
.link { color: var(--rose-deep); text-decoration: none; font-weight: 500; white-space: nowrap; }
.link:hover { text-decoration: underline; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--cocoa); color: #fff; }
.btn-dark:hover { background: #2a201c; }
.btn-line { border-color: var(--cocoa); color: var(--cocoa); background: transparent; }
.btn-line:hover { background: var(--cocoa); color: #fff; }
.btn-light { background: var(--surface); color: var(--cocoa); border-color: var(--line); }
.btn-light:hover { border-color: var(--cocoa); }

/* แถบบน */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h); background: rgba(251, 248, 244, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(61, 47, 42, .4); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cocoa); margin-right: auto; }
.logo-mark { width: 32px; height: 32px; color: var(--rose-deep); }
.logo b { display: block; font: 500 1.3rem/1 var(--serif); }
.logo small { display: block; font: italic 500 1rem/1.1 var(--latin); color: var(--muted); letter-spacing: .06em; }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; text-decoration: none; font-size: .95rem; color: var(--text); padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rose-deep); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav a.is-current { color: var(--cocoa); }
.nav-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; position: relative; }
.nav-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cocoa); transition: transform .25s, top .25s; }
.nav-btn span:first-child { top: 17px; }
.nav-btn span:last-child { top: 25px; }
.nav-open .nav-btn span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-btn span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding: calc(var(--hdr-h) + 64px) 0 72px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 400 .9rem var(--sans); font-style: normal; color: var(--muted); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-open { color: var(--ok); }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(95, 138, 107, .15); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.18; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--rose-deep); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 30em; margin: 22px 0 32px; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; gap: 36px; list-style: none; padding: 32px 0 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.hero-facts b { display: block; font: 500 1.7rem/1.1 var(--latin); color: var(--cocoa); }
.hero-facts span { font-size: .85rem; color: var(--muted); }
.hero-art { position: relative; margin: 0; justify-self: end; width: min(100%, 460px); }
.arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5.2; background: var(--blush); box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::before { content: ''; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--rose); border-radius: 999px 999px var(--radius) var(--radius); z-index: -1; }
.hero-tag { position: absolute; left: -32px; bottom: 40px; background: var(--surface); padding: 14px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.hero-tag small { display: block; font-size: .78rem; color: var(--muted); }
.hero-tag b { font: italic 600 1.2rem var(--latin); color: var(--cocoa); }

/* แถบจุดเด่นเลื่อนเอง */
.strip { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.strip-in { display: flex; width: max-content; animation: slide 36s linear infinite; }
.strip-in span { padding: 18px 28px; font: italic 500 1.1rem var(--latin); color: var(--cocoa); white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.strip-in span::after { content: '✦'; font-size: .7rem; color: var(--rose); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* เมนู */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 400 .95rem var(--sans); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--cocoa); }
.chip.is-on { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.card { display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img img { transform: scale(1.05); }
.tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .92); color: var(--rose-deep); font-size: .78rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.card-body { padding: 18px 2px 0; display: flex; flex-direction: column; flex: 1; }
.card-en { font: italic 500 1rem var(--latin); color: var(--muted); }
.card h3 { font-size: 1.2rem; margin: 2px 0 6px; }
.card-desc { font-size: .92rem; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font: 500 1.1rem var(--sans); color: var(--cocoa); }
.price small { font-size: .82rem; color: var(--muted); font-weight: 400; }
.card-order { min-width: 64px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--cocoa);
  font-size: .88rem; font-weight: 500; text-decoration: none; color: var(--cocoa); transition: all .2s; }
.card-order:hover { background: var(--cocoa); color: #fff; }

/* เค้กวันพิเศษ */
.custom { background: var(--bg-soft); }
.custom-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.custom-art { position: sticky; top: calc(var(--hdr-h) + 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.custom-art img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; border-radius: var(--radius); }
.c1 { border-radius: 999px 999px var(--radius) var(--radius) !important; }
.c2 { margin-top: 64px; }
.custom-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.custom-text > p:not(.eyebrow) { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rose); color: var(--rose-deep);
  display: grid; place-items: center; font: 500 1.05rem var(--latin); }
.steps b { display: block; font-weight: 500; color: var(--cocoa); }
.steps span { font-size: .88rem; color: var(--muted); }

.order { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.order fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.order legend { font-weight: 500; color: var(--cocoa); margin-bottom: 10px; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.size input { position: absolute; opacity: 0; }
.size span { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: all .2s; }
.size b { font-weight: 500; color: var(--cocoa); }
.size small { font-size: .8rem; color: var(--muted); }
.size em { font-style: normal; font-size: .9rem; color: var(--rose-deep); margin-top: 2px; }
.size input:checked + span { border-color: var(--cocoa); background: var(--bg); box-shadow: inset 0 0 0 1px var(--cocoa); }
.size input:focus-visible + span { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: .9rem; font-weight: 500; color: var(--cocoa); margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  font: 400 1rem var(--sans); color: var(--text); appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b7d76' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--blush); }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; margin-bottom: 18px; }
.check input { width: 18px; height: 18px; accent-color: var(--cocoa); }
.order-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin-bottom: 16px; border-top: 1px dashed var(--line); }
.order-sum span { color: var(--muted); }
.order-sum b { font: 500 1.8rem var(--latin); color: var(--cocoa); }
.form-msg { color: #b4474f; font-size: .9rem; margin-bottom: 12px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* เรื่องของเรา */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story-img img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius); }
.story-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 18px; }
.story-text > p:not(.eyebrow) { color: var(--muted); }
.values { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.values li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.values b { font-weight: 500; color: var(--cocoa); }
.values span { color: var(--muted); font-size: .95rem; }

/* รีวิว */
.reviews { background: var(--surface); border-block: 1px solid var(--line); }
.reviews .sec-head { text-align: center; margin-inline: auto; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: flex; flex-direction: column; }
.stars { color: var(--rose); letter-spacing: 3px; margin-bottom: 14px; }
.quote blockquote { margin: 0 0 22px; font: 400 1.05rem/1.8 var(--serif); color: var(--cocoa); flex: 1; }
.quote figcaption b { display: block; font-weight: 500; color: var(--cocoa); }
.quote figcaption span { font-size: .85rem; color: var(--muted); }

/* แกลเลอรี */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery figure { margin: 0; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.06); }

/* หน้าร้าน */
.visit { padding-top: 0; }
.visit-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: stretch; }
.visit-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.addr { color: var(--muted); margin-bottom: 24px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--cocoa); font-weight: 500; }
.hours small { font-size: .75rem; color: var(--rose-deep); margin-left: 6px; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.contact { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; background: var(--surface); transition: border-color .2s; }
.contact:hover { border-color: var(--cocoa); }
.contact svg { width: 18px; height: 18px; color: var(--rose-deep); }
.map-box { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.map { position: absolute; inset: 0; filter: grayscale(.55) sepia(.12); }
.map-go { position: absolute; right: 16px; bottom: 16px; z-index: 500; box-shadow: var(--shadow); }
.pin span { display: block; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--rose-deep); transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(61, 47, 42, .35); }
.pin span::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .88rem; color: var(--muted); }
.ftr-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.logo-text { font: 500 1.2rem var(--serif); color: var(--cocoa); }
.logo-text i { font: italic 500 1.05rem var(--latin); color: var(--muted); }
.ftr a { color: var(--muted); text-decoration: none; }
.ftr a:hover { color: var(--cocoa); }

/* ปุ่มลอยมือถือ */
.float-cta { display: none; }

/* ค่อยๆ ปรากฏ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ----- จอเล็ก ----- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .custom-in, .story { gap: 48px; }
}
@media (max-width: 880px) {
  .nav-btn { display: block; }
  .hdr-cta { display: none; }
  .nav { position: fixed; top: var(--hdr-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(61, 47, 42, .4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: calc(var(--hdr-h) + 36px); }
  .hero-art { justify-self: center; width: min(100%, 380px); }
  .custom-in, .story, .visit-in { grid-template-columns: 1fr; }
  .custom-art { position: static; max-width: 520px; }
  .story-img { order: -1; }
  .quotes { grid-template-columns: 1fr; }
  .sec { padding: 80px 0; }
  .visit { padding-top: 0; }
  .float-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; border-radius: 999px; background: var(--cocoa); color: #fff; text-decoration: none; font-weight: 500; box-shadow: 0 14px 30px -12px rgba(61, 47, 42, .6); }
  .float-cta svg { width: 20px; height: 20px; color: #9fe3a8; }
  .ftr { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .cards { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .card h3 { font-size: 1.05rem; }
  .card-desc { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .sizes { gap: 8px; }
  .order { padding: 22px 18px; }
  .values li { grid-template-columns: 1fr; gap: 2px; }
  .hero-facts { gap: 22px; }
  .hero-facts b { font-size: 1.45rem; }
  .hero-tag { left: -8px; bottom: 24px; padding: 10px 14px; }
  .hero-art::before { inset: 16px -12px -14px 14px; }
  .row-head { flex-direction: column; align-items: start; }
  .map-box { min-height: 340px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media (max-width: 360px) {
  .size span { padding: 12px 4px; }
  .size small { font-size: .72rem; }
  .hero-acts .btn { flex: 1; padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .strip-in { flex-wrap: wrap; width: auto; justify-content: center; }
}
