/* Fluent AI website runtime — shared by every theme.
 * Provides: section utilities (padding/background/alignment/height/animation),
 * button variants, and the chrome for runtime views (cart, item modal, checkout,
 * booking, contact form, toasts) plus editor-bridge highlights.
 * All colors come from CSS variables the renderer emits on :root (--ws-*). */

:root {
  --ws-max: 1180px;
  --ws-gutter: clamp(16px, 4vw, 40px);
  --ws-radius-sm: calc(var(--ws-radius) * 0.5);
  --ws-radius-lg: calc(var(--ws-radius) * 1.6);
  --ws-shadow: 0 10px 30px -12px rgb(var(--ws-text-rgb) / 0.25);
  --ws-shadow-lg: 0 30px 60px -24px rgb(var(--ws-text-rgb) / 0.35);
  --ws-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ws-sec-text-scale: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ws-bg);
  color: var(--ws-text);
  font-family: var(--ws-font-body);
  font-size: calc(16px * var(--ws-text-scale));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ws-font-heading); line-height: 1.1; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 3px; border-radius: 4px; }
.ws-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout primitives ---------- */
.ws-container { width: min(100% - var(--ws-gutter) * 2, var(--ws-max)); margin-inline: auto; }
.ws-section { position: relative; font-size: calc(1em * var(--ws-sec-text-scale)); overflow: clip; }
.ws-section > .ws-container { position: relative; z-index: 1; }

/* Padding scale (× spacing scale) */
.ws-pad-1 { padding-block: calc(clamp(24px, 4vw, 40px) * var(--ws-space-scale)); }
.ws-pad-2 { padding-block: calc(clamp(40px, 6vw, 64px) * var(--ws-space-scale)); }
.ws-pad-3 { padding-block: calc(clamp(56px, 8vw, 96px) * var(--ws-space-scale)); }
.ws-pad-4 { padding-block: calc(clamp(72px, 10vw, 128px) * var(--ws-space-scale)); }
.ws-pad-5 { padding-block: calc(clamp(96px, 13vw, 176px) * var(--ws-space-scale)); }

/* Height */
.ws-h-half { min-height: 55vh; display: flex; align-items: center; }
.ws-h-screen { min-height: 100svh; display: flex; align-items: center; }
.ws-h-half > .ws-container, .ws-h-screen > .ws-container { width: min(100% - var(--ws-gutter) * 2, var(--ws-max)); }

/* Alignment */
.ws-align-center { text-align: center; }
.ws-align-center .ws-lead, .ws-align-center .ws-eyebrow, .ws-align-center .ws-actions { margin-inline: auto; justify-content: center; }
.ws-align-start { text-align: start; }

