/* =====================================================================
   predmety.sk – main.css
   Mobile-first responsive, modern, minimalistický
   Akcent: #007a6a (brand green)
   ===================================================================== */

/* ===== CSS Variables ===== */
:root {
    --pme-brand:        #007a6a;
    --pme-brand-dark:   #005f53;
    --pme-brand-light:  #009682;
    --pme-bg:           #ffffff;
    --pme-bg-alt:       #fafafa;
    --pme-bg-soft:      #f5f5f5;
    --pme-text:         #1a1a1a;
    --pme-text-soft:    #555;
    --pme-text-muted:   #888;
    --pme-border:       #e8e8e8;
    --pme-border-soft:  #f0f0f0;
    --pme-shadow:       0 2px 8px rgba(0, 0, 0, 0.04);
    --pme-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --pme-radius:       8px;
    --pme-radius-lg:    16px;
    --pme-container:    1280px;
    /* Jednotné bočné odstupy pre celý web (header, layout, footer, …) */
    --pme-gutter-x:     20px;
    --pme-font:         'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Jednotný vzhľad medzi sekciami (homepage karusel, „Vybrané produkty“, …) */
    --pme-heading-section-size: clamp(1.25rem, 2.6vw, 1.65rem);
    --pme-heading-section-weight: 600;
    --pme-heading-section-tracking: 0.02em;
}
@media (min-width: 768px) {
    :root { --pme-gutter-x: 24px; }
}
@media (min-width: 1280px) {
    :root { --pme-gutter-x: 32px; }
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    overflow-x: clip;
    font-family: var(--pme-font);
    color: var(--pme-text);
    background: var(--pme-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--pme-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: 0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.7em, 3vw, 2.4em); font-weight: 600; }
h2 { font-size: clamp(1.3em, 2vw, 1.8em); font-weight: 600; }
h3 { font-size: 1.1em; font-weight: 600; }
p  { margin: 0 0 1em; }


/* ===== Skip link (a11y) ===== */
.pme-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 12px 20px;
    z-index: 10000;
}
.pme-skip-link:focus { top: 0; }


/* ===== Container ===== */
.pme-container {
    max-width: var(--pme-container);
    margin: 0 auto;
    padding-left: var(--pme-gutter-x);
    padding-right: var(--pme-gutter-x);
}


/* ===== Topbar (USPs) ===== */
.pme-topbar {
    background: #264b45;
    color: #fff;
    font-size: 0.85em;
    padding: 0;
}
.pme-topbar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    gap: 0;
}
.pme-topbar-compact {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
    line-height: 32px;
    letter-spacing: 0.01em;
}
.pme-topbar-item {
    display: none;
    align-items: center;
    gap: 6px;
}
@media (min-width: 768px) {
    .pme-topbar {
        padding: 8px 0;
        font-size: 0.85em;
    }
    .pme-topbar-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        min-height: 0;
        gap: 16px;
    }
    .pme-topbar-compact { display: none !important; }
    .pme-topbar-item {
        display: inline-flex;
    }
}
.pme-topbar-mail {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}
.pme-topbar-mail:hover {
    color: inherit;
    text-decoration: none;
    opacity: 0.92;
}
.pme-topbar-link {
    color: inherit;
    text-decoration: none;
}
.pme-topbar-link:hover {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.92;
}

/* Responsive visibility helpers (neprepisujú display na „viditeľnej“ strane) */
@media (max-width: 767px) {
    .pme-hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
    .pme-show-mobile-only { display: none !important; }
}


/* ===== Košík toast (po pridaní položky) ===== */
.pme-cart-toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    animation: pme-cart-toast-in 0.32s ease-out;
}
.pme-cart-toast.pme-cart-toast--hiding {
    animation: pme-cart-toast-out 0.32s ease-in forwards;
}
@keyframes pme-cart-toast-in {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pme-cart-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-100%); }
}
.pme-cart-toast--success {
    background: #ecfdf5;
    border-bottom: 1px solid #a7f3d0;
    color: #065f46;
}
.pme-cart-toast--error {
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
    color: #991b1b;
}
.pme-cart-toast-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.pme-cart-toast-msg {
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
    min-width: min(100%, 220px);
}
.pme-cart-toast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.pme-cart-toast-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}


/* ===== Header ===== */
.pme-header {
    background: var(--pme-bg);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 300;
    box-shadow: var(--pme-shadow);
}

.pme-header-tier {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--pme-border);
    height: 68px;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    /* Rovnaké L/R odstupy ako .pme-layout-main--full (--pme-gutter-x) */
    .pme-header-tier {
        padding-left: var(--pme-gutter-x);
        padding-right: var(--pme-gutter-x);
    }
    .pme-header-tier > .pme-container.pme-header-bar {
        padding-left: 0;
        padding-right: 0;
    }
    /* Panel: left/right 0 = padding edge tieru = celá šírka viewportu.
       (Negatívny offset by posunul panel mimo a zrušil by gutter .pme-container.) */
    .pme-header-tier > .pme-nav-mega-panel {
        left: 0;
        right: 0;
        width: auto;
    }
    .pme-header-tier:has(.pme-header-bar.pme-search-open) {
        height: auto;
        min-height: 68px;
    }
}

/* Logo + navigácia + úzke vyhľadávanie + košík
   Desktop: horizontálny padding cez .pme-container (--pme-gutter-x).
   Mobile: padding na .pme-header-tier (rovnako ako layout-main). */
.pme-header-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px 6px;
    height: 100%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .pme-header-bar {
        flex-wrap: nowrap;
        gap: 14px 22px;
    }
}

/* Mobile: hamburger | logo | actions | (search row when open) */
.pme-nav-toggle,
.pme-search-toggle,
.pme-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--pme-text);
    border-radius: var(--pme-radius);
    flex-shrink: 0;
    cursor: pointer;
}
.pme-nav-toggle:hover,
.pme-search-toggle:hover,
.pme-search-close:hover {
    background: var(--pme-bg-soft);
}
.pme-nav-toggle-icon--open {
    width: 28px;
    height: 28px;
}
.pme-nav-toggle-icon--close { display: none; }
.pme-header-tier.pme-mega-open .pme-nav-toggle-icon--open { display: none; }
.pme-header-tier.pme-mega-open .pme-nav-toggle-icon--close { display: block; }

/* Mobile order: ☰ | logo | actions · Desktop: logo | nav | search | cart */
.pme-header-bar .pme-nav-toggle { order: 1; }
.pme-header-bar .pme-logo { order: 2; }
.pme-header-bar .pme-header-actions { order: 3; margin-left: auto; }
.pme-header-bar .pme-header-nav { order: 4; }
.pme-header-bar .pme-search { order: 5; }

@media (max-width: 767px) {
    .pme-header-bar.pme-search-open {
        flex-wrap: wrap;
    }
    .pme-header-bar.pme-search-open .pme-search {
        display: flex;
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        order: 10;
    }
}
@media (min-width: 768px) {
    .pme-header-bar .pme-logo { order: 1; }
    .pme-header-bar .pme-header-nav { order: 2; }
    .pme-header-bar .pme-search { order: 3; }
    .pme-header-bar .pme-header-actions { order: 4; margin-left: 0; }
}

/* Logo */
.pme-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--pme-text);
}
.pme-logo:hover { text-decoration: none; }
.pme-logo-img {
    display: block;
    height: 32px;
    width: auto;
    max-width: min(46vw, 180px);
    object-fit: contain;
}
@media (min-width: 768px) {
    .pme-logo { flex-shrink: 0; }
    .pme-logo-img { height: 40px; max-width: min(42vw, 320px); }
}
.pme-logo-text {
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.pme-logo-accent { color: var(--pme-brand); }
@media (min-width: 768px) { .pme-logo-text { font-size: 1.7em; } }

/* Search */
.pme-search {
    display: none;
    align-items: stretch;
    background: var(--pme-bg-soft);
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pme-search:focus-within {
    border-color: var(--pme-brand);
    box-shadow: 0 0 0 3px rgba(0, 122, 106, 0.1);
}
.pme-search-input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font: inherit;
    outline: none;
    min-width: 0;
}
.pme-search-btn {
    padding: 10px 14px;
    border: none;
    background: var(--pme-bg-soft);
    color: var(--pme-text-soft);
    border-left: 1px solid var(--pme-border);
    transition: background 0.15s, color 0.15s;
}
.pme-search-btn:hover { background: var(--pme-brand); color: #fff; border-color: var(--pme-brand); }
.pme-search-close {
    border-left: 1px solid var(--pme-border);
    border-radius: 0;
    width: 44px;
    height: auto;
    color: var(--pme-text-soft);
}

/* Úzke vyhľadávanie v hlavičke (~šírka jedného slova; celý text v tooltipe / aria) */
.pme-search--compact {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
}
@media (min-width: 768px) {
    .pme-search {
        display: flex;
    }
    .pme-search--compact {
        width: 16.5rem;
        max-width: 24rem;
    }
    .pme-search-close { display: none !important; }
}
.pme-search--compact .pme-search-input {
    padding: 8px 6px 8px 10px;
    font-size: 0.88rem;
    text-overflow: ellipsis;
}

/* Hlavná navigácia v hlavičke — na mobile skrytá (hamburger) */
.pme-header-nav {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    flex: 1 1 160px;
    min-width: 0;
}
@media (min-width: 768px) {
    .pme-header-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px 22px;
        flex: 1 1 auto;
    }
}
@media (min-width: 1100px) {
    .pme-header-nav {
        gap: 6px 32px;
    }
}
.pme-header-nav-link {
    font-weight: 400;
    font-size: 0.93rem;
    color: var(--pme-text-muted);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 2px;
    border-radius: var(--pme-radius);
}
.pme-header-nav-link:hover {
    color: var(--pme-brand);
    text-decoration: none;
}

/* Desktop bar kategórií pod hlavným menu (NAY / Hauerland štýl) */
.pme-cats-bar {
    display: none;
    background: #009682;
    border-top: none;
}
.pme-cats-bar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 8px;
    padding-right: 8px;
}
.pme-cats-bar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    height: 3.25rem;
    padding: 5px 3px;
    box-sizing: border-box;
    font-size: clamp(0.58rem, 0.72vw, 0.74rem);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.15s ease, color 0.15s ease;
}
.pme-cats-bar-link-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    width: 100%;
    min-height: calc(1.2em * 2);
    max-height: calc(1.2em * 2);
    text-wrap: balance;
}
.pme-cats-bar-link:last-child {
    border-right: none;
}
.pme-cats-bar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}
.pme-cats-bar-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
    z-index: 1;
}
@media (min-width: 768px) {
    .pme-header {
        border-bottom: none;
    }
    .pme-cats-bar {
        display: block;
    }
}
@media (min-width: 1280px) {
    .pme-cats-bar-inner {
        padding-left: var(--pme-gutter-x);
        padding-right: var(--pme-gutter-x);
    }
    .pme-cats-bar-link {
        height: 3.4rem;
        padding: 6px 4px;
        font-size: 0.76rem;
    }
}

