﻿/* =====================================================================
   Sklep
   ===================================================================== */

/* ── Design Tokens ─────────────────────────────────────────────────── */
:root {
  /* Kolory */
  --topbar-bg:   #060f1c;
  --white:       #ffffff;
  --cream:       #eef6ff;
  --bg:          #f4f9ff;
  --green:       #0071CE;
  --green-dark:  #005aac;
  --green-light: #daeeff;
  --ink:         #0a1628;
  --ink-2:       #243654;
  --muted:       #4f6080;
  --border:      #cce1f7;
  --border-2:    #aed0f0;
  --red:         #c8202d;
  --sale:        #c8202d;
  --new-green:   #0d6efd;

  /* Zaokrąglenia */
  --btn-radius:  8px;
  --card-radius: 12px;

  /* Typografia */
  --serif:  'Poppins', system-ui, sans-serif;
  --sans:   'Poppins', system-ui, sans-serif;

  /* Layout */
  --container:  1680px;
  --pad:        40px;

  /* Header heights */
  --h-top:   38px;
  --h-main:  96px;
  --h-nav:   46px;
  --h-total: 180px;  /* suma */
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scrollbar-gutter: stable; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  padding-top: var(--h-total);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--sans); }
ul, ol { list-style: none; }

/* ── Container ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* =====================================================================
   HEADER – 3 PASY jak ePlafoniera
   ===================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  transition: transform .4s ease, box-shadow .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }

/* ── Pas 1: Topbar ─────────────────────────────────────────────────── */
.header-top {
  background: var(--topbar-bg);
  height: var(--h-top);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: height .35s ease, opacity .3s ease;
}
.site-header.is-compact .header-top { height: 0; opacity: 0; }

