/* ===== Lavie Ceramics ===== */
:root {
  --bg: #f6f1ea;
  --paper: #fbf8f3;
  --sand: #eadfce;
  --kraft: #ecdfca;
  --line: #e2d7c7;
  --ink: #2b2420;
  --muted: #6f6259;
  --glaze: #2f4a6d;        /* Bát Tràng cobalt */
  --glaze-dark: #22374f;
  --clay: #b0603a;         /* terracotta accent */
  --gold: #a8823c;
  --gold-light: #d4b06a;
  --charcoal: #404040;     /* logo background */
  --logo-gold: #dfc78a;    /* logo gold, for dark backgrounds */
  --logo-ink: #8d6e30;     /* deeper logo gold, for light backgrounds */
  --open: #3f9a63;
  --closed: #c0573a;
  --fest-a: #c94f6d;       /* festival colours (set by the script) */
  --fest-b: #f6c1cc;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(43, 36, 32, .05), 0 12px 32px rgba(43, 36, 32, .08);
  --shadow-lg: 0 24px 60px rgba(28, 22, 18, .22);
  --header-h: 72px;
  /* Paper-and-clay texture: fine grain plus sparse iron speckles */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .36  0 0 0 0 .27  0 0 0 0 .19  0 0 0 0.16 -0.05'/%3E%3C/filter%3E%3Cfilter id='s' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='1' stitchTiles='stitch' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .25  0 0 0 0 .18  0 0 0 0 .13  0 0 0 14 -10.9'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url%28%23g%29'/%3E%3Crect width='260' height='260' filter='url%28%23s%29' opacity='0.32'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg) var(--grain);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
em { font-style: italic; }

.container { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  margin-bottom: 18px;
  font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay);
}
.nowrap { white-space: nowrap; }

/* ===== Buttons & links ===== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-dark { background: var(--glaze); color: #fff; }
.btn-dark:hover { background: var(--glaze-dark); box-shadow: 0 10px 24px -12px rgba(34, 55, 79, .7); }
.btn-ghost { border-color: rgba(43, 36, 32, .35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--glaze); }
.btn-light:hover { background: #fff; }
.btn-gold { background: var(--logo-gold); color: #2b2420; }
.btn-gold:hover { background: #ecd8a3; box-shadow: 0 12px 28px -12px rgba(223, 199, 138, .8); }
.btn-glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.btn-small { padding: 10px 18px; font-size: .85rem; }

.link {
  display: inline-flex; margin-top: 14px; padding-bottom: 2px;
  font-weight: 500; font-size: .9rem; color: var(--glaze);
  text-decoration: none; border-bottom: 1px solid rgba(47, 74, 109, .35);
  transition: border-color .2s;
}
.link:hover { border-color: currentColor; }
.link-light { color: #f3efe8; border-color: rgba(243, 239, 232, .4); margin-top: 0; }

.icon-btn {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0;
  border: 1px solid currentColor; border-radius: 50%; background: none; cursor: pointer;
  transition: transform .2s, background-color .2s;
}
.icon-btn:hover { transform: rotate(90deg); }
.icon-btn svg { width: 22px; height: 22px; }

/* Ripple when a button is pressed */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .28; transform: scale(0);
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ===== Logo: the shop's own La (vie) Ceramics logo, drawn as a vector ===== */
.logo { display: inline-flex; align-items: center; color: var(--logo-ink); text-decoration: none; }
.logo-svg { display: block; width: auto; height: 50px; aspect-ratio: 211.5 / 62.72; overflow: visible; }
.logo-gold { color: var(--logo-gold); }
.site-header .logo-svg { height: 56px; }
.site-footer .logo-svg { height: 62px; }
@media (max-width: 480px) { .site-header .logo-svg { height: 46px; } }

