/*
Theme Name: Alchimica
Theme URI: 
Author: synchronicity.one
Author URI: 
Description: A child of MMP
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.1 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: magna-mater-prima
Text Domain: alchimica
Tags: 
*/

/* Reset marginesow miedzy blokami */
body .wp-site-blocks > *,
.wp-site-blocks > *:where(:not(.alignfull)) {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/*pelna szerokosc elementu jesli potrzeba*/
.max-width-alch {width:100%;}

/*breadcrumbs na calej stronie*/

.breadcrumb-item {
    white-space: nowrap;
}

/* =============================================================================
   RESET GUTENBERG LAYOUTS - USUN AUTOMATYCZNE MARGINESY
   ============================================================================= */

:root :where(.is-layout-constrained) > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.wp-block-template-part :where(.is-layout-constrained) > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/*Ustawianie marginesow miedzy media-text block*/

.wp-block-media-text {
column-gap:20px;
}
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding-left:8%!important; 
    padding-right: 8% !important;
    background-color: #f4f4f4;
    padding-bottom: 5%;
    padding-top: 5%;
}

.wp-block-media-text > .wp-block-media-text__content {padding-right:0;}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Screen reader only content */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
    overflow: hidden;
}

.boxed-header-alch {
    width:1180px !important;
    padding:0!important;
    justify-content: space-between !important;
}

/* Override WordPress inline CSS dla linkow - bardzo wysokie weight */
:root :where(a:where(:not(.wp-element-button))) {
    text-decoration: none !important;
}

:root :where(a:where(:not(.wp-element-button)):hover) {
    text-decoration: underline !important;
    color: var(--wp--preset--color--primary) !important;
}

/* Konkretne typy linkow */
.wp-block-post-title a,
.wp-block-site-title a,
.products-block-post-template a,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    text-decoration: none !important;
}

.wp-block-post-title a:hover,
.wp-block-site-title a:hover,
.products-block-post-template a:hover,
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    text-decoration: underline !important;
}

/* Specjalne kolory hover na czarnym tle */
.has-secondary-background-color a:where(:not(.wp-element-button)):hover,
.site-header a:where(:not(.wp-element-button)):hover {
    color: #ff4757 !important; /* Jasniejszy czerwony dla kontrastu */
}

/* Navigation linki */
.wp-block-navigation a,
.wp-block-page-list a {
    text-decoration: none !important;
}

.wp-block-navigation a:hover,
.wp-block-page-list a:hover {
    text-decoration: underline !important;
}

/* Czarne naglowki zamiast szarych */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-query-title,
.wp-block-post-title {
    color: var(--wp--preset--color--secondary);
}

/* Specificzne dla WooCommerce */
.woocommerce h1,
.woocommerce h2, 
.woocommerce h3,
.entry-title {
    color: var(--wp--preset--color--secondary) !important;
}

/* Tytuly produktow w archiwum - szary kolor */
.products-block-post-template .wp-block-post-title a {
    color: var(--wp--preset--color--contrast) !important;
    font-weight:400!important;
}

/*Sticky header*/

.site-header {
    position:sticky;
    top:0;
    z-index:1000;
}

/* =============================================================================
   SKLEP - ARCHIWA
   ============================================================================= */

/* Opis sklepu i kategorii */
.shop-description,
.category-description {
    background: #fff;
    padding: 0.5rem;
    border-left: 4px solid var(--wp--preset--color--primary);
    margin-bottom: 1rem;
}

.shop-description-content,
.category-description-content {
    font-size: var(--wp--preset--font-size--extra-small);
    line-height: 1.6;
    color: var(--wp--preset--color--contrast);
}

.shop-description-content p {padding:0!important; margin:0!important}

/* Obrazki produktow - responsywne z stala wysokoscia */
.products-block-post-template .wp-block-woocommerce-product-image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
    border-radius: 4px;
}

/*kontener z cena i tytulem*/
.product-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items:flex-start;
    height: 100%;
}

/* =============================================================================
   ARCHIWUM PRODUKTOW - HOVER EFFECTS
   ============================================================================= */

