/* kajdromu.hu – élő bemutató a nyitó részben */

/* ---------- Keret ---------- */

.demo { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.demo__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo__label { font-size: 15px; font-weight: 600; color: var(--muted); flex: 1 1 0; min-width: 0; }
.demo__tools { display: flex; gap: 6px; flex: none; }
.demo__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }

.demo__tab, .demo__icon {
  font: inherit; font-size: 15px; font-weight: 600; min-height: 44px;
  border-radius: 6px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  cursor: pointer; transition: background-color .25s, color .25s;
}
.demo__tab { padding: 0 8px; white-space: nowrap; }
.demo__tab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.demo__tab:hover:not([aria-pressed="true"]) { background: var(--soft); }
.demo__icon { width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.demo__icon[aria-pressed="true"] { background: var(--ink); color: #fff; }
.demo__icon[hidden] { display: none; }
.demo__icon .i-play { display: none; }
.demo__icon.is-paused .i-pause { display: none; }
.demo__icon.is-paused .i-play { display: block; }

.demo__viewport { position: relative; display: flex; justify-content: center; align-items: center; min-height: 430px; transition: min-height .9s var(--ease); }
.demo.is-mobile .demo__viewport { min-height: 540px; }

.demo__device {
  position: relative; width: 100%; height: 430px; overflow: hidden;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: 8px 8px 0 rgba(30, 42, 74, .08);
  transition: width .9s var(--ease), height .9s var(--ease), border-radius .9s var(--ease);
}
.demo.is-mobile .demo__device { width: 266px; height: 540px; border-radius: 34px; }

.demo__chrome {
  position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 3; background: #fff;
  display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 2px solid var(--ink);
}
.demo__chrome i { width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; flex: none; transition: opacity .4s; }
.demo__url {
  flex: 1; min-width: 0; height: 24px; margin-left: 8px; padding: 0 10px; border-radius: 6px;
  background: var(--soft); font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap;
}
.demo__url span { overflow: hidden; text-overflow: ellipsis; }
.demo.is-mobile .demo__chrome i { display: none; }
.demo.is-mobile .demo__url { margin: 0; justify-content: center; }

.demo__stage { position: absolute; top: 40px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.demo__screen {
  position: absolute; top: 0; left: 0; transform-origin: 0 0;
  container-type: inline-size; container-name: sc;
  transition: opacity .35s ease;
}
.demo.is-switching .demo__screen { opacity: 0; }

.demo__cursor {
  position: absolute; left: 0; top: 0; z-index: 10; width: 22px; height: 22px; pointer-events: none;
  transform: translate(var(--cx, 85%), var(--cy, 85%));
  transition: transform .8s cubic-bezier(.45, 0, .2, 1), opacity .3s;
}
.demo__cursor svg { position: relative; z-index: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.demo__ring { position: absolute; left: -9px; top: -9px; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--red); opacity: 0; transform: scale(.3); }
.demo__cursor.is-click .demo__ring { animation: demo-ring .55s ease-out; }
.demo__cursor.is-click svg { animation: demo-press .3s ease-out; }

.demo__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 6; }
.demo__progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width .5s ease; }

.demo__note { position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: flex-start; gap: 2px; margin-top: -22px; pointer-events: none; }
.demo__scribble {
  flex: none; width: 56px; height: 44px;
  fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible; pointer-events: none;
}
.demo__scribble path { stroke-dasharray: 140; stroke-dashoffset: 140; }
.demo__scribble.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) .15s; }
.demo__scribble.is-drawn path + path { transition-delay: .85s; transition-duration: .35s; }

.demo__caption {
  margin: 0; font-family: var(--hand); color: var(--red); font-size: 23px; line-height: 1.2; padding-top: 26px;
  text-align: right; transform: rotate(-2deg); min-height: 1.2em; transition: opacity .3s, transform .3s;
}
.demo__caption.is-swap { opacity: 0; transform: translateY(6px) rotate(-2deg); }

.demo-fly { position: absolute; z-index: 9; pointer-events: none; transition: transform .75s cubic-bezier(.5, -0.2, .3, 1), opacity .75s ease; }
.demo-fly svg { width: 100%; height: 100%; }

