/*
Theme Name: Játékturi
Theme URI: https://jatekturi.hu
Author: Játékturi
Description: Egyedi WordPress sablon a Játékturi bizományi játékbolt (Budapest, XIII. kerület) számára. Aktiváláskor automatikusan létrehozza mind az öt oldalt (Főoldal, Rólunk, Kínálatunk, Rendelhető termékek, Kapcsolat), a főmenüt, a kategóriákat és a bolti fotókat. A bolt adatai és a nyitvatartás a Megjelenés → Testreszabás → Játékturi beállítások menüben szerkeszthetők.
Version: 2.0.3
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jatekturi
*/

/* ==========================================================================
   Self-hosted fonts (Baloo 2, Nunito — SIL Open Font License, see assets/fonts)
   ========================================================================== */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('assets/fonts/baloo2-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('assets/fonts/baloo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Játékturi – design tokens
   ========================================================================== */
:root {
  --red: #e6342c;
  --red-dark: #c81e1e;
  --red-darker: #9e1717;
  --red-tint: #fff0ef;
  --red-tint-2: #ffe1de;
  --ink: #241f1e;
  --gray: #6b6460;
  --gray-light: #eee7e5;
  --white: #ffffff;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(158, 23, 23, 0.08);
  --shadow-md: 0 12px 30px rgba(158, 23, 23, 0.14);
  --font-head: 'Baloo 2', 'Comic Sans MS', cursive, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--red-darker);
}
p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--red-dark); border-color: var(--red); }
.btn-outline:hover { background: var(--red-tint); }
.btn-light { background: var(--white); color: var(--red-dark); }
.btn-light:hover { background: var(--red-tint); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  transition: padding 0.25s ease;
}
.site-header.is-scrolled .header-inner { padding: 8px 24px; }
.brand-logo { height: 40px; width: auto; }
.brand-logo--footer { height: 34px; filter: brightness(0) invert(1); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--red-dark); border-bottom-color: var(--red); }
.main-nav a.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  border-bottom: none;
}
.main-nav a.nav-cta:hover { background: var(--red-dark); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--red-dark); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--red-dark);
  background: var(--red-tint);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  color: var(--ink);
}
.hero h1 .highlight { color: var(--red); }
.hero-lead { font-size: 1.15rem; color: var(--gray); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
.hero-quickfacts { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.hero-quickfacts li { display: flex; align-items: center; gap: 10px; color: var(--gray); font-weight: 700; }
.hero-quickfacts a { color: var(--ink); }
.hero-quickfacts .status-badge { margin-top: 0; padding: 5px 14px; font-size: 0.85rem; box-shadow: none; background: var(--red-tint); }

.hero-visual { position: relative; height: 340px; display: flex; align-items: center; justify-content: center; }
.blob {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--red-tint-2), var(--red-tint));
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  animation: blobmove 10s ease-in-out infinite;
}
.blob-alt { width: 280px; height: 280px; }
@keyframes blobmove {
  0%, 100% { border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%; }
  50% { border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%; }
}
.hero-illustration {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(var(--shadow-md));
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.floaty {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px;
  color: var(--red);
  animation: float 5s ease-in-out infinite;
  transition: transform 0.15s ease-out;
  will-change: transform;
  z-index: 2;
}
.floaty-1 { top: 10%; left: 8%; animation-delay: 0s; }
.floaty-2 { top: 55%; left: 0%; animation-delay: 1.2s; }
.floaty-3 { top: 5%; right: 4%; animation-delay: 0.6s; }
.floaty-4 { bottom: 6%; right: 14%; animation-delay: 1.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 72px 0; }
.section-alt { background: var(--red-tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--gray); font-size: 1.05rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon .icon { width: 30px; height: 30px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: 0.97rem; margin-bottom: 0; }

.icon { width: 24px; height: 24px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 34px; height: 34px; }
.icon-lg { width: 44px; height: 44px; }
.icon-xl { width: 60px; height: 60px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.category-grid--detailed { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.category-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--red-tint-2);
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  color: var(--ink);
}
.category-chip .icon { color: var(--red); flex-shrink: 0; }

.note-text {
  margin-top: 28px;
  text-align: center;
  color: var(--gray);
  font-style: italic;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.center-cta { text-align: center; margin-top: 40px; }

.story-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.story-inner--reverse { grid-template-columns: 1.2fr 0.8fr; }
.story-inner--reverse .story-visual { order: 2; }
.story-visual { position: relative; height: 260px; display: flex; align-items: center; justify-content: center; }
.story-heart { position: relative; color: var(--red); z-index: 1; }
.story-text p { color: var(--gray); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
}
.step-num {
  position: absolute;
  top: -14px; left: 20px;
  background: var(--red-dark);
  color: var(--white);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.step-card h3 { font-size: 1.1rem; }
.step-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 0; }

.section-cta {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-darker) 100%);
  color: var(--white);
}
.section-cta h2, .section-cta p { color: var(--white); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-inner .hero-actions { margin: 0; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  padding: 56px 0 40px;
  background: var(--red-tint);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .hero-lead { margin: 0 auto; }
.page-hero .eyebrow { margin-bottom: 12px; }

/* Live open/closed status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray);
  flex-shrink: 0;
}
.status-badge--pending .status-dot { background: var(--gray); }
.status-badge--open { color: #1a7a3c; }
.status-badge--open .status-dot { background: #2fb35a; animation: status-pulse 1.8s ease-in-out infinite; }
.status-badge--closed { color: var(--red-dark); }
.status-badge--closed .status-dot { background: var(--red); }
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,179,90,0.45); }
  50% { box-shadow: 0 0 0 6px rgba(47,179,90,0); }
}
@media (prefers-reduced-motion: reduce) {
  .status-badge--open .status-dot { animation: none; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.reveal .contact-card { opacity: 0; transform: translateY(18px); }
.reveal.is-visible .contact-card { opacity: 1; transform: none; }
.reveal.is-visible .contact-cards .contact-card:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .contact-cards .contact-card:nth-child(2) { transition-delay: 0.12s; }
.reveal.is-visible .contact-cards .contact-card:nth-child(3) { transition-delay: 0.19s; }
.reveal.is-visible .contact-cards .contact-card:nth-child(4) { transition-delay: 0.26s; }
.reveal.is-visible .contact-cards .contact-card:nth-child(5) { transition-delay: 0.33s; }
.contact-card--hours { grid-column: span 2; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { margin-bottom: 0; color: var(--gray); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--gray-light);
  background: transparent;
  color: var(--gray);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover { background: var(--red-tint); color: var(--red-dark); border-color: var(--red-tint-2); }
.copy-btn-icon { display: inline-flex; width: 16px; height: 16px; }
.copy-btn-icon--done { display: none; }
.copy-btn.is-copied { background: var(--red-tint); color: #1a7a3c; border-color: var(--red-tint-2); }
.copy-btn.is-copied .copy-btn-icon--default { display: none; }
.copy-btn.is-copied .copy-btn-icon--done { display: inline-flex; color: #1a7a3c; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed var(--gray-light);
  font-size: 0.95rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li span:first-child { font-weight: 700; }
.hours-list--compact { color: rgba(255,255,255,0.85); }
.hours-list--compact li { border-bottom: 1px dashed rgba(255,255,255,0.15); }

.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 320px;
}
.map-wrap iframe { height: 100%; min-height: 320px; }
.map-chip {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--red-dark) !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}
.map-chip:hover { transform: translateY(-2px); background: var(--red); color: var(--white) !important; }
.map-chip .icon { color: inherit; }

/* ==========================================================================
   Social links (footer + kapcsolat)
   ========================================================================== */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-tint);
  color: var(--red);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.social-icon .icon { width: 20px; height: 20px; }
.social-icon:hover, .social-icon:focus-visible {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px) rotate(-8deg);
  outline: none;
}
.social-links--footer .social-icon { background: rgba(255,255,255,0.12); color: var(--white); }
.social-links--footer .social-icon:hover { background: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 24px 32px;
}
.footer-brand p { color: rgba(255,255,255,0.65); margin-top: 12px; }
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--white); }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .floaty { animation: none; }
}

