/* =========================================================
   KuponyJanusza — szablon Modern 2026
   Aktywny tylko gdy <body class="tpl-modern">
   ========================================================= */

body.tpl-modern {
    --kolor-akcentu: #ff5a1f;
    --kolor-akcentu-hover: #e8470f;
    --kolor-goracy: #d92d20;
    --kolor-cieply1: #f79009;
    --kolor-cieply2: #fdb022;
    --kolor-zimny: #2e90fa;
    --kolor-zielony-sukces: #0f9d6e;
    --kolor-zielony-sukces-hover: #0b7f59;
    --kolor-czerwony-ostrzezenie: #d92d20;
    --kolor-pomaranczowy-przycisk: #ff5a1f;
    --kolor-pomaranczowy-przycisk-hover: #e8470f;

    --kolor-tla-strony: #f6f4ef;
    --kolor-tla-karty: #ffffff;
    --kolor-tla-neutralny: #f0ece5;
    --kolor-tla-obrazka: #ece7de;
    --kolor-obramowania: #e5dfd4;
    --kolor-obramowania-ciemny: #d3cbbc;
    --kolor-tekstu-glowny: #131a24;
    --kolor-tekstu-drugorzedny: #4d5a6b;
    --kolor-tekstu-wygaszony: #8b95a3;
    --kolor-bialy: #ffffff;

    font-family: 'Manrope', 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(255, 90, 31, .07), transparent 60%),
        radial-gradient(700px 380px at 10% 0%, rgba(46, 144, 250, .06), transparent 60%),
        var(--kolor-tla-strony);
    color: var(--kolor-tekstu-glowny);
    -webkit-font-smoothing: antialiased;
}
body.tpl-modern h1,
body.tpl-modern h2,
body.tpl-modern h3,
body.tpl-modern .logo-text,
body.tpl-modern .karta-oferty__tytul a {
    font-family: 'Sora', 'Manrope', sans-serif;
    letter-spacing: -.025em;
}
body.tpl-modern .page-center { max-width: 1280px; }
body.tpl-modern a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }

/* ---------- NAV ---------- */
body.tpl-modern .nav {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(9, 15, 26, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 14px 40px -26px rgba(0, 0, 0, .8);
}
body.tpl-modern .nav-content { min-height: 74px; }
body.tpl-modern .nav-logo .logo-text {
    color: #fff;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin-left: 4px;
}
body.tpl-modern .nav-logo .logo-icon {
    border-radius: 14px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7);
}
body.tpl-modern .nav-searchContainer { max-width: 520px; }
body.tpl-modern .search-form {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 4px 6px 4px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .2s ease, background-color .2s ease;
}
body.tpl-modern .search-form:focus-within {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 90, 31, .7);
}
body.tpl-modern .search-form .search-icon { color: #8ea3c2; }
body.tpl-modern .input--search,
body.tpl-modern .search-form input[type="search"],
body.tpl-modern .search-form input[type="text"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    padding: 10px 4px;
    font-size: .92rem;
}
body.tpl-modern .input--search::placeholder { color: #8ea3c2; }
body.tpl-modern .search-button { border-radius: 999px; background: var(--kolor-akcentu); color: #fff; border: 0; padding: 8px 16px; }
body.tpl-modern .nav-button {
    color: #c5d2e6;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 600;
}
body.tpl-modern .nav-button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
body.tpl-modern .nav-button--deals {
    background: rgba(255, 90, 31, .16);
    color: #ffb08a;
    border: 1px solid rgba(255, 90, 31, .3);
}
body.tpl-modern .nav-button--deals:hover { background: var(--kolor-akcentu); color: #fff; }
body.tpl-modern .nav-post-button .button-post {
    background: linear-gradient(135deg, #ff7a3c, var(--kolor-akcentu));
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 12px 26px -12px rgba(255, 90, 31, .9);
}
body.tpl-modern .button-login {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    padding: 9px 16px;
}
body.tpl-modern .button-login:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
body.tpl-modern #dark-mode-toggle {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .14);
    color: #c5d2e6;
}
body.tpl-modern .mobile-menu-trigger { color: #fff; border-color: rgba(255, 255, 255, .2); }

/* ---------- HERO / SUBNAV ---------- */
body.tpl-modern .subNav { background: transparent; }
body.tpl-modern .subNav-title-container {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 0 auto;
    padding: 62px 24px 56px;
    border: 0;
    border-radius: 0 0 34px 34px;
    text-align: center;
    background:
        radial-gradient(700px 360px at 85% -30%, rgba(255, 90, 31, .28), transparent 60%),
        radial-gradient(600px 360px at 8% 110%, rgba(46, 144, 250, .22), transparent 60%),
        linear-gradient(150deg, #080d17 0%, #0d182c 55%, #10233f 100%);
}
body.tpl-modern .subNav-title-container::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 25%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 25%, #000 20%, transparent 75%);
    opacity: .55;
}
body.tpl-modern .subNav-title-container h1 {
    color: #fff;
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.08;
    max-width: 900px;
    margin: 0 auto 12px;
}
body.tpl-modern .subNav-title-container h2 {
    color: #a6b8d4;
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 500;
}
body.tpl-modern .home-banners { padding-top: 0 !important; }
body.tpl-modern .subNav-sticky {
    top: 74px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--kolor-obramowania);
    box-shadow: 0 16px 38px -30px rgba(10, 25, 50, .45);
}
body.tpl-modern .subNavMenu-list { gap: 2px; }
body.tpl-modern .subNavMenu-link,
body.tpl-modern .kategorie-dropdown-trigger,
body.tpl-modern .filters-dropdown-trigger {
    border-bottom: 0;
    border-radius: 999px;
    padding: 10px 16px;
    margin: 9px 2px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--kolor-tekstu-drugorzedny);
}
body.tpl-modern .subNavMenu-link:hover,
body.tpl-modern .kategorie-dropdown-trigger:hover,
body.tpl-modern .filters-dropdown-trigger:hover {
    background: var(--kolor-tla-neutralny);
    color: var(--kolor-tekstu-glowny);
}
body.tpl-modern .subNavMenu-link--selected,
body.tpl-modern .kategorie-dropdown-trigger.subNavMenu-link--selected,
body.tpl-modern .filters-dropdown-trigger.subNavMenu-link--selected {
    background: var(--kolor-tekstu-glowny);
    color: #fff;
}
body.tpl-modern .kategorie-dropdown-content,
body.tpl-modern .filters-dropdown-content {
    border-radius: 16px;
    border: 1px solid var(--kolor-obramowania);
    box-shadow: 0 30px 60px -30px rgba(10, 25, 50, .4);
    margin-top: 2px;
}
body.tpl-modern .kategorie-dropdown-content a { border-radius: 9px; margin: 2px 6px; }

/* ---------- LISTING ---------- */
body.tpl-modern .page-content-container { padding-top: 30px; }
body.tpl-modern .glowny-uklad { display: block; margin-top: 0; }
body.tpl-modern .glowny-uklad__sidebar { display: none; }
body.tpl-modern .sorting-options {
    background: var(--kolor-tla-karty);
    border: 1px solid var(--kolor-obramowania);
    border-radius: 18px;
    padding: 10px 14px;
    margin-bottom: 18px;
    gap: 6px;
    box-shadow: 0 18px 40px -38px rgba(10, 25, 50, .5);
}
body.tpl-modern .sort-link {
    border-radius: 999px;
    padding: 7px 13px;
    font-weight: 600;
    color: var(--kolor-tekstu-drugorzedny);
}
body.tpl-modern .sort-link:hover { background: var(--kolor-tla-neutralny); color: var(--kolor-tekstu-glowny); }
body.tpl-modern .sort-link.active,
body.tpl-modern .sort-link[aria-current="true"] { background: var(--kolor-tekstu-glowny); color: #fff; }

body.tpl-modern .threadList,
body.tpl-modern .deals-thread,
body.tpl-modern .deals-grid {
    --tm-cols: 4;
    --tm-gap: 16px;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--tm-gap);
    width: 100%;
}
body.tpl-modern .threadList > .karta-oferty,
body.tpl-modern .deals-thread > .karta-oferty,
body.tpl-modern .deals-grid > .karta-oferty {
    flex: 0 0 calc((100% - (var(--tm-cols) - 1) * var(--tm-gap)) / var(--tm-cols));
    max-width: calc((100% - (var(--tm-cols) - 1) * var(--tm-gap)) / var(--tm-cols));
    width: auto;
}
body.tpl-modern .karta-oferty {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--kolor-tla-karty);
    border: 1px solid var(--kolor-obramowania);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 50px -40px rgba(10, 25, 50, .5);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
body.tpl-modern .karta-oferty:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 90, 31, .35);
    box-shadow: 0 34px 60px -34px rgba(10, 25, 50, .4);
}
body.tpl-modern .karta-oferty__lewa-kolumna {
    position: relative;
    width: 100%;
    min-width: 0;
    border-right: 0;
    border-bottom: 0;
    justify-content: flex-start;
}
body.tpl-modern .karta-oferty__obrazek-wrap {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--kolor-tla-obrazka);
}
body.tpl-modern .karta-oferty__obrazek,
body.tpl-modern .karta-oferty__obrazek-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
body.tpl-modern .karta-oferty:hover .karta-oferty__obrazek { transform: scale(1.055); }
body.tpl-modern .karta-oferty__badge-rabat {
    top: 14px; left: 14px;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 10px 22px -10px rgba(217, 45, 32, .9);
}
body.tpl-modern .karta-oferty__badge-hot {
    top: 14px; right: 14px;
    border-radius: 50%;
    width: 32px; height: 32px;
    display: grid; place-items: center;
}
body.tpl-modern .karta-oferty__glosowanie-pod-obrazkiem {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    margin: 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(9, 15, 26, .82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    gap: 5px;
}
body.tpl-modern .karta-oferty__glosowanie-pod-obrazkiem .vote-button {
    color: #c5d2e6;
    background: transparent;
    border-color: transparent;
}
body.tpl-modern .karta-oferty__glosowanie-pod-obrazkiem .vote-button:hover { color: #fff; background: rgba(255,255,255,.12); }
body.tpl-modern .karta-oferty__temperatura-licznik { color: #fff !important; font-weight: 800; font-size: .8rem; }
body.tpl-modern .karta-oferty__tresc {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
body.tpl-modern .karta-oferty__tytul { margin-bottom: 8px; }
body.tpl-modern .karta-oferty__tytul a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--kolor-tekstu-glowny);
}
body.tpl-modern .karta-oferty__tytul a:hover { color: var(--kolor-akcentu); }
body.tpl-modern .karta-oferty__cena { font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; }
body.tpl-modern .karta-oferty__cena--stara { font-size: .85rem; }
body.tpl-modern .karta-oferty__opis {
    color: var(--kolor-tekstu-drugorzedny);
    font-size: .82rem;
    line-height: 1.55;
    margin: 6px 0 12px;
    min-height: 3.1em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.tpl-modern .karta-oferty__tagi { margin-bottom: 10px !important; }
body.tpl-modern .karta-oferty__stopka-i-akcje {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--kolor-tla-neutralny);
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
}
body.tpl-modern .karta-oferty__meta {
    margin-right: 0;
    flex-wrap: wrap;
    gap: 6px 10px;
}
body.tpl-modern .karta-oferty__przyciski-akcji {
    width: 100%;
    min-height: 48px;
    align-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
body.tpl-modern .karta-oferty__sklep-dostawa-wrap {
    min-height: 58px;
    align-items: flex-start;
    flex-wrap: wrap;
}
body.tpl-modern .karta-oferty__przyciski-akcji .button,
body.tpl-modern .karta-oferty__przyciski-akcji .button-zobacz-okazje,
body.tpl-modern .karta-oferty__przyciski-akcji .button-coupon {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body.tpl-modern .karta-oferty__meta { font-size: .76rem; color: var(--kolor-tekstu-wygaszony); }
body.tpl-modern .karta-oferty__autor { gap: 7px; }
body.tpl-modern .karta-oferty__autor img { width: 26px; height: 26px; border-radius: 50%; }
body.tpl-modern .karta-oferty__przyciski-akcji { gap: 8px; }
body.tpl-modern .button-zobacz-okazje,
body.tpl-modern .karta-oferty__przyciski-akcji .button {
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 700;
    font-size: .82rem;
}
body.tpl-modern .button-zobacz-okazje {
    background: var(--kolor-tekstu-glowny);
    color: #fff;
    border: 0;
}
body.tpl-modern .button-zobacz-okazje:hover { background: var(--kolor-akcentu); color: #fff; }
body.tpl-modern .karta-oferty__udostepnij-btn {
    background: var(--kolor-tla-neutralny);
    border: 1px solid var(--kolor-obramowania);
    border-radius: 999px;
    color: var(--kolor-tekstu-drugorzedny);
}
body.tpl-modern .karta-oferty__udostepnij-btn:hover { color: var(--kolor-tekstu-glowny); }
body.tpl-modern .karta-oferty--wygasla { opacity: .67; }

/* Sidebar */
body.tpl-modern .widget-sidebar,
body.tpl-modern .glowny-uklad__sidebar > * {
    border-radius: 20px;
    border: 1px solid var(--kolor-obramowania);
    background: var(--kolor-tla-karty);
    box-shadow: 0 22px 50px -42px rgba(10, 25, 50, .5);
}
body.tpl-modern .widget-sidebar { padding: 20px; }
body.tpl-modern .glowny-uklad__sidebar { align-self: flex-start; position: sticky; top: 150px; }
body.tpl-modern .widget-sidebar__tytul {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    letter-spacing: -.02em;
    border-bottom-color: var(--kolor-tla-neutralny);
}
body.tpl-modern .widget-sidebar__tresc { color: var(--kolor-tekstu-drugorzedny); }
body.tpl-modern .widget-sidebar__kategorie-lista li a { border-radius: 10px; padding: 8px 10px; }
body.tpl-modern .widget-sidebar__kategorie-lista li a.active { background: var(--kolor-akcentu); }
body.tpl-modern .top-okazja-item__obrazek-wrap { border-radius: 10px; }

/* Paginacja */
body.tpl-modern .pagination,
body.tpl-modern .pagination-container { display: flex; justify-content: center; gap: 6px; margin: 28px 0; flex-wrap: wrap; }
body.tpl-modern .pagination a,
body.tpl-modern .pagination span,
body.tpl-modern .pagination-container a,
body.tpl-modern .pagination-container span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border-radius: 999px; border: 1px solid var(--kolor-obramowania);
    background: #fff; color: var(--kolor-tekstu-drugorzedny);
    font-weight: 700; text-decoration: none;
}
body.tpl-modern .pagination .current,
body.tpl-modern .pagination-container .current,
body.tpl-modern .pagination a:hover,
body.tpl-modern .pagination-container a:hover {
    background: var(--kolor-tekstu-glowny); color: #fff; border-color: var(--kolor-tekstu-glowny);
}

/* ---------- STRONA OKAZJI ---------- */
body.tpl-modern .deals-page { padding: 34px 0 10px; }
body.tpl-modern .deals-lead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 0 4px;
}
body.tpl-modern .deals-lead h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
body.tpl-modern .deals-lead p { color: var(--kolor-tekstu-drugorzedny); margin: 0; font-size: .95rem; max-width: 640px; }
body.tpl-modern .deals-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 34px;
}
body.tpl-modern .deals-stat {
    background: linear-gradient(160deg, #0a1220, #10233f);
    color: #fff;
    border-radius: 20px;
    padding: 22px 22px 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
}
body.tpl-modern .deals-stat::after {
    content: '';
    position: absolute;
    width: 120px; height: 120px;
    right: -40px; top: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 31, .35), transparent 70%);
}
body.tpl-modern .deals-stat .num { color: #fff; font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; }
body.tpl-modern .deals-stat .lbl { color: #9fb2ce; font-size: .78rem; margin-top: 2px; }
body.tpl-modern .deals-section { margin-bottom: 44px; }
body.tpl-modern .deals-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
body.tpl-modern .deals-section-head h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 0; }
body.tpl-modern .deals-section-head a { font-size: .82rem; font-weight: 700; color: var(--kolor-akcentu); text-decoration: none; }
body.tpl-modern .deals-section-head a:hover { text-decoration: underline; }
body.tpl-modern .deals-grid { width: 100%; }
body.tpl-modern .deals-grid .threadList { display: contents !important; }
body.tpl-modern .deals-empty {
    background: #fff;
    border: 1px dashed var(--kolor-obramowania-ciemny);
    border-radius: 20px;
    padding: 30px;
    color: var(--kolor-tekstu-drugorzedny);
}

/* ---------- FOOTER ---------- */
body.tpl-modern .site-footer-wrapper { margin-top: 50px; }
body.tpl-modern .site-footer {
    background: #080e18;
    color: #93a7c6;
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-radius: 34px 34px 0 0;
    padding: 42px 0 30px;
    text-align: center;
    font-size: .85rem;
}
body.tpl-modern .site-footer a { color: #cfdcf0; margin: 0 9px; }
body.tpl-modern .site-footer a:hover { color: #fff; }
body.tpl-modern .site-footer img { filter: brightness(1); }

/* ---------- MODALE / DROBNE ---------- */
body.tpl-modern .modal-content {
    border-radius: 22px !important;
    border: 1px solid var(--kolor-obramowania);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55) !important;
}
body.tpl-modern .button {
    border-radius: 999px;
    font-weight: 700;
}
body.tpl-modern .button-submit,
body.tpl-modern .button-post {
    background: var(--kolor-tekstu-glowny);
    color: #fff;
}
body.tpl-modern .button-submit:hover,
body.tpl-modern .button-post:hover { background: var(--kolor-akcentu); color: #fff; }
body.tpl-modern input,
body.tpl-modern textarea,
body.tpl-modern select {
    border-radius: 12px;
    border-color: var(--kolor-obramowania);
    font-family: inherit;
}
body.tpl-modern #cookieConsentBanner { border-radius: 18px 18px 0 0; }

/* ---------- ANIMACJE ---------- */
body.tpl-modern .tm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
body.tpl-modern .tm-reveal.tm-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    body.tpl-modern *, body.tpl-modern *::before, body.tpl-modern *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    body.tpl-modern .tm-reveal { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
    body.tpl-modern .threadList,
    body.tpl-modern .deals-grid { --tm-cols: 3; }
}
@media (max-width: 1024px) {
    body.tpl-modern .threadList,
    body.tpl-modern .deals-grid { --tm-cols: 2; }
    body.tpl-modern .subNav-sticky { top: 74px; }
    body.tpl-modern .subNav-title-container { padding: 44px 20px 40px; border-radius: 0 0 26px 26px; }
    body.tpl-modern .deals-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.tpl-modern .glowny-uklad__sidebar { display: none; }
}
@media (max-width: 760px) {
    body.tpl-modern .nav-content { flex-wrap: wrap; padding-bottom: 10px; row-gap: 8px; }
    body.tpl-modern .nav-left { flex: 1 1 100%; justify-content: flex-start; }
    body.tpl-modern .nav-center { order: 3; flex: 1 1 100%; padding: 0 2px; }
    body.tpl-modern .nav-searchContainer { max-width: none; width: 100%; }
    body.tpl-modern .subNav-sticky { position: static; }
    body.tpl-modern .subnav-app-link { display: none !important; }
    body.tpl-modern .threadList,
    body.tpl-modern .deals-grid { --tm-cols: 1; }
    body.tpl-modern .nav-content { min-height: 64px; }
    body.tpl-modern .subNav-title-container { padding: 32px 18px 30px; border-radius: 0 0 20px 20px; }
    body.tpl-modern .subNav-title-container h1 { font-size: 1.65rem; }
    body.tpl-modern .subNav-title-container h2 { font-size: .9rem; }
    body.tpl-modern .subNav-sticky { top: 64px; }
    body.tpl-modern .deals-lead { margin-bottom: 20px; }
    body.tpl-modern .deals-stats { gap: 10px; }
    body.tpl-modern .deals-stat { padding: 16px; border-radius: 16px; }
    body.tpl-modern .deals-stat .num { font-size: 1.4rem; }
    body.tpl-modern .page-content-container { padding-top: 18px; }
}

/* Tryb ciemny + Modern */
html.dark-mode body.tpl-modern {
    --kolor-tla-strony: #080d17;
    --kolor-tla-karty: #0f1828;
    --kolor-tla-neutralny: #162234;
    --kolor-tla-obrazka: #162234;
    --kolor-obramowania: #22324a;
    --kolor-obramowania-ciemny: #2c3f5e;
    --kolor-tekstu-glowny: #eef4ff;
    --kolor-tekstu-drugorzedny: #a8b8d2;
    --kolor-tekstu-wygaszony: #7d8fa9;
    background: radial-gradient(900px 420px at 85% -10%, rgba(255, 90, 31, .12), transparent 60%), #080d17;
}
html.dark-mode body.tpl-modern .subNav-sticky { background: rgba(9, 15, 26, .9); }
html.dark-mode body.tpl-modern .sort-link.active { background: #fff; color: #0b1220; }
html.dark-mode body.tpl-modern .button-zobacz-okazje { background: #fff; color: #0b1220; }
html.dark-mode body.tpl-modern .button-zobacz-okazje:hover { background: var(--kolor-akcentu); color: #fff; }
html.dark-mode body.tpl-modern .widget-sidebar,
html.dark-mode body.tpl-modern .sorting-options,
html.dark-mode body.tpl-modern .karta-oferty { background: var(--kolor-tla-karty); }

/* ---------- PŁYWAJĄCY PANEL FILTRÓW ---------- */
body.tpl-modern.tm-filters-open { overflow: hidden; }
body.tpl-modern .tm-filter-fab {
    position: fixed;
    right: 0;
    top: 50%;
    bottom: auto;
    z-index: 2100;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 15px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: #0b1220;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: -12px 20px 45px -18px rgba(0, 0, 0, .65);
    transform: translateY(-50%);
    transition: transform .2s ease, background-color .2s ease;
}
body.tpl-modern .tm-filter-fab span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.tpl-modern .tm-filter-fab:hover { transform: translateY(-50%) translateX(-3px); background: #111c31; }
body.tpl-modern .tm-filter-fab i { color: var(--kolor-akcentu); font-size: 1rem; }
body.tpl-modern .tm-filter-count {
    position: absolute;
    top: -7px;
    left: -7px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--kolor-akcentu);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
}
body.tpl-modern .tm-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 2900;
    background: rgba(5, 10, 20, .52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .25s ease;
}
body.tpl-modern .tm-filter-overlay[hidden] { display: none; }
body.tpl-modern.tm-filters-open .tm-filter-overlay { opacity: 1; }
body.tpl-modern .tm-filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3000;
    width: min(390px, 100vw);
    height: 100%;
    background: var(--kolor-tla-karty);
    color: var(--kolor-tekstu-glowny);
    border-left: 1px solid var(--kolor-obramowania);
    box-shadow: -30px 0 80px -40px rgba(0, 0, 0, .55);
    transform: translateX(104%);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}
body.tpl-modern.tm-filters-open .tm-filter-panel { transform: none; }
body.tpl-modern .tm-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 24px 18px;
    border-bottom: 1px solid var(--kolor-tla-neutralny);
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--kolor-tla-karty);
}
body.tpl-modern .tm-filter-eyebrow {
    display: block;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--kolor-akcentu);
    margin-bottom: 4px;
}
body.tpl-modern .tm-filter-head h3 { margin: 0; font-size: 1.35rem; }
body.tpl-modern .tm-filter-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--kolor-obramowania);
    background: var(--kolor-tla-neutralny);
    color: var(--kolor-tekstu-drugorzedny);
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
body.tpl-modern .tm-filter-close:hover { background: var(--kolor-tekstu-glowny); color: #fff; }
body.tpl-modern .tm-filter-form { display: flex; flex-direction: column; flex: 1; }
body.tpl-modern .tm-filter-section { padding: 18px 24px; border-bottom: 1px solid var(--kolor-tla-neutralny); }
body.tpl-modern .tm-filter-label {
    display: block;
    margin-bottom: 9px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--kolor-tekstu-wygaszony);
}
body.tpl-modern .tm-filter-form select,
body.tpl-modern .tm-filter-form input[type="number"] {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--kolor-obramowania);
    border-radius: 12px;
    background: var(--kolor-tla-strony);
    color: var(--kolor-tekstu-glowny);
    font-family: inherit;
    font-size: .9rem;
    outline: none;
}
body.tpl-modern .tm-filter-form select:focus,
body.tpl-modern .tm-filter-form input[type="number"]:focus { border-color: var(--kolor-akcentu); box-shadow: 0 0 0 3px rgba(255, 90, 31, .14); }
body.tpl-modern .tm-price-row { display: flex; align-items: center; gap: 10px; }
body.tpl-modern .tm-price-row > span { font-weight: 700; color: var(--kolor-tekstu-drugorzedny); }
body.tpl-modern .tm-price-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
body.tpl-modern .tm-price-chip {
    border: 1px solid var(--kolor-obramowania);
    background: var(--kolor-tla-neutralny);
    color: var(--kolor-tekstu-drugorzedny);
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
body.tpl-modern .tm-price-chip:hover,
body.tpl-modern .tm-price-chip.is-active { background: var(--kolor-akcentu); border-color: var(--kolor-akcentu); color: #fff; }
body.tpl-modern .tm-filter-toggles { display: flex; flex-direction: column; gap: 14px; }
body.tpl-modern .tm-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
body.tpl-modern .tm-toggle input { position: absolute; opacity: 0; pointer-events: none; }
body.tpl-modern .tm-toggle-ui {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: var(--kolor-obramowania-ciemny);
    position: relative;
    flex-shrink: 0;
    transition: background-color .2s ease;
}
body.tpl-modern .tm-toggle-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}
body.tpl-modern .tm-toggle input:checked + .tm-toggle-ui { background: var(--kolor-akcentu); }
body.tpl-modern .tm-toggle input:checked + .tm-toggle-ui::after { transform: translateX(20px); }
body.tpl-modern .tm-toggle-text { font-size: .9rem; font-weight: 600; color: var(--kolor-tekstu-glowny); display: inline-flex; align-items: center; gap: 8px; }
body.tpl-modern .tm-toggle-text i { color: var(--kolor-tekstu-wygaszony); width: 16px; text-align: center; }
body.tpl-modern .tm-filter-actions {
    display: flex;
    gap: 10px;
    padding: 18px 24px 24px;
    margin-top: auto;
    background: var(--kolor-tla-karty);
    position: sticky;
    bottom: 0;
    border-top: 1px solid var(--kolor-tla-neutralny);
}
body.tpl-modern .tm-filter-apply {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    background: linear-gradient(135deg, #ff7a3c, var(--kolor-akcentu));
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    box-shadow: 0 16px 30px -16px rgba(255, 90, 31, .85);
}
body.tpl-modern .tm-filter-apply:hover { filter: brightness(1.04); }
body.tpl-modern .tm-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid var(--kolor-obramowania);
    color: var(--kolor-tekstu-drugorzedny);
    font-weight: 700;
    font-size: .86rem;
    text-decoration: none;
}
body.tpl-modern .tm-filter-reset:hover { background: var(--kolor-tla-neutralny); color: var(--kolor-tekstu-glowny); }
@media (max-width: 560px) {
    body.tpl-modern .tm-filter-fab {
        right: 14px;
        left: auto;
        top: auto;
        bottom: 14px;
        flex-direction: row;
        padding: 11px 16px;
        font-size: .82rem;
        border-right: 1px solid rgba(255, 255, 255, .14);
        border-radius: 999px;
        transform: none;
    }
    body.tpl-modern .tm-filter-fab span { writing-mode: horizontal-tb; transform: none; }
    body.tpl-modern .tm-filter-fab:hover { transform: translateY(-2px); }
    body.tpl-modern .tm-filter-count { position: static; }
    body.tpl-modern .tm-filter-panel { width: 100vw; }
    body.tpl-modern .tm-filter-head { padding: 20px 18px 14px; }
    body.tpl-modern .tm-filter-section { padding: 15px 18px; }
    body.tpl-modern .tm-filter-actions { padding: 14px 18px 18px; }
}

/* ---------- PASEK „GORĄCE 24H” ---------- */
body.tpl-modern .tm-hot-strip {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(500px 180px at 90% -40%, rgba(255, 90, 31, .3), transparent 65%),
        linear-gradient(140deg, #080e18 0%, #0d182c 60%, #10233f 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 16px 20px 14px;
    margin-bottom: 18px;
    box-shadow: 0 26px 55px -40px rgba(10, 25, 50, .55);
}
body.tpl-modern .tm-hot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
body.tpl-modern .tm-hot-heading { display: flex; align-items: center; gap: 12px; }
body.tpl-modern .tm-hot-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ff7a3c, var(--kolor-akcentu));
    color: #fff;
    font-size: .95rem;
    box-shadow: 0 12px 26px -12px rgba(255, 90, 31, .85);
    flex-shrink: 0;
}
body.tpl-modern .tm-hot-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    letter-spacing: -.02em;
}
body.tpl-modern .tm-hot-heading p {
    margin: 2px 0 0;
    color: #93a7c6;
    font-size: .76rem;
}
body.tpl-modern .tm-hot-more {
    color: #ffb08a;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}
body.tpl-modern .tm-hot-more:hover { color: #fff; }
body.tpl-modern .tm-hot-viewport { position: relative; }
body.tpl-modern .tm-hot-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0 4px;
}
body.tpl-modern .tm-hot-track::-webkit-scrollbar { display: none; }
body.tpl-modern .tm-hot-card {
    flex: 0 0 248px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    text-decoration: none;
    scroll-snap-align: start;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
body.tpl-modern .tm-hot-card:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 90, 31, .45);
    transform: translateY(-2px);
}
body.tpl-modern .tm-hot-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #fff;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #aab8cc;
}
body.tpl-modern .tm-hot-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
body.tpl-modern .tm-hot-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body.tpl-modern .tm-hot-title {
    color: #eef4ff;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.tpl-modern .tm-hot-price { color: #ffb08a; font-size: .84rem; font-weight: 800; }
body.tpl-modern .tm-hot-price em { color: #8ea3c2; font-style: normal; font-weight: 500; font-size: .72rem; margin-left: 6px; }
body.tpl-modern .tm-hot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(8, 14, 24, .85);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease, background-color .2s ease;
}
body.tpl-modern .tm-hot-viewport:hover .tm-hot-nav { opacity: 1; }
body.tpl-modern .tm-hot-nav:hover { background: var(--kolor-akcentu); border-color: var(--kolor-akcentu); }
body.tpl-modern .tm-hot-prev { left: -6px; }
body.tpl-modern .tm-hot-next { right: -6px; }
@media (max-width: 760px) {
    body.tpl-modern .tm-hot-strip { padding: 13px 14px 11px; border-radius: 16px; }
    body.tpl-modern .tm-hot-heading p { display: none; }
    body.tpl-modern .tm-hot-card { flex-basis: 210px; }
    body.tpl-modern .tm-hot-nav { display: none; }
}


/* ---------- SPLIT CTA: KOD + DO OKAZJI ---------- */
body.tpl-modern .tm-split-cta {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--kolor-obramowania);
    background: var(--kolor-tla-neutralny);
}
body.tpl-modern .tm-split-code,
body.tpl-modern .tm-split-go {
    border: 0;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 11px;
    line-height: 1.2;
    transition: background-color .2s ease, color .2s ease;
}
body.tpl-modern .tm-split-code {
    flex: 0 0 50%;
    background: var(--kolor-tla-neutralny);
    color: var(--kolor-tekstu-glowny);
    border-right: 1px dashed var(--kolor-obramowania-ciemny);
    letter-spacing: .03em;
}
body.tpl-modern .tm-split-code span {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.tpl-modern .tm-split-code i { color: var(--kolor-akcentu); font-size: .82rem; }
body.tpl-modern .tm-split-go {
    flex: 1 1 auto;
    background: var(--kolor-tekstu-glowny);
    color: #fff;
    white-space: nowrap;
}
body.tpl-modern .tm-split-go i { font-size: .7rem; }
body.tpl-modern .tm-split-cta:hover .tm-split-code { background: var(--kolor-tla-karty); }
body.tpl-modern .tm-split-cta:hover .tm-split-go { background: var(--kolor-akcentu); }
body.tpl-modern .tm-split-cta.is-copied { pointer-events: none; }
body.tpl-modern .tm-split-cta.is-copied::after {
    content: '✓ Skopiowano';
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f9d6e;
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .02em;
}

/* ---------- CENA / DOSTAWA / SKLEP ---------- */
body.tpl-modern .karta-oferty__cena-i-sklep-wrap {
    display: block;
    margin-bottom: 4px;
}
body.tpl-modern .karta-oferty__cena-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px 10px;
}
body.tpl-modern .karta-oferty__dostawa-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}
body.tpl-modern .karta-oferty__omnibus {
    flex: 1 0 100%;
    margin-top: 0 !important;
}
body.tpl-modern .tm-card-shop-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    margin: 2px 0 8px;
}
body.tpl-modern .tm-card-shop-row .karta-oferty__sklep {
    justify-content: center;
    text-align: center;
    font-size: .78rem;
}
body.tpl-modern .tm-card-shop-row .oferta-free-delivery {
    justify-content: center;
}
