/* ==================================================================
   WEBSHOP ENGINE — FŐ STÍLUSLAP (2026-os megújítás)
   Irány: sötét, magabiztos hero + forgó kör-animáció, bento-grid
   kategória kártyák, üveg-hatású ("glass") termékkártyák, oversized tipó.
   Paletta: mély navy + élénk kék + meleg narancs + türkiz (gradiens-akcent).
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
    /* Alap paletta */
    --color-bg:          #F5F6FA;
    --color-surface:     #FFFFFF;
    --color-ink:          #0B111C;   /* mély navy - hero, lábléc */
    --color-text:        #10151F;
    --color-text-muted:  #667085;
    --color-border:      #E4E7EC;

    /* Élénk akcentek */
    --color-primary:     #2F6BFF;
    --color-primary-deep:#1B3FCC;
    --color-accent:      #FF7A29;
    --color-teal:        #14B8A6;
    --color-danger:      #E5484D;
    --color-success:     #1FA971;

    /* Tipó */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.015em;
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==================================================================
   FEJLÉC
   ================================================================== */
.site-header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
}

.header-row-single {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-actions { display: contents; }


.logo img { height: 34px; width: auto; flex-shrink: 0; }

.header-search {
    flex: 1;
    min-width: 0;
    display: flex;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg);
}

.header-page-links {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}
.header-page-links a {
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border: 1.5px solid var(--color-border);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.header-page-links a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(47,107,255,0.05);
}

@media (max-width: 900px) {
    .header-page-links { display: none; }
}
.header-search input {
    flex: 1; border: none; background: transparent; padding: 11px 14px;
    font-family: var(--font-body); font-size: 0.95rem; color: var(--color-text);
}
.header-search input:focus { outline: none; }
.header-search button {
    border: none; background: var(--color-primary); color: #fff; padding: 0 18px;
    cursor: pointer; display: flex; align-items: center; transition: background 0.15s ease;
}
.header-search button:hover { background: var(--color-primary-deep); }

.cart-button {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    border-radius: var(--radius-md); border: 1.5px solid var(--color-border);
    font-weight: 600; font-size: 0.9rem; position: relative; flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.account-button {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; border: 1.5px solid var(--color-border); flex-shrink: 0; color: var(--color-text);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.account-button:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(47,107,255,0.05); }
.cart-button:hover { border-color: var(--color-primary); background: rgba(47,107,255,0.06); transform: translateY(-1px); }
.cart-count {
    background: var(--color-accent); color: #fff; font-family: var(--font-mono); font-size: 0.72rem;
    min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.main-nav { max-width: 1280px; margin: 0 auto; padding: 10px 24px; border-top: 1px solid var(--color-border); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
    font-size: 0.85rem; font-weight: 600; color: var(--color-text); white-space: nowrap;
    padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--color-border);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); border-color: var(--color-primary); background: rgba(47,107,255,0.05); }

.main-nav li.has-submenu { position: relative; }
.main-nav .submenu-arrow { font-size: 0.7em; opacity: 0.6; }
.main-nav .submenu {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 0;
    background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
    min-width: 220px; padding: 14px 8px 8px; list-style: none; z-index: 70;
    box-shadow: 0 12px 32px rgba(11,17,28,0.12);
}
.main-nav li.has-submenu:hover > .submenu { display: block; }
.main-nav .submenu li a {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.85rem;
    font-weight: 500; border: none; white-space: nowrap; color: var(--color-text);
}
.main-nav .submenu li a:hover { background: var(--color-bg); border: none; color: var(--color-primary); }

/* Beágyazott (2., 3. stb. szintű) alkategória - oldalra nyílik, nem lefelé, hogy ne
   takarja el a szülő szintet */
.main-nav .submenu li.has-nested-submenu { position: relative; }
.main-nav .submenu li.has-nested-submenu > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.main-nav .submenu .submenu {
    top: -14px; left: 100%; margin-left: 6px;
}
.main-nav .submenu li.has-nested-submenu:hover > .submenu { display: block; }
.submenu-arrow-nested { font-size: 0.75em; opacity: 0.5; }

.mobile-menu-btn {
    display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; border: 1.5px solid var(--color-border); background: none; flex-shrink: 0;
    color: var(--color-text); cursor: pointer;
}