/* ==========================================================================
   Stats row
   ========================================================================== */
.stats-section { padding: 32px 0 8px; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  text-align: center;
  background: var(--red-tint);
  border-radius: var(--radius-md);
  padding: 28px 16px;
}
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--red);
}
.stat-label {
  display: block;
  color: var(--gray);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ==========================================================================
   Mini gallery (home teaser)
   ========================================================================== */
.mini-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}
.mini-gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mini-gallery-card img { width: 78px; height: 78px; border-radius: 50%; }
.mini-gallery-card span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  text-align: center;
}

/* ==========================================================================
   Category spotlight carousel
   ========================================================================== */
.spotlight-stage {
  position: relative;
  min-height: 260px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.spotlight-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 32px 40px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.spotlight-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.spotlight-slide img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.spotlight-caption h3 { font-size: 1.4rem; margin-bottom: 8px; }
.spotlight-caption p { color: var(--gray); margin: 0; }
.spotlight-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.spotlight-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  background: var(--red-tint-2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.spotlight-dot.is-active { background: var(--red); transform: scale(1.2); }

/* ==========================================================================
   Full gallery + lightbox (kínálatunk page)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.gallery-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-card:hover, .gallery-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-md); outline: none; }
.gallery-card img { width: 100%; max-width: 130px; aspect-ratio: 1 / 1; border-radius: 50%; }
.gallery-card-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  text-align: center;
}
.gallery-card-desc {
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
  line-height: 1.4;
}
.gallery-card--more {
  background: var(--red-tint);
  border: 2px dashed var(--red-tint-2);
  text-decoration: none !important;
  justify-content: center;
}
.gallery-card--more:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.gallery-card-more-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-card-more-icon .icon { width: 26px; height: 26px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 31, 30, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox.is-open .lightbox-backdrop { opacity: 1; }
.lightbox-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.lightbox.is-open .lightbox-panel { transform: scale(1); opacity: 1; }
.lightbox-panel img { width: 200px; height: 200px; margin: 0 auto 18px; border-radius: 50%; }
.lightbox-panel h3 { margin-bottom: 8px; }
.lightbox-panel p { color: var(--gray); margin-bottom: 0; }
.lightbox-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
}
.lightbox-close:hover { color: var(--red-dark); }

.lightbox-panel--product { max-width: 480px; }
.product-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.lightbox-panel--product img#productLightboxImage {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--red-tint);
  margin: 0;
}
.product-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--red);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.product-lightbox-nav:not([hidden]) { display: flex; align-items: center; justify-content: center; }
.product-lightbox-nav:hover { background: var(--red); color: var(--white); }
.product-lightbox-nav--prev { left: -6px; }
.product-lightbox-nav--next { right: -6px; }
.product-lightbox-count { font-size: 0.85rem; font-weight: 700; color: var(--gray); margin-bottom: 10px; }
#productLightboxBrand { font-weight: 700; color: var(--red-dark); }

.feed-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--red-tint-2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px auto 0;
  max-width: 640px;
  box-shadow: var(--shadow-sm);
}
.feed-notice > .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}
.feed-notice-text p { margin-bottom: 10px; color: var(--ink); font-size: 0.95rem; }
.feed-notice-links { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.feed-notice-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red-dark);
}
.feed-notice-links .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Real photo snapshots (kínálatunk) — scattered, drifting, no labels
   ========================================================================== */
.snap-section { overflow: hidden; }
.snap-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 0 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.snap-marquee {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.snap-marquee--reverse { animation-direction: reverse; animation-duration: 40s; }
.snap-marquee:hover { animation-play-state: paused; }
.snap-card {
  flex: 0 0 auto;
  width: 176px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 8px 8px 12px;
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.snap-card:hover, .snap-card:focus-visible {
  transform: rotate(0deg) translateY(-8px) scale(1.06);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  outline: none;
}
.snap-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
}
@media (max-width: 720px) {
  .snap-card { width: 140px; }
  .snap-card img { height: 112px; }
}

/* ==========================================================================
   Rendelhető termékek (supplier feed page)
   ========================================================================== */
.feed-toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.feed-search {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
}
.feed-search .icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--gray);
  pointer-events: none;
}
.feed-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--gray-light);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feed-search input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}
.feed-category {
  flex: 0 1 260px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}
