@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&family=Orbitron:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

:root {
    --graphite: #241F1B;
    --walnut: #3A322B;
    --steel: #6B5F52;
    --paper: #E6E8E9;
    --card: #FFFFFF;
    --sand-light: #EBDFC9;
    --line: #CBB99D;
    --text: #2B2622;
    --text-muted: #665A48;
    --rust: #8F5230;
    --rust-dark: #63381F;
    --rust-light: #E8CFB0;
    --teal: #2F6F5E;
    --teal-light: #E7F1EE;
    --danger: #A8362A;
    --danger-dark: #7C271E;
    --danger-light: #F3DAD4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    /* Valodi termekfoto (raktar/szerelvenybolt polcok, csavarok az
       eloterben) a teljes oldal hattereben, rogzitve (nem gorgethetot
       el a tartalommal egyutt), egy vilagos, felig atlatszo feher
       retaggel bevonva, hogy a feluleten levo tartalom (kartyak, szoveg)
       tovabbra is jol olvashato maradjon. */
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.72)),
        url('branding/page_bg.jpg');
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-position: center, center;
    background-attachment: fixed, fixed;
    color: var(--text);
    font-family: 'Barlow', -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

/* Olvashatosag: a tartalom-teruleten (nem a fejlecben) vastagabb alap-
   betu (500) es sotetebb "halvany" szoveg-szin, hogy a vekony/szurke
   feliratok (alcimek, morzsamenu, mellek-szovegek) a fotohatteren se
   latszodjanak szinte atlatszonak. */
.main-content, .site-footer {
    font-weight: 500;
    --text-muted: #3D3529;
}

h1, h2, h3 {
    font-family: 'Barlow Condensed', sans-serif;
}

a { color: inherit; }

.icon, .placeholder-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ---------- FEJLÉC / LOGÓ ---------- */

/* Egyetlen kozos hatter a fejlec + kereso-sav + telefonos sav (3 resz)
   egyuttes meretere nyujtva - a harom resz maga atlatszo, igy a rozsdas
   textura folyamatosan fut vegig rajtuk, nem kulon-kulon resz-kepekkent. */