.mobile-nav-backdrop { display: none; }
.mobile-nav-drawer {
    position: fixed; top: 0; left: 0; height: 100vh; width: 300px; max-width: 85vw;
    background: #fff; z-index: 400; transform: translateX(-100%); transition: transform 0.25s ease;
    overflow-y: auto; padding: 20px; box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-backdrop.open {
    display: block; position: fixed; inset: 0; background: rgba(11,17,28,0.5); z-index: 390;
}
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-nav-account {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 20px;
    background: var(--color-bg); border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem; color: var(--color-text);
}
.mobile-nav-section { margin-bottom: 24px; }
.mobile-nav-section h3 {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); margin-bottom: 10px;
}
.mobile-nav-section ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-nav-section li a { display: block; padding: 10px 4px; font-size: 0.95rem; font-weight: 500; color: var(--color-text); border-bottom: 1px solid var(--color-border); }

.nav-item-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.nav-item-row a { flex: 1; }
.nav-toggle {
    background: none; border: none; cursor: pointer; color: var(--color-text-muted); font-size: 0.8rem;
    padding: 8px; flex-shrink: 0; transition: transform 0.2s ease;
}
li.expanded > .nav-item-row .nav-toggle { transform: rotate(180deg); }

.subcategory-list {
    list-style: none; margin: 0 0 0 16px; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, margin 0.35s ease;
}
li.expanded > .subcategory-list { max-height: 600px; margin: 2px 0 6px 16px; }
.subcategory-list a { font-size: 0.85rem !important; font-weight: 400 !important; color: var(--color-text-muted) !important; padding: 7px 4px !important; }
body.nav-open { overflow: hidden; }

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .main-nav { display: none; }
}

@media (max-width: 640px) {
    .header-inner { padding: 10px 16px; }
    .logo img { height: 28px; }
    .cart-label { display: none; }
    .header-search input { padding: 9px 10px; font-size: 0.88rem; }
}

@media (max-width: 480px) {
    .header-row-single { flex-wrap: wrap; gap: 10px; }
    .header-search { order: 3; flex: 1 1 100%; }
}

/* ==================================================================
   HERO — sötét, oversized tipó, forgó csapágy-animáció
   ================================================================== */
.hero {
    position: relative;
    background: radial-gradient(circle at 15% 20%, rgba(47,107,255,0.35), transparent 55%),
                radial-gradient(circle at 85% 75%, rgba(20,184,166,0.25), transparent 50%),
                var(--color-ink);
    color: #fff;
    overflow: hidden;
    min-height: 460px;
    max-height: 568px;
    display: flex;
    align-items: center;
}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
    color: var(--color-teal); text-transform: uppercase; margin-bottom: 18px;
}
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-teal); box-shadow: 0 0 12px var(--color-teal); }

.hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 18px;
}
.hero h1 .accent { color: var(--color-accent); }

.hero p.lead { font-size: 1.05rem; color: rgba(255,255,255,0.72); max-width: 480px; margin-bottom: 28px; }

.hero-ctas { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--color-accent); color: #1B1200; font-weight: 700; padding: 14px 26px;
    border-radius: var(--radius-md); font-size: 0.95rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 30px rgba(255,122,41,0.25);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,122,41,0.35); }
.btn-hero-secondary {
    background: rgba(255,255,255,0.08); color: #fff; font-weight: 600; padding: 14px 26px;
    border-radius: var(--radius-md); font-size: 0.95rem; border: 1.5px solid rgba(255,255,255,0.18);
    transition: background 0.15s ease;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.15); }

.hero-stats { display: flex; gap: 28px; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.hero-stat span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }

/* Forgó csapágy - signature elem */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.bearing-spin {
    width: min(360px, 90%);
    height: auto;
    animation: spin-slow 18s linear infinite;
    filter: drop-shadow(0 20px 50px rgba(47,107,255,0.4));
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .bearing-spin { animation: none; }
}

.hero-image-banner { width: 100%; background: var(--color-bg); display: flex; justify-content: center; }
.hero-image-banner-inner { width: 100%; }
.hero-image-banner-inner picture, .hero-slide picture { display: block; }
.hero-image-banner-inner img { width: 100%; height: auto; display: block; }
.hero-image-banner-inner a { display: block; }