.feed-category:focus { outline: none; border-color: var(--red); }
.feed-count {
  color: var(--gray);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.feed-empty {
  text-align: center;
  color: var(--gray);
  font-style: italic;
  padding: 40px 0;
}

.product-grid { gap: 22px; margin-bottom: 40px; }
.product-grid:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.product-card {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover, .product-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-md); outline: none; }
.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--red-tint);
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* Store logo shown for products without a real photo */
.product-card-img--logo img { padding: 18% 14%; }
#productLightboxImage.is-logo { padding: 70px 60px; }
.product-card-more {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(36, 31, 30, 0.72);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-card-body { padding: 14px 16px 18px; }
.product-card-brand {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red-dark);
  background: var(--red-tint);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.product-card-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 6px;
}
.product-card-category {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
}

@media (max-width: 560px) {
  .feed-toolbar { flex-direction: column; }
  .feed-search, .feed-category { flex-basis: auto; }
}

/* ==========================================================================
   Story illustration (about/rólunk images)
   ========================================================================== */
.story-illustration {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
}

/* ==========================================================================
   2026 refresh: ambient texture, scroll progress, motion accents
   ========================================================================== */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-darker));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Magnetic / shine buttons */
.btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn-outline::before { background: linear-gradient(120deg, transparent, rgba(230,52,44,0.18), transparent); }