/* ===== Page veil: intro and page-to-page transitions (blinking ceramic photos) ===== */
.veil {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-content: center; justify-items: center; gap: 26px;
  background: var(--charcoal);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s;
}
html.veil-in .veil { opacity: 1; visibility: visible; transition: opacity .28s ease; }
.veil-stage { position: relative; width: 150px; height: 150px; }
.veil-pics { position: absolute; inset: 12px; overflow: hidden; border-radius: 50%; background: #333; animation: veil-pulse 1.2s ease-in-out infinite; }
.veil-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: veil-blink 1.2s steps(1, end) infinite; }
.veil-pics img:nth-child(2) { animation-delay: .2s; }
.veil-pics img:nth-child(3) { animation-delay: .4s; }
.veil-pics img:nth-child(4) { animation-delay: .6s; }
.veil-pics img:nth-child(5) { animation-delay: .8s; }
.veil-pics img:nth-child(6) { animation-delay: 1s; }
.veil-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 1.8s linear infinite; }
.veil-ring circle { fill: none; stroke: var(--logo-gold); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 250 102; }
.veil-logo { width: min(240px, 60vw); height: auto; color: var(--logo-gold); opacity: .95; }
html.intro .veil-logo { animation: fade-in .8s ease both; }
@keyframes veil-blink { 0% { opacity: 1; } 16.6% { opacity: 0; } 100% { opacity: 0; } }
@keyframes veil-pulse { 50% { transform: scale(1.06); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

/* ===== Top bar ===== */
.topbar { background: var(--ink); color: rgba(243, 239, 232, .85); font-size: .78rem; }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.topbar-fest {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  color: #fff; text-decoration: none; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-fest i { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--fest-b); box-shadow: 0 0 0 3px var(--fest-a); }
.topbar-fest:hover { color: var(--logo-gold); }
.topbar-fest[hidden] { display: none; }
.topbar-fest .short { display: none; }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a { text-decoration: none; }
.topbar-links a:hover { color: #fff; }
@media (max-width: 720px) {
  .topbar-fest .long { display: none; }
  .topbar-fest .short { display: inline; }
  .topbar-inner { justify-content: space-between; }
  .topbar-links { display: none; }
}

/* Live open / closed status */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.status i { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-open i { background: var(--open); animation: pulse 2.2s infinite; }
.status.is-closed i { background: var(--closed); }
.status-pill { padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .9rem; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 154, 99, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(63, 154, 99, 0); } }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 234, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.nav { display: flex; gap: 24px; }
.nav a { position: relative; text-decoration: none; font-size: .92rem; color: var(--muted); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--clay); transform: scaleX(0); transition: transform .25s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  border: 0; background: none; cursor: pointer;
  padding: 6px 10px; border-radius: 999px;
  font: 500 .74rem/1 var(--sans); letter-spacing: .06em; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-light { display: inline-flex; margin-top: 28px; border-color: rgba(243, 239, 232, .25); }
.lang-light button { color: rgba(243, 239, 232, .7); }
.lang-light button[aria-pressed="true"] { background: #f3efe8; color: var(--glaze-dark); }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 16px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer;
  font: 500 .85rem var(--sans); transition: border-color .2s;
}
.menu-btn:hover { border-color: var(--ink); }
.menu-lines { display: grid; gap: 5px; }
.menu-lines i { display: block; width: 16px; height: 1.5px; background: currentColor; }

@media (max-width: 1100px) {
  .nav, .hide-sm { display: none; }
  .menu-label { display: none; }
  .menu-btn { width: 42px; padding: 0; }
}

/* ===== Full-screen menu ===== */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto;
  background: var(--glaze-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='56'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 14C25-6 75-6 100 14S175 34 200 14'/%3E%3Cpath d='M0 42C25 62 75 62 100 42S175 22 200 42'/%3E%3C/g%3E%3C/svg%3E"); background-size: 200px 56px;
  color: #f3efe8;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.menu-overlay.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.menu-inner { min-height: 100%; padding-bottom: 48px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--header-h) + 38px); }
.menu-close { color: #f3efe8; border-color: rgba(243, 239, 232, .35); }
.menu-grid { display: grid; gap: 40px; margin-top: 8px; }
@media (min-width: 900px) { .menu-grid { grid-template-columns: 1.4fr 1fr; gap: 80px; margin-top: 24px; } }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px; padding: 8px 0;
  border-bottom: 1px solid rgba(243, 239, 232, .12); text-decoration: none;
  font: 500 clamp(1.8rem, 4.6vw, 2.9rem)/1.15 var(--serif); color: #f3efe8;
  opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s, color .2s, padding-left .25s;
}
.menu-overlay.open .menu-links a { opacity: 1; transform: none; }
.menu-links a:nth-child(2) { transition-delay: .04s; }
.menu-links a:nth-child(3) { transition-delay: .08s; }
.menu-links a:nth-child(4) { transition-delay: .12s; }
.menu-links a:nth-child(5) { transition-delay: .16s; }
.menu-links a:nth-child(6) { transition-delay: .2s; }
.menu-links a:nth-child(7) { transition-delay: .24s; }
.menu-links a:nth-child(8) { transition-delay: .28s; }
.menu-links a:hover { color: var(--gold-light); padding-left: 8px; }
.menu-links .num { font: 500 .78rem var(--sans); letter-spacing: .1em; color: var(--gold-light); }
.menu-info { font-size: .95rem; color: rgba(243, 239, 232, .78); }
.menu-info h4 { margin: 28px 0 10px; font: 500 .74rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.menu-info p + p { margin-top: 6px; }
.menu-info strong { font-weight: 500; color: #fff; }
.menu-info a { text-decoration: none; }
.menu-info .social { margin-top: 20px; }
.plate-menu { position: fixed; right: -240px; bottom: -240px; width: 680px; height: 680px; color: #fff; opacity: .06; }

/* Shared social icon row */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.social a:hover { transform: translateY(-2px); }
.social a svg { width: 20px; height: 20px; }
.social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.social-light a, .menu-info .social a { border-color: rgba(243, 239, 232, .3); color: #f3efe8; }
.social-light a:hover, .menu-info .social a:hover { background: #f3efe8; color: var(--glaze-dark); border-color: #f3efe8; }

/* ===== Decorative blue-and-white plate ===== */
.plate { max-width: none; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Front page: full-screen photo banner ===== */
.hero-full {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: max(560px, calc(100svh - 110px));
  background: #2a2420; color: #fbf6ee;
}
.hero-slides { position: absolute; inset: 0; z-index: -3; }
.hs {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 8s ease-out;
}
.hs.is-active { opacity: 1; transform: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(22, 18, 15, .62) 0%, rgba(22, 18, 15, .3) 45%, rgba(22, 18, 15, 0) 75%),
    linear-gradient(180deg, rgba(22, 18, 15, .15) 0%, rgba(22, 18, 15, .12) 35%, rgba(22, 18, 15, .8) 100%);
}
.hero-full-inner { width: 100%; padding-top: 140px; padding-bottom: 72px; }
.hero-full h1 { max-width: 12.5em; color: #fbf6ee; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-full h1 em { color: var(--logo-gold); }
.eyebrow-light { color: var(--logo-gold); }
.hero-lead { max-width: 36em; margin-top: 18px; font-size: 1.08rem; color: rgba(251, 246, 238, .88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-dots { display: flex; gap: 8px; margin-top: 36px; }
.hero-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .45); transition: width .3s, background-color .3s;
}
.hero-dots button[aria-current="true"] { width: 30px; background: var(--logo-gold); }
.fest-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 16px 7px 8px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: .86rem; font-weight: 500; text-decoration: none;
  animation: fade-in .8s ease both; transition: background-color .2s;
}
.fest-chip:hover { background: rgba(255, 255, 255, .24); }
.fest-chip[hidden] { display: none; }
.fest-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fest-a); color: #fff; }
.fest-dot svg { width: 14px; height: 14px; animation: spin 6s linear infinite; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0; z-index: 1;
  width: 26px; height: 40px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 700px) { .scroll-cue { display: none; } .hero-full-inner { padding-bottom: 56px; } }

/* Falling festival decoration */
.fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx i {
  position: absolute; top: 0; left: var(--x); width: var(--size); height: var(--size);
  opacity: var(--o, .85); animation: fx-fall var(--dur) linear var(--delay) infinite;
}
.fx i svg { width: 100%; height: 100%; animation: fx-sway var(--spin) ease-in-out infinite alternate; }
.fx.rise i { top: auto; bottom: 0; animation-name: fx-rise; }
.fx.rise i svg { filter: drop-shadow(0 0 8px rgba(255, 196, 92, .85)); }
@keyframes fx-fall { from { transform: translate3d(0, -60px, 0); } to { transform: translate3d(var(--sway), var(--h, 900px), 0); } }
@keyframes fx-rise { from { transform: translate3d(0, 60px, 0); } to { transform: translate3d(var(--sway), calc(var(--h, 900px) * -1), 0); } }
@keyframes fx-sway { from { transform: rotate(-35deg); } to { transform: rotate(40deg); } }

/* ===== Marquee ===== */
.marquee { overflow: hidden; padding: 18px 0; background: var(--paper); border-block: 1px solid var(--line); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 56s linear infinite; }
.marquee span { font: italic 500 1.5rem/1 var(--serif); color: var(--muted); white-space: nowrap; }
.marquee i { font-style: normal; font-size: .8rem; color: var(--clay); }
@keyframes marquee { to { transform: translateX(calc(-50% - 18px)); } }

/* ===== Sections ===== */
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 116px 0; } }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.section-head.center { margin-inline: auto; text-align: center; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 44px; }
.head-row .section-head { margin-bottom: 0; }

/* Background tones shown while photos load */
.tone-sand { background-color: #ece2d3; }
.tone-cream { background-color: #f3ece1; }
.tone-clay { background-color: #f0dfd2; }
.tone-celadon { background-color: #dfe6dc; }
.tone-blue { background-color: #dee4ec; }

/* Photos fade in once loaded */
img[data-photo] { opacity: 0; transition: opacity .6s ease, transform .7s ease; }
img[data-photo].is-loaded { opacity: 1; }

/* ===== Festival section ===== */
.festival { position: relative; overflow: hidden; }
.festival::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 55% at 8% 0%, color-mix(in srgb, var(--fest-b) 70%, transparent), transparent 70%),
    radial-gradient(40% 50% at 96% 100%, color-mix(in srgb, var(--fest-a) 16%, transparent), transparent 70%);
}
.festival .eyebrow { color: var(--fest-a); }
.festival-head { max-width: 720px; margin-bottom: 40px; }
.fest-line { margin-top: 14px; font-size: 1.06rem; color: var(--muted); }
.fest-sub { margin-bottom: 16px; font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fest-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.fest-rank {
  position: absolute; left: 14px; top: 14px; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--fest-a); color: #fff; font: 600 1.15rem var(--serif);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}
.fest-grid.products { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
@media (max-width: 560px) { .fest-grid.products { grid-template-columns: 1fr; } }
.fest-more { margin-top: 40px; text-align: center; }

/* ===== About (intro with arch slideshow) ===== */
.about { overflow-x: hidden; overflow-x: clip; overflow-y: visible; }   /* the plate behind the photo must not widen the page on phones */
.about-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 84px; } }
.about-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.04rem; color: var(--muted); }
.about-copy h2 + p { margin-top: 24px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 24px 44px;
  margin: 40px 0 0; padding: 26px 0 0; list-style: none;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font: 500 2.1rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.hero-facts span { margin-top: 6px; font-size: .84rem; color: var(--muted); }

.arch-wrap { position: relative; isolation: isolate; width: 100%; max-width: 440px; margin: 0 auto; }
.plate-hero {
  position: absolute; z-index: -1; left: 50%; top: 45%; width: 170%; height: auto; aspect-ratio: 1;
  translate: -50% -50%; color: var(--glaze); opacity: .12;
  animation: spin 240s linear infinite;
}
.arch {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 50% 50% 20px 20px / 40% 40% 20px 20px;
  box-shadow: 0 30px 60px -30px rgba(28, 22, 18, .45);
}
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.07); transition: opacity 1.2s ease, transform 7s ease-out;
}
.slide.is-active { opacity: 1; transform: none; }
.slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.slide-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(43, 36, 32, .22); transition: width .3s, background-color .3s;
}
.slide-dots button[aria-current="true"] { width: 26px; background: var(--glaze); }
.badge {
  position: absolute; left: -18px; bottom: 60px;
  display: grid; place-items: center;
  width: 124px; height: 124px; border-radius: 50%;
  background: var(--paper); box-shadow: var(--shadow);
}
.badge > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 32s linear infinite; }
.badge text { font: 500 10px var(--sans); letter-spacing: .12em; fill: var(--ink); }
.badge-vie { width: 58px; height: 58px; color: var(--logo-ink); }
@media (min-width: 900px) { .badge { left: -48px; bottom: 84px; } }

/* ===== Activities ===== */
.act-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.act { overflow: hidden; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.act:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.act-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.act-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act:hover .act-media img.is-loaded { transform: scale(1.05); }
.act-body { padding: 22px 24px 26px; }
.act-num { font: italic 600 1rem var(--serif); color: var(--clay); }
.act h3 { margin: 4px 0 8px; font-size: 1.6rem; }
.act p { color: var(--muted); }
.act-note { margin-top: 28px; text-align: center; font-size: .92rem; color: var(--muted); }
.act-note a { color: var(--glaze); font-weight: 500; }

/* ===== Products ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; overflow: hidden;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font: 500 .86rem var(--sans); color: var(--muted); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.products { display: grid; gap: 44px 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 560px) { .products { grid-template-columns: 1fr 1fr; gap: 30px 14px; } }
.product[hidden] { display: none; }
.product.pop { animation: pop-in .45s ease; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.product-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px;
}
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-media:hover img.is-loaded { transform: scale(1.05); }
.product-hover {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(251, 248, 243, .94);
  font: 500 .8rem var(--sans); color: var(--ink); white-space: nowrap;
  opacity: 0; transition: opacity .3s, translate .3s;
}
.product-media:hover .product-hover, .product-media:focus-visible .product-hover { opacity: 1; translate: -50% 0; }
.product-body { padding: 16px 2px 0; }
.product-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 10px; }
.product-top h3 { font-size: 1.4rem; }
.tag {
  flex-shrink: 0; padding: 4px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 500; color: var(--glaze); background: #e2e7ee;
}

/* Quantity: "Add to list" turns into − n + */
.qty-ctl { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-top: 12px; }
.add-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px 9px 12px;
  border: 1px solid rgba(47, 74, 109, .3); border-radius: 999px; background: none; cursor: pointer;
  font: 500 .82rem var(--sans); color: var(--glaze); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.add-btn svg { width: 16px; height: 16px; }
.add-btn:hover { background: var(--glaze); border-color: var(--glaze); color: #fff; }
.add-btn:active { transform: scale(.96); }
.stepper {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--glaze); color: #fff; animation: pop-in .3s ease;
}
.stepper button {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer; transition: background-color .2s, transform .15s;
}
.stepper button:hover { background: rgba(255, 255, 255, .16); }
.stepper button:active { transform: scale(.88); }
.stepper svg { width: 16px; height: 16px; }
.stepper .n { min-width: 30px; text-align: center; font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper .n.bump { animation: bump .3s ease; }
.qty-note { font-size: .78rem; font-weight: 500; color: var(--glaze); }
.qty-lg .stepper button { width: 42px; height: 42px; }
.qty-lg .stepper .n { min-width: 40px; font-size: 1.1rem; }
.qty-lg .add-btn { padding: 13px 22px 13px 18px; font-size: .92rem; border-color: var(--glaze); background: var(--glaze); color: #fff; }
@media (max-width: 560px) {
  .product-top h3 { font-size: 1.15rem; }
  .products .add-btn { width: 100%; justify-content: center; padding: 8px 6px; font-size: .74rem; }
  .products .qty-note { display: none; }
}

/* ===== Promises (kraft paper band with hand-dipped edges) ===== */
.promises { position: relative; margin: 28px 0; background: var(--kraft) var(--grain); }
.promises::before, .promises::after {
  content: ""; position: absolute; left: 0; right: 0; height: 28px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='28' preserveAspectRatio='none'%3E%3Cpath fill='%23ecdfca' d='M0 28V16C50 16 90 6 160 8S270 24 340 20S460 6 540 10S610 16 640 16V28Z'/%3E%3C/svg%3E") repeat-x; background-size: 640px 28px;
}
.promises::before { top: -27px; }
.promises::after { bottom: -27px; transform: scaleY(-1); background-position: 220px 0; }
.promise-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .promise-grid { grid-template-columns: repeat(3, 1fr); } }
.promise { padding: 28px; border-radius: 22px; background: rgba(251, 248, 243, .62); border: 1px solid rgba(43, 36, 32, .06); transition: transform .3s; }
.promise:hover { transform: translateY(-3px); }
.promise-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: var(--glaze); color: #f3efe8; }
.promise-icon svg { width: 26px; height: 26px; }
.promise h3 { font-size: 1.45rem; }
.promise p { margin-top: 8px; font-size: .95rem; color: var(--muted); }

/* ===== Gifts & wholesale ===== */
.gift-grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .gift-grid { grid-template-columns: 1fr 1fr; } }
.gift-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); }
.gift-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.gift-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gift-card:hover .gift-media img.is-loaded { transform: scale(1.04); }
.gift-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 28px 30px; }
.gift-body h3 { font-size: 1.8rem; }
.gift-body p { flex: 1; color: var(--muted); }

/* ===== Visit ===== */
.visit-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.store-banner { position: relative; margin: 0 0 28px; aspect-ratio: 16 / 6; overflow: hidden; border-radius: 28px; }
@media (max-width: 700px) { .store-banner { aspect-ratio: 4 / 3; } }
.store-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.store-banner figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 999px;
  background: rgba(251, 248, 243, .92); font-size: .8rem; font-weight: 500;
}
.visit-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: .9fr 1.1fr; gap: 40px; } }
.store-tabs { display: grid; gap: 12px; }
.store {
  display: grid; gap: 2px; width: 100%; padding: 20px 22px; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.store:hover { border-color: rgba(47, 74, 109, .45); transform: translateX(3px); }
.store[aria-selected="true"] { border-color: var(--glaze); box-shadow: inset 0 0 0 1px var(--glaze); }
.store-name { font: italic 600 1.1rem var(--serif); color: var(--clay); }
.store-addr { font: 500 1.4rem/1.25 var(--serif); }
.store-city { font-size: .9rem; color: var(--muted); }
.hours { margin-top: 22px; color: var(--muted); }
.hours strong { font-weight: 500; color: var(--ink); }
.call { margin: 4px 0 22px; color: var(--muted); }
.call a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.map { min-height: 340px; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: var(--sand); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: saturate(.75) contrast(.98); }

/* ===== Reviews + news (cobalt glaze with a dipped top and drips below) ===== */
.community {
  position: relative; z-index: 1; margin-top: 28px;
  background: var(--glaze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='56'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 14C25-6 75-6 100 14S175 34 200 14'/%3E%3Cpath d='M0 42C25 62 75 62 100 42S175 22 200 42'/%3E%3C/g%3E%3C/svg%3E"); background-size: 200px 56px; color: #f3efe8;
}
.community::before, .community::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.community::before { top: -27px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='28' preserveAspectRatio='none'%3E%3Cpath fill='%232f4a6d' d='M0 28V16C50 16 90 6 160 8S270 24 340 20S460 6 540 10S610 16 640 16V28Z'/%3E%3C/svg%3E") repeat-x; background-size: 640px 28px; }
.community::after { bottom: -71px; height: 72px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='72'%3E%3Cpath fill='%232f4a6d' d='M0 0H640V12L612.6 12Q606.6 12 606.6 16C606.6 34.0 612.1 40.8 611.0 46.4C609.9 53.2 590.1 53.2 589.0 46.4C587.9 40.8 593.4 34.0 593.4 16Q593.4 12 587.4 12L525.5 12Q519.5 12 519.5 16C519.5 24.1 523.2 27.8 522.5 30.9C521.8 34.7 508.2 34.7 507.5 30.9C506.8 27.8 510.5 24.1 510.5 16Q510.5 12 504.5 12L454.4 12Q448.4 12 448.4 16C448.4 43.9 455.4 53.8 454.0 61.9C452.6 71.7 427.4 71.7 426.0 61.9C424.6 53.8 431.6 43.9 431.6 16Q431.6 12 425.6 12L353.1 12Q347.1 12 347.1 16C347.1 28.5 351.4 33.6 350.5 37.8C349.6 42.9 334.4 42.9 333.5 37.8C332.6 33.6 336.9 28.5 336.9 16Q336.9 12 330.9 12L275.2 12Q269.2 12 269.2 16C269.2 38.4 275.2 46.6 274.0 53.3C272.8 61.4 251.2 61.4 250.0 53.3C248.8 46.6 254.8 38.4 254.8 16Q254.8 12 248.8 12L185.9 12Q179.9 12 179.9 16C179.9 23.0 183.2 26.4 182.5 29.2C181.8 32.6 170.2 32.6 169.5 29.2C168.8 26.4 172.1 23.0 172.1 16Q172.1 12 166.1 12L113.8 12Q107.8 12 107.8 16C107.8 35.1 114.3 42.2 113.0 48.1C111.7 55.3 88.3 55.3 87.0 48.1C85.7 42.2 92.2 35.1 92.2 16Q92.2 12 86.2 12L41.1 12Q35.1 12 35.1 16C35.1 27.4 39.4 32.2 38.5 36.1C37.6 40.8 22.4 40.8 21.5 36.1C20.6 32.2 24.9 27.4 24.9 16Q24.9 12 18.9 12L0 12Z'/%3E%3C/svg%3E") repeat-x; background-size: 640px 72px; }
.community + .section { padding-top: 150px; }
.community .eyebrow { color: #e9b898; }
.rating-card {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 22px 14px 18px; border-radius: 20px;
  background: rgba(243, 239, 232, .08); border: 1px solid rgba(243, 239, 232, .18);
}
.rating-score { font: 600 2.7rem/1 var(--serif); }
.rating-stars { display: flex; gap: 2px; color: #f2c14e; }
.rating-stars svg { width: 18px; height: 18px; }
.rating-text { display: block; margin-top: 5px; font-size: .84rem; color: rgba(243, 239, 232, .82); }
.quotes { display: grid; gap: 12px; margin-top: 24px; }
.quotes .quote { margin: 0; }
.community-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .community-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; } }
.community .btn-light { margin-top: 28px; }
.quote { margin: 28px 0 0; padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
.quote p { font: italic 500 1.3rem/1.45 var(--serif); }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: .85rem; color: rgba(243, 239, 232, .7); }
.news-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.news-head h3 { font-size: 1.6rem; }
.news-list { display: grid; gap: 12px; }
@media (min-width: 600px) { .news-list { grid-template-columns: 1fr 1fr; } }
.news-card {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center;
  padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .07); text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.news-card:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.news-card img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, .08); }
.news-body { display: grid; gap: 4px; }
.news-body time { font-size: .76rem; letter-spacing: .08em; color: #e9b898; }
.news-body span { font: 500 1.08rem/1.3 var(--serif); }

/* ===== Products page header ===== */
.page-hero { position: relative; overflow: hidden; padding: 56px 0 24px; }
.page-hero .plate {
  position: absolute; right: -220px; top: -200px; width: 600px; height: 600px;
  color: var(--glaze); opacity: .09; animation: spin 240s linear infinite;
}
.crumbs { margin-bottom: 20px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--glaze); text-decoration: none; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.page-lead { max-width: 40em; margin-top: 16px; color: var(--muted); }
.page-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.collection { padding-top: 40px; }

/* ===== Photo gallery ===== */
.gallery { columns: 4 230px; column-gap: 14px; }
.g-item {
  position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0;
  break-inside: avoid; overflow: hidden; border-radius: 16px; background: var(--sand); cursor: zoom-in;
}
.g-item[hidden] { display: none; }
.g-item img { display: block; width: 100%; height: auto; }
.g-item:hover img.is-loaded { transform: scale(1.04); }
.g-cap {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(251, 248, 243, .94); font-size: .74rem; font-weight: 500; color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }

/* ===== FAQ ===== */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; list-style: none; cursor: pointer; font: 500 1.35rem/1.3 var(--serif);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%232b2420' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] p { animation: fade-in .4s ease; }
.faq-item p { padding: 0 48px 22px 0; color: var(--muted); }

/* ===== Contact channels ===== */
.order { position: relative; overflow: hidden; }
.plate-order {
  position: absolute; left: -280px; top: 50%; width: 640px; height: 640px; translate: 0 -50%;
  color: var(--glaze); opacity: .07; animation: spin 300s linear infinite reverse;
}
.channels { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .channels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .channels { grid-template-columns: repeat(4, 1fr); } }
.channel {
  display: flex; flex-direction: column; min-height: 220px; padding: 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.channel:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ch-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; transition: transform .3s; }
.channel:hover .ch-icon { transform: rotate(-8deg) scale(1.06); }
.ch-icon svg { width: 24px; height: 24px; }
.ch-shopee { background: #ee4d2d; }
.ch-zalo { background: #0068ff; }
.ch-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.ch-fb { background: linear-gradient(135deg, #00b2ff, #006aff); }
.ch-name { padding-top: 28px; font: 500 1.65rem/1.1 var(--serif); }
.ch-desc { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.ch-go { margin-top: auto; padding-top: 14px; font-size: .88rem; font-weight: 500; color: var(--glaze); }

/* ===== Footer ===== */
.site-footer { position: relative; overflow: hidden; padding: 72px 0 28px; background: var(--ink); color: rgba(243, 239, 232, .72); font-size: .93rem; }
.plate-footer { position: absolute; right: -200px; top: -170px; width: 580px; height: 580px; color: var(--gold-light); opacity: .07; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.5fr 1.4fr 1fr 1fr; } }
.foot-tag { margin-top: 14px; max-width: 22em; }
.site-footer h4 { margin-bottom: 12px; font: 500 .74rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #e9b898; }
.site-footer p + p { margin-top: 6px; }
.site-footer strong { font-weight: 500; color: rgba(243, 239, 232, .92); }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(243, 239, 232, .12);
  font-size: .82rem;
}
.visits { display: inline-flex; align-items: center; gap: 7px; }
.visits svg { width: 16px; height: 16px; opacity: .75; }

/* ===== Product pop-up ===== */
dialog { padding: 0; border: 0; color: var(--ink); }
.modal {
  width: min(1060px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px);
  overflow: hidden; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow-lg);
}
.modal::backdrop, .drawer::backdrop { background: rgba(28, 22, 18, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-card { position: relative; display: grid; max-height: calc(100vh - 24px); overflow: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; border-color: transparent; background: rgba(251, 248, 243, .94); color: var(--ink); }
.pm-gallery { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.pm-main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; }
.pm-main img { width: 100%; height: 100%; object-fit: contain; animation: fade-in .35s ease; }
.pm-nav {
  position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(251, 248, 243, .92); color: var(--ink); cursor: pointer;
  transition: transform .2s;
}
.pm-nav:hover { transform: scale(1.08); }
.pm-prev { left: 12px; }
.pm-next { right: 12px; }
.pm-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(28, 22, 18, .6); color: #fff; font-size: .75rem; }
.pm-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pm-thumbs button { flex: 0 0 76px; height: 57px; padding: 0; overflow: hidden; cursor: pointer; border: 2px solid transparent; border-radius: 10px; background: var(--sand); transition: border-color .2s, opacity .2s; opacity: .75; }
.pm-thumbs button[aria-current="true"] { border-color: var(--glaze); opacity: 1; }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 22px 26px 30px; }
.pm-info .eyebrow { margin-bottom: 10px; }
.pm-info h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); padding-right: 40px; }
.pm-details { margin: 18px 0 0; padding: 0; list-style: none; }
.pm-details li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pm-details li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border: 1.5px solid var(--clay); border-radius: 50%; }
.pm-note { margin-top: 14px; font-size: .88rem; font-style: italic; color: var(--muted); }
.pm-note:empty { display: none; }
.pm-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.pm-buy .qty-ctl { margin-top: 0; }
.ask-label { margin-top: 22px; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ask-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ask, .send {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px;
  border-radius: 999px; color: #fff; text-decoration: none; font: 500 .86rem var(--sans);
  transition: transform .2s, filter .2s;
}
.ask svg, .send svg { width: 18px; height: 18px; }
.ask:hover, .send:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ask-zalo, .send-zalo { background: #0068ff; }
.ask-ig, .send-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.ask-fb, .send-fb { background: linear-gradient(135deg, #00b2ff, #006aff); }
@media (min-width: 860px) {
  .modal-card { grid-template-columns: 1.15fr 1fr; overflow: hidden; }
  .pm-info { max-height: calc(100vh - 24px); overflow: auto; padding: 52px 40px 36px 18px; }
}

/* ===== Full-screen photo viewer ===== */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  background: rgba(20, 16, 13, .96); color: #fff; overflow: hidden;
}
.lightbox[open] { animation: fade-in .3s ease; }
.lightbox::backdrop { background: rgba(20, 16, 13, .6); }
.lb-figure { display: grid; place-items: center; height: 100%; margin: 0; padding: 64px 64px 120px; }
.lb-figure img { max-width: min(100%, 1200px); max-height: calc(100vh - 210px); object-fit: contain; border-radius: 12px; animation: fade-in .35s ease; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 70px; text-align: center; font: 500 1.3rem var(--serif); }
.lb-actions { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; align-items: center; gap: 16px; }
.lb-count { position: absolute; left: 20px; top: 24px; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.lightbox .modal-close { position: absolute; top: 14px; right: 14px; }
.lightbox .pm-nav { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; }
@media (max-width: 600px) { .lb-figure { padding: 60px 12px 130px; } .lightbox .pm-nav { top: auto; bottom: 64px; translate: none; } }

/* ===== "Ask for price" list ===== */
.drawer {
  margin: 0 0 0 auto; width: min(440px, 100%); max-width: none; height: 100%; max-height: none;
  background: var(--paper); box-shadow: var(--shadow-lg);
}
.drawer[open] { animation: slide-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { opacity: 0; transform: translateX(40px); } }
.drawer-card { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 22px 24px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-head h3 { font-size: 1.8rem; }
.drawer-head .icon-btn { border-color: var(--line); }
.drawer-empty { color: var(--muted); }
.drawer-items { flex: 1; margin: 0; padding: 0; overflow: auto; list-style: none; }
.drawer-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: fade-in .3s ease; }
.drawer-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.drawer-item-name { font: 500 1.15rem/1.2 var(--serif); }
.drawer-item .stepper { margin-top: 6px; padding: 2px; }
.drawer-item .stepper button { width: 28px; height: 28px; }
.drawer-item .stepper .n { min-width: 26px; font-size: .88rem; }
.remove-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.remove-btn svg { width: 14px; height: 14px; }
.remove-btn:hover { background: var(--sand); color: var(--ink); }
.drawer-note { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.drawer-note textarea {
  width: 100%; padding: 10px 12px; resize: vertical;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink);
}
.drawer-hint { margin-bottom: 12px; font-size: .82rem; color: var(--muted); }
.send-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.send { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 6px; border-radius: 16px; font-size: .8rem; }
.send svg { width: 22px; height: 22px; }
.drawer-copy { margin-top: 10px; width: 100%; }
.drawer.has-items .drawer-empty { display: none; }
.drawer:not(.has-items) .drawer-items, .drawer:not(.has-items) .drawer-note, .drawer:not(.has-items) .drawer-foot { display: none; }

.list-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px 12px 14px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); cursor: pointer;
  font: 500 .88rem var(--sans); box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  animation: pop-in .35s ease;
}
.list-fab[hidden] { display: none; }
.list-fab .count {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--gold-light); color: var(--ink); font-size: .78rem; font-weight: 600;
}
.list-fab.bump, .stepper .n.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }

.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 300; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg);
  font-size: .9rem; box-shadow: var(--shadow-lg);
  opacity: 0; translate: -50% 12px; pointer-events: none; transition: opacity .3s, translate .3s;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ===== Floating contact ===== */
.float-contact { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fab {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: #fff; text-decoration: none; font: 600 .78rem var(--sans);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .2s, opacity .3s;
}
.fab:hover { transform: scale(1.08); }
.fab-zalo { background: #0068ff; }
.fab-call { background: var(--clay); }
.fab-top { width: 42px; height: 42px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }


/* ===== Products toolbar: categories, gift-boxed switch, sort ===== */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.chip .n { margin-left: 4px; font-style: normal; font-size: .8em; opacity: .6; }
.toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-ui { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line); transition: background-color .25s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s; }
.switch input:checked + .switch-ui { background: var(--glaze); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--clay); outline-offset: 2px; }
.sort-box { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.sort-box select {
  appearance: none; -webkit-appearance: none; padding: 9px 36px 9px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; font: 500 .86rem var(--sans); color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232b2420' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
}
.toolbar-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin: 18px 0 32px; font-size: .9rem; color: var(--muted); }
.result-count { font-weight: 500; color: var(--ink); }
.no-results { padding: 40px 0; text-align: center; color: var(--muted); }
.no-results .btn { margin-top: 14px; }

/* ===== "Design your own" banner ===== */
.promo { position: relative; display: grid; overflow: hidden; margin-top: 64px; border-radius: 30px; background: var(--charcoal); color: #f3efe8; }
@media (min-width: 860px) { .promo { grid-template-columns: 1fr 1.1fr; } }
.promo-media { position: relative; min-height: 300px; }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 40px 36px 44px; }
.promo-body .eyebrow { margin-bottom: 0; color: var(--logo-gold); }
.promo-body h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.promo-body p { color: rgba(243, 239, 232, .8); }
.promo .plate { position: absolute; right: -170px; bottom: -170px; width: 440px; height: 440px; color: var(--logo-gold); opacity: .08; }
.fest-calendar-link { display: inline-flex; margin-top: 16px; font-weight: 500; color: var(--fest-a); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ===== Customize page (3D pet mug) ===== */
.custom-section { padding: 12px 0 96px; }
.custom-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) {
  .custom-grid { grid-template-columns: 1.25fr 1fr; gap: 40px; }
  .viewer-col { position: sticky; top: calc(var(--header-h) + 16px); }
}
.viewer {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 76vh; overflow: hidden; touch-action: none;
  border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 35%, #fbf7f0 0%, #efe6d8 70%, #e6dac8 100%);
}
@media (max-width: 999px) { .viewer { aspect-ratio: 1 / 1.05; } }
/* Phones and tablets held upright: the 3D viewer stays at the top while the steps scroll underneath */
@media (max-width: 999px) and (min-height: 600px) {
  .custom-grid { display: block; }
  .viewer-col { display: contents; }
  .viewer {
    position: sticky; top: calc(var(--header-h) + 8px); z-index: 4; height: clamp(300px, 46vh, 520px); aspect-ratio: auto; max-height: none;
    box-shadow: 0 -9px 0 var(--bg), 0 14px 30px -20px rgba(43, 36, 32, .55);   /* first shadow hides the strip under the header */
  }
  .custom-panel { margin-top: 14px; }
}
.viewer canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer[data-tool="fill"] canvas, .viewer[data-tool="brush"] canvas { cursor: crosshair; }
.viewer.over-pet[data-tool="fill"] canvas { cursor: pointer; }
.viewer-loading, .viewer-nowebgl { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: .92rem; color: var(--muted); }
.viewer.ready .viewer-loading, .viewer.no-webgl .viewer-loading, .viewer-nowebgl { display: none; }
.viewer.no-webgl .viewer-nowebgl { display: grid; }
.viewer-loading span { animation: veil-pulse 1.2s ease-in-out infinite; }
.viewer-tools { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; pointer-events: none; }
.viewer-tools > * { pointer-events: auto; }
.tool-group { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(251, 248, 243, .94); box-shadow: var(--shadow); }
.seg button, .tool-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 500 .82rem var(--sans); color: var(--muted); transition: background-color .2s, color .2s;
}
.seg button svg, .tool-btn svg { width: 16px; height: 16px; }
.seg button[aria-pressed="true"], .tool-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tool-btn { background: rgba(251, 248, 243, .94); box-shadow: var(--shadow); }
.viewer-hint {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; width: max-content; max-width: calc(100% - 24px); padding: 7px 14px; border-radius: 999px;
  background: rgba(43, 36, 32, .72); color: #fff; font-size: .78rem; text-align: center; pointer-events: none;
}
.samples { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.sample { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; }
.sample img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sample figcaption { position: absolute; left: 10px; bottom: 10px; width: fit-content; max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 999px; background: rgba(251, 248, 243, .94); font-size: .74rem; font-weight: 500; }
.custom-panel { display: grid; gap: 14px; }
.step { padding: 22px 22px 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.step h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 1.45rem; }
.step-num { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--glaze); color: #fff; font: 600 .9rem var(--sans); }
.step-label { margin: 18px 0 8px; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.step-label:first-of-type { margin-top: 0; }
.opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff; font: 500 .95rem var(--sans);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.opt:hover { transform: translateY(-2px); }
.opt[aria-pressed="true"] { border-color: var(--glaze); box-shadow: inset 0 0 0 1px var(--glaze); }
.opt svg { flex-shrink: 0; width: 34px; height: 34px; color: var(--ink); }
.glaze-chip { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.glaze-white { background: radial-gradient(circle at 34% 30%, #fdfbf6 0, #ece6d6 55%, #d9cfbb 100%); }
.glaze-black { background: radial-gradient(circle at 34% 30%, #57504b 0, #2b2826 55%, #1b1918 100%); box-shadow: inset 0 0 0 3px #8b7462; }
@media (max-width: 480px) {
  .step { padding: 18px 16px 20px; }
  .opt { gap: 9px; padding: 10px 11px; font-size: .9rem; }
  .opt svg, .glaze-chip { width: 28px; height: 28px; }
}
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 500 .82rem var(--sans);
  transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.preset:hover { transform: translateY(-1px); border-color: var(--ink); }
.preset[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.preset-dots { display: inline-flex; }
.preset-dots i { width: 18px; height: 18px; margin-left: -6px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.preset-dots i:first-child { margin-left: 0; }
.palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.swatch {
  width: 100%; aspect-ratio: 1; padding: 0; cursor: pointer; border: 2px solid #fff; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); transition: transform .15s, box-shadow .15s;
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { transform: scale(1.1); box-shadow: 0 0 0 2px var(--ink); }
.tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.brush-sizes { display: inline-flex; gap: 6px; }
.brush-sizes button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.brush-sizes button i { display: block; border-radius: 50%; background: var(--ink); }
.brush-sizes button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mini-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 500 .8rem var(--sans); color: var(--ink);
}
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn:disabled { opacity: .45; cursor: default; }
.summary { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--bg); font-size: .92rem; }
.summary b { margin-right: 6px; font-weight: 500; color: var(--muted); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-weight: 500; }
.custom-note { width: 100%; margin-top: 12px; padding: 10px 12px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.download-btn { width: 100%; margin-top: 14px; }
.send-hint { margin: 12px 0 10px; font-size: .8rem; color: var(--muted); }

/* Notice before customizing */
.notice { width: min(520px, calc(100% - 32px)); max-width: none; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow-lg); }
.notice::backdrop { background: rgba(28, 22, 18, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.notice[open] { animation: rise .4s cubic-bezier(.2, .8, .2, 1); }
.notice-card { padding: 32px 30px 26px; text-align: center; }
.notice-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #f3e7d3; color: var(--clay); }
.notice-icon svg { width: 30px; height: 30px; }
.notice h2 { font-size: 1.9rem; }
.notice p { margin-top: 12px; color: var(--muted); }
.notice-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

/* ===== Festival calendar ===== */
.cal-section { padding: 16px 0 96px; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.cal-range { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8rem; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg i { width: 16px; height: 16px; border-radius: 5px; }
.lg-0 i { background: #f6c1cc; box-shadow: inset 0 0 0 1.5px #c94f6d; }
.lg-1 i { box-shadow: inset 0 0 0 1.5px var(--muted); }
.lg-2 i { position: relative; } .lg-2 i::after { content: "15"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 .62rem var(--sans); font-style: normal; color: #c0392b; }
.lg-3 i { border-radius: 50%; box-shadow: inset 0 0 0 2px var(--glaze); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1000px) {
  .cal-layout { grid-template-columns: 380px 1fr; }
  .cal-side { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding-right: 6px; }
}
@media (max-width: 999px) {
  .cal-events {
    grid-auto-flow: column; grid-auto-columns: min(84%, 340px); overflow-x: auto; overscroll-behavior-x: contain;
    margin: 0 -20px; padding: 2px 20px 10px; scroll-padding-inline: 20px; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .cal-events::-webkit-scrollbar { display: none; }
}
@media (min-width: 768px) and (max-width: 999px) { .cal-events { margin: 0 -32px; padding-inline: 32px; scroll-padding-inline: 32px; } }
.cal-side h2 { margin-bottom: 14px; font-size: 1.6rem; }
.cal-events { display: grid; gap: 10px; }
.ev {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ev);
}
.ev.flash { animation: ev-flash 1.4s ease; }
@keyframes ev-flash { 0%, 45% { box-shadow: 0 0 0 3px var(--ev); transform: scale(1.02); } }
.ev-date { display: grid; place-content: center; padding: 8px 0; border-radius: 14px; background: var(--ev2); text-align: center; line-height: 1.1; }
.ev-date b { font: 600 1.6rem var(--serif); }
.ev-date span { font-size: .7rem; }
.ev-body h3 { font-size: 1.18rem; }
.ev-meta { margin-top: 2px; font-size: .78rem; color: var(--muted); }
.ev-meta strong { font-weight: 600; color: var(--ev); }
.ev-line { margin-top: 6px; font-size: .84rem; color: var(--muted); }
.ev-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: .74rem; color: var(--muted); }
.ev-pick { width: 42px; height: 42px; padding: 0; overflow: hidden; cursor: pointer; border: 0; border-radius: 10px; transition: transform .2s; }
.ev-pick:hover { transform: scale(1.08); }
.ev-pick img { width: 100%; height: 100%; object-fit: cover; }
.ev-minor { background: transparent; border-left-style: dashed; }
.ev-past { opacity: .5; }
@media (max-width: 999px) {   /* cards in the swipeable row: date as a pill on top */
  .ev { grid-template-columns: 1fr; gap: 8px; align-content: start; scroll-snap-align: start; }
  .ev-date { display: flex; align-items: baseline; gap: 6px; justify-self: start; place-content: normal; padding: 3px 12px; border-radius: 999px; }
  .ev-date b { font-size: 1.25rem; }
  .ev-date span { font-size: .74rem; }
}
.cal-months { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.month { padding: 16px 14px 14px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.month h3 { margin-bottom: 10px; font-size: 1.3rem; }
.month h3 span { font-size: .9em; color: var(--muted); }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow span { padding-bottom: 4px; text-align: center; font-size: .66rem; font-weight: 500; color: var(--muted); }
.dow .d-weekend { color: var(--clay); }
.d {
  position: relative; display: grid; justify-items: center; align-content: center; min-height: 40px; padding: 3px 0;
  border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; line-height: 1.05;
}
.d .sd { font-size: .86rem; font-weight: 500; }
.d .ld { font-size: .58rem; color: var(--muted); }
.d-weekend .sd { color: var(--clay); }
.d-past { opacity: .42; }
.d-moon .ld { font-weight: 700; color: #c0392b; }
.d-today { box-shadow: inset 0 0 0 2px var(--glaze); }
.d-fest, .d-minor { cursor: pointer; transition: transform .15s; }
.d-fest { background: var(--ev2); }
.d-fest .sd { font-weight: 700; color: var(--ink); }
.d-fest::after { content: ""; position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--ev); }
.d-minor { box-shadow: inset 0 0 0 1.5px var(--ev); }
.d-fest:hover, .d-minor:hover { transform: scale(1.1); }

/* ===== Scroll reveal (only when JS is on) ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge > svg:first-child, .marquee-track, .plate-hero, .plate-order, .page-hero .plate,
  .status.is-open i, .veil-ring, .veil-pics, .fest-dot svg, .scroll-cue span { animation: none; }
  .veil-pics img { animation: none; }
  .veil-pics img:first-child { opacity: 1; }
  .fx { display: none; }
  .slide, .hs { transition: opacity .01s; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .modal[open], .drawer[open], .lightbox[open] { animation: none; }
}
