/*
Theme Name: Koszulki Patriotyczne 2026
Theme URI: https://koszulkipatriotyczne.pl/
Author: KoszulkiPatriotyczne.pl
Description: Lekki, sprzedażowy motyw WooCommerce przygotowany dla KoszulkiPatriotyczne.pl.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: kp2026
*/

:root {
  --kp-red: #c9162b;
  --kp-red-dark: #a50f21;
  --kp-ink: #151515;
  --kp-muted: #686868;
  --kp-line: #e8e4df;
  --kp-warm: #f6f3ef;
  --kp-white: #fff;
  --kp-radius: 18px;
  --kp-shadow: 0 18px 45px rgba(21, 21, 21, .08);
  --kp-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--kp-ink);
  background: var(--kp-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .kp-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.kp-container { width: min(calc(100% - 40px), var(--kp-width)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.kp-topbar { background: var(--kp-ink); color: #fff; font-size: 13px; letter-spacing: .02em; }
.kp-topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 34px; }
.kp-topbar__item { display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.kp-dot { width: 5px; height: 5px; border-radius: 99px; background: var(--kp-red); }

.kp-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(0,0,0,.07); backdrop-filter: blur(16px); }
.kp-header__inner { min-height: 78px; display: grid; grid-template-columns: 270px 1fr auto; align-items: center; gap: 28px; }
.kp-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.035em; font-size: 19px; line-height: 1.1; }
.kp-brand__mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--kp-red); border-radius: 12px; font-size: 13px; letter-spacing: .06em; box-shadow: 0 8px 20px rgba(201,22,43,.24); }
.kp-brand__text small { display: block; margin-top: 4px; color: var(--kp-muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kp-nav ul { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.kp-nav a { position: relative; padding: 10px 0; font-size: 14px; font-weight: 750; }
.kp-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--kp-red); transition: right .2s ease; }
.kp-nav a:hover::after, .kp-nav .current-menu-item > a::after { right: 0; }
.kp-actions { display: flex; align-items: center; gap: 7px; }
.kp-icon-button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; color: var(--kp-ink); background: transparent; cursor: pointer; transition: background .2s ease, color .2s ease; }
.kp-icon-button:hover { background: var(--kp-warm); color: var(--kp-red); }
.kp-icon-button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.kp-cart-count { position: absolute; top: 4px; right: 3px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 99px; color: #fff; background: var(--kp-red); font-size: 10px; font-weight: 800; }
.kp-menu-toggle { display: none; }

.kp-search-panel { display: none; padding: 14px 0 18px; border-top: 1px solid var(--kp-line); }
.kp-search-panel.is-open { display: block; }
.kp-search-form { display: flex; gap: 10px; }
.kp-search-form input { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--kp-line); border-radius: 12px; outline: none; }
.kp-search-form input:focus { border-color: var(--kp-red); box-shadow: 0 0 0 3px rgba(201,22,43,.1); }