/* Cursor spotlight (reusable on any .spotlight-hover container) */
.hero, .spotlight-hover { position: relative; }
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 30%), rgba(230,52,44,0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.spotlight-hover:hover .hero-spotlight { opacity: 1; }
.hero-inner { position: relative; z-index: 1; }
.page-hero .container { position: relative; z-index: 1; }

/* Rotating badge sticker */
.spin-badge {
  position: absolute;
  top: -18px;
  right: -6px;
  width: 108px;
  height: 108px;
  z-index: 3;
}
.spin-badge-ring {
  width: 100%;
  height: 100%;
  animation: spin-slow 18s linear infinite;
}
.spin-badge-ring text { fill: var(--white); }
.spin-badge-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.spin-badge-core .icon { width: 26px; height: 26px; }
.spin-badge::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--red);
  border-radius: 50%;
  z-index: -1;
  box-shadow: var(--shadow-md);
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Marquee ticker */
.marquee {
  overflow: hidden;
  background: var(--red);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  padding: 0 28px;
  position: relative;
}
.marquee-item::after {
  content: "★";
  position: absolute;
  right: -3px;
  color: rgba(255,255,255,0.6);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Bento feature grid */
.feature-grid--bento { grid-template-columns: repeat(4, 1fr); }
.feature-grid--bento .feature-card--wide { grid-column: span 2; }

@media (prefers-reduced-motion: reduce) {
  .spin-badge-ring, .marquee-track, .snap-marquee { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner, .story-inner, .story-inner--reverse, .contact-grid { grid-template-columns: 1fr; }
  .story-inner--reverse .story-visual { order: 0; }
  .hero-visual { height: 260px; margin-top: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .spotlight-slide { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px; }
  .stats-row { grid-template-columns: 1fr; }
  .feature-grid--bento { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .feature-grid--bento .feature-card--wide { grid-column: span 1; }
  .spin-badge { width: 84px; height: 84px; top: -10px; right: -4px; }
  .spin-badge-core .icon { width: 20px; height: 20px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a.nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
  .cta-inner { justify-content: center; text-align: center; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card--hours { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .hours-list li, .footer-links li { justify-content: center; }
}

/* ==========================================================================
   WordPress-specific additions
   ========================================================================== */

/* Elements toggled with the `hidden` attribute must really disappear, even
   when a component class (e.g. .btn on "Továbbiak betöltése") sets its own
   display value. */
[hidden] { display: none !important; }

/* Real photos keep their proportions inside the round lightbox frame. */
.lightbox-panel img { object-fit: cover; }

/* Keep the sticky header, progress bar and mobile menu clear of the admin
   bar for logged-in users. */
.admin-bar .site-header,
.admin-bar .scroll-progress { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar .scroll-progress { top: 46px; }
}
@media (min-width: 601px) and (max-width: 720px) {
  .admin-bar .main-nav { top: 116px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header,
  .admin-bar .scroll-progress { top: 0; }
}

/* Owner-editable story text (Rólunk page content from the block editor) */
.story-text ul,
.story-text ol { margin: 0 0 1em; padding-left: 1.4em; color: var(--gray); }
.story-text ul { list-style: disc; }
.story-text ol { list-style: decimal; }

/* Generic pages and posts (anything without a Játékturi page template) */
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content ul,
.entry-content ol { margin: 0 0 1em; padding-left: 1.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 1.4em; }
.entry-content a { text-decoration: underline; }
.entry-content img { height: auto; }
.entry-content figure { margin: 0 0 1.2em; }
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 12px 20px;
  border-left: 4px solid var(--red);
  background: var(--red-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.entry-content th,
.entry-content td { border: 1px solid var(--gray-light); padding: 8px 10px; text-align: left; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption,
.entry-content figcaption { font-size: 0.9rem; color: var(--gray); text-align: center; margin-top: 6px; }
.sticky,
.bypostauthor { position: relative; }

.post-list { display: grid; gap: 24px; max-width: 760px; margin: 0 auto; }
.post-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.post-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.post-card h2 a { color: inherit; }
.post-meta { color: var(--gray); font-size: 0.9rem; margin-bottom: 10px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
.nav-links .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gray-light);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.nav-links .page-numbers.current,
.nav-links a.page-numbers:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--white);
  clip: auto !important;
  clip-path: none;
  color: var(--red-dark);
  display: block;
  font-weight: 700;
  height: auto;
  left: 8px;
  padding: 12px 20px;
  top: 8px;
  width: auto;
  z-index: 100000;
}