.hero-slider { position: relative; width: 100%; overflow: hidden; }
.hero-slider-track { position: relative; width: 100%; aspect-ratio: 1600 / 568; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; z-index: 0;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide a, .hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Csúsztatás mód: a diák nem opacity-vel, hanem oldalra kicsúsztatva rejtve pihennek */
.hero-slider[data-animation="slide"] .hero-slide {
    opacity: 1; transition: none; transform: translateX(100%); z-index: 0;
}
.hero-slider[data-animation="slide"] .hero-slide.active {
    transform: translateX(0); z-index: 1;
}

.hero-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(11,17,28,0.55);
    color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s ease;
}
.hero-slider-arrow:hover { background: rgba(11,17,28,0.8); }
.hero-slider-prev { left: 14px; }
.hero-slider-next { right: 14px; }

.hero-slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.hero-slider-dot {
    width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}
.hero-slider-dot.active { background: #fff; transform: scale(1.2); }

@media (max-width: 640px) {
    .hero-slider-track { aspect-ratio: 4 / 3; }
    .hero-slider-arrow { width: 32px; height: 32px; font-size: 1.1rem; }
}

@media (max-width: 900px) {
    .hero { max-height: none; min-height: auto; overflow: visible; padding: 8px 0; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-ctas, .hero-stats { justify-content: center; flex-wrap: wrap; gap: 20px 16px; }
    .hero-visual { order: -1; margin-bottom: 8px; }
    .bearing-spin { width: 170px; }
    .hero-stat { min-width: 80px; }
}

/* ==================================================================
   MODULOK — általános
   ================================================================== */
.home-modules { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.module { padding: 56px 0; border-bottom: 1px solid var(--color-border); }
.module:last-child { border-bottom: none; }

.module-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.module-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); position: relative; padding-bottom: 14px; }
.module-title::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px;
    background: var(--color-primary); border-radius: 2px;
}
.module-link-all { font-size: 0.88rem; font-weight: 600; color: var(--color-primary); }
.module-link-all:hover { text-decoration: underline; }
.module-empty { color: var(--color-text-muted); font-style: italic; }

/* ---- Termékajánló csúszka: egy sorban, lapozhatóan (nyilakkal + swipe-pal) ---- */
.product-slider-nav { display: flex; gap: 8px; }
.product-slider-arrow {
    width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--color-border);
    background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; line-height: 1; color: var(--color-text); transition: border-color 0.15s ease, color 0.15s ease;
}
.product-slider-arrow:hover { border-color: var(--color-primary); color: var(--color-primary); }

.product-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
.product-slider-track .product-card { flex: 0 0 240px; scroll-snap-align: start; }
.product-slider-track::-webkit-scrollbar { height: 6px; }
.product-slider-track::-webkit-scrollbar-track { background: var(--color-bg); border-radius: 3px; }
.product-slider-track::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
.product-slider-track::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

@media (max-width: 640px) {
    .product-slider-track .product-card { flex-basis: 200px; }
}

/* ---- Kategória kirakat: bento-grid ---- */
.bento-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.bento-item {
    position: relative;
    width: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 2px rgba(16,21,31,0.04);
    text-decoration: none;
}

/* Felirat elhelyezése: a képen (overlay, alap) vagy a kép ALATT (below) */
.bento-item.bento-label-overlay { align-items: flex-end; padding: 16px; }
.bento-item.bento-label-overlay .bento-bg { position: absolute; inset: 0; z-index: 0; }

.bento-item.bento-label-below { align-items: stretch; padding: 0; }
.bento-item.bento-label-below .bento-bg { position: relative; z-index: 0; width: 100%; height: 0; padding-top: 100%; overflow: hidden; }
.bento-item.bento-label-below .bento-overlay { display: none; }
.bento-item.bento-label-below .bento-label { position: relative; z-index: 2; padding: 12px 14px; text-align: center; display: block; }

.bento-item .bento-bg img { width: 100%; height: 100%; object-fit: cover; }
.bento-item.bento-label-below .bento-bg img { position: absolute; inset: 0; object-fit: contain; padding: 16px; box-sizing: border-box; }

.bento-item .bento-overlay { position: absolute; inset: 0; z-index: 1; }
.bento-overlay-style-gradient { background: linear-gradient(180deg, rgba(11,17,28,0) 30%, rgba(11,17,28,0.75) 100%); }
.bento-overlay-style-glass { background: rgba(11,17,28,0.18); backdrop-filter: blur(2px); }

.bento-item .bento-label {
    position: relative; z-index: 2; font-family: var(--font-display);
    font-weight: 700; font-size: 1.05rem;
}
.bento-label-style-solid, .bento-label-style-outline {
    padding: 6px 14px; border-radius: 999px; display: inline-block; font-size: 0.9rem;
}