.kp-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--kp-red); border-radius: 12px; color: #fff !important; background: var(--kp-red) !important; font-size: 14px; font-weight: 800; letter-spacing: .01em; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.kp-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--kp-red-dark) !important; border-color: var(--kp-red-dark); transform: translateY(-1px); }
.kp-button--light { color: var(--kp-ink) !important; background: #fff !important; border-color: #fff; }
.kp-button--ghost { color: var(--kp-ink) !important; background: transparent !important; border-color: rgba(21,21,21,.22); }

.kp-hero { overflow: hidden; padding: 48px 0 34px; background: linear-gradient(135deg, #f8f6f3 0%, #fff 52%, #f4ecec 100%); }
.kp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); align-items: center; gap: 68px; min-height: 610px; }
.kp-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--kp-red); font-size: 12px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.kp-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--kp-red); }
.kp-hero h1 { max-width: 680px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 82px); line-height: .98; letter-spacing: -.055em; }
.kp-hero h1 span { color: var(--kp-red); }
.kp-hero__lead { max-width: 600px; margin: 26px 0 30px; color: #4f4f4f; font-size: 18px; }
.kp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kp-hero__meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; color: var(--kp-muted); font-size: 13px; font-weight: 650; }
.kp-hero__meta span { display: flex; align-items: center; gap: 8px; }
.kp-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: var(--kp-ink); font-size: 11px; }
.kp-hero__visual { position: relative; min-height: 570px; }
.kp-hero-card { position: absolute; overflow: hidden; border-radius: 26px; background: #eee; box-shadow: var(--kp-shadow); }
.kp-hero-card img { width: 100%; height: 100%; object-fit: cover; }
.kp-hero-card--main { inset: 0 74px 62px 0; }
.kp-hero-card--small { width: 45%; height: 48%; right: 0; bottom: 0; border: 8px solid #fff; }
.kp-hero-stamp { position: absolute; top: 38px; right: 12px; display: grid; place-items: center; width: 112px; height: 112px; padding: 15px; border-radius: 50%; color: #fff; background: var(--kp-red); text-align: center; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; transform: rotate(7deg); box-shadow: 0 16px 35px rgba(201,22,43,.28); }

.kp-benefits { border-block: 1px solid var(--kp-line); background: #fff; }
.kp-benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.kp-benefit { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 18px 28px; border-right: 1px solid var(--kp-line); }
.kp-benefit:last-child { border-right: 0; }
.kp-benefit__icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; color: var(--kp-red); background: #fbeaec; font-weight: 900; }
.kp-benefit strong { display: block; font-size: 14px; }
.kp-benefit small { display: block; margin-top: 2px; color: var(--kp-muted); font-size: 12px; }

.kp-section { padding: 92px 0; }
.kp-section--warm { background: var(--kp-warm); }
.kp-section__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.kp-section__head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -.035em; }
.kp-section__head p { max-width: 560px; margin: 10px 0 0; color: var(--kp-muted); }
.kp-text-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--kp-ink); font-size: 13px; font-weight: 800; white-space: nowrap; }

.kp-categories { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 18px; }
.kp-category-card { position: relative; overflow: hidden; min-height: 430px; border-radius: var(--kp-radius); color: #fff; background: #242424; box-shadow: var(--kp-shadow); }
.kp-category-card__bg { position: absolute; inset: 0; background-position: center; background-size: cover; transition: transform .45s ease; }
.kp-category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.78) 100%); }
.kp-category-card:hover .kp-category-card__bg { transform: scale(1.04); }
.kp-category-card__content { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 26px; }
.kp-category-card h3 { margin: 0 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.05; }
.kp-category-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 0 0 18px !important; border-radius: 16px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--kp-shadow); }
.woocommerce ul.products li.product a img { aspect-ratio: 4/5; margin: 0 0 17px !important; border-radius: 16px; object-fit: cover; background: #f4f4f4; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 16px !important; color: var(--kp-ink); font-size: 15px !important; line-height: 1.4; }
.woocommerce ul.products li.product .price { padding: 0 16px; color: var(--kp-red) !important; font-size: 15px !important; font-weight: 850; }
.woocommerce ul.products li.product .button { min-height: 42px; margin: 10px 16px 0 !important; padding: 0 16px !important; font-size: 12px; }
.woocommerce span.onsale { z-index: 2; min-width: auto; min-height: auto; margin: 12px !important; padding: 7px 10px !important; border-radius: 8px; background: var(--kp-red) !important; font-size: 11px; line-height: 1; }

.kp-story { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 76px; }
.kp-story__visual { min-height: 520px; border-radius: 28px; background: linear-gradient(145deg, var(--kp-red), #74101d); position: relative; overflow: hidden; }
.kp-story__visual::before { content: "PL"; position: absolute; right: -20px; bottom: -95px; color: rgba(255,255,255,.11); font-family: Georgia, serif; font-size: 360px; font-weight: 900; line-height: 1; }
.kp-story__quote { position: absolute; left: 38px; right: 38px; bottom: 38px; color: #fff; font-family: Georgia, serif; font-size: 35px; line-height: 1.12; }
.kp-story__content h2 { margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(38px, 4vw, 58px); line-height: 1.02; letter-spacing: -.04em; }
.kp-story__content p { color: var(--kp-muted); font-size: 17px; }
.kp-story__list { display: grid; gap: 14px; margin: 28px 0 32px; padding: 0; list-style: none; }
.kp-story__list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }

.kp-cta { padding: 80px 0; color: #fff; background: var(--kp-ink); }
.kp-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.kp-cta h2 { max-width: 720px; margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; }
.kp-cta p { margin: 12px 0 0; color: rgba(255,255,255,.65); }

.kp-page-hero { padding: 62px 0 52px; background: var(--kp-warm); border-bottom: 1px solid var(--kp-line); }
.kp-page-hero h1, .woocommerce-products-header__title { margin: 0; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.04em; }
.kp-breadcrumbs { margin-bottom: 14px; color: var(--kp-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.kp-content { padding: 70px 0 100px; }
.kp-content__article { max-width: 900px; margin-inline: auto; }
.kp-content__article h2, .kp-content__article h3 { font-family: Georgia, serif; line-height: 1.15; }

.kp-shop { padding: 54px 0 100px; }
.kp-shop .woocommerce-products-header { margin-bottom: 36px; }
.kp-shop .term-description { max-width: 780px; color: var(--kp-muted); }
.woocommerce .woocommerce-ordering select, .woocommerce .quantity .qty, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  min-height: 48px; padding: 9px 12px; border: 1px solid var(--kp-line); border-radius: 10px; background: #fff;
}
.woocommerce div.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(380px,.85fr); gap: 62px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: auto !important; }
.woocommerce div.product div.images img { border-radius: 18px; background: var(--kp-warm); }
.woocommerce div.product .product_title { font-family: Georgia, serif; font-size: clamp(34px,4vw,52px); line-height: 1.05; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--kp-red) !important; font-size: 24px !important; font-weight: 900; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; border-bottom: 1px solid var(--kp-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0 !important; background: transparent !important; }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 900px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--kp-red) !important; background: var(--kp-warm) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--kp-red) !important; }
.woocommerce table.shop_table { border-color: var(--kp-line) !important; border-radius: 14px !important; }
.woocommerce-checkout #payment { background: var(--kp-warm) !important; border-radius: 14px !important; }
.woocommerce-checkout #payment div.payment_box { background: #fff !important; }

.kp-footer { color: #ddd; background: #101010; }
.kp-footer__main { display: grid; grid-template-columns: 1.4fr repeat(3, .8fr); gap: 58px; padding: 72px 0 58px; }
.kp-footer .kp-brand { color: #fff; }
.kp-footer__about { max-width: 350px; margin-top: 20px; color: #929292; font-size: 14px; }
.kp-footer h3 { margin: 0 0 18px; color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.kp-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.kp-footer li, .kp-footer a { color: #aaa; font-size: 14px; }
.kp-footer a:hover { color: #fff; }
.kp-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid #2b2b2b; color: #777; font-size: 12px; }

@media (max-width: 1050px) {
  .kp-header__inner { grid-template-columns: 1fr auto; }
  .kp-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 18px 24px 28px; border-top: 1px solid var(--kp-line); background: #fff; box-shadow: var(--kp-shadow); }
  .kp-nav.is-open { display: block; }
  .kp-nav ul { align-items: stretch; flex-direction: column; gap: 2px; }
  .kp-nav a { display: block; padding: 12px; }
  .kp-menu-toggle { display: grid; }
  .kp-hero__grid { grid-template-columns: 1fr 430px; gap: 35px; }
  .kp-benefits__grid { grid-template-columns: repeat(2,1fr); }
  .kp-benefit:nth-child(2) { border-right: 0; }
  .kp-benefit:nth-child(-n+2) { border-bottom: 1px solid var(--kp-line); }
  .kp-categories { grid-template-columns: repeat(2,1fr); }
  .kp-category-card:first-child { grid-column: 1 / -1; }
  .woocommerce ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  body.admin-bar .kp-header { top: 46px; }
  .kp-container { width: min(calc(100% - 28px), var(--kp-width)); }
  .kp-topbar__inner { min-height: 34px; gap: 14px; overflow: hidden; white-space: nowrap; }
  .kp-topbar__item:nth-child(n+3) { display: none; }
  .kp-header__inner { min-height: 68px; }
  .kp-brand { font-size: 16px; }
  .kp-brand__mark { width: 38px; height: 38px; }
  .kp-icon-button { width: 40px; height: 40px; }
  .kp-actions .kp-search-toggle { display: none; }
  .kp-hero { padding-top: 44px; }
  .kp-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .kp-hero h1 { font-size: clamp(46px, 14vw, 66px); }
  .kp-hero__visual { min-height: 440px; }
  .kp-hero-card--main { inset: 0 42px 50px 0; }
  .kp-hero-stamp { width: 88px; height: 88px; top: 22px; font-size: 9px; }
  .kp-hero__meta { gap: 12px 18px; }
  .kp-benefits__grid { grid-template-columns: 1fr; }
  .kp-benefit { border-right: 0; border-bottom: 1px solid var(--kp-line); }
  .kp-benefit:last-child { border-bottom: 0; }
  .kp-section { padding: 66px 0; }
  .kp-section__head { align-items: start; flex-direction: column; }
  .kp-categories { grid-template-columns: 1fr; }
  .kp-category-card:first-child { grid-column: auto; }
  .kp-category-card { min-height: 360px; }
  .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { padding-inline: 10px !important; font-size: 13px !important; }
  .woocommerce ul.products li.product .price { padding-inline: 10px; }
  .woocommerce ul.products li.product .button { display: none !important; }
  .kp-story { grid-template-columns: 1fr; gap: 42px; }
  .kp-story__visual { min-height: 390px; }
  .kp-cta__inner { align-items: start; flex-direction: column; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
  .kp-footer__main { grid-template-columns: 1fr 1fr; gap: 42px 24px; }
  .kp-footer__brand { grid-column: 1 / -1; }
  .kp-footer__bottom { flex-direction: column; }
}

/* 1.1.8 — blog i ostatnie korekty audytu podstron */
.kp-blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.kp-blog-card { overflow: hidden; border: 1px solid #e3ddd6; border-radius: 20px; background: #fff; box-shadow: 0 14px 36px rgba(21,21,21,.055); }
.kp-blog-card__image { display: block; aspect-ratio: 16/10; background: #f3efea; }
.kp-blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.kp-blog-card__body { padding: 24px; }
.kp-blog-card__body time { color: var(--kp-red); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.kp-blog-card__body h2 { margin: 9px 0 12px; font-size: 25px; }
.kp-blog-card__body h2 a { color: var(--kp-ink); }
.kp-blog-card__more { display: inline-block; margin-top: 8px; }
.kp-blog-empty { max-width: 760px; padding: 50px; border: 1px solid #e3ddd6; border-radius: 24px; background: #faf8f5; box-shadow: 0 14px 36px rgba(21,21,21,.055); }
.kp-blog-empty h2 { margin-top: 8px; }
@media (max-width: 900px) { .kp-blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .kp-blog-grid { grid-template-columns: 1fr; } .kp-blog-empty { padding: 30px 22px; } }

/* 1.2.0 — autorski znak tarczowy KP i poprawne stany interakcji */
.kp-brand__mark {
  position: relative; display: block !important; width: 49px; height: 56px; flex: 0 0 49px;
  padding: 0; border-radius: 0 !important; color: inherit !important; background: transparent !important;
  box-shadow: none !important; transform-origin: 50% 30%; transition: transform .22s ease, filter .22s ease;
}
.kp-brand__mark::before { content: none !important; }
.kp-brand__mark svg { display: block !important; width: 100%; height: 100%; overflow: visible; border-radius: 0; filter: drop-shadow(0 9px 12px rgba(174,13,39,.20)); }
.kp-mark-tile { fill: #d11132; transition: fill .22s ease; }
.kp-mark-depth { fill: #b80e2a; }
.kp-mark-letter { fill: #fff; }
.kp-mark-crown { fill: none; stroke: rgba(255,255,255,.46); stroke-width: 2; stroke-linecap: round; }
.kp-brand:hover .kp-brand__mark { transform: translateY(-2px) rotate(-2deg); filter: saturate(1.08); }
.kp-brand:hover .kp-mark-tile { fill: #df1538; }
.kp-brand__text strong, .kp-brand__text em { transition: color .2s ease; }
.kp-brand:hover .kp-brand__text strong { color: #111; }
.kp-brand:hover .kp-brand__text em { color: #d11132; }
.kp-footer .kp-brand__mark svg { filter: none; }

/* 1.2.3 — karta produktu: zakup bez przewijania i czytelne rekomendacje */
.single-product .woocommerce div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; }
.single-product .woocommerce div.product > .summary { grid-column: 2; grid-row: 1; padding: 30px; }
.single-product .woocommerce div.product > .woocommerce-tabs,
.single-product .woocommerce div.product > .related.products,
.single-product .woocommerce div.product > .upsells.products { grid-column: 1 / -1; width: 100%; }
.single-product .woocommerce div.product .product_title { margin-bottom: 14px; font-size: clamp(30px,2.6vw,38px); line-height: 1.06; }
.single-product .woocommerce div.product p.price { margin-bottom: 15px; font-size: 25px !important; }
.single-product .woocommerce-product-details__short-description { margin-bottom: 16px; font-size: 14px; line-height: 1.55; }
.single-product .woocommerce div.product form.cart .variations { margin-bottom: 12px; }
.single-product .related.products, .single-product .upsells.products { margin-top: 4px; }
.single-product .related.products > h2, .single-product .upsells.products > h2 { margin-bottom: 22px; font-family: Georgia,serif; font-size: clamp(30px,3vw,42px); }
.single-product .related.products ul.products, .single-product .upsells.products ul.products { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 22px !important; width: 100% !important; }
.single-product .related.products ul.products li.product, .single-product .upsells.products ul.products li.product { width: auto !important; max-width: none !important; margin: 0 !important; }
@media (max-width: 1050px) {
  .single-product .woocommerce div.product { grid-template-columns: 1fr; }
  .single-product .woocommerce div.product > .woocommerce-product-gallery,
  .single-product .woocommerce div.product > .summary,
  .single-product .woocommerce div.product > .woocommerce-tabs,
  .single-product .woocommerce div.product > .related.products,
  .single-product .woocommerce div.product > .upsells.products { grid-column: 1; grid-row: auto; }
  .single-product .woocommerce div.product > .summary { position: static; }
  .single-product .related.products ul.products, .single-product .upsells.products ul.products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 560px) {
  .single-product .related.products ul.products, .single-product .upsells.products ul.products { grid-template-columns: 1fr !important; }
}

/* 1.4.6 — ostateczny, w pełni widoczny panel filtrów desktop */
@media (min-width: 1051px) {
  .kp-shop-filters {
    top: 104px !important;
    max-height: calc(100vh - 120px) !important;
    padding: 16px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d8cfc7 transparent;
  }
  body.admin-bar .kp-shop-filters {
    top: 136px !important;
    max-height: calc(100vh - 152px) !important;
  }
  .kp-shop-filters__eyebrow { margin-bottom: 2px !important; font-size: 9px !important; line-height: 1.35 !important; }
  .kp-shop-filters h2 { margin: 0 0 10px !important; font-size: 24px !important; }
  .kp-shop-filter-form { gap: 12px !important; }
  .kp-shop-filter-form legend { margin-bottom: 5px !important; font-size: 10px !important; line-height: 1.25 !important; }
  .kp-filter-options { gap: 3px !important; }
  .kp-filter-options span { min-height: 32px !important; padding: 4px 9px !important; border-radius: 8px !important; font-size: 12px !important; line-height: 1.15 !important; }
  .kp-filter-options span::before { width: 7px !important; height: 7px !important; margin-right: 7px !important; }
  .kp-filter-reset { min-height: 34px !important; padding: 5px 9px !important; font-size: 12px !important; }
}

/* 1.4.2 — filtrowanie katalogu, SKU i poprawny nagłówek mobilny */
.kp-shop-filter-form { display: grid; gap: 22px; }
.kp-shop-filter-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.kp-shop-filter-form legend { margin-bottom: 10px; color: #171717; font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.kp-filter-options { display: grid; gap: 7px; }
.kp-filter-options label { position: relative; display: block; cursor: pointer; }
.kp-filter-options input { position: absolute; opacity: 0; pointer-events: none; }
.kp-filter-options span { display: flex; align-items: center; min-height: 42px; padding: 9px 12px; border: 1px solid #e4ddd6; border-radius: 10px; color: #353535; background: #fff; font-size: 13px; font-weight: 750; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.kp-filter-options span::before { width: 8px; height: 8px; margin-right: 9px; border: 2px solid #c8beb5; border-radius: 50%; content: ""; }
.kp-filter-options label:hover span { border-color: #d11132; transform: translateX(2px); }
.kp-filter-options input:focus-visible + span { outline: 3px solid rgba(209,17,50,.2); outline-offset: 2px; }
.kp-filter-options input:checked + span { color: #fff; border-color: #d11132; background: #d11132; box-shadow: 0 7px 18px rgba(209,17,50,.16); }
.kp-filter-options input:checked + span::before { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 2px #d11132; }
.kp-filter-actions { display: grid; gap: 8px; }
.kp-filter-submit, .kp-filter-reset { display: flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 850; text-align: center; }
.kp-filter-submit { border: 1px solid #171717; color: #fff; background: #171717; cursor: pointer; }
.kp-filter-submit:hover { border-color: #d11132; background: #d11132; }
.kp-js .kp-filter-submit { display: none; }
.kp-shop-layout { transition: opacity .18s ease; }
.kp-shop-layout.is-loading { opacity: .42; pointer-events: none; }
.kp-shop-layout.is-loading .kp-shop-results { position: relative; min-height: 280px; }
.kp-shop-layout.is-loading .kp-shop-results::after { position: absolute; top: 70px; left: 50%; width: 34px; height: 34px; margin-left: -17px; border: 3px solid rgba(209,17,50,.18); border-top-color: #d11132; border-radius: 50%; content: ""; animation: kp-filter-spin .7s linear infinite; }
@keyframes kp-filter-spin { to { transform: rotate(360deg); } }
.kp-filter-reset { border: 1px solid #ded6cf; color: #555; background: #f7f4f1; }
.kp-filter-reset:hover { color: #d11132; border-color: #d11132; }
.kp-product-card-sku { display: block; min-height: 17px; margin: 5px 0 2px; color: #777; font-size: 10px; font-weight: 750; letter-spacing: .035em; }
.single-product .woocommerce div.product .summary > .product_meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 0 0 14px; padding: 10px 13px; border: 1px solid #e5ded7; border-radius: 10px; color: #666; background: #f8f5f2; font-size: 11px; }
.single-product .summary > .product_meta .sku_wrapper { color: #171717; font-weight: 850; }
@media (min-width: 1051px) {
  .kp-shop-filters {
    top: 104px;
    max-height: calc(100vh - 120px);
    padding: 20px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d8cfc7 transparent;
  }
  body.admin-bar .kp-shop-filters { top: 136px; max-height: calc(100vh - 152px); }
  .kp-shop-filters h2 { margin-bottom: 13px; font-size: 25px; }
  .kp-shop-filter-form { gap: 15px; }
  .kp-shop-filter-form legend { margin-bottom: 7px; font-size: 11px; }
  .kp-filter-options { gap: 4px; }
  .kp-filter-options span { min-height: 36px; padding: 6px 10px; }
  .kp-filter-reset { min-height: 38px; padding: 7px 10px; }
}
@media (max-width: 600px) {
  .kp-topbar { display: none !important; }
  .kp-header { top: 0 !important; }
  body.admin-bar .kp-header { top: 46px !important; }
}

/* 1.2.5 — selektory zgodne z klasami body WooCommerce */
body.single-product.woocommerce div.product > .woocommerce-product-gallery { grid-column: 1 !important; grid-row: 1 !important; }
body.single-product.woocommerce div.product > .summary { grid-column: 2 !important; grid-row: 1 !important; padding: 28px !important; }
body.single-product.woocommerce div.product > .woocommerce-tabs,
body.single-product.woocommerce div.product > .related.products,
body.single-product.woocommerce div.product > .upsells.products { grid-column: 1 / -1 !important; width: 100% !important; max-width: none !important; }
body.single-product.woocommerce div.product .product_title { margin-bottom: 12px !important; font-size: clamp(30px,2.6vw,38px) !important; line-height: 1.06 !important; }
body.single-product.woocommerce div.product p.price { margin-bottom: 12px !important; font-size: 25px !important; }
body.single-product.woocommerce .woocommerce-product-details__short-description { margin-bottom: 14px !important; font-size: 14px; line-height: 1.5; }
@media (max-width: 1050px) {
  body.single-product.woocommerce div.product { grid-template-columns: minmax(0,1fr) !important; }
  body.single-product.woocommerce div.product > .woocommerce-product-gallery,
  body.single-product.woocommerce div.product > .summary,
  body.single-product.woocommerce div.product > .woocommerce-tabs,
  body.single-product.woocommerce div.product > .related.products,
  body.single-product.woocommerce div.product > .upsells.products { grid-column: 1 !important; grid-row: auto !important; }
  body.single-product.woocommerce div.product > .summary { position: static !important; }
}

/* 1.3.0 — premium fashion monogram KP */
.kp-brand__mark { width: 57px !important; height: 48px !important; flex-basis: 57px !important; }
.kp-brand__mark svg { overflow: visible !important; filter: none !important; }
.kp-ligature-k, .kp-ligature-p { fill: none; stroke-width: 5; stroke-linecap: square; stroke-linejoin: miter; }
.kp-ligature-k { stroke: #171717; }
.kp-ligature-p { stroke: #c8102e; transition: stroke .2s ease; }
.kp-ligature-line-a, .kp-ligature-line-b { fill: none; stroke-width: 2.4; }
.kp-ligature-line-a { stroke: #171717; }
.kp-ligature-line-b { stroke: #c8102e; }
.kp-brand:hover .kp-brand__mark { transform: translateY(-1px); filter: none; }
.kp-brand:hover .kp-ligature-p, .kp-brand:hover .kp-ligature-line-b { stroke: #a90d27; }
.kp-brand__text { column-gap: 6px; }
.kp-brand__text strong, .kp-brand__text em { font-family: Georgia,"Times New Roman",serif; font-weight: 700; letter-spacing: -.045em; }
.kp-brand__text small { font-family: Arial,sans-serif; font-weight: 750; letter-spacing: .2em; }
.kp-footer .kp-ligature-k, .kp-footer .kp-ligature-line-a { stroke: #fff; }
.kp-footer .kp-ligature-p, .kp-footer .kp-ligature-line-b { stroke: #e21b3f; }
@media (max-width: 780px) { .kp-brand__mark { width: 47px !important; height: 40px !important; flex-basis: 47px !important; } }

/* 1.3.1 — panel zakupu nie nachodzi na rekomendacje podczas przewijania */
body.single-product.woocommerce div.product > .summary { position: static !important; align-self: start; }

/* 1.3.3 — szybki powrót na górę */
.kp-back-to-top {
  position: fixed; right: 22px; bottom: 118px; z-index: 150; display: grid; place-items: center;
  width: 50px; height: 50px; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  color: #fff; background: #171717; box-shadow: 0 10px 28px rgba(0,0,0,.22); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}
.kp-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.kp-back-to-top:hover, .kp-back-to-top:focus-visible { background: var(--kp-red); outline: none; }
.kp-back-to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 780px) { .kp-back-to-top { right: 16px; bottom: 112px; width: 46px; height: 46px; } }

/* 1.3.4 — bezpieczne hovery logo na ciemnej stopce */
.kp-footer .kp-brand:hover .kp-brand__text strong { color: #fff !important; }
.kp-footer .kp-brand:hover .kp-brand__text em { color: #ff3158 !important; }
.kp-footer .kp-brand:hover .kp-ligature-k,
.kp-footer .kp-brand:hover .kp-ligature-line-a { stroke: #fff !important; }
.kp-footer .kp-brand:hover .kp-ligature-p,
.kp-footer .kp-brand:hover .kp-ligature-line-b { stroke: #ff3158 !important; }
.kp-maker__logo { padding: 5px 7px; border-radius: 8px; transition: background .2s ease, transform .2s ease; }
.kp-maker__logo:hover, .kp-maker__logo:focus-visible { background: rgba(255,255,255,.08); transform: translateY(-1px); outline: none; }
.kp-maker__logo:hover img, .kp-maker__logo:focus-visible img { opacity: 1; filter: none; }
.kp-footer .kp-mark-tile { fill: #d11132; }
.kp-footer .kp-mark-depth { fill: #9f0c24; }

.kp-button:hover, .kp-button:focus-visible,
.woocommerce a.button:hover, .woocommerce a.button:focus-visible,
.woocommerce button.button:hover, .woocommerce button.button:focus-visible,
.woocommerce input.button:hover, .woocommerce input.button:focus-visible {
  color: #fff !important; background: var(--kp-red-dark) !important; border-color: var(--kp-red-dark) !important;
}
.kp-button--ghost:hover, .kp-button--ghost:focus-visible { color: #fff !important; background: var(--kp-red-dark) !important; border-color: var(--kp-red-dark) !important; }
.kp-button--light:hover, .kp-button--light:focus-visible { color: #fff !important; background: var(--kp-red) !important; border-color: var(--kp-red) !important; }
@media (max-width: 780px) { .kp-brand__mark { width: 42px; height: 48px; flex-basis: 42px; } }

/* 1.3.5 — dopracowany poziomy logotyp premium */
.kp-brand.kp-brand--primary,
.kp-brand.kp-brand--footer {
  display: inline-flex; width: min(100%, 310px); line-height: 1; transform: none;
}
.kp-logo { display: block; width: 100%; height: auto; overflow: visible; }
.kp-logo__wing, .kp-logo__rule {
  fill: none; stroke: #cf1230; stroke-linecap: round; stroke-linejoin: round;
}
.kp-logo__wing { stroke-width: 6; }
.kp-logo__rule { stroke-width: 2.5; }
.kp-logo__stem-depth, .kp-logo__arm-depth, .kp-logo__p-depth { fill: none; stroke: #941026; stroke-linecap: round; stroke-linejoin: round; }
.kp-logo__stem-depth { stroke-width: 10; }
.kp-logo__arm-depth { stroke-width: 13; }
.kp-logo__p-depth { stroke-width: 13; }
.kp-logo__stem-face, .kp-logo__arm-face, .kp-logo__p-face { fill: none; stroke: #cf1230; stroke-linecap: round; stroke-linejoin: round; }
.kp-logo__stem-face { stroke-width: 9; }
.kp-logo__arm-face { stroke-width: 11; }
.kp-logo__p-face { stroke-width: 11; }
.kp-logo__p-shine { fill: none; stroke: rgba(255,255,255,.78); stroke-width: 2.3; stroke-linecap: round; }
.kp-logo__wordmark, .kp-logo__pl { fill: #151515; }
.kp-logo__wordmark-red { fill: #cf1230; }
.kp-logo__wordmark text {
  font-family: Montserrat, "Arial Black", Arial, sans-serif; font-size: 23px; font-weight: 900; letter-spacing: 2.1px;
}
.kp-logo__wordmark-red { font-size: 19px !important; letter-spacing: 1.25px !important; }
.kp-logo__tagline {
  fill: #686868; font-family: Montserrat, Arial, sans-serif; font-size: 6.8px; font-weight: 800; letter-spacing: 2.05px;
}
.kp-logo__monogram { transform-origin: 66px 37px; transition: transform .2s ease; }
.kp-logo__wing, .kp-logo__stem-face, .kp-logo__arm-face, .kp-logo__p-face { transition: stroke .2s ease; }
.kp-logo__wordmark-red { transition: fill .2s ease; }
.kp-brand:hover .kp-logo__monogram { transform: translate(2px, 8px) scale(.78) translateY(-1px); }
.kp-brand:hover .kp-logo__wing { stroke: #e0193b; }
.kp-brand:hover .kp-logo__stem-face,
.kp-brand:hover .kp-logo__arm-face,
.kp-brand:hover .kp-logo__p-face { stroke: #e0193b; }
.kp-brand:hover .kp-logo__wordmark-red { fill: #e0193b; }
.kp-footer .kp-logo__wordmark,
.kp-footer .kp-logo__pl { fill: #fff; }
.kp-footer .kp-logo__tagline { fill: #8f8f8f; }
.kp-footer .kp-brand:hover .kp-logo__wordmark,
.kp-footer .kp-brand:hover .kp-logo__pl { fill: #fff; }
@media (max-width: 1180px) { .kp-brand.kp-brand--primary { width: 270px; } }
@media (max-width: 780px) { .kp-brand.kp-brand--primary { width: 235px; } }
@media (max-width: 480px) { .kp-brand.kp-brand--primary { width: 195px; } }

/* 1.4.1 — heraldyczny znak KP ze skrzydłami */
.kp-winged-mark { transform-origin: 60px 38px; transition: transform .2s ease; }
.kp-wing-outline { fill: none; stroke: #7e2132; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kp-wing-fill { fill: #c8123a; stroke: #8f1730; stroke-width: 1.2; stroke-linejoin: round; transition: fill .2s ease; }
.kp-wing-bridge { fill: none; stroke: #7e2132; stroke-width: 2; }
.kp-wing-monogram {
  fill: #8f1730; stroke: #fff; stroke-width: 1.6; paint-order: stroke fill;
  font-family: Georgia,"Times New Roman",serif; font-size: 41px; font-weight: 700; letter-spacing: -1px;
}
.kp-brand:hover .kp-winged-mark { transform: translateY(-1px); }
.kp-brand:hover .kp-wing-fill { fill: #df1743; }
.kp-footer .kp-wing-outline, .kp-footer .kp-wing-bridge { stroke: #efd9de; }
.kp-footer .kp-wing-monogram { fill: #fff; stroke: #101010; }

@media (max-width: 480px) {
  .kp-brand__text small { display: none; }
  .kp-actions { gap: 0; }
  .kp-hero__actions .kp-button { width: 100%; }
  .kp-hero__visual { min-height: 365px; }
  .kp-hero-card--small { width: 48%; }
  .kp-section__head h2 { font-size: 38px; }
  .kp-footer__main { grid-template-columns: 1fr; }
  .kp-footer__brand { grid-column: auto; }
}

/* 1.1 — dopracowany branding, nawigacja i WooCommerce */
.kp-header__inner { grid-template-columns: 250px minmax(0,1fr) auto; gap: 24px; }
.kp-brand { gap: 11px; min-width: 0; letter-spacing: 0; }
.kp-brand__mark { width: 46px; height: 50px; flex: 0 0 46px; padding: 0; border-radius: 0; color: inherit; background: transparent; box-shadow: none; }
.kp-brand__mark svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 12px rgba(21,21,21,.12)); }
.kp-mark-shield { fill: #fff; stroke: #161616; stroke-width: 3; }
.kp-mark-red { fill: var(--kp-red); stroke: #161616; stroke-width: 3; stroke-linejoin: round; }
.kp-mark-eagle { fill: #161616; }
.kp-brand__text { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 4px; white-space: nowrap; font-size: 17px; line-height: 1; }
.kp-brand__text strong { color: var(--kp-ink); font-weight: 950; }
.kp-brand__text em { color: var(--kp-red); font-style: normal; font-weight: 950; }
.kp-brand__text small { grid-column: 1 / -1; margin-top: 7px; font-size: 8.5px; letter-spacing: .18em; }
.kp-footer .kp-brand__text strong { color: #fff; }
.kp-footer .kp-mark-shield { fill: #fff; stroke: #fff; }
.kp-footer .kp-mark-red { stroke: #fff; }

.kp-nav { justify-self: center; }
.kp-nav > ul { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.kp-nav > ul > li { position: relative; }
.kp-nav > ul > li > a { display: flex; align-items: center; min-height: 48px; padding: 0 13px; border-radius: 10px; white-space: nowrap; font-size: 13.5px; font-weight: 800; transition: color .2s ease, background .2s ease; }
.kp-nav > ul > li > a::after { display: none; }
.kp-nav > ul > li:hover > a, .kp-nav > ul > .current-menu-item > a, .kp-nav > ul > .current-menu-ancestor > a { color: var(--kp-red); background: #f8eff0; }
.kp-nav ul ul { position: absolute; z-index: 20; top: calc(100% - 3px); left: 0; display: grid; gap: 3px; width: 270px; margin: 0; padding: 10px; border: 1px solid var(--kp-line); border-radius: 15px; background: #fff; box-shadow: 0 22px 55px rgba(21,21,21,.14); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.kp-nav ul ul::before { content: ""; position: absolute; left: 20px; top: -6px; width: 12px; height: 12px; border-left: 1px solid var(--kp-line); border-top: 1px solid var(--kp-line); background: #fff; transform: rotate(45deg); }
.kp-nav li:hover > ul, .kp-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.kp-nav ul ul li { display: block; }
.kp-nav ul ul a { display: block; padding: 11px 12px; border-radius: 9px; color: #333; font-size: 13px; font-weight: 750; line-height: 1.35; }
.kp-nav ul ul a::after { display: none; }
.kp-nav ul ul a:hover { color: var(--kp-red); background: var(--kp-warm); }

.post-type-archive-product .kp-shop, .tax-product_cat .kp-shop, .tax-product_tag .kp-shop, .single-product .kp-shop { padding: 48px 0 110px; background: #f5f3ef; }
.kp-shop .woocommerce-products-header { position: relative; overflow: hidden; margin-bottom: 30px; padding: 42px 48px; border-radius: 22px; color: #fff; background: linear-gradient(115deg,#151515 0%,#262222 68%,#71101c 100%); }
.kp-shop .woocommerce-products-header::after { content: "PL"; position: absolute; right: 24px; bottom: -65px; color: rgba(255,255,255,.07); font-family: Georgia,serif; font-size: 180px; font-weight: 900; line-height: 1; }
.kp-shop .woocommerce-products-header__title { position: relative; z-index: 1; color: #fff; font-size: clamp(38px,4vw,56px); }
.kp-shop .term-description { position: relative; z-index: 1; max-width: 720px; color: rgba(255,255,255,.72); }
.kp-shop .woocommerce-result-count { margin: 13px 0 30px; color: #666; font-size: 13px; font-weight: 700; }
.kp-shop .woocommerce-ordering { margin: 0 0 30px; }
.kp-shop .woocommerce-ordering select { min-width: 245px; border-color: #d9d4cd; box-shadow: 0 6px 18px rgba(21,21,21,.04); font-weight: 700; }
.woocommerce ul.products { gap: 26px !important; clear: both; }
.woocommerce ul.products li.product { display: flex; overflow: hidden; flex-direction: column; min-width: 0; padding: 11px 11px 18px !important; border: 1px solid #e3ded6; border-radius: 19px; background: #fff; box-shadow: 0 5px 18px rgba(21,21,21,.04); }
.woocommerce ul.products li.product:hover { border-color: #d3cbc1; transform: translateY(-5px); box-shadow: 0 20px 46px rgba(21,21,21,.11); }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: block; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1/1; margin: 0 0 17px !important; border-radius: 13px; object-fit: contain; object-position: center; background: linear-gradient(145deg,#f5f3ef,#fff); transition: transform .28s ease; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.025); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 64px; padding: 0 7px !important; font-size: 14px !important; font-weight: 820; line-height: 1.45; }
.woocommerce ul.products li.product .price { min-height: 25px; padding: 0 7px; font-size: 16px !important; }
.woocommerce ul.products li.product .button { width: calc(100% - 14px); min-height: 44px; margin: 13px 7px 0 !important; border-radius: 10px; }
.woocommerce ul.products li.product .tinv-wraper, .woocommerce ul.products li.product .yith-wcwl-add-to-wishlist { margin: 12px 7px 0 !important; color: #6e6a65; font-size: 12px; }
.woocommerce ul.products li.product .wc-block-components-product-sale-badge, .woocommerce span.onsale { top: 10px !important; right: 10px !important; left: auto !important; margin: 0 !important; box-shadow: 0 7px 18px rgba(201,22,43,.25); }

.single-product .kp-shop > .kp-container { width: min(calc(100% - 40px),1180px); }
.woocommerce div.product { align-items: start; grid-template-columns: minmax(0,1.08fr) minmax(390px,.82fr); gap: 42px; }
.woocommerce div.product div.images { overflow: hidden; margin: 0 !important; padding: 28px; border: 1px solid #e2ddd5; border-radius: 24px; background: #fff; box-shadow: 0 15px 40px rgba(21,21,21,.07); }
.woocommerce div.product div.images .woocommerce-product-gallery__image { border-radius: 16px; background: linear-gradient(145deg,#f4f1ed,#fff); }
.woocommerce div.product div.images img { width: 100%; max-height: 680px; border-radius: 16px; object-fit: contain; background: transparent; }
.woocommerce div.product div.summary { position: sticky; top: 112px; margin: 0 !important; padding: 36px; border: 1px solid #e2ddd5; border-radius: 24px; background: #fff; box-shadow: 0 15px 40px rgba(21,21,21,.07); }
.woocommerce div.product .product_title { margin: 0 0 18px; font-size: clamp(34px,3.4vw,48px); line-height: 1.02; }
.woocommerce div.product p.price, .woocommerce div.product span.price { margin: 0 0 24px; font-size: 27px !important; }
.woocommerce div.product .summary > h4 { margin: 0 0 24px; padding: 15px 0; border-block: 1px solid var(--kp-line); font-size: 14px; line-height: 1.6; }
.woocommerce div.product form.cart { display: block; margin: 0 0 22px; }
.woocommerce div.product form.cart .variations { margin: 0 0 18px; }
.woocommerce div.product form.cart .variations tr { display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: center; margin-bottom: 11px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0 !important; text-align: left; }
.woocommerce div.product form.cart .variations label { color: #3b3936; font-size: 13px; font-weight: 850; }
.woocommerce div.product form.cart .variations select { width: 100%; min-height: 50px; margin: 0 !important; padding-inline: 14px; border: 1px solid #d8d2ca; border-radius: 11px; background: #fff; }
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin: 8px 0 0; color: var(--kp-muted); font-size: 12px; font-weight: 700; }
.woocommerce div.product form.cart .single_variation_wrap { margin-top: 12px; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 10px; }
.woocommerce div.product form.cart .quantity .qty { width: 72px; min-height: 54px; text-align: center; }
.woocommerce div.product form.cart .single_add_to_cart_button { width: 100%; min-height: 54px; border-radius: 12px; font-size: 14px; }
.woocommerce div.product .product_meta { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--kp-line); color: #777; font-size: 12px; line-height: 1.75; }
.woocommerce div.product .woocommerce-tabs { margin-top: 30px; padding: 34px 40px; border: 1px solid #e2ddd5; border-radius: 24px; background: #fff; box-shadow: 0 12px 34px rgba(21,21,21,.05); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 940px; color: #4d4a46; }
.woocommerce div.product .woocommerce-tabs .panel h2, .woocommerce div.product .woocommerce-tabs .panel h3 { font-family: Georgia,serif; color: var(--kp-ink); }

.kp-footer__bottom { align-items: center; flex-wrap: wrap; }
.kp-maker { display: inline-flex; align-items: center; justify-content: flex-end; gap: 9px; margin-left: auto; }
.kp-maker__logo { display: inline-flex; align-items: center; }
.kp-maker__logo img { display: block; width: auto; height: 22px; opacity: .9; transition: opacity .2s ease; }
.kp-maker__logo:hover img { opacity: 1; }
.kp-maker__links { display: inline-flex; gap: 8px; padding-left: 9px; border-left: 1px solid #333; }
.kp-maker__links a { font-size: 10px !important; text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; }

@media (max-width: 1180px) {
  .kp-header__inner { grid-template-columns: 230px minmax(0,1fr) auto; gap: 14px; }
  .kp-nav > ul > li > a { padding-inline: 9px; font-size: 12.5px; }
}
@media (max-width: 1050px) {
  .kp-header__inner { grid-template-columns: 1fr auto; }
  .kp-nav { justify-self: stretch; }
  .kp-nav > ul { align-items: stretch; flex-direction: column; gap: 2px; }
  .kp-nav > ul > li > a { min-height: 0; padding: 12px; }
  .kp-nav ul ul { position: static; display: grid; width: auto; margin: 0 0 5px 18px; padding: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .kp-nav ul ul::before { display: none; }
  .kp-nav ul ul a { padding: 9px 12px; }
}
@media (max-width: 780px) {
  .kp-brand__text { font-size: 15px; }
  .kp-brand__mark { width: 39px; height: 43px; flex-basis: 39px; }
  .post-type-archive-product .kp-shop, .tax-product_cat .kp-shop, .single-product .kp-shop { padding: 24px 0 70px; }
  .kp-shop .woocommerce-products-header { padding: 30px 24px; border-radius: 17px; }
  .kp-shop .woocommerce-ordering { float: none; width: 100%; }
  .kp-shop .woocommerce-ordering select { width: 100%; }
  .woocommerce ul.products li.product { padding: 8px 8px 13px !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 56px; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 20px; }
  .woocommerce div.product div.images { padding: 16px; border-radius: 18px; }
  .woocommerce div.product div.summary { position: static; padding: 25px 21px; border-radius: 18px; }
  .woocommerce div.product .product_title { font-size: 34px; }
  .woocommerce div.product .woocommerce-tabs { padding: 24px 20px; border-radius: 18px; }
  .kp-maker { align-items: flex-start; flex-direction: column; margin-left: 0; }
  .kp-maker__links { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) {
  .kp-brand__text { grid-template-columns: 1fr; font-size: 14px; }
  .kp-brand__text em { margin-top: 2px; }
  .kp-brand__text small { display: none; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .woocommerce ul.products li.product .button { display: inline-flex !important; }
}

/* 1.1.1 — korekta nawigacji desktopowej i podpisu wykonawcy */
@media (min-width: 1051px) {
  .kp-header__inner { grid-template-columns: 280px minmax(0, 1fr) 166px; gap: 16px; }
  .kp-nav > ul { gap: 2px; }
  .kp-nav > ul > li > a { padding-inline: 14px; }
  .kp-nav > ul > li:nth-child(3),
  .kp-nav > ul > li:nth-child(4),
  .kp-nav > ul > li:nth-child(5) { display: none; }
}

.kp-footer__bottom { align-items: center; }
.kp-maker { flex-wrap: wrap; }
.kp-maker__links { align-items: center; flex-wrap: wrap; }
.kp-maker__links a { display: inline-block; white-space: nowrap; }
.kp-maker__links a + a::before { content: "•"; display: inline-block; margin-right: 8px; color: #555; text-decoration: none; }

/* 1.1.2 — profesjonalny monogram marki */
.kp-brand__mark { width: 46px; height: 46px; flex-basis: 46px; }
.kp-brand__mark svg { border-radius: 14px; filter: drop-shadow(0 8px 14px rgba(201,22,43,.2)); }
.kp-mark-tile { fill: var(--kp-red); }
.kp-mark-letter { fill: #fff; }
.kp-mark-accent { fill: rgba(255,255,255,.38); }
.kp-footer .kp-brand__mark svg { filter: none; }
.kp-brand__mark { display: grid; place-items: center; border-radius: 14px !important; color: #fff !important; background: var(--kp-red) !important; box-shadow: 0 8px 20px rgba(201,22,43,.22) !important; }
.kp-brand__mark svg { display: none !important; }
.kp-brand__mark::before { content: "KP"; font-size: 17px; font-weight: 950; line-height: 1; letter-spacing: -.08em; transform: translateX(-1px); }
.kp-footer .kp-brand__mark { box-shadow: none !important; }

/* 1.1.3 — korekty nagłówka, kafli kategorii i przycisków produktów */
@media (min-width: 1051px) {
  .kp-header__inner { min-height: 86px; grid-template-columns: 330px minmax(0,1fr) 150px; gap: 24px; }
  .kp-brand__mark { width: 52px; height: 52px; flex-basis: 52px; }
  .kp-brand__mark::before { font-size: 19px; }
  .kp-brand__text { font-size: 19px; }
  .kp-brand__text small { font-size: 9px; }
  .kp-nav > ul { gap: 5px; }
  .kp-nav > ul > li { display: block !important; }
  .kp-nav > ul > li > a { padding-inline: 15px; }
}
.kp-category-card__bg { background-color: #ded8d2; background-repeat: no-repeat; }
.kp-category-card::after { background: linear-gradient(180deg,rgba(0,0,0,.05) 10%,rgba(0,0,0,.78) 100%); }
.woocommerce ul.products li.product .button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  line-height: 1 !important;
  text-align: left !important;
}

/* 1.1.5 — pełny układ sklepu z filtrowaniem kategorii */
.kp-shop { padding: 42px 0 100px; background: #f7f4f0; }
.kp-shop > .kp-container { width: min(calc(100% - 64px), var(--kp-width)); }
.kp-shop-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 34px; align-items: start; }
.kp-shop-filters { position: sticky; top: 132px; padding: 25px 21px; border: 1px solid #e2ddd6; border-radius: 18px; background: #fff; box-shadow: 0 14px 35px rgba(21,21,21,.06); }
.kp-shop-filters__eyebrow { display: block; margin-bottom: 5px; color: var(--kp-red); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.kp-shop-filters h2 { margin: 0 0 17px; font-family: Georgia,serif; font-size: 28px; line-height: 1.05; }
.kp-shop-filters ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.kp-shop-filters a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; padding: 0 12px; border-radius: 10px; color: #484848; font-size: 13px; font-weight: 750; }
.kp-shop-filters a:hover { color: var(--kp-red); background: #fbf0f1; }
.kp-shop-filters a.is-active { color: #fff; background: var(--kp-red); }
.kp-shop-filters a b { font-size: 14px; font-weight: 900; }
.kp-shop-results { min-width: 0; }
.kp-shop-results .woocommerce-result-count { margin: 12px 0 23px !important; color: #656565; font-size: 13px; }
.kp-shop-results .woocommerce-ordering { margin: 0 0 23px !important; }
.kp-shop-results .woocommerce-ordering select { min-width: 230px; }
.kp-shop-results ul.products { clear: both; grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
.kp-shop .woocommerce-pagination { margin-top: 42px; }

@media (max-width: 1050px) {
  .kp-shop-layout { display: block !important; width: 100% !important; min-width: 0 !important; }
  .kp-shop-filters { position: static; padding: 20px; }
  .kp-shop-filters ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .kp-shop-filters li { flex: 0 0 auto; }
  .kp-shop-filters a { min-height: 40px; white-space: nowrap; }
}
@media (max-width: 780px) {
  .kp-shop { padding: 24px 0 70px; }
  .kp-shop > .kp-container { width: min(calc(100% - 28px), var(--kp-width)); }
  .kp-shop-results { width: 100% !important; min-width: 0 !important; max-width: 100% !important; overflow: hidden; }
  .kp-shop-results .woocommerce-result-count,
  .kp-shop-results .woocommerce-ordering { float: none !important; width: 100% !important; max-width: 100% !important; }
  .kp-shop-results ul.products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .kp-shop-results ul.products { display: grid !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
  .kp-shop-results ul.products li.product { width: auto !important; min-width: 0 !important; max-width: none !important; }
}
@media (max-width: 480px) {
  .kp-shop-results ul.products { grid-template-columns: 1fr !important; }
}

/* 1.1.7 — spójne strony statyczne, wishlist i formularze */
.kp-content { padding: 68px 0 92px; background: #fff; }
.kp-content__article { width: min(calc(100% - 40px), 1080px); color: #45413d; font-size: 16px; line-height: 1.8; }
.kp-content__article > *:first-child { margin-top: 0; }
.kp-content__article h2, .kp-content__article h3 { margin: 34px 0 14px; color: var(--kp-ink); font-family: Georgia,serif; line-height: 1.12; }
.kp-content__article h2 { font-size: clamp(28px,3vw,40px); }
.kp-content__article h3 { font-size: 24px; }
.kp-content__article a { color: var(--kp-red); font-weight: 750; }
.kp-content__article ul, .kp-content__article ol { padding-left: 22px; }
.kp-content__article table { width: 100%; border-collapse: separate; border-spacing: 0; }
.kp-contact-intro { max-width: 780px; margin-bottom: 35px; }
.kp-contact-grid { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr); gap: 28px; align-items: start; }
.kp-contact-card, .kp-contact-form, .kp-about-card { padding: 32px; border: 1px solid #e3ddd6; border-radius: 20px; background: #faf8f5; box-shadow: 0 14px 36px rgba(21,21,21,.055); }
.kp-contact-card h2, .kp-contact-form h2, .kp-about-card h2 { margin-top: 0; }
.kp-contact-card address { font-style: normal; line-height: 1.75; }
.kp-contact-card hr { margin: 24px 0; border: 0; border-top: 1px solid #ded8d0; }
.kp-about-lead { max-width: 840px; margin-bottom: 36px; font-size: 20px; line-height: 1.65; }
.kp-about-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 38px 0; }
.kp-about-card { padding: 27px; }
.kp-about-card p { margin-bottom: 0; }
.kp-content__article input:not([type="checkbox"]):not([type="radio"]), .kp-content__article select, .kp-content__article textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d9d2ca; border-radius: 10px; background: #fff; }
.kp-content__article textarea { min-height: 150px; }
.kp-content__article button, .kp-content__article input[type="submit"], .kp-content__article .button { min-height: 46px; padding: 0 20px !important; border: 0 !important; border-radius: 10px !important; color: #fff !important; background: var(--kp-red) !important; font-weight: 850 !important; }
.kp-content__article .button { display: inline-flex; align-items: center; justify-content: center; line-height: 1.15; }
.kp-content__article .tinv-wishlist { padding: 28px; border: 1px solid #e3ddd6; border-radius: 20px; background: #fff; box-shadow: 0 14px 36px rgba(21,21,21,.055); }
.kp-content__article .tinv-wishlist table th, .kp-content__article .tinv-wishlist table td { padding: 15px 12px; border-bottom: 1px solid #eee9e3; vertical-align: middle; }
.kp-content__article .tinv-wishlist .product-thumbnail img { width: 82px; border-radius: 10px; background: #f5f2ee; }

@media (max-width: 780px) {
  .kp-content { padding: 42px 0 70px; }
  .kp-contact-grid, .kp-about-grid { grid-template-columns: 1fr; }
  .kp-contact-card, .kp-contact-form, .kp-about-card, .kp-content__article .tinv-wishlist { padding: 22px 18px; border-radius: 16px; }
  .kp-content__article .tinv-wishlist { overflow-x: auto; }
}

/* 1.2.1 — finalne nadpisanie starego monogramu */
.kp-brand__mark {
  position: relative; display: block !important; width: 49px !important; height: 56px !important; flex: 0 0 49px !important;
  padding: 0 !important; border-radius: 0 !important; color: inherit !important; background: transparent !important;
  box-shadow: none !important; transform-origin: 50% 30%; transition: transform .22s ease, filter .22s ease;
}
.kp-brand__mark::before { content: none !important; display: none !important; }
.kp-brand__mark svg { display: block !important; width: 100% !important; height: 100% !important; overflow: visible !important; border-radius: 0 !important; filter: drop-shadow(0 9px 12px rgba(174,13,39,.20)); }
.kp-mark-tile { fill: #d11132 !important; transition: fill .22s ease; }
.kp-mark-depth { fill: #b80e2a !important; }
.kp-mark-letter { fill: #fff !important; }
.kp-mark-crown { fill: none !important; stroke: rgba(255,255,255,.46); stroke-width: 2; stroke-linecap: round; }
.kp-brand:hover .kp-brand__mark { transform: translateY(-2px) rotate(-2deg); filter: saturate(1.08); }
.kp-brand:hover .kp-mark-tile { fill: #df1538 !important; }
.kp-footer .kp-brand__mark svg { filter: none; }
.kp-button:hover, .kp-button:focus-visible,
.woocommerce a.button:hover, .woocommerce a.button:focus-visible,
.woocommerce button.button:hover, .woocommerce button.button:focus-visible,
.woocommerce input.button:hover, .woocommerce input.button:focus-visible { color: #fff !important; background: var(--kp-red-dark) !important; border-color: var(--kp-red-dark) !important; }
.kp-button--ghost:hover, .kp-button--ghost:focus-visible { color: #fff !important; background: var(--kp-red-dark) !important; border-color: var(--kp-red-dark) !important; }
.kp-button--light:hover, .kp-button--light:focus-visible { color: #fff !important; background: var(--kp-red) !important; border-color: var(--kp-red) !important; }
@media (max-width: 780px) { .kp-brand__mark { width: 42px !important; height: 48px !important; flex-basis: 42px !important; } }

/* 1.2.2 — biało-czerwony znak inspirowany polską flagą */
.kp-mark-outline { fill: #fff; stroke: #d11132; stroke-width: 2.5; stroke-linejoin: round; transition: stroke .22s ease; }
.kp-mark-flag { fill: #d11132; transition: fill .22s ease; }
.kp-mark-k { fill: #171717; }
.kp-mark-p { fill: #d11132; transition: fill .22s ease; }
.kp-mark-seam { fill: none; stroke: rgba(255,255,255,.78); stroke-width: 1.5; stroke-linecap: round; }
.kp-brand:hover .kp-mark-outline { stroke: #b70d29; }
.kp-brand:hover .kp-mark-flag { fill: #b70d29; }
.kp-brand:hover .kp-mark-p { fill: #b70d29; }
.kp-brand__mark svg { filter: drop-shadow(0 8px 12px rgba(119,8,28,.16)); }
.kp-footer .kp-mark-outline { fill: #171717; stroke: #d11132; }
.kp-footer .kp-mark-k { fill: #fff; }
.kp-footer .kp-brand__mark svg { filter: none; }

/* 1.2.4 — finalny układ karty produktu */
.single-product .woocommerce div.product > .woocommerce-product-gallery { grid-column: 1 !important; grid-row: 1 !important; }
.single-product .woocommerce div.product > .summary { grid-column: 2 !important; grid-row: 1 !important; padding: 28px !important; }
.single-product .woocommerce div.product > .woocommerce-tabs,
.single-product .woocommerce div.product > .related.products,
.single-product .woocommerce div.product > .upsells.products { grid-column: 1 / -1 !important; width: 100% !important; max-width: none !important; }
.single-product .woocommerce div.product .product_title { margin-bottom: 12px !important; font-size: clamp(30px,2.6vw,38px) !important; line-height: 1.06 !important; }
.single-product .woocommerce div.product p.price { margin-bottom: 12px !important; font-size: 25px !important; }
.single-product .woocommerce-product-details__short-description { margin-bottom: 14px !important; font-size: 14px; line-height: 1.5; }
.single-product .related.products ul.products, .single-product .upsells.products ul.products { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 22px !important; width: 100% !important; max-width: none !important; }
.single-product .related.products ul.products li.product, .single-product .upsells.products ul.products li.product { width: auto !important; max-width: none !important; margin: 0 !important; }
@media (max-width: 1050px) {
  .single-product .woocommerce div.product { grid-template-columns: minmax(0,1fr) !important; }
  .single-product .woocommerce div.product > .woocommerce-product-gallery,
  .single-product .woocommerce div.product > .summary,
  .single-product .woocommerce div.product > .woocommerce-tabs,
  .single-product .woocommerce div.product > .related.products,
  .single-product .woocommerce div.product > .upsells.products { grid-column: 1 !important; grid-row: auto !important; }
  .single-product .woocommerce div.product > .summary { position: static !important; }
  .single-product .related.products ul.products, .single-product .upsells.products ul.products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 560px) {
  .single-product .related.products ul.products, .single-product .upsells.products ul.products { grid-template-columns: 1fr !important; }
}
