/* DOR-JAN brand overrides — applied AFTER style.min.css.
   Aligns the template with the brand book palette where the
   default dark surfaces flipped to light. */

/* Constrain main content to header width so grids stop running
   too wide on large screens. Header uses 1376px; we match that. */
@media (min-width: 1280px) {
    .container { max-width: 1376px !important; }
    .entry-grid .container { max-width: 1376px !important; padding: 0 15px !important; }
}


/* Header / navbar — light surface with bottom border */
.header__nav {
    border-top: 1px solid #E8E8E8;
    border-bottom: 1px solid #E8E8E8;
}
.header__nav__list li a { color: #1A1A1A; }
.header__nav__list li a:hover { color: #F28100; }
.header__nav__socials a svg { fill: #1A1A1A; }
.header__nav__socials a:hover svg { fill: #F28100; }

/* Mobile slide-out menu — keep readable on light bg */
@media (max-width: 991px) {
    .header__nav { background: #FFFFFF; }
    .header__nav .btn--close svg { fill: #1A1A1A; }
}

/* Footer top links bar — light subtle bg */
.footer .footer-links a { color: #1A1A1A; }
.footer .footer-links a:hover { color: #F28100; }
.footer .footer-links .highlight {
    border-left: 1px solid #F28100;
    border-right: 1px solid #F28100;
}
.footer { background: #F5F5F5; }
.footer .footer-links { background: #FFFFFF; border: 1px solid #E8E8E8; }
.footer__copyright span { color: #6B6B6B; }
.footer__nav span,
.footer address { color: #1A1A1A; }
.footer .socials a svg { fill: #F28100; }
.footer .socials a:hover svg { fill: #1A1A1A; }

/* Buttons */
.btn-main { background: #F28100; color: #FFFFFF; }
.btn-main:hover, .btn-main:focus { background: #6B6B6B; color: #FFFFFF; }

/* Card add-to-basket button */
.card-bottom .btn-main { background: #F28100; }
.card-bottom .btn-main:hover { background: #6B6B6B; }

/* Newsletter — orange CTA on dark image bg */
.newsletter .form-field .btn-main { background: #F28100; }
.newsletter .form-field .btn-main:hover { background: #6B6B6B; }

/* Newsletter — clean responsive layout
   Fixes: button height mismatch, label readability, mobile alignment */
.newsletter__block {
    border-radius: 16px;
    overflow: hidden;
    padding: 56px 28px;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}
.newsletter .newsletter__form {
    width: 100%;
    max-width: 540px;
    margin-right: 0 !important;
    margin-left: auto;
}
.newsletter .global-title {
    font-size: clamp(2.4rem, 4vw, 4.4rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
}
.newsletter__block p {
    color: #FFFFFF !important;
    margin-bottom: 0;
}
.newsletter .form-field {
    display: flex !important;
    flex-direction: row;
    align-items: stretch !important;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 22px !important;
}
.newsletter .form-field .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    height: 56px !important;
    margin: 0 !important;
    border-radius: 10px;
    padding: 0 18px !important;
    font-size: 1.5rem !important;
    text-align: left !important;
    background: #FFFFFF !important;
    color: #1A1A1A !important;
    border: 1px solid transparent !important;
}
.newsletter .form-field .form-control:focus {
    border-color: #F28100 !important;
    outline: none;
}
.newsletter .form-field .btn-main {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    min-width: 180px;
    height: 56px !important;
    margin: 0 !important;
    border-radius: 10px;
    padding: 0 28px !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    white-space: nowrap;
}
.newsletter .checkbox {
    margin-top: 16px !important;
    align-items: flex-start;
}
.newsletter .checkbox__label {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 1.25rem !important;
    line-height: 1.7rem !important;
    padding: 1px 0 0 26px !important;
    width: 100% !important;
    max-width: 100% !important;
}
.newsletter .checkbox__label:before {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}
.newsletter .checkbox input:checked + .checkbox__label:before,
.newsletter .checkbox__input:checked + .checkbox__label:before {
    background: #F28100 !important;
    border-color: #F28100 !important;
}

/* Newsletter — mobile: stack input + button, tighten paddings */
@media (max-width: 767px) {
    .newsletter__block {
        padding: 40px 22px;
    }
    .newsletter .newsletter__form {
        max-width: 100%;
        margin-left: 0;
    }
    .newsletter .form-field {
        flex-direction: column;
        gap: 10px;
    }
    .newsletter .form-field .btn-main {
        width: 100% !important;
        min-width: 0;
    }
}

/* Body text → brand primary */
body, p, a, h1, h2, h3, h4, h5, h6 { color: #1A1A1A; }
a:focus, a:active { color: #F28100; }
a:hover { color: #F28100; }

/* Borders & subtle surfaces — light grey per palette */
.checkbox label:before { background-color: #FFFFFF; border: 1px solid #E8E8E8; }

/* Top promo strip — items left, language switch right */
.header__top {
    color: #1A1A1A;
    justify-content: space-between !important;
    align-items: center;
    gap: 20px;
}
.header__top__items {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}
.header__top__item {
    font-size: 1.45rem;
    line-height: 2rem;
}
.header__top__item img {
    width: 24px;
    height: auto;
    margin-right: 8px;
    /* Recolor monochrome SVG icons to brand orange #F28100 */
    filter: brightness(0) saturate(100%) invert(58%) sepia(82%) saturate(2541%) hue-rotate(2deg) brightness(99%) contrast(101%);
}
.header__top__items .header__top__item:last-child { margin-right: 0; }
@media (min-width: 768px) {
    .header__top__items .header__top__item { margin-right: 44px; }
}

/* Language switcher — segmented pill, brand orange active */
.header__lang {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E8E8E8;
    border-radius: 999px;
    background: #FFFFFF;
    padding: 2px;
    flex-shrink: 0;
}
.header__lang__btn {
    border: 0;
    background: transparent;
    color: #6B6B6B;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
    line-height: 1;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.header__lang__flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    display: block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    /* Override aside-icons filter / global img filters */
    filter: none !important;
}
.header__lang__btn:hover {
    color: #1A1A1A;
}
.header__lang__btn.is-active {
    background: #F28100;
    color: #FFFFFF;
}
.header__lang__btn.is-active:hover {
    color: #FFFFFF;
}

/* Promo labels — accent bg, white text */
.labels .label { background: #F28100; color: #FFFFFF; }

/* Header CTA — replaces "Poradnik | Moje konto" links */
.header__main__links a.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 10px 14px;
    margin: 0;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
}
.header__main__links a.header-cta:after { display: none !important; }
.header__main__links a.header-cta:hover {
    border-color: #F28100;
    box-shadow: 0 6px 18px rgba(242, 129, 0, 0.18);
    transform: translateY(-1px);
}
.header-cta__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(242, 129, 0, 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease;
}
.header__main__links a.header-cta:hover .header-cta__icon {
    background: rgba(242, 129, 0, 0.18);
}
.header-cta__icon img {
    width: 22px;
    height: 22px;
    margin: 0 !important;
    object-fit: contain;
}
.header-cta__text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}
.header-cta__text strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.25;
    white-space: nowrap;
}
.header-cta__text small {
    font-size: 1.15rem;
    font-weight: 400;
    color: #6B6B6B;
    line-height: 1.3;
    margin-top: 3px;
    white-space: nowrap;
}
.header__main__links a.header-cta:hover .header-cta__text strong { color: #F28100; }

/* Hide CTA on smaller viewports where space is tight */
@media (max-width: 1279px) {
    .header__main__links a.header-cta .header-cta__text strong { font-size: 1.3rem; }
    .header__main__links a.header-cta .header-cta__text small { font-size: 1.05rem; }
    .header-cta__icon { width: 38px; height: 38px; }
}

/* Aside icons (Darmowy pomiar / Gwarancja / Płatności / Jakość) — recolor to brand orange */
.aside-icons .icons img {
    filter: brightness(0) saturate(100%) invert(58%) sepia(82%) saturate(2541%) hue-rotate(2deg) brightness(99%) contrast(101%);
}

/* Box section — subtle bg surface */
.box .container:before { background: #F5F5F5; }
.box__content p a { color: #F28100; }

/* Box section — looser spacing + ~10% larger text for readability */
.box__content p {
    font-size: 1.55rem;
    line-height: 2.5rem;
    margin-bottom: 22px;
}
.box__content__title { margin-bottom: 22px; }
.box__content__title small {
    font-size: 2rem;
    line-height: 2.8rem;
    margin-top: 8px;
}
.box__content .list {
    margin: 32px 0 36px;
    row-gap: 14px;
}
.box__content .list li {
    font-size: 1.55rem;
    line-height: 2.5rem;
    margin-right: 40px;
    padding-left: 24px;
}
.box__content .list li:before { top: 9px; }
.box__content .btn-main { margin-top: 8px; }
@media (min-width: 1280px) {
    .box__content { padding: 80px 227px 110px 80px !important; }
}

/* List bullet — orange ring on light bg */
.list li:before { background: #FFFFFF; border: 2px solid #F28100; }

/* Variant items in product card */
.card .card__block .card-variant__group .variant-item { border: 1px solid #E8E8E8; }
.card .card__block .card-variant__group .variant-item:hover,
.card .card__block .card-variant__group .variant-item.current { border: 1px solid #F28100; }
.card .card__block .card-variant__group .variant-item:hover .variant-name,
.card .card__block .card-variant__group .variant-item.current .variant-name { color: #F28100; }

/* Sale badge */
.card .card__block .card-price .price-sale { background: #F28100; }

/* Hero/entry-grid label overlays — keep readable, accent on hover */
.entry-grid__link span, .entry-grid a span { color: #FFFFFF; }

/* Inputs — subtle bg */
.card-bottom .card-quantinity .form-control,
.sidebar-type .price-form__col .form-control,
.card-variant-drop { background: #FAFAFA; border: 1px solid #E8E8E8; }
.card-bottom .card-quantinity .btn-quant { background: #F5F5F5; color: #1A1A1A; }
.card-bottom .card-quantinity .btn-quant:hover { background: #E8E8E8; }

/* Newsletter input bg should be subtle, not dark */
.newsletter .form-field .form-control { background: #FAFAFA; color: #1A1A1A; }
.newsletter input::placeholder { color: #6B6B6B; }

/* ============================================================
   Footer — cleaner 4-column layout with proper hierarchy
   ============================================================ */
.footer { padding: 40px 0 20px; }
.footer__top { padding-bottom: 30px; border-bottom: 1px solid #E8E8E8; margin-bottom: 35px; }
.footer__top img { width: 220px !important; }
.footer__contact {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px;
}
.footer__contact-label {
    display: block;
    font-size: 1.9rem;
    line-height: 2.4rem;
    font-weight: 500;
    color: #6B6B6B;
    letter-spacing: 0.02em;
    margin: 0 0 4px;
}
.footer__contact-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}
@media (min-width: 768px) {
    .footer__contact { align-items: flex-end !important; }
    .footer__contact-label { text-align: right; }
}
.footer__contact a {
    font-size: 2.4rem !important;
    line-height: 3rem !important;
    font-weight: 700 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}
.footer__contact a span { font-weight: 700 !important; }
.footer__contact a img { width: 22px !important; height: 22px !important; margin-right: 10px !important; }
@media (min-width: 1280px) {
    .footer__contact a { font-size: 2.7rem !important; line-height: 3.3rem !important; }
}
@media (max-width: 767px) {
    .footer__contact a { font-size: 1.65rem !important; line-height: 2.3rem !important; }
}
.footer .footer-links { background: #FFFFFF; border: 1px solid #E8E8E8; padding: 18px 20px; margin: 0 0 35px; }

@media (min-width: 992px) {
    .footer__group {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        margin-top: 0;
    }
    .footer__group .col {
        display: block;
        margin-bottom: 0;
    }
}

/* Each footer__nav becomes a stacked block: label above list */
.footer__nav,
.footer__group .col .footer__nav {
    display: block;
    margin-bottom: 28px;
}
.footer__nav span,
.footer__group .col .footer__nav span {
    display: block;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1A1A1A;
    margin: 0 0 12px;
    padding: 0;
    border-bottom: none;
    min-width: 0;
    white-space: normal;
}
.footer__nav__list,
.footer__group .col .footer__nav__list {
    display: block !important;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer__nav__list li,
.footer__group .col .footer__nav__list li {
    display: block;
    margin: 0 0 6px;
    padding: 0;
}
.footer__nav__list li a {
    color: #6B6B6B;
    font-size: 1.4rem;
    line-height: 2rem;
    transition: color 200ms ease;
}
.footer__nav__list li a:hover { color: #F28100; }

/* Address column */
.footer__group .col.col-address {
    display: block;
    align-items: stretch;
    justify-content: flex-start;
}
.footer__nav--address address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    font-style: normal;
    font-weight: 400;
}
.footer__nav--address address img {
    width: 16px;
    height: auto;
    margin: 4px 0 0;
    flex: 0 0 16px;
}
.footer__nav--address address > div {
    display: flex;
    flex-direction: column;
    line-height: 1.8rem;
    color: #1A1A1A;
    font-size: 1.4rem;
}
.footer__nav--address address > div > * {
    display: block;
    line-height: 1.8rem;
}
.footer__nav--address address strong {
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
}
.footer__nav--address address span { color: #6B6B6B; }

.footer__contact-list { margin-top: 6px !important; }
.footer__contact-list li a {
    color: #1A1A1A;
    font-weight: 500;
}
.footer__contact-list li a[href^="mailto"] { color: #F28100; font-weight: 600; }
.footer__contact-list li a:hover { color: #F28100; }

/* Socials block under address — left-aligned, restrained */
.footer .col.col-address .socials {
    margin-top: 16px;
    justify-content: flex-start;
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.footer .col.col-address .socials span {
    margin: 0 8px 0 0;
    font-size: 1.3rem;
    color: #6B6B6B;
    font-weight: 600;
}
.footer .col.col-address .socials a {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #E8E8E8;
    border-radius: 50%;
    background: #FFFFFF;
    transition: background 200ms ease, border-color 200ms ease;
    overflow: hidden;
}
.footer .col.col-address .socials a svg {
    width: 28px !important;
    height: 28px !important;
    fill: #F28100 !important;
}
.footer .col.col-address .socials a:hover { background: #F28100; border-color: #F28100; }
.footer .col.col-address .socials a:hover svg { fill: #FFFFFF !important; }

/* Copyright row — centered text on mobile, split on desktop */
.footer__copyright {
    border-top: 1px solid #E8E8E8;
    margin-top: 30px;
    padding-top: 20px;
}
.footer__copyright span { color: #6B6B6B; font-size: 1.2rem; }

/* Mobile: address column stacks naturally below nav cols */
@media (max-width: 991px) {
    .footer__group .col.col-address {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer__nav--address address > div { font-size: 1.4rem; }
}

/* ============================================================
   Subpages: kontakt / blog / wpis / strona uniwersalna
   ============================================================ */

/* Shared page head under breadcrumbs */
.page-section { padding: 6px 0 50px; }
.page-head { margin: 4px 0 30px; }
.page-head .global-title { text-align: left; margin: 0 0 10px; }
.page-head__lead {
    max-width: 720px;
    font-size: 1.5rem;
    line-height: 2.4rem;
    color: #6B6B6B;
    margin: 0;
}

/* ---------- Blog: siatka wpisów ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px 30px;
}
@media (min-width: 576px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-grid .blog__item,
.article-related .blog__item { text-decoration: none; }
.blog-grid .blog__item__img img,
.article-related .blog__item__img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.blog__item__excerpt {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
    line-height: 2.2rem;
    color: #6B6B6B;
}
.blog__item__bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.blog__item__bottom time { margin-top: 0 !important; color: #6B6B6B; }
.blog__item__tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #E8E8E8;
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #6B6B6B;
    text-transform: uppercase;
}
.blog-grid .blog__item:hover .blog__item__title { text-decoration: underline; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 44px 0 6px;
    padding: 0;
    list-style: none;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #E8E8E8;
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1A1A1A;
    transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}
.pagination a:hover { border-color: #F28100; color: #F28100; }
.pagination .is-current {
    background: #F28100;
    border-color: #F28100;
    color: #FFFFFF;
}
.pagination .is-disabled { color: #C4C4C4; pointer-events: none; }

/* ---------- Kontakt ---------- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}
@media (min-width: 992px) {
    .contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
}

.contact-form {
    border: 1px solid #E8E8E8;
    border-radius: 16px;
    background: #FFFFFF;
    padding: 26px 22px;
}
@media (min-width: 768px) { .contact-form { padding: 36px 34px; } }
.contact-form__title {
    font-size: 2rem;
    line-height: 2.8rem;
    font-weight: 700;
    margin: 0 0 20px;
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .form-group--full { grid-column: 1 / -1; }
.form-group label {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 7px;
}
.form-group label .optional { font-weight: 400; color: #6B6B6B; }
.form-group .form-control,
.form-group select.form-control {
    height: 52px !important;
    border: 1px solid #E8E8E8 !important;
    border-radius: 10px !important;
    background: #FAFAFA !important;
    padding: 0 16px !important;
    font-size: 1.45rem !important;
    color: #1A1A1A !important;
    width: 100%;
    cursor: auto;
}
.form-group select.form-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B6B6B' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
}
.form-group textarea.form-control {
    height: auto !important;
    min-height: 140px;
    padding: 14px 16px !important;
    line-height: 2.2rem;
    resize: vertical;
}
.form-group .form-control:focus {
    border-color: #F28100 !important;
    background: #FFFFFF !important;
}
.form-group .form-control::placeholder { color: #9A9A9A; }
.contact-form .checkbox { margin: 4px 0 0; }
.contact-form .checkbox__label {
    color: #6B6B6B;
    max-width: none;
    font-size: 1.25rem;
    line-height: 1.8rem;
}
.contact-form .checkbox input:checked + .checkbox__label:before,
.contact-form .checkbox__input:checked + .checkbox__label:before {
    background: #F28100 !important;
    border-color: #F28100 !important;
}
.contact-form .btn-main { margin-top: 18px; min-width: 220px; }
.form-note { display: block; margin-top: 14px; font-size: 1.2rem; color: #6B6B6B; }

/* Contact info column */
.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    border: 1px solid #E8E8E8;
    border-radius: 16px;
    background: #FFFFFF;
    padding: 22px;
}
.contact-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 14px;
}
.contact-card__title img { width: 22px; height: 22px; }
.contact-card address {
    font-style: normal;
    font-size: 1.45rem;
    line-height: 2.2rem;
    color: #1A1A1A;
    margin: 0;
}
.contact-card address strong { display: block; margin-bottom: 4px; }
.contact-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1.45rem;
    line-height: 2.2rem;
}
.contact-card ul li { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; }
.contact-card ul li span:first-child { color: #6B6B6B; }
.contact-card a { color: #F28100; font-weight: 600; }
.contact-card a.phone-line { display: block; font-size: 1.9rem; font-weight: 700; color: #1A1A1A; }
.contact-card a.phone-line:hover { color: #F28100; }
.contact-map {
    border: 1px solid #E8E8E8;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
}
.contact-map iframe { width: 100%; height: 300px; border: 0; }

/* ---------- Wpis bloga / strona uniwersalna ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 22px;
    font-size: 1.35rem;
    color: #6B6B6B;
}
.article__meta time { font-style: italic; }
.article__hero { margin: 0 0 30px; }
.article__hero img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}
.article .text-editor h2 { margin-top: 36px; }
.article .text-editor h3 { margin-top: 26px; }
.article .text-editor figure { margin: 26px 0; }
.article .text-editor figure img { border-radius: 12px; max-width: 100%; }
.article__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid #E8E8E8;
}
.article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 600;
}
.article-related { margin-top: 56px; }
.article-related .global-title { text-align: left; }

/* FAQ (details/summary) */
.faq { margin-top: 34px; }
.faq details {
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    background: #FFFFFF;
    margin-bottom: 10px;
    padding: 0 18px;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after {
    content: "+";
    flex: 0 0 auto;
    font-size: 2rem;
    font-weight: 400;
    color: #F28100;
    line-height: 1;
    transition: transform 200ms ease;
}
.faq details[open] summary:after { transform: rotate(45deg); }
.faq details p {
    margin: 0;
    padding: 0 0 16px;
    font-size: 1.45rem;
    line-height: 2.3rem;
    color: #6B6B6B;
}

/* Strona uniwersalna — spis treści */
.content-toc {
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    background: #FAFAFA;
    padding: 18px 22px;
    margin: 0 0 30px;
}
.content-toc span {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.content-toc ol {
    margin: 0;
    padding-left: 18px;
    font-size: 1.4rem;
    line-height: 2.4rem;
}
.content-toc a { color: #1A1A1A; }
.content-toc a:hover { color: #F28100; text-decoration: underline; }
.content-meta {
    display: block;
    margin: -14px 0 24px;
    font-size: 1.3rem;
    color: #6B6B6B;
}

/* ============================================================
   Brand 07.2026: jeden pomarańcz w całym motywie = #F28100
   (jasny pomarańcz — ten sam, który daje filtr na ikonach SVG;
   decyzja klienta). Wycofano ciemniejsze #B85C00/#A65300
   z audytu WCAG. Uwaga: #F28100 na bieli = 2,65:1 — poniżej
   AA 4,5:1 dla drobnego tekstu; klient zaakceptował.
   ============================================================ */

/* Przyciski główne — biały tekst na pomarańczowym tle */
.btn-main, .btn-main:focus { background: #F28100; }
.card-bottom .btn-main,
.newsletter .form-field .btn-main { background: #F28100; }
.btn-main:hover, .card-bottom .btn-main:hover,
.newsletter .form-field .btn-main:hover { background: #6B6B6B; }

/* Badge "Promocja" i badge oszczędności */
.labels .label { background: #F28100; }
.card .card__block .card-price .price-sale { background: #F28100; }

/* Ceny */
.product__price ins, .card-price__content ins { color: #F28100 !important; }
.product__price del, .card-price__content del { color: #767676 !important; }

/* Tytuły wpisów bloga */
.blog__item__title, .slider-section__item__title { color: #F28100; }

/* Linki tekstowe — stany hover/focus/active */
a:hover, a:focus, a:active { color: #F28100; }
.header__nav__list li a:hover { color: #F28100; }
.footer .footer-links a:hover { color: #F28100; }
.footer__nav__list li a:hover { color: #F28100; }
.header__main__links a.header-cta:hover .header-cta__text strong { color: #F28100; }
.box__content p a { color: #F28100; }
.footer__contact-list li a[href^="mailto"] { color: #F28100; }
.header__main__contact a[href^="mailto"],
.card-help__contact a[href^="mailto"],
.footer__contact-links a[href^="mailto"] { color: #F28100; }
.contact-card a { color: #F28100; }

/* Przełącznik języka — aktywny segment */
.header__lang__btn.is-active { background: #F28100; }

/* Checkboxy — zaznaczenie */
.newsletter .checkbox input:checked + .checkbox__label:before,
.newsletter .checkbox__input:checked + .checkbox__label:before,
.contact-form .checkbox input:checked + .checkbox__label:before,
.contact-form .checkbox__input:checked + .checkbox__label:before {
    background: #F28100 !important;
    border-color: #F28100 !important;
}

/* Warianty produktu — obrys wybranego (kontrast niebarwny 3:1) */
.card .card__block .card-variant__group .variant-item:hover,
.card .card__block .card-variant__group .variant-item.current { border-color: #F28100; }
.card .card__block .card-variant__group .variant-item:hover .variant-name,
.card .card__block .card-variant__group .variant-item.current .variant-name { color: #F28100; }

/* Pola formularzy — obrys focus */
.form-group .form-control:focus,
.newsletter .form-field .form-control:focus { border-color: #F28100 !important; }

/* Paginacja */
.pagination .is-current { background: #F28100; border-color: #F28100; }
.pagination a:hover { border-color: #F28100; color: #F28100; }

/* Ikony społecznościowe w stopce */
.footer .col.col-address .socials a svg { fill: #F28100 !important; }
.footer .col.col-address .socials a:hover { background: #F28100; border-color: #F28100; }

/* Lightbox PhotoSwipe ponad headerem */
.pswp { z-index: 99999; }

/* Tekst tylko dla czytników ekranu */
.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;
}

/* Warianty produktu jako radio — ukryty input, label klikalny i fokusowalny */
.variant-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}
label.variant-item,
label.group-block__item { cursor: pointer; }
.variant-item:has(.variant-radio:focus-visible),
.group-block__item:has(.variant-radio:focus-visible) {
    outline: 2px solid #F28100;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Select grupy kolorów (zastępuje niedostępny dropdown span+ul) */
select.card-variant-select {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    min-width: 220px;
    height: 44px;
    padding: 0 42px 0 14px;
    margin-bottom: 14px;
    font-size: 1.4rem;
    color: #1A1A1A;
    border-radius: 8px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B6B6B' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
select.card-variant-select:focus-visible {
    outline: 2px solid #F28100;
    outline-offset: 2px;
}

/* Etykiety filtra ceny (span -> label) — te same style co bundlowy span */
.sidebar-type .price-form__col label {
    font-size: 1.3rem;
    margin-right: 8px;
    font-weight: 700;
}

/* CLS: atrybuty width/height na <img> rezerwują miejsce (aspect-ratio),
   ale wymagają height:auto, inaczej wysokość z atrybutu usztywnia obraz */
img { max-width: 100%; height: auto; }

/* CLS: przed inicjalizacją Splide lista jest flexem i renderuje obrazy
   w naturalnej szerokości (1376px) — pokazuj 1 slajd w bloku, by nic nie skakało */
.splide-card:not(.is-initialized) .splide__slide:not(:first-child) { display: none; }
.splide-card:not(.is-initialized) .splide__list { display: block; height: auto; }

/* Opis produktu i dane techniczne: h3→h2 (hierarchia nagłówków),
   rozmiar jak dotychczasowe h3 z bundla */
.card-description .text-editor h2,
.card-description .container .col.col-data h2 {
    font-size: 2.2rem !important;
    line-height: 3.8rem !important;
    letter-spacing: 0;
    margin: 15px 0 12px;
    font-weight: 600 !important;
}

/* Badge "Darmowy pomiar i wycena" — ciemniejsza zieleń (4,6:1 na #EBF3E9) */
.card-delivery span { color: #3A7A2E !important; }

/* Mailto w blokach pomocy/headerze — span dziedziczy dostępny kolor */
.card-help__contact a[href^="mailto"],
.card-help__contact a[href^="mailto"] span,
.header__main__contact a[href^="mailto"] span { color: #F28100 !important; }
.card-help__contact a[href^="mailto"]:hover,
.card-help__contact a[href^="mailto"]:hover span,
.header__main__contact a:hover span { color: #1A1A1A !important; }

/* Minimalna przestrzeń dotykowa linków kontaktowych (WCAG 2.5.8) */
.card-help__contact a,
.header__main__contact a { padding: 4px 0; display: inline-block; }

/* Stopka ma tło #F5F5F5 — pomarańcz musi być ciemniejszy (4,5:1) */
.footer__contact-links a[href^="mailto"],
.footer__contact-links a[href^="mailto"] span,
.footer__contact-list li a[href^="mailto"] { color: #F28100 !important; }
.footer__contact-links a[href^="mailto"]:hover,
.footer__contact-links a[href^="mailto"]:hover span,
.footer__contact-list li a[href^="mailto"]:hover { color: #1A1A1A !important; }

/* ============================================================
   FIXY 07.2026: modal koszyka, live search, koszyk, Poradnik
   ============================================================ */

/* --- Modal Bootstrapa musi leżeć NAD headerem (header ma z-index 9999,
   modal BS4 domyślnie 1050 — dialog chował się pod headerem) --- */
.modal { z-index: 10050; }
.modal-backdrop { z-index: 10040; }

/* Modal "dodano do koszyka" — porządek wewnątrz */
#basketModal .modal-content { border-radius: 8px; overflow: hidden; border: 0; }
#basketModal .alert-success {
    background: #EBF3E9;
    color: #3A7A2E;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 18px 16px;
}
#basketModal .modal-content > .row { margin: 0; padding: 14px 16px 0; }
#basketModal #prod-comment {
    border: 1px solid #E8E8E8;
    border-radius: 4px;
    padding: 10px 12px;
    min-height: 90px;
    font-size: 1.4rem;
}
#basketModal .modal-footer { border-top: 0; }
#basketModal .modal-footer .row { width: 100%; margin: 0; }
#basketModal .modal-footer .basket-btn { width: 100%; margin: 5px 0; }

/* --- Live search: dropdown pod polem wyszukiwania.
   Kontener #live-search-results tworzy gekosale.js (GSearch) i ustawia
   inline position:absolute; right:0 — kotwiczymy go na #livesearch --- */
#livesearch { position: relative; z-index: 500; }
#live-search-results {
    top: 6px;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.livesearch__dropdown { max-height: 420px; overflow-y: auto; }
.livesearch__list { list-style: none; margin: 0; padding: 0; }
.livesearch__item + .livesearch__item { border-top: 1px solid #F0F0F0; }
.livesearch__item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #1A1A1A;
    text-decoration: none;
}
.livesearch__item a:hover { background: #F5F5F5; }
.livesearch__item__img { flex: 0 0 48px; width: 48px; height: 48px; }
.livesearch__item__img img { width: 100%; height: 100%; object-fit: contain; }
.livesearch__item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.livesearch__item__name {
    font-size: 1.4rem;
    line-height: 1.35;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.livesearch__item__price { font-size: 1.3rem; }
.livesearch__item__price ins { text-decoration: none; color: #F28100; font-weight: 700; }
.livesearch__item__price del { color: #6B6B6B; margin-left: 8px; }
.livesearch__all {
    display: block;
    text-align: center;
    padding: 12px 14px;
    background: #F5F5F5;
    color: #1A1A1A;
    font-size: 1.3rem;
    font-weight: 600;
}
.livesearch__all:hover { color: #F28100; }
.livesearch__empty { margin: 0; padding: 14px; color: #6B6B6B; font-size: 1.3rem; }

/* --- Koszyk: blok "Kupuje na firmę z VAT EU" i kupon w prawej kolumnie
   (klasa .eurovat nie miała żadnych styli) --- */
.box-summary .eurovat {
    margin: 14px 0;
    padding: 14px 0 4px;
    border-top: 1px solid #E8E8E8;
    border-bottom: 1px solid #E8E8E8;
}
.box-summary .eurovat label { font-weight: 600; margin-bottom: 8px; display: block; }
.box-summary .eurovat p { margin: 0 0 10px; }
.box-summary .eurovat .flex-vat { gap: 8px; margin-bottom: 10px; }
.box-summary .eurovat input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #E8E8E8;
    border-radius: 4px;
    padding: 8px 12px;
}
.box-summary .eurovat button {
    height: 46px;
    padding: 0 18px;
    background: #1A1A1A;
    color: #FFFFFF;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.box-summary .eurovat button:hover { background: #F28100; }
.box-summary #button-discount-code-toogle {
    background: none;
    border: 0;
    color: #1A1A1A;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.box-summary #button-discount-code-toogle:hover { color: #F28100; }

/* --- Checkout (/zamowienie): lista produktów w podsumowaniu.
   Klasy .small-checkout__* nie miały żadnych styli — zdjęcie (img-fluid)
   rozciągało się na całą szerokość kolumny --- */
.checkout-boxx {
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 20px;
}
.checkout-boxx .small-heading { margin-bottom: 8px; }
.small-checkout__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
}
.small-checkout__item + .small-checkout__item { border-top: 1px solid #F0F0F0; }
.small-checkout__item__wrapp {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
}
.small-checkout__item__img {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border: 1px solid #F0F0F0;
    border-radius: 6px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.small-checkout__item__img img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.small-checkout__item__name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 1.3rem;
    min-width: 0;
}
.small-checkout__item__name__heading { font-size: 1.4rem; line-height: 1.4; margin: 0 0 2px; font-weight: 600; }
.small-checkout__item__name__heading a { color: #1A1A1A; }
.small-checkout__item__name__heading a:hover { color: #F28100; }
.small-checkout__item__price { white-space: nowrap; font-weight: 700; font-size: 1.4rem; }
.small-checkout__item__price strike { color: #6B6B6B; font-weight: 400; margin-left: 6px; }

/* --- Checkout: radio "Osoba fizyczna / Firma" — inputy mają klasę
   .form-control (styl pola tekstowego), przez co renderowały się jako
   puste prostokąty. Przywracamy natywne radio obok etykiety --- */
.flex-radio { gap: 20px; margin-bottom: 18px; }
.flex-radio .form-group--radio {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.flex-radio .form-group--radio label { margin: 0; cursor: pointer; font-weight: 600; }
.flex-radio .form-group--radio input.form-control[type="radio"] {
    -webkit-appearance: radio;
    appearance: auto;
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    background: none;
    accent-color: #F28100;
    cursor: pointer;
}

/* --- Strona główna: banner z kafelkami (entry-grid).
   Kolumny używają bootstrapowej klasy .col, której padding 15px rozpychał
   przerwy do ~40px — w projekcie kafelki mają zwarte ~10px odstępy (grid gap) --- */
.entry-grid__content .col { padding: 0; }

/* --- Header: badge z liczbą produktów na ikonie koszyka.
   Markup renderuje cart_preview.tpl (globalne {{ cartpreview }} w #topBasket,
   odświeżane przez xajax po dodaniu produktu) --- */
.header__main__basket #topBasket { display: inline-block; }
.header__main__basket .basket-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.basket-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #F28100;
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 1.1rem;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

/* --- Poradnik (strona główna): fallback gdyby Splide się nie zainicjalizował —
   sekcja nie może zostać z visibility:hidden po core CSS Splide --- */
.splide-news:not(.is-initialized) { visibility: visible; }
.splide-news:not(.is-initialized) .splide__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.splide-news:not(.is-initialized) .splide__slide:nth-child(n+5) { display: none; }

/* ============================================================
   FONT 07.2026 — treści z edytora WYSIWYG (opisy produktów,
   wpisy bloga, opisy kategorii/producentów).
   Uwaga: wklejki z Docsów potrafią mieć inline
   "font-family: ... !important", czego arkusz NIE przebije —
   dlatego szablony (newsbox/view.tpl, productbox) dodatkowo
   neutralizują font-family filtrem |replace przy renderze.
   Ta reguła łapie resztę (zwykłe inline style, <font face>).
   ============================================================ */
.text-editor, .text-editor *,
.card-description, .card-description *,
.category-description, .category-description *,
.product-details, .product-details *,
#product-description, #product-description *,
#product-longdescription, #product-longdescription * {
    font-family: Sansation, Arial, sans-serif !important;
}