/* Hover effektek */
.bento-hover-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,21,31,0.14); }
.bento-hover-zoom .bento-bg img { transition: transform 0.4s ease; }
.bento-hover-zoom:hover .bento-bg img { transform: scale(1.1); }
.bento-hover-glow:hover { box-shadow: 0 0 0 3px var(--color-primary), 0 16px 40px rgba(47,107,255,0.35); }

/* Alak */
.bento-shape-circle.bento-label-overlay { border-radius: 50% !important; }
.bento-shape-circle.bento-label-below .bento-bg { border-radius: 50%; overflow: hidden; }
.bento-shape-circle.bento-label-below { border-radius: 0 !important; box-shadow: none !important; background: none !important; border: none !important; }
.bento-shape-circle.bento-label-below .bento-label { text-align: center; }

@media (max-width: 480px) {
    .bento-item { max-width: 45vw; max-height: 45vw; }
    .bento-item.bento-label-below { max-height: none; }
}

/* ---- Termékajánló / kategória termékrács: glass kártyák ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, 240px); gap: 20px; justify-content: start; }
@media (max-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; justify-content: stretch; }
    .product-name { font-size: 0.85rem; }
    .price-new { font-size: 0.95rem; }
}
.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.product-card:hover { box-shadow: 0 16px 40px rgba(16,21,31,0.1); transform: translateY(-4px); border-color: rgba(47,107,255,0.3); }
.product-card > a { display: block; }
.product-image { position: relative; aspect-ratio: 1/1; background: linear-gradient(135deg, #F5F6FA, #ECEFF5); }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

.badge-stack { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sticker-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { font-family: var(--font-mono); font-size: 0.66rem; padding: 3px 9px; border-radius: 999px; color: #fff; white-space: nowrap; }
.badge-sale { background: var(--color-accent); }
.badge-new { background: var(--color-success); }
.badge-sticker { font-weight: 700; }

.product-info { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-name {
    font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.6em;
}
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; margin-top: auto; }
.price-new { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--color-primary); }
.price-old { font-family: var(--font-mono); font-size: 0.82rem; color: var(--color-text-muted); text-decoration: line-through; }
.btn-add-cart {
    width: 100%; background: var(--color-ink); color: #fff; border: none; padding: 10px;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; cursor: pointer;
    transition: background 0.15s ease;
}
.btn-add-cart:hover { background: var(--color-primary-deep); }

/* ==================================================================
   BREADCRUMB
   ================================================================== */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--color-text-muted); margin: 24px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--color-text); font-weight: 600; }

/* ==================================================================
   KATEGÓRIA LISTA OLDAL
   ================================================================== */
.category-page-header {
    background: linear-gradient(135deg, var(--color-ink), #16233D);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    margin-bottom: 24px;
}
.category-page-header h1 { font-size: 1.3rem; margin-bottom: 4px; }
.category-page-header p { color: rgba(255,255,255,0.65); max-width: 600px; font-size: 0.85rem; }
.subcategory-grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.subcategory-card { display: flex; flex-direction: column; align-items: center; width: 100px; text-align: center; }
.subcategory-card-image {
    width: 100px; height: 100px; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--color-surface); border: 1px solid var(--color-border); margin-bottom: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.subcategory-card-image img { width: 100%; height: 100%; object-fit: cover; }
.subcategory-card:hover .subcategory-card-image { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,21,31,0.14); border-color: var(--color-primary); }
.subcategory-card-name { font-size: 0.82rem; font-weight: 600; color: var(--color-text); line-height: 1.3; }

.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: var(--radius-sm); border: 1.5px solid var(--color-border); font-size: 0.85rem; font-weight: 600;
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ==================================================================
   TERMÉK OLDAL
   ================================================================== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 32px 0 60px; }