.top-banner {
    background-color: #0A0A0C;
    background-image: url('../static/branding/header_texture.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.site-header {
    /* A logo (womet_logo.png) VALODI alfa-atlatszosaggal, sajat aranyaban,
       balra - SOHA nem torzul es nincs latszodo negyszogletes szele. A
       textura a .top-banner-en van, nem itt. */
    position: relative;
    background-image: url('../static/branding/womet_logo.png');
    background-repeat: no-repeat;
    background-position: left center;
    /* A Rolunk gomb bal szele merve: kb. 161px + szelesseg/6 (901px-nel
       311px, 1280px-nel 374px, 1920px-nel 481px). A logo szelessege ezt
       koveti 15px ravezetessel, igy mindig a lehetseges legnagyobb, de
       sose er bele a gombba; 500px-nel megallitjuk (maximum). */
    background-size: min(calc(205px + 100% / 6), 580px) auto;
    color: #fff;
    min-height: 200px;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.brand {
    position: absolute;
    inset: 0;
}

/* Csak elrendezési célra: asztalon a logó és a jobb oldali navigáció
   egy sorban fér el, nem kell hely-fenntartás. Kis képernyőn viszont a
   navigáció (header-right) teljes szélességben, saját sorba törik - enélkül
   a spacer nélkül egyenesen a logó fölé csúszna, mivel a .brand (fenti)
   abszolút pozícionált, tehát nem foglal helyet a flex-elrendezésben. */
.header-logo-spacer {
    display: none;
    width: 100%;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* ---------- FEJLÉC GOMBOK: IPAROS FÉMLAP ---------- */
/* A logó csavar/szegecs motívumára utaló, csiszolt fémlap-hatású gombok -
   lecsípett sarok (clip-path), zajtextúra (SVG feTurbulence data-URI) és
   sarkokba helyezett "szegecs" pöttyök adják a kézzel-készített, iparos
   jelleget a korábbi sima, kerek pirula-gombok helyett. */
.header-nav a,
.account-pill,
.account-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Oswald', 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #c9bfae;
    padding: 12px 20px;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    background-color: #1c1712;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 28%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-blend-mode: normal, overlay;
    border: 1px solid #3c3125;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -2px 3px rgba(0,0,0,0.65),
        0 3px 6px rgba(0,0,0,0.55);
    text-shadow: 0 1px 0 rgba(0,0,0,0.8), 0 -1px 0 rgba(255,255,255,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.header-nav a::before,
.header-nav a::after,
.account-pill::before,
.account-pill::after,
.account-chip::before,
.account-chip::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #cbb287, #6b5a3f 55%, #2c2418 100%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.6);
}
.header-nav a::before, .account-pill::before, .account-chip::before { top: 3px; left: 3px; }
.header-nav a::after, .account-pill::after, .account-chip::after { bottom: 3px; right: 3px; }

.header-nav a .icon {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

.header-nav a:hover,
.account-pill:hover,
.account-chip:hover {
    color: #f2ddb8;
    border-color: #b8834f;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -2px 3px rgba(0,0,0,0.65),
        0 6px 14px rgba(0,0,0,0.65),
        0 0 0 1px rgba(184,131,79,0.35);
}

.header-nav a:active,
.account-pill:active,
.account-chip:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.7), inset 0 -1px 0 rgba(255,255,255,0.05);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-link-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.cart-link-totals {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: none;
    color: #d8ae7c;
    margin-top: 2px;
}

.header-nav a:hover .cart-link-totals { color: #f2ddb8; }

/* ---------- FEJLÉC JOBB OLDAL: NAVIGÁCIÓ + FIÓK-TERÜLET ---------- */

.header-right {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.header-account {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 22px;
    border-left: 1px solid rgba(216, 170, 130, 0.25);
}

/* Bejelentkezve az 5 gombos fejléc-navigáció ugyanazokat az abszolút
   pozíciókat foglalja el, mint vendégként - a fiók-doboz (email/kijelentkezés
   + admin/pénzügy gomb) ezért NEM állhat a normál flex-sorban (ott
   pontosan a Kosár gomb alá/mögé esne), hanem a bejelentkezés-gombhoz
   hasonlóan a fejléc jobb felső sarkába van kitűzve, függőlegesen
   egymás alatt (előbb a fiók-fül, alatta az admin gomb). */
.header-account-fixed {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 6;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-left: 0;
    border-left: none;
}

.header-account-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* A Bejelentkezés gomb a fejléc jobb felső sarkába van kitűzve, szimmetrikusan
   a fejléc keretéhez (nem a nav sorhoz) igazítva - ezért a .site-header a
   pozícionálási viszonyítási pont, nem a .header-right. Így a gomb pozíciója
   független attól, hogy a nav sor hol van/mekkora - nem tudják egymást
   lejjebb/feljebb tolni. Rákattintás nélkül is látszik alatta a belépő
   mini-form - nem ugrik külön oldalra. */
.login-dropdown-wrap {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    width: 200px;
    display: flex;
    justify-content: center;
}

/* Helyet hagyunk a nav sor jobb végén, hogy a Kosár gomb ne csússzon a
   fejléc sarkába kitűzött belépő gomb/panel alá. */
.header-right-guest {
    padding-right: 290px;
}

/* A vendég-fejléc 5 gombja (Rólunk, Termékkategóriák, Főoldal, Elérhetőségeink,
   Kosár) EGY sorban ül, egy bal-offset (450px - a logó fényes/kirajzolt
   markánsabb, bal oldali harmada után, a jobb felé úgyis elhalványuló
   faltextúra fölött, a user kifejezett engedélyével: "rengeteg hely van
   balra, nyújtsd meg nyugodtan") és a Bejelentkezés gomb bal széle (jobbról
   220px, azaz right:20px + width:200px) közötti szabad sávban. A sáv 6
   EGYENLŐ részre van osztva - az 5 pont (1/6 .. 5/6) adja a gombok helyét, a
   Főoldal pontosan a közepén (3/6=1/2) marad. Mindegyik függőlegesen a
   fejléc magasságának pontosan a közepén ül (top:50%). Minden gomb saját
   közepét (nem a bal/felső sarkát) pozícionáljuk a pontra - innen a
   translate(-50%,-50%). */
.nav-fixed-btn {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Csak mobilon (lásd @media max-width:900px) kényszerít sortörést a
   Kezdőlap gomb köré, hogy az saját, középre eső sorba kerüljön - asztalon
   nincs hatása (a gombok úgyis abszolút pozícionáltak). */
.mobile-nav-break {
    display: none;
}
/* A Rólunk gomb az eredeti 6-osztású pozíciójában marad rögzítve (ez a
   "horgony"), a többi négy gomb ehhez van igazítva úgy, hogy a gombok
   SZÉLEI (nem a középpontjaik) essenek egyenlő távolságra egymástól -
   mivel a gombok mérete eltérő (Rólunk 100px, Termékek/Elérhetőségeink
   112px, Kezdőlap 140px, Kosár ~82px), az egyenlő közép-távolság nem
   egyenlő rés-távolságot adott, ezért ez a képlet a tényleges gomb-
   szélességekkel számol. Ha bármelyik gomb mérete változik, ezt a 4
   formulát újra kell számolni. */
.nav-fixed-btn.pos-rolunk   { left: calc(300px + (100% - 520px) * (1/6)); }
.nav-fixed-btn.pos-termkat  { left: calc(37.5% + 67.5px); }
.nav-fixed-btn.pos-foldal   { left: calc(58.333% - 58.33px); }
.nav-fixed-btn.pos-elerheto { left: calc(79.167% - 184.17px); }
.nav-fixed-btn.pos-kosar    { left: calc(100% - 330px); }

/* ---------- "CSAVARANYA" GOMBOK (a user által küldött HTML-referencia alapján) ----------
   Hatlapú csavaranya alakú (clip-path hatszög) gomb, belül egy sötétebb,
   bemélyedő hatszög-"műszerfal-kijelzővel" (ikon+felirat), a gomb ALATT
   (nem benne) egy külön LED-pötty, ami csak hoverre gyullad ki (a
   ~ testvér-szelektorral, pontosan ahogy a user HTML-je csinálta - alapban
   sötét/kikapcsolt). A Kezdőlap (.nut-button-container-large) ugyanez, csak
   nagyobb méretben - ő az öt közül a kiemelt, középső gomb. */
.nut-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 90px;
    text-decoration: none;
    background: linear-gradient(135deg, #666 0%, #333 50%, #1a1a1a 100%);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 5px 11px rgba(0,0,0,0.75);
    padding: 3px;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.nut-button:hover {
    filter: brightness(1.15);
}

.nut-button:active {
    transform: scale(0.96);
}

.nut-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 2px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: radial-gradient(circle, #222 30%, #050505 100%);
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.9);
}

.nut-icon {
    width: 17px;
    height: 17px;
    stroke: #ccc;
    color: #ccc;
}

.button-text {
    font-family: 'Segoe UI', 'Oswald', 'Barlow Condensed', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #f1f1f1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.9);
    line-height: 1.15;
    max-width: 56px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.nut-button-container-large .button-text {
    max-width: 76px;
}

.nut-cart-totals {
    display: block;
    font-size: 7.5px;
    color: #d8ae7c;
    letter-spacing: 0;
    text-transform: none;
    margin-top: 1px;
}

.nut-button-container .led-indicator {
    width: 7px;
    height: 7px;
    background-color: #2b0c00;
    border-radius: 50%;
    margin-top: 8px;
    border: 1px solid #111;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.9);
    transition: all 0.3s ease;
}

.nut-button:hover ~ .led-indicator {
    background-color: #ff5500;
    box-shadow: 0 0 8px #ff5500, 0 0 16px #ff2200, inset 0 1px 2px rgba(255,255,255,0.9);
}

.nut-button-container-large .nut-button { width: 108px; height: 118px; }
.nut-button-container-large .nut-icon { width: 23px; height: 23px; }
.nut-button-container-large .button-text { font-size: 11px; }
.nut-button-container-large .led-indicator { width: 9px; height: 9px; margin-top: 10px; }

/* ---------- KÉP-ALAPÚ FEJLÉC GOMB (Kezdőlap) ----------
   A user által küldött, fényképszerű csavaranya-grafikát használjuk a gomb
   háttereként (nem CSS-sel próbáljuk újraalkotni a fémtextúrát), a feliratot
   is a kép tartalmazza. A kör alakú keretet egy kicsit szűkebbre vágjuk
   (clip-path: circle(47%)), mint a kép tényleges mérete, mert a user szerint
   a kép szélén maradt egy kicsit "szöszös"/pontatlan kivágás - így azt
   mindig eltakarjuk, tökéletesen kerek szél marad. A LED-et (a képen sötét/
   kikapcsolt állapotban van, kb. a kép 53%/90% pontján) egy külön, láthatatlan
   CSS-kör fedi le pontosan ugyanott - alapban semmi nem látszik belőle
   (átlátszó), hover-kor viszont felizzik piros-narancs fénnyel, mintha a
   kép saját LED-je gyulladna ki. */
.img-nav-btn {
    display: block;
    text-decoration: none;
}

.img-nav-btn-frame {
    position: relative;
    width: 140px;
    height: 140px;
    display: block;
}

.img-nav-btn-pic {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: circle(47% at 50% 50%);
    transition: filter 0.15s ease;
}

.img-nav-btn:hover .img-nav-btn-pic {
    filter: brightness(1.18) drop-shadow(0 0 5px rgba(47, 168, 255, 0.75));
}

.img-nav-btn:active .img-nav-btn-pic {
    filter: brightness(0.95);
}

.img-nav-btn-led {
    position: absolute;
    left: 50%;
    top: 90%;
    width: 9%;
    height: 9%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.img-nav-btn:hover .img-nav-btn-led {
    background: radial-gradient(circle, #c9ecff 0%, #2fa8ff 55%, #0057b0 100%);
    box-shadow: 0 0 7px #2fa8ff, 0 0 14px #0090ff;
}

/* Piros LED-variáns (pl. Rólunk gomb) - user kérésére a kék helyett piros
   fény gyullad fel hover-kor. */
.img-nav-btn:hover .img-nav-btn-led.img-nav-btn-led-red {
    background: radial-gradient(circle, #ffe0d0 0%, #ff4a2f 55%, #a30f00 100%);
    box-shadow: 0 0 7px #ff4a2f, 0 0 14px #ff2200;
}

/* Kosár - ugyanolyan előre körbevágott, átlátszó hátterű kép, mint a
   Rólunk gomb (ugyanabból a sablonból), ezért a méret a user kérésére a
   Kezdőlap gombéval egyezik meg (nincs saját .img-nav-btn-frame méret-
   felülírás, az alap 140px érvényes). A LED pozíciója a Rólunkéhoz
   hasonló szegecs-hely alapján indul, vizuális ellenőrzéssel pontosítva. */
.pos-kosar .img-nav-btn-frame {
    width: 100px;
    height: 100px;
}
.img-nav-btn-led-kosar {
    left: 49%;
    top: 88%;
}
/* Éles, HTML-alapú felirat a gomb közepén - nem a képbe sütve, hanem
   külön rétegként ráhelyezve, hogy garantáltan olvasható legyen a gomb
   méretétől és a kép saját kontrasztjától függetlenül. Sötét árnyék/
   körvonal adja a kontrasztot a változó fémes háttérrel szemben. */
.img-nav-btn-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f0e6d2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.95), 0 0 5px rgba(0,0,0,0.85), 0 0 1px rgba(0,0,0,1);
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.img-nav-btn-label-sm {
    font-size: 11px;
    letter-spacing: 0.2px;
}

.img-nav-btn-label-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    white-space: normal;
}

.img-nav-btn-label-icon {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #f0e6d2;
    stroke-width: 2.2;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.95)) drop-shadow(0 0 4px rgba(0,0,0,0.85));
}

.img-nav-btn-cart-badge {
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    background: #2a1a10;
    border: 1px solid #d8ae7c;
    color: #d8ae7c;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    padding: 3px 9px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Termékkategóriák - a user saját maga vágta körbe a képet (ugyanolyan
   majdnem-négyzetes kompozíció, mint a Kezdőlapé), így ez is a sima
   <img>+object-fit:cover megoldást használja, csak a LED pozíciója más.
   Kisebb is, mint a Kezdőlap gomb (azt a user kifejezetten kérte). */
.pos-termkat .img-nav-btn-frame {
    width: 112px;
    height: 112px;
}
/* Rólunk - a user által előre körbevágott, átlátszó hátterű kép (majdnem
   négyzetes, mint a Termékek/Kezdőlap), sima <img>+object-fit megoldás.
   A LED-hez nincs külön izzó grafika a képen (csak egy sima szegecs alul),
   ezért a hover-fény pozíciója a szegecs helyére van kalibrálva pixel-
   kereséssel (kb. 52%/92%). Piros fényt kapott (user kérése), nem a
   szokásos kéket. */
.pos-rolunk .img-nav-btn-frame {
    width: 100px;
    height: 100px;
}
.img-nav-btn-led-rolunk {
    left: 49%;
    top: 88%;
}

.img-nav-btn-led-termekek {
    left: 49%;
    top: 88%;
}

/* Elérhetőségeink - a user cserélte a képet egy előre körbevágott,
   átlátszó hátterű verzióra (ugyanaz a sablon, mint Rólunk/Kosár/
   Termékek), mert a régi, széles/elmosott kép felirata alig volt
   olvasható a gomb méretén. Emiatt a background-image "rázoomolós"
   megoldás lecserélve a sima <img>+object-fit-re. */
.pos-elerheto .img-nav-btn-frame {
    width: 112px;
    height: 112px;
}
.img-nav-btn-led-elerheto {
    left: 49%;
    top: 88%;
}

/* ---------- "IPARI CSAVARANYA" GOMB (a user által küldött CSS, változtatás
   nélkül beillesztve) - egyelőre csak a Kezdőlap gomb használja, a többi 4
   gomb egyenként követi majd, ahogy megérkeznek. ---------- */

/* Gomb konténer (alapértelmezett link stílusok eltávolítva) */
.industrial-nut-btn {
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  outline: none;
}

/* Vékony, elegáns szálcsiszolt fém keret a gomb körül */
.nut-outer-frame {
  padding: 4px;
  background: linear-gradient(135deg, #3a4149 0%, #1a1e22 100%);
  border-radius: 6px;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

/* Szemböli, robusztus hatszögletű csavaranya forma (clip-path) */
.hex-nut {
  width: 110px;
  height: 96px;
  background: linear-gradient(180deg, #424952 0%, #20242a 50%, #15181c 100%);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.2),
    inset 0 -4px 6px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Belső kör alakú, mélyített, barázdált fém mag (menetes hatás) */
.threaded-inner {
  width: 86px;
  height: 74px;
  background: radial-gradient(circle, #252a30 40%, #111315 90%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  color: #8b95a1;
  border: 2px solid #1c2126;
  box-shadow:
    inset 0 5px 10px rgba(0, 0, 0, 0.95),
    inset 0 0 4px rgba(255, 255, 255, 0.1),
    0 0 0 2px #2f353e;
  transition: all 0.2s ease;
}

/* Ikon és felirat stílusa */
.home-icon {
  fill: #7c8895;
  transition: fill 0.2s ease, transform 0.2s ease;
}

.btn-text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #7c8895;
  transition: color 0.2s ease;
}

/* LED jelzőfény alaphelyzetben (sötét, kikapcsolt állapot) */
.led-indicator {
  width: 5px;
  height: 5px;
  background-color: #111315;
  border-radius: 50%;
  border: 1px solid #2a3038;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease;
}

/* --- HOVER (KURZOR ALatta) EFFEKTEK --- */
.industrial-nut-btn:hover .nut-outer-frame {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.7),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.industrial-nut-btn:hover .hex-nut {
  transform: scale(1.03);
  background: linear-gradient(180deg, #4d5560 0%, #252a30 50%, #181c20 100%);
}

.industrial-nut-btn:hover .threaded-inner {
  background: radial-gradient(circle, #303740 40%, #16191c 90%);
  color: #ffffff;
  border-color: #242a30;
  box-shadow:
    inset 0 6px 12px rgba(0, 0, 0, 0.95),
    inset 0 0 6px rgba(0, 229, 255, 0.4),
    0 0 0 2px #434e5c;
}

.industrial-nut-btn:hover .home-icon {
  fill: #00e5ff;
  transform: scale(1.08);
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.7));
}

.industrial-nut-btn:hover .btn-text {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.8);
}

/* LED felizzás és kékes neonfény kibocsátás hover-kor */
.industrial-nut-btn:hover .led-indicator {
  background-color: #00e5ff;
  border-color: #00b8cc;
  box-shadow:
    0 0 6px #00e5ff,
    0 0 12px #00e5ff,
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Kompatibilitási kiegészítés (nem a user kódjának módosítása, csak
   pótlás): a site összes ikonja körvonalas (stroke) SVG, nem kitöltött
   (fill) - a .home-icon class-t ezért stroke-ra fogjuk a mi ikon-rendszerünk
   mellett, ugyanazokkal a színekkel, amit a user megadott. */
.home-icon.icon {
  fill: none;
  stroke: #7c8895;
}
.industrial-nut-btn:hover .home-icon.icon {
  stroke: #00e5ff;
  fill: none;
}

.login-toggle {
    border: 1px solid #5a3a1e;
    font-family: 'Oswald', 'Barlow Condensed', sans-serif;
    cursor: pointer;
}

.login-dropdown-wrap.active .login-dropdown {
    display: block;
}

.login-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 200px;
    background: var(--graphite);
    border: 1px solid rgba(216, 170, 130, 0.3);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.login-dropdown-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-dropdown-form input {
    padding: 5px 8px;
    border: 1px solid rgba(216, 170, 130, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
}

.login-dropdown-form input::placeholder {
    color: #a89a86;
}

.password-field {
    position: relative;
    display: flex;
}

.password-field input {
    width: 100%;
    padding-right: 28px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: none;
    color: #a89a86;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-toggle:hover {
    color: #f2ddb8;
}

.password-toggle .icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* a jelszó-szem a lapos űrlapokon (regisztráció, belépés, jelszó-csere) is */
.form-label .password-field input {
    padding-right: 42px;
}

.form-label .password-toggle {
    width: 30px;
    height: 30px;
    right: 6px;
    color: #8a7f70;
}

.form-label .password-toggle:hover {
    color: var(--rust);
}

.form-label .password-toggle .icon {
    width: 18px;
    height: 18px;
}

.login-dropdown-form .btn {
    margin-top: 1px;
    padding: 5px 8px;
    font-size: 12px;
}

.login-dropdown .form-error {
    margin-bottom: 6px;
    font-size: 11px;
}

.login-dropdown-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 8px;
    margin-top: 5px;
    font-size: 10.5px;
}

.login-dropdown-links a {
    color: #d8ae7c;
    text-decoration: underline;
}

.login-dropdown-links a:hover {
    color: #f2ddb8;
}

/* "Bejelentkezés" - kiemelt, rézbe öntött tábla, hogy a fő cselekvésre
   hívó gomb egyértelműen elüssön a többi (sötét fém) gombtól. */
.account-pill {
    font-weight: 700;
    color: #1a1611;
    background-color: #a9713f;
    background-image:
        linear-gradient(160deg, #ecc793 0%, #c1854e 40%, #8b5a2b 75%, #6b4423 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n2'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n2)'/></svg>");
    border: 1px solid #5a3a1e;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -2px 3px rgba(0,0,0,0.3),
        0 3px 8px rgba(0,0,0,0.55);
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}

.account-pill::before,
.account-pill::after {
    background: radial-gradient(circle at 35% 30%, #fff2dc, #7a5227 55%, #3a2610 100%);
}

.account-pill:hover {
    color: #1a1611;
    border-color: #f0d9b8;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -2px 3px rgba(0,0,0,0.3),
        0 7px 16px rgba(0,0,0,0.65);
}

/* Admin / Pénzügy - ugyanaz a sötét fémlap, mint a Főoldal/Kosár stb.
   gombok (nem a Bejelentkezés rézlapja), csak teal (márka-zöld)
   szegecsekkel és kerettel jelezve, hogy ez egy szerepkör-jelző, nem a
   sima navigáció része. Teljesen felülírja a .account-pill réz hátterét. */
.account-pill-admin {
    color: #cdeee3;
    background-color: #1c1712;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 28%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n3'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n3)'/></svg>");
    border-color: #2f6f5e;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -2px 3px rgba(0,0,0,0.65),
        0 3px 6px rgba(0,0,0,0.55);
    text-shadow: 0 1px 0 rgba(0,0,0,0.8), 0 -1px 0 rgba(255,255,255,0.04);
}

.account-pill-admin::before,
.account-pill-admin::after {
    background: radial-gradient(circle at 35% 30%, #bfe8da, #2f6f5e 55%, #16362c 100%);
}

.account-pill-admin:hover {
    color: #eafff8;
    border-color: #4fae94;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -2px 3px rgba(0,0,0,0.65),
        0 6px 14px rgba(47,111,94,0.45),
        0 0 0 1px rgba(79,174,148,0.35);
}

/* Nagykereskedelmi partner - ugyanaz a sötét fémlap, mint az Admin/Pénzügy
   jelző, csak kék szegecsekkel, hogy megkülönböztethető legyen a
   szerepkör-jelzőktől, de ugyanabba a családba tartozzon. Nem link
   (span), ezért nincs kattintható kurzor. */
.account-pill-partner {
    color: #cfe4f7;
    background-color: #1c1712;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 28%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n4'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n4)'/></svg>");
    border-color: #2f5f8f;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -2px 3px rgba(0,0,0,0.65),
        0 3px 6px rgba(0,0,0,0.55);
    text-shadow: 0 1px 0 rgba(0,0,0,0.8), 0 -1px 0 rgba(255,255,255,0.04);
    cursor: default;
}

.account-pill-partner::before,
.account-pill-partner::after {
    background: radial-gradient(circle at 35% 30%, #bfd8ee, #2f5f8f 55%, #16283b 100%);
}

.account-chip {
    max-width: 180px;
    font-size: 13px;
    cursor: pointer;
}

.account-chip .icon {
    color: var(--rust);
    flex-shrink: 0;
}

.account-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    background-color: #1c1712;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 28%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
    border: 1px solid #3c3125;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -2px 3px rgba(0,0,0,0.65), 0 3px 6px rgba(0,0,0,0.55);
    color: #c9bfae;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
    color: #f2ddb8;
    border-color: #b8834f;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -2px 3px rgba(0,0,0,0.65),
        0 6px 14px rgba(0,0,0,0.65),
        0 0 0 1px rgba(184,131,79,0.35);
}

/* ---------- ELRENDEZÉS: TARTALOM + HIRDETÉSI SÁV ---------- */

.shop-shell {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    align-items: start;
    padding: 0 32px;
}

.shop-shell-full {
    grid-template-columns: 1fr;
    max-width: 1400px;
}

.main-content {
    padding: 28px 0 60px;
    min-width: 0;
}

/* Csak a főoldalon (ahol a tartalom első eleme a "hero" üdvözlő szöveg) -
   ott a fejléc alatt feleslegesen nagy volt a rés, a többi oldal (pl.
   kategória-lista, ahol a content-header az első elem) érintetlen marad. */
.main-content:has(> .hero:first-child) {
    padding-top: 12px;
}

.content-header {
    margin-bottom: 18px;
}

.content-header h1 {
    font-size: 28px;
    margin: 0 0 6px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 14px rgba(255, 255, 255, 0.6);
}

.content-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 10px rgba(255, 255, 255, 0.6);
}

.content-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Rendezés: kiemelt, hogy a vevő észrevegye (user kérésére). */
.sort-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--rust-light);
    border: 1px solid var(--rust);
    border-left: 5px solid var(--rust);
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--graphite);
}

.sort-form label {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.sort-form select {
    padding: 9px 14px;
    border: 2px solid var(--rust);
    border-radius: 6px;
    background: var(--card);
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.breadcrumb {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 10px rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.back-link-bottom {
    margin-top: 24px;
}

/* ---------- FŐOLDAL: KATEGÓRIA-CSEMPÉK ---------- */

.hero { margin-bottom: 22px; }

.hero h1, .hero h2 {
    font-size: 30px;
    margin: 0 0 6px;
    font-family: 'Barlow Condensed', sans-serif;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 14px rgba(255, 255, 255, 0.6);
}

.hero-categories {
    margin-top: 8px;
}

.hero-categories h2 {
    font-size: 24px;
}

/* Beszerzési árlista: oszlopok ki-be kapcsolása jelölőnégyzettel. */
.col-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: var(--rust-light);
    border: 1px solid var(--rust);
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
}

.col-toggle-title {
    font-weight: 700;
    color: var(--graphite);
}

.col-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Tömeges eladási ár gombsor (admin termék-lista, kategória/alkategória szinten). */
.bulk-margin-active {
    font-weight: 700;
    color: var(--rust);
}

.bulk-margin-btn {
    padding: 7px 14px;
    border: 2px solid var(--rust);
    border-radius: 6px;
    background: var(--card);
    color: var(--graphite);
    font-family: 'Barlow', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
}

.bulk-margin-btn:hover {
    background: var(--rust-light);
}

.bulk-margin-btn.is-active {
    background: var(--rust);
    color: #fff;
}

/* Felhívás: nem raktáron tartott, de beszerezhető termékek (kérésre). */
.special-order-notice {
    margin: 30px 0 10px;
    padding: 20px 24px;
    background: var(--card);
    border: 2px solid var(--rust);
    border-radius: 10px;
    color: var(--text);
    line-height: 1.6;
}

.special-order-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--rust);
    margin-bottom: 8px;
}

.special-order-notice p {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
}

.special-order-cta a {
    font-weight: 700;
    color: var(--rust);
}

.ai-photo-notice {
    margin: 10px 0 0;
    padding: 0;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ---------- FŐOLDAL: AUTOMATIKUSAN CSÚSZÓ TERMÉK-SÁV ---------- */

.featured-section {
    margin-bottom: 36px;
}

.featured-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
}

.carousel-track-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

.carousel-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: carousel-scroll 38s linear infinite;
}

.carousel-track-wrap:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.carousel-card {
    flex: 0 0 auto;
    width: 150px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, border-color 0.15s, opacity 0.35s ease, transform 0.35s ease;
}

/* áttűnés a kártyacserénél (lásd home.html) */
.carousel-card.swapping {
    opacity: 0;
    transform: perspective(500px) rotateY(90deg);
}

.carousel-card:hover {
    border-color: var(--steel);
    box-shadow: 0 4px 14px rgba(27,34,44,0.08);
}

.carousel-card-image {
    background: #E9ECEF;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A939B;
}

.carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-card-name {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 10px 2px;
    line-height: 1.3;
    /* max 2 sor, utana "..." */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--graphite);
    padding: 2px 10px 10px;
    font-family: 'Barlow Condensed', sans-serif;
}

.carousel-card-price small {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
}

.carousel-card-price .price-gross {
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .carousel-card { width: 128px; }
    .carousel-card-image { height: 80px; }
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

/* Minden csempe - fotós vagy fotó nélküli - pontosan ugyanakkora, hogy a
   grid ne legyen ejtett fogsorú akkor sem, ha egyes kategóriáknak még
   nincs sajat kepe (lasd CATEGORY_TILE_IMAGES az app.py-ban). A fix
   magassag miatt a body resz overflow:hidden - az al-kategoria lista
   amugy is legfeljebb 6 sorra van vagva a sablonban, sose lognak ki. */
.category-tile {
    width: 280px;
    height: 480px;
    background: #D9D6CE;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.category-tile:hover {
    border-color: var(--rust);
    box-shadow: 0 8px 20px rgba(27,34,44,0.10);
    transform: translateY(-2px);
}

.category-tile-photo {
    flex: 0 0 180px;
    height: 180px;
    background: #E4E8EB;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-tile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Sok termekfotonak van ures/atlatszo margoja a termek korul, ami a
       csempe rozsdaszinu hatterekent (var(--rust-light)) latszik at - ezt
       nyomjuk ki a kepbol kicsit ranagyitva (a szulo overflow:hidden
       levagja a tullogo reszt), hogy a termek toltse ki jobban a csempet. */
    transform: scale(1.15);
}

/* ---------- ADMIN RAKTAR ---------- */
.stock-flash {
    background: #e7f4ea;
    border: 1px solid #a8d5b3;
    color: #1f5f34;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-weight: 600;
}
.stock-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.stock-card {
    background: #fff;
    border: 1px solid var(--line, #ddd);
    border-radius: 10px;
    padding: 14px 16px;
}
.stock-card-num { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stock-card-label { font-size: 13px; color: var(--text-muted, #666); margin-top: 4px; }
.stock-card-warn { border-color: var(--rust, #b8703a); background: #fff5ec; }
.stock-card-warn .stock-card-num { color: var(--rust-dark, #8a4a1c); }
.stock-card-muted .stock-card-num { color: var(--text-muted, #666); }
/* ---------- ADMIN BESZERZESI ARLAP ---------- */
.pl-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pl-filter select, .pl-filter .pl-q { padding: 9px 12px; border: 1px solid var(--line, #ccc); border-radius: 8px; }
.pl-filter .pl-q { flex: 1 1 280px; }
.pl-cards { margin-bottom: 10px; }
.pl-table td { vertical-align: middle; }
.pl-name { font-weight: 600; }
.pl-cat { font-size: 12px; color: var(--text-muted, #666); }
.pl-edit { display: inline-flex; gap: 4px; align-items: center; justify-content: flex-end; }
.pl-input { width: 92px; text-align: right; padding: 5px 7px; border: 1px solid var(--line, #bbb); border-radius: 6px; }
.pl-input:focus { border-color: var(--rust, #b8703a); outline: none; }
.pl-save { border: 1px solid var(--line, #bbb); background: #fff; border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.pl-save:hover { background: var(--rust, #b8703a); color: #fff; }
.pl-low { color: #b3261e; font-weight: 700; }
.finance-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.finance-form .form-label { margin-bottom: 0; }
.stock-search { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.stock-search input[type="text"] {
    flex: 1;
    padding: 11px 14px;
    font-size: 15px;
    border: 1px solid var(--line, #ccc);
    border-radius: 8px;
}
.stock-views { margin-bottom: 8px; }
.stock-help { max-width: 900px; }
.stock-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stock-qty { width: 72px; text-align: right; }
.stock-unit { color: var(--text-muted, #666); }
.stock-zero {
    background: transparent;
    border: 1px solid var(--line, #bbb);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}
.stock-status { font-size: 12px; color: var(--text-muted, #777); }
.stock-status-on { color: #1f7a3d; font-weight: 700; }
.stock-tag {
    display: inline-block;
    background: #eee;
    color: #666;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    margin-left: 6px;
}
.stock-tile-on { border-color: #a8d5b3; background: #f3fbf5; }
.stock-tile-badge { color: #1f7a3d; }
.stock-group-count { font-size: 13px; font-weight: 500; color: var(--text-muted, #666); margin-left: 10px; }
.stock-cat-cell, .stock-date { font-size: 13px; color: var(--text-muted, #666); }
.stock-cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.stock-cat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 13px;
    background: #fff;
    border: 1px solid var(--line, #ddd);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    min-width: 150px;
}
.stock-cat:hover { border-color: var(--rust, #b8703a); }
.stock-cat.has-stock { border-color: #a8d5b3; background: #f3fbf5; }
.stock-cat-name { font-weight: 600; font-size: 14px; }
.stock-cat-count { font-size: 12px; color: var(--text-muted, #666); }

/* Admin csempe: az elrejtett (inaktiv) tetelek szama. */
.admin-tile-hidden {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rust, #b8703a);
}

/* Ket kep egymas mellett (pl. gumibetetes csobilincs: 1 + 2 csavaros). */
.category-tile-photo-split .category-tile-photo-img {
    width: 50%;
}

/* Almenu-csempek (nincs al-lista): alacsonyabb, de egymassal egyforma. */
.category-tile-compact {
    height: 450px;
}

/* A csempen belul levo termekek meretei / nevei (rovid elonezet, "stb."). */


.category-tile-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 28px 28px;
    overflow: hidden;
}

.category-tile-icon {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    background: var(--card);
    color: var(--rust);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tile-icon .icon {
    width: 38px;
    height: 38px;
}

.category-tile-name {
    font-weight: 600;
    font-size: 23px;
    line-height: 1.3;
}

.category-tile-count {
    font-size: 15.5px;
    color: var(--text-muted);
}

.category-alias {
    font-weight: 400;
    font-size: 0.75em;
    color: var(--text-muted);
}

.category-tile-sublist {
    list-style: none;
    margin: 2px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.category-tile-sublist li {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
}

.category-tile-sublist li::before {
    content: "· ";
    color: var(--rust);
}

.category-tile-sublist-more {
    font-style: italic;
}

.category-tile-sublist-more::before {
    content: "" !important;
}

/* A csempéken belüli felsorolás: minden tétel új sorban, pontjellel. */
.category-tile-items {
    gap: 2px;
}

.category-tile-items li {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    padding-left: 14px;
    text-indent: -14px;
}

.category-tile-items li::before {
    content: "• ";
}

.category-tile-items .category-tile-sublist-more {
    padding-left: 0;
    text-indent: 0;
}

/* ---------- ALKATEGÓRIA-CÍMSOR (GYŰJTŐKATEGÓRIÁN BELÜL) ---------- */

.subcategory-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--steel);
    margin: 26px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.subcategory-heading:first-of-type {
    margin-top: 4px;
}

.subcategory-count {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: none;
}

/* ---------- LAPOZÁS (50 TERMÉK/OLDAL FELETT) ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 28px 0 10px;
}

.pagination-link {
    margin-top: 0;
}

.pagination-info {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- KATEGÓRIA-VÁLTÓ CHIP SÁV ---------- */

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.chip {
    flex: 0 0 auto;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    font-size: 14px;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
}

.chip:hover { border-color: var(--steel); }

.chip.active {
    background: var(--graphite);
    color: #fff;
    border-color: var(--graphite);
}

/* ---------- TERMÉKKÁRTYÁK ---------- */

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.product-card {
    width: 220px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.product-card:hover {
    border-color: var(--steel);
    box-shadow: 0 4px 14px rgba(27,34,44,0.08);
}

.product-card-image {
    position: relative;
    background: #E9ECEF;
    border-bottom: 1px solid var(--line);
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A939B;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    /* "cover": a kep mindig teljesen kitolti a keretet, sehol sem latszhat ki a
       hatter (a negyzetes / 1.83:1 kepeknel a felesleges perem levagodik). */
    object-fit: cover;
}

.zoomable-image {
    cursor: zoom-in;
}

/* Akciós link oldala + feliratkozás az akciós értesítőre (lábléc) */
.promo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.promo-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #e3d3c3; border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.promo-card img { width: 100%; height: 130px; object-fit: contain; background: #faf5ee; border-radius: 6px; }
.promo-card-name { font-weight: 700; line-height: 1.25; }
.promo-card-price b { color: #c0392b; font-size: 20px; }
.promo-card-old { color: #8a7a68; margin-right: 4px; }
.promo-card-gross { display: block; font-size: 12px; color: #7a6a58; }
.promo-card-tiers { font-size: 12px; line-height: 1.35; color: #7b2418; }
.promo-card-go { margin-top: auto; color: #c0501b; font-weight: 700; }
.promo-subscribe { margin: 14px auto 6px; max-width: 520px; text-align: left; position: relative; }
.promo-subscribe-title { font-weight: 700; margin-bottom: 4px; }
.promo-subscribe-row { display: flex; gap: 8px; }
.promo-subscribe-row input[type="email"] { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #c9b8a4; border-radius: 6px; }
.promo-subscribe-row button { padding: 8px 14px; border: 0; border-radius: 6px; background: #c0501b; color: #fff; font-weight: 700; cursor: pointer; }
.promo-subscribe-consent { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; opacity: .85; }

/* Mennyiséghez kötött akciós ár (pl. Hilti szalag min. 200 db): feltétel az ár alatt, a kosárban jelzés, ha még hiányzik a mennyiség. */
.promo-qty-note {
    margin: 4px 0 8px;
    padding: 6px 9px;
    font-size: 13px;
    line-height: 1.35;
    color: #7b2418;
    background: #fff4f1;
    border: 1px solid #e8a79d;
    border-radius: 6px;
}
.promo-qty-note.warn { background: #fff4d6; border-color: #d9a400; color: #5c4400; }

/* Állandó "AKCIÓS" bélyeg az akciós termékeken (products.is_promo): a kép bal felső sarkában, enyhén megdöntve. */
.promo-stamp {
    position: absolute;
    top: 10px;
    left: -6px;
    z-index: 4;
    background: #c0392b;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.2px;
    padding: 5px 14px 5px 16px;
    border-radius: 3px 6px 6px 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transform: rotate(-4deg);
    pointer-events: none;
    text-transform: uppercase;
}
.info-image .promo-stamp {
    font-size: 16px;
    top: 14px;
    left: -4px;
    padding: 7px 18px 7px 20px;
}

.product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.zoom-hint {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(36, 31, 27, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.zoom-hint .icon {
    width: 14px;
    height: 14px;
}

.product-card:hover .zoom-hint {
    opacity: 1;
}

/* ---------- KEDVENC (SZÍV) GOMB ---------- */

.favorite-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.favorite-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(36, 31, 27, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.favorite-btn .icon {
    width: 16px;
    height: 16px;
}

.favorite-btn:hover {
    background: rgba(143, 82, 48, 0.85);
    transform: scale(1.08);
}

.favorite-btn.active {
    background: var(--rust);
}

.favorite-btn.active .icon {
    fill: currentColor;
}

/* ---------- KÉP-NAGYÍTÓ (LIGHTBOX) ---------- */

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(36, 31, 27, 0.92);
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 1000;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-close .icon {
    width: 20px;
    height: 20px;
}

.view-switch {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 900;
    padding: 8px 14px;
    border-radius: 20px;
    background: #241f1b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.view-switch-on {
    background: #b3541e;
}

@media print {
    .view-switch { display: none; }
}

.lightbox-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.placeholder-icon {
    width: 34px;
    height: 34px;
}

.product-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-name {
    font-weight: 500;
    font-size: 15.5px;
    line-height: 1.3;
}

.product-note {
    color: var(--teal);
    font-size: 14.5px;
    font-weight: 500;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--graphite);
    margin-top: auto;
    padding-top: 6px;
    font-family: 'Barlow Condensed', sans-serif;
}

.discount-tier-legend {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--rust);
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
}

.discount-tier-legend summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
}

.discount-tier-legend summary::-webkit-details-marker {
    display: none;
}

.discount-tier-legend summary::before {
    content: '▸ ';
    color: var(--rust);
}

.discount-tier-legend[open] summary::before {
    content: '▾ ';
}

.discount-tier-legend-hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}

.discount-tier-legend p {
    margin: 8px 0 0;
}

.tier-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.tier-preview-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 9px 5px;
    border-radius: 10px;
    border: 1px solid var(--rust);
    background: transparent;
    color: var(--rust);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.tier-preview-pct {
    font-size: 13.5px;
}

.tier-preview-threshold {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.85;
    white-space: nowrap;
}

.tier-preview-btn:hover {
    background: var(--rust);
    color: #fff;
}

.tier-preview-btn.tier-preview-active {
    background: var(--rust);
    color: #fff;
}

.tier-preview-reset {
    border-color: var(--line);
    color: var(--text-muted);
}

.tier-preview-reset:hover {
    background: var(--graphite);
    border-color: var(--graphite);
}

.product-price small {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
}

/* A "nettó" jelölés a nettó Ft-összeg mellé kerül (ugyanabba a sorba), nem alá. */
.product-price small.price-net,
.info-price small.price-net {
    display: inline;
}

.price-gross {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--teal);
}

.stock-badge {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
    margin-left: 4px;
}

.batch-notice {
    background: #CFE5DD;
    border: 2px solid var(--teal);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 14px 0;
    color: #17342b;
    box-shadow: 0 1px 3px rgba(47, 111, 94, 0.25);
}

.admin-price-gross {
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
}

.add-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.add-form input[type=number] {
    width: 56px;
    padding: 7px 6px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
}

.btn {
    border: none;
    border-radius: 3px;
    padding: 8px 14px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
}

.btn-add {
    background: var(--graphite);
    color: #fff;
}

.btn-add:hover { background: var(--rust); }

/* A "Kedvenceim megtekintése" (és hasonló, kiemelt fiók-oldali) linkek -
   korábban a halvány .content-subtitle színét örökölték, ami majdnem
   egybeolvadt a háttérrel ("a kedvenceim gomb láthatatlan" panasz) -
   ezért ez saját, jól látható, rozsda-akcentusú gomb-stílust kap. */
.account-highlight-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 9px 16px;
    border-radius: 20px;
    background: var(--rust-light);
    border: 1px solid var(--rust);
    color: var(--rust);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.account-highlight-link:hover {
    background: var(--rust);
    color: #fff;
}

.btn-info-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.btn-info-link:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.admin-edit-link-block {
    margin-top: 4px;
    background: var(--graphite);
    border-color: var(--graphite);
    color: #fff;
    padding: 8px 10px;
}

.admin-edit-link-block:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.btn-info-link .icon {
    width: 14px;
    height: 14px;
}

.icon-external-hint {
    width: 11px;
    height: 11px;
    opacity: 0.6;
}

/* ---------- TERMÉKISMERTETŐ OLDAL ---------- */

.info-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.image-ai-disclaimer {
    margin: 8px 2px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: center;
}

.info-image {
    position: relative;
    background: #E9ECEF;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A939B;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.info-image .placeholder-icon {
    width: 64px;
    height: 64px;
}

.info-image .gallery-slide {
    position: absolute;
    inset: 0;
    display: none;
}

.info-image .gallery-slide.active {
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.65);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.gallery-dot.active {
    background: var(--rust);
    border-color: var(--rust);
}

.info-body {
    min-width: 0;
}

.info-price {
    font-size: 24px;
    font-weight: 600;
    color: var(--graphite);
    font-family: 'Barlow Condensed', sans-serif;
    margin-bottom: 4px;
}

.price-flag-notice {
    background: var(--danger-light);
    border: 1px solid var(--danger);
    color: var(--danger-dark);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.price-flag-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.info-price small {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
}

.info-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.info-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-list {
    margin: 0;
    padding-left: 20px;
}

.info-list li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

/* A "Részletes ismertető" blokk (és az alatta lévő visszalépő link) kissé középre igazítva: keskenyebb, középre tett oszlop,
   középre igazított címmel; a felsorolás szövege balra zárt marad, hogy jól olvasható legyen. */
.info-section-centered {
    max-width: 720px;
    margin-left: 50px;      /* félúton a teljesen balra zárt és a teljesen középre tett között */
    margin-right: auto;
}
.info-section-centered .info-section-title {
    text-align: center;
}
.info-body .back-link-bottom {
    max-width: 720px;
    margin-left: 50px;
    text-align: center;
}
@media (max-width: 900px) {
    .info-section-centered,
    .info-body .back-link-bottom {
        margin-left: auto;
        margin-right: auto;
    }
}

/* A feldolgozási tájékoztató a terméklapon asztali nézetben a kép alatt áll (keskeny, hosszú oszlopban), telefonon viszont a
   "Kosárba" gomb alá kerül, hogy ne tolja le az árat és a gombot. */
.batch-below { display: none; }
@media (max-width: 700px) {
    .info-page {
        grid-template-columns: 1fr;
    }
    .info-image {
        height: 220px;
    }
    .batch-side { display: none; }
    .batch-below { display: block; }
}

/* ---------- HIRDETÉSI SÁV ---------- */

.ad-rail {
    padding: 28px 0 60px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 16px;
}

.ad-card {
    border-radius: 10px;
    padding: 18px;
    font-size: 14px;
    font-weight: 500;
}

.ad-card-featured {
    background: var(--card);
    border: 1px solid var(--line);
    position: relative;
}

.ad-label {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.ad-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--teal-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.ad-card-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    padding-right: 50px;
}

.ad-card-text {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 10px;
}

.ad-card-status {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.ad-card-placeholder {
    border: 1px dashed var(--line);
    color: var(--text-muted);
    text-align: center;
    padding: 30px 14px;
}

/* ---------- LÁBLÉC ---------- */

.site-footer {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 18px 16px;
    border-top: 1px solid var(--line);
    background: var(--card);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: underline;
}

.footer-links a:hover {
    color: var(--teal);
}

/* SimplePay: a lábléc logója és a pénztár kártyás blokkja */
.footer-simplepay {
    margin-top: 12px;
}

.footer-simplepay img {
    display: inline-block;
    vertical-align: middle;
    background: #fff;
}

.sp-logos {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.sp-logos img {
    height: 26px;
    width: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 4px;
}

.sp-box {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    margin: 0 0 8px;
    background: var(--card);
}

.sp-logo-link img {
    display: block;
    max-width: 100%;
    height: auto;
    background: #fff;
}

.sp-decl {
    overflow-wrap: anywhere;
}

.sp-box .form-checkbox {
    margin-bottom: 0;
}

.sp-result {
    max-width: 640px;
    margin: 0 auto 24px;
    padding: 20px 22px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--card);
}

.sp-result h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.sp-result.sp-ok {
    border-color: #1f7a3d;
}

.sp-result.sp-ok h2 {
    color: #1f7a3d;
}

.sp-result.sp-bad {
    border-color: #a3392b;
}

.sp-result.sp-bad h2 {
    color: #a3392b;
}

.sp-txid {
    font-size: 16px;
    font-weight: 700;
}

/* ---------- SÜTI-TÁJÉKOZTATÓ SÁV ---------- */

.cookie-notice {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(36, 31, 27, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-notice.active {
    display: flex;
}

.cookie-notice-card {
    background: var(--graphite);
    color: #fff;
    border-radius: 12px;
    padding: 24px 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    max-width: 460px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cookie-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-notice a {
    color: #FFD9C4;
}

.cookie-notice .btn {
    align-self: flex-end;
    flex-shrink: 0;
}

/* ---------- JOGI DOKUMENTUMOK (ÁSZF, ADATVÉDELEM) ---------- */

.legal-placeholder-warning {
    background: var(--rust-light);
    border: 1px solid var(--rust);
    color: var(--rust-dark);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 14.5px;
    font-weight: 500;
}

.legal-doc {
    max-width: 820px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px 32px;
}

.legal-doc h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    color: var(--steel);
    margin: 30px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--line);
}

.legal-doc h2:first-child {
    margin-top: 0;
}

.legal-doc h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    color: var(--text);
    margin: 20px 0 8px;
}

.legal-doc p {
    margin: 0 0 12px;
    line-height: 1.65;
}

.legal-doc ul {
    margin: 0 0 12px;
    padding-left: 22px;
    line-height: 1.65;
}

.legal-doc a {
    color: var(--teal);
}

/* ---------- KOSÁR ---------- */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
}

.cart-table th {
    text-align: left;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--graphite);
    padding: 10px 12px;
}

.cart-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.cart-table .num { text-align: right; }

.cart-qty-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.cart-qty-input {
    width: 56px;
    padding: 6px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    text-align: center;
}

.cart-qty-input:focus {
    outline: none;
    border-color: var(--rust);
}

.cart-qty-save {
    border: none;
    background: var(--graphite);
    color: #fff;
    border-radius: 4px;
    padding: 6px 10px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.cart-qty-save:hover { background: var(--rust); }

.cart-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.cart-remove-btn .icon {
    width: 15px;
    height: 15px;
}

.cart-remove-btn:hover {
    border-color: var(--rust);
    background: var(--rust-light);
    color: var(--rust-dark);
}

.cart-clear-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.cart-clear-btn {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    border-radius: 6px;
    cursor: pointer;
    padding: 11px 20px;
}

.cart-clear-btn:hover {
    border-color: var(--rust-dark);
    color: var(--rust-dark);
    background: var(--rust-light);
}

.strike {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.savings-panel {
    background: var(--teal-light);
    border: 1px solid var(--teal);
    border-radius: 4px;
    padding: 18px 22px;
    margin-top: 24px;
}

.savings-panel .big {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--teal);
}

.progress-track {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    height: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    background: var(--rust);
    height: 100%;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid var(--graphite);
}

.total-line-gross {
    margin-top: 4px;
    padding-top: 0;
    border-top: none;
    color: var(--teal);
}

.total-line-gross .amount {
    font-size: 22px;
}

.total-line .amount {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 34px;
    font-weight: 700;
}

.empty-cart {
    background: var(--card);
    border: 1px dashed var(--line);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    margin-top: 20px;
}

.checkout-cta {
    margin-top: 22px;
    text-align: right;
}

.btn-checkout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 17px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rust) 0%, var(--rust-dark) 100%);
    box-shadow: 0 6px 14px rgba(168, 102, 63, 0.3);
    transition: transform 0.18s, box-shadow 0.18s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(168, 102, 63, 0.4);
}

/* ---------- FEJLÉC GOMBOK - KÖZTES SZÉLESSÉG ---------- */
/* Mind az 5 gomb egy sorban van, a hely 6 részre osztva - a 901-1150px
   tartományban ez szorul zsugorításra, hogy a hatszög-gombok ne érjenek
   egymáshoz. 900px alatt már a sima, tördelődő mobil-elrendezés veszi át
   (lásd lejjebb), ahol nem kell zsugorítani. */
@media (min-width: 901px) and (max-width: 1150px) {
    .pos-rolunk .nut-button, .pos-termkat .nut-button,
    .pos-elerheto .nut-button, .pos-kosar .nut-button {
        width: 50px;
        height: 56px;
    }
    .pos-rolunk .nut-icon, .pos-termkat .nut-icon,
    .pos-elerheto .nut-icon, .pos-kosar .nut-icon {
        width: 12px;
        height: 12px;
    }
    .pos-rolunk .button-text, .pos-termkat .button-text,
    .pos-elerheto .button-text, .pos-kosar .button-text {
        font-size: 6.5px;
    }
    .pos-rolunk .led-indicator, .pos-termkat .led-indicator,
    .pos-elerheto .led-indicator, .pos-kosar .led-indicator {
        width: 5px;
        height: 5px;
        margin-top: 5px;
    }

    .pos-foldal.nut-button-container-large .nut-button {
        width: 66px;
        height: 74px;
    }
    .pos-foldal.nut-button-container-large .nut-icon { width: 16px; height: 16px; }
    .pos-foldal.nut-button-container-large .button-text { font-size: 8px; }
    .pos-foldal.nut-button-container-large .led-indicator { width: 6px; height: 6px; margin-top: 6px; }

    /* Ugyanez a zsugorítás az új "csavaranya" Kezdőlap gombra (jelenleg
       csak ő használja az industrial-nut-btn/hex-nut osztályokat) - anélkül
       126px szélesen belelógna a szomszédokba ezen a köztes szélességen. */
    .pos-foldal.industrial-nut-btn .hex-nut { width: 66px; height: 58px; }
    .pos-foldal.industrial-nut-btn .threaded-inner { width: 50px; height: 44px; }
    .pos-foldal.industrial-nut-btn .home-icon { width: 12px; height: 12px; }
    .pos-foldal.industrial-nut-btn .btn-text { font-size: 6.5px; }
    .pos-foldal.industrial-nut-btn .led-indicator { width: 4px; height: 4px; }

    /* Ugyanez a zsugorítás a kép-alapú Kezdőlap gombra is (140px alapból
       ezen a köztes szélességen belelógna a szomszédokba). */
    .pos-foldal.img-nav-btn .img-nav-btn-frame { width: 84px; height: 84px; }
}

/* ---------- RESZPONZÍV (MOBIL) ---------- */

@media (max-width: 900px) {
    .shop-shell {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 0;
    }

    .ad-rail {
        position: static;
        padding: 0 0 32px;
    }

    .main-content {
        padding: 20px 0 24px;
    }

    .site-header {
        padding: 8px 18px 2px;
        min-height: 118px;
        background-position: 60% 14px;
        background-size: 82% auto;
        justify-content: center;
        gap: 4px 14px;
    }
    .header-logo-spacer { display: block; height: 118px; }
    .header-right-guest {
        padding-right: 0;
    }
    /* A pontos, logó-szélesség-alapú rácspozicionálás csak a fix 200px-es
       asztali fejlécnél működik - itt a fejléc/logó már összement, ezért az
        5 gomb egyszerűen egy sima, tördelődő sorba kerül a logó alá, mint
       eredetileg a header-nav. Egyenlő méretre hozva (a pos-* egyedi
       méretei helyett), középre igazítva, két szoros sorban (Termékek-
       Kezdőlap-Kosár felül, Rólunk-Elérhetőség alul, lásd .mobile-nav-break
       a sablon DOM-sorrendjével együtt), ne a különböző gombméretek miatti
       kusza, magas elrendezésben. */
    .nav-fixed-btn {
        position: static;
        transform: none;
        margin: 0;
    }
    .nav-fixed-btn .img-nav-btn-frame,
    .pos-rolunk .img-nav-btn-frame,
    .pos-termkat .img-nav-btn-frame,
    .pos-foldal .img-nav-btn-frame,
    .pos-elerheto .img-nav-btn-frame,
    .pos-kosar .img-nav-btn-frame {
        width: 84px;
        height: 84px;
    }
    /* Kezdőlap - a user kérésére kicsit nagyobb, középen (Termékek és Kosár
       között), mint a csoport kiemelt gombja - ugyanaz a hierarchia, mint
       asztali nézetben. */
    .pos-foldal .img-nav-btn-frame {
        width: 100px;
        height: 100px;
    }
    .mobile-nav-break {
        display: block;
        flex-basis: 100%;
        width: 100%;
        height: 0;
    }
    .img-nav-btn-label {
        font-size: 10px;
    }
    .img-nav-btn-label-sm {
        font-size: 8.5px;
    }
    .img-nav-btn-label-icon {
        width: 22px;
        height: 22px;
    }
    .img-nav-btn-cart-badge {
        font-size: 8px;
        padding: 2px 6px;
        bottom: -18px;
    }

    /* Ettől a szélességtől lefelé a mindig látható belépő panel már nem
       fér el a sarokba tűzve a nav mellett - inkább teljes szélességben,
       a fejléc tartalmának aljára kerül, a normál elrendezés részeként. */
    .login-dropdown-wrap {
        position: static;
        width: 100%;
        flex: 1 0 100%;
        order: 5;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }
    .login-dropdown {
        position: static;
        width: 100%;
        max-width: 320px;
        margin-top: 8px;
    }
    .search-strip {
        padding-top: 4px;
    }

    /* Bejelentkezve ugyanígy: a fiók-doboz (email/kijelentkezés + admin
       gomb) sem maradhat a sarokba tűzve ezen a szélességen, mert a nav
       gombok már statikus, tördelődő elrendezésben vannak - a fiók-doboz
       is a normál tartalom részeként, teljes szélességben, a gombsor alá
       kerül. */
    .header-account-fixed {
        position: static;
        width: 100%;
        flex: 1 0 100%;
        order: 5;
        align-items: center;
        margin-top: 10px;
    }

    .contact-row { gap: 16px; font-size: 13.5px; }

    .logo-mark { width: 58px; height: 58px; }

    .header-nav a {
        padding: 10px 15px;
        font-size: 12px;
    }

    .header-right { gap: 12px; }

    .header-account {
        padding-left: 0;
        border-left: none;
        gap: 8px;
    }

    .account-pill {
        padding: 10px 15px;
        font-size: 12px;
    }

    .account-chip { max-width: 130px; font-size: 12px; }

    .icon-btn { width: 36px; height: 36px; }

    .category-grid {
        gap: 14px;
    }

    /* Fix szélesség helyett nyújtható: 2 csempe egy sorban egyenlően
       kitölti a helyet, egy magára maradt csempe pedig szélesebbre nyúlik -
       sosem marad kihasználatlan üres hely mobilon. A max-width korlátozza,
       hogy mennyire nőhet: szélesebb nézeten (ahol egy sorban amúgy is több
       csempe fér ki) egy magányos csempe enélkül aránytalanul, a többihez
       képest 3-4x nagyra nyúlna - ez korlátozza kb. dupla méretre. */
    .category-tile { flex: 1 1 150px; max-width: 340px; }

    /* Telefonon a szűk csempékben a szöveg többet tör - a magasság a
       tartalomhoz igazodik, a rácssor minden csempéje így is egyforma. */
    .category-tile,
    .category-tile-compact { height: auto; min-height: 380px; }
    .category-tile-body { overflow: visible; }
    .category-tile-photo { flex-basis: 130px; height: 130px; }
    .category-tile-body { padding: 16px 16px 20px; gap: 10px; }

    .category-tile-icon { width: 58px; height: 58px; }
    .category-tile-icon .icon { width: 29px; height: 29px; }
    .category-tile-name { font-size: 18px; }

    .product-grid {
        gap: 10px;
    }

    .product-card { width: 150px; }

    .admin-card-actions {
        flex-direction: column;
    }

    .admin-card-actions .admin-edit-link-block,
    .admin-toggle-btn-block {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-nav { gap: 8px; }
    .header-nav a { padding: 9px 13px; font-size: 11px; letter-spacing: 0.8px; }
    .hero h1, .content-header h1 { font-size: 22px; }

    .header-account { padding-left: 0; border-left: none; gap: 6px; }
    .account-pill { padding: 9px 13px; font-size: 11px; letter-spacing: 0.8px; }
    .account-chip span { display: none; }
    .account-chip { max-width: none; }
}

/* ---------- BEJELENTKEZÉS / REGISZTRÁCIÓ ŰRLAPOK ---------- */

.auth-form {
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.form-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.form-label input {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.form-label input:focus {
    outline: none;
    border-color: var(--rust);
}

.form-label textarea {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    resize: vertical;
}

.form-label textarea:focus {
    outline: none;
    border-color: var(--rust);
}

.form-error {
    background: var(--rust-light);
    border: 1px solid var(--rust);
    color: var(--rust-dark);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-optional {
    border: 1px dashed var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.form-optional summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--teal);
}

.form-optional[open] summary {
    margin-bottom: 4px;
}

.form-radio {
    position: relative;
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px 10px 40px;
    margin-bottom: 8px;
    cursor: pointer;
}

/* A rádiógomb fix helyen, bal oldalt - ne csússzon szét a felirattal. */
.form-radio input[type="radio"] {
    position: absolute;
    left: 13px;
    top: 12px;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
}

.form-radio:has(input:checked) {
    border-color: var(--teal);
    background: var(--teal-light);
}

.form-radio-detail {
    font-weight: 500;
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin: 3px 0 0;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 4px 0 16px;
}

.form-optional-static {
    border: 1px dashed var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.price-fixed-label {
    color: var(--text);
    font-size: 15px;
}

.price-fixed-input {
    border: 2px solid var(--rust) !important;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 12px;
}

.price-fixed-col {
    background: var(--rust-light);
}

/* ---------- MEGRENDELÉS LEADÁSA ---------- */

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(320px, 470px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* Rendelés összesítő: a tételek oszlopai ne csússzanak szét - a név kap
   helyet, a mennyiség és az összeg egy sorban, egymás mellett marad. */
.order-summary .cart-table td.num,
.order-summary .cart-table th.num {
    white-space: nowrap;
    width: 1%;
}

.order-summary .cart-table td.num .price-gross {
    display: block;
}

.order-summary .total-line {
    margin-top: 14px;
    padding-top: 12px;
}

.order-summary .total-line > div:first-child {
    font-size: 15px;
    font-weight: 600;
}

.order-summary .total-line .amount {
    font-size: 22px;
    white-space: nowrap;
}

.order-summary .total-line-gross .amount {
    font-size: 19px;
}

.checkout-form {
    max-width: none;
}

.order-summary {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.order-summary-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    margin: 0 0 14px;
}

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

/* ---------- ADMIN NAVIGÁCIÓ ---------- */

/* Főmenü: nagy, jól látható csempe-gombok (ikon + felirat). Nincs negatív margó, így semmit nem takar el. */
.admin-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 22px 0 30px;
    padding: 12px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(36, 31, 27, .08);
    clear: both;
    position: relative;
    z-index: 1;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid var(--line);
    box-shadow: 0 1px 3px rgba(36, 31, 27, .08);
    color: var(--graphite);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.15;
    transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease, box-shadow .12s ease;
}

.admin-menu a .ic {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f1ebe2;
    font-size: 26px;
    line-height: 1;
}

.admin-menu a .tx {
    flex: 1;
    min-width: 0;
}

.admin-menu a .more {
    flex: none;
    font-size: 14px;
    opacity: .6;
}

.admin-menu a:hover {
    border-color: var(--graphite);
    box-shadow: 0 6px 16px rgba(36, 31, 27, .16);
    transform: translateY(-2px);
}

.admin-menu a.active {
    background: var(--graphite);
    border-color: var(--graphite);
    color: #fff;
    box-shadow: 0 6px 16px rgba(36, 31, 27, .28);
}

.admin-menu a.active .ic {
    background: rgba(255, 255, 255, .18);
}

@media (min-width: 1040px) {
    .admin-menu {
        grid-template-columns: repeat(6, 1fr);
    }
    .admin-menu a {
        padding: 12px 12px;
        font-size: 17px;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .admin-menu {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
    }
    .admin-menu a {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 6px;
        min-height: 84px;
        padding: 10px 6px;
        font-size: 15px;
    }
    .admin-menu a .tx {
        flex: none;
    }
    .admin-menu a .more {
        display: none;
    }
}

/* Nagy, érthető gombok az admin oldalakon (pl. Rendelések) */
.btn-big {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid var(--graphite);
    background: #fff;
    color: var(--graphite);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, transform .12s ease, box-shadow .12s ease;
}

.btn-big:hover {
    box-shadow: 0 4px 12px rgba(36, 31, 27, .18);
    transform: translateY(-1px);
}

.btn-big.green {
    background: #2f7d4f;
    border-color: #2f7d4f;
    color: #fff;
}

.btn-big.red {
    background: #b3261e;
    border-color: #b3261e;
    color: #fff;
}

.btn-big.red:disabled {
    background: #e7d6d4;
    border-color: #e7d6d4;
    color: #8a7a78;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-big.xl {
    min-height: 58px;
    padding: 12px 28px;
    font-size: 19px;
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 190px;
}

.order-actions form {
    margin: 0;
}

.order-actions .btn-big {
    width: 100%;
}

.order-state-select {
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid var(--graphite);
    background: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
}

.order-field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.order-delete-arm {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.order-delete-arm input {
    width: 22px;
    height: 22px;
}

/* Rendelések: kártyák és állapot-fülek */
.oc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 18px;
}

.oc-tab {
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid var(--line);
    background: #fff;
    color: var(--graphite);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.oc-tab b {
    display: inline-block;
    min-width: 26px;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #f1ebe2;
    font-size: 14px;
    text-align: center;
}

.oc-tab:hover {
    border-color: var(--graphite);
}

.oc-tab.on {
    background: var(--graphite);
    border-color: var(--graphite);
    color: #fff;
}

.oc-tab.on b {
    background: rgba(255, 255, 255, .22);
}

.oc-list {
    display: grid;
    gap: 16px;
    margin-bottom: 26px;
}

.oc-card {
    background: #fff;
    border: 2px solid var(--line);
    border-left: 9px solid #9a8f82;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(36, 31, 27, .08);
}

.oc-uj { border-left-color: #d9531e; }
.oc-folyamat { border-left-color: #2c6fb0; }
.oc-kesz { border-left-color: #2f7d4f; }
.oc-kimeno { border-left-color: #6b5b95; }
.oc-weekend { background: #fffaf0; }

.oc-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
}

.oc-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oc-id { font-size: 13px; color: var(--text-muted); }
.oc-name { font-size: 20px; line-height: 1.2; }
.oc-sub { font-size: 14px; color: var(--text-muted); }

.oc-sum { text-align: right; }
.oc-sum strong { font-size: 22px; }
.oc-sum small { color: var(--text-muted); }
.oc-sum span { display: block; font-size: 14px; color: var(--text-muted); }

.oc-badge {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    background: #eee;
}

.oc-badge-uj { background: #fde3d6; color: #8a2f08; }
.oc-badge-folyamat { background: #dbe9f7; color: #12426f; }
.oc-badge-kesz { background: #d8eedf; color: #1d5a37; }
.oc-badge-kimeno { background: #e5e0f0; color: #3f3463; }

.oc-warn {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff3cd;
    border: 1px solid #e0c36a;
    font-weight: 700;
}

.oc-body {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 22px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.oc-body .admin-order-items { margin: 0; }
.oc-addr { margin-top: 6px; font-size: 15px; }
.oc-call { margin-top: 6px; font-weight: 700; color: #b3261e; }

.oc-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: flex-end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.oc-state { min-width: 210px; margin: 0; }
.oc-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.oc-actions form { margin: 0; }
.oc-delete { margin-left: auto; display: flex; flex-direction: column; gap: 6px; }
.oc-delete form { margin: 0; }

.oc-empty {
    padding: 26px;
    border-radius: 14px;
    background: #fff;
    border: 2px dashed var(--line);
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
}

@media (max-width: 760px) {
    .oc-head { grid-template-columns: 1fr; }
    .oc-sum { text-align: left; }
    .oc-badge { justify-self: start; }
    .oc-body { grid-template-columns: 1fr; gap: 14px; }
    .oc-foot { align-items: stretch; }
    .oc-state, .oc-actions, .oc-delete { width: 100%; margin-left: 0; }
    .oc-actions .btn-big { flex: 1 1 100%; }
    .oc-delete .btn-big { width: 100%; }
}

/* Almenü-lap: egy főgomb mögötti oldalak tiszta, fehér kártyákként */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    margin: 6px 0 40px;
}

.hub-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(36, 31, 27, .06);
    color: var(--graphite);
    text-decoration: none;
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.hub-tile:hover {
    border-color: var(--graphite);
    box-shadow: 0 6px 18px rgba(36, 31, 27, .12);
    transform: translateY(-1px);
}

.hub-ic {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f1ebe2;
    color: var(--graphite);
    font-size: 26px;
    line-height: 1;
}

.hub-body {
    flex: 1;
    min-width: 0;
}

.hub-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.hub-desc {
    display: block;
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--text-muted);
}

.hub-arrow {
    flex: none;
    font-size: 20px;
    color: var(--text-muted);
    transition: transform .12s ease, color .12s ease;
}

.hub-tile:hover .hub-arrow {
    transform: translateX(4px);
    color: var(--graphite);
}

/* ---------- ADMIN ÁRLISTA ---------- */

.table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    font-size: 14px;
}

.price-list-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.discount-tier-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    white-space: normal;
}

.discount-tier-choice {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
}

.discount-tier-choice input {
    accent-color: var(--rust);
    cursor: pointer;
}

.price-list-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: normal;
}

.admin-table th {
    text-align: left;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--graphite);
    padding: 8px 7px;
}

.admin-table td {
    padding: 8px 7px;
    border-bottom: 1px solid var(--line);
}

.admin-table .num { text-align: right; white-space: nowrap; }

.tier-col { display: none; }

.admin-tier-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    max-width: 340px;
}

.admin-row-restricted {
    background: var(--rust-light);
}

.admin-row-flagged {
    background: var(--danger-light) !important;
}

.price-flag-badge {
    display: inline-block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 700;
    color: var(--danger-dark);
}

.admin-price-input-below-cost {
    border-color: var(--danger) !important;
    background: var(--danger-light) !important;
    color: var(--danger-dark);
    font-weight: 700;
}

.price-flag-tier-note {
    font-size: 13px;
    font-weight: 700;
    color: var(--danger-dark);
    margin-top: 2px;
}

.admin-price-approve-btn {
    border: 1px solid var(--danger);
    background: var(--card);
    color: var(--danger-dark);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.admin-price-approve-btn:hover {
    background: var(--danger);
    color: #fff;
}

.price-ok-note {
    color: var(--teal);
    font-weight: 700;
    font-size: 14px;
}

.admin-price-flash-banner {
    background: var(--danger-light);
    border-bottom: 1px solid var(--danger);
    color: var(--danger-dark);
    padding: 12px 32px;
    font-size: 14.5px;
    font-weight: 600;
    text-align: center;
}

.price-alert-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--danger-light);
    border: 1px solid var(--danger);
    color: var(--danger-dark);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.price-alert-banner:hover,
.price-alert-banner.active {
    background: var(--danger);
    color: #fff;
}

.price-alert-banner-link {
    margin-left: auto;
    font-weight: 700;
    white-space: nowrap;
}

.admin-toggle-btn {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 4px 14px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.admin-toggle-btn.is-on {
    background: var(--rust);
    border-color: var(--rust);
    color: #fff;
}

.admin-price-form {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

/* Rendelés-törlés "feloldó" checkbox + törlés gomb (admin_orders.html) -
   lásd base.html a viselkedésért. A gomb alapból disabled, halványabb. */
.admin-delete-order {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 110px;
}

.admin-delete-arm {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.admin-delete-order-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.admin-inline-price-form {
    justify-content: flex-start;
    margin: 6px 0;
}

.admin-inline-price-form .admin-price-input {
    width: 90px;
}

.admin-price-input {
    width: 70px;
    padding: 5px 6px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-family: 'Barlow', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    text-align: right;
}

.admin-price-input:focus {
    outline: none;
    border-color: var(--rust);
}

.admin-price-input-override {
    border-color: var(--teal);
    background: var(--teal-light);
    font-weight: 600;
}

.admin-override-hint {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: 3px;
    padding: 1px 6px;
    font-weight: 600;
}

.admin-price-save {
    border: none;
    background: var(--rust);
    color: #fff;
    border-radius: 3px;
    padding: 5px 10px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.admin-price-save:hover {
    background: var(--rust-dark);
}

.admin-edit-link {
    display: inline-block;
    border: 1px solid var(--teal);
    color: var(--teal);
    border-radius: 999px;
    padding: 4px 14px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.admin-edit-link:hover {
    background: var(--teal);
    color: #fff;
}

/* ---------- KERESŐSÁV (FEJLÉC ALATT, MINDENHOL LÁTHATÓ) ---------- */

/* Kereso + telefon/e-mail EGY sav (egybenyitva), a kozos rozsdas hatter
   elott enyhen elsotetitve (homalyositva), hogy a szoveg jol olvashato. */
/* A kereső mező FIX, mindig pontosan középen (position:relative konténeren
   belül, sima középre igazított blokként) - ez innentől nem mozdul, akárhogy
   állítjuk a telefon/e-mail blokkot. A telefon/e-mail abszolút pozícióval
   van elhelyezve, a bal szélétől (fejléc bal éle) és a kereső bal élétől
   egyenlő távolságra (kb. a köztük lévő táv felén) - ez a pozicionálási mód
   szándékosan NEM tud sorba törni/lejjebb csúszni, mint a rugalmas
   (flex/grid) elrendezések, mert kiveszi a normál dokumentum-folyamból. */
.search-strip {
    position: relative;
    background-image: linear-gradient(rgba(10, 8, 6, 0.45), rgba(10, 8, 6, 0.45));
    padding: 4px 32px 10px;
    display: flex;
    align-items: center;
    min-height: 46px;
}

.contact-row {
    position: absolute;
    left: 136px;
    top: calc(50% - 19px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-row a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.contact-row a:hover { color: #FFD9C4; }

.contact-row .icon { width: 16px; height: 16px; }

.search-bar {
    position: absolute;
    left: calc(58.333% - 58.33px);
    top: calc(50% - 19px);
    transform: translate(-50%, -50%);
    width: min(720px, 46vw);
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 6px 8px 6px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.search-bar-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-bar-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Barlow', sans-serif;
    font-size: 15.5px;
    color: var(--text);
    background: transparent;
    min-width: 0;
}

/* Ugyanaz a rez/bronz szin, mint a Bejelentkezes gomb (.account-pill),
   csak lekerekitett (pill) formaban. */
.search-bar-btn {
    border: 1px solid #5a3a1e;
    background-color: #a9713f;
    background-image:
        linear-gradient(160deg, #ecc793 0%, #c1854e 40%, #8b5a2b 75%, #6b4423 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n2'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n2)'/></svg>");
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -2px 3px rgba(0,0,0,0.3),
        0 2px 5px rgba(0,0,0,0.35);
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
    color: #1a1611;
    border-radius: 999px;
    padding: 9px 20px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    white-space: nowrap;
}

.search-bar-btn:hover {
    border-color: #f0d9b8;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -2px 3px rgba(0,0,0,0.3),
        0 4px 10px rgba(0,0,0,0.45);
}

/* ---------- ELÉRHETŐ / NEM ELÉRHETŐ (is_active KAPCSOLÓ) ---------- */

.stock-badge-off {
    background: var(--rust-light);
    color: var(--rust-dark);
}

.product-card-inactive {
    opacity: 0.6;
}

.admin-row-inactive {
    opacity: 0.55;
    text-decoration: line-through;
}

.admin-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.admin-card-actions .admin-edit-link-block {
    flex: 1;
    margin-top: 0;
}

.admin-toggle-btn-block {
    height: 100%;
    border: 1px solid var(--line);
    background: var(--teal);
    color: #fff;
    border-radius: 3px;
    padding: 8px 12px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.admin-toggle-btn-block.is-off {
    background: var(--card);
    border-color: var(--rust);
    color: var(--rust);
}

.admin-toggle-btn-active.is-off {
    background: var(--rust-light);
    color: var(--rust-dark);
    border-color: var(--rust-light);
}

/* ---------- CIKKSZÁM (CSAK ADMIN NÉZETBEN) ---------- */

.admin-code-cell {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 14px;
    font-weight: 500;
    max-width: 90px;
    word-break: break-all;
}

.admin-order-items {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
}

.admin-order-items li {
    padding: 1px 0;
}

.admin-order-items .admin-code-cell {
    margin-left: 6px;
}

.product-name-link {
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-name-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .search-strip { padding: 4px 16px 10px; }
}

/* Telefon/e-mail a kereső mellé (nem alá) mobilon/tableten - így nincs
   külön sor, kevesebb hely kell a fejlécnek. A .contact-row maga "eltűnik"
   a dobozmodellből (display:contents), a két link egyenesen a .search-strip
   flex-elemévé válik, a kereső két oldalára rendezve; csak az ikon látszik,
   a szöveg (telefonszám/e-mail cím) elrejtve - a link így is működik.
   Ez a szabály szándékosan a fájl végén van, hogy biztosan felülírja a
   fentebbi, azonos-specificitású .search-strip/.contact-row szabályokat. */
@media (max-width: 900px) {
    .search-strip {
        padding: 2px 16px 6px;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }
    .contact-row {
        display: contents;
    }
    .search-bar {
        position: static;
        transform: none;
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
        padding: 6px 8px;
    }
    .contact-row-phone { order: 1; }
    .contact-row-email { order: 3; }
    .contact-row-phone,
    .contact-row-email {
        flex-shrink: 0;
    }
    .contact-row-text {
        display: none;
    }
}

/* ---------- FEJLÉC GOMBOK: LED IDEIGLENESEN KIKAPCSOLVA + ERŐSEBB FÉNY (2026-09-25) ----------
   A LED-szabályok (.img-nav-btn-led, .led-indicator) a fájl fentebbi részén VÁLTOZATLANUL megvannak,
   a LED pozíciója sem mozdult el - itt csak a hover-kor felgyulladó fényét némítjuk el.
   Visszakapcsolás: a "LED kikapcsolva" blokk törlése. Addig a gombok hover-fénye erősebb: a ragyogást a
   KÖRBEVÁGOTT kép (clip-path) helyett a keretre tesszük, így nem vágja le a kör széle. */
/* LED VISSZAKAPCSOLVA (kipróbáláshoz): ugyanolyan színű, mint a gomb körüli felvillanó fény
   (világos kék) - a Rólunk gomb piros LED-je is ezt a kéket kapja. Az eredeti (kék/piros) LED-szabályok
   fentebb változatlanok, ez a blokk csak a hover-színt írja felül. Ismét kikapcsoláshoz:
   background: transparent !important; box-shadow: none !important; */
.img-nav-btn:hover .img-nav-btn-led,
.img-nav-btn:hover .img-nav-btn-led.img-nav-btn-led-red {
    /* LED jelenleg KIKAPCSOLVA (csak a rozsdaszínű háttérvilágítás marad). Bekapcsoláshoz ezt a két sort
       cseréld erre: background: radial-gradient(circle, #ffe6cf 0%, #ff9d5c 40%, #d2601f 100%) !important;
       box-shadow: 0 0 6px rgba(255,150,80,.95), 0 0 16px rgba(214,100,40,.8) !important; */
    background: transparent !important;
    box-shadow: none !important;
}
/* Erősebb hover-fény a gombokon */
.img-nav-btn-frame { transition: filter 0.18s ease; }
.img-nav-btn:hover .img-nav-btn-frame {
    /* háttérvilágítás-hatás: szűk, erős mag + széles, lágy fényudvar a gomb mögött */
    filter: drop-shadow(0 0 6px rgba(255, 150, 80, 0.95)) drop-shadow(0 0 18px rgba(214, 100, 40, 0.8))
            drop-shadow(0 0 38px rgba(190, 85, 30, 0.55));
}
.img-nav-btn:hover .img-nav-btn-pic {
    filter: brightness(1.32) saturate(1.15);
}

/* Raktár csempe: a benne lévő, készleten levő tételek felsorolása */
.stock-tile-list{list-style:none;margin:6px 0 4px;padding:6px 8px;background:#e8f5ec;border-left:3px solid #1f7a3d;border-radius:4px;font-size:.82em;color:#14532d}
.stock-tile-list li{margin:2px 0}

/* Kiskereskedelmi ár tájékoztató sáv (minden vevői oldalon) */
.retail-price-notice{margin:0 0 14px;padding:10px 16px;background:#fff4d6;border:2px solid #d9a400;border-left-width:8px;border-radius:6px;color:#4a3800;font-size:14.5px;line-height:1.45}
.retail-price-notice summary{cursor:pointer;font-weight:700;font-size:15px;color:#2f2400;list-style:none}
.retail-price-notice summary::-webkit-details-marker{display:none}
.retail-price-notice summary::before{content:'▸ ';color:#d9a400}
.retail-price-notice[open] summary::before{content:'▾ '}
.retail-price-notice p{margin:8px 0 0}

/* Nagykereskedelmi mód - ugyanaz a sáv, csak kék színvilágban, hogy
   azonnal megkülönböztethető legyen a sárga kiskereskedelmi sávtól. */
.retail-price-notice.wholesale-notice{background:#e3f0fc;border-color:#2f6f9f;color:#0f2c40}
.retail-price-notice.wholesale-notice summary{color:#0a2033}
.retail-price-notice.wholesale-notice summary::before{color:#2f6f9f}

/* A sáv fejléc alatti, jól látható elhelyezése - a lábléc-verzióval szemben
   (ami max-width/margin nélkül a szűk sablonba illeszkedett) ez a teljes
   oldalszélességet kihasználó, keret nélküli csík, ugyanúgy mint a fölötte
   lévő admin-price-flash-banner. */
.retail-price-notice-top{margin:0;padding:12px 32px;border-radius:0;border-width:0;border-left-width:0;border-bottom:3px solid #d9a400}
.retail-price-notice-top.wholesale-notice{border-bottom-color:#2f6f9f}
.retail-price-notice-top summary{font-size:15.5px}

/* Csavarok: csak teljes dobozban rendelhető */
.box-note{display:block;font-size:.8em;color:#7a4a00;background:#fff4d6;border-radius:4px;padding:2px 6px;margin:3px 0}
.add-form{flex-wrap:wrap}
.add-form .box-note{order:5;flex:1 0 100%;margin:2px 0 0;padding:3px 8px;text-align:center;font-size:.82em;line-height:1.3}

/* ---- Vevői kategória-csempék: világos beton/szerszám háttérkép (static/tile_bg.jpg), sárga-fekete csíkkal,
   olvasható sötét szöveggel egy áttetsző fehér fátyol felett. Mindegyik csempén ugyanaz.
   Csak a bolt oldalain (.shop-tile, lásd _category_tile.html); az admin csempék változatlanok. ---- */
.category-tile.shop-tile {
    background: #EEF0F2;
    border: 1px solid #C9CED3;
    color: #23272B;
    box-shadow: 0 6px 18px rgba(30, 34, 40, 0.14);
}

.category-tile.shop-tile:hover {
    border-color: #F2B705;
    box-shadow: 0 12px 28px rgba(30, 34, 40, 0.22), 0 0 0 1px #F2B705;
}

.shop-tile .category-tile-body {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.74) 55%, rgba(255, 255, 255, 0.42) 100%),
        url('tile_bg.jpg') center top / cover no-repeat;
    border-top: 4px solid #F2B705;
}
.shop-tile .category-tile-name { color: #16191C; }
.shop-tile .category-tile-count { color: #4A5158; }
.shop-tile .category-alias { color: #4A5158; }
.shop-tile .category-tile-sublist { border-top: 1px solid rgba(0, 0, 0, 0.16); }
.shop-tile .category-tile-sublist li { color: #23272B; }
.shop-tile .category-tile-sublist li::before { color: #D49A00; }
/* Admin csempék: ugyanaz a külső, mint a vevői oldalon; a tartalom (készletlista, elrejtett tételek) miatt
   a magasság nőhet, a szöveg nem vágódik le. */
.category-tile.shop-tile.admin-tile { height: auto; min-height: 480px; }
.shop-tile.admin-tile .category-tile-body { overflow: visible; }
.category-tile.shop-tile.stock-tile-on { border-color: #3FA862; box-shadow: 0 6px 18px rgba(31, 122, 61, 0.22); }
.shop-tile .admin-tile-hidden { color: #B3541E; }
.shop-tile .stock-tile-badge { color: #1F7A3D; }

/* Termék tömege (kártyákon és terméklapon) */
.product-weight-line { font-size: 0.82rem; color: #6b5f4d; margin: 2px 0 6px; }
.product-weight { font-weight: 600; }


/* Csak saját kiszállítással rendelhető (Foxpostnak túl nagy) termékek */
.oversize-alert { background:#fff4e5; border:2px solid #d9822b; border-radius:8px; padding:10px 14px; margin:10px 0; color:#6b3a07; line-height:1.45; }
.oversize-chip { display:inline-block; margin-top:6px; background:#fff4e5; border:1px solid #d9822b; color:#8a4a1c; border-radius:999px; padding:2px 10px; font-size:12px; font-weight:700; }

.lead-time-line { font-size: 0.82rem; color: #4a5a3a; margin: 2px 0 6px; }

.admin-catalog-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; padding: 10px 12px; border: 2px dashed #c9b79f; border-radius: 10px; background: #f6efe4; }
.admin-newcat-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.admin-newcat-form input[type=text] { padding: 8px 10px; border: 1px solid #c9b79f; border-radius: 6px; min-width: 220px; }

.site-mode-banner { margin: 0; padding: 12px 18px; text-align: center; font-size: 1.02rem; border-bottom: 3px solid; }
.site-mode-rendezes { background: #fdecea; color: #7a1d17; border-color: #e0584e; }
.site-mode-nyaralas { background: #e8f3ff; color: #14425f; border-color: #5aa0d6; }
.site-mode-kesedelem { background: #fff4d6; color: #5c4300; border-color: #d9a400; }


/* A bruttó ár jelzése nagyobb; a terméklapon a "Kosárba" gomb alja egy vonalban van a kép aljával (a kép 260 px magas). */
.price-gross {
    font-size: 17px;
    font-weight: 700;
}
.carousel-card-price .price-gross {
    font-size: 14px;
    font-weight: 600;
}
.info-price .price-gross {
    font-size: 26px;
    font-weight: 700;
    margin-top: 2px;
}
.info-buy-align {
    display: flex;
    flex-direction: column;
    min-height: 260px;
}
.info-buy-align .product-add-form {
    margin-top: auto;
    margin-bottom: 0;
}
/* a doboz-megjegyzés a gomb sora fölé kerül, hogy a gomb alja essen a kép aljának vonalába */
.info-buy-align .product-add-form .box-note { order: 1; flex: 0 0 100%; }
.info-buy-align .product-add-form input[type=number] { order: 2; }
.info-buy-align .product-add-form .btn-add { order: 3; }
@media (max-width: 700px) {
    .info-buy-align { min-height: 0; }
    .info-buy-align .product-add-form { margin-top: 8px; }
}

/* a kosárban a terméknév a termékoldalra visz */
.cart-product-link {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.cart-product-link:hover {
    color: var(--rust);
    text-decoration: underline;
}

/* a kedvezmény-sávok csak tájékoztató jelzések (nem gombok) */
.tier-preview-btn.tier-static {
    cursor: default;
    pointer-events: none;
}

/* kedvezmény-sávok: egyforma méretű jelzések, két oszlopban; ha páratlan a darabszám, az utolsó középre kerül */
.tier-preview-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
}

.tier-preview-row .tier-preview-btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}

.tier-preview-row .tier-preview-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 2.5px);
    justify-self: center;
}

/* kedvezmény-tájékoztató táblázat */
.discount-tier-table {
    border-collapse: collapse;
    margin: 10px 0 4px;
    width: 100%;
    max-width: 520px;
}

.discount-tier-table th,
.discount-tier-table td {
    border-bottom: 1px solid var(--line);
    padding: 6px 10px;
    text-align: right;
}

.discount-tier-table th:first-child,
.discount-tier-table td:first-child {
    text-align: left;
}

.discount-tier-table th {
    font-weight: 600;
    color: var(--text);
}

/* az oldal alján végig látható kosár-kedvezmény sáv */
.cart-discount-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 8px 16px;
    background: var(--card);
    border-top: 3px solid var(--rust);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

.cart-discount-bar .cdb-text {
    flex: 1 1 260px;
}

.cart-discount-bar .cdb-pct {
    color: var(--rust);
}

.cart-discount-bar .cdb-track {
    flex: 0 1 160px;
    height: 6px;
    min-width: 90px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}

.cart-discount-bar .cdb-fill {
    display: block;
    height: 100%;
    background: var(--rust);
}

.cart-discount-bar .cdb-btn {
    padding: 5px 14px;
    background: var(--rust);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
}

.cart-discount-spacer {
    height: 64px;
}

@media (max-width: 600px) {
    .cart-discount-bar { font-size: 13px; padding: 6px 12px; }
    .cart-discount-bar .cdb-track { flex: 1 1 100px; }
    .cart-discount-spacer { height: 92px; }
}

/* mennyiségi egység (db) a mennyiség-mező mellett */
.qty-unit{align-self:center;font-weight:600;margin:0 6px 0 3px;white-space:nowrap}
.info-buy-align .product-add-form .qty-unit{order:2}
.box-inline-offer{margin:8px 0;padding:10px 12px;background:#fff4d6;border:2px solid #d9a400;border-radius:8px;color:#4a3800;font-size:.9em;line-height:1.4;text-align:left}
.box-inline-offer .btn{margin:8px 8px 0 0}
.box-inline-offer-no{background:none;border:0;padding:6px 4px;color:#4a3800;text-decoration:underline;cursor:pointer;font:inherit}

/* mennyiség-mező: a 4-5 jegyű darabszám (pl. 1050) is látsszon a nyilakkal együtt; a doboz-jelzés ne törjön külön sorba */
.add-form input[type=number]{width:84px}
.cart-qty-input{width:96px}
@media (min-width:1101px){.cart-table td.num{white-space:nowrap}.cart-qty-form .box-note{white-space:nowrap}}
/* a "Mennyiség" fejléc a mennyiség-mező fölé kerüljön (ne a Frissítés gomb fölé) */
.cart-table .qty-col{text-align:left}
.cart-table .qty-col .cart-qty-form{justify-content:flex-start}

/* Rendezett ár-blokk: címke (Nettó/Bruttó) balra, összeg jobbra, egymás alatt */
.pp-col{white-space:nowrap}
.pp-block{display:inline-block;min-width:150px;text-align:left}
.pp-row{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:1px 0}
.pp-label{font-size:.82em;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted,#6b6b6b)}
.pp-val{font-weight:700;font-variant-numeric:tabular-nums}
.pp-row + .pp-row{border-top:1px dotted var(--line,#ccc)}
.pp-old{font-size:.82em;color:var(--text-muted,#6b6b6b);text-align:right;margin-bottom:2px}
/* a mennyiség-mező mindenhol elég széles a nagyobb darabszámhoz */
input[name="quantity"][type=number]{min-width:92px}

/* Reszponzív kosár-/összesítő táblázat: szűk (vagy nagyra nagyított) kijelzőn kártyás, egymás alatti elrendezés, semmi nem lóg ki */
@media (max-width:1100px){
  .cart-r-lg{display:block;background:transparent}
  .cart-r-lg tbody{display:block}
  .cart-r-lg tr{display:block;position:relative;background:var(--card);border:1px solid var(--line);border-radius:10px;margin:0 0 12px;padding:10px 12px}
  .cart-r-lg tr:first-child{display:none}
  .cart-r-lg td{display:block;border:0;padding:6px 0;text-align:left;width:auto !important;white-space:normal !important}
  .cart-r-lg td.num{text-align:left}
  .cart-r-lg td[data-label]::before{content:attr(data-label);display:block;font-size:.78em;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted,#6b6b6b);margin-bottom:3px}
  .cart-r-lg .pp-block{display:block;max-width:340px;min-width:0}
  .cart-r-lg .cart-qty-form{justify-content:flex-start;flex-wrap:wrap}
  .cart-r-lg .cart-qty-form .box-note{white-space:normal}
  .cart-r-lg .cart-remove-cell{position:absolute;top:8px;right:8px;padding:0}
}
@media (max-width:860px){
  .cart-r-sm{display:block;background:transparent}
  .cart-r-sm tbody{display:block}
  .cart-r-sm tr{display:block;position:relative;background:var(--card);border:1px solid var(--line);border-radius:10px;margin:0 0 12px;padding:10px 12px}
  .cart-r-sm tr:first-child{display:none}
  .cart-r-sm td{display:block;border:0;padding:6px 0;text-align:left;width:auto !important;white-space:normal !important}
  .cart-r-sm td.num{text-align:left}
  .cart-r-sm td[data-label]::before{content:attr(data-label);display:block;font-size:.78em;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted,#6b6b6b);margin-bottom:3px}
  .cart-r-sm .pp-block{display:block;max-width:340px;min-width:0}
  .cart-r-sm .cart-qty-form{justify-content:flex-start;flex-wrap:wrap}
  .cart-r-sm .cart-qty-form .box-note{white-space:normal}
  .cart-r-sm .cart-remove-cell{position:absolute;top:8px;right:8px;padding:0}
}

/* Egységár / Összesen: a fejléc és az ár-blokk középre, a cellák felül igazítva - a Nettó/Bruttó sorok egy vonalba esnek minden sorban */
.pp-old{text-align:center;margin:4px 0 0}
@media (min-width:1101px){
  .cart-r-lg td{vertical-align:top}
  .cart-r-lg th.pp-col,.cart-r-lg td.pp-col{text-align:center}
  .cart-r-lg .pp-block{margin:0 auto}
}
@media (min-width:861px){
  .cart-r-sm th.pp-col,.cart-r-sm td.pp-col{text-align:center}
  .cart-r-sm .pp-block{margin:0 auto}
}
/* Pöttyös kód a termékek mellett az adminban (2026-11-11): a címkén lévő kóddal egy az egyben összehasonlítható */
.dc{height:62px;width:auto;flex:0 0 auto;background:#fff;border:1px solid #d8cdbd;border-radius:6px;display:block}
.dc-row{display:flex;gap:10px;align-items:center}
.dc-row .dc-txt{flex:1;min-width:0}