/* Wrapper mega menu — neviditeľný mostík + vyšší z-index,
   aby kurzor pri pohybe dolu nestrácal :hover pred vstupom do panelu */
.pme-nav-mega {
    position: relative;
    z-index: 291;
}
.pme-nav-mega::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 28px;
}

/* Mega „Kategórie“ – panel pod celým tierom (full šírka kontajnera) */
.pme-nav-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 400;
    font-size: 0.93rem;
    color: var(--pme-text-muted);
    cursor: pointer;
    border-radius: var(--pme-radius);
}
.pme-nav-mega-trigger:hover,
.pme-header-tier.pme-mega-open .pme-nav-mega-trigger {
    color: var(--pme-brand);
}
.pme-nav-mega-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .pme-header-tier:has(.pme-nav-mega:hover) .pme-nav-mega-chevron,
    .pme-header-tier:has(.pme-nav-mega-panel:hover) .pme-nav-mega-chevron,
    .pme-header-tier:has(.pme-nav-mega:focus-within) .pme-nav-mega-chevron,
    .pme-header-tier:has(.pme-nav-mega-panel:focus-within) .pme-nav-mega-chevron {
        transform: rotate(-180deg);
    }
}
.pme-header-tier.pme-mega-open .pme-nav-mega-chevron {
    transform: rotate(-180deg);
}

.pme-nav-mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    /* Silnejší prekryv s hlavičkou = žiadna „medzera“ bez hoveru medzi triggerom a panelom */
    margin-top: -20px;
    padding-top: 28px;
    z-index: 280;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s;
}

@media (hover: hover) and (pointer: fine) {
    .pme-header-tier:has(.pme-nav-mega:hover) .pme-nav-mega-panel,
    .pme-header-tier:has(.pme-nav-mega-panel:hover) .pme-nav-mega-panel,
    .pme-header-tier:has(.pme-nav-mega:focus-within) .pme-nav-mega-panel,
    .pme-header-tier:has(.pme-nav-mega-panel:focus-within) .pme-nav-mega-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.pme-header-tier.pme-mega-open .pme-nav-mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pme-nav-mega-inner {
    background: var(--pme-bg);
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius-lg);
    box-shadow: var(--pme-shadow-hover);
    padding-top: 18px;
    padding-bottom: 22px;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    font-weight: 400;
}
@media (min-width: 768px) {
    .pme-nav-mega-inner {
        padding-top: 22px;
        padding-bottom: 26px;
    }
}

.pme-nav-mega-empty {
    margin: 0;
}

.pme-nav-mega-grid {
    display: grid;
    gap: 18px 28px;
    grid-template-columns: 1fr;
}
@media (min-width: 560px) {
    .pme-nav-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 960px) {
    .pme-nav-mega-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 36px;
    }
}

.pme-nav-mega-col {
    min-width: 0;
}
.pme-nav-mega-top {
    display: block;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--pme-text);
    text-decoration: none;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--pme-border-soft);
}
.pme-nav-mega-top:hover {
    color: var(--pme-brand);
    text-decoration: none;
}

.pme-nav-mega-subs {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pme-nav-mega-subs li {
    margin: 0;
    padding: 0;
}
.pme-nav-mega-subs a {
    display: block;
    padding: 5px 0;
    font-size: 0.88rem;
    color: var(--pme-text-soft);
    text-decoration: none;
}
.pme-nav-mega-subs a:hover {
    color: var(--pme-brand);
    text-decoration: none;
}

/* Header actions (cart + mobile search) */
.pme-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .pme-header-actions { gap: 8px; }
}

/* Mobile drawer links inside mega panel */
.pme-mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.pme-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 0;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--pme-text);
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}
.pme-mobile-nav-link:hover {
    color: var(--pme-brand);
    text-decoration: none;
}
.pme-mobile-nav-cats-toggle {
    justify-content: space-between;
}
.pme-mobile-nav-cats-toggle:focus-visible {
    outline: 2px solid var(--pme-brand);
    outline-offset: 2px;
}
.pme-mobile-nav-cats-chevron {
    flex: 0 0 auto;
    color: var(--pme-text-soft);
    transition: transform 0.18s ease, color 0.15s ease;
}
.pme-mobile-nav-cats-toggle[aria-expanded="true"] .pme-mobile-nav-cats-chevron {
    transform: rotate(180deg);
    color: var(--pme-brand);
}
.pme-nav-cats-panel {
    min-width: 0;
}
@media (min-width: 768px) {
    .pme-mobile-nav-links { display: none !important; }
    .pme-nav-cats-panel {
        display: block !important;
    }
}
@media (max-width: 767px) {
    .pme-nav-mega-panel {
        margin-top: 0;
        padding-top: 0;
    }
    .pme-nav-mega-inner {
        border-radius: 0 0 var(--pme-radius-lg) var(--pme-radius-lg);
        max-height: min(78vh, 640px);
        /* Bez bočného borderu – text sedí na rovnakom X ako .pme-section (gutter) */
        border-left: 0;
        border-right: 0;
        padding-left: var(--pme-gutter-x);
        padding-right: var(--pme-gutter-x);
    }
    .pme-mobile-nav-links {
        margin-bottom: 4px;
        padding-bottom: 4px;
        border-bottom: 1px solid var(--pme-border-soft);
    }
    /* Predvolene zbalené – rozbalí sa klikom na „Kategórie“ */
    .pme-nav-cats-panel {
        display: none;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    .pme-nav-cats-panel.is-open {
        display: block;
    }
    .pme-nav-cats-panel .pme-nav-mega-grid {
        gap: 0;
        grid-template-columns: 1fr;
    }
    .pme-nav-cats-panel .pme-nav-mega-top {
        display: flex;
        align-items: center;
        min-height: 44px;
        margin: 0;
        padding: 8px 0;
        font-size: 1rem;
        font-weight: 400;
        box-sizing: border-box;
    }
    .pme-nav-cats-panel .pme-nav-mega-subs {
        display: none;
    }
}
.pme-header-kontakt {
    font-size: 0.92em;
    font-weight: 600;
    color: var(--pme-text-soft);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--pme-radius);
    white-space: nowrap;
}
.pme-header-kontakt:hover {
    color: var(--pme-brand);
    background: var(--pme-bg-soft);
    text-decoration: none;
}
.pme-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--pme-text);
    border-radius: 50%;
    transition: background 0.15s;
}
.pme-cart-link:hover { background: var(--pme-bg-soft); text-decoration: none; }
.pme-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--pme-brand);
    color: #fff;
    border-radius: 9px;
    font-size: 0.7em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ===== Layout: sidebar kategórie + obsah ===== */
.pme-layout {
    max-width: var(--pme-container);
    margin: 0 auto;
    padding: 0 var(--pme-gutter-x) 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
@media (min-width: 768px) {
    .pme-layout { padding-bottom: 56px; gap: 28px; }
}
@media (min-width: 960px) {
    .pme-layout {
        grid-template-columns: minmax(200px, 252px) minmax(0, 1fr);
        gap: 32px;
        padding-top: 8px;
    }
}

.pme-sidebar {
    border-bottom: 1px solid var(--pme-border-soft);
    padding-bottom: 16px;
}
@media (min-width: 960px) {
    .pme-sidebar {
        position: sticky;
        top: 96px;
        align-self: start;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        border-bottom: none;
        border-right: 1px solid var(--pme-border-soft);
        padding: 8px 20px 24px 0;
        margin-right: 4px;
        -webkit-overflow-scrolling: touch;
    }
}

.pme-sidebar-inner { min-width: 0; }

.pme-sidebar-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pme-text-soft);
    margin: 0 0 12px;
    font-weight: 600;
}

.pme-sidebar-empty { margin: 0; font-size: 0.9em; }

/* Mobilný collapsible panel kategórií (≤767) – predvolene zbalený */
.pme-sidebar-toggle {
    display: none;
}
.pme-sidebar-panel {
    min-width: 0;
}
@media (max-width: 767px) {
    .pme-sidebar {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }
    .pme-sidebar-title {
        display: none;
    }
    .pme-sidebar-toggle {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        min-height: 46px;
        margin: 0;
        padding: 10px 12px;
        font: inherit;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--pme-text);
        text-align: left;
        cursor: pointer;
        border: 1px solid var(--pme-border);
        border-radius: var(--pme-radius);
        background: var(--pme-bg);
        appearance: none;
        -webkit-appearance: none;
    }
    .pme-sidebar-toggle:focus-visible {
        outline: 2px solid var(--pme-brand);
        outline-offset: 2px;
    }
    .pme-sidebar-toggle-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }
    .pme-sidebar-toggle-icon,
    .pme-sidebar-toggle-chevron {
        flex: 0 0 auto;
        color: var(--pme-text-soft);
    }
    .pme-sidebar-toggle-chevron {
        transition: transform 0.18s ease;
    }
    .pme-sidebar.is-open .pme-sidebar-toggle-chevron {
        transform: rotate(180deg);
        color: var(--pme-brand);
    }
    .pme-sidebar-panel {
        display: none;
        margin-top: 8px;
        padding: 4px 0 2px;
    }
    .pme-sidebar.is-open .pme-sidebar-panel {
        display: block;
    }
}
@media (min-width: 768px) {
    .pme-sidebar-toggle {
        display: none !important;
    }
    .pme-sidebar-panel {
        display: block !important;
    }
}