.product-gallery-main { position: relative; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: linear-gradient(135deg, #F5F6FA, #ECEFF5); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-gallery-main img { width: 80%; height: 80%; object-fit: contain; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.product-gallery-thumbs img { width: 64px; height: 64px; object-fit: contain; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); padding: 4px; cursor: pointer; background: #fff; }
.product-gallery-thumbs img:hover { border-color: var(--color-primary); }

.product-detail-info .sku-line { font-family: var(--font-mono); color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.product-detail-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 16px; }
.product-detail-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.product-detail-price .price-new { font-size: 1.8rem; }
.stock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; }
.stock-pill.in-stock { background: rgba(31,169,113,0.12); color: var(--color-success); }
.stock-pill.out-of-stock { background: rgba(229,72,77,0.12); color: var(--color-danger); }
.stock-pill::before { content:''; width:7px; height:7px; border-radius:50%; background: currentColor; }

.add-to-cart-form { display: flex; gap: 12px; margin-bottom: 32px; }
.qty-input { width: 80px; padding: 12px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 1rem; text-align: center; }
.btn-cta {
    background: var(--color-accent); color: #1B1200; font-weight: 700; padding: 12px 28px;
    border-radius: var(--radius-sm); border: none; cursor: pointer; font-size: 0.95rem;
    transition: transform 0.15s ease;
}
.btn-cta:hover { transform: translateY(-2px); }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table tr { border-bottom: 1px solid var(--color-border); }
.spec-table td { padding: 10px 0; font-size: 0.9rem; }
.spec-table td:first-child { color: var(--color-text-muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; }

.product-substitutes { margin-top: 40px; }
.product-substitutes h3 { margin-bottom: 4px; }
.product-description { margin-top: 40px; line-height: 1.7; color: var(--color-text); }
.product-description h3 { margin-bottom: 12px; font-size: 1.1rem; }

@media (max-width: 800px) {
    .product-detail { grid-template-columns: 1fr; }
}

/* ==================================================================
   KOSÁR OLDAL
   ================================================================== */
.cart-page { margin: 32px 0 60px; display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.cart-page > form { display: contents; }
.cart-item-row { display: grid; grid-template-columns: 64px 1fr auto auto auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.cart-item-row img { width: 64px; height: 64px; object-fit: contain; background: var(--color-bg); border-radius: var(--radius-sm); }
.cart-item-name { font-weight: 600; font-size: 0.92rem; }
.cart-item-name .mono { display: block; color: var(--color-text-muted); font-size: 0.78rem; margin-top: 2px; }
.cart-qty-form { display: flex; gap: 6px; align-items: center; }
.cart-qty-form input { width: 60px; padding: 8px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); text-align: center; font-family: var(--font-mono); }
.cart-remove-btn { background: none; border: none; color: var(--color-danger); font-size: 0.8rem; cursor: pointer; }
.cart-summary { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; align-self: start; }
.cart-summary h2 { font-size: 1rem; margin-bottom: 12px; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.87rem; color: var(--color-text-muted); }
.cart-summary-row.total { font-size: 1.05rem; font-weight: 700; color: var(--color-text); border-top: 1px solid var(--color-border); padding-top: 10px; margin-top: 8px; }
.cart-empty { text-align: center; padding: 80px 20px; color: var(--color-text-muted); }
.hidden-method { display: none !important; }

/* ==================================================================
   KATEGÓRIA SZŰRŐ + RENDEZÉS
   ================================================================== */
.category-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; margin-top: 24px; }
.category-layout.mode-toggle { grid-template-columns: 1fr; }

.filter-panel {
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    padding: 20px; align-self: start;
}
.filter-panel-header { display: none; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-panel-header h2 { font-size: 1rem; }
.filter-close-btn { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--color-text-muted); }

.filter-group { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.filter-group:first-of-type { padding-top: 0; }
.filter-group:last-of-type { border-bottom: none; }
.filter-group h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-muted); margin-bottom: 10px; }
.filter-group .checkbox-label { font-size: 0.9rem; margin-bottom: 6px; }
.filter-price-row { display: flex; align-items: center; gap: 8px; }
.filter-price-row input { width: 0; flex: 1; min-width: 0; }
.filter-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.filter-clear-link { font-size: 0.85rem; color: var(--color-text-muted); text-decoration: underline; }

.category-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.filter-toggle-btn {
    display: none; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border); background: #fff; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.sort-select {
    margin-left: auto; padding: 9px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: 0.88rem; background: #fff; cursor: pointer;
}

.filter-backdrop { display: none; }

/* Bekúszó (toggle) mód: mindig off-canvas, gombra nyílik */
.category-layout.mode-toggle .filter-toggle-btn { display: flex; }
.category-layout.mode-toggle .filter-panel {
    position: fixed; top: 0; left: 0; height: 100vh; width: 320px; max-width: 88vw; z-index: 300;
    border-radius: 0; transform: translateX(-100%); transition: transform 0.25s ease; overflow-y: auto;
}
.category-layout.mode-toggle .filter-panel.open { transform: translateX(0); }
.category-layout.mode-toggle .filter-panel-header { display: flex; }
.category-layout.mode-toggle .filter-backdrop.open {
    display: block; position: fixed; inset: 0; background: rgba(11,17,28,0.5); z-index: 290;
}

