:root {
    --tb-theme-color: #2a3392;
    --tb-theme-color-hover: #232b7c;
    --main-max-width: 1650px;
    --main-side-padding: 40px;
    --content-max-width: 1200px;
}

/* === ACCESSIBILITY === */
.skip-link.screen-reader-text {
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: 100000;
    padding: 15px 20px;
    background: var(--tb-theme-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 4px 4px;
}

.skip-link.screen-reader-text:focus {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    clip: auto !important;
    clip-path: none;
    width: auto;
    height: auto;
    overflow: visible;
}

.screen-reader-text:not(.skip-link) {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    word-wrap: normal !important;
}

/* === TYPOGRAFIA & KOLORY === */
body {
    font-family: 'Helvetica', Arial, sans-serif;
    background: #fff;
    color: #232323;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.7;
}
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
a {
    color: var(--tb-theme-color);
    text-decoration: none;
    transition: color .2s;
}
a:hover, a:focus {
    color: var(--tb-theme-color-hover);
    text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
    color: #000;
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: 700;
    margin-top: 1.2em;
    margin-bottom: .6em;
    line-height: 1.25;
}
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h3 a { color: #232323; }

.main-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.container-main {
    max-width: var(--main-max-width);
    margin: 0 auto;
    padding: 0 var(--main-side-padding);
    box-sizing: border-box;
}
.container-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}


/* === IKONY HEADERA === */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 110px;
    justify-content: flex-end;
    flex-shrink: 0;
}
.header-icons a, .header-icons .cart-amount {
    color: #222 !important;
    text-decoration: none;
}
.header-icons a:hover, .header-icons a:focus {
    color: var(--tb-theme-color-hover) !important;
}
.header-icons .cart-amount {
    font-size: 15px;
    margin-left: 6px;
    font-weight: 700;
    white-space: nowrap;
}

.header-icons .cart-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-icons .search-toggle-btn {
    flex-shrink: 0;
}

/* Stałe rozmiary dla dashicons w headerze */
.header-icons .dashicons,
.header-icons .dashicons-search,
.header-icons .dashicons-cart,
.desktop-header .header-icons .dashicons,
.desktop-header .header-icons .dashicons-search,
.desktop-header .header-icons .dashicons-cart {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #222 !important;
}

/* Wymuszenie spójności dla przycisków w headerze */
.header-icons .search-toggle-btn .dashicons,
.header-icons .cart-link .dashicons,
.desktop-header .search-toggle-btn .dashicons,
.desktop-header .cart-link .dashicons {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #222 !important;
}

/* Hover state dla ikon w headerze */
.header-icons .search-toggle-btn:hover .dashicons,
.header-icons .cart-link:hover .dashicons,
.desktop-header .search-toggle-btn:hover .dashicons,
.desktop-header .cart-link:hover .dashicons {
    color: var(--tb-theme-color-hover) !important;
}

/* === BREADCRUMBS (WooCommerce i ogólne) === */
.breadcrumbs-bar {
    width: 100%;
    background: #F4F9FC;
    padding: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    z-index: 1;
}
.breadcrumbs-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    gap: 24px;
}
.breadcrumbs-title {
    font-size: 25px;
    color: #222;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 18px;
    margin-bottom: 0;
    padding-bottom: 5px;
    line-height: 1.1;
    flex-shrink: 0;
}
.breadcrumbs-location,
.breadcrumbs-bar .woocommerce-breadcrumb {
    font-size: 16px;
    color: var(--tb-theme-color);
    font-family: 'Helvetica', Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 8px;
}
.breadcrumbs-location a,
.breadcrumbs-bar .woocommerce-breadcrumb a {
    color: #232323;
    text-decoration: none;
    transition: color .2s;
}
.breadcrumbs-location a:hover,
.breadcrumbs-bar .woocommerce-breadcrumb a:hover {
    color: var(--tb-theme-color);
    text-decoration: underline;
}
.breadcrumbs-location span,
.breadcrumbs-bar .woocommerce-breadcrumb span {
    color: var(--tb-theme-color);
    font-weight: bold;
}