/* Kontener produktu - pozycjonowanie dla animacji */
.products-block-post-template .wp-block-post {
   position: relative;
   overflow: hidden;
   border-radius: 8px;
   transition: all 0.3s ease;
   background: #fff;
}

/* Kontener obrazka - pozycjonowanie dla overlay */
.products-block-post-template .wp-block-woocommerce-product-image {
    position: relative;
}

/* Przycisk - overlay na obrazku */
.products-block-post-template .wp-block-woocommerce-product-button {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    padding: 15px;
    height:55%;
}

/* Wysuwanie przycisku przy hover */
.products-block-post-template .wp-block-post:hover .wp-block-woocommerce-product-button {
   transform: translateY(0);
   opacity: 1;
}

/* Stylowanie przycisku */
.products-block-post-template .wp-block-woocommerce-product-button .wp-block-button__link {
   background: var(--wp--preset--color--primary) !important;
   border-radius: 4px;
   font-weight: 400;
   font-family: var(--wp--preset--font-family--oswald);
   transition: all 0.3s ease;
   width: 100%;
   text-align: center;
   height:40px;
}

.products-block-post-template .wp-block-woocommerce-product-button .wp-block-button__link:hover {
   background: var(--wp--preset--color--secondary) !important;
   text-decoration:none!important;
}

/* =============================================================================
   STRONA GLOWNA
   ============================================================================= */

   .wp-block-search__label {display:none;}
   button.wp-block-search__button {padding-top:8px; padding-bottom:8px;}

/* =============================================================================
   BLOG - archiwa
   ============================================================================= */

   /* ograniczenie szerokosci miniatur w sidebarze latest-posts */
.wp-block-latest-posts__featured-image.alignleft {
  max-width: 33%;
  margin-right: 0.5rem;
}

.wp-block-latest-posts__featured-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* zmniejszenie tytulu w latest-posts w sidebarze */
.wp-block-latest-posts__post-title {
  font-size: var(--wp--preset--font-size--extra-small);
  font-family: var(--wp--preset--font-family--oswald);
  max-width:60%;
}

/* lepszy uklad: kazdy wpis latest-posts flexbox */
.wp-block-latest-posts__list li {
  display: flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items: flex-start;
}

.wp-block-latest-posts__post-date {
  font-size: .6125em;
  width: 100%;
  text-align: right;
}

/* =============================================================================
   CUSTOM GALERIA PRODUKTU - THUMBNAILS + LIGHTBOX
   ============================================================================= */

.alchimica-custom-gallery {
    width: 100%;
    max-width: 512px;
}

.gallery-container {
    display: flex;
    gap: 1rem;
    height: 400px;
}