.pme-cat-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pme-cat-tree-item {
    margin: 0;
    padding: 0;
}
.pme-cat-tree-link {
    display: block;
    padding: 7px 10px;
    margin: 1px 0;
    border-radius: var(--pme-radius);
    color: var(--pme-text-soft);
    text-decoration: none;
    font-size: 0.94em;
    font-weight: 400;
    line-height: 1.38;
}
.pme-cat-tree-link:hover {
    background: var(--pme-bg-soft);
    color: var(--pme-brand);
    text-decoration: none;
}
.pme-cat-tree-link.is-active {
    background: rgba(0, 122, 106, 0.09);
    color: var(--pme-brand);
    font-weight: 400;
}
.pme-cat-tree-link.is-trail {
    font-weight: 400;
}
.pme-cat-tree-count {
    font-weight: 400;
    color: var(--pme-text-muted);
    font-size: 0.9em;
    margin-left: 4px;
}
.pme-cat-tree-link.is-active .pme-cat-tree-count {
    color: inherit;
    opacity: 0.9;
}

.pme-cat-tree-sub {
    list-style: none;
    margin: 2px 0 10px 8px;
    padding: 2px 0 4px 14px;
    border-left: 2px solid var(--pme-border-soft);
}
.pme-cat-tree-sub-item { margin: 0; }

.pme-cat-tree-link--sub {
    font-size: 0.89em;
    font-weight: 400;
}

.pme-layout-main {
    min-width: 0;
}

/* Homepage / landing – rovnaké bočné odstupy ako header (--pme-gutter-x) */
.pme-layout-main--full {
    max-width: var(--pme-container);
    margin: 0 auto;
    padding: 0 var(--pme-gutter-x) 48px;
    min-width: 0;
}
@media (min-width: 768px) {
    .pme-layout-main--full {
        padding-bottom: 56px;
    }
}

/* Jedna horizontálna „vanička“ — vnútorný .pme-container v stĺpci obsahu bez druhého odsadenia */
.pme-layout-main > section > .pme-container,
.pme-layout-main--full > section > .pme-container {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}


/* ===== Buttons ===== */
.pme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95em;
    border-radius: var(--pme-radius);
    border: 2px solid transparent;
    background: transparent;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}
.pme-btn:hover { text-decoration: none; }
.pme-btn-primary { background: var(--pme-brand); color: #fff; }
.pme-btn-primary:hover { background: var(--pme-brand-dark); color: #fff; }
.pme-btn-ghost { color: var(--pme-text); border-color: var(--pme-border); }
.pme-btn-ghost:hover { background: var(--pme-bg-soft); border-color: var(--pme-text); }
.pme-btn-block { display: flex; width: 100%; }


/* ===== Section ===== */
.pme-section { padding: 16px 0; }
.pme-section-alt { background: var(--pme-bg-alt); }
.pme-section-title {
    margin: 0 0 8px;
    font-size: var(--pme-heading-section-size);
    font-weight: var(--pme-heading-section-weight);
    letter-spacing: var(--pme-heading-section-tracking);
    color: var(--pme-text);
}
.pme-section-lead { margin-bottom: 24px; }
@media (min-width: 768px) { .pme-section { padding: 22px 0; } }


/* ===== Hero (homepage) ===== */
.pme-hero {
    background: #fff;
    padding: 14px 0 18px;
    text-align: left;
    overflow-x: clip;
}
.pme-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    min-width: 0;
}
.pme-hero-media {
    min-width: 0;
    width: 100%;
    border-radius: var(--pme-radius-lg);
    overflow: hidden;
    background: #eceae6;
    /* Mobile: celý štvorcový formát (bez max-height orezania) */
    aspect-ratio: 1 / 1;
    max-height: none;
}
.pme-hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
}
.pme-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.pme-hero-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.18;
    margin: 0;
    color: var(--pme-text);
}
.pme-hero-lead {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--pme-text-soft);
    margin: 0;
}
.pme-hero-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 2px 0 0;
    background: var(--pme-bg-soft);
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pme-hero-search:focus-within {
    border-color: #009682;
    box-shadow: 0 0 0 3px rgba(0, 150, 130, 0.14);
}
.pme-hero-search-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    outline: none;
}
.pme-hero-search-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    border: none;
    border-left: 1px solid var(--pme-border);
    background: #009682;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}
.pme-hero-search-btn:hover {
    background: #007a6a;
}
.pme-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 2px 0 0;
}
.pme-hero-actions .pme-btn {
    width: 100%;
}
.pme-hero .pme-btn-primary {
    background: #009682;
    border-color: #009682;
    color: #fff;
}
.pme-hero .pme-btn-primary:hover {
    background: #007a6a;
    border-color: #007a6a;
    color: #fff;
}
.pme-hero-quote-btn {
    cursor: pointer;
    font: inherit;
}
.pme-hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #009682;
    text-decoration: none;
}
.pme-hero-link:hover {
    color: #007a6a;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .pme-hero {
        padding: 22px 0 26px;
        overflow-x: clip;
    }
    /* 2 stĺpce v rámci .pme-container — obrázok = 50 % rodiča, nie 50vw */
    .pme-hero > .pme-container.pme-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        column-gap: clamp(24px, 2.5vw, 40px);
        row-gap: 10px;
        align-items: center;
    }
    .pme-hero-title,
    .pme-hero-lead,
    .pme-hero-search,
    .pme-hero-actions {
        grid-column: 1;
        min-width: 0;
    }
    .pme-hero-media {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: center;
        width: 100%;
        max-width: none;
        max-height: none;
        /* Landscape: square zdroj sa oreže zhora/zdola (object-fit: cover) */
        aspect-ratio: 16 / 10;
        justify-self: stretch;
        margin: 0;
        border-radius: var(--pme-radius-lg);
    }
    .pme-hero-title {
        font-size: clamp(1.55rem, 2.4vw, 2.05rem);
        letter-spacing: 0.015em;
        line-height: 1.15;
    }
    .pme-hero-lead {
        font-size: 1.02rem;
        line-height: 1.45;
        max-width: 34rem;
    }
    .pme-hero-search {
        max-width: 32rem;
        margin: 4px 0 0;
    }
    .pme-hero-search-input {
        padding: 12px 15px;
        font-size: 0.98rem;
    }
    .pme-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 18px;
        margin-top: 4px;
    }
    .pme-hero-actions .pme-btn {
        width: auto;
        min-width: 11.5rem;
    }
    .pme-hero-link {
        justify-content: flex-start;
        min-height: auto;
        padding: 4px 0;
    }
}

.pme-quote-cta-section {
    padding-top: 12px;
    padding-bottom: 20px;
}
/* Žiadny prázdny šedý pruh, keď je dopytový formulár zatvorený */
.pme-quote-cta-section:has(#pme-quote-form[hidden]) {
    display: none;
}
.pme-quote-home-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}
.pme-quote-panel--home .pme-quote-home-title {
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
    color: var(--pme-text);
    line-height: 1.25;
    flex: 1 1 auto;
    min-width: 0;
}
.pme-quote-home-close {
    flex: 0 0 auto;
    margin: -4px -6px 0 0;
    padding: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7580;
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.pme-quote-home-close:hover {
    background: #f0f3f2;
    color: var(--pme-text);
}
.pme-quote-home-close:focus-visible {
    outline: 2px solid #009682;
    outline-offset: 1px;
}
.pme-quote-intro {
    margin: 0 0 20px;
    max-width: 40rem;
}
.pme-quote-page {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}
.pme-quote-page > h1,
.pme-quote-page > .pme-quote-intro,
.pme-quote-page > .pme-contact-flash {
    text-align: left;
}
.pme-quote-panel {
    max-width: 56rem;
    margin: 0 auto;
    padding: 20px 22px;
    background: var(--pme-bg);
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius-lg);
    scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
    box-sizing: border-box;
    width: 100%;
}
.pme-quote-panel--page {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}
.pme-quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    width: 100%;
    min-width: 0;
    max-width: 52rem;
    margin: 0 auto;
}
@media (min-width: 900px) {
    .pme-quote-layout {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
        gap: 28px;
    }
}
.pme-quote-layout-main {
    min-width: 0;
}
.pme-quote-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    min-width: 0;
}
@media (min-width: 700px) {
    .pme-quote-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 14px 16px;
    }
}
.pme-quote-trust {
    padding: 18px 18px 16px;
    background: #f4f7f6;
    border: 1px solid var(--pme-border-soft);
    border-radius: 14px;
    min-width: 0;
}
.pme-quote-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--pme-text);
}
.pme-quote-trust-list li {
    position: relative;
    padding-left: 1.35em;
}
.pme-quote-trust-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: #009682;
}
.pme-quote-trust-list a {
    color: #009682;
    font-weight: 600;
    white-space: nowrap;
}

