/*!
Theme Name: marcinpohl
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: marcinpohl
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

marcinpohl is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */
/* --- Naprawa paska Breadcrumbs --- */

/* Reset kontenera */
.breadcrumb-nav .breadcrumb,
.breadcrumb-nav .rank-math-breadcrumb {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    line-height: 1.5;
}

/* Usunięcie marginesów z paragrafu wewnątrz Rank Math */
.breadcrumb-nav p {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
    /* Zapobiega zajmowaniu całej linii */
}

/* Opcjonalnie: Stylizacja linków i separatora */
.breadcrumb-nav a,
.breadcrumb-nav span {
    font-size: 1.2rem;
    /* Dopasuj wielkość czcionki */
    color: #666;
    /* Kolor tekstu */
    vertical-align: middle;
}

/* Wymuszenie układu dla miniaturek (gdy JS jeszcze się nie załadował) */
.product-thumbs-wrap {
    overflow: hidden;
    position: relative;
    max-height: 400px;
    /* Wysokość zbliżona do głównego zdjęcia */
}

.product-thumbs {
    display: flex;
    flex-direction: column;
    /* Pionowo */
    gap: 10px;
}

/* Ukrywamy nadmiarowe miniaturki, jeśli JS nie działa */
.product-thumbs .product-thumb:nth-child(n+5) {
    /* Opcjonalnie: ukryj zdjęcia powyżej 4 sztuk, 
      dopóki skrypt slidera się nie załaduje */
    /* display: none; */
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.themeColor {
    color: #26c;
}

.brand-carousel {
    padding: 2rem 0;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

/* === Wrapper w flexie === */
.mp-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
}

/* === Inputy Tagify === */
.tagify {
    width: 240px !important;
    min-height: 60px;
    max-height: 120px;
    overflow-y: auto;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 13px;
    color: #fff;
    box-sizing: border-box;
}

/* === Tagi – jeden pod drugim, małe i zwarte === */
.tagify__tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #444;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    margin: 2px 0;
    border-radius: 3px;
}

/* === Krzyżyk (×) po PRAWEJ i bez tła === */
.tagify__tag__removeBtn {
    order: 2;
    margin-left: 8px;
    background: none !important;
    color: #bbb;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

/* — Niech nie zasłania tekstu — */
.tagify__tag__removeBtn:hover {
    color: #f00;
    background: none;
}

.tagify__tag>div::before {
    background: white !important;
}

/* === Wewnętrzny input (do wpisywania) === */
.tagify__input {
    color: #fff;
    font-size: 13px;
    min-height: 28px;
}

/* === Placeholder tekstowy (np. „Zastosowanie”) === */
.tagify__input::before {
    content: attr(data-placeholder);
    color: #aaa !important;
    opacity: 0.7;
    font-size: 12px;
    font-style: italic;
}

/* === Dropdown – pasujący styl === */
.tagify__dropdown {
    background: #2a2a2a;
    border: 1px solid #555;
    color: #fff;
    font-size: 13px;
    z-index: 9999;
    padding: 4px 0;
}

.tagify__dropdown__item {
    padding: 6px 12px;
    cursor: pointer;
}

.tagify__dropdown__item--active {
    background: #444;
}

/* === Przycisk Filtruj – dopasowany rozmiarem === */
.mp-filter-wrapper .btn-filter {
    height: 60px;
    font-size: 12px;
    padding: 0 16px;
    background: #e2001a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}


.custom-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.popup-content {
    position: relative;
    max-width: 600px;
    margin: 100px auto;
    background: #fff;
    padding: 30px;
    z-index: 10000;
    border-radius: 8px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.main-navigation {
    display: block;
    width: 100%;
}

.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation ul ul {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    float: left;
    position: absolute;
    top: 100%;
    left: -999em;
    z-index: 99999;
}

.main-navigation ul ul ul {
    left: -999em;
    top: 0;
}

.main-navigation ul ul li:hover>ul,
.main-navigation ul ul li.focus>ul {
    display: block;
    left: auto;
}

.main-navigation ul ul a {
    width: 200px;
}

.main-navigation ul li:hover>ul,
.main-navigation ul li.focus>ul {
    left: auto;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
    display: block;
}

@media screen and (min-width: 37.5em) {

    .menu-toggle {
        display: none;
    }

    .main-navigation ul {
        display: flex;
    }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
    margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
    outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
    margin: 0 0 1.5em;
}

.widget select {
    max-width: 100%;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
    display: block;
}

.post,
.page {
    margin: 0 0 1.5em;
}

.updated:not(.published) {
    display: none;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 1.5em 0 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
    display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
    display: inline-block;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}