/* THUMBNAILS - LEWA STRONA */
.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 80px;
    height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.gallery-thumbnails::-webkit-scrollbar {
    width: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--primary, #a11729);
    border-radius: 2px;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumb-item:hover {
    border-color: var(--wp--preset--color--primary, #a11729);
    opacity: 0.8;
}

.thumb-item.active {
    border-color: var(--wp--preset--color--primary, #a11729);
    box-shadow: 0 0 8px rgba(161, 23, 41, 0.3);
}

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

/* GLOWNE ZDJECIE - PRAWA STRONA */
.gallery-main {
    flex: 1;
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.main-image.active {
    opacity: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-image:hover .zoom-icon {
    opacity: 1;
}

/* LIGHTBOX */
.alchimica-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    padding: 5px;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 60px;
    cursor: pointer;
    padding: 20px 15px;
    transition: background 0.3s ease;
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* RESPONSYWNOSC GALERII NA PRODUKCIE*/

@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }
    
    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        height: 80px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 5px;
    }
    
    .gallery-thumbnails::-webkit-scrollbar {
        height: 4px;
        width: auto;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 15px 10px;
    }
    
    .lightbox-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        height: 250px;
    }
    
    .thumb-item {
        width: 60px;
        height: 60px;
    }
    
    .gallery-thumbnails {
        height: 70px;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* LOADING STATES */
.gallery-container img {
    transition: opacity 0.3s ease;
}

.gallery-container img:not([src]) {
    opacity: 0;
}

/* ACCESSIBILITY */
.thumb-item:focus,
.main-image:focus {
    outline: 2px solid var(--wp--preset--color--primary, #a11729);
    outline-offset: 2px;
}

.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* =============================================================================
   Pojedynczy produkt - mini-kalkulator
   ============================================================================= */

   .mini-kalkulator {
        border: 1px solid #e0e0e0;
    }
    .mini-kalkulator h4 {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 10px 0;
        color: var(--wp--preset--color--primary)!important;
    }
    .mini-kalk-opis {
        font-family: var(--wp--preset--font-family--roboto);
        font-weight:300;
        font-size: var(--wp--preset--font-size--extra-small);
        color: var(--wp--preset--color--secondary);
    }
    .mini-kalkulator label {
        display: block; 
        margin-bottom: 5px;
        font-size: var(--wp--preset--font-size--extra-small);
        color: var(--wp--preset--color--secondary);
    }
    .powierzchnia-input:focus {
        outline: none;
        border-color: #a11729;
    }
    #wynik-kalkulatora {
        font-size: 14px;
        line-height: 1.5;
    }

/* =============================================================================
   Produkt - drobne poprawki elementow
   ============================================================================= */

.new-badge.single-product {
    position: absolute;
  left: 39%;
  top: 72px;
}

.product h1.wp-block-post-title {
    font-size: var(--wp--preset--font-size--large);
    color: var(--wp--preset--color--contrast)!important;
}


.woocommerce-variation-price .woocommerce-Price-amount {
    font-family: var(--wp--preset--font-family--oswald);
    color: var(--wp--preset--color--secondary);
    font-size: var(--wp--preset--font-size--large);
}

.wp-block-post-excerpt__excerpt {
  font-size: 15px;
}

.wp-block-woocommerce-product-price {letter-spacing:0!important;}

.single_add_to_cart_button {
    border:none; 
    border-radius:0;
}

/* =============================================================================
   FORCE OSWALD FOR HEADINGS - FIX FONTOW
   ============================================================================= */

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title,
.wp-block-query-title {
    font-family: var(--wp--preset--font-family--oswald) !important;
    font-weight: 400 !important;
    letter-spacing: 0.4px !important;
}

/* WooCommerce product titles */
.woocommerce-product-title,
.wp-block-woocommerce-product-title,
.product_title,
h1.entry-title {
    font-family: var(--wp--preset--font-family--oswald) !important;
    font-weight: 300 !important;
}

/* Archive titles */
.wp-block-query-title,
.archive-title,
.page-title {
    font-family: var(--wp--preset--font-family--oswald) !important;
}

/* =============================================================================
   Produkt - DELIKATNE POPRAWKI ZAKŁADEK WOOCOMMERCE
   ============================================================================= */

/* Nawigacja zakładek */
.woocommerce-tabs .wc-tabs {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 60px;
    list-style: none;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border:none;
    background-color: #ffffff;
}

/*usuniecie borderu pod zakladkami*/
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border:none!important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::after, 
.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
  border: none;
  border-radius:0;
  box-shadow:none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    margin:0;
    padding:0;
}

/* Linki w zakładkach */
.woocommerce-tabs .wc-tabs li a {
    padding: 0.75rem 1.25rem;
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--oswald);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-weight: 300!important;
}

/* Hover effect */
.woocommerce-tabs .wc-tabs li a:hover {
    color: #000000!important;
    text-decoration:none!important;
}

/* Aktywna zakładka */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color:#f8f9fa;
}

.woocommerce-tabs .wc-tabs li.active a {
    color: #a11729!important;
    font-weight: 400!important;
}

/* Zawartość zakładek */
.woocommerce-tabs .wc-tab {
    padding: 1.5rem 0;
}

.woocommerce div.product .woocommerce-tabs .panel {
    background:#f8f9fa;
    padding:2em;
    margin:0;
}

/* Headingi w zakładkach */
.woocommerce-tabs .wc-tab h2 {
    margin-bottom: 1rem;
    margin-top:0;
    color: var(--wp--preset--color--secondary);
    font-family: var(--wp--preset--font-family--oswald);
}

/* Tabela atrybutów */
.woocommerce-tabs .wc-tab table.shop_attributes {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
}

