/* Kramer theme – WordPress / WooCommerce glue on top of the /nowa design (assets/css/style.css stays identical to the prototype). */

/* ---------- notices ---------- */
.kr-notices { padding-top: 18px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper > * {
  list-style: none; margin: 0 0 14px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
}
.woocommerce-message { border-color: var(--brand); background: var(--mint-soft, #eaf5f0); }
.woocommerce-error { border-color: var(--danger, #c0392b); background: #fdf1f0; }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }
.form-error { padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--danger, #c0392b); background: #fdf1f0; color: #8a1f15; font-weight: 600; margin-bottom: 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- WooCommerce buttons → design buttons ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .single_add_to_cart_button, .checkout-button, #place_order, .wc-forward {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius-s, 6px);
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 600 .98rem/1.1 var(--font-head); text-decoration: none; cursor: pointer;
}
.single_add_to_cart_button, .checkout-button, #place_order, .woocommerce .button.alt { background: var(--brand); border-color: var(--brand); color: #fff; }
.single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover { filter: brightness(1.08); }
.checkout-button, #place_order { width: 100%; min-height: 56px; font-size: 1.05rem; }
.wc-proceed-to-checkout { margin: 0; }
.added_to_cart { display: none !important; }
.p-card__add.loading { opacity: .5; pointer-events: none; }
.p-card__add.added { background: var(--brand); color: #fff; }
.p-card__media { display: block; }

/* ---------- prices ---------- */
.price--ask { color: var(--ink); font-weight: 700; }
.p-card .price strong.price--ask { font-size: 1rem; }
/* shop filters: everything visible (no inner scroll box); the count has its own column inside the panel */
.filters .check { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; line-height: 1.35; }
.filters .check small { margin: 1px 0 0; min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 981px) {
  /* the panel stays on the left while the products scroll; a tall panel scrolls on its own */
  .shop .filters { top: 100px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
}
.kr-from, .kr-unit { font-weight: 400; color: var(--muted); font-size: .9em; }
.buybox__lead { color: var(--muted); }
.buybox__lead p { margin: 0 0 10px; }

/* ---------- product: simple add-to-cart, colour, ask ---------- */
.configurator--simple form.cart { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.configurator--simple form.cart .kr-colour { flex: 1 0 100%; }
.kr-colour .label { display: block; font: 600 .86rem/1.2 var(--font-head); color: var(--ink-2, var(--ink)); margin-bottom: 8px; }
.quantity input.qty, .configurator--simple .quantity input {
  width: 96px; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font: 600 1rem var(--font-head); text-align: center; background: #fff;
}
.configurator button[disabled] { opacity: .5; cursor: not-allowed; }
.configurator [hidden], .kramer [hidden] { display: none !important; }
.configurator--ask p { color: var(--muted); }
.stock.out-of-stock { color: var(--danger, #c0392b); }

/* ---------- cart / checkout step bar (title hidden, steps only) ---------- */
.page-hero--steps { padding: 22px 0; }
.page-hero--steps .steps-bar { margin: 0; }
.steps-bar li a { color: inherit; text-decoration: none; }
.steps-bar li.is-done { color: var(--ink); }
.steps-bar li.is-done::before { content: "✓"; background: var(--brand); color: #fff; font-weight: 700; }
@media (max-width: 600px) {
  .page-hero--steps { padding: 14px 0; }
  .steps-bar { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .steps-bar li { flex: 0 0 auto; gap: 6px; padding: 6px 10px 6px 6px; font-size: .8rem; white-space: nowrap; }
  .steps-bar li::before { width: 22px; height: 22px; font-size: .72rem; }
}

/* ---------- cart ---------- */
.cart-item { grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "img name foot" "img specs foot"; grid-template-rows: auto 1fr; align-items: start; }
.cart-item__img { grid-area: img; display: block; }
.cart-item .cart-item__name { grid-area: name; margin: 0; }
.cart-item__specs { grid-area: specs; min-width: 0; }
.cart-item__foot { grid-area: foot; align-self: center; display: grid; justify-items: end; gap: 12px; }
.cart-item dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: .85rem; }
.cart-item dl.variation dt { color: var(--muted); font-weight: 400; }
.cart-item dl.variation dd { margin: 0; color: var(--ink); }
.cart-item dl.variation dd p { margin: 0; }
.cart-item .remove { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "img name" "specs specs" "foot foot"; grid-template-rows: auto; gap: 12px 14px; padding: 14px; }
  .cart-item img { width: 64px; height: 64px; }
  .cart-item .cart-item__name { align-self: center; font-size: 1rem; }
  .cart-item__specs { padding-top: 12px; border-top: 1px solid var(--line); }
  .cart-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cart-item__foot .cart-item__price { margin-left: auto; }
  .cart-item__foot .remove { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-s); }
  .cart-item__foot .remove span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* +/− stepper (overrides the generic WooCommerce input styles) */
.qty[data-qty] { flex: none; }
.qty[data-qty] button { width: 42px; height: 44px; font-size: 1.25rem; line-height: 1; }
.qty[data-qty] input.qty { width: 50px; min-height: 0; height: 44px; padding: 0; border: 0; border-radius: 0; box-shadow: none; display: block; text-align: center; font: 600 1rem var(--font-head); }
.qty[data-qty] input.qty:focus { box-shadow: none; }
.qty-fixed { display: inline-grid; place-items: center; min-width: 44px; height: 40px; border-radius: var(--radius-s, 6px); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.cart-layout.is-busy .cart-items, .cart-layout.is-busy .summary { opacity: .55; pointer-events: none; transition: opacity .15s; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 16px; }
.cart-actions .coupon { flex: 1 1 280px; display: flex; gap: 10px; }
.cart-actions .coupon input { border-radius: var(--radius-s, 6px); }
.cart-b2b { margin-top: 14px; }
.woocommerce-remove-coupon { font-weight: 400; font-size: .85em; margin-left: 6px; }
.cart-collaterals { display: none; }
/* generator: PDF + e-mail buttons */
.gen-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gen-actions .btn { flex: 1 1 260px; }
.gen-actions .btn[disabled] { opacity: .6; cursor: default; }
.gen-status { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-s); background: var(--mint-soft, #eaf5f0); color: var(--brand-700, #0b5c40); font-weight: 600; }
.gen-status.is-error { background: #fdf1f0; color: #8a1f15; }
.qty-fixed--label { padding: 0 12px; white-space: nowrap; color: var(--ink); }
.cart-item .tax_label, .review-item .tax_label { display: none; }   /* "(z VAT)" – prices are already labelled brutto / netto */

/* ---------- checkout: two equal columns ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 980px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.checkout-summary { position: static; }
.review-items { list-style: none; margin: 0; padding: 0; }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-item:first-child { padding-top: 0; }
.review-item__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; color: var(--ink); font-size: .95rem; }
.review-item__name .product-quantity { font-weight: 600; color: var(--muted); white-space: nowrap; }
.review-item__price { font-weight: 700; white-space: nowrap; }
.review-item__toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--brand); font: 600 .85rem/1.2 var(--font-head); cursor: pointer; }
.review-item__toggle::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.review-item__toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.review-item__specs { margin-top: 8px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--soft, #f4f6f5); }
.review-item__specs dl.variation { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: .86rem; }
.review-item__specs dl.variation dt { color: var(--muted); font-weight: 400; }
.review-item__specs dl.variation dd, .review-item__specs dl.variation p { margin: 0; color: var(--ink); }
.review-shipping { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-shipping h3 { font-size: 1.02rem; margin: 0 0 10px; }
.ship-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ship-opts li { display: block; }
.woocommerce-checkout .ship-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font: 400 .95rem/1.3 var(--font-body); color: var(--ink); }
.woocommerce-checkout .ship-opt:has(input:checked) { border-color: var(--brand); background: var(--mint-soft, #eaf5f0); }
.ship-opt input { flex: none; margin: 0; }
.ship-opt__name { flex: 1; font-weight: 600; }
.ship-opt__price { white-space: nowrap; }
.review-totals { padding-top: 14px; }
.checkout-summary .summary-total { margin-top: 14px; }
.checkout-summary .summary-total .includes_tax { display: none; }
/* "Do zapłaty brutto": label left, amount right in the brand green (cart + checkout) */
.cart_totals .summary-total > div, .checkout-summary .summary-total > div { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cart_totals .summary-total small, .checkout-summary .summary-total small { display: inline; font-size: 1rem; color: var(--muted); }
.cart_totals .summary-total strong, .checkout-summary .summary-total strong { margin-left: auto; text-align: right; color: var(--brand); white-space: nowrap; }
.cart_totals .summary-total strong .woocommerce-Price-amount, .checkout-summary .summary-total strong .woocommerce-Price-amount { color: inherit; }

/* ---------- checkout errors: popup instead of the notice above the form ---------- */
.kr-js .woocommerce-NoticeGroup-checkout { display: none; }
.kr-alert { position: fixed; z-index: 95; right: 24px; bottom: 24px; width: min(400px, calc(100% - 48px)); padding: 16px 48px 16px 18px; background: #fff; color: var(--ink);
  border: 1px solid var(--danger); border-left-width: 5px; border-radius: var(--radius); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .35);
  transform: translateY(16px); opacity: 0; transition: transform .3s var(--ease, ease), opacity .3s; }
.kr-alert.is-visible { transform: none; opacity: 1; }
.kr-alert__title { font: 700 1rem/1.3 var(--font-head); color: var(--danger); margin: 0 0 8px; }
.kr-alert ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 4px; font-size: .9rem; max-height: 40vh; overflow-y: auto; }
.kr-alert__item { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(192, 57, 43, .4); text-underline-offset: 3px; }
.kr-alert__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.kr-alert__close:hover { background: var(--soft, #f4f6f5); color: var(--ink); }
@media (max-width: 600px) { .kr-alert { left: 16px; right: 16px; bottom: 16px; width: auto; } }

/* ---------- checkout (WooCommerce fields inside the design's blocks) ---------- */
.woocommerce-checkout .form-row { display: grid; gap: 6px; margin: 0 0 14px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.woocommerce-checkout .form-row-wide, .woocommerce-checkout .notes, #billing_address_1_field, #billing_address_2_field, #shipping_address_1_field, #shipping_address_2_field { grid-column: 1 / -1; }
@media (max-width: 600px) { .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; } }
.woocommerce-checkout label, .woocommerce form .form-row label { font: 600 .86rem/1.2 var(--font-head); color: var(--ink-2, var(--ink)); }
.woocommerce-checkout .required { color: var(--danger, #c0392b); text-decoration: none; border: 0; }
.woocommerce-checkout .optional { color: var(--muted); font-weight: 400; }
.woocommerce form .input-text, .woocommerce form select, .woocommerce form textarea, .woocommerce-checkout .input-text, .woocommerce-checkout select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
}
.woocommerce form textarea { min-height: 110px; }
.woocommerce form .input-text:focus, .woocommerce form select:focus, .woocommerce form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 121, 85, .12); }
.woocommerce-checkout h3 { font-size: 1.05rem; margin: 6px 0 14px; }
.woocommerce-checkout .woocommerce-billing-fields > h3 { display: none; }
#ship-to-different-address label { display: flex; gap: 10px; align-items: center; font-size: 1rem; }
.woocommerce-form__input-checkbox, .woocommerce-checkout input[type=checkbox], .woocommerce-checkout input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; }
.woocommerce-invalid .input-text, .woocommerce-invalid select { border-color: var(--danger, #c0392b); }
.woocommerce-shipping-methods { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; text-align: left; }
.woocommerce-shipping-methods li { display: flex; gap: 8px; align-items: flex-start; }
#payment { margin-top: 16px; }
#payment .wc_payment_methods { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
#payment .wc_payment_method { padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); }
#payment .wc_payment_method:has(input:checked) { border-color: var(--brand); }
#payment .wc_payment_method > label { font-weight: 700; color: var(--ink); margin-left: 6px; }
#payment .payment_box { font-size: .88rem; color: var(--muted); margin-top: 8px; }
#payment .payment_box p { margin: 0; }
.woocommerce-terms-and-conditions-wrapper { font-size: .86rem; color: var(--muted); margin: 0 0 14px; }
.woocommerce-privacy-policy-text p { margin: 0 0 10px; }
.woocommerce-form-coupon-toggle .woocommerce-info { justify-content: flex-start; }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

/* ---------- order details (thank-you page, my account) – compact ---------- */
.woocommerce-order { display: grid; gap: 18px; }
.woocommerce-order > p { margin: 0; }
.woocommerce-order-overview { margin: 0; }
.woocommerce-order-overview li { display: grid; gap: 2px; padding: 12px 14px; font-size: .85rem; color: var(--muted); }
.woocommerce-order-overview li strong { font: 600 1rem var(--font-head); color: var(--ink); }
.woocommerce-order-details { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.woocommerce-order-details__title, .woocommerce-customer-details h2 { font-size: 1.15rem; margin: 0 0 10px; }
.kr-offer-ref { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--mint-soft, #eaf5f0); font-size: .9rem; color: var(--ink); }
.woocommerce-order-details .woocommerce-table { font-size: .93rem; }
.woocommerce-order-details .woocommerce-table thead th { font: 600 .78rem var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 0; }
.woocommerce-order-details .woocommerce-table td, .woocommerce-order-details .woocommerce-table th { padding: 10px 0; vertical-align: top; }
.woocommerce-order-details .woocommerce-table th:last-child, .woocommerce-order-details .woocommerce-table td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.woocommerce-order-details .product-name { color: var(--ink); font-weight: 600; }
.woocommerce-order-details .product-name a { color: var(--ink); text-decoration: none; }
.woocommerce-order-details .product-quantity { color: var(--muted); font-weight: 600; }
.woocommerce-order-details .wc-item-meta { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 400; font-size: .84rem; color: var(--muted); }
.woocommerce-order-details .wc-item-meta li { display: flex; gap: 4px; align-items: baseline; margin: 0; }
.woocommerce-order-details .wc-item-meta li strong { font-weight: 400; }
.woocommerce-order-details .wc-item-meta p { margin: 0; color: var(--ink); }
.woocommerce-order-details tfoot th { font-weight: 400; color: var(--muted); text-align: left; }
.woocommerce-order-details tfoot td { color: var(--ink); font-weight: 600; }
.woocommerce-order-details tfoot tr:first-child th, .woocommerce-order-details tfoot tr:first-child td { border-top: 1px solid var(--line); }
.woocommerce-order-details tfoot tr:nth-last-child(2) th, .woocommerce-order-details tfoot tr:nth-last-child(2) td { font: 700 1.15rem var(--font-head); color: var(--ink); }
.woocommerce-order-details tfoot tr:nth-last-child(2) td { color: var(--brand); }
.woocommerce-order-details tfoot small, .woocommerce-order-details tfoot .includes_tax { font: 400 .8rem var(--font-body); color: var(--muted); }
.kr-addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.kr-address { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.kr-address address { font-style: normal; line-height: 1.6; color: var(--ink); }
.kr-address__contact { display: block; color: var(--muted); }
.kr-address__contact:first-of-type { margin-top: 6px; }
.kr-address__later { margin: 0; padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--mint-soft, #eaf5f0); color: var(--ink); }
/* thank-you page / my account */
.woocommerce-order { max-width: 980px; }   /* my account: full width since stage 36 */
.woocommerce-account .prose.page-content, .woocommerce-account .woocommerce { max-width: none; }
.woocommerce-order-overview { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.woocommerce-order-overview li { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.woocommerce-order-details .shop_table, .woocommerce-table { width: 100%; border-collapse: collapse; }
.woocommerce-table th, .woocommerce-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
/* my account menu: stage 36 rules (.acc-nav) at the end of the file */

/* ---------- offer article with a shop link (oferta-wpis.php) ---------- */
.offer-hero { display: grid; grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, calc(var(--container) / 2 - var(--gutter))) minmax(0, calc(var(--container) / 2 - var(--gutter))) minmax(var(--gutter), 1fr);
  background: var(--soft, #f4f6f5); border-bottom: 1px solid var(--line); min-height: clamp(300px, 30vw, 420px); }
.offer-hero__text { grid-column: 2; align-self: center; padding: clamp(36px, 5vw, 64px) 32px clamp(36px, 5vw, 64px) 0; }
.offer-hero__text h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 6px 0 0; color: var(--ink); }
.offer-hero__text .lead { margin: 14px 0 0; color: var(--muted); }
.offer-hero__text .btn { margin-top: 22px; }
.offer-hero--noimg .offer-hero__text { grid-column: 2 / 4; }
/* the picture: inset from the top, bottom and text, cut straight at the right edge of the screen */
.offer-hero__media { grid-column: 3 / 5; position: relative; margin: 28px 0; border-radius: var(--radius-l) 0 0 var(--radius-l); overflow: hidden;
  background: var(--night) var(--img) center / cover no-repeat; display: flex; align-items: flex-end; min-height: 260px; }
.offer-hero__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(7, 17, 15, 0) 35%, rgba(7, 17, 15, .78)); }
.offer-hero__cta { position: relative; display: grid; gap: 6px; justify-items: start; padding: clamp(20px, 3vw, 32px); color: #fff; max-width: 520px; }
.offer-hero__cta-label { font: 600 .78rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: #bfe9d3; }
.offer-hero__cta strong { font: 700 clamp(1.3rem, 2.2vw, 1.8rem)/1.15 var(--font-head); margin-bottom: 8px; }
.offer-btn__n { font-weight: 500; font-size: .85em; opacity: .85; padding-left: 8px; margin-left: 4px; border-left: 1px solid rgba(255, 255, 255, .45); }
@media (max-width: 900px) {
  .offer-hero { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); }
  .offer-hero__text { grid-column: 2; padding: 28px 0 18px; }
  .offer-hero__media { grid-column: 1 / -1; margin: 0; border-radius: 0; min-height: 240px; }
}
/* text: no extra gaps of the old editor, left aligned, readable width */
.offer-text { max-width: 860px; line-height: 1.65; }
.offer-text p { margin: 0 0 .75em; }
.offer-text h2 { font-size: 1.45rem; margin: 1.5em 0 .45em; }
.offer-text h2:first-child { margin-top: 0; }
.offer-text h2 { scroll-margin-top: 110px; }
.offer-text h3 { margin: 1.2em 0 .4em; }
.offer-text ul, .offer-text ol { margin: .3em 0 1em; }
.offer-text li { margin-bottom: .25em; }
.offer-text .btn--primary, .offer-text .btn--primary:hover { color: #fff; text-decoration: none; }
.offer-inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 1.8em 0; padding: 20px 22px;
  border: 1px solid var(--brand); border-radius: var(--radius); background: var(--mint-soft, #eaf5f0); }
.offer-inline-cta > div { display: grid; gap: 4px; }
.offer-inline-cta > div strong { font: 700 1.1rem/1.3 var(--font-head); color: var(--ink); }
.offer-inline-cta > div span { color: var(--muted); font-size: .92rem; }
.btn--primary .offer-btn__n { color: #fff; }
.offer-products .section-head, .offer-related .section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.offer-products__more { text-align: center; margin: 24px 0 0; }
/* text + sticky sidebar (table of contents, shop card) */
.offer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.offer-main { min-width: 0; }
.offer-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.offer-toc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.offer-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.offer-toc li { counter-increment: toc; }
.offer-toc a { display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 6px 8px; border-radius: var(--radius-s); color: var(--text); font-size: .88rem; line-height: 1.35; text-decoration: none; }
.offer-toc a::before { content: counter(toc) "."; color: var(--muted); font-weight: 600; }
.offer-toc a:hover, .offer-toc a.is-active { background: var(--mint-soft, #eaf5f0); color: var(--brand-700, #0b5c40); }
.offer-toc--side { padding: 16px 12px; max-height: calc(100vh - 340px); overflow-y: auto; }
.offer-toc__title { margin: 0 8px 8px; font: 700 .8rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.offer-toc--inline { display: none; margin-bottom: 22px; }
.offer-toc--inline summary { padding: 12px 16px; font: 600 1rem var(--font-head); cursor: pointer; }
.offer-toc--inline summary small { color: var(--muted); font-weight: 400; }
.offer-toc--inline ol { padding: 0 8px 10px; }
.offer-aside__shop { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--brand); border-radius: var(--radius); background: var(--mint-soft, #eaf5f0); }
.offer-aside__shop .offer-hero__cta-label { color: var(--brand); }
.offer-aside__shop strong { font: 700 1.15rem/1.25 var(--font-head); color: var(--ink); }
.offer-aside__shop .btn { margin-top: 8px; }
/* "Najważniejsze cechy" */
.offer-facts { margin: 1.4em 0 1.8em; padding: 18px 20px; border-radius: var(--radius); background: var(--soft, #f4f6f5); border: 1px solid var(--line); }
.offer-facts h3 { margin: 0 0 10px; font-size: 1.05rem; }
.offer-facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 22px; }
.offer-facts dl div { display: grid; gap: 2px; padding-left: 12px; border-left: 3px solid var(--brand); }
.offer-facts dt { font: 600 .78rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.offer-facts dd { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.4; }
/* "Zobacz też" */
.offer-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.offer-rel { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.offer-rel:hover { border-color: var(--brand); box-shadow: var(--shadow-s); color: var(--text); }
.offer-rel img, .offer-rel__ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.offer-rel__ph { display: grid; place-items: center; background: var(--soft, #f4f6f5); color: var(--brand); }
.offer-rel__ph svg { width: 34px; height: 34px; }
.offer-rel__body { display: grid; gap: 6px; align-content: start; padding: 14px 16px 16px; }
.offer-rel__body strong { font: 700 1.02rem/1.3 var(--font-head); color: var(--ink); }
.offer-rel__body span { font-size: .88rem; color: var(--muted); }
.offer-rel__body em { font-style: normal; font-weight: 600; color: var(--brand); font-size: .9rem; }
/* phones / tablets: fixed bar while reading – current section (opens the table of contents) + shop button */
.offer-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; padding: 8px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 28px -14px rgba(0, 0, 0, .3); transform: translateY(110%); transition: transform .25s; }
.offer-sticky.is-visible { transform: none; }
.offer-sticky__toc { position: relative; }
.offer-sticky__toggle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 4px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.offer-sticky__label { font: 600 .72rem var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.offer-sticky__toggle strong { font: 600 .92rem/1.25 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-sticky__chev { width: 9px; height: 9px; border: solid var(--muted); border-width: 2px 2px 0 0; transform: rotate(-45deg) translateY(2px); transition: transform .2s; }
.offer-sticky__toggle[aria-expanded="true"] .offer-sticky__chev { transform: rotate(135deg) translateY(2px); }
.offer-sticky__list { position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); bottom: calc(100% + 8px); margin: 0; padding: 10px var(--gutter); list-style: none; counter-reset: toc;
  max-height: min(60vh, 460px); overflow-y: auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -12px 28px -14px rgba(0, 0, 0, .3); }
.offer-sticky__list li { counter-increment: toc; }
.offer-sticky__list a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 9px 6px; border-radius: var(--radius-s); color: var(--text); font-size: .92rem; line-height: 1.35; text-decoration: none; }
.offer-sticky__list a::before { content: counter(toc) "."; color: var(--muted); font-weight: 600; }
.offer-sticky__list a.is-active { background: var(--mint-soft, #eaf5f0); color: var(--brand-700, #0b5c40); font-weight: 600; }
.offer-sticky__shop .btn { min-height: 46px; padding: 10px 16px; }
.offer-sticky__toc + .offer-sticky__shop { margin-top: 4px; }
body.has-offer-sticky .footer { padding-bottom: 140px; }
@media (max-width: 1100px) {
  .offer-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .offer-aside { display: none; }
  .offer-sticky:not([hidden]) { display: block; }
}
@media (max-width: 1100px) and (min-width: 700px) {
  /* tablets: section and shop button side by side */
  .offer-sticky.is-visible { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
  .offer-sticky__toc + .offer-sticky__shop { margin-top: 0; }
}
/* buttons on the picture / in the bar never make the page wider than the phone */
.offer-hero__cta { max-width: min(520px, 100%); min-width: 0; }
.offer-hero__cta .btn, .offer-sticky .btn { max-width: 100%; flex-wrap: wrap; white-space: normal; text-align: center; }
@media (max-width: 480px) {
  .offer-hero__cta { width: 100%; }
  .offer-hero__cta .btn { width: 100%; min-height: 52px; padding: 12px 14px; font-size: .97rem; gap: 6px; }
  .offer-btn__n { padding-left: 6px; margin-left: 2px; }
}
/* phones: products and "Zobacz też" as a swipe row instead of a very long column */
.offer-text { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .offer-products .grid--4, .offer-related__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: thin; }
  .offer-products .grid--4 > *, .offer-related__grid > * { scroll-snap-align: start; }
  .offer-products .section-head .btn { display: none; }
  .offer-products .p-card__media img { aspect-ratio: 4 / 3; height: auto; }
}

/* ---------- content migrated from the old sites ---------- */
.page-content, .article { max-width: 860px; }
.page-figure { margin: 0 0 28px; max-width: 860px; }
.page-figure img { width: 100%; height: auto; display: block; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose a { color: var(--brand); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft, #f4f6f5); }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--brand); background: var(--soft, #f4f6f5); }
.prose .alignleft { float: left; margin: 0 20px 12px 0; } .prose .alignright { float: right; margin: 0 0 12px 20px; } .prose .aligncenter { display: block; margin: 0 auto; }
.prose iframe { max-width: 100%; }
.prose .wp-caption { max-width: 100%; } .prose .wp-caption-text { font-size: .85rem; color: var(--muted); }
/* WordPress [gallery] inside page content only – the product page has its own .gallery block */
.prose .gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; margin: 1.4em 0; }
.prose .gallery-columns-2 { --cols: 2; } .prose .gallery-columns-4 { --cols: 4; }
.prose .gallery .gallery-item { margin: 0; } .prose .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.prose .gallery br { display: none; }
@media (max-width: 600px) { .prose .gallery { --cols: 2 !important; } }
.page-children { margin-top: 36px; }
.page-children .offer-card { grid-column: auto !important; }
.prose .woocommerce ul.products, .prose ul.products { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.prose ul.products li.product { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prose ul.products li.product a { text-decoration: none; color: var(--ink); }
.prose ul.products li.product img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s, 6px); }
.prose ul.products .woocommerce-loop-product__title { font-size: 1rem; margin: 10px 0 6px; }
.prose ul.products .price { display: block; margin-bottom: 10px; }

/* ---------- misc ---------- */
/* back to top */
.to-top { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 44; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; cursor: pointer; box-shadow: 0 8px 22px -8px rgba(7, 17, 15, .45);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s, bottom .25s; }
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-700, #0b5c40); }
.to-top svg { width: 22px; height: 22px; transform: rotate(-90deg); }
body.kr-noscroll .to-top { opacity: 0; pointer-events: none; }
@media (max-width: 1100px) { body.offer-sticky-on .to-top { bottom: calc(132px + env(safe-area-inset-bottom)); } }
@media (max-width: 1100px) and (min-width: 700px) { body.offer-sticky-on .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (max-width: 600px) { .to-top { right: 14px; width: 44px; height: 44px; } }
/* "Dodano do koszyka" toast: fully off-screen and invisible while hidden (the edge peeked out at the bottom of every page) */
.toast { transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .45s var(--ease, ease), visibility 0s linear .45s; }
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease, ease), visibility 0s; }
/* no sideways scrolling, without breaking the sticky header (overflow-x: hidden on body stops position: sticky on iPhones) */
html, body { overflow-x: clip; }
/* narrow phones: long button labels wrap instead of widening the page; header icons a bit smaller on 320 px screens */
@media (max-width: 480px) { .btn { max-width: 100%; white-space: normal; text-align: center; } }
@media (max-width: 350px) { .header__actions { gap: 4px; } .header__actions .icon-btn { width: 40px; height: 40px; } }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
.topbar .flag-pl { width: 18px; height: 12px; border-radius: 2px; flex: none; color: inherit; margin-right: 8px; vertical-align: -1px; }
.media-frame__float svg.flag-pl--lg { width: 36px; height: 24px; border-radius: 3px; }
.trust__icon svg.flag-pl--trust { width: 27px; height: 18px; border-radius: 2px; }
/* home hero on phones: "Zobacz ofertę" and "Poproś o wycenę" side by side, equal width */
@media (max-width: 600px) {
  .hero__ctas { flex-wrap: nowrap; gap: 10px; }
  .hero__ctas .btn { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 12px 10px; font-size: .97rem; text-align: center; }
  /* Atest PZH · Normy PN-EN · Faktura VAT in one line */
  .hero__badges { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
  .hero__badges .chip { margin-right: 0; padding: 4px 0; gap: 5px; font-size: .84rem; white-space: nowrap; }
  .hero__badges .chip svg { width: 14px; height: 14px; }
}
@media (max-width: 380px) { .hero__badges .chip { font-size: .76rem; gap: 4px; } .hero__badges .chip svg { width: 12px; height: 12px; } }
@media (max-width: 350px) { .hero__ctas .btn { font-size: .86rem; padding: 10px 6px; white-space: nowrap; } }
/* "Potrzebujesz wyceny?" on phones: quote button + round phone icon (calls) */
@media (max-width: 600px) {
  .cta-band__actions { flex-wrap: nowrap; width: 100%; }
  .cta-band__actions .btn:not(.cta-band__tel) { flex: 1 1 auto; }
  .cta-band__tel { flex: none; width: 56px; min-width: 56px; padding: 0; justify-content: center; }
  .cta-band__tel-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cta-band__tel svg { width: 22px; height: 22px; }
}
/* footer on phones: "Oferta" and "Firma" side by side, brand and contact full width */
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer__grid > .footer__brand, .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer__long { display: none; }   /* "Zwroty i reklamacje" → "Zwroty": the three legal links fit in one row */
  .footer__bottom ul { flex-wrap: nowrap; gap: 14px; }
  .footer__bottom ul a { white-space: nowrap; }
}
/* phones: phone + e-mail centred in the top bar */
@media (max-width: 760px) {
  .topbar .container { justify-content: center; }
  .topbar__items { justify-content: center; gap: 6px 16px; font-size: .84rem; }
}
@media (max-width: 360px) { .topbar__items { font-size: .78rem; gap: 4px 12px; } .topbar__items svg { width: 12px; height: 12px; } }
/* checkout: customer type (segmented buttons), company + NIP rows */
#billing_customer_type_field > label { margin-bottom: 4px; }
#billing_customer_type_field .woocommerce-input-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; position: relative; }
#billing_customer_type_field input.input-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#billing_customer_type_field label.radio { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 12px; margin: 0;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ink); font: 600 .92rem/1.2 var(--font-head); cursor: pointer; transition: border-color .15s, background .15s; }
#billing_customer_type_field label.radio:hover { border-color: var(--brand); }
#billing_customer_type_field input.input-radio:checked + label.radio { border-color: var(--brand); background: var(--mint-soft, #eaf5f0); color: var(--brand-700, #0b5c40); box-shadow: inset 0 0 0 1px var(--brand); }
#billing_customer_type_field input.input-radio:focus-visible + label.radio { outline: 3px solid var(--mint); outline-offset: 2px; }
#billing_customer_type_field label.radio .required { display: none; }   /* the "*" belongs to the heading only */
.kr-biz[hidden], .woocommerce-checkout .kr-hidden-field { display: none !important; }
/* postcode + city: one row, 50 % each – also on phones (WooCommerce's address script may change the row classes, so by id) */
.woocommerce-checkout #billing_postcode_field, .woocommerce-checkout #shipping_postcode_field { grid-column: 1; }
.woocommerce-checkout #billing_city_field, .woocommerce-checkout #shipping_city_field { grid-column: 2; }
@media (max-width: 600px) {
  .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
  .woocommerce-billing-fields__field-wrapper > .form-row, .woocommerce-shipping-fields__field-wrapper > .form-row { grid-column: 1 / -1; }
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > #billing_postcode_field, .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > #shipping_postcode_field { grid-column: 1; }
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > #billing_city_field, .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > #shipping_city_field { grid-column: 2; }
}
/* checkout: "address later" + customer's delivery-address form */
.kr-later { margin: 0 0 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-s); background: var(--soft, #f4f6f5); }
.kr-later .form-row { margin: 0 0 4px; }
/* "ship to a different address" in the same box, indent and type as "Adres dostawy podam później" */
.woocommerce-checkout #ship-to-different-address { margin: 0 0 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-s); background: var(--soft, #f4f6f5); }
.woocommerce-checkout .kr-later label.checkbox, .woocommerce-checkout #ship-to-different-address label { display: flex; gap: 10px; align-items: center; margin: 0; font: 600 1rem/1.3 var(--font-head); color: var(--ink); cursor: pointer; }
.woocommerce-checkout .kr-later input[type=checkbox], .woocommerce-checkout #ship-to-different-address input[type=checkbox] { margin: 0; flex: none; }
.kr-later__note { margin: 0; font-size: .86rem; }
.addr-later { max-width: 780px; }
.addr-later .form-grid { margin-top: 14px; }
/* ===== stage 1 (2026-11-20): shop mega menu – clearer hover / selected state, mesh groups as cards ===== */
.mega__cats { padding: 10px 0; }
.mega__cats li { position: relative; }
.mega__cats a { position: relative; padding: 12px 40px 12px 22px !important; transition: background .15s, color .15s; }
.mega__cats a::after { content: ""; position: absolute; right: 20px; top: 50%; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); opacity: 0; transition: opacity .15s, right .15s; }
.mega__cats a:hover { background: rgba(255, 255, 255, .7); color: var(--brand) !important; }
.mega__cats a.is-active { background: #fff; color: var(--brand) !important; font-weight: 700; box-shadow: inset 4px 0 0 var(--brand) !important; }
.mega__cats a.is-active::after, .mega__cats a:hover::after { opacity: 1; }
.mega__cats a.is-active::after { right: 16px; }
.mega__gen a { font-weight: 700; }
.mega__head a:hover { text-decoration: underline; }
.mega a.mega__sub { display: inline-flex !important; align-items: center; gap: 8px; padding: 6px 10px !important; margin-left: -10px; border-radius: var(--radius-s); transition: background .15s, color .15s; }
.mega a.mega__sub::after { content: "→"; color: var(--brand); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.mega a.mega__sub:hover { background: var(--mint-soft, #eaf5f0) !important; color: var(--brand) !important; }
.mega a.mega__sub:hover::after { opacity: 1; transform: none; }
.mega__groups { gap: 12px; margin-top: 8px; }
.mega__groups > li { padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.mega__groups > li:hover { border-color: var(--brand); box-shadow: 0 6px 18px -10px rgba(16, 121, 85, .45); }
.mega__groups > li > a { padding: 0 0 6px !important; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.mega__groups > li > a:hover { text-decoration: underline; }
.mega__prods a { padding: 3px 8px !important; margin: 0 -8px; border-radius: 6px; transition: background .12s, color .12s; }
.mega__prods a:hover { background: var(--mint-soft, #eaf5f0) !important; color: var(--brand) !important; font-weight: 600 !important; }
/* ===== end stage 1 ===== */

/* ===== stage 3 (2026-11-20): generator – net drawn as mesh + posts; empty state before dimensions ===== */
.sk-net { stroke: #3c4a46; stroke-width: .6; }
.sk-mesh { stroke: #3c4a46; stroke-width: .9; fill: none; }
.sk-post { fill: #1b2422; stroke: #fff; stroke-width: .8; }
.gopt:has(input:checked) .sk-net, .gopt:has(input:checked) .sk-mesh { stroke: #0b5d40; }
.gopt:has(input:checked) .sk-post { fill: #0b5d40; }
.sk-lab { font-size: 11px; }
.gen-empty { padding: 14px 0 !important; color: var(--muted) !important; font-weight: 400 !important; white-space: normal !important; text-align: left !important; font-size: .9rem; }
.gwall.is-missing input[data-l] { border-color: var(--danger, #c0392b) !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.gen-dimhint { margin: 10px 0 0; color: var(--danger, #c0392b); font-weight: 600; font-size: .9rem; }
/* ===== end stage 3 ===== */

/* ===== stage 5 (2026-11-20): contact form – attachments dropzone ===== */
.field .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.dropzone { position: relative; }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone__box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 22px 16px; border: 2px dashed var(--mint-200); border-radius: var(--radius-s); background: var(--mint-soft); color: var(--brand); cursor: pointer; transition: border-color .2s, background .2s; margin: 0; }
.dropzone__box span { color: var(--ink); font-size: .95rem; }
.dropzone__box strong { color: var(--brand); }
.dropzone__or { color: var(--muted) !important; }
.dropzone__box small { color: var(--muted); font-size: .8rem; line-height: 1.45; max-width: 46ch; }
.dropzone__box:hover, .dropzone.is-over .dropzone__box { border-color: var(--brand); background: #dff0e8; }
.dropzone__input:focus-visible + .dropzone__box { outline: 3px solid var(--mint); outline-offset: 2px; }
.dropzone__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.dropzone__list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; font-size: .9rem; }
.dropzone__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.dropzone__size { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.dropzone__rm { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.dropzone__rm:hover { background: #fbe9e7; color: var(--danger); }
.dropzone__err { margin: 8px 0 0; color: var(--danger); font-weight: 600; font-size: .88rem; }
@media (max-width: 600px) { .dropzone__or { display: none; } }
/* ===== end stage 5 ===== */

/* ===== stage 6 (2026-11-20): mega menu – categories with long sub-names in 2 columns, never wider than the panel ===== */
.mega__subs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega__subs.mega__subs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1180px) { .mega__subs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mega a.mega__sub { max-width: 100%; }
/* ===== end stage 6 ===== */

/* ===== stage 7 (2026-11-20): bigger logo (was 54 / 44 / 34 px high) ===== */
.logo img { height: 62px; }
@media (max-width: 1240px) { .logo img { height: 56px; } }
@media (max-width: 980px) { .logo img { height: 48px; } }
@media (max-width: 560px) { .logo img { height: 38px; } }
@media (max-width: 380px) { .logo img { height: 34px; } }
@media (max-width: 350px) { .logo img { height: 30px; } }
/* ===== end stage 7 ===== */

/* ===== stage 8 (2026-11-20): "Oferta" mega menu in the header – 6 items, tighter nav on laptops ===== */
.cta-short { display: none; }
@media (max-width: 1440px) and (min-width: 981px) {
  .header .container { gap: 20px; }
  .nav__list { gap: 2px; }
  .nav__list a { padding: 12px 11px; font-size: 1.02rem; }
}
@media (max-width: 1300px) and (min-width: 981px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav__list a { padding: 12px 9px; font-size: 1rem; }
}
@media (max-width: 1140px) and (min-width: 981px) {
  .logo img { height: 46px; }
  .header .container { gap: 14px; }
  .nav__list a { padding: 10px 7px; font-size: .94rem; }
  .nav__list a.nav__gen::before { display: none; }
  .header__cta { display: none !important; }
}
/* ===== end stage 8 ===== */

/* ===== stage 9 (2026-11-20): category cards (home "Co produkujemy" + /oferta/) – uniform grid, pills for subcategories ===== */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.cat-card:hover { box-shadow: var(--shadow); border-color: var(--mint-200); }
.cat-card__img { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg); }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-card__img img { transform: scale(1.04); }
.cat-card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.cat-card__title { font-size: 1.3rem; margin: 0; line-height: 1.25; }
.cat-card__title a { color: var(--ink); text-decoration: none; }
.cat-card__title a:hover { color: var(--brand); }
.cat-card__body > p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.cat-card__chips { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--mint-200); border-radius: 999px; background: var(--mint-soft); color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.cat-chip:hover, .cat-chip:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-chip--more { background: #fff; color: var(--brand); border-style: dashed; }
.cat-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 700; color: var(--brand); text-decoration: none; }
.cat-card__more svg { width: 18px; height: 18px; transition: transform .2s; }
.cat-card__more:hover svg { transform: translateX(4px); }
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cat-grid { grid-template-columns: 1fr; gap: 18px; } .cat-card__body { padding: 18px 18px 20px; } .cat-chip { min-height: 40px; } }
.page-content + .cat-grid { margin-top: 32px; }
/* ===== end stage 9 ===== */

/* ===== stage 12 (2026-11-20): Turnstile on the contact form ===== */
.turnstile-wrap { min-height: 65px; max-width: 420px; }
/* ===== end stage 12 ===== */

/* ===== stage 13: inline field errors on the contact form ===== */
.field-error { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; color: var(--danger); font-size: .88rem; font-weight: 600; line-height: 1.4; }
.field-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
label.check.is-invalid input[type=checkbox] { outline: 2px solid var(--danger); outline-offset: 2px; }
label.check + .field-error { margin-top: -6px; }
.turnstile-wrap.is-invalid { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 8px; }
.turnstile-wrap:focus { outline-offset: 4px; }
/* ===== end stage 13 ===== */

/* ===== stage 14 (2026-11-20): header centred at every width + card toast (bottom right / bottom on phones) ===== */
@media (min-width: 1301px) {
  .logo img { height: 56px; }
  .header .container { gap: 16px; }
  .nav__list { gap: 0; }
  .nav__list a { padding: 12px 10px; font-size: 1.02rem; }
}
.header .container { justify-content: space-between; }
.nav { min-width: 0; }
.toast {
  left: auto; right: 24px; bottom: 24px; width: max-content; max-width: min(520px, calc(100vw - 48px)); min-width: 300px;
  gap: 12px; padding: 14px 10px 14px 16px; border-radius: 14px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 18px 50px -16px rgba(15, 27, 26, .35);
  transform: translateY(calc(100% + 40px)); visibility: hidden;
  transition: transform .4s var(--ease, ease), visibility 0s linear .4s;
}
.toast.is-visible { transform: none; visibility: visible; transition: transform .4s var(--ease, ease), visibility 0s; }
.toast__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; }
.toast__msg { flex: 1; min-width: 0; font-size: .93rem; line-height: 1.4; }
.toast a.toast__link { flex: none; padding: 8px 12px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.toast a.toast__link:hover { background: var(--brand-600); }
.toast__close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.toast__close:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 767px) {
  .toast { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; min-width: 0; flex-wrap: wrap; padding: 12px 8px 12px 14px; }
  .toast__msg { flex-basis: calc(100% - 80px); }
  .toast a.toast__link { margin-left: 40px; }
  .toast { padding-right: 40px; }
  .toast__close { position: absolute; top: 6px; right: 6px; }
  body.offer-sticky-on .toast { bottom: 76px; }
}
/* ===== end stage 14 ===== */

/* ===== stage 17 (2026-11-20): quantity in the order summary as a green badge (like the cart counter) ===== */
.review-item__name .product-quantity, .woocommerce-order-details .product-quantity {
  display: inline-block; min-width: 24px; height: 22px; margin-left: 6px; padding: 0 8px; border-radius: 999px;
  background: var(--brand); color: #fff !important; font: 700 .76rem/22px var(--font-head); text-align: center; vertical-align: 1px; white-space: nowrap;
}
/* ===== end stage 17 ===== */

/* ===== stage 18 (2026-11-20): product perks – Polish flag, 2 × 2 on phones (was 1 column below 480 px) ===== */
.perks svg.flag-pl--perk { width: 21px; height: 14px; border-radius: 2px; margin: 0 -0.5px; }
@media (max-width: 480px) {
  .perks { grid-template-columns: 1fr 1fr !important; gap: 10px 12px; }
  .perks li { gap: 8px; font-size: .8rem; line-height: 1.3; align-items: center; }
  .perks svg { width: 18px; height: 18px; }
  .perks svg.flag-pl--perk { width: 19px; height: 13px; }
}
/* ===== end stage 18 ===== */

/* ===== stage 19 (2026-11-20): product page quantity stepper + cart button in one row; icon-only button on phones ===== */
.configurator--simple form.cart { align-items: center; }
.configurator--simple .quantity { margin: 0; }
.qty--product { height: 52px; border-radius: 12px; }
.qty--product button { width: 44px; height: 50px; font-size: 1.35rem; line-height: 1; }
.qty--product button:disabled { opacity: .35; cursor: default; }
.qty--product input.qty, .configurator--simple .qty--product input {
  width: 56px !important; min-height: 0 !important; height: 50px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  text-align: center; font: 600 1.05rem var(--font-head); background: transparent; -moz-appearance: textfield;
}
.qty--product input::-webkit-outer-spin-button, .qty--product input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.configurator--simple .single_add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin: 0; }
.configurator--simple .single_add_to_cart_button svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 600px) {
  .configurator--simple form.cart { flex-wrap: wrap; gap: 12px; }
  .configurator--simple form.cart .quantity { flex: 1 1 0; min-width: 0; }
  .qty--product { width: 100%; justify-content: space-between; }
  .qty--product input.qty { flex: 1; width: auto !important; }
  .configurator--simple .single_add_to_cart_button { flex: none; width: 52px; min-width: 52px; height: 52px; padding: 0 !important; border-radius: 12px; }
  .configurator--simple .single_add_to_cart_button .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .configurator--simple .single_add_to_cart_button svg { width: 22px; height: 22px; }
}
/* ===== end stage 19 ===== */

/* ===== stage 21 (2026-11-20): subcategory pills under the offer article hero ===== */
.offer-subnav { padding: 20px 0 6px; }
.offer-subnav .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.offer-subnav__label { font: 700 .78rem/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offer-subnav__label a { color: var(--brand); text-decoration: none; letter-spacing: 0; text-transform: none; font-size: .95rem; }
.offer-subnav__label a:hover { text-decoration: underline; }
.offer-subnav .cat-card__chips { margin: 0; }
.cat-chip.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 680px) {
  .offer-subnav .cat-card__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; width: calc(100% + var(--gutter) * 2); }
  .offer-subnav .cat-card__chips::-webkit-scrollbar { display: none; }
  .offer-subnav .cat-chip { white-space: nowrap; }
}
/* ===== end stage 21 ===== */

/* ================= shop layout v2 (inc/listing.php – rollback: wp option update kramer_shop_layout v1) ================= */
/* round category avatars */
.cat-avatars { margin: 0 0 28px; }
.cat-avatars ul { list-style: none; margin: 0; padding: 4px 0; display: flex; flex-wrap: wrap; gap: 18px 14px; }
.cat-avatars__arrow { display: none; }   /* desktop: all avatars are visible */
.cat-avatars li { width: 118px; flex: none; }
.cat-av { display: grid; justify-items: center; gap: 4px; text-align: center; text-decoration: none; color: var(--ink); padding: 4px 2px; border-radius: var(--radius); }
.cat-av__img { width: 96px; height: 96px; border-radius: 50%; padding: 3px; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--brand);
  transition: border-color .2s, transform .2s, box-shadow .2s; }
.cat-av__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.cat-av__name { font: 600 .9rem/1.25 var(--font-head); margin-top: 6px; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.cat-av { width: 100%; min-width: 0; }
.cat-av small { font-size: .76rem; color: var(--muted); }
.cat-av:hover .cat-av__img { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.cat-av:hover .cat-av__name { color: var(--brand); }
.cat-av.is-active .cat-av__img { border-color: var(--brand); box-shadow: 0 0 0 3px var(--mint-soft, #eaf5f0); }
.cat-av--gen .cat-av__img { border-style: dashed; border-color: var(--brand); }
@media (max-width: 980px) {
  .cat-avatars { margin: 0 calc(-1 * var(--gutter)) 18px; }
  .cat-avatars ul { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 10px; gap: 6px; scrollbar-width: none; }
  .cat-avatars ul::-webkit-scrollbar { display: none; }
  .cat-avatars { position: relative; }
  .cat-avatars__arrow { position: absolute; top: 4px; z-index: 2; width: 44px; height: 80px; padding: 0; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: none; }
  .cat-avatars__arrow[hidden] { display: none; }
  .cat-avatars__arrow::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
  .cat-avatars__arrow--prev { left: 0; }
  .cat-avatars__arrow--next { right: 0; }
  .cat-avatars__arrow--prev::before { background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)); }
  .cat-avatars__arrow--next::before { background: linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)); }
  .cat-avatars__arrow svg { position: relative; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); }
  .cat-avatars__arrow--prev svg { transform: rotate(180deg); }
  .cat-avatars li { width: 96px; scroll-snap-align: start; }
  .cat-av__img { width: 72px; height: 72px; }
  .cat-av__name { font-size: .78rem; }
  .cat-av small { font-size: .7rem; }
}
/* listing: filter panel + products */
.shop2 { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.shop2__side { position: sticky; top: 100px; max-height: calc(100vh - 116px); display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.shop2__panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
/* back to the shop: avatar at the subcategory level, green button at the last level */
.cat-av--back .cat-av__img { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-av--back .cat-av__img svg { width: 30px; height: 30px; transform: rotate(180deg); }
.cat-av--back:hover .cat-av__img { background: var(--brand-700, #0b5c40); border-color: var(--brand-700, #0b5c40); }
.cat-av--back .cat-av__name { color: var(--brand); }
.shop2__back { width: 100%; justify-content: center; text-transform: uppercase; letter-spacing: .04em; min-height: 48px; }
.shop2__back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.shop2__back--main { display: none; }
.shop2__phead { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.shop2__phead h2 { font-size: 1.1rem; margin: 0; }
.shop2__phead { gap: 10px; }
.shop2__phead h2 { margin-right: auto; }
.shop2__clear { padding: 6px 10px; margin: -6px -10px -6px 0; border: 0; border-radius: var(--radius-s); background: none; color: var(--brand); font: 600 .88rem var(--font-head); cursor: pointer; }
.shop2__clear:hover { background: var(--mint-soft, #eaf5f0); }
.shop2__clear[hidden] { display: none; }
.shop2__pfoot { display: none; }   /* desktop: no footer ("Wyczyść" is next to the title); phones: "Pokaż N produktów" */
.shop2__x { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft, #f4f6f5); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.shop2__form { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px; scrollbar-width: thin; }
.shop2__pfoot { padding: 12px 18px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.shop2__pfoot .btn { flex: 1; min-height: 44px; }
.shop2__show { display: none !important; }
.shop2__backdrop { display: none; }
/* groups */
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup summary { display: flex; align-items: center; gap: 8px; padding: 14px 0; cursor: pointer; list-style: none; font: 600 .82rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.fgroup[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.fgroup__sel { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font: 700 .72rem/20px var(--font-head); text-align: center; letter-spacing: 0; }
.fgroup__body { padding: 0 0 14px; }
/* category rows: custom checkbox, name, live count */
.fopt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 6px 4px; margin: 0 -4px; border-radius: var(--radius-s); cursor: pointer; font-size: .92rem; line-height: 1.35; color: var(--text); }
.fopt:hover { background: var(--soft, #f4f6f5); }
.fopt input, .fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fopt__box { width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid #b7c2be; border-radius: 4px; background: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.fopt input:checked + .fopt__box { background: var(--brand); border-color: var(--brand); }
.fopt input:checked + .fopt__box::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.fopt input:focus-visible + .fopt__box, .fchip input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.fopt input:checked ~ .fopt__name { color: var(--ink); font-weight: 600; }
.fopt small { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; padding-top: 1px; }
.fopt--more { display: none; }
[data-more-box].is-expanded .fopt--more { display: grid; }
.fgroup__more { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--brand); font: 600 .86rem var(--font-head); cursor: pointer; }
/* chips */
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { position: relative; cursor: pointer; }
.fchip span { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 11px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; font: 500 .86rem var(--font-body); color: var(--text); transition: border-color .15s, background .15s; }
.fchip small { font-size: .72rem; color: var(--muted); }
.fchip:hover span { border-color: var(--brand); }
.fchip input:checked + span { border-color: var(--brand); background: var(--mint-soft, #eaf5f0); color: var(--brand-700, #0b5c40); font-weight: 600; }
.fopt.is-zero, .fchip.is-zero { opacity: .4; pointer-events: none; }
/* price */
.shop2 input[type=range] { width: 100%; accent-color: var(--brand); }
.frange { display: flex; justify-content: space-between; align-items: baseline; font-size: .78rem; color: var(--muted); }
.frange strong { font: 600 .9rem var(--font-head); color: var(--ink); }
/* toolbar */
.shop2__bar p strong { color: var(--ink); }
.shop2__badge { min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font: 700 .72rem/20px var(--font-head); }
/* phones / tablets: the filters slide in from the left */
@media (max-width: 980px) {
  .shop2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .shop2__side { position: static; max-height: none; display: block; }
  .shop2__back--side { display: none; }
  .shop2__back--main { display: inline-flex; margin-bottom: 14px; }
  .cat-av--back .cat-av__img svg { width: 24px; height: 24px; }
  .shop2__panel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 120; width: min(400px, 90vw); max-height: none; border-radius: 0 var(--radius) var(--radius) 0; border: 0;
    transform: translateX(-105%); transition: transform .28s var(--ease, ease); box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
  .shop2__panel.is-open { transform: none; }
  .shop2__phead { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .shop2__x { display: grid; place-items: center; }
  .shop2__show { display: inline-flex !important; }
  .shop2__pfoot { display: flex !important; }
  .shop2__clear { margin-right: 0; }
  .shop2__pfoot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .shop2__backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(7, 17, 15, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .shop2__panel.is-open + .shop2__backdrop { opacity: 1; pointer-events: auto; }
  .shop2__bar { gap: 10px; }
  .shop2__bar .shop-toolbar__actions { flex-wrap: nowrap; }
  .shop2__bar select { max-width: 52vw; }
  .fopt { padding: 9px 4px; }
  .fchip span { padding: 8px 12px; }
}
body.kr-noscroll { overflow: hidden; }
/* phones: count · Filtry · sorting in one row; products 2 per row in compact cards */
@media (max-width: 600px) {
  .shop2__bar { flex-wrap: nowrap; gap: 8px; margin-bottom: 14px; }
  .shop2__bar p { flex: none; font-size: .9rem; white-space: nowrap; }
  .shop2__bar .shop-toolbar__actions { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 6px; }
  .shop2__bar .filters-toggle { flex: none; min-height: 40px; padding: 6px 12px; font-size: .86rem; gap: 6px; }
  .shop2__bar .filters-toggle svg { width: 16px; height: 16px; }
  .shop2__bar .shop2__badge { margin-left: 2px; }
  .shop2__bar select { flex: 0 1 auto; min-width: 0; width: auto; max-width: 150px; min-height: 40px; padding: 6px 26px 6px 10px; font-size: .86rem; }
  .shop2 .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop2 .p-card__badges { top: 8px; left: 8px; }
  .shop2 .p-card__badges .tag { font-size: .62rem; padding: 3px 6px; }
  .shop2 .p-card__body { padding: 10px 10px 12px; gap: 5px; }
  .shop2 .p-card__cat { font-size: .6rem; letter-spacing: .06em; line-height: 1.2; }
  .shop2 .p-card h3 { font-size: .86rem; line-height: 1.25; }
  .shop2 .p-card__specs { display: none; }
  .shop2 .p-card__foot { gap: 6px; padding-top: 6px; }
  .shop2 .price strong { font-size: 1.02rem; }
  .shop2 .price small { font-size: .66rem; line-height: 1.3; }
  .shop2 .price strong.price--ask { font-size: .82rem; }
  .shop2 .p-card__add { width: 34px; height: 34px; flex: none; }
  .shop2 .p-card__add svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) { .shop2__bar p { font-size: .82rem; } .shop2__bar select { max-width: 120px; } }

/* department pages: sub-category tiles, quick filters, active filters */
.sub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.sub-tile { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.sub-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-s); color: var(--ink); }
.sub-tile__img img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-s); display: block; }
.sub-tile__body { display: grid; gap: 4px; }
.sub-tile__body strong { font: 600 1rem/1.25 var(--font-head); }
.sub-tile__body small { color: var(--brand); font-weight: 600; }
.quick-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.quick-filters > span { font: 600 .9rem var(--font-head); color: var(--muted); margin-right: 4px; }
.qf-chip, .af-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ink); font: 500 .9rem var(--font-body); text-decoration: none; cursor: pointer; }
.qf-chip:hover { border-color: var(--brand); color: var(--brand); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 16px; }
.af-chip { background: var(--mint-soft, #eaf5f0); border-color: var(--brand); }
.af-chip span[aria-hidden] { font-size: 1.1em; line-height: 1; }
.shop-toolbar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .sub-tiles { grid-template-columns: 1fr 1fr; } .sub-tile { grid-template-columns: 1fr; } .sub-tile__img img { width: 100%; height: 96px; } }
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sub-chips .chip { text-decoration: none; }
/* stage 28: live search in place of the menu (rules at the end of the file) */
.header-search[hidden] { display: none; }
.header .container { position: relative; }
.search-404 { display: flex; gap: 10px; max-width: 520px; margin-top: 20px; }
.search-404 input { flex: 1; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .dots { border: 0; background: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* ===== stage 23: client round 3 ===== */
/* round category avatars: bigger, clearer names */
.cat-avatars li { width: 128px; }
.cat-av__img { width: 110px; height: 110px; }
.cat-av__name { font-size: .92rem; color: var(--ink); overflow-wrap: normal; hyphens: manual; }
.cat-av small { font-size: .8rem; }
/* "Generator wycen" is a tool, not a category: green circle with a calculator, set apart from the categories */
.cat-avatars__gen { margin-left: 4px; padding-left: 16px; border-left: 1px dashed var(--line); }
.cat-av--gen .cat-av__img { background: var(--brand); border: 2px solid var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(16, 121, 85, .8); }
.cat-av--gen .cat-av__img svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cat-av--gen .cat-av__name { color: var(--brand); }
.cat-av--gen:hover .cat-av__img { background: var(--brand-700, #0b5c40); border-color: var(--brand-700, #0b5c40); }
@media (max-width: 760px) {
  .cat-avatars li { width: 104px; }
  .cat-av__img { width: 86px; height: 86px; }
  .cat-av__name { font-size: .84rem; }
  .cat-avatars__gen { margin-left: 4px; padding-left: 8px; }
  .cat-av--gen .cat-av__img svg { width: 36px; height: 36px; }
  .cat-avatars__arrow { height: 96px; }
}
/* filters: options one under another, colour dots */
.fopt__dot { display: inline-block; width: 14px; height: 14px; margin: 0 7px -2px 0; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .18); }
/* product cards: available colours */
.p-card__colours { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: -2px 0 10px; }
.p-card__colours i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .2); }
.p-card__colours small { font-size: .74rem; color: var(--muted); }
/* product page: lead time, delivery note, shipping table */
.buybox__meta .lead-time { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft, #eaf5f0); color: var(--brand-700, #0b5c40); }
.buybox__meta .lead-time svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.buybox__meta .lead-time strong { color: inherit; }
.buybox__meta .ship-note { font-weight: 600; color: var(--brand-700, #0b5c40); }
.ship-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: .92rem; }
.ship-table th, .ship-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ship-table th { font: 600 .78rem var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ship-table small { color: var(--muted); }
@media (max-width: 640px) { .ship-table thead { display: none; } .ship-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); } .ship-table td { border: 0; padding: 2px 4px; } .ship-table td:first-child { font-weight: 600; } }
/* calculator: net below the minimum area */
.dims__row.is-bad input { border-color: var(--danger, #c0392b) !important; }
.dims__err { color: var(--danger, #c0392b); font-weight: 600; margin: 6px 0 0; }
/* generator: lead times */
.gen-lead { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-s, 6px); background: var(--mint-soft, #eaf5f0); color: var(--brand-700, #0b5c40); }
.gen-lead svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ===== stage 24: main shop page – dynamic filter panel per main category ===== */
.fgroup[hidden], .fpanel[hidden], [data-main-list][hidden], .fpanel__back[hidden] { display: none; }
.fpanel__back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 0; border: 0; background: none; color: var(--brand); font: 600 .88rem var(--font-head); cursor: pointer; }
.fpanel__back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.fpanel__back:hover { text-decoration: underline; }
.fpanel__title { margin: 0 0 6px; font: 700 1rem/1.3 var(--font-head); color: var(--ink); }

/* stage 25: filter group without products for the current selection */
.fgroup.is-empty { display: none; }

/* ===== stage 28: live header search – replaces the menu next to the logo while open ===== */
.header.is-search .nav { display: none; }
.header.is-search [data-search-toggle] { display: none; }
.header-search { position: relative; flex: 1 1 auto; max-width: 760px; margin: 0 auto; display: flex; align-items: center; }
.header-search input[type=search] { width: 100%; min-height: 52px; padding: 12px 48px 12px 46px; border: 1.5px solid var(--brand); border-radius: 999px; background: #fff; font: 500 1rem var(--font-body); color: var(--ink); box-shadow: 0 0 0 4px var(--mint-soft, #eaf5f0); -webkit-appearance: none; appearance: none; }
.header-search input[type=search]:focus { outline: none; }
.header-search input[type=search]::-webkit-search-cancel-button { display: none; }
.header-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--brand); display: grid; pointer-events: none; }
.header-search__icon svg { width: 20px; height: 20px; }
.header-search__close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.header-search__close:hover { background: var(--soft, #f4f6f5); color: var(--ink); }
.hs-results { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 80; max-height: min(70vh, 620px); overflow-y: auto; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35); }
.hs-results[hidden] { display: none; }
.hs-head { display: flex; align-items: baseline; gap: 8px; margin: 8px 10px 6px; font: 600 .74rem var(--font-head); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hs-head small { font-size: .74rem; letter-spacing: 0; }
.hs-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--radius-s, 6px); text-decoration: none; color: var(--ink); }
.hs-item:hover, .hs-item.is-active { background: var(--mint-soft, #eaf5f0); }
.hs-item__img { width: 52px; height: 52px; border-radius: var(--radius-s, 6px); overflow: hidden; background: var(--soft, #f4f6f5); }
.hs-item--cat .hs-item__img { border-radius: 50%; }
.hs-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-item__main { display: grid; gap: 2px; min-width: 0; }
.hs-item__main strong { font: 600 .95rem/1.3 var(--font-head); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hs-item__main small, .hs-item__price small { font-size: .78rem; color: var(--muted); }
.hs-item__price { display: grid; justify-items: end; text-align: right; gap: 1px; white-space: nowrap; }
.hs-item__price strong { font: 700 1rem var(--font-head); color: var(--ink); }
.hs-all { display: block; margin: 2px 0 6px; padding: 10px; border-radius: var(--radius-s, 6px); font: 600 .9rem var(--font-head); color: var(--brand); text-decoration: none; text-align: center; }
.hs-all:hover, .hs-all.is-active { background: var(--mint-soft, #eaf5f0); }
.hs-note { margin: 10px; color: var(--muted); }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px 10px; }
.hs-chip { padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font: 500 .9rem var(--font-body); }
.hs-chip:hover { border-color: var(--brand); color: var(--brand); }
/* phones / tablets (menu collapsed): the field covers the header row, results full width below */
@media (max-width: 980px) {
  .header-search { position: absolute; inset: 0; max-width: none; margin: 0; padding: 0 var(--gutter, 16px); background: #fff; z-index: 75; }
  .header-search input[type=search] { min-height: 46px; font-size: 16px; padding-left: 42px; }
  .header-search__icon { left: calc(var(--gutter, 16px) + 14px); }
  .header-search__close { right: calc(var(--gutter, 16px) + 4px); }
  .hs-results { left: 0; right: 0; top: 100%; border-radius: 0; border-left: 0; border-right: 0; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .hs-item { grid-template-columns: 44px minmax(0, 1fr); }
  .hs-item__img { width: 44px; height: 44px; }
  .hs-item__price { grid-column: 2; justify-items: start; text-align: left; white-space: normal; }
  .hs-item__price strong { font-size: .92rem; }
}

/* stage 29: home calculator – own dropdown arrow, 10 px further in from the right edge than the browser's */
/* stage 31: same arrow in the generator (Rozmiar oczka, Grubość / typ) */
.hero-panel .qc-sel .field select, .gen .field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23101a17' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: #fff; background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.hero-panel .qc-sel .field select::-ms-expand, .gen .field select::-ms-expand { display: none; }

/* stage 30: generator lead times – title, then one line per item */
.gen-lead__title { display: block; margin-bottom: 2px; }
.gen-lead__list { list-style: none; margin: 0; padding: 0; }
.gen-lead__list li { margin: 2px 0 0; }

/* stage 32: product page – "Wycena" next to "Dodaj do koszyka" (was an inline style); phones: both buttons full width */
.configurator .buy-actions .btn--ghost { flex: 0 1 auto; }
@media (max-width: 640px) { .buy-actions { flex-wrap: wrap; } .buy-actions .btn, .configurator .buy-actions .btn--ghost { flex: 1 1 100%; width: 100%; } }

/* ===== stage 34: cart – empty the cart, files for the order ===== */
.cart-empty-all { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); }
.cart-empty-all svg { width: 16px; height: 16px; }
.cart-empty-all:hover { color: var(--danger, #c0392b); }
.kr-files { margin: 18px 0 6px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: #fff; }
.kr-files h3 { margin: 0 0 4px; font: 700 1rem var(--font-head); }
.kr-files h3 small { font-weight: 400; color: var(--muted); }
.kr-files .note { margin: 0 0 10px; }
.kr-files__list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.kr-files__list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s, 6px); background: var(--soft, #f4f6f5); }
.kr-files__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.kr-files__list small { color: var(--muted); white-space: nowrap; }
.kr-files__add { cursor: pointer; }
.kr-files__add svg { width: 16px; height: 16px; }
.kr-files__msg { margin: 8px 0 0; font-size: .9rem; color: var(--brand-700, #0b5c40); }
.kr-files__msg.is-error { color: var(--danger, #c0392b); }
.kr-files.is-busy { opacity: .6; pointer-events: none; }
.kr-files-checkout { margin-top: 10px; }

/* ===== stage 35: top bar – customer account link ===== */
.topbar__right { display: inline-flex; align-items: center; gap: 22px; }
.topbar__account { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: inherit; text-decoration: none; }
.topbar__account:hover { color: var(--brand); }
.topbar__account svg { width: 15px; height: 15px; }

/* ===== stage 36: Moje konto – sidebar + content, tiles, tables, login card ===== */
.acc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.acc__side { position: sticky; top: 120px; display: grid; gap: 14px; }
.acc-user { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.acc-user__av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 1rem var(--font-head); letter-spacing: .03em; }
.acc-user strong { display: block; font: 700 1rem/1.25 var(--font-head); }
.acc-user small { display: block; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.acc-nav { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 8px; }
.acc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-s, 6px); text-decoration: none; color: var(--ink); font: 600 .95rem var(--font-head); }
.acc-nav a svg { width: 18px; height: 18px; flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; }
.acc-nav a:hover { background: var(--soft, #f4f6f5); }
.acc-nav li.is-active a { background: var(--mint-soft, #eaf5f0); color: var(--brand-700, #0b5c40); }
.acc-nav li.is-active a svg { color: var(--brand); }
.acc-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--muted); font-weight: 500; }
.acc__main { min-width: 0; }
.acc__main h2 { font-size: 1.5rem; margin: 0 0 6px; }
.acc__main h3 { font-size: 1.1rem; margin: 0; }
.acc-hello { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 24px 26px; border-radius: var(--radius); background: linear-gradient(135deg, var(--mint-soft, #eaf5f0), #fff 70%); border: 1px solid var(--line); margin-bottom: 18px; }
.acc-hello p { margin: 0; color: var(--text); max-width: 60ch; }
.acc-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: #fff; font: 600 .82rem var(--font-head); white-space: nowrap; }
.acc-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.acc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.acc-tile { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.acc-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-s); transform: translateY(-2px); }
.acc-tile__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-soft, #eaf5f0); color: var(--brand); margin-bottom: 6px; }
.acc-tile__ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.acc-tile strong { font: 700 1rem var(--font-head); }
.acc-tile small { color: var(--muted); font-size: .82rem; }
.acc-head { margin-bottom: 14px; }
.acc-head--row { display: flex; justify-content: space-between; align-items: baseline; }
.acc-head--row a { font-weight: 600; text-decoration: none; }
/* tables: our own and WooCommerce's (orders, order details) */
.acc-table, .acc__main .woocommerce-orders-table, .acc__main .woocommerce-table--order-details { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-table table, .acc__main table.shop_table { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.acc-table th, .acc-table td, .acc__main table.shop_table th, .acc__main table.shop_table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: .94rem; }
.acc-table thead th, .acc__main table.shop_table thead th { background: var(--soft, #f4f6f5); font: 600 .74rem var(--font-head); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.acc-table tbody tr:last-child td, .acc__main table.shop_table tbody tr:last-child td { border-bottom: 0; }
.acc-table tbody tr:hover, .acc__main .woocommerce-orders-table tbody tr:hover { background: #fafcfb; }
.acc-table a, .acc__main table.shop_table a { font-weight: 600; text-decoration: none; }
.acc__main .woocommerce-button, .acc__main a.button, .acc__main button.button { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; margin: 2px 4px 2px 0; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .85rem var(--font-head); text-decoration: none; cursor: pointer; }
.acc__main .woocommerce-button:hover, .acc__main a.button:hover, .acc__main button.button:hover { border-color: var(--brand); color: var(--brand); }
.acc__main button.button[name=save_account_details], .acc__main button.button[name=save_address] { background: var(--brand); border-color: var(--brand); color: #fff; min-height: 46px; padding: 10px 22px; }
.acc-status, .acc__main mark.order-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--soft, #f4f6f5); color: var(--ink); font: 600 .78rem var(--font-head); }
.acc-status--processing, .acc-status--completed { background: var(--mint-soft, #eaf5f0); color: var(--brand-700, #0b5c40); }
.acc-status--on-hold, .acc-status--pending { background: #fff5e0; color: #8a5a00; }
.acc-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--soft, #f4f6f5); color: var(--muted); font-size: .8rem; }
.acc-dl { display: inline-flex; align-items: center; gap: 6px; }
.acc-dl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.acc-empty { display: grid; justify-items: center; gap: 8px; padding: 34px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); background: #fff; }
.acc-empty svg { width: 34px; height: 34px; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.6; }
.acc-empty p { margin: 0 0 6px; }
.acc-help { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 26px; padding: 18px 22px; border-radius: var(--radius); background: var(--soft, #f4f6f5); }
.acc-help p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.acc-help__links { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-help__links .btn { gap: 6px; }
.acc-help__links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
/* addresses + forms */
.acc__main .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.acc__main .woocommerce-Address { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.acc__main .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.acc__main .woocommerce-Address-title h2 { font-size: 1.05rem; margin: 0; }
.acc__main .woocommerce-Address address { font-style: normal; color: var(--text); line-height: 1.6; }
.acc__main .woocommerce-EditAccountForm, .acc__main .woocommerce-address-fields { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.acc__main fieldset { margin: 18px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-s, 6px); }
.acc__main fieldset legend { padding: 0 6px; font: 700 .95rem var(--font-head); }
/* login */
.acc-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 980px; margin: 0 auto; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; background: #fff; box-shadow: var(--shadow-s); }
.acc-login__form { padding: 36px 38px; }
.acc-login__form h2 { margin: 0 0 4px; font-size: 1.7rem; }
.acc-login__form .note { margin: 0 0 20px; }
.acc-login__form .form-row { margin: 0 0 14px; }
.acc-login__form label { display: block; font: 600 .9rem var(--font-head); margin-bottom: 6px; }
.acc-login__form input.input-text { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s, 6px); font: inherit; background: #fff; }
.acc-login__form input.input-text:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 121, 85, .12); }
.acc-login__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 18px; font-size: .9rem; }
.acc-login__row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.acc-login__info { padding: 36px 38px; background: linear-gradient(160deg, var(--brand), var(--brand-700, #0b5c40)); color: #fff; }
.acc-login__info h3 { margin: 0 0 16px; font-size: 1.25rem; color: #fff; }
.acc-login__info ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.acc-login__info li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.acc-login__info li svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 8px; background: rgba(255, 255, 255, .14); fill: none; stroke: currentColor; stroke-width: 2; box-sizing: content-box; }
.acc-login__info p { margin: 0 0 10px; color: rgba(255, 255, 255, .9); }
.acc-login__info a { color: #fff; font-weight: 600; }
.acc-login__info .note { color: rgba(255, 255, 255, .75); font-size: .86rem; }
@media (max-width: 980px) {
  .acc { grid-template-columns: 1fr; gap: 18px; }
  .acc__side { position: static; }
  .acc-nav { padding: 6px; overflow-x: auto; }
  .acc-nav ul { display: flex; gap: 4px; }
  .acc-nav a { white-space: nowrap; padding: 9px 12px; }
  .acc-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
  .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-login { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .acc-hello { flex-direction: column; padding: 18px; }
  .acc-help { flex-direction: column; align-items: flex-start; }
  .acc__main .woocommerce-Addresses { grid-template-columns: 1fr; }
  .acc-login__form, .acc-login__info { padding: 24px 20px; }
  /* tables → cards */
  .acc-table thead, .acc__main .woocommerce-orders-table thead { display: none; }
  .acc-table tr, .acc__main .woocommerce-orders-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .acc-table td, .acc__main .woocommerce-orders-table td { border: 0; padding: 2px 0; }
  .acc-table td::before, .acc__main .woocommerce-orders-table td::before { content: attr(data-title); display: block; font: 600 .7rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}
/* login: WooCommerce "show password" button as an eye inside the field */
.acc-login__form .password-input { position: relative; display: block; }
.acc-login__form .password-input input { padding-right: 48px; }
.acc-login__form .show-password-input { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b6b66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px no-repeat; }
.acc-login__form .show-password-input.display-password { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23107955' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); }
.acc-login__form .show-password-input:hover { background-color: var(--soft, #f4f6f5); }
.acc-nav a { border: 0; }
.acc__main table.shop_table { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
.acc__main .woocommerce-orders-table, .acc__main .woocommerce-table--order-details { border-radius: var(--radius); }
.topbar__account { white-space: nowrap; }
@media (max-width: 480px) { .topbar__mail { display: none !important; } }

/* ===== stage 37: Moje konto – Wysyłka (status cards), address alert, pencil buttons ===== */
.ship-list { display: grid; gap: 14px; }
.ship-list--single { margin: 0 0 20px; }
.ship-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ship-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ship-card__head h3 { margin: 0; font: 700 1.05rem var(--font-head); }
.ship-card__head h3 a { text-decoration: none; color: var(--ink); }
.ship-card__head small { color: var(--muted); font-size: .84rem; }
.acc-status--s1 { background: #fff5e0; color: #8a5a00; }
.acc-status--s2 { background: #e8f0fb; color: #1c4e87; }
.acc-status--s3, .acc-status--s4 { background: var(--mint-soft, #eaf5f0); color: var(--brand-700, #0b5c40); }
.ship-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.ship-steps li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font: 600 .8rem var(--font-head); color: var(--muted); }
.ship-steps li span { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.ship-steps li::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.ship-steps li:first-child::before { display: none; }
.ship-steps li.is-done span { background: var(--brand); border-color: var(--brand); }
.ship-steps li.is-done span::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ship-steps li.is-done, .ship-steps li.is-now { color: var(--ink); }
.ship-steps li.is-done::before, .ship-steps li.is-now::before { background: var(--brand); }
.ship-steps li.is-now span { border-color: var(--brand); box-shadow: 0 0 0 4px var(--mint-soft, #eaf5f0); background: #fff; }
.ship-steps li.is-now span::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--brand); }
.ship-card__lead { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: .9rem; color: var(--text); }
.ship-card__lead svg, .ship-card__addr svg, .ship-card__track svg, .acc-alert svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; color: var(--brand); }
.ship-card__addr, .ship-card__track { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-s, 6px); background: var(--soft, #f4f6f5); font-size: .92rem; }
.ship-card__track { margin-top: 8px; }
.ship-card__addr small, .ship-card__track small { display: block; color: var(--muted); font-size: .76rem; }
.ship-card__addr a { font-weight: 600; }
.ship-card__track > div { flex: 1; }
.ship-card__track .btn { min-height: 38px; padding: 6px 14px; }
.ship-card__ask, .acc-alert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-s, 6px); background: #fff8e6; border: 1px solid #f1d58a; }
.ship-card__ask > div, .acc-alert > div { flex: 1; }
.ship-card__ask small, .acc-alert small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.ship-card__ask .btn, .acc-alert .btn { gap: 6px; white-space: nowrap; }
.ship-card__ask .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; color: #fff; }
.acc-alert { margin-bottom: 14px; }
.acc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acc-edit { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink); flex: none; }
.acc-edit:hover { border-color: var(--brand); color: var(--brand); background: var(--mint-soft, #eaf5f0); }
.acc-edit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 640px) {
  .ship-card { padding: 14px; }
  .ship-card__head { flex-direction: column; }
  .ship-steps li { font-size: .7rem; }
  .ship-card__ask, .acc-alert, .ship-card__track { flex-direction: column; align-items: flex-start; }
}

/* ===== stage 40: cookie information bar ===== */
.cookie-note { position: fixed; right: 16px; bottom: 16px; z-index: 90; max-width: 520px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .35); font-size: .88rem; line-height: 1.45; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; color: var(--text); }
.cookie-note a { font-weight: 600; }
.cookie-note .btn { flex: none; min-height: 40px; padding: 8px 20px; }
/* stage 43: bottom-right on PC (the "to top" button moves above it while it is open); phones: dark green, full width */
body.kr-cookie-open .to-top { bottom: calc(var(--cookie-h, 90px) + 30px + env(safe-area-inset-bottom)); }
@media (max-width: 640px) {
  .cookie-note { left: 10px; right: 10px; bottom: 10px; max-width: none; background: var(--brand-700, #0b5c40); border-color: var(--brand-700, #0b5c40); box-shadow: 0 14px 36px -10px rgba(0, 0, 0, .55); }
  .cookie-note p { color: rgba(255, 255, 255, .92); }
  .cookie-note strong, .cookie-note a { color: #fff; }
  .cookie-note .btn { background: #fff; border-color: #fff; color: var(--brand-700, #0b5c40); }
  .cookie-note .btn:hover { background: var(--mint-soft, #eaf5f0); }
  body.has-sticky .cookie-note { bottom: 84px; }
}

/* ===== stage 42: customer's discounts, invoice rhythm, "Twoja cena" ===== */
.acc-hello__side { flex: none; display: grid; justify-items: end; gap: 8px; }
.acc-pill { text-decoration: none; }
.acc-hello__inv { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; }
.acc-hello__inv svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.acc-info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.acc-info > svg { width: 20px; height: 20px; flex: none; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 2; margin-top: 2px; }
.acc-info small { display: block; color: var(--muted); font-size: .78rem; }
.acc-info b { display: block; font: 700 1rem var(--font-head); margin: 1px 0 3px; }
.acc-info .note { display: block; margin: 0; font-size: .86rem; }
.disc-box { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, var(--mint-soft, #eaf5f0), #fff 75%); }
.disc-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.1rem; }
.disc-box h3 svg { width: 20px; height: 20px; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 2; }
.disc-box p { margin: 0; }
.disc-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.disc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-s, 6px); background: #fff; border: 1px solid var(--line); }
.disc-list a { font-weight: 600; text-decoration: none; }
.disc-list b { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 .9rem var(--font-head); }
.disc-promo { margin-top: 4px; }
@media (max-width: 1100px) { .disc-promo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .acc-hello__side { justify-items: start; } .disc-promo { grid-template-columns: 1fr; } }
.your-price { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; font: 600 .82rem var(--font-head); }
.your-price svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.tag--your { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== stage 44: login / registration tabs ===== */
.acc-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 22px; border-radius: 999px; background: var(--soft, #f4f6f5); }
.acc-tabs a { flex: 1; text-align: center; padding: 9px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font: 600 .92rem var(--font-head); }
.acc-tabs a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .2); }
.acc-login__switch { margin: 16px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }
.acc-login__switch a { font-weight: 600; }
.acc-login__form .woocommerce-privacy-policy-text p { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.acc-login__form .turnstile-wrap { margin: 0 0 14px; }