/*
 * Modern visitor theme (Nagyonjófotó brand: teal #00A99D, Roboto / Roboto Slab).
 * Loaded after styles.css by templates/modern/base.php only.
 */
:root {
    --nf-teal: #00A99D;
    --nf-teal-dark: #008b81;
    --nf-teal-soft: #A9D1CE;
    --nf-ink: #1d2b2a;
    --nf-muted: #5f6f6d;
    --nf-bg: #f6f8f8;
    --nf-card: #ffffff;
    --nf-radius: 14px;
    --nf-shadow: 0 6px 24px rgba(16, 40, 38, 0.08);
}

html, body { height: 100%; }
body.nf {
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--nf-bg);
    color: var(--nf-ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}
.nf h1, .nf h2, .nf h3 { font-family: 'Roboto Slab', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
.nf a { color: var(--nf-teal-dark); }
.nf main { flex: 1 0 auto; }

/* Header */
.nf-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nf-header .nf-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.nf-logo { font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 1.35rem; color: var(--nf-ink) !important; text-decoration: none; }
.nf-logo span { color: var(--nf-teal); }
.nf-nav { display: flex; align-items: center; gap: 4px; }
.nf-nav a, .nf-nav button {
    color: var(--nf-ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500;
    background: none; border: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
}
.nf-nav a:hover, .nf-nav a.active { background: rgba(0, 169, 157, 0.1); color: var(--nf-teal-dark); }
.nf-pill.cart-count { position: static; top: auto; right: auto; width: auto; height: auto; min-width: 0; line-height: 1.4; display: inline-block; }
.nf-pill { background: var(--nf-teal); color: #fff; border-radius: 999px; font-size: 0.75rem; padding: 1px 8px; font-weight: 700; }
.nf-pill[data-zero="1"] { display: none; }
@media (max-width: 640px) {
    .nf-nav .nf-label { display: none; }
    .nf-logo { font-size: 1.15rem; }
}

/* Hero */
.nf-hero {
    position: relative; min-height: min(70vh, 620px); display: flex; align-items: flex-end;
    color: #fff; background: #0e1f1d center/cover no-repeat; margin-bottom: 40px;
}
.nf-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.7)); }
.nf-hero .container { position: relative; z-index: 1; padding-bottom: 48px; }
.nf-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 8px; color: #fff; }
.nf-hero p { font-size: 1.15rem; opacity: 0.92; margin: 0 0 24px; max-width: 640px; }
.nf-btn {
    display: inline-flex; align-items: center; gap: 10px; background: var(--nf-teal); color: #fff !important;
    padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; min-height: 48px;
    box-shadow: 0 8px 20px rgba(0, 169, 157, 0.35); transition: transform .15s ease, background .15s ease;
}
.nf-btn:hover { background: var(--nf-teal-dark); transform: translateY(-1px); }
.nf-btn.ghost { background: rgba(255,255,255,0.15); box-shadow: none; border: 1px solid rgba(255,255,255,0.5); }

/* Steps strip */
.nf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.nf-step { background: var(--nf-card); border-radius: var(--nf-radius); padding: 18px 20px; box-shadow: var(--nf-shadow); display: flex; gap: 14px; align-items: flex-start; }
.nf-step i { color: var(--nf-teal); font-size: 1.4rem; margin-top: 2px; }
.nf-step b { display: block; margin-bottom: 2px; }
.nf-step small { color: var(--nf-muted); }
@media (max-width: 768px) { .nf-steps { grid-template-columns: 1fr; } }