/* Backgrounds */
.ws-bg-default { background: var(--ws-sec-bg, transparent); color: var(--ws-sec-text, inherit); }
.ws-bg-surface { background: var(--ws-sec-bg, var(--ws-surface)); color: var(--ws-sec-text, inherit); }
.ws-bg-primary { background: var(--ws-sec-bg, var(--ws-primary)); color: var(--ws-sec-text, var(--ws-on-primary)); }
.ws-bg-dark { background: var(--ws-sec-bg, #0b1020); color: var(--ws-sec-text, #f8fafc); }
.ws-bg-gradient {
  background: var(--ws-sec-bg, linear-gradient(135deg, var(--ws-primary) 0%, var(--ws-primary-dark) 55%, var(--ws-secondary) 130%));
  color: var(--ws-sec-text, var(--ws-on-primary));
}
.ws-bg-image { background: var(--ws-sec-image) center / cover no-repeat; color: var(--ws-sec-text, #fff); }
.ws-bg-image::before { content: ''; position: absolute; inset: 0; background: rgb(8 10 20 / var(--ws-sec-overlay, 0.55)); }
.ws-bg-primary, .ws-bg-dark, .ws-bg-gradient, .ws-bg-image { --ws-muted-local: rgb(255 255 255 / 0.72); }
.ws-bg-primary .ws-muted, .ws-bg-dark .ws-muted, .ws-bg-gradient .ws-muted, .ws-bg-image .ws-muted { color: var(--ws-muted-local); }
.ws-section[style*="--ws-sec-accent"] { --ws-accent: var(--ws-sec-accent); --ws-primary: var(--ws-sec-accent); }

/* ---------- Type helpers ---------- */
.ws-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ws-accent); margin-bottom: 14px; }
.ws-eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.ws-align-center .ws-eyebrow::before { display: none; }
.ws-title { font-size: clamp(1.9em, 3.6vw, 2.9em); font-weight: 700; }
.ws-title-xl { font-size: clamp(2.4em, 5.4vw, 4.4em); font-weight: 800; line-height: 1.02; }
.ws-lead { font-size: clamp(1.02em, 1.4vw, 1.2em); color: var(--ws-muted); max-width: 62ch; margin-top: 16px; }
.ws-muted { color: var(--ws-muted); }
.ws-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }

/* ---------- Buttons ---------- */
.ws-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ws-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.85em 1.5em; border-radius: var(--ws-radius); font-weight: 600; font-size: 0.98em;
  border: 1.5px solid transparent; transition: transform 0.2s var(--ws-ease), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap; line-height: 1.2;
}
.ws-btn:hover { transform: translateY(-1px); }
.ws-btn:active { transform: translateY(0); }
.ws-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.ws-btn-primary { background: var(--ws-primary); color: var(--ws-on-primary); box-shadow: 0 10px 24px -10px rgb(var(--ws-primary-rgb) / 0.7); }
.ws-btn-primary:hover { background: var(--ws-primary-dark); }
.ws-btn-secondary { background: rgb(var(--ws-text-rgb) / 0.06); color: inherit; border-color: rgb(var(--ws-text-rgb) / 0.12); }
.ws-btn-secondary:hover { background: rgb(var(--ws-text-rgb) / 0.1); }
.ws-btn-ghost { color: inherit; border-color: rgb(var(--ws-text-rgb) / 0.2); }
.ws-btn-ghost:hover { background: rgb(var(--ws-text-rgb) / 0.06); }
.ws-btn-light { background: #fff; color: var(--ws-primary-dark); }
.ws-btn-sm { padding: 0.55em 1em; font-size: 0.9em; }
.ws-btn-block { width: 100%; }
/* Global button style variants (set by the renderer as ws-btn-<style> on each section) */
.ws-btn-pill .ws-btn { border-radius: 999px; }
.ws-btn-outline .ws-btn-primary { background: transparent; color: var(--ws-primary); border-color: var(--ws-primary); box-shadow: none; }
.ws-btn-outline .ws-btn-primary:hover { background: var(--ws-primary); color: var(--ws-on-primary); }
.ws-btn-soft .ws-btn-primary { background: rgb(var(--ws-primary-rgb) / 0.14); color: var(--ws-primary-dark); box-shadow: none; }
.ws-btn-soft .ws-btn-primary:hover { background: rgb(var(--ws-primary-rgb) / 0.22); }
.ws-bg-primary .ws-btn-primary, .ws-bg-gradient .ws-btn-primary { background: #fff; color: var(--ws-primary-dark); box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.4); }
.ws-bg-primary .ws-btn-ghost, .ws-bg-gradient .ws-btn-ghost, .ws-bg-dark .ws-btn-ghost, .ws-bg-image .ws-btn-ghost { border-color: rgb(255 255 255 / 0.4); color: #fff; }

/* ---------- Cards & grids ---------- */
.ws-grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.ws-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ws-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ws-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ws-card {
  background: var(--ws-surface); color: var(--ws-text); border-radius: var(--ws-radius-lg);
  border: 1px solid rgb(var(--ws-text-rgb) / 0.08); box-shadow: var(--ws-shadow);
  transition: transform 0.3s var(--ws-ease), box-shadow 0.3s var(--ws-ease);
}
.ws-card:hover { transform: translateY(-4px); box-shadow: var(--ws-shadow-lg); }
.ws-bg-primary .ws-card, .ws-bg-dark .ws-card, .ws-bg-gradient .ws-card, .ws-bg-image .ws-card { background: rgb(255 255 255 / 0.1); color: #fff; border-color: rgb(255 255 255 / 0.18); backdrop-filter: blur(10px); }
.ws-icon { flex-shrink: 0; }
.ws-icon-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--ws-radius); background: rgb(var(--ws-primary-rgb) / 0.12); color: var(--ws-primary); }
.ws-bg-primary .ws-icon-badge, .ws-bg-gradient .ws-icon-badge, .ws-bg-dark .ws-icon-badge, .ws-bg-image .ws-icon-badge { background: rgb(255 255 255 / 0.16); color: #fff; }
.ws-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.78em; font-weight: 600; background: rgb(var(--ws-accent-rgb) / 0.14); color: var(--ws-accent); }
.ws-stars { display: inline-flex; gap: 2px; color: var(--ws-accent); }
.ws-media { position: relative; overflow: hidden; border-radius: var(--ws-radius-lg); background: rgb(var(--ws-text-rgb) / 0.06); }
.ws-media img { width: 100%; height: 100%; object-fit: cover; }
.ws-media-ph { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--ws-muted); background: linear-gradient(135deg, rgb(var(--ws-primary-rgb) / 0.12), rgb(var(--ws-secondary-rgb) / 0.12)); font-family: var(--ws-font-heading); font-size: 2em; font-weight: 700; }

/* ---------- Animations ---------- */
.ws-anim [data-ws-reveal], .ws-anim.ws-reveal-self { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ws-ease), transform 0.7s var(--ws-ease); }
.ws-anim[data-ws-anim="fade-in"] [data-ws-reveal], .ws-anim[data-ws-anim="fade-in"].ws-reveal-self { transform: none; }
.ws-anim[data-ws-anim="slide-in"] [data-ws-reveal], .ws-anim[data-ws-anim="slide-in"].ws-reveal-self { transform: translateX(-32px); }
[dir="rtl"] .ws-anim[data-ws-anim="slide-in"] [data-ws-reveal], [dir="rtl"] .ws-anim[data-ws-anim="slide-in"].ws-reveal-self { transform: translateX(32px); }
.ws-anim[data-ws-anim="zoom-in"] [data-ws-reveal], .ws-anim[data-ws-anim="zoom-in"].ws-reveal-self { transform: scale(0.94); }
.ws-anim.ws-in [data-ws-reveal], .ws-anim.ws-in.ws-reveal-self { opacity: 1; transform: none; }
.ws-anim.ws-in [data-ws-reveal]:nth-child(2) { transition-delay: 0.08s; }
.ws-anim.ws-in [data-ws-reveal]:nth-child(3) { transition-delay: 0.16s; }
.ws-anim.ws-in [data-ws-reveal]:nth-child(4) { transition-delay: 0.24s; }
.ws-anim.ws-in [data-ws-reveal]:nth-child(5) { transition-delay: 0.32s; }
.ws-anim.ws-in [data-ws-reveal]:nth-child(6) { transition-delay: 0.4s; }
.ws-anim.ws-in [data-ws-reveal]:nth-child(n + 7) { transition-delay: 0.46s; }
/* Site-wide motion presets: the renderer puts ws-motion-<preset> (+ ws-parallax) on <body>. */
body.ws-motion-fade .ws-anim [data-ws-reveal], body.ws-motion-fade .ws-anim.ws-reveal-self { transition-duration: 1s; }
body.ws-motion-slide .ws-anim:not(.ws-in) [data-ws-reveal]:nth-child(even) { transform: translateX(32px); }
[dir="rtl"] body.ws-motion-slide .ws-anim:not(.ws-in) [data-ws-reveal]:nth-child(even) { transform: translateX(-32px); }
body.ws-motion-zoom .ws-anim [data-ws-reveal], body.ws-motion-zoom .ws-anim.ws-reveal-self { transition-duration: 0.8s; }
body.ws-motion-cinematic .ws-anim [data-ws-reveal], body.ws-motion-cinematic .ws-anim.ws-reveal-self { transition-duration: 1.15s; transition-property: opacity, transform, filter; }
body.ws-motion-cinematic .ws-anim:not(.ws-in) [data-ws-reveal], body.ws-motion-cinematic .ws-anim:not(.ws-in).ws-reveal-self { transform: translateY(30px) scale(0.96); filter: blur(10px); }
body.ws-motion-cinematic .ws-anim.ws-in [data-ws-reveal]:nth-child(2) { transition-delay: 0.14s; }
body.ws-motion-cinematic .ws-anim.ws-in [data-ws-reveal]:nth-child(3) { transition-delay: 0.28s; }
body.ws-motion-cinematic .ws-anim.ws-in [data-ws-reveal]:nth-child(n + 4) { transition-delay: 0.4s; }
/* Parallax: core.js writes --ws-py on [data-ws-parallax] hooks; `translate` composes with any transform the theme or the reveal uses. */
body.ws-parallax [data-ws-parallax] { translate: 0 var(--ws-py, 0px); will-change: translate; }
body.ws-parallax .ws-bg-image { background-attachment: fixed; }
@media (prefers-reduced-motion: reduce) {
  .ws-anim [data-ws-reveal], .ws-anim.ws-reveal-self { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  body.ws-parallax [data-ws-parallax] { translate: none; }
  body.ws-parallax .ws-bg-image { background-attachment: scroll; }
  html { scroll-behavior: auto; }
}
@keyframes ws-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ws-spin { to { transform: rotate(360deg); } }
@keyframes ws-pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Header helpers ---------- */
body { overflow-x: clip; }
.ws-header { position: sticky; top: 0; z-index: 40; transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
body.ws-scrolled .ws-header { box-shadow: 0 6px 24px -14px rgb(0 0 0 / 0.35); }
.ws-nav-toggle { display: none; }
/* !important on purpose: theme stylesheets load after this file and commonly set
   display:flex on the same nav element; the collapse must always win on phones. */
@media (max-width: 860px) {
  .ws-nav-toggle { display: inline-grid !important; place-items: center; width: 42px; height: 42px; border-radius: var(--ws-radius); }
  body:not(.ws-nav-open) .ws-nav-links { display: none !important; }
  body.ws-nav-open .ws-nav-links { display: flex !important; flex-direction: column; position: absolute; inset-inline: 0; top: 100%; padding: 18px var(--ws-gutter) 24px; background: var(--ws-surface); color: var(--ws-text); border-bottom: 1px solid rgb(var(--ws-text-rgb) / 0.08); box-shadow: var(--ws-shadow-lg); gap: 6px; animation: ws-pop 0.25s var(--ws-ease); }
  body.ws-nav-open .ws-nav-links a { padding: 10px 6px; font-size: 1.05em; }
  .ws-header > .ws-container, .ws-header > div { position: relative; }
}
.ws-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ws-font-heading); font-weight: 700; font-size: 1.15em; letter-spacing: -0.01em; }
.ws-logo img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.ws-logo-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--ws-radius); background: var(--ws-primary); color: var(--ws-on-primary); font-size: 0.9em; font-weight: 800; }