.header-top .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 1rem;
}
.top-contacts {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.top-contacts a {
  font-size: .72rem;
  color: rgba(255,255,255,.72);
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s;
}
.top-contacts a:hover { color: #fff; }
.top-contacts i { font-size: .65rem; }

.top-promo {
  text-align: center;
}
.top-promo a {
  font-size: .72rem;
  color: rgba(255,255,255,.9);
  font-weight: 500;
  letter-spacing: .2px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.top-promo a:hover { color: #fff; border-color: #fff; }

.top-social {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
}
.top-social a {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.top-social a:hover { color: #fff; }

/* ── Pas 2: Główny header – logo + search + akcje ──────────────────── */
.header-main {
  background: var(--white);
  height: var(--h-main);
  border-bottom: 1px solid var(--border);
  transition: height .3s ease;
}
.site-header.is-compact .header-main {
  height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-main .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--ink);
  padding: .3rem;
  flex-shrink: 0;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
  transition: height .3s ease;
}
.site-header.is-compact .header-logo img { height: 40px; }

/* Search bar – lewa strona obok logo, zaokrąglona */
.header-search {
  flex: 1;
  max-width: 520px;
}
.header-search form {
  display: flex;
  align-items: center;
  background: #f5f5f2;
  border: 1.5px solid #e0dfd8;
  border-radius: 32px;
  overflow: hidden;
  height: 50px;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-compact .header-search form { height: 40px; }
.header-search form:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,113,206,.1);
  background: #fff;
}
.header-search input {
  flex: 1;
  background: none;
  border: none;
  padding: 0 1rem 0 1.5rem;
  font-size: .9rem;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.header-search input::placeholder { color: #aaaaa3; }
.header-search button {
  background: var(--green);
  border: none;
  padding: 0 1.4rem;
  color: #fff;
  font-size: 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.header-search button:hover { background: var(--green-dark); }

/* Akcje po prawej */
.header-actions {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-shrink: 0;
  margin-left: auto;
}
.h-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  background: none;
  border: none;
  padding: .5rem 1rem;
  color: var(--ink-2);
  border-radius: 4px;
  transition: background .2s;
  position: relative;
}
.h-action-btn:hover { background: #f4f4f2; }
.h-action-btn i { font-size: 1.45rem; }
.h-action-btn span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--ink-2);
  white-space: nowrap;
}
.site-header.is-compact .h-action-btn span { display: none; }

.cart-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  min-width: 17px;
  height: 17px;
  font-size: .62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Pas 3: Nawigacja kategorii ─────────────────────────────────────── */
.header-nav {
  background: var(--white);
  height: var(--h-nav);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: height .3s ease, opacity .3s ease;
}
.site-header.is-compact .header-nav { height: 0; opacity: 0; }

.header-nav .container {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-item {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  letter-spacing: .1px;
}
.nav-item:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-item.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.nav-item.is-special { color: var(--red); }
.nav-item.is-special:hover { border-bottom-color: var(--red); }

/* =====================================================================
   MOBILE MENU
   ===================================================================== */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: all; }

.mobile-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  background: var(--white);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.25rem;
  border-bottom: 2px solid var(--green);
  flex-shrink: 0;
  min-height: 62px;
  background: var(--topbar-bg);
}
.drawer-close {
  background: rgba(255,255,255,.08); border: none;
  font-size: 1.1rem; color: rgba(255,255,255,.75);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.drawer-close:hover, .drawer-close:active { background: rgba(255,255,255,.18); color: #fff; }

.drawer-search {
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-search form {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 32px;
  padding: 0 1rem;
  height: 44px;
}
.drawer-search form i { color: var(--muted); font-size: .9rem; flex-shrink: 0; }
.drawer-search form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: .9rem;
  font-family: var(--sans);
  color: var(--ink);
}
.drawer-search form input::placeholder { color: #aaaaa3; }

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: .75rem 0;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  border-left: 4px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  min-height: 62px;
  letter-spacing: -.01em;
}
.drawer-nav-btn {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  border-left: 4px solid transparent;
  width: 100%;
  min-height: 62px;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  letter-spacing: -.01em;
}
.drawer-nav a:hover, .drawer-nav a:active,
.drawer-nav-btn:hover, .drawer-nav-btn:active {
  background: var(--cream);
  color: var(--green);
  border-left-color: var(--green);
}
.drawer-nav a.special { color: var(--red); font-weight: 600; }
.drawer-nav .drawer-sep { height: 1px; background: var(--border); margin: .5rem 1.5rem; }
.drawer-nav a i,
.drawer-nav button i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  color: var(--green);
  font-size: .85rem;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.drawer-nav a:hover i, .drawer-nav a:active i,
.drawer-nav button:hover i, .drawer-nav button:active i {
  background: var(--green);
  color: #fff;
}
.drawer-fav-link {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--red) !important;
  border-left: 4px solid transparent;
  transition: background .15s, border-color .15s;
  min-height: 62px;
  letter-spacing: -.01em;
  cursor: pointer;
}
.drawer-fav-link:hover { background: #fff5f5; border-left-color: var(--red); }

.drawer-foot {
  padding: 1rem 1.5rem 1.4rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
}
.drawer-foot a {
  display: flex; align-items: center; gap: .6rem;
  font-size: .82rem; color: var(--muted);
  margin-bottom: .6rem;
  transition: color .2s;
}
.drawer-foot a:last-child { margin-bottom: 0; }
.drawer-foot a:hover { color: var(--ink); }
.drawer-foot i { font-size: .78rem; color: var(--green); }

/* ── Filter FAB (mobile only) ──────────────────────────────────────── */
.filter-fab {
  display: none;
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 800;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: 1.15rem;
  box-shadow: 0 4px 18px rgba(37,157,245,.45);
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.filter-fab:hover { transform: scale(1.07); box-shadow: 0 6px 22px rgba(37,157,245,.55); }
.filter-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.filter-overlay-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.5);
  z-index: 949;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.filter-overlay-backdrop.is-open { opacity: 1; pointer-events: all; }
.filter-overlay-backdrop.is-open { opacity: 1; }

.filter-panel-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  padding: .4rem;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.filter-panel-close:hover { background: var(--bg); color: var(--ink); }

/* =====================================================================
   FAVORITES
   ===================================================================== */

/* Heart button on product cards (positioned over top-right of card) */
.fav-btn {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 10;
  background: rgba(255,255,255,.95);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  opacity: 0;
  transition: opacity .2s, color .2s, transform .15s, background .2s;
}
.product-card:hover .fav-btn,
.fav-btn.is-fav { opacity: 1; }
.fav-btn:hover { transform: scale(1.12); color: var(--red); }
.fav-btn.is-fav { color: var(--red); background: #fff; }
.fav-btn i { pointer-events: none; }

@media (max-width: 768px) {
  .fav-btn { opacity: 1; width: 30px; height: 30px; font-size: .8rem; }
}

/* Badge on header heart icon */
.fav-header-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--red);
  color: #fff;
  font-size: .55rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #fff;
  line-height: 1;
}

/* Wishlist button on product detail page */
.btn-wishlist {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, transform .15s;
}
.btn-wishlist:hover { border-color: var(--red); color: var(--red); transform: scale(1.08); }
.btn-wishlist.is-fav { border-color: var(--red); color: var(--red); background: #fff5f5; }
.btn-wishlist i { pointer-events: none; }

/* Toast notification */
#fav-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: .6rem 1.5rem;
  border-radius: 32px;
  font-size: .82rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  white-space: nowrap;
}
#fav-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Fav sidebar */
.fav-sidebar {
  position: fixed; inset: 0;
  z-index: 1200;
  pointer-events: none;
}
.fav-sidebar.is-open { pointer-events: all; }
.fav-sidebar.is-open .cart-overlay { opacity: 1; }
.fav-sidebar.is-open .fav-panel   { transform: translateX(0); }

.fav-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 24px rgba(0,0,0,.1);
}

/* Lista produktów w panelu ulubionych */
.fav-list { display: flex; flex-direction: column; gap: .8rem; }
.fav-item {
  display: flex;
  gap: 1rem;
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  position: relative;
}
.fav-item-img {
  width: 68px; height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}
.fav-item-img img { width: 100%; height: 100%; object-fit: cover; }
.fav-item-info { flex: 1; min-width: 0; }
.fav-item-name {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .2rem;
}
.fav-item-name a { color: inherit; }
.fav-item-name a:hover { color: var(--green); }
.fav-item-price { font-size: .82rem; color: var(--green); font-weight: 700; }
.fav-item-remove {
  background: none; border: none;
  color: var(--muted); font-size: .85rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.fav-item-remove:hover { background: #fef2f2; color: var(--red); }
.fav-foot {
  padding: 1rem 1.5rem 1.4rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Ulubione page */
.fav-page-top {
  background: linear-gradient(135deg, var(--topbar-bg) 0%, #0d2044 100%);
  padding: 3rem var(--pad);
  color: #fff;
  text-align: center;
}
.fav-page-top h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: .4rem; }
.fav-page-top p  { font-size: .92rem; color: rgba(255,255,255,.65); }

.fav-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
}
.fav-empty i { font-size: 4rem; color: var(--border); margin-bottom: 1.5rem; display: block; }
.fav-empty h2 { font-size: 1.3rem; font-weight: 600; color: var(--ink-2); margin-bottom: .6rem; }
.fav-empty p  { font-size: .9rem; margin-bottom: 1.8rem; }

/* =====================================================================
   CART SIDEBAR
   ===================================================================== */
.cart-sidebar {
  position: fixed; inset: 0;
  z-index: 1200;
  pointer-events: none;
}
.cart-sidebar.is-open { pointer-events: all; }

.cart-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .3s ease;
}
.cart-sidebar.is-open .cart-overlay { opacity: 1; }

.cart-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 24px rgba(0,0,0,.1);
}
.cart-sidebar.is-open .cart-panel { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-head h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .2px;
}
.cart-close-btn {
  background: none; border: none;
  font-size: 1rem; color: var(--muted);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  transition: background .2s;
}
.cart-close-btn:hover { background: var(--bg); color: var(--ink); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 1rem;
  gap: .8rem;
  color: var(--muted);
}
.cart-empty i { font-size: 2.5rem; color: var(--border); }
.cart-empty p { font-size: .9rem; }

.cart-list { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  position: relative;
}
.cart-item-img {
  width: 72px; height: 72px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: .85rem; font-weight: 500; margin-bottom: .2rem; line-height: 1.3; }
.cart-item-price { font-size: .88rem; color: var(--green); font-weight: 600; }
.cart-price-old { font-size: .78rem; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: .25rem; }
.cart-price-new { font-size: .88rem; color: var(--green); font-weight: 700; }
.cart-item-savings { font-size: .72rem; color: #f59e0b; font-weight: 600; margin-top: .1rem; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
}
.cart-item-qty button {
  width: 24px; height: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1px;
  font-size: .9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.cart-item-qty button:hover { background: var(--border); }
.cart-item-qty span { font-size: .85rem; font-weight: 600; min-width: 24px; text-align: center; }
.cart-item-remove {
  position: absolute;
  top: .6rem; right: .6rem;
  background: none; border: none;
  color: #ccc; font-size: .8rem;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: color .2s;
}
.cart-item-remove:hover { color: var(--red); }

.cart-foot {
  padding: 1.3rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.cart-totals { margin-bottom: 1rem; }
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: .86rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
}
.cart-row.total {
  border: none;
  padding-top: .8rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}
.btn-to-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  padding: .95rem 1.5rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}
.btn-to-checkout:hover { background: var(--green-dark); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.8rem;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-green:hover { background: var(--green); color: #fff; }

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); }

/* =====================================================================
   HERO SLIDER – split layout: jasna lewa + crossfade zdjęć po prawej
   ===================================================================== */
/* Logo: rozmiar z panelu (desktop/mobile) + wariant mobilny */
.header-logo .brand-img { height: var(--logo-h, 66px); width: auto; }
.drawer-head .brand-img { height: 34px; width: auto; }
.header-logo .logo-mobile { display: none; }
@media (max-width: 768px) {
  .header-logo .brand-img { height: var(--logo-h-mobile, 40px); }
  .header-logo .logo-desktop { display: none; }
  .header-logo .logo-mobile { display: inline-block; }
}

.hero-slider {
  position: relative;
  overflow: hidden;
  height: 480px;
  background: linear-gradient(135deg, #fff5fa 0%, #f4f8ff 100%);
  display: flex;
}

/* Prawa strona: warstwa obrazków */
.hero-img-layer {
  position: absolute;
  right: 0;
  top: 0; bottom: 0;
  width: 48%;
  overflow: hidden;
}

/* Miękki gradient po lewej krawędzi panelu zdjęcia */
.hero-img-layer::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 180px;
  background: linear-gradient(90deg, #fff5fa, transparent);
  z-index: 2;
  pointer-events: none;
}

.hero-img-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .85s ease;
}
.hero-img-item.is-active { opacity: 1; }
.hero-img-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s ease;
}
.hero-img-item.is-active img { transform: scale(1.04); }

/* Slajdy tekstowe – lewa strona, wjeżdżają z przesunięciem */
.hero-slide {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 60%;
  display: flex;
  align-items: center;
  z-index: 3;
  opacity: 0;
  transform: translateX(-18px);
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

/* Panel tekstowy */
.slide-copy {
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-right: 2rem;
  padding-left: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  max-width: 560px;
  width: 100%;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #d4478a;
  margin-bottom: 1.2rem;
}
.slide-tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #d4478a;
  border-radius: 2px;
  flex-shrink: 0;
}

.slide-copy h1,
.slide-copy h2 {
  font-family: var(--sans);
  font-size: clamp(1.55rem, 2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.3px;
  color: var(--ink);
  margin-bottom: 1rem;
}
.slide-copy h1 em,
.slide-copy h2 em {
  font-style: normal;
  font-weight: 300;
  color: var(--green);
}

.slide-copy p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 370px;
  margin-bottom: 2rem;
}

/* CTA */
.slide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.slide-copy .btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
  padding: .85rem 2rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .4px;
  border-radius: var(--btn-radius, 8px);
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}
.slide-copy .btn-hero-primary:hover {
  background: #0f80d8;
  border-color: #0f80d8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,113,206,.3);
}
.slide-copy .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
  padding: .85rem 1.7rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all .2s;
  text-decoration: none;
}
.slide-copy .btn-hero-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Strzałki – w panelu zdjęcia */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  color: var(--ink-2);
  z-index: 10;
  transition: all .2s;
}
.slider-arrow:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,113,206,.35);
}
.slider-arrow-prev { left: 1.5rem; }
.slider-arrow-next { right: 1.5rem; }

/* Dots nawigacji */
.hero-slider > .slider-nav {
  position: absolute;
  bottom: 1.6rem;
  left: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.slider-dot-btn {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #d1d5db;
  padding: 0;
  transition: all .3s ease;
  flex-shrink: 0;
}
.slider-dot-btn.is-active {
  background: var(--green);
  width: 22px;
  border-radius: 4px;
}

/* =====================================================================
   CATEGORY STRIP – poziomy pasek kategorii z kółkami
   ===================================================================== */
.cat-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0;
}
.cat-strip-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-strip-row::-webkit-scrollbar { display: none; }

.cat-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  padding: .5rem 1.6rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform .2s;
}
.cat-strip-item:hover { transform: translateY(-3px); }
.cat-strip-item:hover .cat-strip-img { border-color: var(--green); }
.cat-strip-item:hover .cat-strip-name { color: var(--green); }