.woocommerce-tabs .wc-tab table.shop_attributes th,
.woocommerce-tabs .wc-tab table.shop_attributes td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.woocommerce-tabs .wc-tab table.shop_attributes th {
    background: var(--wp--preset--color--light);
    font-weight: 500;
    width: 30%;
}

/* Karta produktu PDF Box */
.karta-produktu-box {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.karta-produktu-box .pdf-icon {
    flex-shrink: 0;
}

.karta-produktu-box .pdf-icon svg {
    width:32px;
}

.karta-produktu-box .pdf-info {
    flex: 1;
}

.karta-produktu-box .pdf-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.karta-produktu-box .pdf-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.karta-produktu-box .file-size {
    color: #999;
}

.pdf-download-btn {
    background: #a11729;
    color: white;
    padding: 10px 20px;
    text-decoration: none!important;
    font-size:12px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
}

.pdf-download-btn:hover {
    background: #8a1420 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsywnosc */
@media (max-width: 768px) {
    .karta-produktu-box {
        flex-direction: column;
        text-align: center;
    }
    
    .karta-produktu-box .pdf-info {
        text-align: center;
    }
}

/* Responsywnosc zakladek*/
@media (max-width: 768px) {
    .woocommerce-tabs .wc-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .woocommerce-tabs .wc-tabs li a {
        border-bottom: none;
        border-left: 2px solid transparent;
        padding: 0.5rem 1rem;
    }
    
    .woocommerce-tabs .wc-tabs li a:hover,
    .woocommerce-tabs .wc-tabs li.active a {
        border-left-color: var(--wp--preset--color--primary);
        border-bottom-color: transparent;
    }
}

/*Nalepki na archiwach*/
.new-badge {
    background-color:var(--wp--preset--color--secondary);
    color:var(--wp--preset--color--light);
    font-size: 12px;
    font-family: var(--wp--preset--font-family--oswald);
    padding:0.1rem 0.3rem;
    position:relative;
    top:42px;
    left:74%;
    z-index:2;
    align-self: flex-start;
}

/*Zdjecia na archiwach*/

.product .attachment-woocommerce img {
  height: 335px;
 object-fit:contain !important;
}

li.wp-block-post.product {
    display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom:10px;
}

.wp-container-core-post-template-is-layout-e7fd85f5 {
  gap: 40px;
}

.wp-container-core-columns-is-layout-28f84493 {
    gap:60px;
}

/*swatches*/
.bv-swatch-wrapper {
        display: flex;
        gap: 10px;
        margin: 10px 0 20px 0;
        flex-wrap: wrap;
    }
    
    /* Wszystkie swatche wyglądają tak samo - kwadraciki */
    .bv-swatch-item {
        width: 30px;
        height: 30px;
        border-radius: 0px;
        cursor: pointer;
        border: 2px solid #ddd;
        transition: all 0.2s;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Tekst w pojemnościach */
    .bv-swatch-text {
        background: #f4f4f4;
        font-size: 14px;
        font-weight: 500;
        color: #555;
        padding: 0 5px;
        width: auto;
        min-width: 40px;
    }
    
    /* Hover dla wszystkich */
    .bv-swatch-item:hover {
        border-color: #a11729;
        transform: scale(1.05);
    }
    
    /* Selected dla wszystkich */
    .bv-swatch-item.selected {
        border-color: #a11729;
        box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a11729;
    }
    
    /* Dla pojemności hover zmienia też tło */
    .bv-swatch-text:hover {
        background: #a11729;
        color: #fff;
    }
    
    .bv-swatch-text.selected {
        background: #a11729;
        color: #fff;
    }
    
    /* Labels */
    .swatches-label {
        font-weight: 600;
        margin-bottom: 8px;
        color: #000;
        font-size: 16px;
    }

    /* Niedostępne - przekreślenie */
    .bv-swatch-item.unavailable {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .bv-swatch-item.bv-swatch-color.unavailable::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -2px;
        right: -2px;
        height: 2px;
        background: #e74c3c;
        transform: rotate(-45deg);
        pointer-events: none;
    }

    .bv-swatch-item.bv-swatch-text.unavailable::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -2px;
        right: -2px;
        height: 2px;
        background: #e74c3c;
        transform: rotate(-30deg);
        pointer-events: none;
    }
    
    .bv-swatch-item.unavailable:hover {
        border-color: #ddd;
    }

    /* Ukryj całą tabelę z wariantami */
.variations_form .variations {
    display: none !important;
}

/* Alternatywnie - ukryj tylko selecty ale zostaw przycisk "Wyczyść" widoczny */
.variations_form .variations select {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.variations_form .variations label {
    display: none;
}

/* Przenieś przycisk "Wyczyść" pod swatche */
.variations_form .reset_variations {
    display: inline-block;
    margin-top: 10px;
    color: #a11729;
    text-decoration: underline;
}

.swatches-reset {
    margin-top: 15px;
}

.swatches-reset a {
    color: #a11729;
    text-decoration: underline;
    font-size: 14px;
}

.swatches-reset a:hover {
    text-decoration: none;
}

/* =============================================================================
   SIDEBAR FILTERS - ACCORDION
   ============================================================================= */

.sidebar-filters {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

/* Accordion Header */
.filter-accordion-header {
    background: #fff;
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 400!important;
    color: var(--wp--preset--color--secondary);
    transition: all 0.3s ease;
}

.filter-accordion-header:hover {
    background: #f8f9fa;
    color: var(--wp--preset--color--primary);
}

.filter-accordion-header.active {
    background: var(--wp--preset--color--accent);
    color: white;
}

/* Accordion Icon */
.accordion-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.filter-accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

/* Accordion Content */
.filter-accordion-content {
    max-height: 0;
    overflow: hidden;
    background: white;
    border-top: none;
    border-bottom: 1px solid #f0f0f0;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.filter-accordion-content.active {
    max-height: 100%;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

/* Last accordion item */
.filter-accordion:last-child .filter-accordion-content {
    border-bottom: none;
}

/* =============================================================================
   COLOR SWATCHES IN FILTERS - ARCHIWA
   ============================================================================= */

.color-swatch-filter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.color-swatch-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-swatch-item:hover {
    transform: scale(1.1);
    border-color: var(--wp--preset--color--primary);
}

.color-swatch-item.selected {
    border-color: var(--wp--preset--color--primary);
    border-width: 3px;
}

.color-swatch-item.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* Producent Filter */
.producent-filter-item {
    display: block;
    padding: 8px 0;
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.producent-filter-item:hover {
    color: var(--wp--preset--color--primary);
    padding-left: 10px;
}

/* =============================================================================
   HIERARCHICAL CATEGORIES
   ============================================================================= */

.category-item {
    margin-bottom: 8px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.category-main-link {
    color: var(--wp--preset--color--secondary);
    font-family: var(--wp--preset--font-family--oswald);
    font-size: var(--wp--preset--font-size--small);
    text-decoration: none;
    font-weight: 300;
    flex: 1;
}

.category-main-link:hover {
    color: var(--wp--preset--color--primary);
}

.category-toggle {
    background: var(--wp--preset--color--light);
    color: var(--wp--preset--color--contrast);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.category-toggle:hover {
    background: var(--wp--preset--color--primary);
    color: white;
}

.category-subcats {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 15px;
}

.category-subcats.open {
    max-height: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
}

.subcategory-link {
    display: block;
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    font-family: var(--wp--preset--font-family--oswald);
    font-size: var(--wp--preset--font-size--small);
    font-weight:300;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.subcategory-link:hover {
    color: var(--wp--preset--color--primary);
    padding-left: 7px;
}

.category-simple-link {
    display: block;
    color: var(--wp--preset--color--secondary);
    text-decoration: none;
    font-family: var(--wp--preset--font-family--oswald);
    font-size: var(--wp--preset--font-size--small);
    padding: 8px 0;
    font-weight: 300;
}

.category-simple-link:hover {
    color: var(--wp--preset--color--primary);
}

/*responsywnosc strony*/

@media (max-width: 1220px) {
    .wp-block-group.is-layout-constrained,
    .is-layout-constrained > *,
    main.wp-block-group {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 768px) {

}