/* Floating labels – dopyt */
.pme-quote-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
    position: relative;
}
.pme-float-field {
    position: relative;
    width: 100%;
    min-width: 0;
}
.pme-float-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    margin: 0;
    padding: 18px 16px 10px;
    border: 1px solid #cfd6dc;
    border-radius: 12px;
    background: #fff;
    color: var(--pme-text);
    font: inherit;
    font-size: 1rem;
    line-height: 1.35;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.pme-float-input--area {
    min-height: 72px;
    height: 72px;
    padding-top: 26px;
    resize: vertical;
    transition: min-height 0.2s ease, height 0.2s ease, border-color 0.15s, box-shadow 0.15s;
}
.pme-float-input--area.is-expanded {
    min-height: 148px;
    height: 148px;
}
.pme-float-input--qty {
    padding-right: 2.6rem;
}
.pme-float-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7580;
    pointer-events: none;
    line-height: 1;
}
.pme-float-field--qty .pme-float-label {
    right: 2.8rem;
    max-width: calc(100% - 3.4rem);
}
.pme-float-input--date {
    color: transparent;
    padding-right: 2.5rem;
}
.pme-float-field--date:focus-within .pme-float-input--date,
.pme-float-field--date.is-filled .pme-float-input--date {
    color: var(--pme-text);
}
.pme-float-field--date .pme-float-label {
    right: 2.5rem;
    max-width: calc(100% - 3.2rem);
}
.pme-float-input::placeholder {
    color: transparent;
    opacity: 0;
}
.pme-float-field:focus-within .pme-float-input::placeholder,
.pme-float-field.is-filled .pme-float-input::placeholder {
    color: #9aa3ad;
    opacity: 1;
}
.pme-float-input:focus {
    outline: none;
    border-color: #009682;
    box-shadow: 0 0 0 3px rgba(0, 150, 130, 0.18);
}
.pme-float-field.is-invalid .pme-float-input {
    border-color: #c0392b;
}
.pme-float-field.is-invalid .pme-float-input:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}
.pme-float-label {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: #6b7580;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease;
    background: transparent;
    max-width: calc(100% - 32px);
}
.pme-float-input--area + .pme-float-label {
    top: 18px;
    transform: none;
}
.pme-float-field:focus-within .pme-float-label,
.pme-float-field.is-filled .pme-float-label {
    top: 8px;
    transform: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #009682;
}
.pme-float-field.is-invalid .pme-float-label {
    color: #c0392b;
}
.pme-float-label .pme-req {
    color: #009682;
    margin-left: 2px;
}
.pme-quote-print {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pme-quote-print-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--pme-text);
    cursor: pointer;
    line-height: 1.35;
}
.pme-quote-print-check input {
    margin: 0.2em 0 0;
    width: 1.1em;
    height: 1.1em;
    accent-color: #009682;
    flex: 0 0 auto;
}
.pme-quote-print-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease, margin 0.2s ease;
    margin: 0;
    pointer-events: none;
}
.pme-quote-print-panel.is-open {
    max-height: 220px;
    opacity: 1;
    margin-top: 2px;
    pointer-events: auto;
}
.pme-field-error {
    margin: 6px 2px 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #c0392b;
}
.pme-field-error--form {
    margin-top: 0;
}
.pme-quote-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}
.pme-quote-file-add {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #009682;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.pme-quote-file-add:hover {
    text-decoration: underline;
}
.pme-quote-file-picked {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f4f7f6;
    border: 1px solid var(--pme-border-soft);
}
.pme-quote-file-picked[hidden] {
    display: none !important;
}
.pme-quote-file-name {
    font-size: 0.9rem;
    color: var(--pme-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.pme-quote-file-clear {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #6b7580;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.pme-quote-file-clear:hover {
    color: #c0392b;
}
.pme-quote-file-hint {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.82rem;
    color: var(--pme-text-muted);
}
.pme-quote-form-actions {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pme-quote-submit {
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    font-size: 1.05rem;
}
@media (min-width: 769px) {
    .pme-quote-submit {
        width: auto;
        min-width: 220px;
        align-self: flex-start;
    }
}
.pme-quote-privacy {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--pme-text-muted);
}
.pme-quote-thanks-lead {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.pme-product-quote-cta {
    margin-top: 12px;
}
.pme-field-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--pme-muted);
    margin: -4px 0 8px;
}
.pme-form-row-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.92em;
}
.pme-turnstile-row .pme-field-hint {
    margin-bottom: 8px;
}
.pme-turnstile-wrap {
    max-width: 100%;
}

/* ===== Category grid ===== */
.pme-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.pme-cat-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--pme-bg);
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius-lg);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.pme-cat-card:hover {
    border-color: var(--pme-brand);
    box-shadow: var(--pme-shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
}
.pme-cat-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--pme-bg-alt);
}
.pme-cat-card-body { padding: 16px 20px; }
.pme-cat-name { color: var(--pme-text); font-size: 1.1em; margin-bottom: 4px; }
.pme-cat-desc { color: var(--pme-text-soft); font-size: 0.9em; margin: 0; }


/* ===== Homepage – bannery obľúbených kategórií (karusel / mobilný grid) ===== */
.pme-cat-banners-section {
    padding-top: 20px;
    padding-bottom: 28px;
}
.pme-cat-banners-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pme-cat-banners-title {
    margin: 0;
    font-size: var(--pme-heading-section-size);
    font-weight: var(--pme-heading-section-weight);
    letter-spacing: var(--pme-heading-section-tracking);
    color: var(--pme-text);
}
.pme-cat-banners-nav {
    display: none;
    gap: 8px;
}
@media (min-width: 768px) {
    .pme-cat-banners-section {
        padding-top: 36px;
        padding-bottom: 48px;
    }
    .pme-cat-banners-head { margin-bottom: 20px; }
    .pme-cat-banners-nav { display: flex; }
}
.pme-cat-banners-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--pme-border);
    background: var(--pme-bg);
    color: var(--pme-text-soft);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease,
        transform 0.18s ease;
}
.pme-cat-banners-btn:hover:not(:disabled) {
    border-color: var(--pme-brand);
    color: var(--pme-brand);
    background: rgba(0, 122, 106, 0.06);
}
.pme-cat-banners-btn:active:not(:disabled) {
    transform: scale(0.96);
}
.pme-cat-banners-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.pme-cat-banners-btn--next {
    background: var(--pme-brand);
    border-color: var(--pme-brand);
    color: #fff;
}
.pme-cat-banners-btn--next:hover:not(:disabled) {
    background: var(--pme-brand-dark);
    border-color: var(--pme-brand-dark);
    color: #fff;
}
.pme-cat-banners-viewport {
    margin: 0;
    padding: 0;
    overflow: visible;
}

.pme-cat-banners-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    overflow: visible;
    padding-bottom: 0;
}
.pme-cat-banners-track::-webkit-scrollbar {
    height: 6px;
}
.pme-cat-banners-track::-webkit-scrollbar-thumb {
    background: var(--pme-border);
    border-radius: 4px;
}

.pme-cat-banner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pme-cat-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}
.pme-cat-banner:focus-visible {
    outline: 3px solid rgba(0, 122, 106, 0.35);
    outline-offset: 3px;
}
.pme-cat-banner-visual {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eceae6;
}
.pme-cat-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}
.pme-cat-banner:hover .pme-cat-banner-img {
    transform: scale(1.04);
}
/* Rovnaký šedý pás pod obrázkom ako na /katalog */
.pme-cat-banner-caption {
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: calc(10px + 12px + 1.3em * 2);
    text-align: left;
    color: var(--pme-text, #1a1a1a);
    background: #ebebeb;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .pme-cat-banners-viewport {
        margin: 0 -4px;
        padding: 4px;
        overflow: hidden;
    }
    .pme-cat-banners-track {
        display: flex;
        align-items: stretch;
        grid-template-columns: none;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 6px;
        padding-bottom: 6px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .pme-cat-banner {
        flex: 0 0 clamp(192px, 48vw, 300px);
        height: auto;
        scroll-snap-align: start;
    }
    .pme-cat-banner-visual {
        aspect-ratio: 2 / 3;
    }
    .pme-cat-banner-img {
        object-position: center bottom;
    }
    .pme-cat-banner-caption {
        padding: 12px 14px;
        font-size: 0.88rem;
        min-height: calc(12px + 14px + 1.3em * 2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pme-cat-banner,
    .pme-cat-banner-img,
    .pme-cat-banners-btn {
        transition-duration: 0.01ms !important;
    }
    .pme-cat-banner:hover {
        transform: none;
    }
    .pme-cat-banner:hover .pme-cat-banner-img {
        transform: none;
    }
}


/* ===== Product grid + card ===== */
.pme-category-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.pme-category-sort-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.pme-category-sort-form label {
    font-size: 0.9rem;
    color: var(--pme-muted);
}

.pme-category-sort-form select {
    min-width: 11rem;
    padding: 0.45rem 0.55rem;
    border-radius: var(--pme-radius);
    border: 1px solid var(--pme-border);
    background: var(--pme-bg);
    color: inherit;
    font: inherit;
}

.pme-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
@media (max-width: 767px) {
    .pme-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
.pme-card {
    background: var(--pme-bg);
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    overflow: hidden;
    transition: border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}
.pme-card:hover {
    border-color: var(--pme-brand);
    box-shadow: var(--pme-shadow-hover);
    transform: translateY(-3px);
}
.pme-card-media {
    position: relative;
    flex-shrink: 0;
}
.pme-card-img {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--pme-bg-alt);
    position: relative;
    overflow: hidden;
}
.pme-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.pme-card:hover .pme-card-img img { transform: scale(1.05); }
.pme-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--pme-text-muted);
    font-size: 0.85em;
}

/* Jemný overlay + tlačidlo pri hoveri (desktop / fine pointer) */
.pme-card-cart-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.42) 0%, rgba(17, 17, 17, 0) 58%);
    opacity: 0;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.pme-card-cart-hover {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
}
.pme-card-cart-form {
    margin: 0;
}
.pme-card-cart-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 122, 106, 0.28);
}