.cat-strip-item.is-active .cat-strip-img {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37,157,245,.18);
}
.cat-strip-item.is-active .cat-strip-name {
  color: var(--green);
  font-weight: 600;
}

.cat-strip-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--border);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
  flex-shrink: 0;
}
.cat-strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-strip-name {
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
  transition: color .2s;
  white-space: nowrap;
}

/* =====================================================================
   SEKCJE – wspólne style
   ===================================================================== */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }

.section-head {
  margin-bottom: 2.5rem;
}
.section-head.with-link {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.eyebrow {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: .6rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.section-title em { font-style: italic; font-weight: 400; }
.section-link {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: color .2s, text-decoration-color .2s;
  white-space: nowrap;
  margin-bottom: .3rem;
}
.section-link:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* =====================================================================
   KARTY PRODUKTÓW
   ===================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--card-radius, 14px);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(10,22,40,.07);
  transition: box-shadow .28s ease, transform .28s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 10px 36px rgba(10,22,40,.13);
  transform: translateY(-4px);
  z-index: 2;
}
.product-link { display: flex; flex-direction: column; flex: 1; color: inherit; }

/* Zdjęcie */
.product-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
  border-radius: 14px 14px 0 0;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .4s ease;
}
.product-card:hover .product-img .img-main { transform: scale(1.04); }

.product-img .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.product-img .img-hover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (hover: hover) {
  .product-card.has-hover-img:hover .img-main { opacity: 0; transform: scale(1.04); }
  .product-card.has-hover-img:hover .img-hover { opacity: 1; }
}

/* Badge */
.p-badge {
  position: absolute;
  top: .8rem; left: .8rem;
  padding: .25rem .65rem;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  border-radius: 20px;
  z-index: 2;
}
.p-badge.bestseller { background: var(--ink); color: #fff; }
.p-badge.new        { background: var(--green); color: #fff; }
.p-badge.sale       { background: var(--sale); color: #fff; }

/* Info */
.product-info {
  padding: 1rem 1rem .8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.p-category {
  font-size: .66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: .3rem;
}
.p-name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: .5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
}
.price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

/* Przycisk dodania – zawsze widoczny na dole karty */
/* Warianty na kafelku */
.p-variants { display: flex; align-items: center; gap: .5rem; padding: 0 1rem .2rem; text-decoration: none; }
.p-variants-dots { display: flex; }
.p-variant-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background-size: cover; background-position: center; background-color: var(--bg-secondary, #f3f4f6);
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-color, #e5e7eb);
  margin-left: -6px;
}
.p-variant-dot:first-child { margin-left: 0; }
.p-variants-label { font-size: .72rem; color: var(--text-muted, #6b7280); font-weight: 600; }

.quick-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  background: var(--green-light);
  color: var(--green-dark);
  border: none;
  border-radius: 0 0 14px 14px;
  padding: .7rem 1rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .22s ease, color .22s ease;
}
.quick-add-btn:hover,
.product-card:hover .quick-add-btn {
  background: var(--green);
  color: #fff;
}
.price-old {
  font-size: .82rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: .4rem;
}
.price-sale { color: var(--sale); }
.btn-add-to-cart {
  display: none; /* używamy quick-add-btn zamiast */
}

/* Brak produktów */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
  background: var(--white);
}
.no-products i { font-size: 2.5rem; margin-bottom: 1rem; color: var(--border); display: block; }
.no-products h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-bottom: .5rem; color: var(--ink-2); }

/* =====================================================================
   SEKCJA O NAS
   ===================================================================== */
#about-component {
  min-height: 560px;
}

.about-section {
  background: var(--cream);
  padding: 5.5rem 0;
}
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* Strona ze zdjęciem */
.about-img-side {
  position: relative;
  padding: 2rem 0 2rem 2rem;
}
.about-img-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% - 2rem);
  background: var(--green-light);
  border-radius: 18px;
  z-index: 0;
}
.about-main-img {
  position: relative;
  z-index: 1;
  aspect-ratio: 3/2;
  max-height: 380px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10,22,40,.14);
}
.about-main-img img { width: 100%; height: 100%; object-fit: cover; }

.about-float-badge {
  position: absolute;
  z-index: 2;
  bottom: 2.5rem;
  right: -1.5rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(10,22,40,.13);
  padding: .85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.about-badge-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.about-float-badge strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.about-float-badge span {
  font-size: .72rem;
  color: var(--muted);
}

/* Strona z tekstem */
.about-text-side .eyebrow { margin-bottom: .6rem; }
.about-text-side .section-title { margin-bottom: 1.4rem; }
.about-text-side p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* Statystyki w poziomie */
.about-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 2.2rem 0 2.2rem;
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 2px 12px rgba(10,22,40,.07);
}
.about-stat {
  flex: 1;
  text-align: center;
}
.about-stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: .3rem;
}
.about-stat span {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  font-weight: 500;
}
.about-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Przyciski */
.about-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.about-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: .8rem 1.8rem;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.about-btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.about-btn-ghost {
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s;
}
.about-btn-ghost:hover { color: var(--green); }

/* =====================================================================
   STOPKA
   ===================================================================== */
.site-footer {
  background: var(--footer-bg, var(--topbar-bg));
  color: var(--footer-text, rgba(255,255,255,.7));
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo-img {
  height: 38px;
  width: auto;
  margin-bottom: .9rem;
}
.footer-brand-text {
  font-size: .82rem;
  line-height: 1.75;
  color: var(--footer-text, rgba(255,255,255,.45));
  opacity: .85;
  max-width: 240px;
  margin-bottom: 1.4rem;
}
.footer-social {
  display: flex;
  gap: .7rem;
}
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  color: var(--footer-text, rgba(255,255,255,.5));
  transition: all .2s;
}
.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.footer-col h3 {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--footer-text, rgba(255,255,255,.9));
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a {
  font-size: .82rem;
  color: var(--footer-text, rgba(255,255,255,.45));
  opacity: .8;
  transition: color .2s, opacity .2s;
}
.footer-links a:hover { opacity: 1; }
.footer-contact-list { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact-list li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .82rem; color: var(--footer-text, rgba(255,255,255,.45)); opacity: .85;
}
.footer-contact-list i { font-size: .72rem; color: var(--green); width: 12px; }
.footer-contact-list a { color: var(--footer-text, rgba(255,255,255,.45)); transition: opacity .2s; }
.footer-contact-list a:hover { opacity: 1; }
.newsletter-label {
  font-size: .8rem;
  color: var(--footer-text, rgba(255,255,255,.45));
  opacity: .85;
  line-height: 1.7;
  margin-bottom: .7rem;
}
.newsletter-form {
  display: flex;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 2px;
  overflow: hidden;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: none;
  padding: .7rem .9rem;
  font-family: var(--sans);
  font-size: .82rem;
  color: #fff;
  outline: none;
  min-width: 0;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-form button {
  background: var(--green);
  border: none;
  padding: .7rem 1rem;
  color: #fff;
  font-size: .85rem;
  flex-shrink: 0;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--green-dark); }
.footer-bottom-bar {
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copy {
  font-size: .75rem;
  color: var(--footer-text, rgba(255,255,255,.7));
  opacity: .85;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: .75rem;
  color: var(--footer-text, rgba(255,255,255,.7));
  opacity: .85;
  transition: opacity .2s;
}
.footer-bottom-links a:hover { opacity: 1; }

/* =====================================================================
   STRONA PRODUKTÓW
   ===================================================================== */
.products-page-wrap { padding: 2.5rem 0 5rem; }
.products-page-top {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  margin-bottom: 0;
}
.products-page-top h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .25rem;
}
.products-page-top p { font-size: .85rem; color: var(--muted); }

/* Category tabs */
.cat-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--white);
  margin-bottom: 2.5rem;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: .8rem 1.2rem;
  font-size: .82rem;
  font-weight: 400;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.cat-tab:hover { color: var(--ink); }
.cat-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }

.products-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding-top: 0;
  align-items: start;
}