/* Section titles + breadcrumbs */
.nf-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 20px; flex-wrap: wrap; }
.nf-title h1, .nf-title h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.nf-title .nf-sub { color: var(--nf-muted); }
.nf-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.92rem; margin: 24px 0 6px; color: var(--nf-muted); }
.nf-crumbs a { text-decoration: none; }
.nf-crumbs span::before { content: '›'; margin-right: 6px; color: #b5c2c0; }

/* Event cards */
.nf-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-bottom: 48px; }
.nf-event { background: var(--nf-card); border-radius: var(--nf-radius); overflow: hidden; box-shadow: var(--nf-shadow); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; display: block; }
.nf-event:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16, 40, 38, 0.14); }
.nf-event .nf-cover { aspect-ratio: 3 / 2; background: #dfe8e7 center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #9db3b0; font-size: 2.4rem; }
.nf-event .nf-meta { padding: 14px 16px 16px; }
.nf-event .nf-meta b { display: block; font-size: 1.05rem; line-height: 1.3; }
.nf-event .nf-meta small { color: var(--nf-muted); }

/* Justified photo grid: each tile grows in proportion to its aspect ratio */
.nf-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 110px; }
.nf-photos::after { content: ''; flex-grow: 999999; }
.nf-photos { --h: 230px; }
.nf-photo { position: relative; height: var(--h); width: calc(var(--h) * var(--r, 1.5)); flex-grow: 1; border-radius: 10px; overflow: hidden; background: #dfe8e7; cursor: zoom-in; }
.nf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, opacity .4s ease; opacity: 0; }
.nf-photo img.loaded { opacity: 1; }
.nf-photo:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .nf-photos { --h: 118px; gap: 4px; } .nf-photo { border-radius: 6px; } .nf-tick { width: 38px; height: 38px; top: 4px; right: 4px; } }
.nf-tick {
    position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.95); background: rgba(0,0,0,0.25); color: transparent;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer;
    transition: background .15s ease, transform .15s ease; padding: 0;
}
.nf-tick:hover { transform: scale(1.06); }
.nf-photo.selected .nf-tick { background: var(--nf-teal); border-color: var(--nf-teal); color: #fff; }
.nf-photo.selected { outline: 4px solid var(--nf-teal); outline-offset: -4px; }

/* Bottom selection bar */
.nf-selbar {
    position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
    background: var(--nf-ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 22px;
    display: flex; align-items: center; gap: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.25); z-index: 60;
    transition: transform .3s ease; max-width: calc(100% - 24px);
}
.nf-selbar.show { transform: translate(-50%, 0); }
.nf-selbar .nf-btn { box-shadow: none; padding: 10px 20px; white-space: nowrap; }
.nf-selbar > span { white-space: nowrap; }
@media (max-width: 480px) { .nf-selbar { gap: 10px; padding-left: 16px; } .nf-selbar .nf-word, .nf-selbar .fa-heart { display: none; } .nf-selbar .nf-btn { padding: 10px 16px; } }

/* Footer */
.nf-footer { flex-shrink: 0; padding: 28px 0; color: var(--nf-muted); font-size: 0.9rem; border-top: 1px solid rgba(0,0,0,0.06); background: #fff; }
.nf-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Classic pages rendered inside the modern frame (cart, order, ...) */
.nf main .container > .alert { margin-top: 16px; border-radius: 10px; }
.nf .btn { border-radius: 999px; }
.nf .btn-success, .nf .btn-primary { background: var(--nf-teal); border-color: var(--nf-teal); }
.nf .cart-container, .nf .order-container { margin-top: 24px; }

/* Competitor search */
.nf-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); border: 1px solid rgba(0, 0, 0, 0.06); max-width: 640px; }
.nf-search > i { color: var(--nf-muted); }
.nf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.05rem; padding: 10px 4px; color: var(--nf-ink); }
.nf-search .nf-btn { padding: 10px 20px; min-height: 44px; box-shadow: none; }
.nf-search-hero { margin-top: 22px; }
@media (max-width: 480px) { .nf-search .nf-btn { padding: 10px 14px; } }

/* Select all / bundle price */
.nf-allbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: -4px 0 22px; }
.nf-allbar .nf-btn { padding: 10px 20px; min-height: 44px; box-shadow: none; }
.nf-allbar .nf-btn:disabled { opacity: 0.75; transform: none; }
.nf-bundle { font-weight: 600; color: var(--nf-teal-dark); }
.nf-bundle s { color: var(--nf-muted); font-weight: 400; margin-left: 6px; }