@media (hover: hover) and (pointer: fine) {
    .pme-card-cart-hover {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    .pme-card-cart-hover .pme-card-cart-form {
        pointer-events: auto;
    }
    .pme-card:hover .pme-card-cart-layer,
    .pme-card:focus-within .pme-card-cart-layer {
        opacity: 1;
    }
    .pme-card:hover .pme-card-cart-hover,
    .pme-card:focus-within .pme-card-cart-hover {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (hover: none), (pointer: coarse) {
    .pme-card-cart-layer {
        display: none;
    }
    .pme-card-cart-hover {
        position: static;
        padding: 10px 12px 12px;
        background: linear-gradient(to bottom, var(--pme-bg-alt), var(--pme-bg-soft));
        border-top: 1px solid var(--pme-border-soft);
    }
    .pme-card-cart-btn {
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pme-card,
    .pme-card-img img,
    .pme-card-cart-layer,
    .pme-card-cart-hover {
        transition-duration: 0.01ms !important;
    }
    .pme-card:hover {
        transform: none;
    }
    .pme-card:hover .pme-card-img img {
        transform: none;
    }
}

.pme-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    min-width: 0;
}
.pme-card-title {
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Detail CTA – len mobilný katalóg (desktop používa hover „Do košíka“) */
.pme-card-detail-cta {
    display: none;
}
.pme-card-title a { color: var(--pme-text); text-decoration: none; }
.pme-card-title a:hover { color: var(--pme-brand); }
.pme-card-meta { font-size: 0.78em; color: var(--pme-text-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.pme-card-code { font-weight: 500; color: var(--pme-text-soft); }
.pme-card-material { font-size: 0.78em; color: var(--pme-text-muted); }
.pme-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
    gap: 8px;
}
.pme-card-price {
    font-size: 0.9em;
    min-height: 3em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.pme-card-price-muted { color: var(--pme-text-muted); }
.pme-card-price-value {
    font-weight: 600;
    font-size: 1.02em;
    color: var(--pme-text);
    letter-spacing: -0.02em;
}
.pme-card-price-net-line,
.pme-card-price-gross-line {
    display: block;
    font-weight: 400;
    font-size: 0.82em;
    line-height: 1.3;
    color: var(--pme-text-muted);
    letter-spacing: -0.01em;
}
.pme-card-price-vat {
    font-size: 0.72em;
    font-weight: 500;
    color: var(--pme-text-muted);
    margin-top: 2px;
}
.pme-card-color-count { font-size: 0.78em; color: var(--pme-text-muted); }
.pme-card-swatches { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pme-card-swatch {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--pme-border);
    background-size: cover;
    background-position: center;
    background-color: var(--pme-bg-alt);
}
.pme-card-swatch:hover { border-color: var(--pme-brand); }
.pme-card-swatch-more {
    font-size: 0.7em;
    color: var(--pme-text-muted);
    align-self: center;
    padding: 0 4px;
}

/* Mobilný katalóg: kompaktné karty (2 stĺpce) – po základných .pme-card-* pravidlách */
@media (max-width: 767px) {
    .pme-card:hover {
        transform: none;
        box-shadow: none;
    }
    .pme-card:hover .pme-card-img img {
        transform: none;
    }
    .pme-card-cart-layer,
    .pme-card-cart-hover {
        display: none !important;
    }
    .pme-card-img img {
        padding: 6px;
    }
    .pme-card-body {
        padding: 8px 9px 9px;
        gap: 5px;
    }
    .pme-card-title {
        font-size: 0.8125rem; /* 13px */
        font-weight: 600;
        line-height: 1.3;
        min-height: 0;
        -webkit-line-clamp: 3;
        margin: 0;
    }
    .pme-card-meta,
    .pme-card-material,
    .pme-card-swatches,
    .pme-card-color-count {
        display: none !important;
    }
    .pme-card-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 0;
        padding-top: 0;
        gap: 2px;
    }
    .pme-card-price {
        font-size: 0.78rem;
        min-height: 0;
        gap: 1px;
        width: 100%;
    }
    .pme-card-price-value {
        font-size: 0.875rem; /* 14px */
        font-weight: 700;
        letter-spacing: -0.02em;
    }
    .pme-card-price-net-line {
        font-size: 0.68rem;
        line-height: 1.25;
    }
    .pme-card-detail-cta {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: auto;
        padding: 7px 8px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        text-align: center;
        text-decoration: none !important;
        border-radius: 7px !important;
    }
}


/* ===== USP grid (homepage) ===== */
.pme-usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.pme-usp { text-align: center; padding: 16px; }
.pme-usp-icon { font-size: 2.5em; margin-bottom: 8px; }
.pme-usp h3 { margin-bottom: 4px; }
.pme-usp p { color: var(--pme-text-soft); font-size: 0.9em; margin: 0; }


/* ===== Breadcrumb ===== */
.pme-breadcrumb { padding: 16px 0; }
.pme-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85em;
    color: var(--pme-text-muted);
}
.pme-breadcrumb-item { display: inline-flex; align-items: center; gap: 6px; }
.pme-breadcrumb-item a { color: var(--pme-text-soft); }
.pme-breadcrumb-item a:hover { color: var(--pme-brand); }
.pme-breadcrumb-item span[aria-current] { color: var(--pme-text); font-weight: 500; }
.pme-breadcrumb-sep { color: var(--pme-text-muted); }


/* ===== Page head ===== */
.pme-page-head { margin-bottom: 32px; }
.pme-page-head h1 { margin-bottom: 8px; }
.pme-page-head-count { margin: 0; }
.pme-page-head-count-short { display: none; }

/* Mobilný katalóg – kompaktný horný layout (≤767), po základných page-head/breadcrumb pravidlách */
@media (max-width: 767px) {
    .pme-layout {
        gap: 0;
        padding-top: 6px;
    }

    .pme-layout-main > .pme-breadcrumb {
        padding: 14px 0 0;
        margin: 0;
    }
    .pme-layout-main > .pme-breadcrumb .pme-breadcrumb-list {
        font-size: 0.75rem; /* 12px */
        gap: 4px;
        line-height: 1.35;
    }

    .pme-layout-main > .pme-section {
        padding-top: 10px;
        padding-bottom: 16px;
    }

    .pme-page-head {
        margin: 0 0 0;
    }
    .pme-page-head h1 {
        margin: 0 0 5px;
        font-size: 1.375rem; /* 22px */
        font-weight: 700;
        line-height: 1.25;
    }
    .pme-page-head-desc {
        display: none;
    }
    .pme-page-head-count {
        margin: 0;
        font-size: 0.875rem;
        line-height: 1.35;
    }
    .pme-page-head-count-full {
        display: none;
    }
    .pme-page-head-count-short {
        display: inline;
    }

    .pme-category-toolbar {
        display: block;
        margin: 16px 0 12px;
        gap: 0;
    }
    .pme-category-sort-form {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }
    .pme-category-sort-form label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .pme-category-sort-form select {
        box-sizing: border-box;
        min-width: 0;
        height: 42px;
        padding: 0 8px;
        font-size: 0.8125rem;
        line-height: 1.2;
    }
    .pme-category-sort-form select#pme-sort-field {
        flex: 1.45 1 0;
    }
    .pme-category-sort-form select#pme-sort-dir {
        flex: 1 1 0;
        max-width: 44%;
    }
}


/* ===== Catalog landing (/katalog) ===== */
.pme-catalog-landing {
    padding-top: 8px;
    padding-bottom: 40px;
}
.pme-catalog-landing-head {
    margin: 0 0 20px;
    max-width: 40rem;
}
.pme-catalog-landing-head h1 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.pme-catalog-landing-lead {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--pme-text-soft);
}
.pme-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    align-items: stretch;
}
.pme-catalog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    border-radius: 11px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pme-catalog-card:hover {
    text-decoration: none;
    color: inherit;
}
.pme-catalog-card:focus-visible {
    outline: 3px solid rgba(0, 122, 106, 0.35);
    outline-offset: 2px;
}
.pme-catalog-card-visual {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eceae6;
}
.pme-catalog-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Posun nižšie v ráme — menej orezania zhora */
    object-position: center calc(50% + 22px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pme-catalog-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.75) 0%, transparent 55%),
        linear-gradient(160deg, #f0eeea 0%, #e2dfd8 55%, #d8d4cc 100%);
}
.pme-catalog-card-caption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    text-align: left;
    color: var(--pme-text, #1a1a1a);
    background: #ebebeb;
}
.pme-catalog-card-name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pme-catalog-card-count {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--pme-text-muted, #888);
    line-height: 1.2;
    min-height: 1.2em;
}
@media (hover: hover) and (pointer: fine) {
    .pme-catalog-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    }
    .pme-catalog-card:hover .pme-catalog-card-img {
        transform: scale(1.04);
    }
}
@media (min-width: 768px) {
    .pme-catalog-landing {
        padding-top: 12px;
        padding-bottom: 56px;
    }
    .pme-catalog-landing-head {
        margin-bottom: 28px;
    }
    .pme-catalog-landing-head h1 {
        font-size: 1.85rem;
    }
    .pme-catalog-landing-lead {
        font-size: 1.05rem;
    }
    .pme-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
    .pme-catalog-card-caption {
        padding: 12px 14px;
    }
    .pme-catalog-card-name {
        font-size: 0.88rem;
    }
    .pme-catalog-card-count {
        font-size: 0.75rem;
    }
}
@media (min-width: 1024px) {
    .pme-catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (max-width: 767px) {
    .pme-body--landing .pme-layout-main--full > .pme-breadcrumb {
        padding: 10px 0 0;
    }
    .pme-catalog-landing {
        padding-top: 10px;
        padding-bottom: 32px;
    }
    .pme-catalog-landing-head {
        margin-bottom: 14px;
    }
    .pme-catalog-landing-head h1 {
        font-size: 1.35rem;
        margin-bottom: 6px;
    }
    .pme-catalog-landing-lead {
        font-size: 0.875rem;
        line-height: 1.45;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pme-catalog-card,
    .pme-catalog-card-img {
        transition-duration: 0.01ms !important;
    }
    .pme-catalog-card:hover {
        transform: none;
    }
    .pme-catalog-card:hover .pme-catalog-card-img {
        transform: none;
    }
}


/* ===== Pagination ===== */
.pme-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 32px 0;
}
.pme-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 14px;
    color: var(--pme-text);
    background: var(--pme-bg);
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s;
}
.pme-pagination a:hover {
    border-color: var(--pme-brand);
    color: var(--pme-brand);
    text-decoration: none;
}
.pme-pagination a.is-active {
    background: var(--pme-brand);
    color: #fff;
    border-color: var(--pme-brand);
}

