/* ==========================================================================
   Sklep: produkt, archiwum, koszyk, moje konto
   ========================================================================== */

/* ---- Okruszki (WooCommerce) ---- */
.breadcrumb { font-size: 14px; line-height: 1.4; letter-spacing: -.2px; color: var(--c-grey); }
.breadcrumb a { color: var(--c-grey); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb { opacity: .9; }

/* ---- Strona produktu ---- */
.pdp { display: block; }
.pdp__main { display: flex; align-items: stretch; padding: 12px; }
.pdp__gallery { flex: 0 1 calc(50% + 233px); max-width: calc(50% + 233px); min-width: 0; }
.pdp__stage { position: relative; aspect-ratio: 1 / 1; background: var(--c-light); overflow: hidden; margin-bottom: 12px; }
.pdp__img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 64px; }
.pdp__thumb { display: block; width: 100%; aspect-ratio: 1; background: var(--c-light); overflow: hidden; opacity: .65; transition: opacity .2s ease; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb:hover, .pdp__thumb.is-active { opacity: 1; }

.pdp__summary { flex: 0 0 450px; width: 450px; max-width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 0 32px 32px; }
.pdp__intro { display: flex; flex-direction: column; gap: 20px; padding-top: 0; }
.pdp__title { margin: 0; font-size: 32px; font-weight: 600; line-height: 34px; letter-spacing: .1px; }
.pdp__short { font-size: 16px; line-height: 22px; letter-spacing: -.5px; }
.pdp__short p { margin: 0 0 .8em; }

.pdp__buy { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 20px; padding: 0 0 12px; background: #fff; }
.pdp__price { margin: 0; font-size: 36px; font-weight: 600; line-height: 54px; letter-spacing: -1px; }
.pdp__price ins { text-decoration: none; }
.pdp__price del { font-size: 20px; font-weight: 400; opacity: .55; margin-right: 8px; }
.pdp__price .iworks-omnibus { margin: 0; font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: -.5px; color: #000; }
.pdp__form { display: flex; align-items: stretch; gap: 8px; margin: 0; }
.pdp__stepper { display: flex; align-items: stretch; flex: none; height: 56px; border: 1px solid var(--c-line); background: #fff; }
.pdp__stepper .quantity { display: flex; margin: 0; }
.pdp__stepper .quantity label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pdp__stepper .quantity input, .pdp__stepper .qty {
	width: 52px; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center;
	font-family: var(--f-main); font-size: 17px; font-weight: 500; letter-spacing: 0; -moz-appearance: textfield; appearance: textfield;
}
.pdp__stepper .quantity input::-webkit-outer-spin-button, .pdp__stepper .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__stepper .qty:focus { outline: 0; background: var(--c-light); }
.pdp__stepper-btn { display: flex; align-items: center; justify-content: center; width: 46px; height: 100%; color: #000; transition: background-color .2s ease; }
.pdp__stepper-btn:hover { background: var(--c-light); }
.pdp__stepper-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.pdp__atc {
	display: flex; align-items: center; justify-content: center; gap: 12px; flex: 1; min-width: 0; height: 56px; padding: 0 20px; border: 0; border-radius: 0; background: #000; color: #fff;
	font-family: var(--f-main); font-size: 16px; font-weight: 500; letter-spacing: .1px; transition: background-color .2s ease;
}
.pdp__atc:hover, .pdp__atc:focus-visible { background: var(--c-btn-hover); }
.pdp__atc.is-loading { opacity: .6; pointer-events: none; }
.pdp__atc.is-added { background: #1a7f37; }
.pdp__out { margin: 0; padding: 12px 16px; background: var(--c-light); }
.pdp__perks { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; font-size: 13px; letter-spacing: 0; color: var(--c-grey); }
.pdp__perks li { display: flex; align-items: center; gap: 10px; }

.pdp__more { display: flex; align-items: flex-start; padding: 12px; }
.pdp__content { flex: 0 1 calc(50% + 233px); max-width: calc(50% + 233px); min-width: 0; padding: 12px 12px 12px 37px; letter-spacing: .25px; }
.pdp__content h1, .pdp__content h2, .pdp__content h3 { margin: 0 0 .5em; font-weight: 400; line-height: 1.2; }
.pdp__content h2 { font-size: 28px; }
.pdp__content h3 { font-size: 24px; }
.pdp__content p { margin-bottom: 1em; }
.pdp__content ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.pdp__info { flex: 0 0 450px; width: 450px; padding: 0 32px 32px; }
.pdp__info-title { margin: 0 0 20px; font-size: 28px; font-weight: 400; line-height: 1.2; letter-spacing: -.5px; }
.pdp__meta { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.pdp__meta a { color: var(--c-grey); }
.pdp__meta a:hover { text-decoration: underline; }
.pdp__meta strong { font-weight: 700; margin-right: 4px; }
.pdp__info .woocommerce-product-attributes { width: 100%; margin-bottom: 20px; border-collapse: collapse; font-size: 15px; }
.pdp__info .woocommerce-product-attributes th { text-align: left; font-weight: 700; padding: 6px 12px 6px 0; }
.pdp__info .woocommerce-product-attributes td { padding: 6px 0; color: var(--c-grey); }
.pdp__info .woocommerce-product-attributes td p { margin: 0; }

.related { padding: 64px 12px 12px; }
.related__title { margin-bottom: 24px; font-size: 40px; font-weight: 600; line-height: 1; }

/* ---- Archiwum ---- */
section.archive { padding: 24px 12px 12px; }
.archive__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; margin-bottom: 24px; }
.archive__head .breadcrumb { flex: 0 0 100%; }
.archive__title { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: .1px; }
.archive__count { margin: 0; color: var(--c-grey); font-size: 14px; letter-spacing: 0; }
.archive__sort { margin-left: auto; }
.archive__select { height: 40px; padding: 0 36px 0 14px; border: 0; background: var(--c-light) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font-size: 14px; font-family: var(--f-main); letter-spacing: 0; }
.archive__empty { padding: 48px 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.pagination { margin-top: 48px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: var(--c-light); font-size: 14px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: #000; color: #fff; }

.archive-other { display: flex; flex-wrap: wrap; gap: 12px; padding: 64px 12px 64px; }
.archive-other__cats { flex: 1 1 calc(50% - 6px); min-width: 0; }
.archive-other__title { margin-bottom: 20px; font-size: 40px; font-weight: 600; line-height: 1; }
.archive-other__list { display: flex; flex-direction: column; gap: 4px; }
.archive-other__list a { display: inline-block; padding: 8px 0; font-size: 20px; font-weight: 600; }
.archive-other__list span { font-weight: 400; color: var(--c-grey); }
.archive-other__desc { flex: 1 1 100%; max-width: 640px; letter-spacing: .25px; }
.archive-other__custom { flex: 1 1 calc(50% - 6px); min-width: 0; margin: 0; }
.archive-other__custom img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.archive-other__custom figcaption { margin-top: 20px; font-size: 16px; font-weight: 600; }

/* ---- Tablet / mobile ---- */
@media (max-width: 1024px) {
	.pdp__main { flex-direction: column; padding: 12px; }
	.pdp__gallery { flex: none; max-width: 100%; width: 100%; }
	.pdp__thumbs { margin-bottom: 24px; }
	.pdp__summary { flex: none; width: 100%; padding: 0 0 12px; }
	.pdp__more { flex-direction: column; }
	.pdp__content { flex: none; max-width: 100%; padding: 12px; }
	.pdp__info { width: 100%; padding: 12px; }
}
@media (max-width: 767px) {
	.pdp__title { font-size: 26px; line-height: 1.15; }
	.pdp__price { font-size: 28px; line-height: 1.3; }
	.pdp__buy { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); z-index: 90; }
	.pdp__buy .pdp__perks { display: none; }
	.pdp__price { font-size: 22px; line-height: 1.2; }
	.pdp { padding-bottom: 150px; }
	.related__title, .archive__title, .archive-other__title { font-size: 32px; }
	.archive__sort { margin-left: 0; width: 100%; }
	.archive__select { width: 100%; }
	.archive-other__cats, .archive-other__custom { flex-basis: 100%; }
}
