/* ============================================================
   REDESIGN stron taksonomii `kategorie` (child theme 2026-07-19).
   Pełna szerokość zamiast sidebar-drzewa. Klasy rdx-*.
   Brand: żółty #ffd302 / czarny #000 / Impact.
   ============================================================ */

/* ---------- HERO ---------- */
.rdx-hero {
    background: #fff;
    padding: 105px 0 0;
}

.rdx-breadcrumb {
    font-size: 13px;
    font-family: "Impact";
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rdx-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.rdx-breadcrumb a:hover {
    color: #000;
}

.rdx-crumb-sep {
    color: #ffd302;
    font-size: 15px;
}

.rdx-crumb-current {
    color: #000;
}

.rdx-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 22px;
    border-bottom: 4px solid #ffd302;
}

.rdx-h1 {
    margin: 0;
    font-size: 2.6rem;
    line-height: 1.1;
    word-break: normal;
    hyphens: auto;
}

/* wyszukiwarka — te same klasy pól co w parent, świeży wrapper */
.rdx-search {
    flex: 1 1 380px;
    max-width: 520px;
}

.rdx-search .search_form {
    display: flex;
    background: #efefef;
    border-radius: 6px;
    overflow: hidden;
}

.rdx-search .search-field {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 13px 18px;
    font-size: 14px;
    outline: none;
}

.rdx-search .search_form button {
    position: static;
    transform: none;
    background-image: none;
    width: auto;
    height: auto;
    border: 0;
    background: #000;
    color: #fff;
    padding: 0 24px;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

.rdx-search .search_form button p {
    width: auto;
    height: auto;
    display: block;
    overflow: visible;
    text-indent: 0;
    opacity: 1;
    margin: 0;
    font-family: "Impact";
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rdx-search .search-field {
    min-width: 0;
}

.rdx-search .search_form button:hover {
    background: #ffd302;
    color: #000;
}

/* ---------- PASEK CHIPÓW (siblingi) ---------- */
.rdx-strip-wrap {
    background: #fff;
    padding: 18px 0 0;
}

.rdx-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.rdx-chip {
    flex: 0 0 auto;
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #000;
    border-radius: 999px;
    color: #000;
    background: #fff;
    text-decoration: none;
    font-family: "Impact";
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.rdx-chip:hover {
    background: #000;
    color: #ffd302;
}

.rdx-chip-current {
    background: #000;
    color: #ffd302;
    pointer-events: none;
}

.rdx-chip-back {
    background: #ffd302;
    border-color: #ffd302;
}

.rdx-chip-back:hover {
    background: #000;
    border-color: #000;
}

/* ---------- TREŚĆ ---------- */
.rdx-content {
    padding: 35px 0 70px;
    background: #fff;
}

/* --- poziom 0: serie + kafelki modeli --- */
.rdx-series {
    margin-bottom: 34px;
}

.rdx-series-title {
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    margin: 0 0 14px;
    padding-left: 14px;
    border-left: 6px solid #ffd302;
}

.rdx-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}

.rdx-model-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    border: 2px solid #000;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    font-family: "Impact";
    font-size: 20px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.rdx-model-tile:hover {
    background: #000;
    color: #ffd302;
    transform: translateY(-2px);
}

/* --- poziom 1: karty podkategorii --- */
.rdx-podkat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.rdx-podkat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border: 2px solid #000;
    border-radius: 10px;
    color: #000;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.rdx-podkat-card:hover {
    background: #000;
    color: #ffd302;
    transform: translateY(-2px);
}

.rdx-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.rdx-podkat-name {
    flex: 1;
    font-family: "Impact";
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.25;
}

.rdx-arrow {
    font-size: 20px;
    line-height: 1;
}

/* --- poziom 2: karty produktów --- */
.rdx-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    gap: 16px;
}

@media (max-width: 500px) {
    .rdx-product-grid {
        grid-template-columns: 100%;
    }
}

.rdx-product-card {
    display: flex;
    gap: 20px;
    padding: 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
}

.rdx-product-card:hover {
    border-color: #000;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.rdx-product-thumb {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffd302;
}

.rdx-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rdx-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-right: 26px;
}

.rdx-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.rdx-badge {
    font-family: "Impact";
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid #000;
    border-radius: 6px;
    padding: 2px 8px;
}

.rdx-product-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.3;
    text-transform: uppercase;
}

.rdx-product-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rdx-product-desc p {
    margin: 0;
}

.rdx-product-card .rdx-arrow {
    position: absolute;
    right: 18px;
    bottom: 14px;
    transition: transform 0.2s;
}

.rdx-product-card:hover .rdx-arrow {
    transform: translateX(4px);
}

