/* =========================================================================
   RENOSELECT – style motywu
   Kolory z logo: granat #102435, czerwień #CC361E. Krój: Inter (czytelny, neutralny, jedna rodzina, wagi 400/500/600).
   ========================================================================= */

/* ---------- Czcionki (lokalnie, bez Google Fonts) ---------- */
@font-face { font-family: "Inter"; font-weight: 400 700; font-style: normal; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400 700; font-style: normal; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokeny ---------- */
:root {
	--ink: #102435;        /* granat z logo – tekst, nagłówek strony głównej */
	--ink-2: #1d3a52;
	--red: #cc361e;        /* czerwień z logo – akcje (koszyk, kup) */
	--red-dark: #a92a16;
	--paper: #f3f5f8;      /* chłodne tło sekcji */
	--white: #fff;
	--steel: #52667a;      /* tekst drugorzędny */
	--line: #e2e7ec;
	--ok: #1c7547;         /* dostępność, wysyłka dziś */
	--plate: #f7f3df;      /* tabliczka z numerem (jak naklejka na części) */
	--plate-line: #c9bf8e;

	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1440px;
	--gut: clamp(16px, 2.5vw, 40px);
	--r: 6px;
	--shadow: 0 1px 2px rgba(16, 36, 53, .08), 0 4px 16px rgba(16, 36, 53, .06);
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.rs-lock { overflow: hidden; }
body { margin: 0; font: 400 15px/1.6 var(--f-body); color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.rs-wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.rs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.rs-skip:focus { top: 8px; color: #fff; }
.rs-i { flex: none; }
.rs-h1 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem); }
.rs-h2 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }
.rs-h3 { font-size: 1.05rem; }
.rs-lead { font-size: 1rem; color: var(--steel); max-width: 65ch; }
.rs-main { min-height: 50vh; }
[hidden] { display: none !important; }

/* ---------- Przyciski ---------- */
.rs-btn, .button, button.button, input.button, .woocommerce-button, #place_order, .single_add_to_cart_button, .checkout-button, .wc-forward {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border: 0; border-radius: var(--r);
	background: var(--ink); color: #fff; font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
	transition: background .15s;
}
.rs-btn:hover, .button:hover, .woocommerce-button:hover, .wc-forward:hover { background: var(--ink-2); color: #fff; }
.rs-btn--cart, button.single_add_to_cart_button, button#place_order, a.checkout-button { background: var(--red); }
.rs-btn--cart:hover, button.single_add_to_cart_button:hover, button#place_order:hover, a.checkout-button:hover { background: var(--red-dark); color: #fff; }
.rs-buy p.stock { display: none; }
.rs-btn.is-busy, .single_add_to_cart_button.is-busy { opacity: .6; pointer-events: none; }
.rs-btn.is-added::after { content: "✓"; }
.button:disabled, .button.disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Pasek górny ---------- */
.rs-topbar { background: var(--ink); color: #dbe4ec; font-size: .875rem; }
.rs-topbar__in { display: flex; gap: 24px; align-items: center; min-height: 36px; }
.rs-topbar__item { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.rs-topbar__contact { margin-left: auto; }
.rs-topbar a { color: #fff; font-weight: 500; text-decoration: none; }
.rs-topbar span { color: #9fb2c3; }

/* ---------- Nagłówek ---------- */
.rs-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.rs-header__in { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); min-height: 76px; }
.rs-logo img { width: 98px; height: 56px; object-fit: contain; }
.rs-header__burger { display: none; background: none; border: 0; padding: 8px; margin-left: -8px; cursor: pointer; }
.rs-header__tools { display: flex; gap: 6px; margin-left: auto; }
.rs-tool { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; font-size: .8rem; font-weight: 500; text-decoration: none; color: var(--ink); border-radius: var(--r); }
.rs-tool:hover { background: var(--paper); color: var(--ink); }
.rs-cart-count { position: absolute; top: 0; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font: 600 .75rem/20px var(--f-body); text-align: center; }
.rs-cart-count[data-count="0"] { display: none; }

/* Wyszukiwarka */
.rs-search { position: relative; display: flex; flex: 1; max-width: 680px; }
.rs-search__input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--ink); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: #fff; font-size: 1rem; }
.rs-search__input::placeholder { color: #7b8a99; }
.rs-search__input:focus { outline: none; border-color: var(--red); }
.rs-search__input:focus + input + .rs-search__btn { background: var(--red); }
.rs-search__btn { width: 56px; border: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rs-search__results { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); max-height: 70vh; overflow: auto; padding: 6px; color: var(--ink); text-align: left; }
.rs-sr-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 2px; text-decoration: none; }
.rs-sr-item img, .rs-sr-noimg { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; background: var(--paper); }
.rs-sr-item:hover, .rs-sr-item.is-active { background: var(--paper); color: var(--ink); }
.rs-sr-title { font-size: .9rem; line-height: 1.3; }
.rs-sr-price { font-weight: 500; white-space: nowrap; }
.rs-sr-all { display: block; padding: 10px 8px; font-weight: 500; color: var(--red); }
.rs-sr-empty { padding: 12px; margin: 0; color: var(--steel); }

/* Nawigacja */
.rs-nav { border-top: 1px solid var(--line); }
.rs-nav__in { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.rs-nav__cats { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 500; cursor: pointer; white-space: nowrap; }
.rs-nav__cats:hover { background: var(--ink-2); }
.rs-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.rs-nav__models { overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.rs-nav__models::-webkit-scrollbar { display: none; }
.rs-nav li a { display: block; padding: 8px 10px; font-weight: 500; text-decoration: none; white-space: nowrap; border-radius: var(--r); }
.rs-nav li a:hover { background: var(--paper); color: var(--ink); }
.rs-nav__special a { color: var(--red); font-weight: 500 !important; }

/* Panel kategorii */
.rs-drawer { position: fixed; inset: 0; z-index: 60; }
.rs-drawer__backdrop { position: absolute; inset: 0; background: rgba(16, 36, 53, .5); opacity: 0; transition: opacity .2s; }
.rs-drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(400px, 90vw); background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .2s ease-out; }
.rs-drawer.is-open .rs-drawer__backdrop { opacity: 1; }
.rs-drawer.is-open .rs-drawer__panel { transform: none; }
.rs-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--ink); color: #fff; }
.rs-drawer__title { margin: 0; font: 600 1.05rem var(--f-head); }
.rs-drawer__close { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.rs-drawer__body { overflow: auto; padding: 8px 0 24px; }
.rs-tree, .rs-tree ul { list-style: none; margin: 0; padding: 0; }
.rs-tree > li { border-bottom: 1px solid var(--line); }
.rs-tree summary, .rs-tree__link, .rs-tree__all { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; cursor: pointer; text-decoration: none; font-weight: 500; list-style: none; }
.rs-tree summary::-webkit-details-marker { display: none; }
.rs-tree summary::after { content: "+"; font-weight: 600; color: var(--steel); margin-left: 8px; }
.rs-tree details[open] > summary { background: var(--paper); }
.rs-tree details[open] > summary::after { content: "–"; }
.rs-tree summary .rs-tree__n { margin-left: auto; }
.rs-tree ul .rs-tree__link { padding: 9px 20px 9px 36px; font-weight: 400; }
.rs-tree__all { padding-left: 36px !important; color: var(--red); font-weight: 500 !important; }
.rs-tree__n { color: var(--steel); font-size: .85rem; font-variant-numeric: tabular-nums; }
.rs-tree a:hover, .rs-tree summary:hover { background: var(--paper); color: var(--ink); }
.rs-drawer__extra { display: flex; flex-direction: column; padding: 16px 20px; gap: 10px; font-weight: 500; }

/* ---------- Strona główna ---------- */
.rs-hero { background: var(--ink); color: #fff; }
.rs-hero__in { padding-block: clamp(28px, 4vw, 52px); }
.rs-hero__title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.35rem); line-height: 1.05; margin-bottom: .35em; max-width: 18ch; }
.rs-hero__lead { font-size: 1rem; color: #c9d6e2; max-width: 60ch; margin-bottom: 24px; }
.rs-hero .rs-search { max-width: 760px; }
.rs-hero .rs-search__input { height: 52px; font-size: 1rem; border-color: #fff; }
.rs-hero .rs-search__btn { width: 60px; background: var(--red); }
.rs-hero__hint { margin: 10px 0 0; font-size: .85rem; color: #9fb2c3; }

.rs-section { padding-block: clamp(28px, 4vw, 44px); }
.rs-section--alt { background: var(--paper); }
.rs-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rs-section__head .rs-h2 { margin: 0; }
.rs-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--red); text-decoration: none; white-space: nowrap; }

/* Wybór modelu – nazwy modeli jako duża typografia */
.rs-models__brand { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.rs-models__name { font-size: 1.1rem; margin: 6px 0 0; }
.rs-models__name a { text-decoration: none; }
.rs-models__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rs-model { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, background .15s; }
.rs-model:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.rs-model__name { font: 600 1.35rem/1.1 var(--f-head); }
.rs-model__n { font-size: .85rem; color: var(--steel); }
.rs-models__other { margin: 16px 0 0; color: var(--steel); }
.rs-models__other a { margin-left: 10px; color: var(--ink); font-weight: 500; }

.rs-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rs-cat { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: var(--r); text-decoration: none; font-weight: 500; border-left: 3px solid transparent; }
.rs-cat:hover { border-left-color: var(--red); color: var(--ink); }
.rs-cat__n { color: var(--steel); font-weight: 400; font-size: .9rem; font-variant-numeric: tabular-nums; }

/* ---------- Okruszki ---------- */
.rs-crumbs { padding-block: 14px; font-size: .875rem; color: var(--steel); }
.rs-crumbs a { color: var(--steel); }
.rs-crumbs .separator, .rs-crumbs .sep { margin-inline: 6px; }
.rs-crumbs p { margin: 0; }

/* ---------- Lista produktów ---------- */
.rs-archive { padding-bottom: 48px; }
.rs-archive__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.rs-archive__head .rs-h1 { margin: 0; }
.rs-archive__count { margin: 0; color: var(--steel); }
.rs-archive__desc { margin-top: 40px; color: var(--steel); }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.rs-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: .9rem; font-weight: 500; text-decoration: none; background: #fff; }
.rs-chip span { color: var(--steel); font-size: .8rem; }
.rs-chip:hover { border-color: var(--ink); color: var(--ink); }
.rs-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rs-chip.is-on span { color: #c9d6e2; }


.rs-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.woocommerce-ordering select, .rs-toolbar select { height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23102435' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; }
.rs-empty { padding: 32px; background: var(--paper); border-radius: var(--r); max-width: 760px; }

ul.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rs-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rs-card:hover { border-color: #aab7c4; }
.rs-card__img { position: relative; display: block; aspect-ratio: 1; background: var(--paper); }
.rs-card__img img { width: 100%; height: 100%; object-fit: cover; }
.rs-card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.rs-card__title { font: 500 .95rem/1.35 var(--f-body); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rs-card__title a { text-decoration: none; }
.rs-card__title a:hover { text-decoration: underline; color: var(--ink); }
.rs-card__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: .8rem; color: var(--steel); }
.rs-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.rs-card__foot .price { white-space: nowrap; }
.rs-card .rs-btn--cart { min-height: 38px; padding: 8px 12px; font-size: .88rem; white-space: nowrap; flex: 1 1 auto; justify-content: center; }
.rs-sold { font-size: .85rem; color: var(--steel); }
.rs-badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 2px; font: 600 .85rem/1.3 var(--f-body); }
.rs-badge--sale { background: var(--red); color: #fff; }

/* Tabliczka z numerem katalogowym – jak naklejka na części */
.rs-plate { display: inline-flex; align-items: stretch; align-self: flex-start; margin: 0; border: 1px solid var(--plate-line); border-radius: 3px; background: var(--plate); font-size: .8rem; line-height: 1; overflow: hidden; }
.rs-plate__k { padding: 5px 6px; background: var(--ink); color: #fff; font-weight: 600; }
.rs-plate__v { padding: 5px 8px; font: 600 .85rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; }
.rs-plate--big { font-size: .9rem; margin-bottom: 14px; }
.rs-plate--big .rs-plate__k { padding: 10px; display: flex; align-items: center; }
.rs-plate--big .rs-plate__v { padding: 10px 12px; font-size: 1.15rem; display: flex; align-items: center; user-select: all; }
.rs-plate__copy { display: flex; align-items: center; gap: 4px; padding: 0 10px; border: 0; border-left: 1px solid var(--plate-line); background: none; cursor: pointer; font-size: .8rem; color: var(--steel); }
.rs-plate__copy:hover { background: #efe8c8; color: var(--ink); }

/* Ceny */
.price, .rs-price { font: 600 1.05rem/1.2 var(--f-head); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); }
.price del, .rs-price del { color: var(--steel); font-weight: 400; font-size: .85em; margin-right: 4px; }
.price ins, .rs-price ins { text-decoration: none; color: var(--red); }
.wc-price-history, .wc-price-history-lowest { display: block; font: 400 .8rem/1.4 var(--f-body); color: var(--steel); margin-top: 4px; }

/* Paginacja */
.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0 0; padding: 0; list-style: none; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 500; }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Karta produktu ---------- */
.rs-single { padding-bottom: 48px; }
.rs-product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.rs-gallery__main { position: relative; margin: 0; aspect-ratio: 1; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.rs-gallery__main a { display: block; height: 100%; cursor: zoom-in; }
.rs-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.rs-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.rs-gallery__thumbs button { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 2px; background: var(--paper); cursor: pointer; overflow: hidden; aspect-ratio: 1; }
.rs-gallery__thumbs button.is-on { border-color: var(--ink); }
.rs-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rs-product__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); margin-bottom: 14px; }
.rs-fits { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 18px; font-weight: 500; }
.rs-fits a { font-weight: 500; padding: 3px 10px; background: var(--paper); border-radius: 3px; text-decoration: none; }
.rs-fits a:hover { background: var(--ink); color: #fff; }
.rs-buy { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; }
.rs-buy__price .price { font-size: 1.6rem; margin: 0 0 6px; }
.rs-stock { display: flex; align-items: center; gap: 6px; margin: 10px 0 14px; font-weight: 500; }
.rs-stock.is-in { color: var(--ok); }
.rs-stock.is-out { color: var(--red); }
.rs-buy__alt { color: var(--steel); }
.rs-buy form.cart { display: flex; gap: 10px; margin: 0 0 16px; }
.rs-buy .single_add_to_cart_button { flex: 1; min-height: 52px; font-size: 1.1rem; }
.rs-buy .quantity { display: flex; }
.rs-buy .quantity input.qty { width: 72px; height: 52px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); }
.rs-buy .quantity:has(input[max="1"]) { display: none; }
.rs-perks { margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .92rem; }
.rs-perks li { display: flex; gap: 8px; align-items: flex-start; }
.rs-perks .rs-i { margin-top: 2px; color: var(--steel); }
.rs-specs { margin: 0 0 20px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.rs-specs div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rs-specs dt { color: var(--steel); }
.rs-specs dd { margin: 0; font-weight: 500; }
.rs-help { font-size: .92rem; color: var(--steel); }
.rs-product__desc { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
.rs-prose--seller { max-width: 75ch; color: #2c4256; }
.rs-countdown { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 6px 0 4px; padding: 8px 12px; background: #fdecea; border-radius: 2px; font-size: .9rem; color: var(--red-dark); }
.rs-countdown b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.rs-stickybuy { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16, 36, 53, .08); }
.related.products { margin-top: 48px; }
.related.products > h2 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }
.rs-zoom { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 18, 27, .94); }
.rs-zoom img { width: 100%; height: 100%; object-fit: contain; }
.rs-zoom button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.rs-zoom__close { top: 16px; right: 16px; }
.rs-zoom__prev { left: 16px; top: 50%; }
.rs-zoom__next { right: 16px; top: 50%; }

/* ---------- Komunikaty WooCommerce ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice { list-style: none; margin: 0 0 20px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border-left: 4px solid var(--ink); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.woocommerce-message { border-left-color: var(--ok); background: #e9f5ee; }
.woocommerce-error { border-left-color: var(--red); background: #fdecea; display: block; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 38px; }
.rs-toast { position: fixed; z-index: 70; left: 50%; bottom: 20px; transform: translate(-50%, 140%); max-width: calc(100vw - 32px); padding: 14px 18px; border-radius: var(--r); background: var(--ink); color: #fff; box-shadow: var(--shadow); transition: transform .25s; }
.rs-toast.is-on { transform: translate(-50%, 0); }
.rs-toast.is-error { background: var(--red-dark); }
.rs-toast a { color: #fff; font-weight: 500; margin-left: 8px; }

/* ---------- Strony, treść ---------- */
.rs-page { padding-bottom: 56px; }
.rs-prose { max-width: 75ch; }
.rs-prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
.rs-prose h3 { font-size: 1.05rem; margin-top: 1.4em; }
.rs-prose ul, .rs-prose ol { padding-left: 1.3em; }
.rs-prose li { margin-bottom: .3em; }
.rs-prose table { border-collapse: collapse; width: 100%; }
.rs-prose td, .rs-prose th { border: 1px solid var(--line); padding: 8px; text-align: left; }
.rs-docs__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.rs-docs__nav { position: sticky; top: 140px; padding: 16px; background: var(--paper); border-radius: var(--r); }
.rs-docs__title { font-weight: 600; margin-bottom: 8px; }
.rs-docs__nav ul { margin: 0; padding: 0; list-style: none; }
.rs-docs__nav a { display: block; padding: 6px 0; text-decoration: none; }
.rs-docs__nav a[aria-current] { color: var(--red); font-weight: 500; }
.rs-contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.rs-contact__big { display: flex; align-items: center; gap: 12px; font: 600 clamp(1.15rem, 1rem + .6vw, 1.45rem) var(--f-head); margin-bottom: 10px; }
.rs-contact__big a { text-decoration: none; }
.rs-contact__side { padding: 24px; background: var(--paper); border-radius: var(--r); }
.rs-404 .rs-search { margin: 16px 0 24px; }
.rs-list { padding-left: 1.2em; }

/* ---------- Formularze (konto, kasa) ---------- */
.rs-shopflow input[type="text"], .rs-shopflow input[type="email"], .rs-shopflow input[type="tel"], .rs-shopflow input[type="password"], .rs-shopflow input[type="number"], .rs-shopflow select, .rs-shopflow textarea,
.woocommerce form .input-text, .select2-container .select2-selection--single {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b8c4cf; border-radius: var(--r); background: #fff; font-size: 1rem;
}
.select2-container .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 10px; right: 6px; }
.woocommerce form .input-text:focus, .rs-shopflow input:focus, .rs-shopflow select:focus, .rs-shopflow textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.woocommerce form .form-row { margin: 0 0 14px; }
.woocommerce form .form-row label { display: block; margin-bottom: 4px; font-weight: 500; font-size: .92rem; }
.woocommerce form .form-row .required { color: var(--red); text-decoration: none; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px); float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row-wide, .woocommerce form .form-row.notes { clear: both; }
.woocommerce form .form-row.woocommerce-invalid .input-text { border-color: var(--red); }
.woocommerce form .form-row .woocommerce-input-wrapper .description { font-size: .85rem; color: var(--steel); }
.woocommerce-form__label-for-checkbox, .rs-invoice-toggle label { display: flex !important; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); }
.woocommerce form::after, .woocommerce .col2-set::after { content: ""; display: table; clear: both; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword { max-width: 460px; }
.u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.u-columns .col-1, .u-columns .col-2 { width: auto !important; float: none !important; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); }
.woocommerce-LostPassword { margin-top: 12px; }
.rs-social { margin-top: 18px; display: grid; gap: 10px; }
.rs-social__sep { display: flex; align-items: center; gap: 12px; color: var(--steel); font-size: .9rem; }
.rs-social__sep::before, .rs-social__sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rs-social__btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border: 1px solid #b8c4cf; border-radius: var(--r); text-decoration: none; font-weight: 500; background: #fff; }
.rs-social__btn:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Koszyk ---------- */
.rs-page--shop .rs-h1 { margin-bottom: 20px; }
.woocommerce-cart-form { margin-bottom: 32px; }
table.shop_table { width: 100%; border-collapse: collapse; }
table.shop_table th { text-align: left; font-weight: 500; padding: 10px 8px; border-bottom: 2px solid var(--ink); font-size: .9rem; }
table.shop_table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cart .product-thumbnail img { width: 80px; height: 80px; object-fit: cover; border-radius: 2px; }
table.cart .product-name a { font-weight: 500; text-decoration: none; }
table.cart .product-remove a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 1.4rem; text-decoration: none; color: var(--steel); }
table.cart .product-remove a:hover { background: #fdecea; color: var(--red); }
table.cart .qty { width: 70px; min-height: 40px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); }
table.cart td.actions { padding-top: 18px; }
table.cart td.actions .coupon { display: inline-flex; gap: 8px; }
table.cart td.actions .coupon input { width: 180px; min-height: 44px; }
table.cart td.actions > .button { float: right; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cart-collaterals { display: flex; justify-content: flex-end; }
.cart_totals { width: min(440px, 100%); padding: 24px; background: var(--paper); border-radius: var(--r); }
.cart_totals h2 { font-size: 1.2rem; }
.cart_totals table th { width: 40%; border-bottom: 1px solid var(--line); }
tr.woocommerce-shipping-totals th, tr.woocommerce-shipping-totals td { display: block; width: auto !important; border: 0; padding-inline: 0; text-align: left; }
tr.woocommerce-shipping-totals td { padding-top: 0; }
#shipping_method { width: 100%; float: none; }
#shipping_method li { width: 100%; text-align: left; margin: 0; }
#shipping_method li img { max-height: 28px; width: auto; margin-left: auto; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { font-size: .85rem; color: var(--steel); margin: 8px 0 0; }
.cart_totals .order-total td, .cart_totals .order-total th { font-size: 1.2rem; font-weight: 600; border: 0; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; font-size: 1.1rem; margin-top: 12px; }
.rs-savings td, .rs-savings th { color: var(--ok); font-weight: 500; }
.rs-freebar { margin: 0 0 16px; padding: 12px 16px; background: var(--paper); border-radius: var(--r); }
.rs-freebar p { margin: 0 0 8px; }
.rs-freebar__track { display: block; height: 8px; border-radius: 2px; background: #d3dbe2; overflow: hidden; }
.rs-freebar__track span { display: block; height: 100%; background: var(--red); border-radius: 2px; }
.rs-freebar.is-done .rs-freebar__track span { background: var(--ok); }
.rs-freebar-row td { padding: 0 !important; border: 0 !important; }
.cart-empty { font-size: 1.2rem; }
.return-to-shop .button { margin-top: 8px; }

/* Metody wysyłki i płatności */
#shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#shipping_method li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
#shipping_method li label { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; }
.rs-carrier, .rs-pay { display: inline-block; width: 44px; height: 28px; flex: none; background: #fff center / contain no-repeat; border-radius: 3px; }
.rs-carrier--dpd { background-image: url(/wp-content/uploads/2026/02/DPD_logo_redgrad_rgb-scaled.png); }
.rs-carrier--inpost { background-image: url(/wp-content/uploads/2026/02/inpost-paczkomat-logo-kwadrat.png); }
.rs-carrier--inpost-kurier { background-image: url(/wp-content/uploads/2026/02/inpost_kurier.webp); }
.rs-pay--przelew { background-image: url(/wp-content/uploads/2026/02/online-transfer-icon.png); }
.rs-pay--pobranie { background-image: url(/wp-content/uploads/2026/02/cash-payment-icon.png); }
.rs-pay--payu { background-image: url(/wp-content/uploads/2026/02/payu-icon.png); }
.rs-pay--blik { background-image: url(/wp-content/uploads/2026/02/BLIK-LOGO-RGB.png); }
.rs-free .amount { color: var(--ok); font-weight: 500; }

/* ---------- Kasa ---------- */
.woocommerce-checkout .rs-h1 { display: none; }
form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
form.checkout #customer_details { grid-column: 1; }
form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.4rem; }
form.checkout #order_review { grid-column: 2; grid-row: 1; margin-top: 44px; position: sticky; top: 140px; padding: 20px; background: var(--paper); border-radius: var(--r); }
form.checkout .col2-set .col-1, form.checkout .col2-set .col-2 { width: 100%; float: none; }
form.checkout h3 { font-size: 1.1rem; margin: 8px 0 14px; }
#ship-to-different-address label { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; cursor: pointer; }
.woocommerce-checkout-review-order-table td, .woocommerce-checkout-review-order-table th { padding: 10px 4px; font-size: .95rem; }
.woocommerce-checkout-review-order-table .order-total td, .woocommerce-checkout-review-order-table .order-total th { font-size: 1.25rem; font-weight: 600; }
#payment ul.payment_methods { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 6px; }
#payment ul.payment_methods > li { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
#payment ul.payment_methods > li > label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
#payment .payment_box { margin-top: 8px; font-size: .9rem; color: var(--steel); }
#payment .payment_box p:last-child { margin: 0; }
#place_order { width: 100%; min-height: 56px; font-size: 1.15rem; }
.woocommerce-terms-and-conditions-wrapper { margin: 12px 0; font-size: .9rem; }
.woocommerce-privacy-policy-text p { font-size: .82rem; color: var(--steel); }
.woocommerce-order-overview { list-style: none; padding: 16px; background: var(--paper); border-radius: var(--r); display: flex; flex-wrap: wrap; gap: 16px 32px; }
.woocommerce-order-overview li { display: flex; flex-direction: column; font-size: .85rem; color: var(--steel); }
.woocommerce-order-overview strong { color: var(--ink); font-size: 1rem; }
.woocommerce-thankyou-order-received { font: 600 1.3rem var(--f-head); color: var(--ok); }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

/* ---------- Pas „dlaczego my” i stopka ---------- */
.rs-promise { background: var(--paper); border-top: 1px solid var(--line); }
.rs-promise__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.rs-promise__item { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--steel); }
.rs-promise__item p { margin: 0; }
.rs-promise__item strong { display: block; color: var(--ink); font-size: 1rem; }
.rs-promise__item .rs-i { color: var(--red); }
.rs-promise__item a { color: var(--ink); font-weight: 500; }
.rs-footer { background: var(--ink); color: #c9d6e2; font-size: .92rem; }
.rs-footer a { color: #fff; text-decoration: none; }
.rs-footer a:hover { text-decoration: underline; color: #fff; }
.rs-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 40px; }
.rs-logo--footer img { background: #fff; border-radius: var(--r); padding: 6px 10px; width: 118px; height: 68px; }
.rs-footer__company { margin-top: 16px; line-height: 1.6; }
.rs-footer__title { font: 600 1.05rem var(--f-head); color: #fff; margin-bottom: 10px; }
.rs-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rs-footer__contact li { display: flex; gap: 8px; align-items: center; }
.rs-footer__social { display: flex; gap: 16px; margin-top: 14px; }
.rs-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #9fb2c3; }
.rs-footer__bottom p { margin: 0; }

/* ---------- Responsywność ---------- */
@media (max-width: 1400px) {
	ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.rs-shop.has-filters ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rs-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.rs-hide-sm { display: none !important; }
	.rs-topbar__in { justify-content: space-between; gap: 12px; font-size: .8rem; }
	.rs-topbar__contact { margin-left: 0; }
	.rs-header__in { flex-wrap: wrap; gap: 4px 8px; min-height: 0; padding-block: 8px; }
	.rs-header__burger { display: block; }
	.rs-logo img { width: 70px; height: 40px; }
	.rs-header .rs-search { order: 5; flex-basis: 100%; max-width: none; margin-top: 4px; }
	.rs-header .rs-search__input { height: 44px; }
	.rs-tool__label { display: none; }
	.rs-tool { padding: 8px; }
	.rs-nav__cats { display: none; }
	.rs-nav__in { min-height: 42px; }
	.rs-nav__special { display: none !important; }
	.rs-product { grid-template-columns: 1fr; }
	.rs-promise__in { grid-template-columns: 1fr 1fr; }
	.rs-models__brand { grid-template-columns: 1fr; gap: 8px; }
	.rs-docs__grid, .rs-contact { grid-template-columns: 1fr; }
	.rs-docs__nav { position: static; }
	form.checkout { grid-template-columns: 1fr; }
	form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; margin-top: 0; }
	.rs-stickybuy { display: flex; }
	.rs-single { padding-bottom: 90px; }
	.u-columns.col2-set { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.rs-card__body { padding: 10px; }
	.rs-card__title { font-size: .88rem; }
	.rs-card__foot { flex-direction: column; align-items: stretch; }
	.rs-card .rs-btn--cart span { display: inline; }
	.rs-plate__v { font-size: .78rem; }
	.rs-models__list { grid-template-columns: repeat(2, 1fr); }
	.rs-model__name { font-size: 1.15rem; }
	.rs-cats { grid-template-columns: 1fr; }
	.rs-promise__in, .rs-footer__grid { grid-template-columns: 1fr; }
	.rs-specs div { grid-template-columns: 130px 1fr; }
	.rs-vfilter { flex-direction: column; gap: 4px; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
	/* Koszyk jako lista na telefonie */
	table.cart thead { display: none; }
	table.cart tr.cart_item { display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
	table.cart tr.cart_item td { border: 0; padding: 0; }
	table.cart .product-thumbnail { grid-row: span 3; }
	table.cart .product-thumbnail img { width: 72px; height: 72px; }
	table.cart .product-remove { grid-column: 3; grid-row: 1; }
	table.cart .product-name { grid-column: 2; grid-row: 1; }
	table.cart .product-price, table.cart .product-subtotal { display: none; }
	table.cart .product-quantity { grid-column: 2; }
	table.cart td.actions .coupon { display: flex; width: 100%; margin-bottom: 8px; }
	table.cart td.actions .coupon input { flex: 1; width: auto; }
	table.cart td.actions > .button { float: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Pokaż/ukryj hasło (przycisk WooCommerce) */
.password-input { position: relative; display: block; }
.password-input input { padding-right: 48px; }
.show-password-input { position: absolute; top: 0; right: 0; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; }
.show-password-input::before { content: ""; display: block; width: 22px; height: 22px; margin: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352667a' stroke-width='1.8'%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 / contain no-repeat; }
.show-password-input.display-password::before { opacity: .5; }

/* ---------- Filtry listy produktów ---------- */
.rs-shop.has-filters { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.rs-shop.has-filters ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rs-filters { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; border: 1px solid var(--line); border-radius: 3px; background: #fff; padding: 4px 16px 16px; }
.rs-filters__head, .rs-filters__foot .rs-btn { display: none; }
.rs-filters__foot { margin-top: 8px; }
.rs-filters__reset { display: block; text-align: center; font-size: .9rem; color: var(--steel); text-decoration: underline; padding: 6px; }
.rs-fgroup { border-bottom: 1px solid var(--line); padding: 4px 0; }
.rs-fgroup:last-of-type { border-bottom: 0; }
.rs-fgroup summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-weight: 500; }
.rs-fgroup summary::-webkit-details-marker { display: none; }
.rs-fgroup summary::after { content: "+"; color: var(--steel); font-weight: 400; font-size: 1.2rem; }
.rs-fgroup[open] summary::after { content: "–"; }
.rs-fgroup summary b { margin-left: 6px; margin-right: auto; background: var(--ink); color: #fff; border-radius: 3px; font-size: .72rem; padding: 1px 7px; }
.rs-fopts { list-style: none; margin: 0; padding: 0 0 6px; }
.rs-fopts li { margin: 0; }
.rs-fopts label { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: var(--r); cursor: pointer; font-size: .95rem; }
.rs-fopts label:hover { background: var(--paper); }
.rs-fopts input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; margin: 0; }
.rs-fopt__name { flex: 1; min-width: 0; }
.rs-fopt__n { color: var(--steel); font-size: .8rem; font-variant-numeric: tabular-nums; }
.rs-fopt--more { display: none; }
.rs-fgroup.is-expanded .rs-fopt--more { display: list-item; }
.rs-fmore { border: 0; background: none; padding: 2px 4px 8px; color: var(--ink); font-weight: 500; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.rs-fprice { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.rs-fprice input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); font-size: .95rem; }
.rs-filters-btn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--r); background: #fff; color: var(--ink); font-weight: 500; cursor: pointer; }
.rs-filters-btn b { color: #e0561b; }
.rs-toolbar { align-items: center; gap: 12px; }
.rs-chips--active { margin-bottom: 14px; }
.rs-chips--active .rs-chip svg { align-self: center; }
.rs-chip--reset { border-style: dashed; color: var(--steel); }
.rs-chip--reset:hover { color: var(--ink); }
@media (max-width: 900px) {
	.rs-shop.has-filters { display: block; }
	.rs-toolbar { justify-content: space-between; }
	.rs-filters-btn { display: inline-flex; }
	.rs-filters { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(92vw, 380px); max-height: none; border-radius: 0; border: 0; padding: 0 16px 90px; transform: translateX(105%); visibility: hidden; transition: transform .22s ease, visibility .22s; box-shadow: -8px 0 30px rgba(16, 36, 53, .25); }
	.rs-filters.is-open { transform: none; visibility: visible; }
	.rs-filters__head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; padding: 14px 0; border-bottom: 1px solid var(--line); z-index: 1; font-size: 1.1rem; }
	.rs-filters__close { border: 0; background: none; cursor: pointer; color: var(--ink); }
	.rs-filters__foot { position: fixed; bottom: 0; right: 0; width: min(92vw, 380px); padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); margin: 0; }
	.rs-filters__foot .rs-btn { display: block; width: 100%; }
	.rs-shop.has-filters ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rs-filters-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(16, 36, 53, .5); }

/* =========================================================================
   Dopracowanie: lżejszy, czytelniejszy układ (jasny nagłówek, spokojne karty)
   ========================================================================= */
body { font-size: 15px; line-height: 1.6; color: #1a2b3a; }
.rs-btn, .button, button.button, input.button, .woocommerce-button, #place_order, .single_add_to_cart_button, .checkout-button, .wc-forward { border-radius: 6px; font-weight: 600; letter-spacing: 0; }

/* Pasek górny – jasny, cichy */
.rs-topbar { background: var(--paper); color: var(--steel); font-size: .82rem; border-bottom: 1px solid var(--line); }
.rs-topbar a { color: var(--ink); font-weight: 600; }
.rs-topbar span { color: var(--steel); }
.rs-topbar .rs-i { color: var(--red); }

/* Nagłówek */
.rs-header { border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(16, 36, 53, .02); }
.rs-header__in { min-height: 72px; }
.rs-search__input { height: 46px; border: 1px solid #b9c5d0; border-right: 0; border-radius: 8px 0 0 8px; background: var(--paper); transition: background .15s, border-color .15s, box-shadow .15s; }
.rs-search__input:focus { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 36, 53, .08); }
.rs-search__btn { border-radius: 0 8px 8px 0; background: var(--red); }
.rs-search__btn:hover, .rs-search__input:focus + input + .rs-search__btn { background: var(--red-dark); }
.rs-tool { font-size: .78rem; color: var(--steel); }
.rs-tool .rs-i { color: var(--ink); }
.rs-nav { border-top: 0; background: #fff; }
.rs-nav__in { min-height: 46px; gap: 14px; }
.rs-nav__cats { height: 34px; background: var(--paper); color: var(--ink); font-weight: 600; border: 1px solid var(--line); }
.rs-nav__cats:hover { background: #e8edf2; }
.rs-nav li a { color: #33485b; padding: 8px 10px; border-radius: 6px; font-weight: 500; }
.rs-nav li a:hover { background: var(--paper); color: var(--ink); }
.rs-nav__special a { color: var(--red) !important; font-weight: 600 !important; }

/* Strona główna – jasny start z dużym wyszukiwaniem */
.rs-hero { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.rs-hero__in { padding-block: clamp(28px, 4vw, 48px); }
.rs-hero__title { max-width: none; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); line-height: 1.15; }
.rs-hero__lead { color: var(--steel); }
.rs-hero .rs-search__input { height: 54px; border-color: #b9c5d0; background: #fff; font-size: 1.05rem; box-shadow: 0 2px 8px rgba(16, 36, 53, .06); }
.rs-hero .rs-search__btn { width: 64px; }
.rs-hero__hint { color: var(--steel); }
.rs-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--steel); }
.rs-quick a { display: inline-block; padding: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 500; color: var(--ink); }
.rs-quick a:hover { border-color: var(--ink); }

/* Sekcje */
.rs-section { padding-block: clamp(32px, 4.5vw, 56px); }
.rs-section__head { margin-bottom: 22px; }
.rs-more { color: var(--red); font-weight: 600; }
.rs-model, .rs-cat { border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.rs-cat { border-left-width: 1px; }
.rs-model:hover, .rs-cat:hover { border-color: #aab7c4; box-shadow: 0 4px 14px rgba(16, 36, 53, .07); background: #fff; }
.rs-section--alt .rs-cat { border-color: transparent; }
.rs-model__name { font-size: 1.15rem; font-weight: 600; }
.rs-models__brand { border-top: 0; padding-block: 12px; }

/* Karty produktów */
ul.products { gap: 20px; }
.rs-card { border: 1px solid var(--line); border-radius: 8px; transition: box-shadow .18s, border-color .18s, transform .18s; }
.rs-card:hover { border-color: #c4cfd9; box-shadow: 0 8px 24px rgba(16, 36, 53, .1); transform: translateY(-2px); }
.rs-card__img { background: #fff; border-bottom: 1px solid var(--line); }
.rs-card__body { gap: 10px; padding: 14px 16px 16px; }
.rs-card__title { font-size: .95rem; font-weight: 500; line-height: 1.4; -webkit-line-clamp: 2; min-height: 2.8em; }
.rs-card__meta { font-size: .82rem; }
.rs-plate { border-radius: 4px; font-size: .78rem; }
.rs-plate__k { padding: 5px 6px; background: #3a4f63; font-weight: 500; }
.rs-plate__v { font-size: .82rem; font-weight: 500; }
.rs-card__foot { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.rs-card__foot .price { font-size: 1.15rem; }
.rs-card .rs-btn--cart { width: 100%; min-height: 40px; background: #fff; color: var(--ink); border: 1px solid var(--ink); font-size: .9rem; }
.rs-card .rs-btn--cart:hover { background: var(--red); border-color: var(--red); color: #fff; }
.rs-badge { border-radius: 4px; font-size: .8rem; padding: 3px 8px; }
.rs-sold { text-align: center; padding: 8px 0; }

/* Lista: pasek narzędzi i filtry */
.rs-chip { border-radius: 6px; background: #fff; }
.rs-filters { border-radius: 8px; padding: 2px 18px 14px; }
.rs-fgroup summary { font-weight: 600; font-size: .95rem; }
.rs-fopts label { padding: 7px 6px; }
.rs-toolbar { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.woocommerce-ordering select, .rs-toolbar select { border-radius: 6px; }

/* Karta produktu */
.rs-gallery__main { border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.rs-buy { border-radius: 10px; padding: 24px; box-shadow: 0 6px 24px rgba(16, 36, 53, .07); }
.rs-product__title { font-weight: 600; }
.rs-buy .single_add_to_cart_button { min-height: 54px; font-size: 1.05rem; }
.rs-buy .quantity input.qty { border-radius: 6px; }
.rs-specs div { padding: 11px 0; }
.rs-specs dt { font-size: .92rem; }

/* Koszyk, kasa */
.cart_totals, form.checkout #order_review { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(16, 36, 53, .06); }
table.shop_table th { border-bottom-width: 1px; color: var(--steel); text-transform: none; }
#payment ul.payment_methods > li, #shipping_method li { border-radius: 8px; padding: 12px 14px; transition: border-color .15s, background .15s; }
#payment ul.payment_methods > li:has(input:checked), #shipping_method li:has(input:checked) { border-color: var(--ink); background: #f6f9fc; }
.woocommerce form .input-text, .rs-shopflow input[type="text"], .rs-shopflow input[type="email"], .rs-shopflow input[type="tel"], .rs-shopflow input[type="password"], .rs-shopflow input[type="number"], .rs-shopflow select, .rs-shopflow textarea { border-radius: 6px; border-color: #c3ced8; }

/* Stopka – lżejsze odstępy */
.rs-promise { background: #fff; }
.rs-promise__item .rs-i { color: var(--red); }

@media (max-width: 900px) {
	.rs-topbar { font-size: .78rem; }
	.rs-header .rs-search__input { height: 44px; }
	.rs-buy { position: static; box-shadow: none; padding: 18px; }
	ul.products { gap: 12px; }
	.rs-card__body { padding: 10px 12px 12px; }
}
@media (max-width: 640px) {
	.rs-card__title { font-size: .88rem; min-height: 0; }
	.rs-card__foot { padding-top: 8px; }
	.rs-card .rs-btn--cart { min-height: 38px; }
	.rs-hero .rs-search__input { height: 48px; }
}

/* Na stronie głównej wyszukiwarka jest w sekcji startowej – nie dublujemy jej w nagłówku */
.home .rs-header .rs-search { display: none; }
.home .rs-header__in { min-height: 64px; }
.home .rs-header__tools { margin-left: auto; }

/* Filtry na komputerze: pełna lista bez wewnętrznego przewijania, nieprzyklejona do góry */
@media (min-width: 901px) {
	.rs-filters { position: static; max-height: none; overflow: visible; }
}

/* =========================================================================
   Nagłówek v2: czytelny, dwa rzędy – logo/szukaj/telefon/konto/koszyk oraz kategorie
   ========================================================================= */
.rs-topbar { font-size: .8rem; }
.rs-topbar__in { min-height: 32px; gap: 28px; }
.rs-header__in { min-height: 80px; gap: clamp(14px, 2.2vw, 36px); }
.rs-logo img { width: 104px; height: 60px; }
.rs-header .rs-search { max-width: none; flex: 1 1 auto; }
.rs-header .rs-search__input { height: 50px; font-size: 1rem; background: #fff; border: 2px solid var(--ink); border-right: 0; }
.rs-header .rs-search__input:focus { border-color: var(--red); box-shadow: none; }
.rs-header .rs-search__btn { width: 60px; height: 50px; }

.rs-phone { position: relative; display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.rs-phone__num::after { content: ""; position: absolute; inset: -6px; }
.rs-phone .rs-i { color: var(--red); }
.rs-phone__txt { display: flex; flex-direction: column; line-height: 1.25; }
.rs-phone__num { font-size: 1.05rem; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.rs-phone small { font-size: .75rem; color: var(--steel); white-space: nowrap; }

.rs-header__tools { margin-left: 0; gap: 4px; flex: none; }
.rs-tool { padding: 6px 12px; font-size: .8rem; font-weight: 500; color: var(--ink); }
.rs-tool--cart { background: var(--paper); }
.rs-tool--cart:hover { background: #e6ebf0; }
.rs-cart-count { top: -2px; right: 2px; }

.rs-nav { border-top: 1px solid var(--line); background: #fff; }
.rs-nav__in { min-height: 48px; gap: 6px; }
.rs-nav__cats { height: 36px; padding: 0 14px; background: var(--ink); color: #fff; border: 0; margin-right: 8px; }
.rs-nav__cats:hover { background: var(--ink-2); }
.rs-nav__cats-list { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rs-nav__cats-list::-webkit-scrollbar { display: none; }
.rs-nav li a { padding: 8px 12px; color: var(--ink); font-weight: 500; font-size: .93rem; }
.rs-nav__special { margin-left: auto; padding-left: 12px; border-left: 1px solid var(--line); }
.home .rs-header .rs-search { display: flex; }
.home .rs-header__in { min-height: 80px; }

@media (max-width: 1200px) { .rs-phone small { display: none; } }
@media (max-width: 900px) {
	.rs-header__in { min-height: 0; }
	.rs-phone { order: 3; margin-left: auto; }
	.rs-header__tools { order: 4; margin-left: 0; }
	.rs-logo img { width: 74px; height: 42px; }
	.rs-nav__cats-list { padding-bottom: 0; }
}
@media (max-width: 640px) { .rs-phone__txt { display: block; } .rs-phone__num { font-size: 0; } .rs-phone { padding: 8px; } }

/* Wyszukiwarka auta (strona główna) */
.rs-finder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; max-width: 1000px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(16, 36, 53, .08); }
.rs-finder__field label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 500; color: var(--steel); }
.rs-finder select { width: 100%; height: 50px; padding: 0 36px 0 12px; border: 1px solid #b9c5d0; border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23102435' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 1rem; cursor: pointer; }
.rs-finder select:disabled { background-color: var(--paper); color: #7b8a99; cursor: not-allowed; }
.rs-finder select:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.rs-finder__go { min-height: 50px; padding-inline: 26px; font-size: 1.02rem; }
@media (max-width: 800px) { .rs-finder { grid-template-columns: 1fr; padding: 14px; } .rs-finder__go { width: 100%; } }

/* Przełącznik widoku i lista w wierszach (domyślna) */
.rs-toolbar { gap: 10px; justify-content: flex-end; }
.rs-viewtoggle { display: flex; margin-left: 8px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rs-viewtoggle button { display: grid; place-items: center; width: 42px; height: 40px; border: 0; background: #fff; color: var(--steel); cursor: pointer; }
.rs-viewtoggle button + button { border-left: 1px solid var(--line); }
.rs-viewtoggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rs-filters-btn { margin-right: auto; }

@media (min-width: 701px) {
	.rs-shop[data-view="list"] ul.products { grid-template-columns: 1fr; gap: 12px; }
	.rs-shop[data-view="list"] .rs-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
	.rs-shop[data-view="list"] .rs-card:hover { transform: none; }
	.rs-shop[data-view="list"] .rs-card__img { aspect-ratio: auto; min-height: 150px; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
	.rs-shop[data-view="list"] .rs-card__body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; grid-template-rows: auto auto 1fr; column-gap: 24px; row-gap: 8px; align-content: start; padding: 16px 20px; }
	.rs-shop[data-view="list"] .rs-card__title { grid-column: 1; font-size: 1.05rem; min-height: 0; }
	.rs-shop[data-view="list"] .rs-plate { grid-column: 1; }
	.rs-shop[data-view="list"] .rs-card__meta { grid-column: 1; align-self: start; font-size: .88rem; }
	.rs-shop[data-view="list"] .rs-card__foot { grid-column: 2; grid-row: 1 / -1; align-self: stretch; justify-content: center; margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
	.rs-shop[data-view="list"] .rs-card__foot .price { font-size: 1.45rem; }
}
@media (max-width: 700px) { .rs-viewtoggle { display: none; } }
.rs-card .rs-btn--cart { flex: none; }
.rs-shop[data-view="list"] .rs-plate { justify-self: start; }
@media (max-width: 640px) { .rs-search__input { font-size: .95rem; padding: 0 12px; } }


/* Podkategorie w jednym przewijanym rzędzie – żeby filtry były od razu widoczne */
.rs-archive .rs-chips:not(.rs-chips--active) { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.rs-archive .rs-chips:not(.rs-chips--active) .rs-chip { flex: none; }
.rs-archive .rs-chips:not(.rs-chips--active) .rs-chip { white-space: nowrap; }

/* Ładowanie listy (AJAX): przygaszenie wyników + obracający się wskaźnik + cienki pasek postępu */
.rs-shop__main { position: relative; transition: opacity .15s; }
.rs-shop.is-loading .rs-shop__main { opacity: .45; pointer-events: none; }
.rs-shop.is-loading .rs-shop__main::after { content: ""; position: absolute; z-index: 5; top: 140px; left: 50%; width: 38px; height: 38px; margin-left: -19px; border: 3px solid rgba(16, 36, 53, .15); border-top-color: var(--red); border-radius: 50%; animation: rs-spin .7s linear infinite; }
.rs-shop.is-loading::before { content: ""; position: fixed; z-index: 80; top: 0; left: 0; height: 3px; width: 100%; background: var(--red); transform-origin: left; animation: rs-bar 1.2s ease-out forwards; }
@keyframes rs-spin { to { transform: rotate(360deg); } }
@keyframes rs-bar { from { transform: scaleX(.05); } to { transform: scaleX(.85); } }
@media (prefers-reduced-motion: reduce) { .rs-shop.is-loading .rs-shop__main::after { animation: rs-spin 2s linear infinite !important; } }
.woocommerce-pagination ul { justify-content: flex-end; }

/* Wiersz listy: wysokość zależy od treści, zdjęcie wypełnia kolumnę */
@media (min-width: 701px) {
	.rs-shop[data-view="list"] .rs-card__img { position: relative; min-height: 170px; height: auto; }
	.rs-shop[data-view="list"] .rs-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
.rs-fempty { margin: 14px 0; color: var(--steel); font-size: .9rem; }
.rs-nav__cats-list { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }

/* =========================================================================
   Menu wysuwane v2: zakładki, czytelna lista, stopka z telefonem
   ========================================================================= */
.rs-drawer__panel { width: min(420px, 92vw); box-shadow: 8px 0 40px rgba(16, 36, 53, .25); }
.rs-drawer__head { padding: 16px 20px 12px; background: #fff; color: var(--ink); }
.rs-drawer__title { font: 600 1.25rem var(--f-head); letter-spacing: -.01em; }
.rs-drawer__close { color: var(--ink); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; margin-right: -8px; }
.rs-drawer__close:hover { background: var(--paper); }
.rs-drawer__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0 20px 4px; padding: 4px; background: var(--paper); border-radius: 8px; }
.rs-drawer__tabs button { height: 40px; border: 0; border-radius: 6px; background: transparent; color: var(--steel); font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .15s, color .15s; }
.rs-drawer__tabs button:hover { color: var(--ink); }
.rs-drawer__tabs button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 36, 53, .15); }
.rs-drawer__body { flex: 1; overflow: auto; padding: 8px 0 16px; overscroll-behavior: contain; }

.rs-tree > li { border-bottom: 0; }
.rs-tree summary, .rs-tree__link, .rs-tree__all { align-items: center; padding: 13px 20px; font-size: 1rem; font-weight: 500; color: var(--ink); border-radius: 0; }
.rs-tree > li > .rs-tree__link, .rs-tree > li > details > summary { margin: 0 8px; padding-inline: 12px; border-radius: 8px; }
.rs-tree summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 0 12px; border: solid var(--steel); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; font-size: 0; }
.rs-tree details[open] > summary::after { transform: rotate(-135deg); margin-top: 6px; }
.rs-tree details[open] > summary { background: var(--paper); font-weight: 600; }
.rs-tree summary .rs-tree__n { margin-left: auto; }
.rs-tree__n { min-width: 34px; padding: 2px 8px; border-radius: 10px; background: var(--paper); color: var(--steel); font-size: .78rem; font-weight: 500; text-align: center; }
.rs-tree details[open] > summary .rs-tree__n { background: #fff; }
.rs-tree a:hover, .rs-tree summary:hover { background: var(--paper); color: var(--ink); }
.rs-tree details > ul { margin: 4px 0 8px 22px; padding-left: 8px; border-left: 2px solid var(--line); }
.rs-tree ul .rs-tree__link { padding: 10px 12px; margin: 0 8px 0 0; border-radius: 6px; font-weight: 400; font-size: .95rem; }
.rs-tree__all { margin: 0 8px 0 0; padding: 10px 12px !important; border-radius: 6px; color: var(--red) !important; font-weight: 600 !important; font-size: .95rem !important; }
.rs-tree__all::after { content: "→"; margin-left: 6px; }
.rs-tree__all:hover { background: #fdecea !important; }

.rs-drawer__foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); background: #fff; display: grid; gap: 12px; }
.rs-drawer__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs-drawer__quick a { display: flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink); }
.rs-drawer__quick a:hover { border-color: var(--ink); background: #fff; }
.rs-drawer__quick a.is-sale { color: var(--red); border-color: #f0c6bf; background: #fff7f5; }
.rs-drawer__call { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none; }
.rs-drawer__call:hover { background: var(--ink-2); color: #fff; }
.rs-drawer__call .rs-i { color: #fff; }
.rs-drawer__call span { display: flex; flex-direction: column; line-height: 1.25; }
.rs-drawer__call strong { font-size: 1.05rem; font-weight: 600; }
.rs-drawer__call small { color: #b7c6d4; font-size: .78rem; }
.rs-drawer__quick { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rs-drawer__quick a { min-height: 40px; padding: 0 4px; font-size: .84rem; text-align: center; line-height: 1.15; }
.rs-drawer__foot { padding: 12px 16px 14px; gap: 10px; }
.rs-tree__all::after { margin-left: auto; padding-left: 8px; }

/* Menu wysuwane: więcej oddechu */
.rs-drawer__panel { width: min(440px, 94vw); }
.rs-drawer__head { padding: 22px 28px 16px; }
.rs-drawer__title { font-size: 1.35rem; }
.rs-drawer__tabs { margin: 4px 28px 12px; padding: 5px; gap: 6px; }
.rs-drawer__tabs button { height: 44px; }
.rs-drawer__body { padding: 8px 0 24px; }
.rs-tree > li { margin-bottom: 4px; }
.rs-tree > li > .rs-tree__link, .rs-tree > li > details > summary { margin: 0 16px; padding: 15px 14px; }
.rs-tree details > ul { margin: 6px 16px 14px 32px; padding: 4px 0 4px 12px; }
.rs-tree ul .rs-tree__link, .rs-tree__all { padding: 12px 14px !important; margin: 0 0 2px; }
.rs-tree__n { min-width: 38px; padding: 3px 10px; }
.rs-drawer__foot { padding: 18px 24px 22px; gap: 14px; }
.rs-drawer__quick { gap: 8px; }
.rs-drawer__quick a { min-height: 44px; }
.rs-drawer__call { padding: 14px 16px; gap: 14px; }

/* Menu główne: tylko najważniejsze kategorie (reszta w „Wszystkie kategorie”) */
.rs-nav__cats-list { overflow: visible; -webkit-mask-image: none; mask-image: none; }
.rs-nav__cats-list li:nth-child(n+5) { display: none; }
@media (min-width: 1200px) { .rs-nav__cats-list li:nth-child(5) { display: block; } }
@media (max-width: 1050px) { .rs-nav__cats-list li:nth-child(n+4) { display: none; } }

/* Strona główna: pozostałe modele pod rozwijanym „Pokaż wszystkie” */
.rs-models__more { margin-top: 10px; }
.rs-models__more summary { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-weight: 500; list-style: none; background: #fff; }
.rs-models__more summary::-webkit-details-marker { display: none; }
.rs-models__more summary:hover { border-color: var(--ink); }
.rs-models__more[open] summary { margin-bottom: 10px; }
@media (max-width: 900px) { .rs-nav { display: none; } }

/* Zdjęcie karty zawsze w kwadracie (zdjęcia pionowe i poziome nie zmieniają wysokości karty) */
.rs-card__img { overflow: hidden; }
.rs-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Koszyk na telefonie: pozycja jako karta (zdjęcie, nazwa, ilość, kwota), bez poziomego przewijania */
@media (max-width: 640px) {
	table.cart, table.cart tbody, table.cart tr, table.cart td { display: block; width: 100%; }
	table.cart tr.cart_item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 32px; gap: 6px 12px; align-items: start; padding: 14px 0; }
	table.cart tr.cart_item td { padding: 0; border: 0; width: auto; min-width: 0; }
	table.cart .product-thumbnail { grid-column: 1; grid-row: 1 / span 3; }
	table.cart .product-name { grid-column: 2; grid-row: 1; line-height: 1.35; }
	table.cart .product-remove { grid-column: 3; grid-row: 1; }
	table.cart .product-price { display: none; }
	table.cart .product-quantity { grid-column: 2; grid-row: 2; }
	table.cart .product-subtotal { display: block; grid-column: 2; grid-row: 3; font-weight: 600; font-size: 1.05rem; text-align: left; }
	table.cart td.actions { padding: 16px 0 0; border: 0; }
	table.cart td.actions .coupon { display: flex; gap: 8px; width: 100%; margin-bottom: 10px; }
	table.cart td.actions .coupon input { flex: 1 1 auto; width: auto; min-width: 0; }
	table.cart td.actions .coupon .button { flex: none; padding-inline: 14px; white-space: nowrap; }
	table.cart td.actions > .button { float: none; width: 100%; }
	.cart_totals { padding: 18px 16px; }
	#shipping_method li { padding: 10px 12px; }
}

/* Menu główne: Wszystkie kategorie, Promocje, Nowości po lewej; Kontakt po prawej */
.rs-nav__main { flex: none; }
.rs-nav__main .is-sale { color: var(--red); font-weight: 600; }
.rs-nav__special a { color: var(--ink) !important; font-weight: 500 !important; }
.rs-nav__in .rs-nav__special { margin-left: auto; padding-left: 0; border-left: 0; }
.rs-nav__in .rs-nav__special li a { padding-right: 0; }
.rs-nav__in .rs-nav__special li a { padding: 8px 12px; margin-right: -12px; }

/* Strona główna: zdjęcie magazynu w górnej sekcji, tekst i wyszukiwarka po lewej */
.rs-hero--photo { position: relative; isolation: isolate; overflow: hidden; background: #0a1726; color: #fff; border-bottom: 0; }
.rs-hero__bg { position: absolute; inset: 0; z-index: -2; }
.rs-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.rs-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 23, 38, .97) 0%, rgba(10, 23, 38, .88) 34%, rgba(10, 23, 38, .35) 66%, rgba(10, 23, 38, .12) 100%); }
.rs-hero--photo .rs-hero__in { display: block; padding-block: clamp(36px, 6vw, 92px); }
.rs-hero--photo .rs-hero__text { max-width: 860px; }
.rs-hero--photo .rs-hero__title { max-width: 640px; color: #fff; font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.rs-hero--photo .rs-hero__lead { max-width: 640px; color: #d3dde7; font-size: 1.05rem; margin-bottom: 28px; }
.rs-hero--photo .rs-finder { max-width: none; border: 0; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); color: var(--ink); }
@media (min-width: 801px) {
	.rs-hero--photo .rs-finder { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px; }
	.rs-hero--photo .rs-finder__go { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
	.rs-hero--photo::before { background: linear-gradient(180deg, rgba(10, 23, 38, .9) 0%, rgba(10, 23, 38, .78) 100%); }
	.rs-hero__bg img { object-position: 72% center; }
}

/* Kategorie ze zdjęciami */
.rs-catpics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; list-style: none; }
@media (min-width: 640px) { .rs-catpics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; } }
@media (min-width: 1160px) { .rs-catpics { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rs-catpic { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.rs-catpic:hover { border-color: #aab7c4; box-shadow: 0 10px 26px rgba(16, 36, 53, .12); transform: translateY(-2px); color: var(--ink); }
.rs-catpic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #eef1f4; }
.rs-catpic__name { padding: 12px 14px 0; font-weight: 600; line-height: 1.25; }
.rs-catpic__n { padding: 2px 14px 14px; color: var(--steel); font-size: .88rem; font-variant-numeric: tabular-nums; }
.rs-catpic:hover .rs-catpic__name { color: var(--red); }

/* Sekcja ze zdjęciem pakowania: jak pracujemy */
.rs-about__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.rs-about__img { display: block; overflow: hidden; border-radius: 12px; background: var(--paper); }
.rs-about__img img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rs-about__text .rs-h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); line-height: 1.2; margin-bottom: 20px; text-wrap: balance; }
.rs-about__list { display: grid; gap: 16px; margin: 0 0 26px; padding: 0; list-style: none; }
.rs-about__list li { display: flex; gap: 14px; align-items: flex-start; }
.rs-about__list .rs-i { flex: none; margin-top: 2px; color: var(--red); }
.rs-about__list p { margin: 0; color: var(--steel); }
.rs-about__list strong { display: block; color: var(--ink); font-size: 1.02rem; }
.rs-about__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.rs-about__cta p { margin: 0; color: var(--steel); }
.rs-about__cta p a { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) {
	.rs-about__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
}
@media (prefers-reduced-motion: reduce) { .rs-catpic { transition: none; } .rs-catpic:hover { transform: none; } }

/* Pozostałe kategorie: lista z miniaturą zdjęcia */
.rs-cats--thumbs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rs-cats--thumbs .rs-cat { justify-content: flex-start; gap: 12px; padding: 8px 14px 8px 8px; }
.rs-cat__img { flex: none; width: 68px; height: 51px; object-fit: cover; border-radius: 6px; background: #eef1f4; }
.rs-cats--thumbs .rs-cat__name { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.rs-cats--thumbs .rs-cat:hover .rs-cat__name { color: var(--red); }
@media (max-width: 600px) { .rs-cats--thumbs { grid-template-columns: 1fr; } }

/* Mniejsze pismo w całym sklepie: wszystkie rozmiary w rem liczą się od 15 px zamiast 16 px, tekst podstawowy 14,5 px */
html { font-size: 93.75%; }
body { font-size: 14.5px; }
/* Na ekranach dotykowych pola formularzy zostają przy 16 px – inaczej iPhone powiększa stronę po dotknięciu pola */
@media (pointer: coarse) {
	input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }
}

/* Nagłówek na telefonie i tablecie: telefon, konto i koszyk razem przy prawej krawędzi (także na stronie głównej) */
@media (max-width: 900px) {
	.rs-header .rs-header__in { gap: 6px 4px; }
	.rs-header .rs-logo { margin-left: 4px; }
	.rs-header .rs-phone { margin-left: auto; }
	.rs-header .rs-header__tools { margin-left: 8px; gap: 2px; }
}
@media (max-width: 640px) {
	.rs-header .rs-phone { gap: 0; padding: 9px 10px; }
	.rs-header .rs-phone__txt { display: block; width: 0; }
	.rs-header .rs-header__tools { margin-left: 0; }
	.rs-header .rs-tool { padding: 9px 10px; }
}
@media (max-width: 640px) { .rs-header .rs-search__input::placeholder { font-size: 14px; } }

/* Lista produktów: tytuł z liczbą części w jednym wierszu z sortowaniem, nad listą (pasek boczny zaczyna się od góry) */
.rs-listhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.rs-listhead .rs-archive__head { flex: 1 1 280px; min-width: 0; margin: 0; }
.rs-listhead .rs-toolbar { flex: none; margin: 0; padding: 0; border: 0; }
@media (max-width: 900px) {
	.rs-listhead .rs-archive__head { flex-basis: 100%; }
	.rs-listhead .rs-toolbar { flex: 1 1 100%; justify-content: space-between; }
}

/* Karta produktu: zakładki Opis / Dane techniczne */
.rs-tabs { padding-top: 0; border-top: 0; margin-top: 8px; }
.rs-tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.rs-tabs__tab { position: relative; flex: none; padding: 12px 18px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; font-family: var(--f-head); font-size: 1.1rem; font-weight: 600; color: var(--steel); cursor: pointer; }
.rs-tabs__tab:hover { color: var(--ink); }
.rs-tabs__tab.is-on { color: var(--ink); border-bottom-color: var(--red); }
.rs-tabs__panel[hidden] { display: none; }
.rs-tech { margin: 0; max-width: 860px; border-top: 1px solid var(--line); }
.rs-tech div { display: grid; grid-template-columns: minmax(150px, 280px) 1fr; gap: 16px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.rs-tech div:nth-child(odd) { background: var(--paper); }
.rs-tech dt { color: var(--steel); }
.rs-tech dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 600px) { .rs-tech div { grid-template-columns: 1fr; gap: 2px; } .rs-tabs__tab { padding: 11px 14px; font-size: 1.02rem; } }

/* Opis produktu ułożony z opisu z Allegro */
.rs-desc { max-width: 860px; color: #2c4256; }
.rs-desc__lead { margin: 0 0 22px; font-size: 1.12rem; line-height: 1.5; color: var(--ink); }
.rs-desc__lead strong { font-weight: 600; }
.rs-desc__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.rs-desc__block { margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rs-desc__cols .rs-desc__block { margin: 0; }
.rs-desc__block h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .95rem; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.rs-desc__list, .rs-desc__cars, .rs-desc__facts { margin: 0; padding: 0; list-style: none; }
.rs-desc__list li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.rs-desc__list li:last-child { margin-bottom: 0; }
.rs-desc__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #9fb0c0; }
.rs-desc__list--cols { columns: 2 220px; column-gap: 28px; }
.rs-desc__list--cols li { break-inside: avoid; }
.rs-desc__cars { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-desc__cars a, .rs-desc__cars span { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-weight: 500; text-decoration: none; }
.rs-desc__cars a:hover { border-color: var(--ink); color: var(--ink); }
.rs-desc__facts li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; color: var(--ink); }
.rs-desc__facts li:last-child { margin-bottom: 0; }
.rs-desc__facts .rs-i { margin-top: 2px; color: #1c8a4a; }
.rs-desc__notes { border-color: #f0d9a8; background: #fff9ec; }
.rs-desc__notes h3 { color: #7a4b00; }
.rs-desc__notes .rs-i { color: #b86e00; }
.rs-desc__notes li { color: #4a3508; font-weight: 500; }
.rs-desc__notes li::before { background: #b86e00; }
.rs-desc__advice { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--paper); color: var(--ink); }
.rs-desc__advice .rs-i { flex: none; margin-top: 1px; color: var(--red); }
.rs-desc__advice b { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 600; white-space: nowrap; }

/* =========================================================================
   Koszyk i kasa v2 + powiadomienia
   ========================================================================= */
/* Tekst tylko dla czytników ekranu (WooCommerce używa tej klasy m.in. w koszyku) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.woocommerce-Price-amount { white-space: nowrap; }

/* Etapy zamówienia */
.rs-steps { display: flex; align-items: center; gap: 10px; margin: 6px 0 22px; padding: 0; list-style: none; }
.rs-steps li { display: flex; align-items: center; gap: 10px; color: var(--steel); font-weight: 500; white-space: nowrap; }
.rs-steps li + li::before { content: ""; width: clamp(16px, 5vw, 64px); height: 2px; border-radius: 2px; background: var(--line); }
.rs-steps li.is-done + li::before { background: var(--ink); }
.rs-steps a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.rs-steps a:hover .rs-steps__t { text-decoration: underline; }
.rs-steps__n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-steps .is-current { color: var(--ink); }
.rs-steps .is-current .rs-steps__n { border-color: var(--ink); background: var(--ink); color: #fff; }
.rs-steps .is-done { color: var(--ink); }
.rs-steps .is-done .rs-steps__n { border-color: #1c8a4a; background: #1c8a4a; color: #fff; }
.woocommerce-cart .rs-page--shop .rs-h1 { margin-bottom: 18px; }
@media (max-width: 600px) {
	.rs-steps { gap: 6px; margin-bottom: 16px; font-size: .9rem; }
	.rs-steps li { gap: 6px; }
	.rs-steps li:not(.is-current) .rs-steps__t { display: none; }
	.rs-steps li + li::before { width: 18px; }
}

/* ---------- Alerty (komunikaty WooCommerce) ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice, .rs-alert {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
	margin: 0 0 18px; padding: 14px 16px 14px 56px; min-height: 54px; list-style: none;
	border: 1px solid var(--line); border-left-width: 1px; border-radius: 10px; background: #fff; color: var(--ink);
	box-shadow: 0 4px 16px rgba(16, 36, 53, .06); line-height: 1.45;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before, .woocommerce-notice::before, .rs-alert::before {
	content: ""; position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%;
	background: #e8eef5 url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23102435%22 stroke-width=%222.4%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M12 11v6M12 7v.5%22/%3E%3C/svg%3E") center / 16px no-repeat;
}
.woocommerce-message, .rs-alert--ok { border-color: #bfe3cd; background: #f4fbf7; }
.woocommerce-message::before, .rs-alert--ok::before { background-color: #d9f0e2; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231c8a4a%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m5 12 5 5 9-10%22/%3E%3C/svg%3E"); }
.woocommerce-error, .rs-alert--error { display: block; border-color: #f3c4bd; background: #fff6f5; }
.woocommerce-error::before, .rs-alert--error::before { background-color: #fbdcd7; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23b3260f%22 stroke-width=%222.6%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M12 6v8M12 17.5v.5%22/%3E%3C/svg%3E"); }
.woocommerce-error li { margin: 3px 0; }
.woocommerce-error li:only-child { margin: 4px 0; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button), .woocommerce-error a:not(.button) { font-weight: 600; text-underline-offset: 3px; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { order: 2; min-height: 36px; padding: 6px 14px; background: #fff; color: var(--ink); border: 1px solid #b9c5d0; font-size: .9rem; }
.woocommerce-message .button:hover, .woocommerce-info .button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.woocommerce-message:focus, .woocommerce-error:focus, .woocommerce-info:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce form .form-row.woocommerce-invalid .input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: #d0432b; background: #fffafa; }
.woocommerce form .form-row.woocommerce-validated .input-text { border-color: #7fbf98; }
.checkout-inline-error-message { margin: 5px 0 0; color: #b3260f; font-size: .88rem; }

/* ---------- Powiadomienie po akcji (np. „Dodano do koszyka”) ---------- */
.rs-toast {
	position: fixed; z-index: 90; right: 24px; bottom: 24px; left: auto; display: flex; align-items: flex-start; gap: 12px;
	width: min(390px, calc(100vw - 32px)); max-width: none; padding: 14px 12px 16px 14px;
	border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
	box-shadow: 0 18px 48px rgba(16, 36, 53, .24); transform: translateY(16px); opacity: 0; visibility: hidden;
	transition: transform .22s ease, opacity .22s ease, visibility .22s;
}
.rs-toast.is-on { transform: none; opacity: 1; visibility: visible; }
.rs-toast::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #d9f0e2 url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231c8a4a%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m5 12 5 5 9-10%22/%3E%3C/svg%3E") center / 17px no-repeat; }
.rs-toast.is-error { background: #fff; border-color: #f3c4bd; }
.rs-toast.is-error::before { background-color: #fbdcd7; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23b3260f%22 stroke-width=%222.6%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M12 6v8M12 17.5v.5%22/%3E%3C/svg%3E"); }
.rs-toast__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; padding-top: 4px; line-height: 1.4; }
.rs-toast__body strong { font-weight: 600; }
.rs-toast__body span { color: var(--steel); font-size: .92rem; }
.rs-toast a, .rs-toast__body a { margin: 4px 0 0; color: var(--red); font-weight: 600; text-decoration: none; justify-self: start; }
.rs-toast a:hover { text-decoration: underline; }
.rs-toast__close { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--steel); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.rs-toast__close:hover { background: var(--paper); color: var(--ink); }
.rs-toast__bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rs-toast__bar::after { content: ""; display: block; height: 100%; background: #1c8a4a; transform-origin: left; }
.rs-toast.is-on .rs-toast__bar::after { animation: rs-toastbar 6s linear forwards; }
.rs-toast.is-error .rs-toast__bar::after { background: #d0432b; }
@keyframes rs-toastbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) {
	.rs-toast { right: 12px; left: 12px; bottom: 12px; width: auto; }
	body:has(.rs-stickybuy:not([hidden])) .rs-toast { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .rs-toast { transition: none; } .rs-toast.is-on .rs-toast__bar::after { animation: none; } }

/* ---------- Koszyk: pozycje jako karty, podsumowanie po prawej ---------- */
.woocommerce-cart .rs-shopflow > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; align-items: start; }
.woocommerce-cart .rs-shopflow > .woocommerce > * { min-width: 0; }
.woocommerce-cart .woocommerce-cart-form { margin: 0 0 24px; }
.woocommerce-cart .cart-collaterals { display: block; }
.woocommerce-cart .cart_totals { width: 100%; padding: 22px; }
@media (min-width: 1000px) {
	.woocommerce-cart .rs-shopflow > .woocommerce { grid-template-columns: minmax(0, 1fr) 400px; }
	.woocommerce-cart .rs-shopflow > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-cart .woocommerce-cart-form { grid-column: 1; margin: 0; }
	.woocommerce-cart .cart-collaterals { grid-column: 2; }
}
@media (min-width: 1000px) and (min-height: 880px) { .woocommerce-cart .cart-collaterals { position: sticky; top: 150px; } }

.rs-freebar { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rs-freebar p { margin: 0 0 10px; }
.rs-freebar__track { height: 6px; border-radius: 6px; background: #e3e9ee; }
.rs-freebar__track span { border-radius: 6px; }
.rs-freebar.is-done { border-color: #bfe3cd; background: #f4fbf7; }

table.cart, table.cart tbody { display: block; width: 100%; }
table.cart thead { display: none; }
table.cart tr { display: block; }
table.cart tr.cart_item {
	display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 36px; grid-template-areas: "thumb name subtotal remove" "thumb qty subtotal remove";
	gap: 8px 18px; align-items: center; margin: 0 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
table.cart tr.cart_item:hover { border-color: #c7d2dc; box-shadow: 0 6px 20px rgba(16, 36, 53, .06); }
table.cart tr.cart_item td { display: block; width: auto; min-width: 0; padding: 0; border: 0; }
table.cart .product-thumbnail { grid-area: thumb; }
table.cart .product-thumbnail img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--paper); }
table.cart .product-name { grid-area: name; grid-column: 2; grid-row: 1; align-self: end; line-height: 1.35; }
table.cart .product-name a { font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none; }
table.cart .product-name a:hover { color: var(--red); }
table.cart tr.cart_item td.product-price { display: none; }
table.cart .product-quantity { grid-area: qty; grid-column: 2; grid-row: 2; align-self: start; }
table.cart .product-subtotal { grid-area: subtotal; display: block; text-align: right; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.cart .product-remove { grid-area: remove; grid-column: 4; grid-row: 1 / -1; justify-self: end; }
table.cart .product-remove a { width: 36px; height: 36px; border: 1px solid transparent; }
table.cart .product-remove a:hover { border-color: #f3c4bd; }
/* Części sprzedawane pojedynczo: ilości nie da się zmienić, więc jej nie pokazujemy */
table.cart tr.cart_item:has(.product-quantity input[type="hidden"]) .product-quantity { display: none; }
table.cart tr.cart_item:has(.product-quantity input[type="hidden"]) .product-name { grid-row: 1 / -1; align-self: center; }
table.cart:not(:has(.product-quantity input[type="number"])) button[name="update_cart"] { display: none; }
.rs-cartmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; color: var(--steel); font-size: .88rem; }
.rs-cartmeta .rs-plate { align-self: center; }
table.cart td.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 0; border: 0; }
table.cart td.actions .coupon { display: flex; flex: 1 1 320px; max-width: 460px; gap: 8px; }
table.cart td.actions .coupon label { display: none; }
table.cart td.actions .coupon input { flex: 1 1 auto; width: auto; min-width: 0; min-height: 44px; }
table.cart td.actions .coupon .button { flex: none; min-height: 44px; background: #fff; color: var(--ink); border: 1px solid #b9c5d0; white-space: nowrap; }
table.cart td.actions .coupon .button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
table.cart td.actions > .button { float: none; }

.cart_totals h2 { margin: 0 0 12px; font-size: 1.2rem; }
.cart_totals table.shop_table, .cart_totals table.shop_table tbody { display: block; }
.cart_totals table.shop_table tr { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart_totals table.shop_table th, .cart_totals table.shop_table td { display: block; width: auto; padding: 0; border: 0; font-size: 1rem; }
.cart_totals table.shop_table th { color: var(--steel); font-weight: 500; }
.cart_totals table.shop_table td { text-align: right; font-weight: 600; }
.cart_totals table.shop_table tr.woocommerce-shipping-totals { display: block; }
.cart_totals tr.woocommerce-shipping-totals th { margin-bottom: 8px; }
.cart_totals tr.woocommerce-shipping-totals td { text-align: left; font-weight: 400; }
.cart_totals table.shop_table tr.order-total { align-items: center; padding: 14px 0 4px; border-bottom: 0; }
.cart_totals table.shop_table tr.order-total th { color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.cart_totals table.shop_table tr.order-total td { font-size: 1.5rem; line-height: 1.2; }
.woocommerce-cart .woocommerce-message .button.wc-forward { display: none; }
.cart_totals .order-total small, .woocommerce-checkout-review-order-table .order-total small { display: block; font-size: .8rem; font-weight: 400; color: var(--steel); }
.wc-proceed-to-checkout { padding: 0; }
.wc-proceed-to-checkout .checkout-button { display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 14px; font-size: 1.08rem; }
.rs-assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--steel); font-size: .88rem; }
.rs-assure li { display: flex; align-items: center; gap: 6px; }
.rs-assure .rs-i { color: #1c8a4a; }

/* Pusty koszyk */
.woocommerce-cart .rs-shopflow > .woocommerce:has(.cart-empty) { display: block; max-width: 560px; margin: 24px auto 48px; padding: 40px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.cart-empty.woocommerce-info { display: block; margin: 0 0 6px; padding: 76px 0 0; min-height: 0; border: 0; box-shadow: none; background: none; font-size: 1.25rem; font-weight: 600; }
.cart-empty.woocommerce-info::before { left: 50%; top: 0; width: 60px; height: 60px; margin-left: -30px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23102435%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 8H6.2%22/%3E%3Ccircle cx=%2210%22 cy=%2220%22 r=%221.4%22/%3E%3Ccircle cx=%2217%22 cy=%2220%22 r=%221.4%22/%3E%3C/svg%3E") center / 30px no-repeat; }
.return-to-shop { margin: 16px 0 0; }
.return-to-shop .button { margin: 0; min-height: 48px; padding-inline: 26px; }

@media (max-width: 640px) {
	table.cart tr.cart_item { grid-template-columns: 76px minmax(0, 1fr) 34px; grid-template-areas: "thumb name remove" "thumb qty qty" "thumb subtotal subtotal"; gap: 6px 12px; align-items: start; padding: 12px; }
	table.cart .product-thumbnail { grid-column: 1; grid-row: 1 / -1; }
	table.cart .product-thumbnail img { width: 76px; height: 76px; }
	table.cart .product-name { grid-column: 2; grid-row: 1; align-self: start; }
	table.cart tr.cart_item:has(.product-quantity input[type="hidden"]) .product-name { grid-row: 1; align-self: start; }
	table.cart .product-name a { font-size: .98rem; }
	table.cart .product-quantity { grid-column: 2 / -1; grid-row: 2; }
	table.cart .product-subtotal { grid-column: 2 / -1; grid-row: 3; text-align: left; font-size: 1.1rem; }
	table.cart .product-remove { grid-column: 3; grid-row: 1; }
	table.cart .product-remove a { width: 34px; height: 34px; }
	table.cart td.actions { padding: 4px 0 0; }
	table.cart td.actions .coupon { flex-basis: 100%; max-width: none; margin: 0; }
	.woocommerce-cart .cart_totals { padding: 18px 16px; }
}

/* ---------- Kasa: dane w kartach, podsumowanie zamówienia po prawej ---------- */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info { min-height: 0; padding: 12px 16px; justify-content: flex-start; gap: 6px; box-shadow: none; background: var(--paper); border-color: transparent; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before, .woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before { display: none; }
form.checkout_coupon, form.woocommerce-form-login { margin: 0 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
form.checkout_coupon { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
form.checkout_coupon[style*="none"] { display: none; }
form.checkout_coupon::after { display: none; }
form.checkout_coupon > p:first-child { flex: 1 1 100%; margin: 0; color: var(--steel); }
form.checkout_coupon .form-row { float: none; width: auto; margin: 0; }
form.checkout_coupon .form-row-first { flex: 1 1 220px; max-width: 320px; }
form.checkout_coupon .clear { display: none; }
form.checkout { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr); gap: 28px 32px; }
form.checkout #customer_details { display: grid; gap: 18px; }
form.checkout #customer_details::after { display: none; }
form.checkout #customer_details > div { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
form.checkout h3 { margin: 0 0 16px; font-size: 1.15rem; }
form.checkout #ship-to-different-address { margin: 0; font-size: 1rem; }
form.checkout .shipping_address { margin-top: 16px; }
form.checkout .woocommerce-additional-fields { margin-top: 16px; }
form.checkout .woocommerce-additional-fields > h3 { display: none; }
form.checkout .form-row:last-child { margin-bottom: 0; }
form.checkout textarea.input-text { min-height: 84px; padding-block: 10px; }
form.checkout #order_review_heading { margin: 0; font-size: 1.2rem; align-self: start; padding: 22px 22px 0; position: relative; z-index: 1; }
form.checkout #order_review { margin-top: 0; padding: 62px 22px 22px; position: static; }
.woocommerce-checkout-review-order-table, .woocommerce-checkout-review-order-table tbody, .woocommerce-checkout-review-order-table tfoot { display: block; }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table tr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { display: block; padding: 0; border: 0; font-size: .98rem; }
.woocommerce-checkout-review-order-table tfoot th { color: var(--steel); font-weight: 500; }
.woocommerce-checkout-review-order-table tfoot td { text-align: right; font-weight: 600; }
.woocommerce-checkout-review-order-table td.product-name { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 500; line-height: 1.35; }
.woocommerce-checkout-review-order-table td.product-name .product-quantity { color: var(--steel); font-weight: 400; white-space: nowrap; }
.woocommerce-checkout-review-order-table td.product-total { flex: none; font-weight: 600; }
.rs-review__img { flex: none; width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--paper); }
.rs-review__name { min-width: 0; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { display: block; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th { margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { text-align: left; font-weight: 400; }
.woocommerce-checkout-review-order-table tr.rs-freebar-row { display: block; padding: 12px 0 2px; border: 0; }
.woocommerce-checkout-review-order-table tr.rs-freebar-row td { display: block; }
.woocommerce-checkout-review-order-table tr.rs-freebar-row .rs-freebar { margin: 0; }
.woocommerce-checkout-review-order-table tr.order-total { padding: 14px 0 6px; border-bottom: 0; }
.woocommerce-checkout-review-order-table tr.order-total th { color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.woocommerce-checkout-review-order-table tr.order-total td { font-size: 1.5rem; line-height: 1.2; }
#payment { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
#payment::before { content: "Płatność"; display: block; margin-bottom: 10px; font-family: var(--f-head); font-weight: 600; }
#payment ul.payment_methods { margin: 0 0 16px; gap: 8px; }
#payment ul.payment_methods > li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 10px; }
#payment ul.payment_methods > li > label { display: flex; justify-content: space-between; width: 100%; }
#payment ul.payment_methods > li > .payment_box { grid-column: 1 / -1; }
#payment ul.payment_methods input[type="radio"], #shipping_method input[type="radio"] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
#payment .place-order { margin: 0; padding: 0; }
#place_order { min-height: 56px; margin-top: 4px; font-size: 1.1rem; }
.woocommerce-terms-and-conditions-wrapper { margin: 0 0 12px; }
.woocommerce-terms-and-conditions-wrapper .form-row { margin: 10px 0 0; }
.woocommerce-terms-and-conditions-wrapper label.checkbox, form.checkout .form-row label.checkbox { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.woocommerce-terms-and-conditions-wrapper label.checkbox { font-weight: 400; }
form.checkout input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
@media (max-width: 900px) {
	form.checkout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	form.checkout #customer_details { grid-row: 1; }
	form.checkout #order_review_heading { grid-column: 1; grid-row: 2; padding: 18px 16px 0; }
	form.checkout #order_review { grid-column: 1; grid-row: 2; margin-top: 0; padding: 56px 16px 18px; }
	form.checkout #customer_details > div { padding: 18px 16px; }
}

/* Kasa na szerokim ekranie: po lewej dane i płatność, po prawej podsumowanie zamówienia z wysyłką */
@media (min-width: 901px) {
	form.checkout #order_review { display: contents; }
	form.checkout #order_review_heading { grid-column: 2; grid-row: 1; }
	form.checkout .woocommerce-checkout-review-order-table { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding: 62px 22px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 6px 24px rgba(16, 36, 53, .06); }
	form.checkout #payment { grid-column: 1; grid-row: 2; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
	form.checkout #payment::before { margin-bottom: 14px; font-size: 1.15rem; }
	form.checkout #payment ul.payment_methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	form.checkout #payment ul.payment_methods > li { align-content: start; }
}
.woocommerce-checkout .rs-steps { margin-top: 20px; }

/* ---------- Wyszukiwarka: podpowiedzi v2 (czytelne pozycje, pełny ekran na telefonie) ---------- */
.rs-search__back { display: none; }
.rs-search__results { border-radius: 10px; box-shadow: 0 18px 48px rgba(16, 36, 53, .18); padding: 6px; }
.rs-sr-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 8px; border-radius: 8px; color: var(--ink); }
.rs-sr-item img, .rs-sr-noimg { width: 56px; height: 56px; border-radius: 6px; }
.rs-sr-text { display: grid; gap: 3px; min-width: 0; }
.rs-sr-title { font-size: .95rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-sr-nr { font: 500 .8rem/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--steel); letter-spacing: .02em; }
.rs-sr-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-sr-all { margin-top: 4px; padding: 12px 8px; border-top: 1px solid var(--line); text-align: center; font-weight: 600; text-decoration: none; }
.rs-sr-all:hover { text-decoration: underline; }
.rs-sr-hint { margin: 0; padding: 14px 10px 6px; color: var(--steel); line-height: 1.45; }
.rs-sr-label { margin: 14px 10px 6px; font-weight: 600; color: var(--ink); }
.rs-sr-recent { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 10px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.rs-sr-recent::before { content: ""; flex: none; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%235b6b7a%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M12 7v5l3 2%22/%3E%3C/svg%3E") center / contain no-repeat; }

/* Telefon i tablet: w nagłówku jest tylko ikona lupy, pole wyszukiwania otwiera się na cały ekran */
.rs-header__search { display: none; }
@media (max-width: 900px) {
	.rs-header__search { display: grid; place-items: center; order: 2; flex: none; width: 42px; height: 42px; margin-left: auto; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
	.rs-header__search:hover { background: var(--paper); }
	.rs-header .rs-phone { margin-left: 0; }
	.rs-header .rs-search:not(.is-open) { display: none; }
	.rs-header .rs-header__in, .home .rs-header .rs-header__in { min-height: 0; padding-block: 10px; }
	.rs-header .rs-search.is-open {
		position: fixed; z-index: 95; inset: 0 0 auto 0; height: 100dvh; margin: 0; max-width: none;
		display: grid; grid-template-columns: 44px minmax(0, 1fr) 52px; grid-template-rows: auto minmax(0, 1fr); align-content: start; gap: 0;
		padding: 8px 10px 0; background: #fff;
	}
	.rs-header .rs-search.is-open .rs-search__back { display: grid; place-items: center; grid-column: 1; grid-row: 1; width: 44px; height: 48px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
	.rs-header .rs-search.is-open .rs-search__back svg { transform: rotate(180deg); }
	.rs-header .rs-search.is-open .rs-search__input { grid-column: 2; grid-row: 1; height: 48px; }
	.rs-header .rs-search.is-open .rs-search__btn { grid-column: 3; grid-row: 1; width: 52px; height: 48px; }
	.rs-header .rs-search.is-open .rs-search__results { grid-column: 1 / -1; grid-row: 2; position: static; max-height: none; margin: 8px -10px 0; padding: 4px 10px 24px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	.rs-header .rs-search.is-open .rs-search__results[hidden] { display: block; visibility: hidden; }
	.rs-header .rs-search.is-open .rs-sr-item { grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "img text" "img price"; gap: 2px 12px; padding: 10px 0; border-radius: 0; border-bottom: 1px solid var(--line); align-items: start; }
	.rs-header .rs-search.is-open .rs-sr-item img, .rs-header .rs-search.is-open .rs-sr-noimg { grid-area: img; width: 60px; height: 60px; }
	.rs-header .rs-search.is-open .rs-sr-text { grid-area: text; }
	.rs-header .rs-search.is-open .rs-sr-title { font-size: 1rem; }
	.rs-header .rs-search.is-open .rs-sr-price { grid-area: price; font-size: 1.02rem; }
	.rs-header .rs-search.is-open .rs-sr-all { margin-top: 0; padding: 16px 8px; border-top: 0; }
}
