/* ============================================================
   Fiberglass World — Frontpage styles
   ============================================================ */

:root {
  --navy:        #1a2236;
  --navy-2:      #232d47;
  --navy-deep:   #141b2e;
  --logo-blue:   #1f2d52;
  --red:         #e1352b;
  --red-dark:    #b71f17;
  --gold-1:      #e7c66b;
  --gold-2:      #c9a13e;
  --bg:          #f3f4f6;
  --surface:     #ffffff;
  --line:        #e7e9ee;
  --ink:         #1c2430;
  --muted:       #7a8190;
  --muted-2:     #9aa1ad;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 6px 22px rgba(20, 27, 46, .07);
  --shadow-lg:   0 14px 40px rgba(20, 27, 46, .12);
  --container:   1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; display: block; }

/* Box: zachęta dla firm z UE (0% VAT). Subtelny — neutralne tło, cienka ramka. */
.eu-vat-note {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 0 20px; padding: 12px 14px;
  border: 1px solid var(--line, #e3e7ee); border-radius: 10px;
  background: #f6f8fc;
}
.eu-vat-note .evn-ico { flex: 0 0 auto; line-height: 0; }
.eu-vat-note .evn-txt strong { display: block; font-size: 13.5px; color: var(--ink, #1a2236); margin-bottom: 2px; }
.eu-vat-note .evn-txt p { margin: 0; font-size: 12.5px; color: var(--muted, #6b7385); line-height: 1.5; }
.eu-vat-note .evn-txt a { color: var(--navy, #1a2236); font-weight: 700; white-space: nowrap; }
.eu-vat-note .evn-txt a:hover { color: var(--red, #e0301e); }

/* Tekst dostępny dla czytników ekranu i robotów (SEO H1), wizualnie ukryty. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* ============ HEADER ============ */
.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
}

.logo img { height: 46px; width: auto; }

.header-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Unified control height for selects + button */
:root { --ctrl-h: 42px; }

/* Custom dropdown (language / currency) */
.dd { position: relative; }
.dd-toggle {
  height: var(--ctrl-h);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.dd-toggle:hover { border-color: #c2c8d3; }
.dd.open .dd-toggle { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 34, 54, .08); }
.dd-label { display: inline-flex; align-items: center; gap: 8px; }
.dd-chev { color: var(--muted); transition: transform .25s; flex: none; }
.dd.open .dd-chev { transform: rotate(180deg); }

.flag {
  width: 22px; height: 15px;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
  display: inline-flex;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset;
}
.flag svg { width: 100%; height: 100%; display: block; }

.dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  margin: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}
.dd-opt:hover { background: var(--bg); }
.dd-opt.is-selected { background: rgba(26, 34, 54, .06); font-weight: 600; }

.btn-account {
  height: var(--ctrl-h);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .15s;
}
.btn-account:hover { background: var(--navy-2); }
.btn-account svg { flex: none; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  color: var(--navy);
  border-radius: 50%;
  transition: background .2s, color .2s, transform .15s;
}
.icon-btn:hover { background: #eef0f4; }
.icon-wa:hover { color: #25d366; }
.icon-ig:hover { color: #c13584; }

.badge {
  position: absolute;
  top: 2px; right: 1px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.badge-wish { background: var(--navy); }

/* ============ MINI CART DROPDOWN ============ */
.cart-wrap { position: relative; display: inline-flex; }
.cart-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 344px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.cart-wrap.open .cart-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-dropdown::before {
  content: "";
  position: absolute;
  top: -6px; right: 16px;
  width: 12px; height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.cart-dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.cart-dd-title { font-size: 14px; font-weight: 700; }
.cart-dd-count { font-size: 12px; color: var(--muted); }

.cart-dd-list {
  max-height: 312px;
  overflow-y: auto;
  margin: 0;
  padding: 6px 8px;
}
.cart-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
}
.cart-dd-item:hover { background: var(--bg); }
.cart-thumb {
  width: 54px; height: 54px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
.cart-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-info { flex: 1; min-width: 0; }
.cart-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cart-line { font-size: 13px; font-weight: 700; color: var(--red); white-space: nowrap; }
.cart-rm {
  width: 26px; height: 26px;
  flex: none;
  border: none;
  background: transparent;
  color: var(--muted-2);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cart-rm:hover { background: #fdeaea; color: var(--red); }
.cart-more { list-style: none; text-align: center; font-size: 12px; color: var(--muted); padding: 8px; }
.cart-empty { list-style: none; text-align: center; color: var(--muted); font-size: 13px; padding: 28px 10px; }

.cart-dd-foot { padding: 14px 16px; border-top: 1px solid var(--line); }
.cart-dd-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}
.cart-dd-total strong { font-size: 19px; color: var(--ink); font-weight: 800; }
.cart-dd-btn {
  display: block;
  text-align: center;
  background: var(--navy);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px;
  border-radius: 9px;
  transition: background .2s;
}
.cart-dd-btn:hover { background: var(--navy-2); }
.cart-dd-link {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 10px;
  transition: color .2s;
}
.cart-dd-link:hover { color: var(--navy); }

/* Main nav */
.main-nav {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 15px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #41495a;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:not(.active):hover { border-bottom-color: #c9ced8; }
.nav-links a.active,
.nav-links a.strong { color: var(--navy); font-weight: 700; }
.nav-links a.active { border-bottom-color: var(--red); }

/* ============ CATEGORY ICON BAR ============ */
.category-bar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 20px 0 22px;
}
.cat-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.cat-tile {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-align: center;
  transition: background .2s, transform .15s, color .2s;
}
.cat-tile img,
.cat-tile svg {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform .2s;
}
.cat-tile span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: #41495a;
}
.cat-tile:hover {
  background: var(--bg);
}
.cat-tile:hover span { color: var(--red); }
.cat-tile-more svg { color: var(--muted); }

/* Full-width search */
.search-wide {
  margin-top: 18px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.search-wide input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 13px 18px;
  font-size: 14px;
  outline: none;
  color: var(--ink);
}
.search-wide input::placeholder { color: var(--muted-2); font-style: italic; }
.search-wide button {
  border: none;
  background: var(--navy);
  color: #fff;
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.search-wide button:hover { background: var(--navy-2); }

/* Wyszukiwarka zaawansowana */
.search-wrap { position: relative; }
.search-wide .search-adv-btn {
  background: transparent;
  color: var(--muted);
  width: 46px;
  border-left: 1px solid var(--line);
}
.search-wide .search-adv-btn:hover { background: var(--surface-2); color: var(--ink); }
.search-adv {
  position: absolute; top: 100%; right: 0; z-index: 60;
  width: 360px; max-width: calc(100vw - 32px); margin-top: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(20,26,43,.20); padding: 16px 16px 18px;
}
.search-adv::before {
  content: ""; position: absolute; top: -6px; right: 18px; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.search-adv[hidden] { display: none; }
.search-adv .sa-row { margin-bottom: 14px; }
.search-adv .sa-row > label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted-2, #9aa1b2); margin-bottom: 7px; }
.search-adv .sel { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.search-adv .inp { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; font-size: 13.5px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.search-adv .sel:focus, .search-adv .inp:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,34,54,.10); }
.search-adv .sa-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search-adv .sa-2 label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted-2, #9aa1b2); margin-bottom: 7px; }
.search-adv .sa-sizes { display: flex; flex-wrap: wrap; gap: 7px; }
.search-adv .sa-size input { position: absolute; opacity: 0; width: 0; height: 0; }
.search-adv .sa-size span { display: inline-flex; min-width: 42px; justify-content: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2, #3a4255); cursor: pointer; transition: all .12s; }
.search-adv .sa-size span:hover { border-color: var(--navy); }
.search-adv .sa-size input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-adv .sa-actions { display: flex; gap: 10px; margin-top: 4px; }
.search-adv .sa-go, .search-adv .sa-reset {
  flex: 1; height: 42px; border: 0; border-radius: 0; font-size: 13.5px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: filter .15s, background .15s;
}
.search-adv .sa-go { background: var(--blue, #2563eb); color: #fff; flex: 2; }
.search-adv .sa-go:hover { filter: brightness(.94); }
.search-adv .sa-reset { background: var(--surface-2, #f1f3f8); color: var(--ink-2, #3a4255); border: 1px solid var(--line); }
.search-adv .sa-reset:hover { background: #e9edf4; }

/* Aktywne filtry — chipy pod inputem wyszukiwarki */
.search-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.search-chips[hidden] { display: none; }
.sf-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 6px 0 12px; height: 30px;
  background: var(--surface-2, #f1f3f8); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2, #3a4255);
}
.sf-chip-txt { display: inline-flex; align-items: center; line-height: 1; }
.sf-x {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; line-height: 0;
  background: #fff; color: var(--muted, #6b7385); cursor: pointer;
  box-shadow: 0 1px 2px rgba(20,26,43,.12); transition: color .12s, background .12s;
}
.sf-x svg { display: block; }
.sf-x:hover { background: var(--red, #e1352b); color: #fff; }
.sf-clear { font-size: 12.5px; font-weight: 600; color: var(--red, #e1352b); background: none; border: 0; cursor: pointer; margin-left: 2px; padding: 4px 2px; }
.sf-clear:hover { text-decoration: underline; }

/* ============ BANNER ============ */
.banner { padding: 22px 0 6px; }
.banner-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-link img {
  width: 100%;
  height: auto;
}

/* ============ THREE-COLUMN ROW ============ */
.content-row { padding: 26px 0; }
.three-col {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: stretch;
}

.block-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}

/* Categories */
.categories {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.cat-list { display: flex; flex-direction: column; }
.cat-item { border-bottom: 1px solid var(--line); }
.cat-item:last-child { border-bottom: none; }

.cat-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 12px 4px;
  text-align: left;
  color: var(--ink);
  transition: color .2s;
}
.cat-head:hover { color: var(--red); }
.cat-icon {
  width: 30px; height: 30px;
  object-fit: contain;
  flex: none;
  opacity: .85;
}
/* Dots icon (Inne) — match the muted tone of the top category bar */
svg.cat-icon { color: var(--muted); opacity: 1; }
.cat-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}
.cat-name small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  font-style: italic;
  color: var(--muted-2);
}
.chev { flex: none; color: var(--muted); transition: transform .25s; }
.cat-item.open .chev { transform: rotate(180deg); }

.subcat {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.cat-item.open .subcat { max-height: 240px; }
.subcat li a {
  display: block;
  padding: 8px 4px 8px 44px;
  font-size: 13px;
  color: #59606e;
  transition: color .2s;
}
.subcat li a:hover { color: var(--red); }
.subcat li a small { color: var(--muted-2); font-style: italic; font-size: 11px; }

/* Seasonal catalogs */
/* Katalogi sezonowe / banery (.catalogs/.catalog-*/.cat-easter/.cat-xmas/.deco*)
   przeniesione do css/seasonal.css — renderowane przez strefę home.seasonal. */

/* ============ PRODUCTS ============ */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
}

/* Breadcrumbs (ścieżka nawigacji) — globalnie, spójnie na każdej stronie.
   Strony prawne/kontakt mają identyczne reguły w swoich plikach (bez konfliktu). */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--navy, var(--ink)); }
.crumb-home { display: inline-flex; }
.crumb-sep { color: var(--muted-2); }
.crumb-current { color: var(--ink); font-weight: 600; }
.products-section { padding: 14px 0 36px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, border-color .25s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #d7dbe3;
}
.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  /* contain — całe zdjęcie widoczne (pion/poziom nie jest ucinane), wyśrodkowane na białym tle. */
  object-fit: contain;
}
.product-flag {
  position: absolute;
  z-index: 2;
  top: 12px; left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 9px;
  border-radius: 4px;
}
.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  min-height: 38px;
}
.btn-view {
  display: block;
  text-align: center;
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.btn-view:hover { background: var(--navy-2); }

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
}
.product-price small { font-size: 11px; font-weight: 700; vertical-align: top; }
.product-actions { display: flex; gap: 6px; }
.act-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: #51596a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.act-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.act-btn.is-active { background: var(--red); color: #fff; border-color: var(--red); }

/* ============ SHOWROOM ============ */
.showroom-section { padding: 10px 0 44px; }
.showroom {
  position: relative;
  display: flex;
  align-items: center;
}
.showroom-viewport { flex: 1; overflow: hidden; }
.showroom-track {
  display: flex;
  gap: 22px;
  width: 100%;
  transition: transform .45s ease;
}
.show-slide {
  margin: 0;
  flex: 0 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
  background: #ddd;
}
.show-slide a { display: block; width: 100%; height: 100%; }
.show-slide .show-zoom { cursor: zoom-in; }

/* Lightbox showroomu */
.lightbox { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  background: rgba(10,14,24,.85); padding: 32px; }
.lightbox[hidden] { display: none; }
.lightbox-fig { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox-fig img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.5); object-fit: contain; }
.lightbox-fig figcaption { color: #fff; font-size: 14px; text-align: center; opacity: .9; }
.lightbox-x { position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s; }
.lightbox-x:hover { background: var(--red, #e1352b); }
.show-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.show-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: background .2s, transform .2s;
}
.show-arrow:hover { background: var(--navy-2); }
.show-prev { left: -10px; }
.show-next { right: -10px; }

.show-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.show-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: #cfd4de;
  transition: background .2s, width .2s;
}
.show-dots button.active { background: var(--navy); width: 22px; border-radius: 5px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy-deep); color: #c8cdd8; margin-top: 10px; }

.feature-bar { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.06); }
.feature-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 22px 22px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.feature svg { color: var(--gold-1); flex: none; }
.feature strong { display: block; font-size: 14px; font-weight: 700; }
.feature span { font-size: 12px; color: #aeb6c6; }

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr 1.4fr;
  gap: 30px;
  padding: 40px 22px;
}
.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: #aeb6c6;
  transition: color .2s;
}
.footer-col ul a:hover { color: #fff; }
.tag-new {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.footer-newsletter p { font-size: 13px; color: #aeb6c6; margin: 0 0 14px; }
.newsletter-form {
  display: flex;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 340px;
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 11px 14px;
  font-size: 13px;
  outline: none;
  color: var(--ink);
}
.newsletter-form button {
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 18px;
  white-space: nowrap;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--red-dark); }

.pay-logos {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.pay-logos img {
  height: 30px;
  width: auto;
  border-radius: 5px;
  background: #fff;
  padding: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span { font-size: 12px; color: #8c93a3; }

/* ============ RESPONSIVE ============ */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.mobile-toggle span {
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu close button + overlay (hidden on desktop) */
.menu-close { display: none; }
.nav-overlay { display: none; }
.hc-nav { display: none; }  /* menu główne w panelu — tylko mobile */

@media (max-width: 1080px) {
  .three-col { grid-template-columns: 260px 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .cat-strip {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .cat-tile { flex: 0 0 92px; }
}

@media (max-width: 860px) {
  .header-controls .btn-account span { display: none; }
  .btn-account { padding: 10px; }
}

@media (max-width: 760px) {
  .mobile-toggle { display: flex; }
  .header-controls {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 340px);
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    padding: 80px 22px 30px;
    box-shadow: -10px 0 40px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 90;
    overflow-y: auto;
  }
  .header-controls.open { transform: translateX(0); }

  .menu-close {
    display: flex;
    position: absolute;
    top: 16px; right: 18px;
    width: 38px; height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--navy);
    transition: background .2s, color .2s, border-color .2s;
  }
  .menu-close:hover { background: var(--red); color: #fff; border-color: var(--red); }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 35, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 85;
  }
  .nav-overlay.open { opacity: 1; visibility: visible; }

  .btn-account { justify-content: center; padding: 12px 18px; }
  .header-controls .btn-account span { display: inline; }
  .icon-btn { width: 100%; height: 46px; justify-content: flex-start; gap: 12px; border-radius: var(--radius-sm); padding: 0 14px; color: var(--ink); }
  .icon-btn svg { flex: none; order: 0; }
  .icon-btn::after { content: attr(aria-label); font-size: 14px; font-weight: 600; order: 1; margin-right: auto; }
  .badge { position: static; order: 2; min-width: 22px; height: 22px; border-radius: 11px; font-size: 12px; }

  /* Mini cart expands inline inside the slide panel */
  .cart-wrap { width: 100%; display: block; }
  .cart-dropdown {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: hidden;
    display: none;
  }
  .cart-wrap.open .cart-dropdown { display: block; visibility: visible; }
  .cart-dropdown::before { display: none; }
  .cart-dd-list { max-height: 260px; }

  .dd { width: 100%; }
  .dd-toggle { width: 100%; justify-content: space-between; }

  /* Hide text-link nav — category icons become the navigation */
  .main-nav { display: none; }

  /* Menu główne w panelu mobilnym (pod koszykiem) */
  .hc-nav { display: flex; flex-direction: column; width: 100%; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
  .hc-nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; color: var(--ink); transition: background .15s, color .15s; }
  .hc-nav a:hover { background: var(--bg); color: var(--red); }

  /* Ikony kategorii jako siatka, pod nimi wyszukiwarka. Flex-dzieckiem .container
     jest .search-wrap (nie .search-wide) — dlatego odstęp ustawiamy na nim. */
  .category-bar { border-top: none; padding-top: 14px; }
  .category-bar .container { display: flex; flex-direction: column; }
  .search-wrap { margin-top: 20px; }
  .search-wide { margin-bottom: 18px; }
  .cat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }
  .cat-tile { flex: none; padding: 10px 4px; }

  /* Hide left sidebar so categories don't duplicate the icon grid */
  .categories { display: none; }

  .three-col { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }

  /* Mobile: karuzela pokazuje 1 kafelek naraz (perView=1); slajdy przewija JS strzałkami/kropkami.
     NIE ukrywamy slajdów 2+ — inaczej drugie zdjęcie nigdy nie wjedzie w kadr. */
  .show-dots { display: flex; }

  .feature-inner { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .cat-strip { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
  .cat-tile img, .cat-tile svg { width: 36px; height: 36px; }
  .cat-tile span { font-size: 11px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature-inner { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .logo img { height: 38px; }

  /* Kafelka produktu na mobile — niższa i bardziej zwarta:
     • nazwa tuż pod miniaturką, cena podciągnięta wyżej (zaraz pod nazwą),
     • „Zobacz produkt" jako pełnoszeroki pasek wtopiony w dolną krawędź karty
       (górne narożniki proste, dolne zaokrąglone — przycina je overflow:hidden karty). */
  .product-body { padding: 6px 13px 0; gap: 5px; }
  .product-name { min-height: 0; margin: 0 0 6px; }  /* zeruj domyślne marginesy <h3>; +6px odstępu nazwy od ceny */
  .product-foot { order: 2; flex-wrap: wrap; gap: 10px; }
  .product-price { font-size: 16px; }
  .product-actions { margin-left: auto; margin-bottom: 7px; }  /* +7px odstępu ikon koszyka/ulubione od dolnego paska „Zobacz produkt" */
  .btn-view {
    order: 3;
    margin: auto -13px 0;  /* auto u góry → przycisk na sam dół; boki kasują padding ciała */
    padding: 12px;
    border-radius: 0;      /* dolne narożniki zaokrągla overflow:hidden karty */
  }
}

/* ============================================================
   FLOATING CONTACT WIDGET + CHAT
   ============================================================ */
.contact-widget {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Back-to-top button — sits below the icons, appears on scroll */
.cw-top {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 27, 46, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.8);
  pointer-events: none;
  transition: opacity .25s, transform .25s, visibility .25s, background .2s, color .2s;
}
.cw-top svg { width: 22px; height: 22px; }
.contact-widget.show-top .cw-top {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.contact-widget.show-top .cw-top:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
/* Hide the arrow while the chat panel is open */
.contact-widget.chat-open .cw-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Vertical action buttons */
.cw-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cw-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 27, 46, .22);
  transition: transform .2s, box-shadow .2s, opacity .25s;
}
.cw-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 27, 46, .28); }
.cw-btn svg { width: 28px; height: 28px; }
.cw-wa { background: #25d366; }
.cw-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.cw-chat { background: var(--navy); }
.cw-chat svg { width: 26px; height: 26px; }

/* Kropka statusu na przycisku czatu — JEDEN element z białym obrysem; kolor wg stanu.
   Domyślnie szara (offline); zielona gdy .is-online; czerwona gdy .has-reply. */
.cw-chat::before {
  content: "";
  position: absolute;
  top: 5px; right: 5px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #9aa1ad;              /* offline (domyślnie) */
  border: 2px solid #fff;
  box-sizing: border-box;
  z-index: 2;
}
.cw-chat.is-online::before { background: #34d058; }   /* konsultant online */
.cw-chat.has-reply::before { background: #e0301e; }   /* nieodczytana odpowiedź */

/* Pierścień pulsujący POD kropką (transparentny środek) — tylko online / nowa odpowiedź. */
.cw-chat::after {
  content: "";
  position: absolute;
  top: 5px; right: 5px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: transparent;
  z-index: 1;
}
.cw-chat.is-online::after { animation: cwPulse 2.2s infinite; }
.cw-chat.has-reply::after { animation: cwPulseRed 1s infinite; }
@keyframes cwPulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 208, 88, .5); }
  70%  { box-shadow: 0 0 0 11px rgba(52, 208, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 208, 88, 0); }
}
@keyframes cwPulseRed {
  0%   { box-shadow: 0 0 0 0 rgba(224, 48, 30, .6); }
  70%  { box-shadow: 0 0 0 11px rgba(224, 48, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 48, 30, 0); }
}

/* Tooltip on hover */
.cw-btn[data-tip]:hover::after,
.cw-chat[data-tip]:hover::after { animation: none; }
.cw-tip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: var(--shadow);
}
.cw-tip::after {
  content: "";
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--navy);
}
.cw-btn:hover .cw-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Hide WA + IG when chat is open */
.contact-widget.chat-open .cw-wa,
.contact-widget.chat-open .cw-ig {
  opacity: 0;
  transform: scale(.4);
  pointer-events: none;
  width: 0; height: 0; margin: 0;
}
.contact-widget.chat-open .cw-chat { transform: scale(0); opacity: 0; pointer-events: none; }

/* Chat panel */
.cw-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(366px, calc(100vw - 36px));
  height: 0;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(20, 27, 46, .28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.contact-widget.chat-open .cw-panel {
  /* Dopasuj wysokość do treści — na wysokim ekranie cały widok czatu bez paska
     przewijania; scroll dopiero gdy zabraknie miejsca (niski ekran/długa rozmowa). */
  height: auto;
  min-height: min(440px, calc(100vh - 110px));
  max-height: min(720px, calc(100vh - 110px));
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--navy);
  color: #fff;
  flex: none;
}
.cw-head-info { display: flex; align-items: center; gap: 12px; }
.cw-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e6df0, #18408f);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
}
.cw-avatar svg { width: 24px; height: 24px; }
.cw-avatar::after {
  content: "";
  position: absolute;
  right: -1px; bottom: -1px;
  width: 12px; height: 12px;
  background: #34d058;
  border: 2px solid var(--navy);
  border-radius: 50%;
}
.cw-head strong { display: block; font-size: 14.5px; font-weight: 700; }
.cw-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #aeb9d6; }
.cw-status .cw-dot { width: 7px; height: 7px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 3px rgba(53,208,127,.25); flex: none; }
.cw-status.is-off .cw-dot { background: #9aa1ad; box-shadow: none; }
.cw-close {
  width: 32px; height: 32px;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  font-size: 20px;
  line-height: 1;
  transition: background .2s;
}
.cw-close:hover { background: rgba(255,255,255,.25); }

.cw-body {
  flex: 1;
  min-height: 0;   /* pozwala przewijać treść dopiero po osiągnięciu max wysokości panelu */
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 18% 10%, rgba(46,109,240,.05), transparent 40%),
    var(--bg);
}
.cw-msg {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  border-radius: 14px;
  word-wrap: break-word;
}
.cw-bot {
  align-self: flex-start;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.cw-user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.cw-intro { display: flex; flex-direction: column; gap: 12px; }
.cw-topics { display: flex; flex-wrap: wrap; gap: 7px; }
.cw-topic {
  border: 1px solid var(--line, #e3e6ee); background: #fff; color: var(--navy, #1a2233);
  border-radius: 20px; padding: 7px 13px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.cw-topic:hover { background: var(--soft-blue, #eef2ff); border-color: var(--navy, #1a2233); }
.cw-topic.is-active { background: var(--navy, #1a2233); color: #fff; border-color: var(--navy, #1a2233); }
.cw-form { display: flex; flex-direction: column; gap: 10px; }
.cw-form input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.cw-form input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,34,54,.08); }
.cw-form button {
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s;
}
.cw-form button:hover { background: var(--navy-2); }

/* Typing indicator */
.cw-receipt { align-self: flex-end; font-size: 10.5px; color: var(--muted-2); margin: -6px 4px 2px; }
.cw-typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.cw-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: cwBounce 1.2s infinite;
}
.cw-typing span:nth-child(2) { animation-delay: .2s; }
.cw-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cwBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Hidden states must beat the author display rules above */
.cw-input[hidden],
.cw-intro[hidden] { display: none !important; }

/* Input bar */
.cw-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}
.cw-attach {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  color: var(--muted, #6b7385); cursor: pointer; transition: background .15s, color .15s;
}
.cw-attach:hover { background: var(--soft-blue, #eef2ff); color: var(--navy, #1a2233); }
.cw-attach svg { width: 19px; height: 19px; }
.cw-att { display: block; max-width: 190px; max-height: 190px; border-radius: 12px; margin-top: 2px; cursor: zoom-in; }
.cw-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(10,14,24,.85); padding: 24px; }
.cw-lightbox.is-open { display: flex; }
.cw-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: zoom-out; }
.cw-lb-close { position: absolute; top: 16px; right: 20px; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .15s; }
.cw-lb-close:hover { background: rgba(255,255,255,.3); }
.cw-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.cw-input input:focus { border-color: var(--navy); }
.cw-input button {
  width: 44px; height: 44px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.cw-input button:hover { background: var(--navy-2); }
.cw-input button svg { width: 20px; height: 20px; }

/* ---- Mobile: WhatsApp + chat move to the top next to the hamburger; Instagram hidden ---- */
@media (max-width: 760px) {
  .contact-widget {
    top: 17px;
    bottom: auto;
    right: 74px;
    z-index: 120;
  }
  /* Lay the two icons in a row beside the hamburger */
  .cw-actions { flex-direction: row; align-items: center; gap: 10px; }
  /* Instagram is hidden on narrow screens */
  .cw-ig { display: none; }
  /* Back-to-top arrow belongs to the bottom flow, not the header — hide it here */
  .cw-top { display: none; }

  .cw-btn.cw-wa,
  .cw-btn.cw-chat {
    width: 40px;
    height: 40px;
    box-shadow: 0 3px 10px rgba(20, 27, 46, .18);
  }
  .cw-wa svg, .cw-chat svg { width: 22px; height: 22px; }
  .cw-chat::before, .cw-chat::after { top: 3px; right: 3px; width: 9px; height: 9px; }
  .cw-tip { display: none; }

  /* Chat panel anchors to the bottom of the viewport as a sheet */
  .cw-panel {
    position: fixed;
    top: auto;
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    transform-origin: bottom center;
  }
  .contact-widget.chat-open .cw-panel { height: auto; min-height: min(46vh, 340px); max-height: 80vh; }

  /* Hide the floating chat trigger while the mobile menu is open */
  body:has(.header-controls.open) .contact-widget { opacity: 0; pointer-events: none; }
}

@media (max-width: 480px) {
  .cw-panel { right: 14px; left: 14px; bottom: 14px; }
}

/* ===== Slider strony (Wygląd i motywy) ===== */
.fw-slider .fw-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fw-slider--footer { margin: 8px 0 28px; }
.fw-slider-track { display: flex; transition: transform .5s ease; }
.fw-slide { flex: 0 0 100%; min-width: 100%; }
.fw-slide img { width: 100%; height: auto; display: block; }
.fw-slide .banner-link { display: block; border-radius: 0; overflow: hidden; box-shadow: none; }
.fw-slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: #1c2430; font-size: 24px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .2s; z-index: 2;
}
.fw-slider:hover .fw-slider-nav { opacity: 1; }
.fw-slider-nav.prev { left: 14px; }
.fw-slider-nav.next { right: 14px; }
.fw-slider-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; gap: 7px; justify-content: center; z-index: 2;
}
.fw-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s, background .2s;
}
.fw-dot.is-active { background: #fff; width: 22px; border-radius: 5px; }
@media (max-width: 640px) { .fw-slider-nav { display: none; } }

/* ====== Strefy banerów / modułów („Banery i moduły") ====== */
.fw-zone { margin: 18px 0; }
.fw-zone--v { margin: 14px 0; }
.fw-zone-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; color: var(--ink); }
.fw-zone-block { margin-bottom: 14px; }
.fw-zone-block:last-child { margin-bottom: 0; }
.fw-zone-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.fw-zone-css { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 28px; border-radius: 12px; overflow: hidden; }
.fw-zone-css .fwz-h { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.15; }
.fw-zone-css .fwz-p { margin: 0; font-size: 15px; opacity: .92; }
.fw-zone-css .fwz-btn { margin-top: 4px; background: #fff; color: #15233b; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 8px; text-decoration: none; }
.fw-zone-module .product-grid { margin: 0; }
@media (max-width: 560px) { .fw-zone-css { padding: 18px; } .fw-zone-css .fwz-h { font-size: 20px; } }