/* ---------- Pages: nav state, inner-page intro, catalog teaser ---------- */
.ws-nav-links a { position: relative; }
.ws-nav-links a.ws-active { color: var(--ws-primary); }
.ws-nav-links a.ws-active::after { content: ''; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.9; }
@media (max-width: 860px) { .ws-nav-links a.ws-active::after { display: none; } }
/* Compact title band a theme shows on inner pages that do not start with a hero/page header. */
.ws-page-intro { position: relative; padding-block: calc(clamp(40px, 6vw, 72px) * var(--ws-space-scale)) calc(clamp(24px, 4vw, 44px) * var(--ws-space-scale)); background: var(--ws-surface); overflow: clip; }
.ws-page-intro h1 { font-size: clamp(1.9em, 3.6vw, 3em); font-weight: 800; }
.ws-page-intro .ws-lead { margin-top: 10px; }
.ws-breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82em; color: var(--ws-muted); margin-bottom: 14px; }
.ws-breadcrumb a:hover { color: var(--ws-primary); }
.ws-breadcrumb .ws-icon { opacity: 0.6; }
[dir="rtl"] .ws-breadcrumb .ws-icon { transform: scaleX(-1); }
/* "View all" under a catalog teaser */
.ws-viewall { display: flex; justify-content: center; margin-top: clamp(24px, 4vw, 40px); }
.ws-page-header { position: relative; overflow: clip; }
.ws-page-header .ws-title-xl { font-size: clamp(2em, 4.4vw, 3.6em); }