/* ===== Category load more ===== */
.pme-load-more-wrap {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.pme-load-more-status {
    margin: 0;
    font-size: 0.95rem;
}
.pme-load-more-btn[disabled] {
    opacity: 0.72;
    cursor: wait;
}


/* ===== Product detail ===== */
.pme-product {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .pme-product { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.pme-product-hero {
    display: block;
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius-lg);
    overflow: hidden;
    background: var(--pme-bg);
}
button.pme-product-hero {
    appearance: none;
    margin: 0;
    padding: 0;
    width: 100%;
    border: 1px solid var(--pme-border);
    cursor: zoom-in;
    text-align: center;
    font: inherit;
    color: inherit;
    position: relative;
}
button.pme-product-hero:focus-visible {
    outline: 3px solid rgba(0, 122, 106, 0.35);
    outline-offset: 2px;
}
.pme-product-zoom-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
    color: var(--pme-text);
    pointer-events: none;
}
.pme-product-hero--zoom:hover .pme-product-zoom-badge {
    color: var(--pme-brand);
}
.pme-product-hero img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 24px; }

.pme-product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.pme-product-thumb {
    display: block;
    width: 64px;
    height: 64px;
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    background-color: var(--pme-bg-alt);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: border-color 0.15s;
}
button.pme-product-thumb {
    appearance: none;
    padding: 0;
    margin: 0;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}
button.pme-product-thumb:focus-visible {
    outline: 2px solid var(--pme-brand);
    outline-offset: 2px;
}
.pme-product-thumb-zoom {
    position: absolute;
    right: 2px;
    bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pme-text-soft);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}
button.pme-product-thumb:hover .pme-product-thumb-zoom {
    color: var(--pme-brand);
}
.pme-product-thumb:hover { border-color: var(--pme-brand); }

.pme-product-noimg {
    background: var(--pme-bg-alt);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pme-text-muted);
    border-radius: var(--pme-radius-lg);
}

/* Lightbox — zväčnený obrázok na stránke */
html.pme-lightbox-open {
    overflow: hidden;
}
.pme-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
}
.pme-lightbox[hidden] {
    display: none !important;
}
.pme-lightbox-scrim {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(17, 17, 20, 0.78);
    cursor: zoom-out;
}
.pme-lightbox-frame {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1320px);
    max-height: 90vh;
    margin: auto;
}
.pme-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--pme-text);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.pme-lightbox-nav:hover {
    background: var(--pme-brand);
    color: #fff;
}
.pme-lightbox-nav:focus-visible {
    outline: 2px solid var(--pme-brand);
    outline-offset: 3px;
}
.pme-lightbox-nav[hidden] {
    display: none !important;
}
.pme-lightbox-nav--prev {
    left: max(-8px, env(safe-area-inset-left));
}
.pme-lightbox-nav--next {
    right: max(-8px, env(safe-area-inset-right));
}
@media (max-width: 520px) {
    .pme-lightbox-nav {
        width: 42px;
        height: 42px;
    }
    .pme-lightbox-nav--prev {
        left: 4px;
    }
    .pme-lightbox-nav--next {
        right: 4px;
    }
}
.pme-lightbox-img {
    display: block;
    max-width: min(92vw, 1280px);
    max-height: min(86vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: var(--pme-radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.pme-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--pme-bg);
    color: var(--pme-text);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.pme-lightbox-close:hover {
    background: var(--pme-brand);
    color: #fff;
}
@media (max-width: 520px) {
    .pme-lightbox-close {
        top: 8px;
        right: 8px;
    }
}

.pme-product-title { font-size: 1.7em; margin-bottom: 6px; }
.pme-product-meta { color: var(--pme-text-muted); font-size: 0.95em; margin-bottom: 16px; }
.pme-product-short { font-size: 1.1em; color: var(--pme-text); margin-bottom: 16px; }
.pme-product-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--pme-border-soft); }
.pme-product-section:first-child { border-top: 0; padding-top: 0; }
.pme-product-section-label { font-weight: 600; margin-bottom: 8px; }

.pme-product-price { margin-bottom: 12px; }
.pme-product-price-muted { color: var(--pme-text-muted); font-size: 1.1em; }

.pme-product-section--buy {
    border: 1px solid var(--pme-border-soft);
    border-radius: var(--pme-radius-lg);
    padding: 18px 18px 16px;
    margin-top: 28px;
    background: linear-gradient(180deg, var(--pme-bg-alt) 0%, var(--pme-bg) 100%);
}
.pme-buy-head {
    margin-bottom: 14px;
}
.pme-product-price-hero {
    font-size: clamp(1.45rem, 3.5vw, 1.95rem);
    font-weight: 600;
    color: var(--pme-text);
    letter-spacing: -0.03em;
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0;
    row-gap: 4px;
}
.pme-product-price-num {
    font-variant-numeric: tabular-nums;
}
.pme-product-price-range {
    font-variant-numeric: tabular-nums;
}
.pme-product-price-curr {
    font-weight: 600;
    font-size: 0.55em;
    letter-spacing: 0.02em;
    color: var(--pme-text-soft);
    /* Medzera medzi číslom (veľké) a € — suffix má malý font, obyčajná medzera v texte takmer zmizne */
    margin-left: 0.4rem;
}
/* Druhý riadok: netto (bez DPH) — menšia, sekundárna. */
.pme-product-price-net-row {
    flex-basis: 100%;
    margin-top: 6px;
    font-weight: 400;
    font-size: clamp(0.92rem, 2.25vw, 1.18rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--pme-text-muted);
}
.pme-product-price-net-row .pme-product-price-num,
.pme-product-price-net-row .pme-product-price-range {
    font-weight: 400;
}
.pme-product-price-curr-ex {
    font-weight: 400;
    font-size: 0.88em;
    letter-spacing: 0.02em;
    color: var(--pme-text-soft);
    margin-left: 2px;
}
/* Spätná kompatibilita starších tried */
.pme-product-price-gross-row {
    flex-basis: 100%;
    margin-top: 6px;
    font-weight: 400;
    font-size: clamp(0.92rem, 2.25vw, 1.18rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--pme-text-muted);
}
.pme-product-price-curr-inc {
    font-weight: 400;
    font-size: 0.88em;
    letter-spacing: 0.02em;
    color: var(--pme-text-soft);
    margin-left: 2px;
}
.pme-price-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.25;
    vertical-align: top;
}
.pme-checkout-line-meta .pme-price-stack,
.pme-cart-fee-policy .pme-price-stack {
    align-items: flex-start;
    display: inline-flex;
}
.pme-cart-num .pme-price-stack,
.pme-variant-table .pme-price-stack {
    align-items: flex-end;
}
.pme-price-primary {
    font-weight: 600;
    color: var(--pme-text);
    font-variant-numeric: tabular-nums;
}
.pme-price-secondary {
    font-weight: 400;
    font-size: 0.82em;
    color: var(--pme-text-muted);
    font-variant-numeric: tabular-nums;
}
.pme-product-price-variant-hint {
    flex-basis: 100%;
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pme-text-muted);
    letter-spacing: 0;
}
.pme-product-price-sub {
    flex-basis: 100%;
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--pme-text-muted);
    letter-spacing: 0;
}
/* Vnútri price-hero dedí veľký font — reset na veľkosť ako .pme-product-short */
.pme-product-price-hero .pme-product-color-stock {
    flex-basis: 100%;
    width: 100%;
    margin: 10px 0 0;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.4;
    color: var(--pme-text-muted);
}
.pme-product-price-hero .pme-product-color-stock strong {
    font-weight: 600;
}
.pme-section .pme-add-cart {
    margin-top: 0;
}
.pme-btn-add-cart {
    margin-top: 4px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 1.05rem;
}


/* Color swatches – product detail (náhľad ako na midocean – kruh + foto výrobku v danej farbe) */
.pme-product-section-label--color {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.pme-color-heading-swatch {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--pme-border);
    box-shadow: var(--pme-shadow);
    background: var(--pme-bg-alt);
}
.pme-color-heading-swatch.pme-color-swatch--transparent,
.pme-color-heading-swatch.pme-color-swatch--multi {
    background: var(--pme-bg);
}
.pme-product-section-label-text {
    flex: 1 1 180px;
    min-width: 0;
}

