/* ==========================================================================
   GM Collin — listing sklepu (archive-product.php): baner, pasek filtrów/sortowania, okruszki, siatka, paginacja.
   Kontener 1600 px jak na stronie głównej; siatka produktów 1200 px, 4 kolumny (tablet 3, mobile 2).
   ========================================================================== */
body .site-main.gmc-shop { max-width: none !important; width: auto; margin: 0; padding: 0; } /* Hello Elementor: body:not([class*=elementor-page-]) .site-main { max-width: 800/1140px } — listing ma własne kontenery */
.gmc-shop { --gmc-shop-max: 1600px; --gmc-shop-grid: 1200px; --gmc-line: #e6e6e6; --gmc-hover: #8a8a8a; --gmc-hover-time: .25s; }
.gmc-shop .gmc-shop-hero__inner, .gmc-shop__breadcrumb, .gmc-shop__products { max-width: var(--gmc-shop-max); margin: 0 auto; padding: 0 24px; }

/* baner */
.gmc-shop-hero { padding: 40px 0 56px; }
.gmc-shop-hero__inner { display: grid; grid-template-columns: 36% 1fr; align-items: center; gap: 48px; }
.gmc-shop-hero__title { margin: 0 0 12px; font-size: 22px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: #3c3c3c; line-height: 1.3; }
.gmc-shop-hero__claim { margin: 0 0 12px; max-width: 460px; font-size: 17px; font-weight: 400; line-height: 1.4; letter-spacing: .01em; color: #090a0c; } /* claim: wyróżniony akapit między H1 a tekstem */
.gmc-shop-hero__text { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.6; color: #6f6f6f; }
.gmc-shop-hero__media { aspect-ratio: 1021 / 390; overflow: hidden; background: #f2f2f2; }
.gmc-shop-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }

.gmc-shop__header { max-width: var(--gmc-shop-max); margin: 0 auto; padding: 48px 24px 32px; text-align: center; }
.gmc-shop__page-title { margin: 0 0 12px; font-size: 22px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: #3c3c3c; }
.gmc-shop__header .term-description { max-width: 640px; margin: 0 auto; font-size: 14px; color: #6f6f6f; }
.gmc-shop-hero__title { display: block; }

/* pasek filtry / sortuj — na całą szerokość, linie góra/dół */
.gmc-shop-bar { border-top: 1px solid var(--gmc-line); border-bottom: 1px solid var(--gmc-line); }
.gmc-shop-bar__inner { display: flex; align-items: stretch; justify-content: space-between; min-height: 64px; }
.gmc-shop-bar__toggle,
.gmc-shop-bar__toggle:hover,
.gmc-shop-bar__toggle:focus {
	appearance: none; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0 40px; min-width: 220px;
	background: transparent !important; border: 0 !important; border-right: 1px solid var(--gmc-line) !important; border-radius: 0; box-shadow: none !important; outline: none;
	font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #1a1a1a; cursor: pointer; transition: color var(--gmc-hover-time);
}
.gmc-shop-bar__toggle:hover { color: var(--gmc-hover); }
.gmc-shop-bar__toggle:focus-visible { outline: 1px solid #1a1a1a; outline-offset: -4px; }
.gmc-shop-bar__toggle[aria-expanded="true"] .gmc-shop-bar__chevron { transform: rotate(180deg); }
.gmc-shop-bar__chevron { transition: transform var(--gmc-hover-time); flex: none; }
.gmc-shop-bar__count { font-style: normal; margin-left: 4px; color: var(--gmc-hover); }
.gmc-shop-bar__sort { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 0 auto; padding: 0 40px; border-left: 1px solid var(--gmc-line); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #1a1a1a; }
.gmc-shop-bar__sort-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gmc-shop-bar .gmc-shop-bar__select,
.gmc-shop-bar .gmc-shop-bar__select:focus { appearance: none; -webkit-appearance: none; margin: 0; padding: 0 22px 0 0; box-sizing: border-box; border: 0 !important; border-radius: 0; background: transparent; box-shadow: none !important; outline: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; min-height: 64px; }
.gmc-shop-bar__sort .gmc-shop-bar__chevron { position: absolute; right: 40px; pointer-events: none; }
.gmc-shop-bar__select:hover { color: var(--gmc-hover); }
.gmc-shop-bar .gmc-shop-bar__select:focus-visible { outline: 1px solid #1a1a1a; outline-offset: -4px; } /* widoczny fokus klawiatury bez zmiany wymiarów */
.gmc-shop-bar__apply-sort { margin-left: 8px; }

/* panel filtrów (rozwijany w dół) */
.gmc-shop-filters { border-top: 1px solid var(--gmc-line); background: #fafafa; }
.gmc-shop-filters[hidden] { display: none; }
.gmc-shop-filters__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 48px; max-width: var(--gmc-shop-max); margin: 0 auto; padding: 36px 40px 8px; }
.gmc-shop-filters__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.gmc-shop-filters__legend { margin: 0 0 14px; padding: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #1a1a1a; }
.gmc-shop-filters__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gmc-shop-filters__item { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: #3c3c3c; line-height: 1.4; }
.gmc-shop-filters__item input { position: absolute; opacity: 0; width: 0; height: 0; }
.gmc-shop-filters__box { flex: none; width: 16px; height: 16px; border: 1px solid #9a9a9a; background: #fff; position: relative; transition: border-color var(--gmc-hover-time), background-color var(--gmc-hover-time); }
.gmc-shop-filters__item:hover .gmc-shop-filters__box { border-color: #1a1a1a; }
.gmc-shop-filters__item input:checked + .gmc-shop-filters__box { background: #1a1a1a; border-color: #1a1a1a; }
.gmc-shop-filters__item input:checked + .gmc-shop-filters__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.gmc-shop-filters__item input:focus-visible + .gmc-shop-filters__box { outline: 1px solid #1a1a1a; outline-offset: 2px; }
.gmc-shop-filters__num { color: #9a9a9a; font-size: 12px; }
.gmc-shop-filters__actions { display: flex; align-items: center; gap: 24px; max-width: var(--gmc-shop-max); margin: 0 auto; padding: 24px 40px 32px; }
.gmc-shop-filters__apply,
.gmc-shop-filters__apply:hover,
.gmc-shop-filters__apply:focus { appearance: none; margin: 0; padding: 13px 36px; border: 1px solid #2b2b2b; border-radius: 0; background: #2b2b2b; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; cursor: pointer; box-shadow: none; transition: background-color var(--gmc-hover-time), color var(--gmc-hover-time); }
.gmc-shop-filters__apply:hover { background: #fff; color: #2b2b2b; }
.gmc-shop-filters__reset { font-size: 13px; color: #6f6f6f; text-decoration: underline; transition: color var(--gmc-hover-time); }
.gmc-shop-filters__reset:hover { color: #1a1a1a; }

/* okruszki */
.gmc-shop__breadcrumb { padding: 56px 24px 48px; text-align: center; }

/* siatka produktów (nadpisanie float-owej siatki WooCommerce) */
.gmc-shop__products { padding-bottom: 96px; }
.gmc-shop .woocommerce-notices-wrapper:empty { display: none; }
.gmc-shop ul.products,
.woocommerce .gmc-shop ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; max-width: var(--gmc-shop-grid); margin: 0 auto; padding: 0; list-style: none; }
.gmc-shop ul.products::before, .gmc-shop ul.products::after { display: none; }
.gmc-shop ul.products li.product,
.woocommerce .gmc-shop ul.products li.product,
.woocommerce-page .gmc-shop ul.products li.product { float: none; width: auto !important; margin: 0 !important; padding: 0; clear: none !important; }
.gmc-shop__description { max-width: 760px; margin: 0 auto 40px; text-align: center; color: #3c3c3c; }
.gmc-shop__empty { max-width: 560px; margin: 0 auto; padding: 56px 0 24px; text-align: center; font-family: "Lato", sans-serif; }
.gmc-shop__empty-title { margin: 0 0 12px; font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: #090A0C; }
.gmc-shop__empty-text { margin: 0 0 28px; font-size: 14px; font-weight: 300; line-height: 1.7; color: #333; }
.gmc-shop__empty-btn, .gmc-shop__empty-btn:focus { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 32px; border: 1px solid #2b2b2b; background: #2b2b2b; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background-color var(--gmc-hover-time), color var(--gmc-hover-time); }
.gmc-shop__empty-btn:hover { background: #fff; color: #2b2b2b; }

/* infinite scroll (JS): paginacja ukryta, wskaźnik ładowania / przycisk awaryjny */
.gmc-shop--infinite .woocommerce-pagination { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gmc-shop__more { text-align: center; padding-top: 40px; min-height: 80px; }
.gmc-shop__more[hidden] { display: none; }
.gmc-shop__loading { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8a8a8a; }
.gmc-shop__loading[hidden], .gmc-shop__load-more[hidden] { display: none; }
.gmc-shop__load-more, .gmc-shop__load-more:hover, .gmc-shop__load-more:focus { appearance: none; margin: 0; padding: 13px 36px; border: 1px solid #2b2b2b; border-radius: 0; background: transparent; color: #2b2b2b; font-size: 13px; font-weight: 700; letter-spacing: .04em; cursor: pointer; box-shadow: none; transition: background-color var(--gmc-hover-time), color var(--gmc-hover-time); }
.gmc-shop__load-more:hover { background: #2b2b2b; color: #fff; }
.gmc-shop__sentinel { height: 1px; }

/* paginacja (fallback bez JS) */
.gmc-shop .woocommerce-pagination { margin-top: 64px; text-align: center; }
.gmc-shop .woocommerce-pagination ul.page-numbers,
.woocommerce .gmc-shop .woocommerce-pagination ul.page-numbers { display: inline-flex; gap: 8px; border: 0; margin: 0; padding: 0; }
.gmc-shop .woocommerce-pagination ul.page-numbers li { border: 0; margin: 0; padding: 0; }
.gmc-shop .woocommerce-pagination .page-numbers,
.woocommerce .gmc-shop .woocommerce-pagination ul.page-numbers li .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid transparent; background: transparent; font-size: 13px; letter-spacing: .04em; color: #3c3c3c; text-decoration: none; transition: color var(--gmc-hover-time), border-color var(--gmc-hover-time); }
.gmc-shop .woocommerce-pagination .page-numbers:hover { color: #1a1a1a; border-color: var(--gmc-line); background: transparent; }
.gmc-shop .woocommerce-pagination .page-numbers.current,
.woocommerce .gmc-shop .woocommerce-pagination ul.page-numbers li .page-numbers.current { border-color: #1a1a1a; color: #1a1a1a; background: transparent; }

@media (max-width: 1024px) {
	.gmc-shop-hero__inner { grid-template-columns: 42% 1fr; gap: 32px; }
	.gmc-shop ul.products, .woocommerce .gmc-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
	.gmc-shop-bar__toggle { padding: 0 24px; min-width: 0; }
	.gmc-shop-bar__sort { padding: 0 24px; }
	.gmc-shop-bar__sort .gmc-shop-bar__chevron { right: 24px; }
	.gmc-shop-filters__groups, .gmc-shop-filters__actions { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 900px) { .gmc-shop-hero__media { aspect-ratio: 16 / 9; } } /* wąski tablet: wyższe zdjęcie — równowaga z blokiem H1 + claim + tekst */
@media (max-width: 767px) {
	.gmc-shop .gmc-shop-hero__inner, .gmc-shop__breadcrumb, .gmc-shop__products { padding: 0 16px; }
	.gmc-shop-hero { padding: 16px 0 40px; }
	.gmc-shop-hero__inner { grid-template-columns: 1fr; gap: 28px; }
	.gmc-shop-hero__media { order: -1; aspect-ratio: 4 / 3; }
	.gmc-shop-hero__title { font-size: 22px; } /* jak baner podstron (blog.css) — ten sam blok H1 → claim → tekst na wszystkich stronach */
	.gmc-shop-hero__claim { max-width: none; }
	.gmc-shop-hero__text { font-size: 15px; max-width: none; }
	.gmc-shop-bar__inner { min-height: 56px; }
	.gmc-shop-bar__toggle { flex: 1 1 50%; justify-content: center; padding: 0 12px; border-right: 1px solid var(--gmc-line) !important; }
	.gmc-shop-bar__sort { flex: 1 1 50%; justify-content: center; margin: 0; padding: 0 12px; border-left: 0; }
	.gmc-shop-bar .gmc-shop-bar__select, .gmc-shop-bar .gmc-shop-bar__select:focus { min-height: 56px; } /* także :focus — inaczej po kliknięciu wracała wysokość desktopowa 64 px i pasek „rósł” */
	.gmc-shop-bar__sort .gmc-shop-bar__chevron { position: static; }
	.gmc-shop-filters__groups { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 8px; }
	.gmc-shop-filters__actions { padding: 16px 16px 24px; }
	.gmc-shop__breadcrumb { padding: 32px 16px 28px; }
	.gmc-shop ul.products, .woocommerce .gmc-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
	.gmc-shop__products { padding-bottom: 56px; }
}

/* Opis SEO na dole listingu (pole „Opis na dole strony (SEO)” w edycji kategorii) */
.gmc-shop__seo { max-width: var(--gmc-shop-max); margin: 0 auto; padding: 0 24px 112px; box-sizing: border-box; } /* odstęp nad sekcją daje padding-bottom listy produktów (96 px); pod sekcją 112 px do stopki; boki jak reszta listingu */
.gmc-shop__seo::before { content: ""; display: block; margin: 0 0 64px; border-top: 1px solid #EBEBEB; }
.gmc-shop__seo-inner { max-width: 920px; margin: 0 auto; font-family: "Lato", sans-serif; font-size: 14px; font-weight: 300; line-height: 1.75; color: #333; }
.gmc-shop__seo-inner h2, .gmc-shop__seo-inner h3, .gmc-shop__seo-inner h4 { margin: 32px 0 12px; font-weight: 500; line-height: 1.3; letter-spacing: .04em; color: #090A0C; }
.gmc-shop__seo-inner h2 { font-size: 18px; text-transform: uppercase; }
.gmc-shop__seo-inner h3 { font-size: 16px; }
.gmc-shop__seo-inner h4 { font-size: 14px; }
.gmc-shop__seo-inner > :first-child { margin-top: 0; }
.gmc-shop__seo-inner p { margin: 0 0 14px; }
.gmc-shop__seo-inner ul, .gmc-shop__seo-inner ol { margin: 0 0 14px; padding-left: 20px; }
.gmc-shop__seo-inner li { margin: 0 0 4px; color: #333; }
.gmc-shop__seo-inner a { color: #090A0C; text-decoration: underline; text-underline-offset: 3px; transition: color .25s ease; }
.gmc-shop__seo-inner a:hover { color: #8a8a8a; }
.gmc-shop__seo-inner strong { font-weight: 700; }
@media (max-width: 767px) { .gmc-shop__seo { padding: 0 16px 72px; } .gmc-shop__seo::before { margin-bottom: 40px; } }