/* Keskeny képernyőn a "mindig látható oldalsáv" mód is bekúszóvá alakul, hogy elférjen */
@media (max-width: 900px) {
    .category-layout { grid-template-columns: 1fr; }
    .filter-toggle-btn { display: flex; }
    .filter-panel {
        position: fixed; top: 0; left: 0; height: 100vh; width: 320px; max-width: 88vw; z-index: 300;
        border-radius: 0; transform: translateX(-100%); transition: transform 0.25s ease; overflow-y: auto;
    }
    .filter-panel.open { transform: translateX(0); }
    .filter-panel-header { display: flex; }
    .filter-backdrop.open {
        display: block; position: fixed; inset: 0; background: rgba(11,17,28,0.5); z-index: 290;
    }
    .sort-select { margin-left: 0; }
}

.page-content { line-height: 1.75; color: var(--color-text); }
.page-content h2 { font-size: 1.3rem; margin: 32px 0 14px; }
.page-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.page-content p { margin: 0 0 16px; }
.page-content ul, .page-content ol { margin: 0 0 16px; padding-left: 24px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--color-primary); text-decoration: underline; }
.page-content strong { font-weight: 700; }
.page-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.page-content table td, .page-content table th { padding: 8px 12px; border: 1px solid var(--color-border); }

/* ---- Banner-sáv modul ---- */
.module-banner-strip { padding: 0; }
.banner-strip-wrap { margin: 0 auto; }
.banner-strip-row { display: flex; gap: 16px; }
.banner-strip-item { flex: 1 1 0; min-width: 0; }
.banner-strip-item img, .banner-strip-item a { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }

@media (max-width: 700px) {
    .banner-strip-row { flex-direction: column; }
}

/* ---- Vélemények modul ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonial-card {
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    padding: 24px;
}
.testimonial-stars { margin-bottom: 12px; font-size: 1.1rem; letter-spacing: 2px; }
.star-filled { color: var(--color-accent); }
.star-empty { color: var(--color-border); }
.testimonial-text { font-size: 0.95rem; line-height: 1.6; color: var(--color-text); margin-bottom: 14px; }
.testimonial-name { font-weight: 700; font-size: 0.88rem; color: var(--color-text-muted); }

/* ---- Gyártói logó szalag modul ---- */
.brand-logos-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.brand-logos-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation-name: brand-logos-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.brand-logos-viewport:hover .brand-logos-track { animation-play-state: paused; }

