/* ============================================================
   STRONA PARTNERA (page-partner.php)
   Styl zgodny z page-serwis-mobilny.php i resztą serwisu
   ============================================================ */

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.kr-partner-page .kr-pt-bc {
    width: 100%;
    background: #f8f8f8 !important;
    border-bottom: 1px solid #e5e5e5;
    padding: 11px 0;
    font-size: 13px;
    color: #888888;
}
.kr-partner-page .kr-pt-bc .kr-pt-wrap { padding: 0 32px; }
.kr-partner-page .kr-pt-bc a,
.kr-partner-page .kr-pt-bc a:link,
.kr-partner-page .kr-pt-bc a:visited {
    color: #888888 !important;
    text-decoration: none !important;
}
.kr-partner-page .kr-pt-bc a:hover { color: #e30613 !important; }
.kr-partner-page .kr-pt-bc span { margin: 0 7px; }
.kr-partner-page .kr-pt-bc strong { color: #0a0a0a; font-weight: 600; }

.kr-pt-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}



/* ── HERO — białe tło, logo + status ────────────────────────── */
.kr-pt-hero {
    background: var(--white);
    border-bottom: 1px solid var(--gray-b);
    padding: 40px 0;
}
.kr-pt-hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.kr-pt-hero__logo-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.kr-pt-hero__logo {
    max-height: 64px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
}
.kr-pt-hero__badge {
    max-height: 56px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}
.kr-pt-hero__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}
.kr-pt-hero__status svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── LAYOUT: main + sidebar ─────────────────────────────────── */
.kr-pt-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 60px;
    padding-top: 56px;
    padding-bottom: 60px;
    align-items: start;
}

/* ── SEKCJE ─────────────────────────────────────────────────── */
.kr-pt-section {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--gray-b);
}
.kr-pt-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ── H2 SEO ─────────────────────────────────────────────────── */
.kr-pt-h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    margin: 0 0 20px;
}

/* ── OPIS ───────────────────────────────────────────────────── */
.kr-pt-opis {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 24px;
}
.kr-pt-opis p { margin: 0 0 12px; }
.kr-pt-opis p:last-child { margin-bottom: 0; }

/* ── PRZYCISKI ──────────────────────────────────────────────── */
.kr-pt-btn-red {
    display: inline-block;
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: var(--red);
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: .03em;
    transition: background .2s;
}
.kr-pt-btn-red:hover { background: #c0000f; color: var(--white); }

.kr-pt-btn-outline {
    display: inline-block;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    border: 1px solid #bbb;
    border-radius: 3px;
    text-decoration: none;
    transition: border-color .2s;
}
.kr-pt-btn-outline:hover { border-color: var(--black); }

/* ── TYTUŁ SEKCJI PRODUKTÓW ─────────────────────────────────── */
.kr-pt-sec__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--black);
    margin: 0 0 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}
.kr-pt-sec__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0;
}

/* ── GRID PRODUKTÓW ─────────────────────────────────────────── */
.kr-pt-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-b);
    border: 1px solid var(--gray-b);
    margin-bottom: 24px;
}
.kr-pt-product {
    display: flex;
    flex-direction: column;
    background: var(--white);
    text-decoration: none;
    color: var(--black);
    transition: background .15s;
    padding: 20px 16px;
}
.kr-pt-product:hover { background: var(--gray-l); }
.kr-pt-product__img-wrap {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}
.kr-pt-product__img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}
.kr-pt-product__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--black);
    margin: 0 0 6px;
}
.kr-pt-avail {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 2px;
    margin-top: auto;
}
.kr-pt-avail--ok { background: #e8f5e9; color: #2e7d32; }
.kr-pt-avail--ask { background: #fff8e1; color: #f57f17; }

.kr-pt-products__more { margin-top: 8px; }
.kr-pt-products__empty {
    font-size: 14px;
    color: var(--gray-m);
    padding: 24px 0;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.kr-pt-sidebar { position: sticky; top: 100px; }
.kr-pt-sb-box {
    border: 1px solid var(--gray-b);
    border-left: 3px solid var(--red);
    border-radius: 3px;
    padding: 24px 20px;
    background: var(--white);
    margin-bottom: 16px;
}
.kr-pt-sb-box:last-child { margin-bottom: 0; }
.kr-pt-sb-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 10px;
}
.kr-pt-sb-text {
    font-size: 13px;
    color: var(--gray-m);
    line-height: 1.7;
    margin: 0 0 16px;
}
.kr-pt-sb-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
}
.kr-pt-sb-link:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
    .kr-pt-layout { grid-template-columns: 1fr; gap: 0; }
    .kr-pt-sidebar { position: static; padding-bottom: 40px; border-bottom: 1px solid var(--gray-b); margin-bottom: 40px; order: -1; }
    .kr-pt-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    /* ── BREADCRUMB ─────────────────────────────────────────────── */
.kr-partner-page .kr-pt-bc {
    width: 100%;
    background: #f8f8f8 !important;
    border-bottom: 1px solid #e5e5e5;
    padding: 11px 0;
    font-size: 13px;
    color: #888888;
}
.kr-partner-page .kr-pt-bc .kr-pt-wrap { padding: 0 32px; }
.kr-partner-page .kr-pt-bc a,
.kr-partner-page .kr-pt-bc a:link,
.kr-partner-page .kr-pt-bc a:visited {
    color: #888888 !important;
    text-decoration: none !important;
}
.kr-partner-page .kr-pt-bc a:hover { color: #e30613 !important; }
.kr-partner-page .kr-pt-bc span { margin: 0 7px; }
.kr-partner-page .kr-pt-bc strong { color: #0a0a0a; font-weight: 600; }

.kr-pt-wrap { padding: 0 16px; }
    .kr-pt-hero { padding: 28px 0; }
    .kr-pt-hero__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .kr-pt-layout { padding-top: 36px; padding-bottom: 40px; }
    .kr-pt-section { margin-bottom: 36px; padding-bottom: 36px; }
    .kr-pt-products { grid-template-columns: 1fr 1fr; }
    .kr-pt-h2 { font-size: 18px; }
}

/* ── INFINITE SCROLL ────────────────────────────────────────── */
.kr-pt-scroll-sentinel {
    height: 1px;
    margin-top: 24px;
}
.kr-pt-loading {
    text-align: center;
    padding: 24px 0;
    font-size: 13px;
    color: var(--gray-m);
}