/* Filter sidebar */
.filters-sidebar {
  border: 1px solid var(--border);
  border-radius: 2px;
  position: sticky;
  top: calc(var(--h-total) + 1rem);
}
.filter-group {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; }
.filter-group-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-reset {
  background: none;
  border: 1px solid var(--border);
  padding: .25rem .5rem;
  font-size: .68rem;
  font-family: var(--sans);
  color: var(--muted);
  border-radius: 1px;
  cursor: pointer;
  transition: all .2s;
}
.filter-reset:hover { border-color: var(--ink); color: var(--ink); }
.filter-options { display: flex; flex-direction: column; gap: .5rem; }
.filter-check {
  display: flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  padding: .15rem 0;
}
.filter-check input[type="checkbox"],
.filter-check input[type="radio"] {
  width: 14px; height: 14px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-check span { font-size: .83rem; color: var(--ink-2); }
.filter-check.is-active span { color: var(--green); font-weight: 600; }
.cat-count { font-size: .72rem; color: var(--muted); margin-left: auto; }

/* Kategorie z podkategoriami — rekurencyjny accordion */
.cat-group { margin-bottom: .15rem; }
.cat-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .3rem;
  cursor: default;
  padding: .2rem 0;
}
.cat-group-header .filter-check { flex: 1; font-weight: 600; }
.cat-group-arrow {
  font-size: .6rem;
  color: var(--muted);
  cursor: pointer;
  padding: .3rem;
  transition: transform .2s;
  flex-shrink: 0;
}
.cat-group.is-open > .cat-group-header .cat-group-arrow { transform: rotate(180deg); }
.cat-group-children {
  display: none;
  padding-left: .75rem;
  border-left: 2px solid var(--border);
  margin: .15rem 0 .3rem .35rem;
}
.cat-group.is-open > .cat-group-children { display: block; }
/* Nested groups get thinner border */
.cat-group-children .cat-group-children { border-left-color: var(--bg); }

/* Paginacja */
.products-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px; height: 36px;
  padding: 0 .6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-2);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.page-btn.is-active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.page-btn:disabled { opacity: .35; cursor: default; }
.page-dots { font-size: .82rem; color: var(--muted); padding: 0 .25rem; }
.price-vals {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: .65rem;
}
.price-sliders { display: flex; flex-direction: column; gap: .4rem; }
.price-sliders input[type="range"] { width: 100%; accent-color: var(--green); }

/* Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.prod-count { font-size: .82rem; color: var(--muted); }
.prod-count strong { color: var(--ink); font-weight: 600; }
.sort-wrap { display: flex; align-items: center; gap: .55rem; font-size: .82rem; }
.sort-wrap label { color: var(--muted); }
.sort-wrap select {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: .35rem .6rem;
  font-size: .82rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.sort-wrap select:focus { border-color: var(--ink); }

/* =====================================================================
   STRONA PRODUKTU
   ===================================================================== */
.product-page { padding: 2.5rem 0 5rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--border); font-size: .65rem; }

.product-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3.5rem;
  align-items: start;
}
.gallery-sticky { position: sticky; top: calc(var(--h-total) + 1.5rem); }
.gallery-main {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  position: relative;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 72px;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
}
.gallery-thumb:hover, .gallery-thumb.is-active { border-color: var(--green); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-panel {}
.p-meta-top { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; }
.p-cat-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.p-sku { font-size: .72rem; color: var(--muted); }
.product-info-panel h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .9rem;
}
.p-stars { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.2rem; }
.stars-icons { color: #c8a900; font-size: .82rem; }
.stars-label { font-size: .78rem; color: var(--muted); }

.p-price-block {
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: .8rem;
}
.p-price-main { font-size: 1.9rem; font-weight: 700; font-family: var(--sans); color: var(--ink); }
.p-price-old { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }
.p-price-disc {
  font-size: .72rem; font-weight: 700;
  background: var(--sale); color: #fff;
  padding: .2rem .5rem; border-radius: 1px;
}
.p-short-desc { font-size: .88rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.p-delivery { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.5rem; }
.p-delivery-item { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--ink-2); }
.p-delivery-item i { color: var(--green); font-size: .8rem; width: 14px; }
.p-qty-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; flex-wrap: wrap; }
.qty-ctrl { display: flex; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.qty-ctrl button {
  width: 38px; height: 42px;
  background: var(--bg); border: none;
  font-size: 1rem; font-weight: 700; color: var(--ink-2);
  transition: background .2s;
}
.qty-ctrl button:hover { background: var(--border); }
.qty-ctrl input {
  width: 52px; height: 42px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-family: var(--sans);
  font-size: .9rem; font-weight: 600;
  color: var(--ink); outline: none; background: var(--white);
}
.btn-add-main {
  flex: 1;
  background: var(--green); color: #fff; border: none;
  padding: .85rem 1.5rem;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .7px; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .2s; min-height: 42px;
}
.btn-add-main:hover { background: var(--green-dark); }
.btn-wishlist {
  width: 42px; min-height: 42px;
  background: none; border: 1px solid var(--border); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--muted);
  transition: all .2s;
}
.btn-wishlist:hover { border-color: var(--sale); color: var(--sale); }

/* Tabs na stronie produktu */
.p-tabs { margin-top: 3.5rem; }
.p-tabs-nav { display: flex; border-bottom: 1px solid var(--border); }
.p-tab-btn {
  padding: .75rem 1.4rem;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  color: var(--muted);
  cursor: pointer; transition: all .2s;
}
.p-tab-btn:hover { color: var(--ink); }
.p-tab-btn.is-active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.p-tab-panel { display: none; padding-top: 1.8rem; }
.p-tab-panel.is-active { display: block; }
.p-tab-panel p { font-size: .88rem; color: var(--muted); line-height: 1.85; }
.spec-tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
.spec-tbl td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.spec-tbl td:first-child { font-weight: 600; color: var(--ink); width: 40%; background: var(--bg); }
.spec-tbl td:last-child { color: var(--muted); }

.related-section { margin-top: 4.5rem; }
.related-section h2 {
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 600; margin-bottom: 1.5rem;
}

/* Image lightbox */
.img-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 2000;
  align-items: center; justify-content: center;
  gap: 1rem; padding: 1rem;
}
.img-modal.is-open { display: flex; }
.img-modal-close {
  position: fixed; top: 1rem; right: 1.2rem;
  background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 1.1rem;
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.img-modal-close:hover { background: rgba(255,255,255,.28); }
.img-modal-wrap { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-modal img { max-width: min(88vw, 900px); max-height: 85vh; object-fit: contain; border-radius: 6px; }
.img-modal-nav {
  background: rgba(255,255,255,.14); border: none;
  color: #fff; font-size: 1.2rem;
  width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.img-modal-nav:hover { background: rgba(255,255,255,.3); }
.img-modal-nav:disabled { opacity: .2; cursor: default; }
.img-modal-dots {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .45rem;
}
.lb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.3); transition: background .2s; cursor: pointer;
}
.lb-dot.is-active { background: #fff; }

/* =====================================================================
   CHECKOUT / SUMMARY
   ===================================================================== */
.checkout-wrap { padding: 2.5rem 0 5rem; }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}
.checkout-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
}
.checkout-card h2 {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 1.4rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--border);
}
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .75rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); text-transform: uppercase; letter-spacing: .5px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border); border-radius: 2px;
  padding: .65rem .85rem;
  font-size: .88rem; font-family: var(--sans); color: var(--ink);
  outline: none; background: var(--white);
  transition: border-color .2s;
}
.field input:focus, .field select:focus { border-color: var(--ink); }

/* =====================================================================
   PAGINACJA
   ===================================================================== */