/* ---------- Catalog cards (shared behaviour hooks; themes restyle freely) ---------- */
.ws-item-card { display: flex; flex-direction: column; overflow: hidden; }
.ws-item-media { aspect-ratio: 4 / 3; cursor: pointer; }
.ws-item-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ws-item-title { font-size: 1.12em; font-weight: 700; font-family: var(--ws-font-heading); letter-spacing: -0.01em; }
.ws-item-desc { color: var(--ws-muted); font-size: 0.93em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ws-item-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.ws-price { font-weight: 700; font-size: 1.05em; }
.ws-item-actions { display: flex; gap: 8px; }
.ws-item-card.ws-oos .ws-item-media { filter: grayscale(0.7); opacity: 0.75; }

/* ---------- Runtime chrome: overlay, drawer, modal ---------- */
#ws-runtime { position: relative; z-index: 60; font-family: var(--ws-font-body); color: var(--ws-text); font-size: calc(16px * var(--ws-text-scale)); }
.ws-overlay { position: fixed; inset: 0; background: rgb(8 10 20 / 0.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.25s; z-index: 60; }
.ws-overlay.ws-open { opacity: 1; }
.ws-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--ws-surface); color: var(--ws-text);
  box-shadow: var(--ws-shadow-lg); transform: translateX(100%); transition: transform 0.35s var(--ws-ease); z-index: 61; display: flex; flex-direction: column;
}
[dir="rtl"] .ws-drawer { transform: translateX(-100%); }
.ws-drawer.ws-open { transform: none !important; }
.ws-modal-wrap { position: fixed; inset: 0; z-index: 61; display: grid; place-items: center; padding: 16px; overflow: auto; }
.ws-modal { width: min(880px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--ws-surface); color: var(--ws-text); border-radius: var(--ws-radius-lg); box-shadow: var(--ws-shadow-lg); animation: ws-pop 0.3s var(--ws-ease); position: relative; }
.ws-modal-sm { width: min(560px, 100%); }
.ws-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: rgb(var(--ws-text-rgb) / 0.06); z-index: 2; }
.ws-close:hover { background: rgb(var(--ws-text-rgb) / 0.12); }
.ws-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid rgb(var(--ws-text-rgb) / 0.08); }
.ws-panel-head h3 { font-size: 1.2em; }
.ws-panel-body { padding: 20px 22px; overflow: auto; flex: 1; }
.ws-panel-foot { padding: 16px 22px 22px; border-top: 1px solid rgb(var(--ws-text-rgb) / 0.08); display: grid; gap: 10px; }
.ws-empty { text-align: center; padding: 48px 20px; color: var(--ws-muted); display: grid; gap: 14px; justify-items: center; }
.ws-empty .ws-icon { width: 44px; height: 44px; opacity: 0.6; }