@keyframes demo-ring { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes demo-press { 0% { transform: scale(1); } 40% { transform: scale(.82); } 100% { transform: scale(1); } }

html:not(.js) .demo { display: none; }

/* betöltéskor az ablak a helyére kerül */
.js .demo__viewport { opacity: 0; transform: translateY(14px) rotate(-1.2deg); transition: opacity .7s ease .45s, transform .9s var(--ease) .45s, min-height .9s var(--ease); }
.js .is-ready .demo__viewport { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .demo__caption { font-size: 21px; }
  .demo__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo__device { height: 340px; }
  .demo__viewport { min-height: 340px; }
  .demo.is-mobile .demo__device { width: 250px; height: 500px; }
  .demo.is-mobile .demo__viewport { min-height: 500px; }
}

/* ---------- Jelenetek: közös ---------- */

.sc { position: relative; width: 100%; height: 100%; overflow: hidden; font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #26221d; background: #fff; }
.sc *, .sc *::before, .sc *::after { box-sizing: border-box; }
.sc h1, .sc h2, .sc h3, .sc h4, .sc p, .sc figure, .sc dl, .sc dd { margin: 0; }
.sc svg { display: block; }
.sc-page { position: relative; transition: transform 1s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
.sc [data-t] { transition: transform .18s ease, box-shadow .2s, background-color .25s, color .25s, border-color .2s; }
.sc .is-pressed { transform: scale(.95); }
.sc-input {
  display: block; min-height: 40px; margin-top: 5px; padding: 10px 12px;
  border: 1.5px solid #CFD6E0; border-radius: 8px; background: #fff; color: #222; font-size: 14px; font-weight: 500;
}
.sc-input--area { min-height: 76px; }
.sc-input.is-focus { border-color: var(--sc-accent, #2346C8); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc-accent, #2346C8) 20%, transparent); }
.sc-input.is-focus::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: #222; animation: sc-caret 1s steps(1) infinite; }
.sc-burger { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.sc-burger i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; }
@keyframes sc-caret { 50% { opacity: 0; } }
@keyframes sc-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sc-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---------- 1. Kávézó ---------- */

.sc-cafe { --sc-accent: #C98A3D; background: #F7F1E6; color: #2B2620; }
.cafe-head { display: flex; align-items: center; gap: 30px; padding: 20px 44px; }
.cafe-logo { display: flex; align-items: center; gap: 8px; font: 700 22px Georgia, 'Times New Roman', serif; color: #20402D; margin-right: auto; }
.cafe-nav { display: flex; gap: 26px; font-size: 14.5px; color: #4D463C; }
.cafe-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; background: #20402D; color: #F7F1E6; font-weight: 600; font-size: 14px; white-space: nowrap; }
.cafe-btn--lg { padding: 14px 24px; font-size: 15.5px; background: #C98A3D; color: #fff; }
.cafe-btn--block { width: 100%; padding: 13px; margin-top: 6px; background: #C98A3D; color: #fff; }
.cafe-link { font-weight: 600; color: #20402D; text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.cafe-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding: 18px 44px 48px; }
.cafe-hero__text { display: flex; flex-direction: column; gap: 18px; }
.cafe-hero h1 { font: 700 46px/1.06 Georgia, 'Times New Roman', serif; color: #20402D; letter-spacing: -0.01em; }
.cafe-hero p { font-size: 17px; color: #5C5448; max-width: 30em; }
.cafe-actions { display: flex; align-items: center; gap: 20px; margin-top: 4px; }
.cafe-hero__art svg { width: 100%; max-width: 330px; margin-left: auto; }
.cafe-steam path { stroke-dasharray: 60; animation: cafe-steam 2.8s ease-in-out infinite; }
.cafe-steam path:nth-child(2) { animation-delay: .5s; }
.cafe-steam path:nth-child(3) { animation-delay: 1s; }
@keyframes cafe-steam { 0% { stroke-dashoffset: 60; opacity: 0; } 40% { opacity: .9; } 100% { stroke-dashoffset: -60; opacity: 0; } }
.cafe-sec { padding: 36px 44px; display: flex; flex-direction: column; gap: 20px; }
.cafe-sec h2 { font: 700 32px Georgia, 'Times New Roman', serif; color: #20402D; }
.cafe-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cafe-cards article { background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 18px rgba(32, 64, 45, .08); }
.cafe-ico { width: 46px; height: 46px; border-radius: 50%; background: #F1E3CC; color: #6B4226; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.cafe-cards h3 { font-size: 17px; }
.cafe-cards p { font-size: 13.5px; color: #6D655A; }
.cafe-cards strong { color: #B9772A; font-size: 16px; margin-top: 4px; }
.cafe-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cafe-gallery svg { width: 100%; height: 170px; border-radius: 16px; }
.cafe-sec--split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; }
.cafe-sec--split > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.cafe-hours { display: grid; grid-template-columns: auto auto; gap: 10px 24px; font-size: 15.5px; }
.cafe-hours dt { color: #6D655A; }
.cafe-hours dd { font-weight: 700; }
.cafe-map { position: relative; border-radius: 16px; overflow: hidden; height: 220px; }
.cafe-map svg { width: 100%; height: 100%; }
.cafe-pin { position: absolute; left: 52%; top: 30%; transform: translateY(-160px); opacity: 0; }
.cafe-pin.is-drop { transform: none; opacity: 1; transition: transform .6s cubic-bezier(.3, 1.6, .6, 1), opacity .2s; }
.cafe-foot { padding: 26px 44px 40px; font-size: 13px; color: #8A8172; }
.cafe-modal { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(32, 40, 30, .45); opacity: 0; pointer-events: none; transition: opacity .35s; }
.cafe-modal.is-open { opacity: 1; }
.cafe-modal__card { position: relative; width: 400px; background: #fff; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; transform: translateY(20px) scale(.97); transition: transform .45s cubic-bezier(.2, 1.2, .4, 1); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.cafe-modal.is-open .cafe-modal__card { transform: none; }
.cafe-modal__card h3 { font: 700 24px Georgia, serif; color: #20402D; }
.cafe-modal__card label { font-size: 13px; font-weight: 600; color: #6D655A; }
.cafe-ok { position: absolute; inset: 0; border-radius: 18px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; opacity: 0; transition: opacity .35s; padding: 26px; }
.cafe-ok strong { font: 700 22px Georgia, serif; color: #20402D; }
.cafe-ok span:last-child { color: #6D655A; font-size: 14.5px; }
.cafe-ok__icon { width: 56px; height: 56px; border-radius: 50%; background: #2F6B45; color: #fff; display: flex; align-items: center; justify-content: center; transform: scale(.4); transition: transform .5s cubic-bezier(.3, 1.6, .6, 1) .1s; }
.cafe-modal.is-done .cafe-ok { opacity: 1; }
.cafe-modal.is-done .cafe-ok__icon { transform: none; }

@container sc (max-width: 600px) {
  .cafe-head { padding: 16px 20px; }
  .cafe-nav, .cafe-head > .cafe-btn { display: none; }
  .sc-cafe .sc-burger { display: flex; color: #20402D; background: #EFE4D2; }
  .cafe-hero { grid-template-columns: 1fr; padding: 6px 20px 30px; gap: 8px; }
  .cafe-hero__art { order: -1; }
  .cafe-hero__art svg { max-width: 230px; margin: 0 auto; }
  .cafe-hero h1 { font-size: 34px; }
  .cafe-hero p { font-size: 16px; }
  .cafe-actions { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
  .cafe-sec { padding: 26px 20px; }
  .cafe-cards { grid-template-columns: 1fr; gap: 12px; }
  .cafe-cards article { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 14px; }
  .cafe-ico { margin: 0; }
  .cafe-cards article h3 { flex: 1; }
  .cafe-cards article p { width: 100%; order: 3; }
  .cafe-gallery { grid-template-columns: 1fr 1fr; }
  .cafe-gallery svg:last-child { display: none; }
  .cafe-gallery svg { height: 130px; }
  .cafe-sec--split { grid-template-columns: 1fr; }
  .cafe-modal__card { width: calc(100% - 32px); }
}

/* ---------- 2. Villanyszerelő ---------- */

.sc-volt { --sc-accent: #14284B; background: #F3F5F9; color: #14284B; }
.volt-head { position: relative; z-index: 4; display: flex; align-items: center; gap: 28px; padding: 18px 40px; background: #fff; box-shadow: 0 2px 10px rgba(20, 40, 75, .08); }
.volt-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; margin-right: auto; letter-spacing: -0.01em; }
.volt-nav { display: flex; gap: 24px; font-size: 15px; font-weight: 600; color: #4A5B7A; }
.volt-nav span { position: relative; padding: 6px 0; }
.volt-nav span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px; background: #F5B700; transform: scaleX(0); transition: transform .35s ease; }
.volt-nav span.is-on { color: #14284B; }
.volt-nav span.is-on::after { transform: scaleX(1); }
.volt-call { padding: 10px 18px; border-radius: 8px; background: #F5B700; color: #14284B; font-weight: 700; font-size: 14px; }
.volt-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; display: flex; flex-direction: column; padding: 8px 20px 14px; box-shadow: 0 12px 20px rgba(20, 40, 75, .12); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.volt-menu span { padding: 14px 4px; font-weight: 700; font-size: 17px; border-bottom: 1px solid #E6EAF2; }
.sc-volt.is-menu .volt-menu { opacity: 1; transform: none; }
.volt-pages { position: relative; height: calc(100% - 78px); }
.volt-page { position: absolute; inset: 0; padding: 0 0 30px; overflow: hidden; background: #F3F5F9; opacity: 0; transform: translateX(40px); transition: opacity .4s ease .18s, transform .55s cubic-bezier(.2, .8, .3, 1) .18s; pointer-events: none; }
.volt-page.is-on { z-index: 2; opacity: 1; transform: none; }
.volt-page.is-off { opacity: 0; transform: translateX(-40px); transition: opacity .2s ease, transform .3s ease; }
.volt-page > h1 { font-size: 34px; font-weight: 800; padding: 30px 40px 18px; letter-spacing: -0.01em; }
.volt-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: center; padding: 36px 40px 70px; background: #14284B; color: #fff; }
.volt-hero > div { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.volt-hero h1 { font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; }
.volt-hero p { font-size: 16.5px; color: #C9D4E8; }
.volt-hero svg { width: 100%; max-width: 270px; margin-left: auto; }
.volt-btn { display: inline-flex; padding: 13px 22px; border-radius: 8px; background: #F5B700; color: #14284B; font-weight: 800; font-size: 15px; }
.volt-usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 40px; margin-top: -40px; }
.volt-usp div { background: #fff; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 20px rgba(20, 40, 75, .1); border-top: 4px solid #F5B700; }
.volt-usp b { font-size: 17px; }
.volt-usp span { font-size: 13.5px; color: #5A6A88; }
.volt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 40px; }
.volt-grid article { background: #fff; border-radius: 12px; padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; box-shadow: 0 4px 14px rgba(20, 40, 75, .07); }
.volt-ico { grid-row: span 3; width: 44px; height: 44px; border-radius: 10px; background: #FFF3CC; color: #14284B; display: flex; align-items: center; justify-content: center; }
.volt-grid h3 { font-size: 17px; }
.volt-grid p { font-size: 13.5px; color: #5A6A88; }
.volt-grid strong { font-size: 14px; color: #B07F00; }
.volt-page.is-on .volt-grid article, .volt-page.is-on .volt-refs figure { animation: sc-rise .55s cubic-bezier(.2, .8, .3, 1) both; }
.volt-page.is-on .volt-grid article:nth-child(2), .volt-page.is-on .volt-refs figure:nth-child(2) { animation-delay: .08s; }
.volt-page.is-on .volt-grid article:nth-child(3), .volt-page.is-on .volt-refs figure:nth-child(3) { animation-delay: .16s; }
.volt-page.is-on .volt-grid article:nth-child(4) { animation-delay: .24s; }
.volt-refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 40px; }
.volt-refs figure { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(20, 40, 75, .07); transition: transform .35s ease, box-shadow .35s ease; }
.volt-refs svg { width: 100%; height: 190px; transition: transform .6s ease; }
.volt-refs figcaption { padding: 12px 14px; font-weight: 700; font-size: 14.5px; }
.volt-refs figure.is-hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(20, 40, 75, .18); }
.volt-refs figure.is-hover svg { transform: scale(1.06); }
.volt-contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; padding: 0 40px; align-items: start; }
.volt-form { position: relative; background: #fff; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 4px 14px rgba(20, 40, 75, .07); }
.volt-form label { font-size: 13px; font-weight: 700; color: #5A6A88; }
.volt-form .volt-btn { align-self: flex-start; }
.volt-sent { position: absolute; inset: 0; border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 17px; opacity: 0; transition: opacity .4s; }
.volt-sent svg { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: #F5B700; color: #14284B; }
.volt-form.is-sent .volt-sent { opacity: 1; }
.volt-card { background: #14284B; color: #fff; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.volt-card b { font-size: 17px; color: #F5B700; }

@container sc (max-width: 600px) {
  .volt-head { padding: 14px 18px; }
  .volt-nav, .volt-call { display: none; }
  .sc-volt .sc-burger { display: flex; color: #14284B; background: #F3F5F9; }
  .volt-pages { height: calc(100% - 68px); }
  .volt-hero { grid-template-columns: 1fr; padding: 24px 20px 64px; }
  .volt-hero svg { max-width: 180px; margin: 0 auto; order: -1; }
  .volt-hero h1 { font-size: 30px; }
  .volt-usp { grid-template-columns: 1fr; padding: 0 20px; gap: 10px; }
  .volt-page > h1 { font-size: 28px; padding: 22px 20px 14px; }
  .volt-grid, .volt-refs, .volt-contact { grid-template-columns: 1fr; padding: 0 20px; gap: 12px; }
  .volt-refs svg { height: 150px; }
  .volt-refs figure:nth-child(3), .volt-card { display: none; }
}

/* ---------- 3. Mézbolt ---------- */

.sc-shop { --sc-accent: #E59A1E; background: #FFFBF3; color: #3B2A17; }
.shop-head { display: flex; align-items: center; gap: 22px; padding: 16px 32px; background: #fff; border-bottom: 1px solid #F1E4CC; }
.shop-logo { display: flex; align-items: center; gap: 8px; font: 700 21px Georgia, serif; }
.shop-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: #FAF3E6; color: #9A8463; font-size: 14px; }
.shop-cart { position: relative; width: 44px; height: 44px; border-radius: 12px; background: #FFF3DC; display: flex; align-items: center; justify-content: center; color: #3B2A17; }
.shop-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #C8322B; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .6, 1); }
.shop-badge.is-on { transform: scale(1); }
.shop-badge.is-pop { animation: sc-pop .45s ease; }
.shop-cats { display: flex; gap: 8px; padding: 16px 32px 6px; }
.shop-cats span { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #F1E4CC; font-size: 13.5px; font-weight: 600; color: #6B5A42; }
.shop-cats span.is-on { background: #3B2A17; color: #fff; border-color: #3B2A17; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 14px 32px 24px; }
.shop-card { background: #fff; border-radius: 16px; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 4px 14px rgba(59, 42, 23, .07); }
.shop-img { height: 150px; border-radius: 12px; background: radial-gradient(circle at 50% 60%, #FFF3DC, #FBE6BE); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.shop-img svg { height: 128px; width: auto; }
.shop-card h4 { font-size: 16px; }
.shop-card p { font-size: 12.5px; color: #8A7658; }
.shop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.shop-row strong { font-size: 15.5px; }
.shop-add { padding: 8px 12px; border-radius: 10px; background: #E59A1E; color: #fff; font-weight: 700; font-size: 13px; }
.shop-add.is-added { background: #2E7D4F; }
.shop-veil { position: absolute; inset: 0; background: rgba(59, 42, 23, .35); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 4; }
.shop-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 360px; z-index: 5; background: #fff; box-shadow: -10px 0 30px rgba(59, 42, 23, .18); transform: translateX(105%); transition: transform .55s cubic-bezier(.2, .8, .3, 1); overflow: hidden; }
.sc-shop.is-drawer .shop-veil { opacity: 1; }
.sc-shop.is-drawer .shop-drawer { transform: none; }
.shop-pane { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: transform .5s cubic-bezier(.2, .8, .3, 1), opacity .4s; }
.shop-pane h3 { font: 700 24px Georgia, serif; }
.shop-pane--pay, .shop-pane--done { transform: translateX(100%); opacity: 0; }
.sc-shop.is-pay .shop-pane--cart { transform: translateX(-30%); opacity: 0; }
.sc-shop.is-pay .shop-pane--pay { transform: none; opacity: 1; }
.sc-shop.is-done .shop-pane--pay { transform: translateX(-30%); opacity: 0; }
.sc-shop.is-done .shop-pane--done { transform: none; opacity: 1; }
.shop-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.shop-lines li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: #FFFBF3; font-size: 14px; animation: sc-rise .4s ease both; }
.shop-lines li svg { width: 40px; height: 46px; }
.shop-lines li b { display: block; }
.shop-lines li small { color: #8A7658; }
.shop-sum, .shop-total { display: flex; justify-content: space-between; font-size: 14px; color: #6B5A42; }
.shop-sum { margin-top: auto; padding-top: 12px; border-top: 1px dashed #E8D7B8; }
.shop-total { font-size: 16px; color: #3B2A17; }
.shop-total strong { font-size: 20px; }
.shop-btn { display: flex; justify-content: center; padding: 14px; border-radius: 12px; background: #3B2A17; color: #fff; font-weight: 700; font-size: 15px; }
.shop-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1.5px solid #EADBC0; font-weight: 600; font-size: 14.5px; }
.shop-opt i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B9A27E; position: relative; }
.shop-opt.is-on { border-color: #E59A1E; background: #FFF6E3; }
.shop-opt.is-on i { border-color: #E59A1E; }
.shop-opt.is-on i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #E59A1E; }
.shop-pane--pay .shop-total { margin-top: auto; }
.shop-pane--done { align-items: center; justify-content: center; text-align: center; }
.shop-pane--done p { color: #6B5A42; font-size: 14.5px; }
.shop-done__icon { width: 64px; height: 64px; border-radius: 50%; background: #2E7D4F; color: #fff; display: flex; align-items: center; justify-content: center; transform: scale(.3); transition: transform .5s cubic-bezier(.3, 1.6, .6, 1) .2s; }
.sc-shop.is-done .shop-done__icon { transform: none; }

@container sc (max-width: 600px) {
  .shop-head { padding: 14px 16px; gap: 12px; }
  .shop-logo { margin-right: auto; font-size: 19px; }
  .shop-search { display: none; }
  .shop-cats { padding: 12px 16px 4px; overflow: hidden; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); padding: 12px 16px; gap: 12px; }
  .shop-img { height: 120px; }
  .shop-img svg { height: 100px; }
  .shop-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .shop-add { text-align: center; }
  .shop-drawer { width: 100%; }
}

/* ---------- 4. Foglalási rendszer ---------- */

.sc-app { --sc-accent: #4F46E5; display: grid; grid-template-columns: 178px 1fr; background: #F4F6FA; color: #1B2333; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.app-side { background: #1B2333; color: #C5CBDA; padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; }
.app-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; padding: 0 6px; }
.app-side nav { display: flex; flex-direction: column; gap: 4px; }
.app-side nav span { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.app-side nav span em { font-style: normal; }
.app-side nav span.is-on { background: #4F46E5; color: #fff; }
.app-main { position: relative; padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow: hidden; }
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-top h3 { font-size: 21px; }
.app-top p { font-size: 13px; color: #6B7488; }
.app-bell { position: relative; width: 42px; height: 42px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(27, 35, 51, .06); }
.app-bell b { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #E5484D; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .6, 1); }
.app-bell.is-dot b { transform: scale(1); }
.app-view { display: none; flex-direction: column; gap: 16px; }
.app-view.is-on { display: flex; animation: sc-rise .45s ease both; }
.app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.app-kpis > div { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 2px 8px rgba(27, 35, 51, .05); }
.app-kpis span { font-size: 12.5px; color: #6B7488; font-weight: 600; }
.app-kpis strong { font-size: 21px; white-space: nowrap; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.app-kpis em { font-style: normal; font-size: 12px; color: #6B7488; }
.app-kpis em.up { color: #16A34A; font-weight: 700; }
.app-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.app-card { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 2px 8px rgba(27, 35, 51, .05); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.app-card h4 { font-size: 14.5px; }
.app-chart { width: 100%; height: 190px; }
.app-line { stroke-dasharray: 560; stroke-dashoffset: 560; }
.app-area { opacity: 0; }
.app-dot { opacity: 0; }
.app-chart.is-drawn .app-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1); }
.app-chart.is-drawn .app-area { opacity: 1; transition: opacity .8s ease .8s; }
.app-chart.is-drawn .app-dot { opacity: 1; transition: opacity .3s ease 1.5s; }
.app-days { display: flex; justify-content: space-between; font-size: 11.5px; color: #8A93A6; }
.app-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.app-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; background: #F7F8FC; font-size: 13px; }
.app-list li.is-new { animation: app-new 1.6s ease; }
.app-list time { font-weight: 700; color: #4F46E5; font-variant-numeric: tabular-nums; }
.app-list span { display: flex; flex-direction: column; color: #6B7488; font-size: 12px; min-width: 0; }
.app-list b { color: #1B2333; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes app-new { 0% { opacity: 0; transform: translateY(-12px); background: #E8E6FF; } 30% { opacity: 1; transform: none; background: #E8E6FF; } 100% { background: #F7F8FC; } }
.pill { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill--ok { background: #DCFCE7; color: #166534; }
.pill--wait { background: #FEF3C7; color: #92400E; }
.app-toast { position: absolute; right: 22px; bottom: 22px; z-index: 5; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #1B2333; color: #fff; box-shadow: 0 16px 30px rgba(27, 35, 51, .3); transform: translateY(140%); opacity: 0; transition: transform .5s cubic-bezier(.2, 1.2, .4, 1), opacity .3s; }
.app-toast.is-in { transform: none; opacity: 1; }
.app-toast div { display: flex; flex-direction: column; font-size: 13px; }
.app-toast span:not(.app-toast__ico) { color: #C5CBDA; }
.app-toast__ico { width: 36px; height: 36px; border-radius: 10px; background: #4F46E5; display: flex; align-items: center; justify-content: center; }
.app-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.app-table th { text-align: left; font-size: 12px; color: #6B7488; padding: 8px 6px; border-bottom: 1px solid #E5E8F0; }
.app-table td { padding: 11px 6px; border-bottom: 1px solid #EEF0F5; }
.app-view.is-on .app-table tbody tr { animation: sc-rise .4s ease both; }
.app-view.is-on .app-table tbody tr:nth-child(2) { animation-delay: .07s; }
.app-view.is-on .app-table tbody tr:nth-child(3) { animation-delay: .14s; }
.app-view.is-on .app-table tbody tr:nth-child(4) { animation-delay: .21s; }
.app-note { font-size: 12.5px; color: #6B7488; }

@container sc (max-width: 600px) {
  .sc-app { grid-template-columns: 1fr; }
  .app-side { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; flex-direction: row; padding: 8px 10px; }
  .app-logo { display: none; }
  .app-side nav { flex-direction: row; justify-content: space-around; width: 100%; }
  .app-side nav span { flex-direction: column; gap: 3px; padding: 8px 6px; font-size: 10.5px; }
  .app-main { padding: 18px 16px 90px; }
  .app-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-kpis strong { font-size: 21px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-chart { height: 110px; }
  .app-grid > .app-card:last-child { order: -1; }
  .app-toast { left: 14px; right: 14px; bottom: 86px; }
  .app-table th:nth-child(1), .app-table td:nth-child(1) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cafe-steam path { animation: none; opacity: .8; stroke-dashoffset: 0; }
  .demo .sc *, .demo__screen, .demo__viewport { transition: none !important; animation: none !important; }
}
