/* ==========================================================================
   Net-Trade Hungary – sötét, prémium dizájn (1. kör: főoldal)
   ========================================================================== */

:root {
    --bg: #0e0f0c;
    --bg-2: #131410;
    --surface: #181a12;
    --surface-2: #1e2017;
    --line: #2a2c22;
    --line-gold: rgba(231, 201, 135, .18);
    --text: #ece9df;
    --muted: #9a9c8d;
    --gold: #cba14e;
    --gold-2: #e7c987;
    --gold-soft: rgba(203, 161, 78, .12);

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --maxw: 1180px;
    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 80px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    color-scheme: dark;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--text); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.display { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }

.gold {
    background: linear-gradient(120deg, var(--gold-2), var(--gold));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    text-transform: uppercase; letter-spacing: .18em; font-size: .74rem;
    font-weight: 700; color: var(--gold-2); margin: 0 0 18px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-family: var(--sans); font-weight: 600; font-size: .95rem; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn--gold {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #1c1709; box-shadow: 0 8px 28px rgba(203, 161, 78, .25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(203, 161, 78, .38); color: #1c1709; }
.btn--outline { background: transparent; border-color: var(--line-gold); color: var(--gold-2); }
.btn--outline:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(12, 13, 10, .82);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); }
.brand-mark {
    width: 48px; height: 48px; border-radius: 13px; flex: 0 0 auto;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #1c1709; font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
    display: grid; place-items: center;
    box-shadow: 0 6px 20px rgba(203, 161, 78, .25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.16rem; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .72rem; }

.main-nav { display: flex; align-items: center; gap: 10px; }
.main-nav a { color: var(--muted); font-weight: 500; padding: 8px 12px; transition: color .15s ease; }
.main-nav a:hover { color: var(--text); }
.main-nav .btn { color: #1c1709; }
.main-nav .btn--gold:hover { color: #1c1709; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 70px) 0 80px; background: linear-gradient(150deg, #7a5a28 0%, #4a3414 38%, #1d1409 70%, #120f08 100%); }
.hero > .container { position: relative; z-index: 1; }
.hero-bg { position: absolute; left: 0; right: 0; top: -10%; height: 120%; z-index: 0; pointer-events: none; opacity: .92; will-change: transform; }
.hero-forest { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-rays { transform-origin: 50% 0; animation: ntRays 8s ease-in-out infinite; }
.hero-fog--1 { animation: ntFog1 24s ease-in-out infinite alternate; }
.hero-fog--2 { animation: ntFog2 30s ease-in-out infinite alternate; }
@keyframes ntRays { 0%, 100% { opacity: .5; } 50% { opacity: .95; } }
@keyframes ntFog1 { from { transform: translateX(-26px); } to { transform: translateX(34px); } }
@keyframes ntFog2 { from { transform: translateX(30px); } to { transform: translateX(-28px); } }
@media (prefers-reduced-motion: reduce) { .hero-rays, .hero-fog--1, .hero-fog--2 { animation: none; } }
.hero-scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(100deg, rgba(10, 9, 6, .66) 0%, rgba(10, 9, 6, .42) 48%, rgba(10, 9, 6, .12) 100%), linear-gradient(180deg, rgba(10, 9, 6, .15) 0%, rgba(10, 9, 6, .55) 100%); }
.hero-glow {
    position: absolute; top: -160px; right: -120px; width: 680px; height: 680px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(203, 161, 78, .20), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1.display { font-size: clamp(2.5rem, 6vw, 4.4rem); margin: 0 0 22px; }
.hero-lead { color: var(--muted); font-size: 1.12rem; max-width: 50ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual img { width: 100%; filter: drop-shadow(0 24px 60px rgba(0, 0, 0, .5)); animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.eyebrow-dot { animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(203, 161, 78, .5); } 50% { box-shadow: 0 0 0 5px rgba(203, 161, 78, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-visual img, .eyebrow-dot { animation: none; } }

/* ---------- Stats ---------- */
.stats-bar {
    margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line);
    display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-n { font-size: 2.2rem; line-height: 1; color: var(--gold-2); }
.stat-l { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2.display { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 14px; }
.section-sub { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-gold); box-shadow: 0 18px 50px rgba(0, 0, 0, .4); }
.card h3 { font-size: 1.12rem; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.card-link { color: var(--gold-2); font-weight: 600; font-size: .85rem; }

.card-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--gold-soft); border: 1px solid var(--line-gold);
}
.card-icon::before {
    content: ""; width: 28px; height: 28px; background: var(--gold-2);
    -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat;
    -webkit-mask-image: var(--icon); mask-image: var(--icon);
}
[data-icon="packaging"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l9 4v10l-9 4-9-4V7z'/%3E%3C/svg%3E"); }
[data-icon="wood"]      { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v2H3z M3 17h18v2H3z M3 5h2v14H3z M19 5h2v14h-2z M3 10h18v2H3z M3 13h18v2H3z'/%3E%3C/svg%3E"); }
[data-icon="truck"]     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 7h11v8H2z M13 10h4l3 3v2h-7z M6 14a2 2 0 1 0 0 4 2 2 0 0 0 0-4z M17 14a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E"); }
[data-icon="lumber"]    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 7h20v3H2z M2 12h20v3H2z M2 17h13v3H2z'/%3E%3C/svg%3E"); }
[data-icon="brick"]     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h8v4H3z M12 5h9v4h-9z M3 10h4v4H3z M8 10h13v4H8z M3 15h8v4H3z M12 15h9v4h-9z'/%3E%3C/svg%3E"); }
[data-icon="learn"]     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 1 9l11 6 11-6z M5 12.5V16c0 1.6 3.1 3 7 3s7-1.4 7-3v-3.5l-7 3.8z M20 10v5h1.4v-5z'/%3E%3C/svg%3E"); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.about-visual img { width: 100%; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .45)); }
.about-copy h2.display { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 18px; }
.about-copy p { color: var(--muted); margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { color: var(--text); }
.ticks li::before { content: "✦"; color: var(--gold); margin-right: 12px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 110px 0; text-align: center; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.cta::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 100% at 50% 0%, rgba(203, 161, 78, .14), transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2.display { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 14px; }
.cta-inner p { color: var(--muted); margin: 0 0 30px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0c09; border-top: 1px solid var(--line); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: color .15s ease, border-color .15s ease, transform .15s ease; }
.footer-social a:hover { color: var(--gold-2); border-color: var(--line-gold); transform: translateY(-2px); }
.footer-brand strong { display: block; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin: 4px 0 0; max-width: 32ch; }
.footer-col h4 { color: var(--gold-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: var(--muted); }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); }
.footer-note { color: #5d6052; }

/* ---------- 404 ---------- */
.error-box { text-align: center; max-width: 540px; margin: 60px auto; padding: 60px 0; }
.error-code { font-size: 5rem; line-height: 1; margin: 0 0 8px; }
.error-box p { color: var(--muted); margin: 0 0 26px; }

/* ---------- Reveal animáció ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Reszponzív ---------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { max-width: 460px; margin-inline: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .section { padding: 72px 0; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
        gap: 4px; background: rgba(12, 13, 10, .97); backdrop-filter: blur(10px);
        padding: 14px 24px 22px; border-bottom: 1px solid var(--line);
        transform: translateY(-130%); transition: transform .28s ease;
    }
    .main-nav.is-open { transform: translateY(0); }
    .main-nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
    .main-nav .btn { margin-top: 10px; }
    .stats-bar { gap: 18px 28px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Webshop (2. kör): katalógus, termékoldal, kosár
   ========================================================================== */

/* Kosár link a fejlécben */
.cart-link {
    display: inline-flex; align-items: center; gap: 8px; position: relative;
    padding: 9px 16px; border: 1px solid var(--line-gold); border-radius: var(--radius-sm);
    color: var(--text); font-weight: 600; font-size: .9rem;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.cart-link:hover { border-color: var(--gold); background: var(--gold-soft); }
.cart-link.has-items { border-color: var(--gold); }
.cart-icon { color: var(--gold-2); flex: 0 0 auto; }
.cart-badge {
    background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1c1709;
    font-size: .72rem; font-weight: 700; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px; display: grid; place-items: center;
}

/* Aloldal-fejléc */
.page-hero { position: relative; overflow: hidden; text-align: center; padding: calc(var(--header-h) + 56px) 0 40px; background: linear-gradient(180deg, #14140f, var(--bg) 72%); }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1.display { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 12px; }
.page-hero .section-sub { margin: 0 auto; }

.section--flush-top { padding-top: 28px; }
.section--clear-top { padding-top: calc(var(--header-h) + 48px); }

/* Kategória szűrők */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .88rem; font-weight: 500; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.chip:hover { border-color: var(--line-gold); color: var(--text); }
.chip.is-active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-2); }
.empty { color: var(--muted); }

/* Termékkártya */
.product-card { display: flex; flex-direction: column; }
.product-media {
    position: relative; display: grid; place-items: center; height: 175px; margin-bottom: 18px;
    border-radius: 12px; border: 1px solid var(--line); overflow: hidden;
    background: linear-gradient(135deg, #1c1e15, #14150f);
}
.product-media::before {
    content: ""; width: 66px; height: 66px; background: var(--gold-2); opacity: .9;
    -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat;
    -webkit-mask-image: var(--icon); mask-image: var(--icon);
}
.product-card h3 { font-size: 1.08rem; margin: 0 0 6px; }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--gold-2); }
.product-card p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.price { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-2); }
.price-unit { color: var(--muted); font-size: .8rem; }
.badge {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    background: rgba(203, 161, 78, .16); color: var(--gold-2); border: 1px solid var(--line-gold);
    font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
}
.badge--out { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: var(--line); }
.badge--low { background: rgba(224, 162, 60, .16); color: #e8b765; border-color: #6e4b2f; }
.add-form { margin: 0; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.center-cta { text-align: center; margin-top: 40px; }

/* Termékoldal */
.breadcrumb { margin: 0 0 24px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-2); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.detail-media {
    position: relative; display: grid; place-items: center; min-height: 360px;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(135deg, #1c1e15, #14150f);
}
.detail-media::before {
    content: ""; width: 140px; height: 140px; background: var(--gold-2); opacity: .9;
    -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat;
    -webkit-mask-image: var(--icon); mask-image: var(--icon);
}
.detail-copy h1.display { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 14px; }
.detail-short { color: var(--muted); font-size: 1.05rem; margin: 0 0 22px; }
.price-block { margin: 0 0 26px; }
.price--lg { font-size: 2.2rem; }
.price-block .price-unit { display: block; margin-top: 6px; }
.add-form--detail { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.qty { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .82rem; }
.qty input, .cart-qty input {
    width: 92px; padding: 11px 12px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); color: var(--text); font-size: 1rem;
}
.qty input:focus, .cart-qty input:focus { outline: none; border-color: var(--gold); }
.note { color: #75776a; font-size: .85rem; }

/* Kosár */
.cart-wrap h1.display { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 28px; }
.empty-cart { text-align: center; padding: 50px 0; color: var(--muted); }
.empty-cart .btn { margin-top: 16px; }
.cart-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto auto 40px; gap: 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(135deg, #1c1e15, #14150f); display: grid; place-items: center; }
.cart-thumb::before {
    content: ""; width: 30px; height: 30px; background: var(--gold-2); opacity: .9;
    -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat;
    -webkit-mask-image: var(--icon); mask-image: var(--icon);
}
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-name { font-weight: 600; color: var(--text); }
.cart-name:hover { color: var(--gold-2); }
.cart-info small { color: var(--muted); }
.cart-qty { display: flex; gap: 8px; align-items: center; margin: 0; }
.cart-qty input { width: 74px; }
.cart-sub { font-family: var(--serif); color: var(--gold-2); font-size: 1.1rem; white-space: nowrap; }
.cart-del { margin: 0; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: #7a3b3b; color: #e08a8a; }
.cart-summary { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.cart-total { display: flex; align-items: baseline; gap: 16px; }
.cart-total strong { font-size: 2rem; color: var(--gold-2); }

@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .detail-media { min-height: 280px; }
}
@media (max-width: 680px) {
    .cart-row { grid-template-columns: 52px 1fr 40px; row-gap: 12px; }
    .cart-thumb { width: 52px; height: 52px; }
    .cart-qty { grid-column: 2 / 4; }
    .cart-sub { grid-column: 1 / 2; }
    .cart-summary { align-items: stretch; text-align: left; }
    .cart-total { justify-content: space-between; }
}

/* ==========================================================================
   Webshop – profibb vásárlási élmény (rendezés, bizalom, AJAX)
   ========================================================================== */

/* Csak képernyőolvasónak látható felirat */
.vh {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Rendezősáv */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.result-count { color: var(--muted); margin: 0; font-size: .9rem; }
.sort-form { display: flex; align-items: center; gap: 10px; margin: 0; }
.sort-label { color: var(--muted); font-size: .85rem; }
.sort-select {
    padding: 9px 30px 9px 12px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); color: var(--text); font-size: .9rem; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9c8d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 9px center; background-size: 15px;
}
.sort-select:focus { outline: none; border-color: var(--gold); }
.js .sort-go { display: none; }

/* Termékkártya: nettó ár + mennyiség-sor */
.price-net { color: var(--muted); font-size: .78rem; margin: -10px 0 14px; }
.add-form--card { display: flex; align-items: stretch; gap: 8px; }
.qty-mini { display: flex; margin: 0; }
.qty-mini input {
    width: 58px; padding: 9px 8px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); color: var(--text); font-size: .95rem; text-align: center;
}
.qty-mini input:focus { outline: none; border-color: var(--gold); }
.add-form--card .btn { flex: 1; }

/* Termékoldal: bizalmi sáv */
.assurance { list-style: none; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.assurance li { display: flex; align-items: flex-start; gap: 11px; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.assurance svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold-2); margin-top: 1px; }
.assurance strong { color: var(--text); font-weight: 600; }
.assurance a { color: var(--gold-2); }

/* Termékoldal: specifikációs táblázat */
.detail-specs { margin-top: 56px; }
.detail-specs h2, .related h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 18px; }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; background: var(--surface); }
.spec-table td { color: var(--text); }
.detail-specs .note { margin-top: 12px; }

/* Termékoldal: kapcsolódó termékek */
.related { margin-top: 56px; }
.related-grid { grid-template-columns: repeat(4, 1fr); }
.related-grid .product-media { height: 130px; }
.related-grid .product-card h3 { font-size: .98rem; }

/* Kosár / pénztár: összegbontás + bizalom */
.cart-totals { width: 100%; max-width: 340px; }
.cart-line { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .92rem; padding: 5px 0; }
.summary-subtotals { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.summary-subtotals .cart-line { padding: 4px 0; }
.cart-continue { display: inline-block; margin-top: 12px; color: var(--muted); font-size: .9rem; }
.cart-continue:hover { color: var(--gold-2); }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.trust-row li { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: 7px; }
.trust-row li::before { content: "✓"; color: var(--gold-2); font-weight: 700; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .82rem; margin: 12px 0 0; }
.secure-note svg { width: 17px; height: 17px; color: var(--gold-2); }

/* Fizetőoldal */
.eyebrow--center { justify-content: center; }
.pay-lock { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--line-gold); }
.pay-lock svg { width: 26px; height: 26px; color: var(--gold-2); }
.pay-card { text-align: center; }
.pay-summary { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.pay-summary div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 22px; min-width: 150px; }
.pay-summary span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.pay-summary strong { font-size: 1.15rem; }
.pay-actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
.pay-note { color: #75776a; font-size: .82rem; margin: 22px auto 0; max-width: 44ch; }

/* Visszaigazolás: következő lépések */
.next-steps { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; margin: 24px 0; }
.next-steps h2 { font-size: 1.1rem; margin: 0 0 12px; }
.next-steps ol { margin: 0; padding-left: 20px; color: var(--muted); }
.next-steps li { padding: 4px 0; }

/* Kosárba rakás visszajelző buborék */
.toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
    z-index: 90; max-width: calc(100% - 32px);
    background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1c1709;
    font-weight: 600; font-size: .92rem; padding: 13px 22px; border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity .25s ease; } }

@media (max-width: 900px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .assurance { grid-template-columns: 1fr; }
    .shop-toolbar { align-items: stretch; }
    .sort-form { width: 100%; }
    .sort-select { flex: 1; }
}

/* ==========================================================================
   Termékképek (kártya borító, galéria, kosár-thumb, admin kép-kezelő)
   ========================================================================== */

/* Borítókép a termékkártyán / kosárban: elnyomja a kategória-ikont */
.product-media.has-image::before,
.cart-thumb.has-image::before { content: none; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* Termékoldal galéria */
.detail-gallery { display: flex; flex-direction: column; gap: 12px; background: none; border: 0; min-height: 0; }
.detail-gallery::before { content: none; }
.gallery-main { position: relative; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: linear-gradient(135deg, #1c1e15, #14150f); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 72px; padding: 0; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; cursor: pointer; background: none; transition: border-color .15s ease; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--line-gold); }
.gallery-thumb.is-active { border-color: var(--gold); }

/* Admin kép-kezelő */
.adm-actions { display: flex; gap: 8px; justify-content: flex-end; }
.img-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 22px; }
.img-tile { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.img-tile.is-primary { border-color: var(--gold); }
.img-tile img { width: 100%; height: 150px; object-fit: cover; display: block; }
.img-primary-badge { position: absolute; top: 8px; left: 8px; background: rgba(203, 161, 78, .9); color: #1c1709; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.img-actions { display: flex; gap: 8px; padding: 10px; }
.img-actions form { margin: 0; flex: 1; }
.img-actions .btn { width: 100%; }
.btn--danger { border-color: #6e3b3b; color: #e08a8a; }
.btn--danger:hover { border-color: #9e4b4b; background: rgba(158, 75, 75, .12); }

@media (max-width: 900px) {
    .gallery-main { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Vásárlói fiók, belépés/regisztráció és webshop-szűrők
   ========================================================================== */

/* Fejléc fiók-link */
.account-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 500; padding: 8px 12px; transition: color .15s ease; }
.account-link:hover { color: var(--text); }

/* Belépés / regisztráció */
.auth-wrap { max-width: 460px; }
.auth-wrap h1.display { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 8px; }
.auth-form { margin-top: 22px; }
.auth-form .check { margin: 2px 0 18px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); }

/* Fiók + rendeléstörténet */
.account-wrap { max-width: 820px; }
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.account-head h1.display { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 4px; }
.account-logout { margin: 0; }
.account-sub { font-family: var(--serif); font-size: 1.3rem; margin: 34px 0 16px; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s ease; }
.order-row:hover { border-color: var(--line-gold); }
.order-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-meta strong { color: var(--text); }
.order-meta small { color: var(--muted); }
.order-total { color: var(--gold-2); font-family: var(--serif); white-space: nowrap; }

/* Webshop szűrők (oldalsáv) */
.shop-filters { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.shop-filters .sidebar-title { margin-bottom: 14px; }
.shop-filters .field { margin-bottom: 12px; }
.shop-filters .field-row { display: flex; gap: 10px; margin-bottom: 12px; }
.shop-filters .field-row .field { margin-bottom: 0; }
.shop-filters .check { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin: 6px 0 14px; }
.filter-clear { display: block; text-align: center; margin-top: 10px; color: var(--muted); font-size: .85rem; }
.filter-clear:hover { color: var(--gold-2); }

@media (max-width: 680px) {
    .order-row { grid-template-columns: 1fr auto; }
    .order-total { grid-column: 2; text-align: right; }
}

/* ==========================================================================
   Kategóriák (a megadott termékstruktúra alapján)
   ========================================================================== */

[data-icon="house"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l9 8h-2v9h-5v-6h-4v6H5v-9H3z'/%3E%3C/svg%3E"); }
[data-icon="paw"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 13a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6z M10.6 10.4a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6z M14.4 10.4a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6z M18 13a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6z M12.5 12.6c-2.5 0-4.5 1.7-4.5 3.9 0 1.6 1.4 2.5 4.5 2.5s4.5-.9 4.5-2.5c0-2.2-2-3.9-4.5-3.9z'/%3E%3C/svg%3E"); }
[data-icon="bird"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 13c4 1 7-1 9-4 1 2 3 2 4 1 0 3-3 6-7 6l2 3H7l-1-3c-2 0-3-1-4-3z'/%3E%3C/svg%3E"); }
[data-icon="leaf"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19C5 11 11 5 19 5c0 8-6 14-14 14z'/%3E%3C/svg%3E"); }
[data-icon="deco"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 6.2L21 10.5l-6.6 2.3L12 19l-2.4-6.2L3 10.5l6.6-2.3z'/%3E%3C/svg%3E"); }
[data-icon="sand"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 19h20L12 6z'/%3E%3C/svg%3E"); }

/* Kategóriakártya a főoldalon (link) */
.cat-card { display: flex; flex-direction: column; color: inherit; }
.cat-card:hover { color: inherit; }
.cat-card h3 { color: var(--text); }

/* Webshop kétoszlopos elrendezés */
.shop-layout { display: grid; grid-template-columns: 248px 1fr; gap: 44px; align-items: start; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.sidebar-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-2); margin: 0 0 14px; }
.cat-all { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 6px; transition: color .15s, background .15s; }
.cat-tree { list-style: none; margin: 0; padding: 0; }
.cat-tree .cat-tree { margin: 2px 0 4px 12px; padding-left: 10px; border-left: 1px solid var(--line); }
.cat-link { display: block; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: .92rem; transition: color .15s, background .15s; }
.cat-all:hover, .cat-link:hover { color: var(--text); background: var(--gold-soft); }
.cat-link.is-open { color: var(--text); }
.cat-all.is-current, .cat-link.is-current { color: var(--gold-2); background: var(--gold-soft); font-weight: 600; }

/* Morzsamenü + találatszám */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: .88rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { color: #55574c; }
.breadcrumb .current { color: var(--text); }
.result-count { color: var(--muted); font-size: .85rem; margin: 0 0 22px; }

@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; gap: 28px; }
    .shop-sidebar { position: static; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Vezérlőpult (admin)
   ========================================================================== */

.admin-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

.admin-aside { background: #0b0c09; border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 26px; padding: 0 6px; }
.admin-brand .brand-mark { width: 40px; height: 40px; font-size: 1.05rem; border-radius: 11px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .94rem; transition: background .15s, color .15s; }
.admin-nav a:hover { background: var(--gold-soft); color: var(--text); }
.admin-nav a.is-active { background: var(--gold-soft); color: var(--gold-2); }
.admin-aside-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-back { color: var(--muted); font-size: .88rem; }
.admin-back:hover { color: var(--gold-2); }

.adm-ico { width: 18px; height: 18px; flex: 0 0 auto; background: currentColor; -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat; -webkit-mask-image: var(--aico); mask-image: var(--aico); }
.adm-ico--lg { width: 46px; height: 46px; color: var(--gold-2); display: inline-block; }
[data-aico="chart"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10h3v10H4z M10.5 4h3v16h-3z M17 13h3v7h-3z'/%3E%3C/svg%3E"); }
[data-aico="box"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l9 4v10l-9 4-9-4V7z'/%3E%3C/svg%3E"); }
[data-aico="tree"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v2H4z M4 11h16v2H4z M4 17h10v2H4z'/%3E%3C/svg%3E"); }
[data-aico="cart"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 8h12l-1 11H7z M9.5 8a2.5 2.5 0 0 1 5 0h-1.6a0.9 0.9 0 0 0-1.8 0z'/%3E%3C/svg%3E"); }
[data-aico="plug"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h1.6v5H9z M13.4 2H15v5h-1.6z M7 7h10v3a5 5 0 0 1-10 0z M11 14h2v6h-2z'/%3E%3C/svg%3E"); }

.admin-main { min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(14, 15, 12, .9); backdrop-filter: blur(10px); z-index: 10; }
.admin-topbar h1 { font-family: var(--serif); font-size: 1.4rem; margin: 0; }
.logout-form { margin: 0; }
.admin-content { padding: 28px 32px 60px; }

.pw-warning { background: rgba(196, 86, 86, .12); border: 1px solid #6e3b3b; color: #e9b6b6; padding: 12px 16px; border-radius: 10px; margin-bottom: 24px; font-size: .9rem; }
.admin-flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 22px; font-size: .92rem; }
.admin-flash--error { background: rgba(196, 86, 86, .12); border: 1px solid #6e3b3b; color: #e9b6b6; }
.admin-flash--ok { background: rgba(120, 170, 90, .12); border: 1px solid #3f5a30; color: #9fcf7e; }
.pw-warning code, .note code, .num-list code, .kv-list code { background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 5px; font-size: .85em; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.kpi--warn { border-color: #6e4b2f; }
.kpi--wide { grid-column: span 2; }
.kpi-l { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.kpi-n { font-size: 2rem; line-height: 1; color: var(--text); }

.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.panel-link { color: var(--muted); font-size: .84rem; }
a.panel-link:hover { color: var(--gold-2); }
.muted { color: var(--muted); }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-name { font-weight: 600; }
.mini-cat { color: var(--muted); font-size: .82rem; margin-left: auto; }
.stock-pill { font-size: .8rem; padding: 3px 9px; border-radius: 999px; }
.stock-low { color: #e0a23c; }
.stock-pill.stock-low { background: rgba(224, 162, 60, .14); border: 1px solid #6e4b2f; }

.status-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.status-dot--off { background: #c4924e; box-shadow: 0 0 10px #c4924e; }
.status-row p { margin: 4px 0 0; }

.admin-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-input { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: .92rem; }
.adm-input:focus { outline: none; border-color: var(--gold); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; padding: 14px 16px; color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); background: #14150f; white-space: nowrap; }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.admin-table a { color: var(--text); }
.admin-table a:hover { color: var(--gold-2); }
.ta-r { text-align: right; }
.ta-c { text-align: center; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--muted); font-size: .85rem; }
.tag { font-size: .73rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tag--ok { background: rgba(120, 170, 90, .14); color: #9fcf7e; border: 1px solid #3f5a30; }
.tag--low { background: rgba(224, 162, 60, .14); color: #e0a23c; border: 1px solid #6e4b2f; }
.tag--out { background: rgba(255, 255, 255, .06); color: var(--muted); border: 1px solid var(--line); }

.adm-tree, .adm-tree ul { list-style: none; margin: 0; padding: 0; }
.adm-tree .adm-tree { margin: 2px 0 4px 16px; padding-left: 12px; border-left: 1px solid var(--line); }
.adm-tree-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; }
.adm-tree-name { color: var(--text); font-weight: 500; }
.adm-tree-name:hover { color: var(--gold-2); }
.adm-tree-count { color: var(--muted); font-size: .8rem; white-space: nowrap; }

.kv-list { list-style: none; margin: 0 0 8px; padding: 0; }
.kv-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv-list li:last-child { border-bottom: 0; }
.kv-list span { color: var(--muted); }
.num-list { margin: 0 0 16px; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }

.empty-state { text-align: center; padding: 40px 20px; }
.empty-state h3 { margin: 14px 0 8px; }
.empty-state p { max-width: 50ch; margin: 0 auto; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 60% at 50% 0%, rgba(203, 161, 78, .10), transparent 70%), var(--bg); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; text-align: center; }
.login-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--serif); font-size: 1.2rem; }
.login-sub { color: var(--muted); margin: 10px 0 22px; }
.login-error { background: rgba(196, 86, 86, .12); border: 1px solid #6e3b3b; color: #e9b6b6; padding: 10px; border-radius: 9px; margin-bottom: 16px; font-size: .88rem; }
.login-field { display: block; text-align: left; margin-bottom: 16px; }
.login-field span { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.login-field input { width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 1rem; }
.login-field input:focus { outline: none; border-color: var(--gold); }
.login-home { display: inline-block; margin-top: 18px; color: var(--muted); font-size: .86rem; }
.login-home:hover { color: var(--gold-2); }

@media (max-width: 820px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-aside { position: static; height: auto; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-cols { grid-template-columns: 1fr; }
    .kpi--wide { grid-column: auto; }
    .admin-content, .admin-topbar { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   Pénztár, fizetés, visszaigazolás
   ========================================================================== */

.narrow { max-width: 720px; }

.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; margin-top: 8px; }
.checkout-form { min-width: 0; }

.form-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 20px; background: var(--surface); }
.form-card legend { padding: 0 8px; color: var(--gold-2); font-weight: 600; font-size: .95rem; }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; color: var(--muted); font-size: .84rem; margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%; padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--line);
    border-radius: 10px; color: var(--text); font-size: 1rem; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check, .radio { display: flex; align-items: center; gap: 10px; color: var(--text); margin-bottom: 10px; cursor: pointer; font-size: .95rem; }
.check input, .radio input { width: 18px; height: 18px; accent-color: #cba14e; flex: 0 0 auto; }
.check--terms { margin: 6px 0 4px; }
.field-err { color: #e08a8a; font-size: .82rem; margin: 6px 0 0; }
.form-alert { background: rgba(196, 86, 86, .12); border: 1px solid #6e3b3b; color: #e9b6b6; padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }
.ship-fields[hidden] { display: none; }

.checkout-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.summary-card h2 { font-size: 1.1rem; margin: 0 0 16px; }
.summary-items { list-style: none; margin: 0 0 8px; padding: 0; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.summary-items small { color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 18px; }
.summary-total strong { font-size: 1.5rem; color: var(--gold-2); }
.summary-back { display: block; text-align: center; margin-top: 14px; color: var(--muted); font-size: .88rem; }
.summary-back:hover { color: var(--gold-2); }

.pay-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px; }
.pay-badge { display: inline-block; background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--line-gold); font-size: .74rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.pay-note { color: var(--muted); margin: 18px 0 22px; }
.pay-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 0; }

.confirm-head { text-align: center; margin-bottom: 24px; }
.confirm-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1c1709; font-size: 2rem; font-weight: 700; margin-bottom: 14px; }
.info-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 24px; }
.info-box strong { color: var(--gold-2); }
.narrow .summary-card { margin-top: 8px; }

.sub-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-2); margin: 18px 0 6px; }
.addr { color: var(--text); margin: 0 0 6px; line-height: 1.5; }
.admin-table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; padding-top: 14px; }

@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}
@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Partnerek, kapcsolat, üzenetek
   ========================================================================== */

[data-aico="mail"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18v12H8l-4 4z'/%3E%3C/svg%3E"); }

.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
.partner:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.partner-name { font-family: var(--serif); font-weight: 600; color: var(--text); }
.partner-note { color: var(--muted); font-size: .82rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.contact-form-col { min-width: 0; }
.form-card button[type="submit"] { margin-top: 12px; }
.contact-info { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.contact-info h2 { font-size: 1.1rem; margin: 0 0 16px; }
.contact-list { list-style: none; margin: 0 0 16px; padding: 0; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a, .contact-list strong { color: var(--text); }
.contact-list a:hover { color: var(--gold-2); }

.form-success { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 44px 32px; text-align: center; }
.form-success h2 { margin: 6px 0 8px; }
.form-success .btn { margin-top: 18px; }

.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg { padding: 20px 22px; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.msg-head a { color: var(--gold-2); }
.msg-subject { font-weight: 600; margin: 0 0 6px; }
.msg-body { color: var(--muted); margin: 0; }

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Lebegő kapcsolati gomb, referenciák, admin kiegészítések
   ========================================================================== */

/* admin nav ikonok */
[data-aico="star"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.6-5.2 4.5 1.6 6.7L12 17l-6.2 3.1 1.6-6.7L2.2 8.9l6.9-.6z'/%3E%3C/svg%3E"); }
[data-aico="gear"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6.2h18v1.6H3z M14 4.5h3v5h-3z M3 11.2h18v1.6H3z M6 9.5h3v5H6z M3 16.2h18v1.6H3z M11 14.5h3v5h-3z'/%3E%3C/svg%3E"); }

/* Lebegő kapcsolati gomb (FAB) */
.contact-fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; opacity: 0; transform: translateY(12px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.contact-fab.is-open .fab-menu { opacity: 1; transform: none; pointer-events: auto; }
.fab-item { display: inline-flex; align-items: center; gap: 12px; width: 172px; padding: 7px 14px 7px 7px; background: rgba(20, 21, 15, .96); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 600; font-size: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.fab-item:hover { border-color: var(--line-gold); color: var(--text); }
.fab-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.fab-ico::before { content: ""; width: 19px; height: 19px; background: #fff; -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat; -webkit-mask-image: var(--ch); mask-image: var(--ch); }
.fab-ico[data-ch="messenger"] { background: #0084ff; --ch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.13 2 11.2c0 2.88 1.44 5.45 3.7 7.14V22l3.38-1.85c.9.25 1.86.39 2.92.39 5.52 0 10-4.13 10-9.2C22 6.13 17.52 2 12 2z'/%3E%3C/svg%3E"); }
.fab-ico[data-ch="viber"] { background: #7360f2; --ch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E"); }
.fab-ico[data-ch="email"] { background: linear-gradient(135deg, var(--gold-2), var(--gold)); --ch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.fab-ico[data-ch="phone"] { background: #22a06b; --ch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E"); }
.fab-toggle { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 28px rgba(203, 161, 78, .4); display: grid; place-items: center; transition: transform .15s ease; }
.fab-toggle:hover { transform: translateY(-2px); }
.fab-ico-main, .fab-ico-close { width: 26px; height: 26px; background: #1c1709; -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat; }
.fab-ico-main { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12H8l-4 4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12H8l-4 4z'/%3E%3C/svg%3E"); }
.fab-ico-close { display: none; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 6.4L6.4 5 12 10.6 17.6 5 19 6.4 13.4 12 19 17.6 17.6 19 12 13.4 6.4 19 5 17.6 10.6 12z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 6.4L6.4 5 12 10.6 17.6 5 19 6.4 13.4 12 19 17.6 17.6 19 12 13.4 6.4 19 5 17.6 10.6 12z'/%3E%3C/svg%3E"); }
.contact-fab.is-open .fab-saw { display: none; }
.contact-fab.is-open .fab-ico-close { display: block; }

/* Fűrészelő farönk a kapcsolati gombon */
.fab-saw { width: 52px; height: 52px; display: block; }
.fab-saw svg { width: 100%; height: 100%; display: block; }
.saw-tool { animation: sawSlide 1s ease-in-out infinite alternate; }
.saw-fig--l { transform-origin: 10px 50px; animation: sawLeanL 1s ease-in-out infinite alternate; }
.saw-fig--r { transform-origin: 54px 50px; animation: sawLeanR 1s ease-in-out infinite alternate; }
@keyframes sawSlide { from { transform: translateX(-4px); } to { transform: translateX(4px); } }
@keyframes sawLeanL { from { transform: rotate(6deg); } to { transform: rotate(-4deg); } }
@keyframes sawLeanR { from { transform: rotate(-6deg); } to { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
    .saw-tool, .saw-fig--l, .saw-fig--r { animation: none; }
}

/* Vissza a tetejére gomb (görgetésre, középen alul) */
.to-top { position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 16px); z-index: 65; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-gold); background: rgba(20, 21, 15, .92); color: var(--gold-2); font-weight: 600; font-size: .88rem; cursor: pointer; backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease, border-color .15s; }
.to-top.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.to-top:hover { border-color: var(--gold); }
/* Mobilon a középre lebegő pill helyett bal alsó sarok, hogy ne lógjon a tartalom
   közepére (a kontakt-fab a jobb alsó sarokban marad — nem ütköznek). */
@media (max-width: 680px) {
    .to-top { left: 16px; right: auto; bottom: 16px; transform: translateY(14px); padding: 9px 15px; font-size: .82rem; }
    .to-top.is-visible { transform: translateY(0); }
}

/* ==========================================================================
   Jogi oldalak, cookie soft wall (erdei faültetés)
   ========================================================================== */
.legal-doc { color: var(--muted); line-height: 1.8; }
.legal-doc h2 { font-family: var(--serif); color: var(--text); font-size: 1.5rem; margin: 1.6em 0 .5em; }
.legal-doc h3 { color: var(--gold-2); font-size: 1.15rem; margin: 1.4em 0 .4em; }
.legal-doc h4, .legal-doc h5, .legal-doc h6 { color: var(--text); font-size: 1rem; margin: 1.2em 0 .3em; }
.legal-doc p { margin: 0 0 1em; }
.legal-doc strong { color: var(--text); }
.legal-doc a { color: var(--gold-2); word-break: break-word; }
.legal-doc ul { margin: 0 0 1em; padding-left: 20px; }
.legal-doc li { margin: .3em 0; }
.legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }

/* Pályázati közzététel (infoblokk + adat-táblázat) */
.grant-infoblock { width: 100%; max-width: 860px; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); background: #fff; margin: 0 0 30px; }
.grant-table { width: 100%; border-collapse: collapse; margin: 0 0 1.8em; }
.grant-table th, .grant-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.grant-table th { width: 42%; color: var(--text); font-weight: 600; background: var(--surface); }
.grant-table td { color: var(--muted); }
@media (max-width: 560px) { .grant-table th { width: 46%; } }

.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted); font-size: .82rem; }
.footer-legal a:hover { color: var(--gold-2); }

.cookie-wall { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8, 8, 6, .55); backdrop-filter: blur(3px); transition: opacity .3s ease; }
.cookie-wall.is-hidden { opacity: 0; pointer-events: none; }
.cookie-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.cookie-scene { line-height: 0; }
.cookie-scene svg { width: 100%; height: 140px; display: block; }
.cookie-body { padding: 22px 24px 24px; }
.cookie-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.cookie-body p { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.cookie-body a { color: var(--gold-2); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-wall.is-dismissed { display: none; }

/* Süti – kategória-kapcsolók */
.btn--ghost { background: transparent; border: 1px solid transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--gold-2); border-color: var(--line); }
.cookie-prefs { display: flex; flex-direction: column; gap: 12px; margin: 2px 0 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.cookie-cat { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; margin: 0; }
.cookie-cat.is-locked { cursor: default; }
.cookie-cat-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cookie-cat-name { font-weight: 600; font-size: .95rem; color: var(--text); }
.cookie-cat-desc { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.cookie-cat input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; margin-top: 2px; border-radius: 999px; background: var(--line); transition: background .2s ease; }
.cookie-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cookie-cat input:checked + .cookie-switch { background: var(--gold); }
.cookie-cat input:checked + .cookie-switch::after { transform: translateX(18px); }
.cookie-cat input:disabled + .cookie-switch { opacity: .55; }
.cookie-cat input:focus-visible + .cookie-switch { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.cw-sapling { transform-box: fill-box; transform-origin: 50% 100%; animation: cwGrow 3.4s ease-in-out infinite; }
.cw-planter { transform-box: fill-box; transform-origin: 50% 100%; animation: cwBob 1.6s ease-in-out infinite alternate; }
.cw-tree { transform-box: fill-box; transform-origin: 50% 100%; animation: cwSway 4s ease-in-out infinite alternate; }
.cw-tree-b { animation-duration: 5.2s; }
@keyframes cwGrow { 0% { transform: scale(0); opacity: 0; } 14% { opacity: 1; } 70% { transform: scale(1); opacity: 1; } 88% { transform: scale(1); opacity: 1; } 100% { transform: scale(.12); opacity: 0; } }
@keyframes cwBob { from { transform: rotate(-3deg); } to { transform: rotate(5deg); } }
@keyframes cwSway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .cw-sapling, .cw-planter, .cw-tree { animation: none; } }

/* Referenciák */
.reference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.reference-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.reference-card:hover { border-color: var(--line-gold); transform: translateY(-4px); color: var(--text); }
.reference-card--featured { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--surface) 62%); box-shadow: 0 0 0 1px var(--gold-soft), 0 14px 36px rgba(0, 0, 0, .35); }
.reference-card--featured:hover { border-color: var(--gold-2); box-shadow: 0 0 0 1px var(--line-gold), 0 18px 44px rgba(0, 0, 0, .42); }
.reference-card.is-collapsed { display: none; }
.reference-grid.is-open .reference-card.is-collapsed { display: flex; }
.reference-more { text-align: center; margin-top: 26px; }
.reference-badge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #1c1709; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 4px 12px rgba(203, 161, 78, .35); }
.reference-detail--featured .reference-detail-logo { box-shadow: 0 0 0 2px var(--gold); }
.reference-detail .reference-badge { position: static; margin-bottom: 10px; }
.modal-link { margin-top: 18px; }
.reference-logo { width: 84px; height: 84px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.reference-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 8px; }
.reference-monogram { width: 84px; height: 84px; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 2rem; color: #1c1709; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.reference-monogram--sm { width: 40px; height: 40px; border-radius: 9px; font-size: 1.1rem; }
.reference-monogram--lg { width: 120px; height: 120px; border-radius: 16px; font-size: 3rem; }
.reference-name { font-family: var(--serif); font-weight: 600; }
.reference-note { color: var(--muted); font-size: .85rem; }

.reference-detail { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; }
.reference-detail-logo { width: 120px; height: 120px; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.reference-detail-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 10px; }
.reference-detail-short { color: var(--muted); margin: 6px 0 0; }
.reference-detail-body { color: var(--text); line-height: 1.8; margin-bottom: 28px; }

/* admin referenciák */
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.ref-thumb { width: 48px; height: 48px; border-radius: 8px; background: #fff; object-fit: contain; padding: 3px; vertical-align: middle; }

@media (max-width: 520px) {
    .reference-detail { flex-direction: column; text-align: center; }
    .contact-fab { right: 16px; bottom: 16px; }
}

/* ==========================================================================
   Térkép és modal
   ========================================================================== */

[data-aico="pin"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
[data-aico="users"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 1.6c-2.7 0-5 1.4-5 3.6V18h10v-1.8c0-2.2-2.3-3.6-5-3.6zm6.5-1.6a3 3 0 0 0 0-6c-.4 0-.8.1-1.2.2a4.5 4.5 0 0 1 0 5.6c.4.1.8.2 1.2.2zm.5 1.6c-.5 0-1 .1-1.5.2 1.2.8 2 1.9 2 3.4V18H22v-1.8c0-2.2-2.3-3.8-6-3.8z'/%3E%3C/svg%3E"); }
[data-aico="person"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-4.4 0-8 2.2-8 5v1h16v-1c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E"); }
[data-aico="search"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 4a6 6 0 1 0 3.5 10.9l4.3 4.3 1.4-1.4-4.3-4.3A6 6 0 0 0 10 4zm0 2a4 4 0 1 1 0 8 4 4 0 0 1 0-8z'/%3E%3C/svg%3E"); }

.world-map { height: 480px; width: 100%; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; z-index: 0; background: #14150f; }
.world-map--admin { height: 360px; }
@media (max-width: 680px) { .world-map { height: 320px; } }
.leaflet-container { font-family: inherit; }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); backdrop-filter: blur(2px); }
.modal-box { position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 85vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: var(--gold); color: var(--gold-2); }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding-right: 30px; }
.modal-logo { width: 64px; height: 64px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.modal-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }
.modal-head h3 { margin: 0; font-size: 1.4rem; }
.modal-short { margin: 0 0 14px; }
.modal-body { color: var(--text); line-height: 1.8; }
body.modal-open { overflow: hidden; }

/* ==========================================================================
   Logó (net-trade.hu átdolgozva)
   ========================================================================== */
.brand-logo { height: 42px; width: auto; display: block; }
.footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand .brand-logo { height: 38px; }
@media (max-width: 680px) { .brand-logo { height: 34px; } }

/* ==========================================================================
   Kapcsolat – vezetők (csapat)
   ========================================================================== */
.contact-info h3 { font-size: 1.1rem; margin: 0 0 16px; }
.form-success h3 { margin: 6px 0 8px; }
.contact-map { margin-top: 32px; text-align: center; }
.contact-map-frame { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.contact-map .btn { margin-top: 16px; }
.team { margin-top: 56px; }
.team-title { text-align: center; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 32px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: border-color .15s, transform .15s; }
.team-card:hover { border-color: var(--line-gold); transform: translateY(-4px); }
.team-photo { width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--gold-2), var(--gold)); display: grid; place-items: center; border: 2px solid var(--line-gold); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-monogram { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; color: #17150d; }
.team-card h4 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 4px; }
.team-role { color: var(--gold-2); font-size: .88rem; margin: 0 0 14px; }
.team-contact { display: flex; flex-direction: column; gap: 4px; }
.team-contact a { color: var(--muted); font-size: .9rem; }
.team-contact a:hover { color: var(--gold-2); }

/* ==========================================================================
   Görgetés-állapotjelző (a fejléc felett)
   ========================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: rgba(0, 0, 0, .25); pointer-events: none; }
.scroll-progress-bar { display: block; height: 100%; width: 0; transform-origin: left center;
    background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 10px rgba(231, 201, 135, .6); transition: width .08s linear; }

/* ==========================================================================
   Hírlevél-sáv (lábléc felett)
   ========================================================================== */
.newsletter { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); padding: 72px 0; }
.newsletter-glow { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(620px 260px at 18% 0%, rgba(203, 161, 78, .14), transparent 70%); }
.newsletter-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter-copy h2.display { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 12px; }
.newsletter-sub { color: var(--muted); max-width: 460px; margin: 0; }
.newsletter-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-input { flex: 1 1 200px; min-width: 0; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); color: var(--text); font-size: .95rem; }
.newsletter-input:focus { outline: none; border-color: var(--gold); }
.newsletter-fields .btn { flex: 0 0 auto; }
.newsletter-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; color: var(--muted); font-size: .84rem; }
.newsletter-consent input { margin-top: 3px; accent-color: var(--gold); }
.newsletter-err { color: #e08a8a; font-size: .85rem; margin: 10px 0 0; }
.newsletter-success { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line-gold);
    border-radius: var(--radius); padding: 22px 24px; }
.newsletter-success .confirm-check { width: 46px; height: 46px; font-size: 1.4rem; margin: 0; flex: 0 0 auto; }
.newsletter-success p { margin: 0; color: var(--text); }
@media (max-width: 820px) { .newsletter-inner { grid-template-columns: 1fr; gap: 26px; } }

/* ==========================================================================
   Lábléc – készítő credit (animált)
   ========================================================================== */
.footer-credit { margin-top: 22px; text-align: center; }
.credit {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .55rem 1.1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
    font-size: .9rem; font-weight: 600;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.credit:hover { transform: translateY(-2px); border-color: rgba(255, 90, 31, .5); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.credit-label { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.credit-spark { color: #39ff7a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.credit-name {
    font-weight: 800; letter-spacing: .02em;
    background: linear-gradient(90deg, #ff5a1f, #ffd400, #39ff7a, #1fb6ff, #b14bff, #ff5a1f);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: creditHue 6s linear infinite;
}
.credit-heart { display: inline-block; animation: creditBeat 1.4s ease-in-out infinite; transform-origin: center; }
@keyframes creditHue { to { background-position: 300% 50%; } }
@keyframes creditBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.32); } 30% { transform: scale(1); } 45% { transform: scale(1.22); } 60% { transform: scale(1); } }

/* Admin „küldés" ikon + állapot-pill */
[data-aico="send"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l18 9-18 9 4-9z'/%3E%3C/svg%3E"); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.pill--ok { background: var(--gold-soft); border-color: var(--line-gold); color: var(--gold-2); }

@media (prefers-reduced-motion: reduce) {
    .credit-heart { animation: none; }
    .credit-name { animation: none; background-position: 0 50%; }
    .scroll-progress-bar { transition: none; }
}

/* ==========================================================================
   Blog – lista és bejegyzés
   ========================================================================== */
[data-aico="post"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h11l3 3v15H5z M14 3v4h4 M8 11h8v1.6H8z M8 15h8v1.6H8z M8 7h3v1.6H8z'/%3E%3C/svg%3E"); }
[data-aico="layers"] { --aico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 8l10 5 10-5z M2 12l10 5 10-5-2.2-1.1L12 14.7 4.2 10.9z M2 16l10 5 10-5-2.2-1.1L12 18.7 4.2 14.9z'/%3E%3C/svg%3E"); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.blog-card:hover { border-color: var(--line-gold); transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0, 0, 0, .32); }
.blog-card-media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-mark { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--serif); font-size: 2.6rem; color: var(--gold); opacity: .55; }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.blog-card-date { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--gold-2); }
.blog-card-body h2 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.blog-card-body h2 a { color: var(--text); }
.blog-card-body h2 a:hover { color: var(--gold-2); }
.blog-card-body p { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.blog-card-link { font-weight: 600; font-size: .9rem; color: var(--gold-2); margin-top: 4px; }

.blog-post-head { margin-bottom: 28px; }
.blog-post-meta { display: flex; flex-wrap: wrap; gap: 6px; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: var(--gold-2); margin: 0 0 14px; }
.blog-post-head h1.display { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin: 0 0 14px; }
.blog-post-lead { color: var(--muted); font-size: 1.12rem; line-height: 1.6; margin: 0; }
.blog-post-cover { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.blog-post-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.blog-post-body { font-size: 1.04rem; }

.blog-recent { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.blog-recent-title { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 14px; }
.blog-recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.blog-recent-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.blog-recent-list a { font-weight: 600; }
.blog-recent-list .muted { font-size: .82rem; }

/* ==========================================================================
   Tevékenységek – fejléc-dropdown és aloldal
   ========================================================================== */
.nav-group { position: relative; }
.nav-group-trigger { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 500; padding: 8px 12px; transition: color .15s ease; cursor: pointer; }
.nav-group-trigger:hover { color: var(--text); }
.nav-caret { font-size: .7em; line-height: 1; transition: transform .15s ease; }
.nav-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 240px; display: flex; flex-direction: column; gap: 2px;
    padding: 8px; background: rgba(16, 17, 13, .98); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .42); opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease; z-index: 60;
}
.nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav-group:hover .nav-caret, .nav-group:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav-dropdown a:hover { color: var(--text); background: var(--gold-soft); }

.card-icon--sm { width: 34px; height: 34px; border-radius: 9px; }
.card-icon--sm::before { width: 18px; height: 18px; }

.service-hero-icon { margin: 0 auto 18px; }
.breadcrumb--hero { justify-content: center; }
.service-body { font-size: 1.04rem; }
.service-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 8px; }
.service-others { margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.service-others-title { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 16px; }
.service-others-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.service-chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 500; font-size: .92rem; transition: border-color .15s ease, transform .15s ease; }
.service-chip:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.service-chip-icon { width: 34px; height: 34px; border-radius: 9px; }
.service-chip-icon::before { width: 18px; height: 18px; }

@media (max-width: 680px) {
    .nav-group { display: flex; flex-direction: column; }
    .nav-group-trigger { padding: 12px 6px; border-bottom: 1px solid var(--line); }
    .nav-caret { display: none; }
    .nav-dropdown {
        position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
        background: none; border: 0; box-shadow: none; padding: 0 0 0 14px; z-index: auto;
    }
    .nav-dropdown a { padding: 10px 6px; border-bottom: 1px solid var(--line); border-radius: 0; white-space: normal; }
}

/* ---------- HTML oldaltérkép ---------- */
.sitemap-cols { columns: 3 240px; column-gap: 36px; }
.sitemap-group { break-inside: avoid; margin: 0 0 28px; }
.sitemap-group-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 12px; color: var(--gold-2); }
.sitemap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sitemap-list a { color: var(--muted); }
.sitemap-list a:hover { color: var(--text); }
@media (max-width: 680px) { .sitemap-cols { columns: 1; } }

/* ---------- Tevékenység-kártyák + részletek-ablak ---------- */
.service-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service-card { padding: 0; overflow: hidden; }
.service-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.service-card-link:hover { color: inherit; }
.service-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--gold-soft); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card-media .card-icon { width: 64px; height: 64px; }
.service-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin: 0 0 8px; color: var(--text); }
.service-card-sum { display: block; color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.service-card-body .card-link { margin-top: auto; }
/* Mobilon a teljes szélességű kártya médiarésze ne legyen nagy üres doboz. */
@media (max-width: 680px) {
    .service-card-media { aspect-ratio: auto; height: 132px; }
    .service-card-media .card-icon { width: 56px; height: 56px; }
}

.service-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .25s ease; }
.service-modal[hidden] { display: none; }
.service-modal.is-open { opacity: 1; }
.service-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 6, .66); backdrop-filter: blur(3px); }
.service-modal-dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 760px; max-height: 88vh; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); transform: translateY(12px) scale(.98); transition: transform .25s ease; }
.service-modal.is-open .service-modal-dialog { transform: none; }
.service-modal-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.service-modal-close:hover { background: rgba(0, 0, 0, .65); border-color: var(--line-gold); }
.service-modal-content { overflow-y: auto; }
.service-detail { padding-bottom: 30px; }
.service-detail-img { width: 100%; height: 240px; object-fit: cover; display: block; }
.service-detail > :not(img) { padding-left: 34px; padding-right: 34px; }
.service-detail > .eyebrow { padding-top: 26px; margin: 0 0 2px; }
.service-detail h2 { margin: 6px 0 14px; font-size: 1.6rem; }
body.modal-open { overflow: hidden; }
@media (max-width: 560px) {
    .service-detail-img { height: 180px; }
    .service-detail > :not(img) { padding-left: 22px; padding-right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .service-modal, .service-modal-dialog { transition: none; }
}

/* ==========================================================================
   Csiszolás & animációk (UI polish)
   Minden új mozgás kikapcsol prefers-reduced-motion alatt (a blokk végén).
   ========================================================================== */

/* — Kép-zoom hoverre: csak ott, ahol valódi kép van — */
.product-media.has-image img,
.service-card-media img,
.blog-card-media img,
.reference-logo img {
    transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.product-card:hover .product-media.has-image img,
.service-card:hover .service-card-media img,
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.reference-card:hover .reference-logo img { transform: scale(1.08); }

/* — Üres médiadobozok mélysége (a glow a kép mögött van, csak ikonnál látszik) — */
.product-media { background-image: radial-gradient(120% 85% at 50% 0%, rgba(203, 161, 78, .12), transparent 60%), linear-gradient(135deg, #1c1e15, #14150f); }
.service-card-media { background-image: radial-gradient(120% 90% at 50% 0%, rgba(203, 161, 78, .16), transparent 62%); }
.blog-card-mark { position: relative; }
.blog-card-mark::before {
    content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(203, 161, 78, .18), transparent 70%);
}

/* — Arany gombok fény-csíkja hoverre — */
.btn { position: relative; overflow: hidden; }
.btn--gold::after {
    content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-18deg); pointer-events: none;
}
.btn--gold:hover::after { animation: btnShine .8s ease; }
@keyframes btnShine { from { left: -130%; } to { left: 130%; } }

/* — Navigáció animált arany aláhúzás — */
.main-nav a { position: relative; }
.main-nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
    background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.main-nav .btn::after { display: none; }

/* — Egységes fókusz-gyűrű (billentyűzet) — */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 6px;
}

/* — Hero belépő (staggered) — */
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-copy.hero-enter > * { animation: heroUp .8s cubic-bezier(.22, .61, .36, 1) backwards; }
.hero-copy.hero-enter > :nth-child(1) { animation-delay: .08s; }
.hero-copy.hero-enter > :nth-child(2) { animation-delay: .20s; }
.hero-copy.hero-enter > :nth-child(3) { animation-delay: .34s; }
.hero-copy.hero-enter > :nth-child(4) { animation-delay: .48s; }

/* — Tartalmi képek finom beúszása (JS adja a class-t betöltéskor) — */
.img-fade { opacity: 0; transition: opacity .6s ease; }
.img-fade.is-loaded { opacity: 1; }

/* — Térkép-markerek staggered megjelenése (csak a publikus #map-en) —
   Alapból rejtve; a JS minden esetben felfedi (markers-in), így sosem ragadnak rejtve. */
#map .leaflet-marker-icon { opacity: 0; }
#map.markers-in .leaflet-marker-icon { opacity: 1; animation: markerIn .55s cubic-bezier(.22, .61, .36, 1) backwards; }
#map.markers-in .leaflet-marker-icon:nth-of-type(2) { animation-delay: .08s; }
#map.markers-in .leaflet-marker-icon:nth-of-type(3) { animation-delay: .16s; }
#map.markers-in .leaflet-marker-icon:nth-of-type(4) { animation-delay: .24s; }
#map.markers-in .leaflet-marker-icon:nth-of-type(5) { animation-delay: .32s; }
#map.markers-in .leaflet-marker-icon:nth-of-type(n+6) { animation-delay: .40s; }
@keyframes markerIn { from { opacity: 0; } to { opacity: 1; } }

/* — Kosár-jelvény rebbenése tételhozzáadáskor — */
.cart-badge.is-bump { animation: badgePop .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes badgePop { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .product-media.has-image img, .service-card-media img, .blog-card-media img, .reference-logo img,
    .product-card:hover .product-media.has-image img, .service-card:hover .service-card-media img,
    .blog-card:hover .blog-card-media img, .reference-card:hover .reference-logo img { transition: none; transform: none; }
    .btn--gold:hover::after { animation: none; }
    .main-nav a::after { transition: none; }
    .hero-copy.hero-enter > * { animation: none; }
    .img-fade { opacity: 1; transition: none; }
    #map.markers-in .leaflet-marker-icon { animation: none; }
    .cart-badge.is-bump { animation: none; }
}

/* — Nyelvváltó a fejlécben — */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 10px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-opt { padding: 4px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); line-height: 1; transition: color .15s, background .15s; }
.lang-opt:hover { color: var(--text); }
.lang-opt.is-active { background: var(--gold-soft); color: var(--gold-2); }
.lang-opt::after { display: none; }
@media (max-width: 900px) {
    .lang-switch { margin: 14px 0 0; align-self: flex-start; }
}
/* Hosszabb fordított címkék ne törjenek meg a fejlécben (pl. „Sign in"). */
.account-link span, .cart-link span { white-space: nowrap; }

/* — Admin: tartalom-fordítás (EN/DE) doboz — */
.i18n-box { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.i18n-box > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--gold-2); list-style: none; }
.i18n-box > summary::-webkit-details-marker { display: none; }
.i18n-box > summary::before { content: "▸ "; }
.i18n-box[open] > summary::before { content: "▾ "; }
.i18n-lang { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 16px; }
.i18n-lang legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 6px; }