/* Cart lines */
.ws-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgb(var(--ws-text-rgb) / 0.06); }
.ws-line .ws-media { width: 64px; height: 64px; border-radius: var(--ws-radius); }
.ws-line .ws-media-ph { aspect-ratio: 1; font-size: 1em; }
.ws-line-title { font-weight: 600; font-size: 0.95em; }
.ws-line-price { color: var(--ws-muted); font-size: 0.88em; }
.ws-qty { display: inline-flex; align-items: center; border: 1px solid rgb(var(--ws-text-rgb) / 0.14); border-radius: 999px; overflow: hidden; }
.ws-qty button { width: 32px; height: 32px; display: grid; place-items: center; }
.ws-qty button:hover { background: rgb(var(--ws-text-rgb) / 0.06); }
.ws-qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: 0.95em; }
.ws-remove { color: var(--ws-muted); font-size: 0.82em; text-decoration: underline; margin-top: 4px; }
.ws-totals { display: grid; gap: 6px; font-size: 0.95em; }
.ws-totals div { display: flex; justify-content: space-between; gap: 12px; }
.ws-totals .ws-total { font-weight: 800; font-size: 1.15em; padding-top: 8px; border-top: 1px solid rgb(var(--ws-text-rgb) / 0.1); margin-top: 4px; }

