/**
 * MolnárSplit - Fő CSS
 * Dizájn a logó színei alapján
 * Primary: #2A60B0 (kék)
 * Secondary: #F28C28 (narancs)
 */

:root {
    /* Logó színek */
    --color-primary: #2A60B0;
    --color-secondary: #F28C28;
    
    /* Szürke skála */
    --color-bg: #FFFFFF;
    --color-surface: #F8F9FA;
    --color-border: #E0E0E0;
    --color-text: #1A1A1A;
    --color-muted: #6C757D;
    --color-light: #F5F5F5;
    --color-dark: #212529;
    
    /* UI színek */
    --color-success: #28A745;
    --color-warning: #FFC107;
    --color-danger: #DC3545;
    --color-info: #17A2B8;
    
    /* Tipográfia */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Manrope', var(--font-primary);
    
    /* Méretek */
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.75rem;
    --font-size-h4: 1.5rem;
    --font-size-h5: 1.25rem;
    --font-size-h6: 1rem;
    
    /* Távolságok */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    /* Árnyékok */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Átmenetek */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --header-height-mobile: 70px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipográfia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/*
 * Csak mobil header-gyorsgomb (kosár mellett). Alapból rejtve; max-width 768px alatt lásd alább.
 * !important + .header-actions szülő: későbbi CSS (pl. cart-ux) se írja felül a display-t.
 */
.header-actions .mobile-webshop-btn,
.header-actions .ms-header-webshop-btn {
    display: none !important;
}

@keyframes mobileWebshopBtnPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 2px 5px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.16) inset;
    }
    50% {
        transform: scale(1.04);
        box-shadow:
            0 4px 12px rgba(214, 122, 30, 0.38),
            0 2px 6px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
}

/* Header linkek (bejelentkezés, regisztráció) */
.header-link {
    display: flex;
    align-items: center;
    gap: 0; /* Ikonok eltávolítása miatt nincs gap */
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.header-link:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

/* Font Awesome ikonok a header linkekben - Font Awesome 4.4.0 specifikus beállítások */
.header-link i,
.header-link .fa {
    font-family: 'FontAwesome' !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    display: inline-block !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    speak: none;
    /* Font Awesome 4.4.0 specifikus font beállítás */
    font: normal normal normal 1rem/1 FontAwesome !important;
}

.header-link-text {
    display: inline;
}

@media (max-width: 992px) {
    .header-link-text {
        display: none;
    }
    
    .header-link {
        padding: var(--spacing-xs);
        min-width: 36px;
        justify-content: center;
    }
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    image-rendering: auto;
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--color-light);
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #1e4a8a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background: #d67a1e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-sm);
}

.card-body {
    color: var(--color-muted);
}

/* Hero Section */
.hero {
    padding: var(--spacing-3xl) 0;
    /* Finomított, visszafogottabb gradient - A verzió (világosabb, modernebb) */
    background: linear-gradient(135deg, rgba(42, 96, 176, 0.85) 0%, rgba(242, 140, 40, 0.75) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Alternatív verzió (B) - még letisztultabb, ha kell:
   background: linear-gradient(135deg, rgba(42, 96, 176, 0.75) 0%, rgba(242, 140, 40, 0.65) 100%);
*/

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Finomított overlay - kisebb sötétség */
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
}

/* Hero typography tune - reszponzív és harmonikus */
.ms-hero .ms-hero-title,
.ms-hero h1 {
    font-size: clamp(34px, 4vw, 52px) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    max-width: 680px;
    font-weight: 700;
}

.ms-hero-subline-wrapper {
    margin-top: 12px;
    margin-bottom: 16px;
}

.ms-hero .ms-hero-subline {
    display: block;
    margin-top: 0;
    margin-bottom: 6px;
    font-size: clamp(16px, 2vw, 24px) !important;
    line-height: 1.3 !important;
    font-weight: 600;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.ms-hero .ms-hero-subline-secondary {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    font-size: clamp(15px, 1.8vw, 22px) !important;
    line-height: 1.3 !important;
    font-weight: 500;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.85);
}

.ms-hero .ms-hero-lead,
.ms-hero p {
    font-size: 16px !important;
    line-height: 1.65 !important;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
}

/* Small screens: keep it tidy */
@media (max-width: 480px) {
    .ms-hero .ms-hero-title,
    .ms-hero h1 {
        line-height: 1.18 !important;
        margin-bottom: 12px;
        font-size: clamp(28px, 5vw, 40px) !important;
    }
    .ms-hero-subline-wrapper {
        margin-top: 10px;
        margin-bottom: 14px;
    }
    .ms-hero .ms-hero-subline {
        margin-top: 0;
        margin-bottom: 5px;
        font-size: clamp(15px, 3vw, 20px) !important;
        line-height: 1.35 !important;
    }
    .ms-hero .ms-hero-subline-secondary {
        margin-top: 0;
        font-size: clamp(14px, 2.8vw, 18px) !important;
        line-height: 1.35 !important;
    }
    .ms-hero .ms-hero-lead,
    .ms-hero p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
}

/* Tablet és közepes képernyők */
@media (max-width: 768px) {
    .ms-hero .ms-hero-title,
    .ms-hero h1 {
        max-width: 100%;
    }
    .ms-hero-subline-wrapper {
        max-width: 100%;
    }
    .ms-hero .ms-hero-lead,
    .ms-hero p {
        max-width: 100%;
    }
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Section */
.section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    color: var(--color-muted);
    font-size: var(--font-size-lg);
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--spacing-md));
}