.pagination-wrap { display: flex; justify-content: center; padding-top: 2.5rem; }
.pagination { display: flex; gap: .3rem; align-items: center; }
.page-btn, .page-num {
  min-width: 38px; height: 38px;
  border: 1px solid var(--border);
  background: var(--white); color: var(--ink-2);
  border-radius: 2px;
  font-size: .82rem; font-weight: 500; font-family: var(--sans);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
  padding-inline: .65rem;
}
.page-btn:hover, .page-num:hover { border-color: var(--ink); color: var(--ink); }
.page-num.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-ellipsis { padding-inline: .4rem; color: var(--muted); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1400px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1200px) {
  :root { --pad: 32px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-wrap { gap: 3.5rem; }
  .about-float-badge { right: 0; }
}

@media (max-width: 1024px) {
  .hero-slider { height: 440px; }
  .hero-img-layer { width: 50%; }
  .hero-slide { width: 62%; }
  .cat-strip-item { padding: .5rem 1rem; }
  .cat-strip-img { width: 72px; height: 72px; }
  .products-layout { grid-template-columns: 200px 1fr; }
  .product-grid { gap: 3rem; }
  .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .mobile-menu-toggle { display: flex; }
  .h-action-konto { display: none !important; }
  :root { --h-total: 134px; }
  .products-layout { grid-template-columns: 1fr; }

  /* Filter sidebar becomes slide-in overlay */
  .filters-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 88%;
    max-width: 320px;
    z-index: 950;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    background: #fff;
    box-shadow: 4px 0 30px rgba(0,0,0,.18);
  }
  .filters-sidebar.is-open { transform: translateX(0); }
  .filter-overlay-backdrop { display: block; }
  .filter-fab { display: flex; }
  .filter-panel-close { display: flex; }

  .about-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-side { padding: 1.5rem 0 1.5rem 1.5rem; }
  .about-float-badge { right: 0; bottom: 1.5rem; }
  .about-stats { flex-wrap: wrap; gap: 1rem; }
  .about-stat-sep { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .gallery-sticky { position: static; }

  /* Kategorie schowane domyślnie na mobile */
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--green);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    flex-direction: column;
    z-index: 850;
    overflow: visible;
    height: auto;
    opacity: 1;
    animation: none;
  }

  /* Otwarty dropdown kategorii */
  .site-header.mobile-nav-open .header-nav {
    display: flex;
    animation: navSlideDown .22s ease;
  }

  .site-header.mobile-nav-open .header-nav .nav-item {
    height: 50px;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    border-left: 3px solid transparent;
    border-bottom-color: var(--border);
    width: 100%;
  }
  .site-header.mobile-nav-open .header-nav .nav-item:last-child {
    border-bottom: none;
  }
  .site-header.mobile-nav-open .header-nav .nav-item:hover {
    border-left-color: var(--green);
    background: var(--cream);
  }

  /* Header musi być relative żeby dropdown był relative do niego */
  .site-header { overflow: visible; }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  :root { --h-top: 0px; --h-main: 60px; --h-total: 60px; --pad: 16px; }

  /* ── Header ── */
  .header-top { display: none; }
  .header-main .container { gap: 0; position: relative; }
  .header-search { display: none; }
  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: none;
    justify-content: center;
  }
  .header-logo img { height: 36px; }
  .mobile-menu-toggle { width: 44px; justify-content: center; }
  .header-actions { margin-left: auto; }
  .h-action-btn span:not(.cart-badge):not(.fav-header-badge) { display: none; }
  #userToggle { display: none; }

  /* ── Hero mobile */
  .hero-slider { height: 300px; }

  .hero-img-layer { width: 100%; height: 100%; bottom: 0; }
  .hero-img-item img { object-position: center 35%; }

  .hero-img-layer::before {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to top,
      rgba(8,10,20,.82) 0%,
      rgba(8,10,20,.52) 40%,
      rgba(8,10,20,.08) 75%,
      transparent 100%
    );
  }

  .hero-slide {
    width: 100%;
    top: 0;
    align-items: flex-end;
    background: none;
    border-top: none;
  }
  .slide-copy {
    padding: 1rem 1.2rem 1.4rem;
    max-width: 100%;
  }
  .slide-tag {
    color: #f9a8d4;
    font-size: .6rem;
    margin-bottom: .35rem;
  }
  .slide-tag::before { background: #f9a8d4; width: 16px; }
  .slide-copy h1, .slide-copy h2 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: .7rem;
    color: #fff;
  }
  .slide-copy h1 em, .slide-copy h2 em { color: #93c5fd; }
  .slide-copy p { display: none; }
  .slide-actions { gap: .5rem; }
  .slide-copy .btn-hero-primary {
    padding: .62rem 1.3rem;
    font-size: .78rem;
    border-radius: 6px;
  }
  .slide-copy .btn-hero-secondary {
    display: inline-flex;
    padding: .62rem 1.3rem;
    font-size: .78rem;
    border-radius: 6px;
    background: rgba(255,255,255,.14);
    color: #fff;
    border-color: rgba(255,255,255,.45);
    backdrop-filter: blur(6px);
  }
  .slide-copy .btn-hero-secondary:hover {
    background: rgba(255,255,255,.24);
    border-color: rgba(255,255,255,.7);
    color: #fff;
  }
  .slide-copy h1, .slide-copy h2 {
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
  }
  .slide-tag { text-shadow: 0 1px 6px rgba(0,0,0,.4); }
  .slider-arrow-prev, .slider-arrow-next { display: none; }
  .hero-slider > .slider-nav { display: none; }

  /* ── Sekcje ── */
  .section { padding: 2rem 0; }
  .section-sm { padding: 1.4rem 0; }

  /* ── Siatka / reszta ── */
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-bar { flex-direction: column; text-align: center; gap: .5rem; }
  .about-stat { min-width: 40%; }
  .cat-strip-img { width: 62px; height: 62px; }
  .cat-strip-item { padding: .5rem .8rem; }
  .cat-strip-name { font-size: .72rem; }
}

@media (max-width: 540px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-name { font-size: .82rem; }
  .price { font-size: .88rem; }
  .form-2col { grid-template-columns: 1fr; }
}

/* =====================================================================
   CHECKOUT / PODSUMOWANIE
   ===================================================================== */
.checkout-page {
  padding: 2.5rem 0 5rem;
  background: var(--bg);
  min-height: 80vh;
}

/* Nagłówek z krokami */
.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.checkout-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
}
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: .5rem;
  opacity: .4;
}
.checkout-step.is-active { opacity: 1; }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.checkout-step.is-active .step-num {
  background: var(--green);
  color: #fff;
}
.step-label { font-size: .78rem; font-weight: 500; color: var(--ink-2); }
.checkout-step-line {
  width: 40px; height: 1px;
  background: var(--border);
  margin: 0 .5rem;
}

/* Layout 2-kolumnowy */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

/* Sekcje w lewej kolumnie */
.checkout-section {
  background: var(--white);
  border-radius: 14px;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 10px rgba(10,22,40,.06);
}
.checkout-section-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.4rem;
}
.checkout-section-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.checkout-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* Lista produktow w checkout */
.checkout-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.checkout-item-img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-qty {
  position: absolute;
  top: -6px; right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.checkout-item-info { flex: 1; }
.checkout-item-name {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .2rem;
}
.checkout-item-unit { font-size: .76rem; color: var(--muted); }
.checkout-price-old { font-size: .76rem; color: var(--muted); text-decoration: line-through; margin-right: .2rem; }
.checkout-price-new { font-size: .76rem; color: var(--green); font-weight: 600; }
.checkout-item-savings { font-size: .72rem; color: #f59e0b; font-weight: 600; margin-top: .1rem; }
.mini-price-old { font-size: .78rem; color: var(--muted); text-decoration: line-through; margin-right: .2rem; }
.mini-price-new { font-size: .85rem; color: var(--green); font-weight: 700; }
.checkout-item-total {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.checkout-empty { font-size: .9rem; color: var(--muted); padding: 1rem 0; }
.checkout-empty a { color: var(--green); text-decoration: underline; }

/* Opcje dostawy */
.delivery-options { display: flex; flex-direction: column; gap: .6rem; }
.delivery-option { cursor: pointer; }
.delivery-option input[type="radio"] { display: none; }
.delivery-option-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.delivery-option input:checked + .delivery-option-body {
  border-color: var(--green);
  background: var(--green-light);
}
.delivery-option-body:hover { border-color: var(--border-2); }
.delivery-option-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.delivery-option input:checked + .delivery-option-body .delivery-option-icon {
  background: var(--white);
}
.delivery-option-info { flex: 1; }
.delivery-option-info strong {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .15rem;
}
.delivery-option-info span { font-size: .75rem; color: var(--muted); }
.delivery-option-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.delivery-free { color: var(--green); }

/* Formularz */
.checkout-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-2);
}
.form-field label span { color: var(--green); }
.form-field label .optional { color: var(--muted); font-weight: 400; }
.form-field input,
.form-field textarea {
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .87rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--green); }
.form-field input.is-error { border-color: var(--sale); }
.form-field textarea { resize: vertical; }

/* Sidebar podsumowania */
.checkout-sidebar { position: sticky; top: calc(var(--h-total) + 1.5rem); }
.checkout-summary-box {
  background: var(--white);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: 0 2px 10px rgba(10,22,40,.06);
}
.checkout-summary-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}