/* ---------- mobile ---------- */
@media (max-width: 850px) {
    .rdx-hero {
        padding-top: 90px;
    }

    .rdx-h1 {
        font-size: 1.9rem;
    }

    .rdx-hero-row {
        gap: 16px;
        padding-bottom: 16px;
    }

    .rdx-product-thumb {
        flex-basis: 105px;
        width: 105px;
        height: 105px;
    }
}

/* ============================================================
   Wpis części (single katalog-czesci): chowamy sidebar-drzewo,
   treść na pełną szerokość — spójnie z redesignem taksonomii.
   ============================================================ */
body.single-katalog-czesci .all_machines_with_list_section .grid320_1fr {
    grid-template-columns: 100%;
}

body.single-katalog-czesci .all_machines_with_list_section .left_col.all_cat_products_list {
    display: none;
}

body.single-katalog-czesci .subpage_hero .grid320_1fr {
    grid-template-columns: 100%;
}

body.single-katalog-czesci .subpage_hero .left_col {
    display: none;
}

/* ============================================================
   KONTAKT (rdx-contact) — redesign 2026-07-19
   ============================================================ */
.rdx-contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 26px;
    align-items: start;
}

@media (max-width: 1000px) {
    .rdx-contact-grid {
        grid-template-columns: 100%;
    }
}

/* karty kontaktu (telefon / mail / godziny / wysyłka) */
.rdx-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.rdx-contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border: 2px solid #000;
    border-radius: 10px;
    background: #fff;
}

.rdx-contact-card-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.rdx-contact-card-desc p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.rdx-contact-card-desc a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

.rdx-contact-card-desc a:hover {
    background: #ffd302;
}

/* karta firmy: adres + kompaktowa mapa */
.rdx-company-card {
    border: 2px solid #000;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 14px;
}

.rdx-company-address {
    padding: 18px 20px 12px;
    font-size: 14px;
    line-height: 1.5;
}

.rdx-company-address p {
    margin: 0 0 4px;
}

.rdx-map iframe {
    display: block;
    width: 100%;
    filter: grayscale(1) contrast(1.04);
    transition: filter 0.3s;
}

.rdx-map:hover iframe {
    filter: none;
}

.rdx-map-link {
    display: block;
    padding: 12px 20px;
    background: #000;
    color: #ffd302;
    text-decoration: none;
    font-family: "Impact";
    font-size: 13px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    transition: background-color 0.25s, color 0.25s;
}

.rdx-map-link:hover {
    background: #ffd302;
    color: #000;
}

/* akapit "o firmie" */
.rdx-company-about {
    font-size: 14px;
    line-height: 1.65;
    color: #444;
    padding: 4px 6px;
}

/* prawa kolumna: sticky karta formularza */
.rdx-contact-right {
    position: sticky;
    top: 90px;
}

@media (max-width: 1000px) {
    .rdx-contact-right {
        position: static;
    }
}

.rdx-form-card {
    border: 2px solid #000;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.rdx-form-title {
    margin: 0;
    padding: 16px 22px;
    background: #000;
    color: #ffd302;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.rdx-form-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 22px;
    background: #fffbe6;
    border-bottom: 2px solid #ffd302;
}

.rdx-form-note-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
}

.rdx-form-note-desc p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* CF7: zachowujemy .contact_form.bg_yellow (style pól z cf7.css),
   tylko spinamy ją wizualnie z kartą */
.rdx-form-card .contact_form.bg_yellow {
    border-radius: 0;
    margin: 0;
}

/* ============================================================
   Sekcja .reliability (New/Used Parts) — WYRÓWNANIE Z TŁEM
   (2026-07-19, rewizja po feedbacku: stare karty #f2f2f2 zostają).
   Zdjęcie stopki ma margin-top:-330px i wsuwa się pod tę sekcję;
   szare karty zlewały się z niebem na fotce (szczeg. >1750px).
   Fix: sekcja dostaje biały gradient przechodzący w przezroczystość
   — karty zawsze leżą na białym, foto wyłania się miękko pod nimi.
   ============================================================ */
.reliability {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 72%, rgba(255, 255, 255, 0) 100%);
}

/* ============================================================
   Nawigacja na wpisie części (rdx-single-nav, 2026-07-19):
   breadcrumb + chip powrotu do podkategorii — wpis został bez
   nawigacji po schowaniu drzewa (a breadcrumba nigdy nie miał).
   ============================================================ */
.rdx-single-nav {
    background: #fff;
    padding: 6px 0 0;
}

.rdx-single-nav .rdx-breadcrumb {
    margin-bottom: 10px;
}

.rdx-single-nav .rdx-crumb-current {
    max-width: 46ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
}

.rdx-single-nav .rdx-strip {
    padding-bottom: 4px;
}