/* Padding-bottom dla breadcrumbs tylko na zwykłych stronach (nie na produktach, sklepie, kategoriach) */
body.page:not(.woocommerce-page):not(.woocommerce) .breadcrumbs-bar {
    padding-bottom: 10px;
}

/* Breadcrumbs - centered variant for tkanina and TOP 10 pages */
.breadcrumbs-bar.breadcrumbs-tkanina {
    padding: 15px 0 10px 0;
}

.breadcrumbs-bar.breadcrumbs-tkanina .breadcrumbs-container.breadcrumbs-centered {
    display: block;
    text-align: center;
    padding: 0;
    gap: 0;
}

.breadcrumbs-bar.breadcrumbs-tkanina .breadcrumbs-container.breadcrumbs-centered .woocommerce-breadcrumb {
    display: inline-flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    width: auto;
}

@media (max-width: 1200px) {
    .breadcrumbs-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
        padding: 0 10px;
    }
    .breadcrumbs-title {
        margin-top: 10px;
    }
}
.breadcrumbs-bar.breadcrumbs-v1
 {
    padding: 10px 0;
}
/* === WPBakery ROW === */
.vc_row, .vc_row.vc_row-fluid, .wpb_row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.vc_row > .vc_column_container > .vc_column-inner,
.vc_row.vc_row-has-fill > .vc_column_container > .vc_column-inner,
.vc_row > .wpb_column > .vc_column-inner,
.vc_row.vc_row-has-fill > .wpb_column > .vc_column-inner {
    max-width: var(--content-max-width);
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
}
.row-fullwidth > .vc_column_container > .vc_column-inner {
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
main, .main-content, .main-content-wrapper, .wpb-content-wrapper, #content {
    max-width: var(--content-max-width) !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

/* Padding top dla zwykłych stron (pages) */
body.page main,
body.page .main-content {
    padding-top: 20px;
}
@media (max-width: 1200px) {
    .vc_row > .vc_column_container > .vc_column-inner,
    .vc_row.vc_row-has-fill > .vc_column_container > .vc_column-inner,
    .vc_row > .wpb_column > .vc_column-inner,
    .vc_row.vc_row-has-fill > .wpb_column > .vc_column-inner,
    main, .main-content, .main-content-wrapper, .wpb-content-wrapper, #content,
    .breadcrumbs-container, .woocommerce-breadcrumb, .container-content {
        max-width: 100% !important;

    }
}
@media (max-width: 900px) {
    .container-main { padding: 0 10px; }
    .header-inner { flex-direction: column; height: auto; gap: 10px; }
    .main-menu { flex-direction: column; gap: 18px; }
    .header-icons { justify-content: center; min-width: 0; gap: 18px; }
    .logo img { height: 50px; }
    .breadcrumbs-container { padding: 0 10px; }
}

/* === FOOTER: GÓRNA CZĘŚĆ (widgety) === */
.footer-widgets-bg {
    width: 100%;
    background: #f5f6ff;
    margin: 25px 0 0 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Dekoracyjne krzesło po lewej stronie */
.footer-widgets-bg::before {
    content: '';
    position: absolute;
    left: -80px;
    bottom: 0;
    width: 280px;
    height: 350px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.6) 20%,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0.2) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    clip-path: polygon(
        30% 0%, 70% 0%, 65% 15%, 75% 15%, 75% 45%,
        85% 45%, 85% 55%, 75% 55%, 75% 100%,
        25% 100%, 25% 55%, 15% 55%, 15% 45%,
        25% 45%, 25% 15%, 35% 15%
    );
    transform: rotate(-12deg);
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

/* Dekoracyjny fotel po prawej stronie */
.footer-widgets-bg::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: 0;
    width: 260px;
    height: 320px;
    background: linear-gradient(225deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.6) 25%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.5) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    clip-path: polygon(
        25% 20%, 75% 20%, 70% 30%, 80% 30%, 80% 50%,
        75% 50%, 75% 100%, 25% 100%, 25% 50%,
        20% 50%, 20% 30%, 30% 30%
    );
    transform: rotate(15deg);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.footer-widgets {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 40px 15px 30px 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
    gap: 36px;
    position: relative;
    z-index: 2;
}
.footer-widget-main {
    flex: 0 0 40%;
    max-width: 40%;
    min-width: 210px;
    color: #323232;
}
.footer-widget {
    flex: 0 0 20%;
    max-width: 20%;
    min-width: 170px;
    color: #323232;
}
.footer-widget h4,
.footer-widget-main h4 {
    color: #000;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 13px;
    margin-top: 0;
}