/* Cart FAB */
.ws-cart-fab {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 50; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--ws-primary); color: var(--ws-on-primary); font-weight: 700;
  box-shadow: 0 16px 32px -12px rgb(var(--ws-primary-rgb) / 0.7); transition: transform 0.25s var(--ws-ease), opacity 0.25s; animation: ws-pop 0.3s var(--ws-ease);
}
.ws-cart-fab:hover { transform: translateY(-2px); }
.ws-cart-fab[hidden] { display: none; }
.ws-cart-fab .ws-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--ws-primary-dark); font-size: 0.8em; }
body.ws-has-widget .ws-cart-fab { bottom: 96px; }

/* Item modal */
.ws-item-modal { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .ws-item-modal { grid-template-columns: 1fr; } }
.ws-gallery { background: rgb(var(--ws-text-rgb) / 0.04); display: flex; flex-direction: column; }
.ws-gallery-main { aspect-ratio: 1; }
.ws-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.ws-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.ws-thumbs button { width: 60px; height: 60px; border-radius: var(--ws-radius-sm); overflow: hidden; border: 2px solid transparent; flex-shrink: 0; }
.ws-thumbs button.ws-active { border-color: var(--ws-primary); }
.ws-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ws-item-detail { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.ws-item-detail h3 { font-size: 1.7em; }
.ws-item-detail .ws-price { font-size: 1.35em; color: var(--ws-primary); }
.ws-item-detail .ws-desc { color: var(--ws-muted); white-space: pre-line; }
.ws-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Forms */
.ws-form { display: grid; gap: 14px; }
.ws-form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ws-field { display: grid; gap: 6px; }
.ws-field label { font-size: 0.86em; font-weight: 600; color: var(--ws-muted); }
.ws-field label small { font-weight: 400; opacity: 0.8; }
.ws-input, .ws-field input, .ws-field select, .ws-field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--ws-radius); border: 1.5px solid rgb(var(--ws-text-rgb) / 0.14); background: var(--ws-bg); color: var(--ws-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ws-field input:focus, .ws-field select:focus, .ws-field textarea:focus, .ws-input:focus { outline: none; border-color: var(--ws-primary); box-shadow: 0 0 0 4px rgb(var(--ws-primary-rgb) / 0.15); }
.ws-field textarea { min-height: 96px; resize: vertical; }
.ws-field.ws-invalid input, .ws-field.ws-invalid textarea { border-color: #e11d48; }
.ws-choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.ws-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--ws-radius); border: 1.5px solid rgb(var(--ws-text-rgb) / 0.14); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.ws-choice:has(input:checked) { border-color: var(--ws-primary); background: rgb(var(--ws-primary-rgb) / 0.08); }
.ws-choice input { accent-color: var(--ws-primary); }
.ws-error { color: #e11d48; font-size: 0.9em; padding: 10px 12px; border-radius: var(--ws-radius); background: rgb(225 29 72 / 0.08); }
.ws-success { color: #047857; font-size: 0.95em; padding: 12px 14px; border-radius: var(--ws-radius); background: rgb(16 185 129 / 0.1); }
.ws-bg-primary .ws-success, .ws-bg-dark .ws-success, .ws-bg-gradient .ws-success { color: #fff; background: rgb(255 255 255 / 0.15); }
.ws-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.4); border-top-color: currentColor; animation: ws-spin 0.7s linear infinite; }

/* Booking */
.ws-steps { display: flex; gap: 8px; align-items: center; font-size: 0.85em; color: var(--ws-muted); margin-bottom: 6px; }
.ws-steps b { color: var(--ws-primary); }
.ws-week { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ws-week button { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; border: 1px solid rgb(var(--ws-text-rgb) / 0.14); }
.ws-week button:hover { background: rgb(var(--ws-text-rgb) / 0.06); }
.ws-week strong { font-size: 0.95em; }
.ws-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ws-day { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border-radius: var(--ws-radius); border: 1.5px solid rgb(var(--ws-text-rgb) / 0.1); cursor: pointer; font-size: 0.82em; transition: border-color 0.2s, background 0.2s; }
.ws-day small { color: var(--ws-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72em; }
.ws-day b { font-size: 1.25em; font-family: var(--ws-font-heading); }
.ws-day:disabled { opacity: 0.35; cursor: not-allowed; }
.ws-day.ws-active { border-color: var(--ws-primary); background: rgb(var(--ws-primary-rgb) / 0.1); }
.ws-day .ws-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ws-accent); }
.ws-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.ws-time { padding: 10px 8px; border-radius: var(--ws-radius); border: 1.5px solid rgb(var(--ws-text-rgb) / 0.12); text-align: center; font-weight: 600; font-size: 0.92em; transition: border-color 0.2s, background 0.2s; }
.ws-time:hover { border-color: var(--ws-primary); }
.ws-time.ws-active { background: var(--ws-primary); color: var(--ws-on-primary); border-color: var(--ws-primary); }
.ws-summary { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--ws-radius); background: rgb(var(--ws-primary-rgb) / 0.08); font-size: 0.95em; }
.ws-summary b { font-family: var(--ws-font-heading); font-size: 1.05em; }

/* Confirmation */
.ws-confirm { text-align: center; padding: 36px 28px; display: grid; gap: 12px; justify-items: center; }
.ws-confirm .ws-check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgb(16 185 129 / 0.14); color: #059669; animation: ws-pop 0.4s var(--ws-ease); }
.ws-confirm h3 { font-size: 1.6em; }
.ws-confirm .ws-code { font-family: var(--ws-font-heading); font-size: 1.3em; font-weight: 800; letter-spacing: 0.05em; padding: 8px 16px; border-radius: var(--ws-radius); background: rgb(var(--ws-text-rgb) / 0.06); }

/* Toast */
/* Toasts never intercept taps and sit below drawers/modals, so a fresh "Added"
   toast can't cover the checkout button on a phone. */
.ws-toast-wrap { position: fixed; inset-inline: 0; bottom: 22px; display: grid; justify-items: center; pointer-events: none; z-index: 55; gap: 8px; }
.ws-toast { pointer-events: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--ws-text); color: var(--ws-bg); font-weight: 600; font-size: 0.93em; box-shadow: var(--ws-shadow-lg); animation: ws-pop 0.3s var(--ws-ease); }
@media (max-width: 500px) { .ws-toast-wrap { bottom: auto; top: 14px; } }
.ws-toast.ws-toast-error { background: #e11d48; color: #fff; }

/* Contact form (in-theme) */
.ws-contact-form .ws-form { gap: 12px; }

/* ---------- Editor bridge (preview only) ---------- */
body.ws-bridge .ws-section { cursor: pointer; }
body.ws-bridge .ws-section.ws-bridge-hover { outline: 2px dashed rgb(20 184 166 / 0.8); outline-offset: -2px; }
body.ws-bridge .ws-section.ws-bridge-selected { outline: 2px solid #14b8a6; outline-offset: -2px; }
body.ws-bridge .ws-section.ws-bridge-selected::after, body.ws-bridge .ws-section.ws-bridge-hover::after {
  content: attr(data-ws-label); position: absolute; top: 10px; inset-inline-start: 10px; z-index: 5; padding: 4px 10px; border-radius: 999px;
  background: #14b8a6; color: #fff; font: 600 12px/1.4 system-ui, sans-serif; letter-spacing: 0.02em; pointer-events: none;
}
body.ws-bridge:not(.ws-replay) .ws-anim [data-ws-reveal], body.ws-bridge:not(.ws-replay) .ws-anim.ws-reveal-self { opacity: 1; transform: none; filter: none; }
body.ws-bridge .ws-cart-fab { bottom: 22px; }

/* ---------- Footer helpers ---------- */
.ws-powered { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82em; opacity: 0.7; }
.ws-powered:hover { opacity: 1; }
.ws-socials { display: flex; gap: 8px; }
.ws-socials a { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: rgb(var(--ws-text-rgb) / 0.06); transition: background 0.2s, color 0.2s; }
.ws-socials a:hover { background: var(--ws-primary); color: var(--ws-on-primary); }

/* Details/accordion (FAQ) */
.ws-faq details { border-bottom: 1px solid rgb(var(--ws-text-rgb) / 0.1); }
.ws-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.05em; }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary .ws-icon { transition: transform 0.3s var(--ws-ease); color: var(--ws-primary); }
.ws-faq details[open] summary .ws-icon { transform: rotate(45deg); }
.ws-faq details > div { padding: 0 0 18px; color: var(--ws-muted); max-width: 70ch; }

/* ---------- Visitor account (header button + modals) ---------- */
.ws-account-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid rgb(var(--ws-text-rgb) / 0.12); background: rgb(var(--ws-text-rgb) / 0.04); color: inherit; font: inherit; font-size: 0.88em; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.ws-account-btn:hover { background: rgb(var(--ws-text-rgb) / 0.08); }
.ws-account-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-account-name[hidden] { display: none; }
body.ws-signed-in .ws-account-btn { border-color: rgb(var(--ws-primary-rgb) / 0.45); color: var(--ws-primary); }
.ws-auth-switch { font-size: 0.9em; text-align: center; margin: 2px 0 0; }
.ws-link { background: none; border: 0; padding: 0; color: var(--ws-primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ws-account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ws-account-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: rgb(var(--ws-primary-rgb) / 0.14); color: var(--ws-primary); font-weight: 800; font-family: var(--ws-font-heading); flex: none; }
.ws-account-title { font-size: 1em; font-weight: 700; margin: 6px 0 10px; }
.ws-account-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ws-account-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--ws-radius); border: 1px solid rgb(var(--ws-text-rgb) / 0.1); }
.ws-account-list li > div { display: flex; flex-direction: column; gap: 3px; font-size: 0.92em; min-width: 0; }
.ws-account-list li > div:last-child { align-items: flex-end; flex: none; }
@media (max-width: 640px) { .ws-account-name { display: none !important; } .ws-account-btn { width: 40px; padding: 0; justify-content: center; } }