/* Share / QR for a competitor folder */
.nf-btn.ghost-dark { background: #fff; color: var(--nf-ink) !important; border: 1px solid rgba(0,0,0,.12); box-shadow: none; padding: 10px 18px; min-height: 44px; }
.nf-btn.ghost-dark:hover { background: #f1f6f5; }
.nf-share { position: fixed; inset: 0; z-index: 1060; background: rgba(10, 25, 23, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.nf-share[hidden] { display: none; }
.nf-share-box { position: relative; background: #fff; border-radius: 18px; padding: 26px 22px 22px; width: min(400px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.nf-share-box h3 { margin: 0 32px 6px; font-size: 1.3rem; }
.nf-share-box p { color: var(--nf-muted); font-size: .95rem; }
.nf-share-x { position: absolute; top: 10px; right: 10px; border: 0; background: none; font-size: 1.3rem; width: 44px; height: 44px; }
.nf-qr { display: flex; justify-content: center; margin: 8px 0 16px; min-height: 220px; }
.nf-share-link { display: flex; gap: 8px; }
.nf-share-link input { flex: 1; min-width: 0; border: 1px solid #d6dfdd; border-radius: 10px; padding: 8px 10px; font-size: .9rem; }
.nf-share-link .nf-btn { padding: 8px 14px; min-height: 44px; box-shadow: none; }

/* "Csomagajánlat": small button + panel sliding in from the right */
.nf-allbar .nf-offer-btn { color: var(--nf-teal-dark) !important; border-color: var(--nf-teal) !important; }
.nf-allbar .nf-offer-btn i { color: var(--nf-teal); }
.nf-offer-shade { position: fixed; inset: 0; background: rgba(16, 40, 38, 0.35); z-index: 1040; opacity: 0; transition: opacity .25s ease; }
.nf-offer-shade.open { opacity: 1; }
.nf-offer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: var(--nf-card); z-index: 1050;
    box-shadow: -10px 0 40px rgba(16, 40, 38, 0.18); transform: translateX(105%); transition: transform .28s ease; display: flex; flex-direction: column; }
.nf-offer.open { transform: translateX(0); }
.nf-offer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e6eceb; }
.nf-offer header h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.nf-offer header h3 i { color: var(--nf-teal); margin-right: 6px; }
.nf-offer-x { border: 0; background: none; font-size: 1.2rem; color: var(--nf-muted); width: 40px; height: 40px; border-radius: 50%; }
.nf-offer-x:hover { background: #eef3f2; }
.nf-offer-body { padding: 20px; overflow-y: auto; }
.nf-offer-folder { font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.nf-offer-price { font-size: 1.8rem; font-weight: 700; color: var(--nf-teal-dark); margin-bottom: 10px; }
.nf-offer-price s { font-size: 1rem; color: var(--nf-muted); font-weight: 400; margin-left: 8px; }
.nf-offer-save { color: #2e7d4f; font-weight: 600; }
.nf-offer-progress { margin: 14px 0; }
.nf-offer-bar { height: 8px; background: #e6eceb; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.nf-offer-bar span { display: block; height: 100%; background: var(--nf-teal); transition: width .2s ease; }
.nf-offer .nf-btn { width: 100%; justify-content: center; margin-top: 8px; }
.nf-offer-hint { color: var(--nf-muted); font-size: .9rem; margin-top: 12px; }
.nf-offer-ok { color: #2e7d4f; font-weight: 600; font-size: 1.05rem; }
.nf-offer-chip { position: fixed; right: 18px; bottom: 96px; z-index: 1030; border: 0; border-radius: 999px; padding: 10px 16px; background: var(--nf-card);
    color: var(--nf-teal-dark); font-weight: 700; box-shadow: var(--nf-shadow); }
.nf-offer-chip.full { background: var(--nf-teal); color: #fff; }

/* bundle offer on a folder page */
.nf-bundlebox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: -4px 0 16px; padding: 14px 16px; border-radius: 14px; background: #eaf7f5; border: 1px solid #bfe7e2; }
.nf-btn-bundle { font-size: 1.05rem; padding: 12px 22px; min-height: 48px; display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.nf-btn-bundle small { font-weight: 400; opacity: .85; font-size: .8rem; }
.nf-bundle-n { font-weight: 600; color: var(--nf-teal-dark); }
.nf-bundle-n s { color: var(--nf-muted); font-weight: 400; margin: 0 6px; }
.nf-bundle-count { display: inline-block; margin-left: 8px; font-weight: 400; color: #333; }
