/* Header */
body .main-header {
    position: fixed;
    top: var(--shop-header-top, 0px);
    left: 0;
    right: 0;
    background: #fff;
    background-image: none;
    border-bottom: 1px solid var(--shop-line, #e4e5df);
    box-shadow: none;
}

body .header-home { border-bottom: 0; }

body .main-header .header-inner { min-height: 70px; gap: 28px; }

body .main-header .logo { display: inline-flex; align-items: center; flex-shrink: 0; }

body .main-header .logo img { width: 190px; height: auto; max-height: 44px; }

body .main-header .main-nav { gap: 22px; font-size: 14px; font-weight: 400; }

body .main-header .main-nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 70px;
    padding-block: 0;
    text-decoration: none;
    text-underline-offset: 7px;
    text-decoration-thickness: 1px;
}

body .main-header .main-nav > a:hover { text-decoration: underline; }

body .main-header .category-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 70px;
    padding-block: 0;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
}

body .main-header .category-menu > summary::-webkit-details-marker { display: none; }

body .main-header .category-menu > summary .icon { width: 14px; height: 14px; }

body .main-header .category-menu[open] > summary { text-decoration: underline; text-underline-offset: 7px; }

body .main-header .category-menu[open] > summary .icon { transform: rotate(180deg); }

body .main-header .header-actions { gap: 12px; }

body .main-header .header-actions :is(.search-toggle, .language > summary, .mobile-menu > summary) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--shop-ink, #242424);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

body .main-header .cart { min-height: 42px; gap: 7px; font-size: 14px; }

body .main-header .cart-count { font-size: 12px; font-weight: 600; }

body .main-header :is(button, summary, a):focus-visible { outline: 2px solid var(--main-color); outline-offset: 3px; }

body .main-header .language-panel { border: 1px solid var(--shop-line); border-radius: 0; box-shadow: none; }

body .main-header .language-panel a { min-height: 40px; font-size: 14px; }

body .main-header .mobile-panel { padding: 18px 24px 24px; border-top: 1px solid var(--shop-line); box-shadow: none; }

body .main-header .mobile-panel > a,
body .main-header .mobile-panel details > a { padding-block: 12px; font-size: 16px; line-height: 1.5; }

body .main-header .mobile-panel details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-block: 14px;
    list-style: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

body .main-header .mobile-panel details > summary::-webkit-details-marker { display: none; }

body .main-header .mobile-panel details > summary .icon { flex-shrink: 0; width: 16px; height: 16px; }

body .main-header .mobile-panel details[open] > summary .icon { transform: rotate(180deg); }

body .modern-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; padding-block: 36px; }

body .modern-footer-grid > * { min-width: 0; }

body .modern-footer-grid h2 { margin: 0 0 18px; font-size: 16px; font-weight: 600; line-height: 1.5; }

body .social-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 14px; }



@media (max-width: 1199px) {
body .main-header .main-nav { display: none; }

body .main-header .mobile-menu { display: block; }

body .main-header .header-inner { gap: 20px; }


}
@media (max-width: 767px) {
body .main-header .header-inner { min-height: 60px; gap: 12px; }

body .main-header .logo img { width: 145px; max-height: 36px; }

body .main-header .header-actions { gap: 3px; }

body .main-header .header-actions :is(.search-toggle, .language > summary, .mobile-menu > summary) { width: 36px; min-width: 36px; }

body .main-header .cart { gap: 3px; }

body .main-header .cart-total { display: none; }

body .modern-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 28px; }


}
@media (prefers-reduced-motion: reduce) {
body .main-header .category-menu > summary .icon,
body .main-header .mobile-panel details > summary .icon { transition: none; }


}
@media (max-width: 359px) {
body .main-header .logo img { width: 125px; }

body .main-header .header-inner { gap: 8px; }

body .main-header .header-actions { gap: 1px; }


}
.header-spacer { height: var(--shop-header-height, 71px); }