.pme-color-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pme-color.pme-color--swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--pme-border);
    background: var(--pme-bg-alt);
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.pme-color.pme-color--swatch:hover {
    border-color: var(--pme-brand);
    box-shadow: 0 0 0 2px rgba(0, 122, 106, 0.15);
}
.pme-color.pme-color--swatch:focus-visible {
    outline: 2px solid var(--pme-brand);
    outline-offset: 3px;
}
.pme-color.pme-color--swatch.is-active {
    border-color: var(--pme-brand);
    box-shadow: 0 0 0 2px rgba(0, 122, 106, 0.22);
}
.pme-color-swatch-solid {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.pme-color-swatch--transparent {
    background: repeating-conic-gradient(#e0e0e0 0% 25%, #fff 0% 50%) 50% / 10px 10px !important;
}
.pme-color-swatch--multi {
    background: linear-gradient(135deg, #e53935 0%, #fbc02d 28%, #43a047 56%, #1e88e5 100%) !important;
}
.pme-color-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    background: rgba(0, 0, 0, 0.2);
}


/* Properties table */
.pme-prop-table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.pme-prop-table td { padding: 6px 0; vertical-align: top; }
.pme-prop-table td:first-child { color: var(--pme-text-muted); width: 160px; }


/* Variants table */
.pme-table-wrap { overflow-x: auto; }
.pme-variant-table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
.pme-variant-table th, .pme-variant-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--pme-border-soft);
}
.pme-variant-table th { background: var(--pme-bg-alt); font-weight: 600; color: var(--pme-text-soft); }
.pme-variant-table .pme-variant-sku { font-weight: 600; }
.pme-variant-cart-col {
    white-space: nowrap;
    min-width: 168px;
}
.pme-variant-cart-cell {
    vertical-align: middle;
    white-space: nowrap;
}
.pme-variant-add-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin: 0;
}
.pme-variant-qty {
    width: 4.25rem;
    max-width: 4.25rem;
    margin: 0;
    padding: 6px 8px;
    text-align: center;
}
.pme-btn-sm {
    padding: 7px 12px;
    font-size: 0.88rem;
    line-height: 1.2;
    white-space: nowrap;
}
.pme-variant-add-btn {
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .pme-variant-add-form {
        flex-wrap: wrap;
        gap: 6px;
    }
    .pme-variant-cart-col {
        min-width: 0;
    }
}
.pme-stock-ok { color: #0a7d2c; font-weight: 600; }
.pme-stock-out { color: #b30000; }
.pme-color-heading-swatch--sm {
    width: 20px;
    height: 20px;
    border-width: 1px;
    box-shadow: none;
}
.pme-variant-color-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}
.pme-variant-color-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    color: inherit;
    text-decoration: none;
    border-radius: var(--pme-radius);
    padding: 2px 4px;
    margin: -2px -4px;
    transition: background 0.15s ease, color 0.15s ease;
}
.pme-variant-color-link:hover {
    background: rgba(0, 122, 106, 0.08);
    color: var(--pme-brand);
}
.pme-variant-color-link.is-active {
    font-weight: 600;
    color: var(--pme-brand);
    cursor: default;
}
.pme-variant-color-link.is-active:hover {
    background: transparent;
    color: var(--pme-brand);
}
.pme-variant-color-link--static {
    cursor: default;
}
.pme-variant-table tbody tr.is-pme-color-active {
    background: rgba(0, 122, 106, 0.04);
}
.pme-variant-table tbody tr.is-pme-sku-active {
    outline: 2px solid var(--pme-brand);
    outline-offset: -2px;
    background: rgba(0, 122, 106, 0.06);
}

.pme-field-hint {
    margin: 4px 0 10px;
    font-size: 0.88em;
    line-height: 1.45;
}
.pme-product-variant-summary {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--pme-radius);
    background: var(--pme-bg-alt);
    border: 1px solid var(--pme-border-soft);
    font-size: 0.92em;
    line-height: 1.5;
}
.pme-product-variant-summary-inner strong {
    font-weight: 600;
    color: var(--pme-text-soft);
    margin-right: 0.35em;
}


/* Print options */
.pme-print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.pme-print-card {
    background: var(--pme-bg-alt);
    border: 1px solid var(--pme-border-soft);
    border-radius: var(--pme-radius);
    padding: 16px;
}
.pme-print-card h3 { font-size: 1em; margin-bottom: 4px; }
.pme-print-meta { font-size: 0.85em; margin-bottom: 8px; }
.pme-print-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 4px; margin: 8px 0; }
.pme-print-techs { font-size: 0.85em; padding-left: 18px; margin: 0; }


/* Popis pod galériou (ľavý stĺpec) */
.pme-product-desc--gallery {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--pme-border-soft);
}
.pme-product-desc--gallery .pme-product-desc-title {
    font-size: 1.12rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--pme-text);
}
.pme-product-desc--gallery .pme-product-desc-body {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--pme-text-soft);
}


/* Product description (full-width blocks nižšie na stránke – ak sa ešte používajú) */
.pme-product-desc { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--pme-border-soft); }
.pme-product-variants { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--pme-border-soft); }
.pme-variant-stock-details {
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    background: var(--pme-bg-soft);
    overflow: hidden;
}
.pme-variant-stock-summary {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--pme-text);
    background: var(--pme-bg-soft);
    user-select: none;
}
.pme-variant-stock-details[open] .pme-variant-stock-summary {
    border-bottom: 1px solid var(--pme-border-soft);
    background: var(--pme-bg-alt);
}
.pme-variant-stock-summary::-webkit-details-marker { display: none; }
.pme-variant-stock-summary-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.98rem;
}
.pme-variant-stock-summary-meta {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--pme-text-soft);
}
.pme-variant-stock-summary-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--pme-text-soft);
    border-bottom: 2px solid var(--pme-text-soft);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-left: 4px;
}
.pme-variant-stock-details[open] .pme-variant-stock-summary-chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.pme-variant-stock-details .pme-table-wrap {
    padding: 0 12px 12px;
    overflow-x: auto;
}
.pme-product-print { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--pme-border-soft); }


/* Certifikáty / dokumenty (accordion ako midocean) */
.pme-product-section--docs {
    margin-top: 12px;
}
.pme-doc-accordion {
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    background: var(--pme-bg-soft);
    overflow: hidden;
}
.pme-doc-accordion-summary {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--pme-text);
    background: var(--pme-bg-soft);
    border-bottom: 1px solid transparent;
    user-select: none;
}
.pme-doc-accordion[open] .pme-doc-accordion-summary {
    border-bottom-color: var(--pme-border-soft);
    background: var(--pme-bg-alt);
}
.pme-doc-accordion-summary::-webkit-details-marker { display: none; }
.pme-doc-accordion-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.98rem;
}
.pme-doc-accordion-meta {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--pme-text-muted);
}
.pme-doc-accordion-chevron {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--pme-text-soft);
    border-bottom: 2px solid var(--pme-text-soft);
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s ease;
}
.pme-doc-accordion[open] .pme-doc-accordion-chevron {
    transform: rotate(225deg);
    margin-top: 4px;
}
.pme-doc-list {
    list-style: none;
    margin: 0;
    padding: 8px 8px 12px;
    background: var(--pme-bg);
}
.pme-doc-list li {
    margin: 0;
    padding: 0;
}
.pme-doc-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--pme-radius);
    color: var(--pme-text);
    text-decoration: none;
    font-size: 0.93rem;
    line-height: 1.45;
    transition: background 0.15s;
}
.pme-doc-link:hover {
    background: var(--pme-bg-soft);
    text-decoration: none;
    color: var(--pme-brand);
}
.pme-doc-link-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--pme-text-soft);
}
.pme-doc-link:hover .pme-doc-link-icon {
    color: var(--pme-brand);
}
.pme-doc-link-text {
    flex: 1;
    min-width: 0;
    border-bottom: 1px solid var(--pme-border-soft);
    padding-bottom: 2px;
}
.pme-doc-list li:last-child .pme-doc-link-text {
    border-bottom: none;
}


/* ===== Search form (samostatná) ===== */
.pme-search-form {
    display: flex;
    gap: 8px;
    margin: 16px 0 24px;
    max-width: 600px;
}
.pme-search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    font: inherit;
}
.pme-search-form input:focus { outline: none; border-color: var(--pme-brand); }


/* ===== Static page ===== */
.pme-static-page { max-width: 760px; }
.pme-static-page--contact,
.pme-static-page--potlac { max-width: var(--pme-container); }
.pme-potlac-content h3 {
    margin-top: 1.35em;
    margin-bottom: 0.5em;
    font-size: 1.05rem;
    font-weight: 600;
}
.pme-potlac-content h3 a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pme-potlac-content h3 a:hover {
    color: var(--pme-brand);
}
.pme-potlac-cta-wrap {
    margin: 1.5rem 0 0;
}
.pme-potlac-faq {
    margin: 0;
}
.pme-potlac-faq dt {
    font-weight: 600;
    margin-top: 1.15rem;
    color: var(--pme-text);
}
.pme-potlac-faq dt:first-child { margin-top: 0; }
.pme-potlac-faq dd {
    margin: 0.35rem 0 0;
    padding: 0;
    color: var(--pme-text-soft);
    line-height: 1.65;
}
.pme-static-content h2 { margin-top: 1.5em; }
.pme-static-content h3 {
    margin-top: 1.25em;
    margin-bottom: 0.45em;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pme-text);
}
.pme-static-content .pme-static-podmienky h2,
.pme-static-content .pme-static-podmienky h3,
.pme-static-podmienky .pme-vop-anchor {
    scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}
.pme-static-podmienky .pme-vop-jumps {
    margin: 0.15em 0 0.2em;
    font-size: 0.92rem;
}
.pme-static-podmienky .pme-vop-anchor {
    display: block;
    height: 0;
}
.pme-static-content p { line-height: 1.7; }
.pme-static-content ul.pme-static-list {
    margin: 0 0 1em;
    padding-left: 1.35em;
    line-height: 1.7;
}

/* Kontakt (trojstĺpec ako Tricka.sk, dizajn Predmety.sk) */
.pme-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px 40px;
    margin-top: 8px;
}
@media (min-width: 900px) {
    .pme-contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pme-contact-block + .pme-contact-block { margin-top: 28px; }
.pme-static-content .pme-contact-grid h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pme-text);
}
.pme-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pme-contact-list li {
    margin: 0 0 8px;
    line-height: 1.55;
    color: var(--pme-text-soft);
}
.pme-contact-list a {
    font-weight: 500;
}
.pme-contact-label {
    color: var(--pme-brand);
    font-weight: 600;
    margin-right: 4px;
}
.pme-contact-muted { color: var(--pme-text-muted); font-size: 0.95em; }
.pme-contact-operator {
    margin: 0;
    line-height: 1.65;
    color: var(--pme-text-soft);
}

/* Kontaktný formulár pod mriežkou */
.pme-contact-form-wrap {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--pme-border-soft);
    max-width: 640px;
    scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}