/* Mini-lista produktow w sidebar */
.summary-mini-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.mini-item {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.mini-item img {
  width: 42px; height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}
.mini-item-name {
  flex: 1;
  font-size: .78rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.mini-item-name em { color: var(--muted); font-style: normal; }
.mini-item-price {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* Ceny */
.summary-price-block {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.summary-price-row {
  display: flex;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--muted);
}
.summary-price-row span:last-child { color: var(--ink); font-weight: 500; }
.summary-price-row.is-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: .3rem;
}
.summary-price-row.is-total span { color: var(--ink); }

/* Trust */
.summary-trust {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.4rem;
  font-size: .75rem;
  color: var(--muted);
}
.summary-trust div { display: flex; align-items: center; gap: .45rem; }
.summary-trust i { color: var(--green); width: 14px; text-align: center; }

/* CTA */
.checkout-cta {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .95rem 1.5rem;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .2s, transform .2s;
  margin-bottom: 1rem;
}
.checkout-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.checkout-back-link {
  display: block;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  transition: color .2s;
}
.checkout-back-link:hover { color: var(--ink); }

/* Delivery free label */
.delivery-free { color: var(--green); font-weight: 700; }
.delivery-free-label { color: var(--green); font-weight: 700; font-size: .88rem; }

/* Mini price old/new */
.mini-price-old { text-decoration: line-through; color: var(--muted); font-size: .76rem; }
.mini-price-new { color: var(--green); font-weight: 700; }

/* InPost paczkomat picker */
.inpost-locker-section { margin-top: .9rem; }
.inpost-locker-badge {
  display: flex; align-items: center; gap: .65rem;
  background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px;
  padding: .65rem 1rem; font-size: .84rem;
}
.inpost-change-btn {
  margin-left: auto; background: none; border: 1px solid #16a34a; color: #16a34a;
  border-radius: 6px; padding: .25rem .75rem; font-size: .78rem; font-weight: 600;
  cursor: pointer; flex-shrink: 0; transition: background .15s;
}
.inpost-change-btn:hover { background: #f0fdf4; }
.inpost-pick-btn {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  background: #f0fdf4; border: 1.5px dashed #86efac; color: #15803d;
  border-radius: 8px; padding: .75rem 1rem; font-size: .87rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.inpost-pick-btn:hover { background: #dcfce7; }
.inpost-pick-btn.is-error { border-color: var(--sale); background: #fff1f2; color: var(--sale); }

/* InPost GeoWidget modal */
.inpost-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9990;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.inpost-modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 880px;
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.inpost-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.inpost-modal-head h3 {
  font-size: 1rem; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: .5rem; margin: 0;
}
.inpost-modal-close {
  background: none; border: none; color: var(--muted); font-size: 1.1rem;
  cursor: pointer; padding: .25rem .5rem; border-radius: 6px; transition: color .15s;
}
.inpost-modal-close:hover { color: var(--ink); }
/* InPost map modal */
.inpost-modal--map { max-width: 900px; }
.inpost-search-wrap { display: flex; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.inpost-search-input { flex: 1; border: 1.5px solid var(--border); border-radius: 8px; padding: .6rem .9rem; font-size: .9rem; color: var(--ink); outline: none; transition: border-color .15s; min-width: 0; }
.inpost-search-input:focus { border-color: #1a7f4b; }
.inpost-search-btn { background: #1a7f4b; color: #fff; border: none; border-radius: 8px; width: 44px; flex-shrink: 0; cursor: pointer; font-size: 1rem; transition: background .15s; }
.inpost-search-btn:hover:not(:disabled) { background: #15693e; }
.inpost-search-btn:disabled { opacity: .5; cursor: not-allowed; }
.inpost-geo-btn { background: #f3f4f6; color: #374151; border: 1.5px solid var(--border); border-radius: 8px; width: 44px; flex-shrink: 0; cursor: pointer; font-size: .95rem; transition: background .15s; }
.inpost-geo-btn:hover:not(:disabled) { background: #e5e7eb; }
.inpost-geo-btn:disabled { opacity: .5; cursor: not-allowed; }
.inpost-hint { padding: .4rem 1rem; font-size: .8rem; color: #4b5563; background: #f0fdf4; border-bottom: 1px solid #bbf7d0; flex-shrink: 0; }
.inpost-body { display: flex; flex: 1; overflow: hidden; min-height: 460px; }
.inpost-map-wrap { flex: 1; position: relative; }
.inpost-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.inpost-map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .9rem; color: var(--muted); gap: .5rem; background: #f9fafb; z-index: 2; }
.inpost-list-wrap { width: 260px; flex-shrink: 0; overflow-y: auto; border-left: 1px solid var(--border); background: #fafafa; }
.inpost-list-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .85rem; gap: .5rem; text-align: center; padding: 1rem; }
.inpost-list-item { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border); padding: .75rem 1rem; cursor: pointer; transition: background .15s; }
.inpost-list-item:hover { background: #f0fdf4; }
.inpost-list-item.is-active { background: #dcfce7; border-left: 3px solid #1a7f4b; }
.inpost-list-id { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: .2rem; }
.inpost-list-addr { font-size: .78rem; color: #4b5563; margin-bottom: .2rem; }
.inpost-list-hours { font-size: .72rem; color: var(--muted); }
.ipm-dot { background: #1a7f4b; color: #fff; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.3); border: 2px solid #fff; cursor: pointer; }
@media (max-width: 640px) {
  .inpost-modal { border-radius: 12px 12px 0 0; max-height: 94vh; margin-top: auto; align-self: flex-end; }
  .inpost-body { flex-direction: column; }
  .inpost-map-wrap { min-height: 300px; }
  .inpost-list-wrap { width: 100%; height: 200px; border-left: none; border-top: 1px solid var(--border); }
}

/* Checkout form validation error */
.checkout-form-error { background: #fff1f2; border: 1px solid #fecada; color: #dc2626; border-radius: 8px; padding: .65rem 1rem; font-size: .875rem; font-weight: 500; margin-bottom: .875rem; display: flex; align-items: center; gap: .5rem; }

/* Responsive */
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-sidebar { position: static; }
}
@media (max-width: 540px) {
  .checkout-steps { display: none; }
  .checkout-header h1 { font-size: 1.4rem; }
}

/* =====================================================================
   PLATNOSC — dodatkowe style
   ===================================================================== */

/* Krok "zrobiony" */
.checkout-step.is-done { opacity: 1; }
.checkout-step.is-done .step-num {
  background: var(--green);
  color: #fff;
}

/* Link "Zmień" w nagłówku sekcji */
.edit-link {
  margin-left: auto;
  font-size: .75rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: .3rem;
  font-weight: 500;
}
.edit-link:hover { color: var(--green-dark); }

/* Podgląd danych wysyłki */
.shipping-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem 2rem;
}
.shipping-preview-item span {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .1rem;
}
.shipping-preview-item strong {
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink);
}

/* Logotypy metod płatności */
.payment-logos { display: flex; gap: .35rem; align-items: center; }
.pay-logo {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .5px;
  padding: .2rem .45rem;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}
.pay-logo.blik { background: #e30613; }

/* Zgody */
.terms-block { display: flex; flex-direction: column; gap: .75rem; }
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .82rem;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.5;
}
.terms-check input[type="checkbox"] {
  width: 17px; height: 17px;
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--green);
  cursor: pointer;
}
.terms-check a { color: var(--green); text-decoration: underline; }
.terms-check.is-error { color: var(--sale); }

/* Podsumowanie dostawy w sidebarze */
.delivery-summary-row { margin-bottom: .4rem; }

/* Ekran potwierdzenia */
.order-confirm {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.order-confirm-box {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(10,22,40,.12);
}
.order-confirm-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #2d7a2d;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.order-confirm-box h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .6rem;
}
.order-confirm-box p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.order-confirm-num {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.order-confirm-num strong { color: var(--ink); font-size: .95rem; }
.order-confirm-details {
  background: var(--bg);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .84rem;
}
.confirm-row span { color: var(--muted); }
.confirm-row strong { color: var(--ink); font-weight: 600; }

@media (max-width: 540px) {
  .shipping-preview-grid { grid-template-columns: 1fr; }
  .order-confirm-box { padding: 2rem 1.4rem; }
}

/* ═══════════════════════════════════════════════
   AUTH – modal logowania / rejestracji
   ═══════════════════════════════════════════════ */
.auth-modal-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.55);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.auth-modal-backdrop.is-open { display: flex; }
.auth-box {
  background: #fff; border-radius: 18px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  overflow: hidden; position: relative;
  animation: authFadeIn .22s ease;
}
@keyframes authFadeIn {
  from { opacity:0; transform: translateY(-14px) scale(.97); }
  to   { opacity:1; transform: none; }
}
.auth-box-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.1rem; line-height:1; padding: .3rem;
  border-radius: 50%; transition: background .15s, color .15s;
}
.auth-box-close:hover { background: var(--surface); color: var(--ink); }
.auth-tabs {
  display: flex; border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1; background: none; border: none; cursor: pointer;
  padding: 1.1rem .5rem; font-size: .88rem; font-weight: 600;
  color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.auth-tab.is-active { color: var(--green); border-bottom-color: var(--green); }
.auth-panel { display: none; padding: 1.8rem; }
.auth-panel.is-active { display: block; }
.auth-panel h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.3rem; }
.auth-row { margin-bottom: 1rem; }
.auth-row label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; letter-spacing: .3px; }
.auth-row input {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .9rem; color: var(--ink);
  transition: border-color .15s; box-sizing: border-box;
}
.auth-row input:focus { outline: none; border-color: var(--green); }
.auth-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.auth-error {
  display: block; font-size: .82rem; color: #991b1b;
  background: #fee2e2; border: 1px solid #fca5a5; border-radius: 8px; padding: .6rem .9rem;
  margin-bottom: .9rem; font-weight: 500;
}
.auth-submit {
  width: 100%; padding: .8rem; background: var(--green); color: #fff;
  border: none; border-radius: 9px; font-size: .92rem; font-weight: 700;
  cursor: pointer; transition: background .15s; margin-top: .4rem;
}
.auth-submit:hover { background: var(--green-dark, #1f6b1f); }
.auth-submit:disabled { opacity: .6; cursor: default; }
.auth-footer-link { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 1rem; }
.auth-footer-link button { background: none; border: none; color: var(--green); font-weight: 600; cursor: pointer; }

/* ── User button + dropdown ─────────────────── */
.h-action-wrap { position: relative; }
.user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 170px; z-index: 500;
  overflow: hidden;
}
.h-action-wrap:focus-within .user-dropdown,
.user-dropdown.is-open { display: block; }
.user-dropdown a,
.user-dropdown button {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; padding: .7rem 1rem; background: none; border: none;
  font-size: .83rem; color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background .12s;
}
.user-dropdown a:hover,
.user-dropdown button:hover { background: var(--surface); }
.user-dropdown .sep { height: 1px; background: var(--border); margin: .2rem 0; }
.user-dropdown .logout-btn { color: #c8202d; }
.user-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: .7rem; font-weight: 700; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   KONTO – strona konta użytkownika
   ═══════════════════════════════════════════════ */
.konto-page { padding: 3rem 0 5rem; }
.konto-login-prompt { text-align: center; padding: 4rem 1rem; }
.konto-login-prompt i { font-size: 3rem; color: var(--muted); margin-bottom: 1rem; opacity: .4; }
.konto-login-prompt h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.konto-login-prompt p  { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* --- konto: formularze logowania / rejestracji --- */
.konto-form { text-align: left; }
.konto-form-row { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .85rem; }
.konto-form-row label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.konto-form-row input {
  padding: .6rem .85rem; border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: .9rem; color: var(--ink); background: #fafafa; outline: none;
  transition: border-color .18s;
}
.konto-form-row input:focus { border-color: var(--green); background: #fff; }
.konto-msg {
  padding: .7rem 1rem; border-radius: 8px; font-size: .85rem; font-weight: 500;
  margin-bottom: .85rem; display: flex; align-items: center; gap: .5rem;
}
.konto-msg.ok  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.konto-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* --- konto: nagłówek profilu --- */
.konto-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 0 1rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1.2rem;
}
.konto-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 700; flex-shrink: 0;
}
.konto-name  { font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.konto-email { font-size: .82rem; color: var(--muted); margin-top: .15rem; }

/* --- konto: zakładki --- */
.konto-tabs {
  display: flex; gap: .4rem; margin-bottom: 1.4rem; flex-wrap: wrap;
  border-bottom: 1.5px solid #e5e7eb; padding-bottom: .6rem;
}
.konto-tab {
  padding: .45rem 1rem; border-radius: 8px; border: 1.5px solid transparent;
  font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer;
  background: none; transition: all .15s; display: flex; align-items: center; gap: .4rem;
}
.konto-tab:hover { background: #f3f4f6; color: var(--ink); }
.konto-tab.is-active {
  background: var(--green); color: #fff; border-color: var(--green);
}

/* --- konto: panel --- */
.konto-panel { animation: fadeInUp .2s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(6px); } }
.konto-section-title { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .9rem; }

/* --- konto: tabela zamówień --- */
.orders-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.orders-table th { background: #f9fafb; padding: .6rem .85rem; text-align: left; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1.5px solid #e5e7eb; }
.orders-table td { padding: .65rem .85rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: #fafafa; }

/* --- konto: newsletter toggle --- */
.newsletter-toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: .85rem 1rem; background: #f9fafb; border-radius: 10px;
  border: 1.5px solid #e5e7eb;
}
.newsletter-toggle-row strong { font-size: .9rem; color: var(--ink); }
.newsletter-toggle-row p { font-size: .8rem; color: var(--muted); margin: .2rem 0 0; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer; background: #d1d5db;
  border-radius: 99px; transition: .2s;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; left: 3px; top: 3px; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* --- konto: responsywność --- */
@media (max-width: 640px) {
  .konto-header { flex-wrap: wrap; }
  .konto-tabs { gap: .25rem; }
  .konto-tab { font-size: .78rem; padding: .4rem .75rem; }
  .orders-table th, .orders-table td { padding: .5rem .5rem; font-size: .8rem; }
  .orders-table th:nth-child(3) { display: none; }
  .orders-table td:nth-child(3) { display: none; }
}

/* =====================================================================
   LIVE CHAT WIDGET
   ===================================================================== */
.lc-wrap {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .8rem;
}

.lc-window.lc-closing { animation: lcOut .22s ease forwards; }

.lc-window {
  width: 380px;
  height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: lcIn .22s ease;
}
@keyframes lcIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lcOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(10px) scale(.97); }
}

.lc-header {
  background: var(--green);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.lc-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  overflow: hidden;
  flex-shrink: 0;
}
.lc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-header-text { flex: 1; }
.lc-name {
  font-size: .9rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: .4rem;
}
.lc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; display: inline-block;
  box-shadow: 0 0 0 2px rgba(74,222,128,.3);
}
.lc-sub { font-size: .7rem; color: rgba(255,255,255,.72); margin-top: .1rem; }
.lc-close {
  background: rgba(255,255,255,.15);
  border: none; color: #fff;
  width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; font-size: .72rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; flex-shrink: 0;
}
.lc-close:hover { background: rgba(255,255,255,.3); }

.lc-body { padding: 0; background: #fff; flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }

/* ─── Start screen ─── */
.lc-start-inner {
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 1.6rem 2.2rem; text-align: center; gap: .6rem;
}
.lc-start-hero { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.lc-start-av {
  position: relative;
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid var(--green);
  overflow: visible; flex-shrink: 0;
}
.lc-start-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.lc-start-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
}
.lc-start-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 600; color: #22c55e;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 20px; padding: .22rem .75rem;
}
.lc-start-title {
  font-size: 1.12rem; font-weight: 700; color: #111827;
  margin: .3rem 0 0; line-height: 1.35;
}
.lc-start-sub {
  font-size: .82rem; color: #6b7280; line-height: 1.6;
  max-width: 240px; margin: 0 auto;
}
.lc-start-btn {
  margin-top: .6rem;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--green); color: #fff; border: none;
  font-size: .88rem; font-weight: 600; font-family: var(--sans);
  padding: .75rem 1.6rem; border-radius: 30px; cursor: pointer;
  width: 100%; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,113,206,.35);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.lc-start-btn:hover { background: #005fad; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,113,206,.45); }
.lc-start-btn i { font-size: .9rem; }
.lc-start-hint { font-size: .7rem; color: #9ca3af; margin-top: .1rem; }

.lc-messages {
  background: #f5f6fa;
  padding: 1rem 1.1rem .8rem;
  display: flex; flex-direction: column; gap: .75rem;
  flex: 1; overflow-y: auto;
}
.lc-messages::-webkit-scrollbar { width: 3px; }
.lc-messages::-webkit-scrollbar-thumb { background: #d0d0e0; border-radius: 3px; }

.lc-msg { display: flex; align-items: flex-start; gap: .55rem; }
.lc-msg--user { flex-direction: row-reverse; align-items: flex-end; }
.lc-msg-av {
  width: 28px; height: 28px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.lc-msg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-bubble { max-width: 78%; }
.lc-bubble p { margin: 0; padding: .6rem .9rem; font-size: .84rem; line-height: 1.5; border-radius: 14px; }
.lc-msg--agent .lc-bubble p {
  background: #fff; color: var(--ink);
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.lc-msg--user .lc-bubble p {
  background: var(--green); color: #fff;
  border-radius: 14px 4px 14px 14px;
}
.lc-time { display: block; font-size: .62rem; color: #bbb; margin-top: .2rem; }
.lc-msg--user .lc-time { text-align: right; }

.lc-input-area { position: relative; flex-shrink: 0; border-top: 1px solid #eef0f5; }

.lc-emoji-picker {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.11);
  padding: .55rem .4rem;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 1px;
  z-index: 10;
}
.lc-emoji-item {
  background: none; border: none; cursor: pointer;
  font-size: 1.15rem; padding: .28rem;
  border-radius: 7px; line-height: 1;
  transition: background .12s;
}
.lc-emoji-item:hover { background: #f0f3ff; }

.lc-icon-btn {
  background: none; border: none; cursor: pointer;
  color: #c0c4d6; font-size: .95rem;
  width: 30px; height: 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  transition: color .18s, background .18s; flex-shrink: 0;
}
.lc-icon-btn:hover { color: var(--green); background: #eef3ff; }
.lc-icon-btn.is-active { color: var(--green); }

.lc-chat-img {
  max-width: 100%; border-radius: 10px; display: block;
  margin-top: .2rem; cursor: zoom-in;
}
.lc-msg--user .lc-chat-img { border-radius: 10px 2px 10px 10px; }

.lc-input-row {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem .8rem; background: #fff;
}
.lc-input {
  flex: 1; border: 1.5px solid #e4e6f0; border-radius: 22px;
  padding: .55rem 1rem; font-size: .84rem; font-family: var(--sans);
  outline: none; color: var(--ink); background: #f7f8fc; transition: border-color .2s;
}
.lc-input:focus { border-color: var(--green); background: #fff; }
.lc-input::placeholder { color: #bbb; }
.lc-send {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); border: none; color: #fff; font-size: .78rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s, transform .15s;
}
.lc-send:hover { background: #005fad; transform: scale(1.07); }



.lc-trigger {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); border: none; color: #fff; font-size: 1.4rem;
  cursor: pointer; box-shadow: 0 4px 20px rgba(0,113,206,.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s; flex-shrink: 0;
}
.lc-trigger:hover { transform: scale(1.07); box-shadow: 0 6px 28px rgba(0,113,206,.55); }

.lc-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; border-radius: 10px;
  background: #ef4444; color: #fff;
  font-size: .65rem; font-weight: 700; font-family: var(--sans);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(239,68,68,.5);
  animation: lcBadgePop .25s ease;
}
@keyframes lcBadgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ─── Mobile livechat ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {

  /* Okno czatu: position:fixed względem viewport, top/height sterowane przez JS.
     --lc-vvtop i --lc-vh to visual viewport offsetTop/height (Visual Viewport API).
     Dzięki temu klawiatura iOS nie przesuwa okna poza ekran. */
  .lc-window {
    position: fixed;
    top:    var(--lc-vvtop, 0px);
    left:   0;
    right:  0;
    height: var(--lc-vh, 100dvh);
    max-height: none;
    width:  auto;
    border-radius: 0;
    z-index: 901;
    animation: lcInMob .26s cubic-bezier(.32,.72,0,1);
  }
  .lc-window.lc-closing { animation: lcOutMob .22s ease forwards; }

  @keyframes lcInMob {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes lcOutMob {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(16px); }
  }

  /* Trigger: normalny fixed w prawym dolnym rogu */
  .lc-trigger {
    position: fixed;
    bottom: 1.5rem;
    right:  1.5rem;
    z-index: 902;
  }

  /* Ukryj trigger gdy okno czatu otwarte */
  .lc-window ~ .lc-trigger { display: none; }

  /* Zapobiega auto-zoomowi iOS (input < 16px = zoom).
     min-width:0 pozwala inputowi skurczyć się w flex-row (domyślne auto = overflow). */
  .lc-input { font-size: 16px; min-width: 0; }

  /* Bezpieczny odstęp na home bar iPhone'a */
  .lc-input-row {
    padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
  }

  /* Mniejszy picker emoji */
  .lc-emoji-picker { grid-template-columns: repeat(7, 1fr); }

  /* Ekran startowy kompaktowy */
  .lc-start-inner { padding: 1.4rem 1.3rem 1.6rem; gap: .45rem; }
  .lc-start-av    { width: 58px; height: 58px; }
  .lc-start-title { font-size: 1rem; }
  .lc-start-sub   { font-size: .8rem; }

  /* Nieco szersza bańka na mobile */
  .lc-bubble { max-width: 86%; }
}

/* =====================================================================
   STRONY PRAWNE — regulamin, polityka prywatności, zwroty, FAQ
   ===================================================================== */
.legal-page { padding: 3rem 0 5rem; }
.legal-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.legal-header h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: .4rem; color: var(--ink); }
.legal-header .updated { font-size: .8rem; color: var(--muted); }

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--h-total) + 1rem);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
}
.legal-toc h3 {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted); margin-bottom: .8rem;
}
.legal-toc a {
  display: block; font-size: .82rem; color: var(--muted);
  text-decoration: none; padding: .3rem 0 .3rem .7rem;
  border-left: 2px solid var(--border); margin-bottom: .1rem;
  transition: color .15s, border-color .15s;
}
.legal-toc a:hover { color: var(--green); border-color: var(--green); }

.legal-body section { margin-bottom: 2.5rem; }
.legal-body h2 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border); color: var(--ink);
}
.legal-body h3 { font-size: .92rem; font-weight: 700; margin: 1.2rem 0 .5rem; color: var(--ink-2); }
.legal-body p {
  font-size: .88rem; line-height: 1.8; color: var(--muted); margin-bottom: .7rem;
}
.legal-body ol, .legal-body ul { padding-left: 1.4rem; margin-bottom: .7rem; list-style: revert; }
.legal-body li { font-size: .88rem; line-height: 1.8; color: var(--muted); margin-bottom: .25rem; }
.legal-body a { color: var(--green); }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--ink); }
.legal-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.legal-body .highlight {
  background: var(--green-light); border-left: 3px solid var(--green);
  padding: .8rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; font-size: .85rem;
}

.form-content {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 1.2rem 1.4rem; font-size: .84rem; line-height: 2;
  color: var(--muted); white-space: pre-line; margin-top: 1rem;
}

@media (max-width: 768px) {
  .legal-page    { padding: 1.5rem 0 3rem; }
  .legal-layout  { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-toc     { position: static; }
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-page   { padding: 3rem 0 5rem; }
.faq-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.faq-header h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: .4rem; color: var(--ink); }

.faq-search { margin-bottom: 2rem; position: relative; }
.faq-search input {
  width: 100%; padding: .75rem 1rem .75rem 2.8rem;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--sans); font-size: .88rem; color: var(--ink);
  background: var(--bg); outline: none; transition: border-color .2s;
}
.faq-search input:focus { border-color: var(--green); }
.faq-search-icon {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted);
}

.faq-empty { text-align: center; padding: 2rem; color: var(--muted); font-size: .88rem; }
.faq-container { display: flex; flex-direction: column; gap: 2rem; }

.faq-category-title {
  font-size: .95rem; font-weight: 700; color: var(--ink);
  margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}

.faq-item {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  margin-bottom: .45rem; transition: border-color .15s;
}
.faq-item:hover { border-color: var(--green); }

.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; cursor: pointer; user-select: none;
  background: var(--white); transition: background .15s;
}
.faq-question:hover { background: var(--bg); }
.faq-question-text { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.faq-icon { color: var(--muted); font-size: .75rem; flex-shrink: 0; transition: transform .25s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  display: none; padding: .9rem 1.1rem 1.1rem;
  background: var(--bg); border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }
.faq-answer p, .faq-answer li { font-size: .86rem; line-height: 1.78; color: var(--muted); }
.faq-answer ol, .faq-answer ul { padding-left: 1.2rem; list-style: revert; margin: .5rem 0; }
.faq-answer li { margin-bottom: .2rem; }
.faq-answer a { color: var(--green); }
.faq-answer a:hover { text-decoration: underline; }
.faq-answer strong { color: var(--ink); }

@media (max-width: 768px) {
  .faq-page { padding: 1.5rem 0 3rem; }
}
/* ── Logo tekstowe (fallback gdy brak wgranego logo) ─────────────────────── */
.brand-text-logo{
  display:inline-flex;flex-direction:column;justify-content:center;
  line-height:1;height:var(--blh,66px);white-space:nowrap;
}
.brand-text-name{
  font-weight:800;font-size:calc(var(--blh,66px) * .34);
  letter-spacing:.02em;color:var(--text-main,#111827);text-transform:uppercase;
}
.brand-text-sub{
  font-weight:600;font-size:calc(var(--blh,66px) * .16);
  letter-spacing:.34em;color:var(--green,#0071CE);
  text-transform:uppercase;margin-top:.35em;
}
.footer-text-logo .brand-text-name{color:#fff;}
.footer-text-logo .brand-text-sub{color:var(--green,#0071CE);}