.col {
    flex: 1;
    padding: 0 var(--spacing-md);
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(42, 96, 176, 0.1);
}

/* Accessibility - Focus states */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to content link (accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

.form-control::placeholder {
    color: var(--color-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-light);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.badge-primary {
    background: var(--color-primary);
    color: white;
}

.badge-success {
    background: var(--color-success);
    color: white;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

/* Mobil auth linkek - desktop-on elrejtve */
.mobile-auth-links {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.5rem;
        --font-size-h4: 1.25rem;
        --spacing-3xl: 2rem;
        --spacing-xl: 1.5rem;
        --spacing-lg: 1rem;
    }

    /* Vízszintes scroll biztosíték (csak html: a body overflow-x megbonthatja a sticky fejlécet) */
    html {
        overflow-x: hidden;
    }

    main {
        overflow-x: clip;
        max-width: 100%;
    }

    /* Container padding csökkentése */
    .container {
        padding: 0 var(--spacing-sm);
        min-width: 0;
        max-width: 100%;
    }

    .container-fluid {
        padding: 0 var(--spacing-sm);
        min-width: 0;
        max-width: 100%;
    }

    /* Navigation */
    .nav {
        position: fixed;
        top: var(--header-height-mobile);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height-mobile));
        background: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-base);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        flex-shrink: 0;
    }
    
    /* Mobil menüben mutassuk a bejelentkezés/regisztráció linkeket */
    .mobile-auth-links {
        display: block;
        width: 100%;
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
        border-top: 1px solid var(--color-border);
    }
    
    .mobile-auth-links .nav-link {
        display: block;
        padding: var(--spacing-sm) 0;
        width: 100%;
    }

    /* Fejléc: ne lógjon ki transform / árnyék; belső flex ne haladja meg a viewportot */
    .header {
        overflow-x: clip;
        max-width: 100%;
    }

    .header .container {
        min-width: 0;
        max-width: 100%;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* A nav slot ne foglaljon flex:1 szélességet (inline flex:1 a HTML-ben) — ez gyakran szétfeszítette a sort */
    .header-inner > nav {
        flex: 0 0 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        height: auto;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible;
        position: relative;
        z-index: 998;
    }

    .header .logo {
        flex: 0 1 auto;
        min-width: 0;
        margin-inline-end: 12px;
        max-width: min(46vw, 150px);
    }

    .header .logo img {
        max-height: 46px !important;
        width: auto !important;
        max-width: 100%;
        height: auto !important;
    }

    /* Vendég: bejelentkezés / regisztráció csak a hamburger menüben (fejlécből kiszorította a sort) */
    .header-actions > a.header-link:not(.header-cart-link):not(.ms-header-cart-link) {
        display: none !important;
    }

    /* Mobil nézetben a header linkek és gombok */
    .header-actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex: 0 1 auto;
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
    }

    .header-actions .mobile-webshop-btn,
    .header-actions .ms-header-webshop-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 8px 12px;
        min-height: 38px;
        box-sizing: border-box;
        font-size: 0.8125rem;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: 0.04em;
        text-transform: none;
        text-decoration: none;
        white-space: nowrap;
        color: #fff;
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
        background: linear-gradient(
            180deg,
            #ffb04a 0%,
            var(--color-secondary, #f28c28) 48%,
            #e67d22 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 999px;
        box-shadow:
            0 2px 5px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(255, 255, 255, 0.16) inset;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        z-index: 1;
        transition:
            background-color 0.15s ease,
            opacity 0.12s ease;
    }

    .header-actions .mobile-webshop-btn:hover,
    .header-actions .ms-header-webshop-btn:hover {
        background: linear-gradient(180deg, #ffa24d, #d67a1e 55%, #cc6f1c);
        color: #fff;
    }

    .header-actions .mobile-webshop-btn:active,
    .header-actions .ms-header-webshop-btn:active {
        animation: none !important;
        opacity: 0.92;
        transform: scale(0.97);
    }

    .header-actions a.mobile-webshop-btn.mobile-webshop-btn--pulse,
    .header-actions .mobile-webshop-btn--pulse.ms-header-webshop-btn {
        animation: mobileWebshopBtnPulse 2.5s ease-in-out infinite !important;
        will-change: transform, box-shadow;
    }
    
    .header-link {
        padding: var(--spacing-xs);
        min-width: 36px;
    }
    
    .header-actions .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-sm);
    }
    
    .header-actions .btn i {
        margin-right: var(--spacing-xs);
    }
    
    /* Hero: szöveg / countdown ne tolja túl a viewportot */
    .hero,
    .hero .container,
    .hero .hero-content {
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    .hero .row {
        min-width: 0;
        max-width: 100%;
    }

    .hero .col {
        min-width: 0;
    }

    /* Hero section */
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    /* Grid columns - minden oszlop teljes szélességű mobilon */
    .col-6,
    .col-4,
    .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    /* Row padding csökkentése */
    .row {
        margin: 0 calc(-1 * var(--spacing-sm));
    }
    
    .col {
        padding: 0 var(--spacing-sm);
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .btn-lg {
        padding: var(--spacing-lg) var(--spacing-xl);
        font-size: var(--font-size-base);
    }
    
    /* Cards */
    .card {
        padding: var(--spacing-lg);
    }
    
    /* Forms */
    .form-group {
        margin-bottom: var(--spacing-md);
    }
    
    .form-control {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-base);
    }
    
    /* Section padding */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    /* Tables - scrollable on mobile */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Product images */
    .product-image {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }
    
    /* Product detail page - images and info side by side */
    .product-detail .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Product image main */
    #mainImage {
        height: 300px !important;
        max-height: 300px !important;
    }
    
    /* Product thumbnail images */
    .product-thumbnails img {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Product price */
    .product-price {
        font-size: 2rem !important;
    }
    
    /* Product title */
    .product-title h1 {
        font-size: 1.5rem !important;
        word-wrap: break-word;
    }
    
    /* Quantity selector */
    .quantity-selector {
        flex-direction: column !important;
        gap: var(--spacing-sm) !important;
    }
    
    .quantity-selector .btn {
        width: 100% !important;
    }
    
    /* Product grid */
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Shop filters */
    .shop-filters {
        flex-direction: column !important;
        gap: var(--spacing-sm) !important;
    }
    
    .shop-filters > * {
        width: 100% !important;
    }
    
    /* Shop page layout */
    .shop-layout .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-lg);
    }
    
    .shop-layout .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Filter panel - collapsible on mobile */
    #filterPanel {
        margin-bottom: var(--spacing-lg);
    }
    
    #toggleFilters {
        display: block !important;
    }
    
    #filterContent {
        display: none;
    }
    
    #filterContent.show {
        display: block;
    }
    
    /* Product cards in shop */
    .shop-product-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Lista kártyán a kép osztálya .shop-product-card__img – a fix tartó + contain a shop-conversion.css-ben */
    .shop-product-card img:not(.shop-product-card__img) {
        height: 200px !important;
    }
    
    /* Brand cards */
    .brand-card {
        margin-bottom: var(--spacing-md) !important;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-xs);
    }
    
    .pagination .btn {
        min-width: 40px;
        padding: var(--spacing-sm);
    }
    
    /* Tables - make scrollable */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Cart table - mobile friendly */
    .cart-table,
    table {
        font-size: var(--font-size-sm);
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: block;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-md);
        background: var(--color-surface);
    }
    
    .cart-table tbody td {
        display: block;
        padding: var(--spacing-sm) 0 !important;
        text-align: left !important;
        border: none !important;
    }
    
    .cart-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: var(--spacing-xs);
        color: var(--color-text);
    }
    
    .cart-table td,
    .cart-table th {
        padding: var(--spacing-sm) !important;
    }
    
    /* Cart item image */
    .cart-item-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Checkout form */
    .checkout-form .row {
        flex-direction: column;
    }
    
    .checkout-form .col-6,
    .checkout-form .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Checkout summary */
    .checkout-summary {
        margin-top: var(--spacing-lg) !important;
    }
    
    /* Form groups in checkout */
    .checkout-form .form-group {
        margin-bottom: var(--spacing-md);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0;
        text-align: center;
    }
    
    .footer .row {
        flex-direction: column;
    }
    
    /* Inline styles override for mobile */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
    }
    
    [style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: var(--spacing-sm) !important;
    }
}

@media (max-width: 380px) {
    .header-actions .mobile-webshop-btn,
    .header-actions .ms-header-webshop-btn {
        padding: 7px 11px;
        font-size: 0.75rem;
        min-height: 36px;
    }

    .header-actions {
        gap: 8px;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .header-actions a.mobile-webshop-btn.mobile-webshop-btn--pulse,
    .header-actions .mobile-webshop-btn--pulse.ms-header-webshop-btn {
        animation: none !important;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    :root {
        --font-size-h1: 1.75rem;
        --font-size-h2: 1.5rem;
        --spacing-xl: 1rem;
        --spacing-lg: 0.75rem;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

/* Ügyfélközpont (/account) mobilon: AI chat gomb ne takarja a tartalmat (main.css a headben, nincs FOUC) */
@media (max-width: 1023px) {
    body[data-account-mobile-no-chat="1"] #aiSupportWidget {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Print */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }
}