.pme-contact-form-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
}
.pme-contact-form-intro {
    margin: 0 0 20px;
    line-height: 1.65;
    color: var(--pme-text-soft);
}
.pme-contact-form-actions {
    margin-top: 8px;
}
.pme-contact-flash {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: var(--pme-radius);
    border: 1px solid var(--pme-border);
}
.pme-contact-flash--ok {
    background: rgba(34, 120, 55, 0.09);
    border-color: rgba(34, 120, 55, 0.35);
    color: var(--pme-text);
}
.pme-contact-flash--err {
    background: rgba(0, 122, 106, 0.06);
    border-color: rgba(0, 122, 106, 0.25);
    color: var(--pme-text);
}
.pme-req {
    color: var(--pme-brand);
    font-weight: 600;
}

/* ===== Footer ===== */
.pme-footer {
    background: var(--pme-text);
    color: #cbcbcb;
    padding-top: 48px;
    margin-top: 60px;
}
.pme-footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 28px 24px;
    padding-bottom: 32px;
    min-width: 0;
}
.pme-footer-col {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.pme-footer-col h4 { color: #fff; font-size: 1em; margin-bottom: 12px; }
.pme-footer-col ul { list-style: none; padding: 0; margin: 0; }
.pme-footer-col li {
    margin: 8px 0;
    line-height: 1.4;
}
.pme-footer-col a {
    color: #cbcbcb;
    display: inline;
    line-height: 1.45;
}
.pme-footer-col a:hover { color: #fff; text-decoration: none; }
.pme-footer-tagline {
    color: #999;
    font-size: 0.9em;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    .pme-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pme-footer-col li {
        margin: 10px 0;
    }
}

.pme-footer-bottom {
    border-top: 1px solid #333;
    padding: 16px 0;
    color: #888;
    font-size: 0.85em;
}
.pme-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}
.pme-footer-bottom-inner span {
    overflow-wrap: anywhere;
}
.pme-dev-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--pme-brand);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.05em;
}


/* ===== Utilities ===== */
.pme-muted { color: var(--pme-text-muted); }
.pme-dev-banner {
    background: #fff8dc;
    border: 1px solid #f4d03f;
    border-radius: var(--pme-radius);
    padding: 16px 20px;
    color: #6e5a0a;
}
/* ===== Košík & checkout (B2B) ===== */
.pme-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.pme-flash {
    padding: 14px 18px;
    border-radius: var(--pme-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--pme-border);
}
.pme-flash-info {
    background: #eff8ff;
    border-left-color: #246ebd;
}
.pme-flash-success {
    background: #eefcf0;
    border-left-color: #218838;
}
.pme-flash-error {
    background: #fff5f5;
    border-left-color: var(--pme-brand);
}
.pme-cart-meta { font-size: 0.85em; margin-top: 4px; }
.pme-cart-product-cell { min-width: 220px; vertical-align: top; }
.pme-cart-product-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.pme-cart-thumb-link {
    flex: 0 0 auto;
    display: block;
    border-radius: var(--pme-radius);
    overflow: hidden;
    border: 1px solid var(--pme-border-soft);
    background: var(--pme-bg-soft);
    text-decoration: none;
}
.pme-cart-thumb-link:hover { opacity: 0.92; }
.pme-cart-thumb-link--empty {
    cursor: pointer;
    opacity: 0.85;
}
.pme-cart-thumb {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.pme-cart-thumb-placeholder {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    line-height: 1.15;
    color: var(--pme-text-soft);
    text-align: center;
    padding: 4px;
}
.pme-cart-product-text { min-width: 0; }
.pme-cart-product-title {
    color: inherit;
    text-decoration: none;
}
.pme-cart-product-title:hover {
    color: var(--pme-brand);
    text-decoration: underline;
}
.pme-cart-line-note {
    font-size: 0.88em;
    margin-top: 8px;
    color: var(--pme-text-soft);
}
.pme-cart-line-note-edit {
    margin-top: 10px;
    max-width: min(100%, 440px);
}
.pme-cart-note-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pme-text-muted);
    margin-bottom: 6px;
}
.pme-cart-line-note-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    font: inherit;
    font-size: 0.86rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 48px;
}
.pme-cart-line-note-input:focus {
    outline: none;
    border-color: var(--pme-brand);
    box-shadow: 0 0 0 3px rgba(0, 122, 106, 0.12);
}
.pme-cart-qty-input {
    width: 84px;
    padding: 8px 10px;
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    font: inherit;
}
.pme-btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--pme-brand);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}
.pme-btn-link:hover { color: var(--pme-brand-dark); }
.pme-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}
.pme-cart-hint { margin-top: 16px; font-size: 0.92em; }
.pme-cart-fee-policy {
    margin-bottom: 14px;
    font-size: 0.92em;
    line-height: 1.45;
}
.pme-cart-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.pme-variant-table.pme-cart-table td.pme-cart-num { font-weight: 500; }
.pme-variant-table.pme-cart-table td:first-child.pme-cart-num { font-weight: 500; }
.pme-cart-row-fee td {
    background: var(--pme-bg-soft);
    vertical-align: top;
}
.pme-cart-fee-note {
    font-size: 0.88em;
    margin-top: 8px;
    font-weight: 400;
    line-height: 1.45;
}
.pme-cart-tfoot-sub td,
.pme-cart-tfoot-grand td {
    border-top: 1px solid var(--pme-border-soft);
    padding-top: 12px;
    padding-bottom: 12px;
}
.pme-cart-tfoot-label {
    text-align: right;
    color: var(--pme-text-soft);
}
.pme-variant-table.pme-cart-table tfoot td:first-child {
    font-weight: 500;
}
.pme-cart-tfoot-grand td:first-child {
    font-weight: 600;
}
.pme-cart-tfoot-grand td {
    font-weight: 600;
    border-top-color: var(--pme-border);
}
.pme-cart-tfoot-grand .pme-cart-tfoot-label {
    color: inherit;
}
.pme-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
    opacity: 0;
}
.pme-checkout { max-width: 760px; }
.pme-checkout-thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.pme-checkout-summary {
    margin-bottom: 28px;
    padding: 20px;
    background: var(--pme-bg-soft);
    border: 1px solid var(--pme-border-soft);
    border-radius: var(--pme-radius);
}
.pme-checkout-lines {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
}
.pme-checkout-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--pme-border-soft);
}
.pme-checkout-line:last-child { border-bottom: 0; }
.pme-checkout-thumb-link {
    flex: 0 0 auto;
    display: block;
    border-radius: var(--pme-radius);
    overflow: hidden;
    border: 1px solid var(--pme-border-soft);
    background: #fff;
    text-decoration: none;
}
.pme-checkout-thumb-link:hover { opacity: 0.92; }
.pme-checkout-thumb-link--empty {
    cursor: pointer;
    opacity: 0.85;
}
.pme-checkout-thumb {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.pme-checkout-thumb-placeholder {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    line-height: 1.15;
    color: var(--pme-text-soft);
    text-align: center;
    padding: 4px;
}
.pme-checkout-line-main { flex: 1; min-width: 0; }
.pme-checkout-line-title {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}
.pme-checkout-line-title:hover {
    color: var(--pme-brand);
    text-decoration: underline;
}
.pme-checkout-line-meta {
    font-size: 0.9em;
    color: var(--pme-text-soft);
    margin-top: 4px;
}
.pme-fieldset {
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.pme-fieldset legend {
    padding: 0 8px;
    font-weight: 600;
}
.pme-form-row { margin-bottom: 14px; }
.pme-form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.92em;
}
.pme-form-row input[type="text"],
.pme-form-row input[type="email"],
.pme-form-row input[type="number"],
.pme-form-row input[type="file"],
.pme-form-row textarea,
.pme-select {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    font: inherit;
}
.pme-textarea-sm { max-width: 100%; resize: vertical; min-height: 56px; }
.pme-input-qty { max-width: 120px; }
.pme-input-qty--compact {
    max-width: 4.5rem;
    width: 4.5rem;
    min-width: 0;
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
}
.pme-form-grid-2 {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
}
@media (max-width: 600px) {
    .pme-form-grid-2 { grid-template-columns: 1fr; max-width: 100%; }
}
.pme-checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    cursor: pointer;
}
.pme-checkbox-label input { margin-top: 4px; }
.pme-add-cart { margin-bottom: 12px; }
.pme-add-cart-row .pme-input-qty { margin-top: 0; }
.pme-add-cart-row--qty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 16px;
}
.pme-add-cart-row--qty label {
    flex: 0 0 auto;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pme-text);
}
.pme-add-cart-row--qty input.pme-input-qty--compact {
    width: 5.75rem;
    max-width: 5.75rem;
    min-height: 48px;
    box-sizing: border-box;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 10px 12px;
}
.pme-add-cart-alt {
    margin-top: 12px;
    font-size: 0.92em;
}
.pme-cc-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--pme-border);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
}
.pme-cc-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}
.pme-cc-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--pme-text-soft);
    text-align: left;
}
.pme-cc-text a {
    color: var(--pme-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pme-cc-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}
.pme-cc-actions .pme-cc-btn {
    flex: 1 1 0;
    min-width: 0;
    width: 33.333%;
    padding: 10px 6px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    border-radius: 10px;
}
.pme-cc-prefs {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid var(--pme-border-soft);
}
.pme-cc-prefs[hidden] { display: none; }
.pme-cc-check {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--pme-text);
}
@media (min-width: 768px) {
    .pme-cc-bar {
        border-radius: 0;
        padding: 16px 0;
    }
    .pme-cc-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px 20px;
    }
    .pme-cc-text {
        flex: 1 1 22rem;
        max-width: 46rem;
        font-size: 0.95rem;
    }
    .pme-cc-actions {
        flex: 0 0 auto;
        width: auto;
        gap: 10px;
    }
    .pme-cc-actions .pme-cc-btn {
        flex: 0 0 auto;
        width: auto;
        padding: 10px 18px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}