body .announcement > .announcement-inner { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 12px; padding: 0; min-height: 40px; }

.announcement-content { grid-column: 2; padding: 8px 0; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }

.announcement-content p { margin: 0; }

.announcement-inner > button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }

.announcement-inner > button:first-child { grid-column: 1; grid-row: 1; }

.announcement-inner > button:last-child { grid-column: 3; grid-row: 1; }

body .main-header .mobile-panel { max-height: calc(100dvh - var(--shop-header-top, 0px) - var(--shop-header-height, 71px)); }

html { scroll-padding-top: var(--shop-header-height, 71px); }


@media (max-width: 767px) {
.header-spacer { height: var(--shop-header-height, 61px); }

body .announcement > .announcement-inner { width: calc(100% - 16px); gap: 4px; }

body .announcement { font-size: 12px; }

 }
.announcement-inner > button:disabled { opacity: .4; cursor: default; }


body .main-header.checkout-header { position: static; }

/* Header - Scrolled state */
body .main-header { transition: box-shadow .2s ease; }
body .main-header.is-scrolled { box-shadow: 0 5px 24px #00000014; }

/* Header - Mega menu kategórií: hlavné kategórie vľavo, podkategórie ako dlaždice, tlačidlo kategórie a tri TOP produkty (klient 30. 10. 2026) */
body .main-header .mega-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(1320px, calc(100vw - 48px)); background: var(--shop-surface); border: 1px solid var(--shop-line); box-shadow: var(--shop-shadow-pop); }
body .main-header .mega-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: min(700px, calc(100dvh - var(--shop-header-height, 80px) - 70px)); }
body .main-header .mega-nav { overflow-y: auto; padding: 10px 0; background: var(--shop-paper); border-right: 1px solid var(--shop-line); }
body .main-header .mega-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 20px; color: var(--shop-ink); font-size: 14px; line-height: 1.4; text-decoration: none; }
body .main-header .mega-nav a .icon { flex: none; width: 14px; height: 14px; opacity: .35; }
body .main-header .mega-nav a.is-active { background: var(--shop-surface); color: var(--main-color); font-weight: 600; }
body .main-header .mega-nav a.is-active .icon { opacity: 1; }
body .main-header .mega-panel { min-width: 0; overflow-y: auto; padding: 24px 28px; }
body .main-header .mega-panel[hidden] { display: none; }
body .main-header .mega-heading { display: block; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--shop-line); color: var(--shop-ink); font-size: 22px; font-weight: 600; text-decoration: none; }
body .main-header .mega-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body .main-header .mega-links .catalog-category { min-height: 56px; padding: 10px 14px; font-size: 14px; }
body .main-header .mega-links .catalog-category img { width: 30px; height: 30px; flex-basis: 30px; }
body .main-header .mega-links .catalog-category .icon { flex: none; width: 14px; height: 14px; }
body .main-header .mega-show-all { margin-top: 16px; }
body .main-header .mega-products { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--shop-line); }
/* Štyri produkty v rade na stred, rovnaká medzera z oboch strán aj pri menšom počte (poznámka klienta 4. 11. 2026). */
body .main-header .mega-product-grid { display: flex; justify-content: center; gap: 16px; }
body .main-header .mega-product-grid > .product-item { flex: 0 1 calc((100% - 48px) / 4); min-width: 0; }
body .main-header .mega-product-label { display: block; margin-bottom: 8px; color: var(--main-color); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
body .main-header .mega-all { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: var(--shop-paper); border-top: 1px solid var(--shop-line); color: var(--shop-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
body .main-header .mega-all .icon { width: 14px; height: 14px; }

@media (max-width: 1399px) {
    body .main-header .mega-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Lišta aktívneho kupónu (legacy voucher-panel-top, poznámka klienta 5. 11. 2026). */
body .voucher-promotion { background: #d1e7dd; color: #0f5132; }