/* Wyrównanie nagłówków stopki z listami menu */
.footer-widget .menu,
.footer-widget-main .menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-widget .menu li,
.footer-widget-main .menu li {
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

.footer-widget .menu li a,
.footer-widget-main .menu li a {
    display: inline-block;
    padding: 2px 0;
}
.footer-widget a,
.footer-widget-main a {
    color: #323232;
    text-decoration: none;
    transition: color .2s;
}
.footer-widget a:hover,
.footer-widget-main a:hover {
    color: var(--tb-theme-color-hover);
    text-decoration: underline;
}
@media (max-width: 1200px) {
    .footer-widget-main, .footer-widget {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
    .footer-widgets {
        flex-direction: column;
        gap: 25px;
        padding: 24px 10px 18px 10px;
    }

    /* Ukryj dekoracyjne meble na mobilnych */
    .footer-widgets-bg::before,
    .footer-widgets-bg::after {
        display: none;
    }
}

/* === FOOTER: DOLNA BELKA === */
.footer-bottom {
    width: 100%;
    background: #0b1369;
    padding: 16px 0;
    margin: 0;
}
.footer-bottom-inner {
    max-width: var(--main-max-width);
    margin: 0 auto;
    padding: 0 var(--main-side-padding);
    color: #fff;
    font-size: 10pt;
    text-align: center;
    letter-spacing: 0.03em;
}
@media (max-width: 900px) {
    .footer-bottom-inner {
        padding: 0 10px;
    }
}


/* --- RESPONSYWNOŚĆ: Finalna blokada wszystkiego co nie powinno być na mobile --- */
@media (max-width: 990px) {
    .main-menu, .header-nav, .nav-main,
    .mega-menu-parent > .sub-menu,
    .podstawowemenu > .sub-menu {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}


/* --- STICKY FOOTER: wersja bez dwóch suwaków, w pełni responsywna --- */
html, body {
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;  /* KLUCZOWE - blokuje poziomy suwak */
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 0 !important;
}
#page-wrap {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0; /* bardzo ważne na mobile! */
    width: 100%;
    box-sizing: border-box;
}
.footer-outer {
    flex-shrink: 0;
    width: 100%;
    background: #fff;
    z-index: 11;
    position: relative;
}

@media (max-width: 1000px) {
    .shop-sidebar {
        display: none !important;
    }
    .shop-products {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
}
.margin40 {margin-top: 40px;}



ul.sub-menu li {
    padding-left: 10px;

}
@media (max-width: 990px) {
    .header-rabat-info {
        display: none !important;
    }
}

@media (min-width: 991px) {
  .header-inner.mobile-header {
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
  }
}
@media (min-width: 991px) {
  nav.nav-mobile {
    display: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
  }
}

/* ==========================================
   ARCHIWUM TKANIN & SINGLE TKANINA
   ========================================== */

/* Archive Tkanin - Wrapper */
.tkaniny-archive-wrapper {
    width: 100%;
    background: #fff;
    padding: 40px 0;
}

.tkaniny-archive-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Archive Header */
.tkaniny-archive-header {
    text-align: center;
    margin-bottom: 25px;
}

.tkaniny-archive-title {
    font-size: 32px;
    color: #000;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.tkaniny-archive-description {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Filters Section */
.tkaniny-archive-filters {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Inner wrapper with consistent padding like header */
.tkaniny-filters-inner {
    padding: 30px 15px;
}

.tkaniny-filters-form {
    display: flex;
    flex-direction: column;
}

/* Search Bar */
.tkaniny-filter-search {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tkaniny-filter-search form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tkaniny-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.tkaniny-search-input:focus {
    outline: none;
    border-color: var(--tb-theme-color);
}

.tkaniny-search-submit {
    padding: 12px 20px;
    background: var(--tb-theme-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tkaniny-search-submit:hover {
    background: var(--tb-theme-color-hover);
}

.tkaniny-search-submit svg {
    width: 20px;
    height: 20px;
}

/* Filters Row - filters + search button */
.tkaniny-filters-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* Left Side: Filter Columns Container */
.tkaniny-filter-columns-container {
    flex: 1;
    min-width: 0;
}

/* Right Side: Search Container */
.tkaniny-search-container {
    flex-shrink: 0;
    width: 54px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/* Archive Search Toggle Button - Blue with icon */
.tkaniny-archive-search-toggle {
    width: 54px;
    height: 44px;
    background: var(--tb-theme-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.tkaniny-archive-search-toggle:hover {
    background: var(--tb-theme-color-hover);
}

.tkaniny-archive-search-toggle.active {
    background: var(--tb-theme-color-hover);
}

.tkaniny-archive-search-toggle svg {
    width: 20px;
    height: 20px;
}

/* Expandable Search Bar - Hidden by default, expands below */
.tkaniny-archive-search-expandable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
}

.tkaniny-archive-search-expandable.expanded {
    max-height: 200px;
    margin-top: 15px;
}

.tkaniny-archive-search-expandable .tkaniny-search-form-wrapper {
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

/* Filter Columns Layout - 5 columns within the container */
.tkaniny-filter-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.tkaniny-filter-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Collapsible Filter Groups */
.tkaniny-filter-collapsible {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.tkaniny-filter-group-title {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin: 0;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
    user-select: none;
}

.tkaniny-filter-group-title:hover {
    background: #f5f5f5;
}

.tkaniny-filter-group-title svg:first-child {
    width: 18px;
    height: 18px;
    color: #000;
    flex-shrink: 0;
}

/* Ikona producenta - czarna zamiast niebieskiej */
.tkaniny-filter-column:first-child .tkaniny-filter-group-title svg:first-child {
    color: #000;
}

.tkaniny-filter-group-title span {
    flex: 1;
}

.tkaniny-filter-arrow {
    width: 14px;
    height: 14px;
    color: #666;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.tkaniny-filter-collapsible.expanded .tkaniny-filter-arrow {
    transform: rotate(180deg);
}

.tkaniny-filter-options-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tkaniny-filter-collapsible.expanded .tkaniny-filter-options-wrapper {
    max-height: 500px;
    overflow-y: auto;
}

.tkaniny-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 15px;
}

.tkaniny-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.tkaniny-filter-option input[type="checkbox"],
.tkaniny-filter-option input[type="radio"] {
    cursor: pointer;
    flex-shrink: 0;
}

.tkaniny-filter-option span {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

/* Filter Actions */
.tkaniny-filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.tkaniny-filter-actions-left {
    display: flex;
    gap: 12px;
}

.tkaniny-filter-actions-right {
    display: flex;
}

.tkaniny-filter-apply {
    padding: 6px 30px;
    background: var(--tb-theme-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.tkaniny-filter-apply:hover {
    background: var(--tb-theme-color-hover);
}

.tkaniny-filter-clear {
    padding: 6px 30px;
    background: #fff;
    color: var(--tb-theme-color);
    border: 2px solid var(--tb-theme-color);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.tkaniny-filter-clear:hover {
    background: var(--tb-theme-color);
    color: white;
    text-decoration: none;
}

/* TOP 10 Button - Yellow style */
.tkaniny-top10-button {
    padding: 6px 30px;
    background: #FFD700;
    color: #333;
    border: 2px solid #FFD700;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.tkaniny-top10-button:hover {
    background: #2a3392;
    color: #FFF;
    border-color: #2a3392;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Results Section */
.tkaniny-results-header {
    margin-bottom: 20px;
}

.tkaniny-results-count {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.tkaniny-results-count strong {
    color: var(--tb-theme-color);
    font-weight: 700;
}

/* Fabrics Grid */
.tkaniny-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.tkaniny-archive-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tkaniny-archive-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tkaniny-archive-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tkaniny-archive-item-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.tkaniny-archive-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tkaniny-archive-item:hover .tkaniny-archive-item-image img {
    transform: scale(1.05);
}

.tkaniny-archive-item-info {
    padding: 20px;
}

.tkaniny-archive-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
}

.tkaniny-archive-item-producer {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Pagination */
.tkaniny-pagination {
    margin-top: 40px;
    text-align: center;
}

.tkaniny-pagination .page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tkaniny-pagination .page-numbers li {
    display: inline-block;
}

.tkaniny-pagination .page-numbers a,
.tkaniny-pagination .page-numbers span {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.tkaniny-pagination .page-numbers a:hover {
    background: var(--tb-theme-color);
    color: white;
    border-color: var(--tb-theme-color);
}

.tkaniny-pagination .page-numbers .current {
    background: var(--tb-theme-color);
    color: white;
    border-color: var(--tb-theme-color);
}

/* No Results */
.tkaniny-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.tkaniny-no-results p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.tkaniny-no-results .button {
    padding: 12px 30px;
    background: var(--tb-theme-color);
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.tkaniny-no-results .button:hover {
    background: var(--tb-theme-color-hover);
    text-decoration: none;
}

/* ==========================================
   SINGLE TKANINA
   ========================================== */

.tkanina-single-wrapper {
    width: 100%;
    background: #fff;
    padding: 0 0 40px 0;
}

.tkanina-single-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Breadcrumbs */
.tkanina-breadcrumbs,
.producer-breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.tkanina-breadcrumbs a,
.producer-breadcrumbs a {
    color: var(--tb-theme-color);
    text-decoration: none;
}

.tkanina-breadcrumbs a:hover,
.producer-breadcrumbs a:hover {
    text-decoration: underline;
}

.tkanina-breadcrumbs .separator,
.producer-breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.tkanina-breadcrumbs .current,
.producer-breadcrumbs .current {
    color: #333;
}

/* Main Content */
.tkanina-single-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-bottom: 40px;
}

/* Header with Producer */
.tkanina-single-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.tkanina-header-text {
    flex: 1;
}

.tkanina-single-title {
    font-size: 32px;
    color: #000;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* TOP badge inline version (for single fabric title) */
.tkaniny-top-badge-inline {
    display: inline-block;
    position: static;
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    color: #000;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 200, 0, 0.9);
    line-height: 1;
}

.tkanina-producer-name {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.tkanina-producer-link {
    color: var(--tb-theme-color);
    text-decoration: none;
    font-weight: 600;
}

.tkanina-producer-link:hover {
    text-decoration: underline;
}

.tkanina-header-logo {
    flex-shrink: 0;
}

.tkanina-producer-logo {
    max-width: 150px;
    max-height: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Description */
.tkanina-single-description {
    margin-bottom: 30px;
}

.tkanina-single-description h2 {
    font-size: 22px;
    margin-top: 0;
}

/* Colors */
.tkanina-single-colors {
    margin-bottom: 30px;
}

.tkanina-single-colors h2 {
    font-size: 22px;
    margin-top: 0;
}

.tkanina-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.tkanina-color-item {
    text-align: center;
}

.tkanina-color-link {
    display: block;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.tkanina-color-link:hover {
    border-color: var(--tb-theme-color);
}

.tkaniny-color-image-wrapper {
    position: relative;
    width: 100%;
}

.tkaniny-color-image-wrapper .tkaniny-top-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 200, 0, 0.8);
    line-height: 1.2;
}

.tkanina-color-link img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.tkanina-color-name {
    font-size: 14px;
    color: #333;
    margin-top: 8px;
}

/* Specifications */
.tkanina-single-specs {
    margin-bottom: 30px;
}

.tkanina-single-specs h2 {
    font-size: 22px;
    margin-top: 3px;
}

.tkanina-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.tkanina-specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.tkanina-specs-table th,
.tkanina-specs-table td {
    padding: 12px 0;
    text-align: left;
    padding-left: 10px;
}

.tkanina-specs-table th {
    font-weight: 600;
    color: #000;
    width: 40%;
}

.tkanina-specs-table td {
    color: #666;
}

/* Properties */
.tkanina-single-properties {
    margin-bottom: 30px;
}

.tkanina-single-properties h2 {
    font-size: 22px;
    margin-top: 0;
}

.tkanina-properties-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tkanina-property-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f0;
    color: #333;
    border-radius: 20px;
    font-size: 14px;
}

/* Featured Image */
.tkanina-single-image {
    position: sticky;
    top: 20px;
}

.tkanina-single-image a {
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.tkanina-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Related Products */
.tkanina-related-products {
    margin-bottom: 40px;
}

.tkanina-related-products h2 {
    font-size: 26px;
    margin-bottom: 24px;
}

.tkanina-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.tkanina-product-item {
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tkanina-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tkanina-product-item a {
    text-decoration: none;
    color: inherit;
}

.tkanina-product-item h3 {
    font-size: 16px;
    margin: 12px 0 8px 0;
}

.tkanina-product-item .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--tb-theme-color);
}

/* Back Link */
.tkanina-back-link,
.producer-back-link {
    margin-top: 40px;
    text-align: center;
}

.tkanina-back-link .button,
.producer-back-link .button {
    padding: 12px 30px;
    background: var(--tb-theme-color);
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.tkanina-back-link .button:hover,
.producer-back-link .button:hover {
    background: var(--tb-theme-color-hover);
    text-decoration: none;
}

/* ==========================================
   SINGLE PRODUCENT
   ========================================== */

.producer-single-wrapper {
    width: 100%;
    background: #fff;
    padding: 40px 0;
}

.producer-single-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.producer-single-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.producer-header-left {
    flex: 1;
}

.producer-single-title {
    font-size: 36px;
    color: #000;
    margin: 0;
}

.producer-header-right {
    flex-shrink: 0;
}

.producer-single-logo {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.producer-single-description {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.7;
}

.producer-fabrics-section {
    margin-bottom: 40px;
}

.producer-fabrics-title {
    font-size: 26px;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.producer-fabrics-count {
    font-size: 20px;
    color: #666;
    font-weight: 400;
}

.producer-fabrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.producer-fabric-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.producer-fabric-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.producer-fabric-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.producer-fabric-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative; /* For TOP badge positioning */
}

.producer-fabric-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.producer-fabric-item:hover .producer-fabric-image img {
    transform: scale(1.05);
}

.producer-fabric-info {
    padding: 20px;
}

.producer-fabric-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.producer-no-fabrics {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.producer-no-fabrics p {
    font-size: 18px;
    color: #666;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 1200px) {
    .tkaniny-filter-columns {
        grid-template-columns: repeat(3, 1fr);
    }

    .tkaniny-filters-row {
        flex-direction: column;
    }

    .tkaniny-filter-columns-container,
    .tkaniny-search-container {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .tkaniny-archive-filters {
        padding: 20px;
    }

    .tkaniny-filter-columns {
        grid-template-columns: 1fr;
    }

    .tkaniny-filters-row {
        flex-direction: column;
    }

    .tkaniny-filter-columns-container,
    .tkaniny-search-container {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .tkaniny-grid,
    .producer-fabrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .tkanina-single-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tkanina-single-image {
        position: static;
        order: -1;
    }

    .tkanina-single-header,
    .producer-single-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tkanina-producer-logo,
    .producer-single-logo {
        max-width: 120px;
        max-height: 100px;
    }

    .tkanina-colors-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .tkanina-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 600px) {
    .tkaniny-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ==========================================
   TOP 10 RANKING PAGES
   ========================================== */

/* Wrapper */
.top10-ranking-wrapper {
    width: 100%;
    background: #fff;
    padding: 40px 0 60px 0;
}

.top10-ranking-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Navigation Buttons */
.top10-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.top10-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.top10-nav-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.top10-nav-btn:hover {
    background: #e8f1ff;
    border-color: var(--tb-theme-color);
    color: var(--tb-theme-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.top10-nav-btn.active {
    background: var(--tb-theme-color);
    border-color: var(--tb-theme-color);
    color: #fff;
    cursor: default;
}

.top10-nav-btn.active svg {
    color: #fff;
}

/* Header Section */
.top10-ranking-header {
    text-align: center;
    margin-bottom: 50px;
}

.top10-ranking-title {
    font-size: 42px;
    color: #000;
    margin: 0 0 12px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.top10-ranking-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Ranking Content */
.top10-ranking-content {
    margin-bottom: 50px;
}

.top10-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ranking Item */
.top10-ranking-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.top10-ranking-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--tb-theme-color);
}

/* Medal styles */
.top10-ranking-item.gold {
    border-color: #FFD700;
    background: #fff;
}

.top10-ranking-item.silver {
    border-color: #C0C0C0;
    background: #fff;
}

.top10-ranking-item.bronze {
    border-color: #CD7F32;
    background: #fff;
}

/* Position Badge */
.top10-item-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background: #f5f5f5;
    padding: 20px 15px;
    border-right: 2px solid #e0e0e0;
    position: relative;
}

.top10-ranking-item.gold .top10-item-position {
    background: #FFD700;
    border-right-color: #FFD700;
}

.top10-ranking-item.silver .top10-item-position {
    background: #C0C0C0;
    border-right-color: #C0C0C0;
}

.top10-ranking-item.bronze .top10-item-position {
    background: #CD7F32;
    border-right-color: #CD7F32;
}

.position-number {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.top10-ranking-item.gold .position-number,
.top10-ranking-item.silver .position-number,
.top10-ranking-item.bronze .position-number {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.medal-icon {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.9);
}

/* Item Link */
.top10-item-link {
    display: flex;
    align-items: center;
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 15px 20px;
    gap: 25px;
}

.top10-item-link:hover {
    text-decoration: none;
}

.top10-item-link:hover .top10-item-title {
    text-decoration: underline;
}

.top10-item-producer,
.top10-item-filters,
.filter-badge,
.filter-value {
    text-decoration: none !important;
}

/* Item Image */
.top10-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    background: #f5f5f5;
}

.top10-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.top10-ranking-item:hover .top10-item-image img {
    transform: scale(1.1);
}

/* Item Info */
.top10-item-info {
    flex: 1;
    min-width: 0;
}

.top10-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
}

.top10-item-producer {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Item Filters */
.top10-item-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 20px;
    align-content: center;
    min-width: 450px;
    max-width: 550px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.filter-value {
    color: #333;
    font-weight: 500;
}

/* No Data Message */
.top10-no-data {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.top10-no-data svg {
    color: #ccc;
    margin-bottom: 20px;
}

.top10-no-data p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Back Link */
.top10-back-link-top {
    text-align: center;
    margin-bottom: 30px;
}

.top10-back-link {
    text-align: center;
    margin-top: 50px;
}

.button-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 32px;
    background: #fff;
    color: var(--tb-theme-color);
    border: 2px solid var(--tb-theme-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-back svg {
    width: 20px;
    height: 20px;
}

.button-back:hover {
    background: var(--tb-theme-color);
    color: #fff;
    text-decoration: none;
    transform: translateX(-4px);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .top10-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .top10-nav-btn {
        width: 100%;
        justify-content: center;
    }

    .top10-ranking-title {
        font-size: 32px;
    }

    .top10-ranking-subtitle {
        font-size: 16px;
    }

    .top10-ranking-item {
        flex-direction: column;
    }

    .top10-item-position {
        flex-direction: row;
        gap: 12px;
        min-width: auto;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        padding: 15px;
    }

    .top10-ranking-item.gold .top10-item-position,
    .top10-ranking-item.silver .top10-item-position,
    .top10-ranking-item.bronze .top10-item-position {
        border-bottom-color: inherit;
    }

    .position-number {
        font-size: 24px;
    }

    .medal-icon {
        margin-top: 0;
        width: 24px;
        height: 24px;
    }

    .top10-item-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .top10-item-image {
        width: 100%;
        height: 200px;
    }

    .top10-item-filters {
        width: 100%;
        min-width: auto;
        max-width: none;
        grid-template-columns: 1fr;
        padding: 15px 0 0 0;
        border-top: 1px solid #e0e0e0;
    }
}