.brand-logo-item {
    flex: 0 0 auto;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
}
.brand-logo-item img {
    max-height: 44px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.brand-logo-item img:hover { filter: grayscale(0%); opacity: 1; }

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

@media (prefers-reduced-motion: reduce) {
    .brand-logos-track { animation: none; }
}

/* ---- Előny-sáv modul ---- */
.trust-badges-row { display: flex; gap: 16px; }
.trust-badge { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 14px; border-radius: var(--radius-md); }
.trust-badge-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.trust-badge-icon svg { width: 22px; height: 22px; }
.trust-badge-icon img { width: 100%; height: 100%; object-fit: cover; }
.trust-badge-text { display: flex; flex-direction: column; min-width: 0; }
.trust-badge-text strong { font-size: 0.92rem; font-weight: 700; color: var(--color-text); }
.trust-badge-text span { font-size: 0.8rem; color: var(--color-text-muted); }

.module-newsletter { background: var(--color-bg); }
.newsletter-box { max-width: 620px; margin: 0 auto; text-align: center; }
.newsletter-shadow-soft { box-shadow: 0 4px 16px rgba(16,21,31,0.08); }
.newsletter-shadow-medium { box-shadow: 0 10px 30px rgba(16,21,31,0.14); }
.newsletter-shadow-strong { box-shadow: 0 20px 48px rgba(16,21,31,0.22); }
.newsletter-box .module-title-row { justify-content: center; margin-bottom: 8px; }
.newsletter-box .module-title::after { left: 50%; transform: translateX(-50%); }
.newsletter-subtitle { color: var(--color-text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter-input {
    flex: 1; min-width: 220px; padding: 12px 16px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border); font-family: var(--font-body); font-size: 0.92rem;
}
.newsletter-input:focus { outline: none; border-color: var(--color-primary); }
.newsletter-submit { flex-shrink: 0; padding: 12px 24px; }
.newsletter-privacy { color: var(--color-text-muted); font-size: 0.75rem; margin-top: 14px; }
.newsletter-message { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; }
.newsletter-message-success { background: rgba(31,169,113,0.12); color: var(--color-success); }
.newsletter-message-error { background: rgba(229,72,77,0.1); color: var(--color-danger); }

@media (max-width: 640px) {
    .module-trust-badges .module-title-row { margin-bottom: 16px; }
    .trust-badges-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trust-badge { padding: 12px; }
}

@media (max-width: 800px) {
    .cart-page { grid-template-columns: 1fr; }
    .cart-item-row {
        display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    }
    .cart-item-row img { flex: 0 0 56px; width: 56px; height: 56px; }
    .cart-item-name { flex: 1 1 auto; min-width: 0; }
    .cart-item-row .cart-qty-form,
    .cart-item-row .line-total-cell,
    .cart-item-row .cart-remove-btn {
        flex: 1 1 auto;
    }
}

/* ==================================================================
   LÁBLÉC
   ================================================================== */
.site-footer { background: var(--color-ink); color: #C7CDD6; margin-top: 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col p { font-size: 0.88rem; line-height: 1.6; margin: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 18px 24px; font-size: 0.8rem; color: #8A93A0; }

@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ==================================================================
   CHECKOUT / FORM PANELOK — kosár, checkout, köszönő oldalakhoz
   (ugyanaz a vizuális nyelv, mint az admin felületen, de a frontend
   tokenjeivel - eddig ezek hiányoztak innen, ezért nem volt stílusa
   a checkout formnak)
   ================================================================== */
.checkout-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 14px;
}
.checkout-panel h2 { font-size: 0.95rem; margin-bottom: 10px; }

.form-row { display: flex; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.form-row > label { flex: 1; min-width: 140px; }

label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
input, select, textarea {
    padding: 8px 10px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 0.9rem; background: #fff; color: var(--color-text);
}
textarea { resize: vertical; }
.checkbox-label { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; margin-bottom: 0; flex-wrap: wrap; }
.checkbox-label input[type="checkbox"], .checkbox-label input[type="radio"] { flex-shrink: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; cursor: pointer;
    border: none; text-decoration: none; font-family: var(--font-body);
}
.btn-secondary { background: var(--color-bg); color: var(--color-text); border: 1.5px solid var(--color-border); }

.mono { font-family: var(--font-mono); font-size: 0.9rem; }
.text-muted { color: var(--color-text-muted); font-size: 0.9rem; }
.link-danger { background: none; border: none; color: var(--color-danger); font-size: 0.85rem; cursor: pointer; padding: 0; font-family: var(--font-body); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; }
.alert-success { background: rgba(31,169,113,0.1); color: var(--color-success); }
.alert-error { background: rgba(229,72,77,0.1); color: var(--color-danger); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); font-size: 0.88rem; }
.admin-table th { color: var(--color-text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; }

.terms-checkbox-row {
    display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--color-border); font-size: 0.8rem; line-height: 1.35;
}
.terms-checkbox-row input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }

/* ==================================================================
   MOBIL VÉGSŐ FINOMHANGOLÁS
   ================================================================== */
body { overflow-x: hidden; }

/* Görgethető táblázat-konténer (rendeléslista, rendelés-összesítő) - keskeny
   telefonon ne törjön/lógjon ki a táblázat, hanem oldalra pörgethető legyen. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .admin-table { min-width: 480px; }

@media (max-width: 480px) {
    /* Kevesebb oldalpárnázás a legkeskenyebb telefonokon - több hasznos hely a tartalomnak */
    .container, .home-modules { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 640px) {
    /* iOS Safari automatikusan rázoomol minden 16px alatti betűméretű mezőre - ez feleslegesen
       zavaró minden érintésnél (keresés, checkout, bejelentkezés). Mobilon garantáltan 16px+. */
    input, select, textarea { font-size: 16px !important; }

    /* A modulok közötti nagy, asztali méretezésű térköz feleslegesen sok görgetést ad mobilon */
    .module { padding-top: 36px !important; padding-bottom: 36px !important; }
}
