.cart-estimator__options label{display:flex;align-items:center;gap:8px}
.cart-estimator__carriers label{display:block;font-weight:600;margin-bottom:6px}
.cart-estimator__carrier-list label{display:flex;align-items:center;gap:8px}
.cart-card--address{display:flex;flex-direction:column;gap:12px}
.checkout-shell{display:flex;flex-direction:column;gap:20px}
.checkout-grid{display:grid;grid-template-columns:1fr 380px;gap:28px;align-items:start}
@media (max-width:1180px){ .checkout-grid{grid-template-columns:1fr 320px;gap:22px;} }
@media (max-width:1024px){ .checkout-grid{grid-template-columns:1fr;gap:20px;} }
.checkout-card{border:1px solid #e5e7eb;border-radius:18px;padding:4px 16px 16px;background:#fff;box-shadow:0 16px 32px rgba(15,23,42,.08)}
.checkout-card--sticky{position:sticky;top:calc(var(--checkout-top-offset, var(--cart-top-offset,0px)) + 12px)}
@media (max-width:900px){ .checkout-card--sticky{position:static;top:auto;} }
.checkout-card h2{margin:0 0 14px;font-size:1.35rem;letter-spacing:-.2px;color:#0f172a}
.checkout-table-wrap{overflow:auto;border-radius:14px;margin-top:6px}
.checkout-table{width:100%;border-collapse:separate;border-spacing:0 8px;min-width:520px}
.checkout-table thead th{font-weight:600;font-size:.8rem;color:#475569;text-transform:uppercase;letter-spacing:.5px;text-align:left;padding:0 10px}
.checkout-table tbody tr{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px}
.checkout-table tbody td{padding:12px 10px}
.checkout-table tbody tr td:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}
.checkout-table tbody tr td:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}
.checkout-table td:first-child{font-weight:600;color:#0f172a;text-align:left}
.checkout-table td:nth-child(2){text-align:center;width:90px}
.checkout-table td:nth-child(3),.checkout-table td:nth-child(4){text-align:right;white-space:nowrap}
.checkout-sum{margin-top:16px;padding-top:12px;border-top:1px dashed #e5e7eb;display:flex;flex-direction:column;gap:8px}
.checkout-sum__row{display:flex;justify-content:space-between;align-items:center;font-size:.95rem;color:#1f2937}
.checkout-sum__row strong{font-size:1rem}
.checkout-sum__row--savings{color:#0f766e;font-weight:600}
.checkout-sum__row--total{margin-top:6px;padding-top:8px;border-top:1px solid #e2e8f0;font-size:1.05rem;font-weight:700}
.checkout-address{border:1px solid #e5e7eb;padding:16px;border-radius:12px;margin-bottom:18px}
.checkout-address legend{padding:0 6px;font-weight:600;color:#0f172a}
.addr-radio-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.addr-radio-list label{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
.addr-radio-list label:hover{border-color:#cbd5e1;box-shadow:0 2px 10px rgba(15,23,42,.08)}
.addr-radio-list label.default{border-color:#2563eb;background:#eff6ff}
.addr-radio-list input{margin-top:4px}
.addr-options{display:flex;flex-direction:column;gap:6px}
.addr-option{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}
.addr-option:hover{border-color:#cbd5e1;box-shadow:0 2px 10px rgba(15,23,42,.08)}
.addr-option.default{border-color:#2563eb;background:#eff6ff}
.addr-option input{margin-top:4px}
.addr-line{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.addr-make-def{margin-left:8px;background:transparent;border:0;color:#2563eb;cursor:pointer;text-decoration:underline;font-size:.75rem;padding:0}
.addr-make-def:hover{color:#1d4ed8}
.badge-def{background:#2563eb;color:#fff;font-size:.65rem;padding:2px 8px;border-radius:999px;margin-left:8px;letter-spacing:.4px}
.checkout-address__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.checkout-pay-group{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.checkout-pay-option{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
.checkout-pay-option:hover{border-color:#cbd5e1;box-shadow:0 2px 10px rgba(15,23,42,.08)}
.checkout-pay-option input{margin-top:4px}
.checkout-pay-label{display:flex;flex-direction:column;gap:4px;color:#0f172a;font-weight:600}
.checkout-pay-label .muted{font-size:.88rem;font-weight:400}
.checkout-carrier{display:flex;flex-direction:column;gap:8px;margin:18px 0}
.checkout-carrier__select{padding:10px 14px;border:1px solid #d1d5db;border-radius:12px;font-size:1rem;min-width:220px}
.checkout-carrier__select:disabled{opacity:.6;cursor:not-allowed}
.checkout-carrier__help{font-size:.85rem}
.checkout-terms{margin:12px 0 18px}
.checkout-terms label{display:flex;align-items:flex-start;gap:10px;font-size:.95rem;color:#111827}
.checkout-terms span{line-height:1.5}
.checkout-terms__error{color:#b91c1c;display:none;margin-top:6px;font-size:.9rem}
.checkout-submit{margin-top:4px;padding:12px 20px;font-size:1.05rem;border-radius:12px}
.checkout-message{margin-top:10px;color:#065f46;display:none}
.checkout-dialog{border:0;border-radius:20px;padding:0;max-width:min(92vw,560px);width:100%}
.checkout-dialog::backdrop{background:rgba(15,23,42,.45)}
.checkout-dialog__form{display:flex;flex-direction:column;gap:12px;padding:22px 24px;border-radius:20px;background:#fff}
.checkout-dialog__title{margin:0;font-size:1.2rem;font-weight:700;color:#0f172a}
.checkout-dialog__field{display:flex;flex-direction:column;gap:6px}
.checkout-dialog__field input{padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px}
.checkout-dialog__row{display:flex;gap:12px;flex-wrap:wrap}
.checkout-dialog__row .field-flex{flex:1 1 160px;display:flex;flex-direction:column;gap:6px}
.checkout-dialog__checkbox{display:flex;align-items:center;gap:8px}
.checkout-dialog__error{color:#b91c1c;display:none;margin-top:4px}
.checkout-dialog__actions{display:flex;gap:10px;justify-content:flex-end;margin-top:8px;flex-wrap:wrap}
.checkout-dialog__actions button{min-width:110px}
@media (max-width:900px){
  .checkout-card{padding:16px}
}
.checkout-submit{width:100%}
@media (max-width:560px){
  .checkout-table{min-width:440px}
}
.cart-summary__warning{color:#b91c1c;font-weight:600;align-self:flex-start;margin-top:4px}
.cart-table th:first-child{text-align:left}
.cart-table td:first-child{min-width:220px}
.cart-pill-group{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.muted{color:#6b7280}
.badge{display:inline-block;min-width:18px;padding:0 6px;margin-left:6px;border-radius:999px;background:#ef4444;color:#fff;font-size:.75rem;line-height:18px;text-align:center;vertical-align:middle}
.blog-list, .home-blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.blog-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow: hidden; display: flex; flex-direction: column; }
.blog-card .blog-cover { width: 100%; height: 160px; object-fit: cover; display: block; }
.blog-card .blog-body { padding: 12px 14px; }
.blog-card .excerpt { color: #555; font-size: .95rem; margin: 8px 0 0; line-height: 1.45; }
.blog-card.mini { flex-direction: row; align-items: center; }
.blog-card.mini .blog-cover { width: 120px; height: 80px; border-radius: 8px; margin: 8px; }
.blog-card.mini .blog-body { padding: 8px 12px; }
.home-blog { margin-top: 28px; padding: 16px; background: #f7f8fa; border-radius: 14px; }
.home-blog-header { display:flex; align-items:center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.home-blog .see-all-link { white-space: nowrap; }
.page-blog .blog-search { display:flex; gap:8px; margin: 8px 0 12px; }
.page-blog-post .blog-post header { margin-bottom: 12px; }
.page-blog-post .blog-post .blog-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; }
.page-blog-post .blog-content { margin-top: 12px; line-height: 1.7; }

html, body { height: 100%; }
/* Typography base: Inter z fallbackami, lepsza czytelność */
body {
  font-family: Inter, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: #f7fafd;
  margin: 0;
  color: #1a2a3a;
  display: flex;
  flex-direction: column;
}
html { font-size: 16px; }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1,h2,h3 { line-height: 1.25; letter-spacing: .1px; }
p,li { line-height: 1.6; }
button, input, select { font-family: inherit; }
/* --- Global topbar (shared with panel klienta) --- */
.site-topbar{
  display:flex;
  align-items:center;
  gap:24px;
  padding:18px clamp(16px, 4vw, 32px);
  background:linear-gradient(135deg, #1d4ed8, #2563eb 58%, #60a5fa);
  color:#fff;
  box-shadow:0 20px 38px rgba(37,99,235,.25);
  position:relative;
  z-index:1000;
}
.user-topbar__left{ display:flex; align-items:center; gap:18px; flex-shrink:0; }
.site-topbar .nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(15,23,42,.18);
  color:#fff;
  cursor:pointer;
  transition:background .25s ease, border-color .25s ease, transform .2s ease;
}
.site-topbar .nav-toggle:focus-visible{outline:2px solid rgba(255,255,255,.55);outline-offset:3px;}
.site-topbar .nav-toggle:hover{background:rgba(15,23,42,.28);border-color:rgba(255,255,255,.55);}
.site-topbar .nav-toggle:active{transform:scale(.94);}
.nav-toggle__bar{display:block;width:20px;height:2px;background:#fff;border-radius:999px;transition:opacity .2s ease,transform .2s ease;}
.nav-toggle__bar + .nav-toggle__bar{margin-top:4px;}
.mobile-header-cart{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:10px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(15,23,42,.18);
  color:#fff;
  text-decoration:none;
  position:relative;
  transition:background .2s ease,border-color .2s ease,transform .16s ease;
  min-height:46px;
  white-space:nowrap;
}
.mobile-header-cart:hover{background:rgba(15,23,42,.28);border-color:rgba(255,255,255,.45);}
.mobile-header-cart:active{transform:scale(.98);}
.mobile-header-cart:focus-visible{outline:2px solid rgba(255,255,255,.6);outline-offset:3px;}
.mobile-header-cart--active{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.6);color:#fff;}
.mobile-header-cart__icon{font-size:1.35rem;line-height:1;display:flex;align-items:center;justify-content:center;}
.mobile-header-cart__badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  background:#fff;
  color:#b91c1c;
  border-radius:999px;
  font-weight:700;
  font-size:.7rem;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(15,23,42,.18);
  transition:opacity .2s ease;
}
.cart-badge--zero{opacity:0;}
.user-brand{display:flex;flex-direction:column;gap:2px;color:#fff;text-decoration:none;font-weight:600;letter-spacing:.02em;}
.user-brand__icon{font-size:28px;line-height:1;}
.user-brand__name{font-size:17px;text-transform:uppercase;letter-spacing:.12em;}
.user-brand__section{font-size:13px;font-weight:500;opacity:.88;letter-spacing:.08em;}
.user-topnav{
  display:flex;
  align-items:center;
  gap:0;
  background:rgba(15,23,42,.18);
  border-radius:20px;
  padding:6px;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 20px 34px -22px rgba(15,23,42,.55);
  overflow:visible;
  flex:1 1 auto;
  min-width:0;
  padding-right:10px;
}
.user-topnav__link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 20px;
  color:#fff;
  font-weight:600;
  background:transparent;
  border-radius:12px;
  text-decoration:none;
  transition:background .2s ease, color .2s ease;
  white-space:nowrap;
}
.user-topnav__link + .user-topnav__link{ border-left:1px solid rgba(255,255,255,.24); }
.user-topnav__link:hover{ background:rgba(255,255,255,.15); color:#fff; }
.user-topnav__icon{ font-size:18px; }
.user-topnav > .cart-wrap{ position:relative; display:flex; align-items:center; }
.user-topnav > .cart-wrap > .user-topnav__link{ border-left:1px solid rgba(255,255,255,.24); color:#fff; }
.user-topnav > .cart-wrap > .user-topnav__link .cart-label{ display:inline-flex; align-items:center; font-weight:600; }
.user-topnav > .cart-wrap > .user-topnav__link .cart-total{ font-weight:700; }
.user-topnav > .cart-wrap > .user-topnav__link .cart-badge{ margin-left:6px; }
.user-topnav > .cart-wrap > .user-topnav__link .cart-sep{ opacity:.75; }
.user-account{ display:inline-flex; align-items:center; gap:6px; color:#fff; font-weight:600; flex-wrap:nowrap; max-width:260px; min-width:0; overflow:hidden; }
.site-topbar .user-account__name{ display:none; }
.site-topnav__cart{ position:relative; display:flex; align-items:center; }
.user-topbar__actions{
  margin-left:auto;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  flex:0 0 auto;
  min-width:0;
  gap:18px;
}
.site-topbar .user-topbar__actions{ align-self:flex-start; }
.user-account__divider{ opacity:.6; }
.user-account__link{
  display:inline;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  background:none;
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  transition:color .2s ease;
}
.user-account__link:hover,
.user-account__link:focus{ color:#dbeafe; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.user-account__logout-form{ display:inline; margin:0; padding:0; }
.user-topbar__cart{position:relative;display:flex;align-items:center;margin:0;}
.user-topbar__cart-trigger{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.3);
  background:rgba(15,23,42,.16);
  color:#fff;
  font-weight:600;
  text-decoration:none;
  transition:background .2s ease,border-color .2s ease,transform .16s ease;
}
.user-topbar__cart-trigger:hover{background:rgba(15,23,42,.26);border-color:rgba(255,255,255,.45);}
.user-topbar__cart-trigger:active{transform:scale(.98);}
.user-topbar__cart-trigger:focus-visible{outline:2px solid rgba(255,255,255,.6);outline-offset:3px;}
.user-topbar__cart-icon{font-size:1.6rem;line-height:1;display:flex;align-items:center;justify-content:center;}
.user-topbar__cart-text{display:flex;flex-direction:column;gap:2px;align-items:flex-start;min-width:0;}
.user-topbar__cart-label{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;opacity:.85;line-height:1;}
.user-topbar__cart-total{font-size:1.02rem;font-weight:700;color:#fff;line-height:1;white-space:nowrap;}
.user-topbar__cart-badge--desktop{margin-left:6px;display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;background:#fff;color:#b91c1c;border-radius:999px;padding:0 6px;box-shadow:0 4px 14px rgba(15,23,42,.18);}
.user-topbar__cart-badge--mobile{display:none;}
.mobile-header-cart .user-topbar__cart-label{display:block;}
.mobile-header-cart .user-topbar__cart-total{display:block;}
/* New wrapper that keeps header + search together sticky */
/* Wrapper zawsze widoczny (zmiana sticky -> fixed) */
.topbar-sticky{position:fixed;left:0;right:0;top:0;z-index:1100;background:transparent;box-shadow:0 2px 8px rgba(0,0,0,.06);} 
.topbar-sticky{transition:box-shadow .3s ease, background .3s ease, backdrop-filter .3s ease;}
.topbar-sticky .site-topbar{transition:padding .35s cubic-bezier(.4,.0,.2,1), height .35s ease, background .3s ease; background:linear-gradient(135deg, #1d4ed8, #2563eb 58%, #60a5fa); color:#fff; border-bottom:1px solid rgba(255,255,255,.18);} 
.topbar-sticky .search-advanced{transition:padding .35s cubic-bezier(.4,.0,.2,1), transform .35s ease, opacity .35s ease;}
/* Stan skompresowany */
.topbar-sticky.topbar-compress{backdrop-filter:saturate(160%) blur(8px); background:transparent; box-shadow:0 6px 24px -6px rgba(15,23,42,.28);} 
.topbar-sticky.topbar-compress .site-topbar{padding:2px 14px; background:rgba(37,99,235,.95); box-shadow:0 18px 34px -18px rgba(15,23,42,.68); border-bottom:1px solid rgba(148,163,255,.55);}
.topbar-sticky.topbar-compress .user-brand{transform:scale(.86); transform-origin:left center;}
.topbar-sticky.topbar-compress .user-topnav{padding:4px; transform:scale(.9); transform-origin:left center;}
.topbar-sticky.topbar-compress .user-topnav__link{padding:6px 12px;}
.topbar-sticky.topbar-compress .logo{font-size:1.02em; letter-spacing:.4px;}
.topbar-sticky.topbar-compress .search-advanced{transform:scale(.78); opacity:.9; padding:4px 12px;}
.topbar-sticky.topbar-compress .search-advanced .omni-input-wrap{border-radius:30px !important;}
@media (max-width:900px){
  .topbar-sticky.topbar-compress .site-topbar{padding:4px 12px;}
  .topbar-sticky.topbar-compress .user-topnav{transform:scale(.92);}
  .topbar-sticky.topbar-compress .search-advanced{transform:scale(.82); padding:4px 10px;} 
}
/* Inside the sticky wrapper, keep header static to let the wrapper handle stickiness */
.topbar-sticky .site-topbar{position:static;top:auto;z-index:auto}
/* Header loses its own sticky to avoid double stacking; spacing retained by wrapper */
/* spacing below the whole topbar */
/* Kompensacja wysokości header+search (przybliżona) */
/* Wysokość kompensująca stały topbar (header + search)
  Domyślne wartości na :root – JS precyzyjnie koryguje w runtime */
:root { --topbar-h: 148px; }
@media (max-width: 1024px){ :root { --topbar-h: 136px; } }
@media (max-width: 820px){ :root { --topbar-h: 124px; } }
@media (max-width: 640px){ :root { --topbar-h: 116px; } }
body { padding-top: var(--topbar-h); transition: padding-top .28s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce){ body{ transition: none; } }
/* Reset wrappera lewego menu kategorii w trybie inline aby nie generował białego paska */
aside.left-cats{background:transparent !important;box-shadow:none !important;border:0 !important;padding:0 !important;margin:0 !important;width:auto !important;overflow:visible !important;display:contents !important;}
aside.left-cats button.left-cats-tab{position:relative;}
/* Mniejsze odsunięcie na stronie rejestracji (klasa dodawana przez body data-page lub selektor po URL można rozszerzyć) */
body.signup-page { padding-top:0; }
/* Korekty layoutu tylko dla strony rejestracji: mniej marginesów aby stopka była wyżej */
body.signup-page main { margin:8px 12px 0; flex:0 0 auto; }
body.signup-page .auth-wrapper { padding:12px 12px 16px; }
body.signup-page footer { margin-top:12px !important; }
body.signup-page .search-advanced{padding:8px 12px;border-top:none;border-bottom:1px solid #e5e7eb}
body.signup-page .auth-card{margin-top:8px}
/* Rejestracja pełna szerokość */
body.signup-page .auth-card{width:100% !important;max-width:100% !important;border-radius:28px !important;border:1px solid #e5e7eb !important;box-shadow:0 4px 28px -6px rgba(0,0,0,.08),0 2px 10px -2px rgba(0,0,0,.05) !important;grid-template-columns:1fr 1fr;overflow:hidden}
@media (max-width:1100px){ body.signup-page .auth-card{grid-template-columns:1fr;} }
body.signup-page .form-pane{padding:40px 6vw 56px;}
body.signup-page .promo{padding:40px 6vw 40px;}
body.signup-page .auth-wrapper{padding:0 !important;}
/* Usuń sztuczne rozciąganie wysokości na stronie rejestracji aby stopka była w pełni widoczna */
body.signup-page main, body.signup-page .auth-wrapper { min-height:0 !important; }
body.signup-page .auth-wrapper { align-items:stretch; }
/* main bez dodatkowego marginesu – kompensuje body padding */
.topbar-sticky + main { margin-top: 0; }
/* Wysokość topbaru ustawiana dynamicznie w JS (header.php); brak statycznych wartości zależnych od width */
/* Fallback gdy JS doda klasę .topbar-fallback (np. jeśli fixed koliduje) */
.topbar-fallback{position:sticky !important;}

/* Kompresja top marginesu na stronie koszyka (jak rejestracja/logowanie) */
/* Cart & Checkout: użyj globalnego padding-top (var(--topbar-h)) i jedynie koryguj marginesy */
/* body.cart-page inherits global topbar padding */
body.cart-page main { margin:6px 10px 0; padding-top:calc(var(--cart-top-offset,0px) + 2px); }
body.cart-page .breadcrumbs-box { margin:10px 10px 2px; }
body.cart-page .content.cart-shell { padding:22px 20px 26px; border-radius:22px; box-shadow:0 18px 42px rgba(15,23,42,.1); }
body.cart-page .content.cart-shell h1 { margin:0 0 14px; font-size:1.85rem; letter-spacing:-.3px; }
body.cart-page .cart-return { margin:2px 0 8px; }
/* Checkout podobnie jak koszyk */
/* body.checkout-page inherits global topbar padding */
body.checkout-page main { margin:6px 10px 0; padding-top:calc(var(--checkout-extra-offset, 0px) + 4px); }
body.checkout-page .breadcrumbs-box { margin:10px 10px 2px; }
body.checkout-page .content.checkout-shell { padding:0 12px 18px; border-radius:22px; box-shadow:0 18px 42px rgba(15,23,42,.1); }
body.checkout-page .content.checkout-shell h1 { margin:0 0 4px; font-size:1.82rem; letter-spacing:-.2px; }
body.checkout-page .checkout-shell { gap:0; }
body.checkout-page .cart-return { margin:0; padding:0; display:flex; justify-content:flex-start; align-items:center; line-height:1; }
body.checkout-page .checkout-grid { margin-top:4px; }
.pay-brand{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.pay-brand img{height:18px;width:auto;display:inline-block}
.stock-warn{background:#fee2e2;color:#991b1b;border:1px solid #fecaca;padding:8px 10px;border-radius:8px;margin:10px 0;font-size:.95rem}
.stock-warn small{opacity:.9}
.stock-warn-inline{display:inline-flex;align-items:center;background:#fee2e2;color:#991b1b;border:1px solid #fecaca;padding:2px 8px;border-radius:999px;font-size:.78rem;font-weight:600;letter-spacing:.2px;margin-top:6px}
.cart-shell{display:flex;flex-direction:column;gap:20px}
.cart-return{margin:6px 0 6px}
.checkout-page .cart-return{margin:0;padding:0;display:flex;align-items:center;line-height:1}
.checkout-page .checkout-grid{margin-top:4px}
.cart-return-btn{border:1px solid #d1d5db;border-radius:10px;padding:8px 14px;background:#fff;color:#1f2937;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:background .2s ease,border-color .2s ease,color .2s ease}
.cart-return-btn:hover{background:#f8fafc;border-color:#cbd5f5;color:#0f172a}
.cart-table-wrap{margin-top:12px;overflow:auto;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 16px 36px rgba(15,23,42,.08);scrollbar-width:thin}
.cart-table-wrap::-webkit-scrollbar{height:10px}
.cart-table-wrap::-webkit-scrollbar-thumb{background:#cbd5f5;border-radius:999px}
.cart-table-wrap:focus{outline:2px solid #2563eb;outline-offset:2px}
.cart-table{width:100%;border-collapse:collapse;min-width:720px}
.cart-table th,.cart-table td{padding:12px 14px;vertical-align:top}
.cart-table thead th{position:sticky;top:0;background:#f8fafc;border-bottom:2px solid #e5e7eb;font-size:.9rem;text-align:left;z-index:1}
.cart-table tbody tr:not(:last-child) td{border-bottom:1px solid #eef2ff}
.cart-table tbody tr:hover{background:#f8fafc}
.cart-table tbody tr:hover{background:#f8fafc}
.cart-item{display:flex;align-items:center;gap:12px}
.cart-item a{font-weight:600;color:#0f172a;text-decoration:none}
.cart-item a:hover{text-decoration:underline}
.cart-thumb{width:52px;height:52px;object-fit:cover;border-radius:10px;vertical-align:middle;box-shadow:0 1px 4px rgba(15,23,42,.12)}
.cart-qty{width:90px;padding:8px 10px;border-radius:10px;border:1px solid #cbd5f5;font-size:1rem;transition:border-color .2s ease,box-shadow .2s ease}
.cart-qty:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);outline:none}
.cart-pill{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:.75rem;font-weight:600;margin-top:6px}
.cart-pill--min{background:#fef3c7;color:#92400e;border:1px solid #fcd34d}
.cart-pill--stock{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca;margin-left:6px}
.cart-pill--supply{background:#e0f2fe;color:#0369a1;border:1px solid #bae6fd}
.cart-remove{border:0;background:transparent;color:#ef4444;font-weight:600;padding:4px 8px;border-radius:8px;cursor:pointer;transition:background .2s ease,color .2s ease}
.cart-remove:hover{background:#fee2e2;color:#b91c1c}
.cart-summary{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:16px;margin-top:20px}
.cart-summary__left{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.cart-clear{border:1px solid #d1d5db;border-radius:10px;padding:8px 14px;background:#fff;color:#374151;font-weight:600;cursor:pointer;transition:background .2s ease,border-color .2s ease}
.cart-clear:hover{background:#f8fafc;border-color:#cbd5f5}
.cart-summary__actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px;flex:1}
.cart-summary__payment{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.cart-summary__ctas{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.cart-summary__ctas > button,
.cart-summary__ctas > a,
.cart-summary__ctas > .btn{border-radius:10px;padding:8px 14px}
.cart-summary__ctas > a{text-decoration:none}
.cart-summary__totals{display:flex;flex-direction:column;gap:4px;align-items:flex-end;text-align:right}
.cart-summary__row{font-size:.95rem;color:#1f2937}
.cart-summary__row--base{color:#475569;font-weight:500}
.cart-summary__row--savings{color:#0f766e;font-weight:600}
.cart-summary__row--total{font-size:1.2rem;font-weight:700;color:#0f172a;margin-top:2px}
.cart-price{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.cart-price__old{font-size:.88rem;color:#94a3b8;text-decoration:line-through}
.cart-price__new{font-size:1.05rem;font-weight:700;color:#0f172a}
.cart-price__meta{font-size:.78rem;color:#0f766e;font-weight:600}
.cart-line{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.cart-line__old{font-size:.92rem;color:#94a3b8;text-decoration:line-through}
.cart-line__new{font-size:1.05rem;font-weight:700;color:#0f172a}
.cart-line__meta{font-size:.82rem;color:#0f766e;font-weight:600}
.cart-card{border:1px solid #e5e7eb;border-radius:16px;padding:18px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.cart-card__header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.cart-card__header h2{margin:0;font-size:1.2rem}
.cart-card__header .secondary{flex:0 0 auto}
.cart-estimator{display:flex;flex-direction:column;gap:12px}
.cart-estimator__options{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.cart-estimator__carriers{display:flex;flex-direction:column;gap:10px}
.cart-estimator__carrier-list{display:flex;flex-direction:column;gap:6px}
.cart-estimator__totals{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.cart-estimator__row{display:flex;justify-content:space-between;margin:6px 0;gap:12px;align-items:center}
.cart-estimator__row strong{font-size:1rem}
.cart-estimator__row.is-total{border-top:1px solid #e5e7eb;padding-top:6px;margin-top:8px}
@media (max-width:900px){
  .cart-table{min-width:640px}
}
@media (max-width:740px){
  .cart-summary{flex-direction:column;align-items:stretch}
  .cart-summary__left{width:100%;justify-content:space-between}
  .cart-summary__actions{align-items:stretch}
  .cart-summary__payment{flex-direction:column;align-items:flex-start;width:100%}
  .cart-summary__ctas{flex-direction:column;align-items:stretch;width:100%}
  .cart-summary__ctas > *{width:100%;text-align:center}
  .cart-summary__ctas > span{padding:0;text-align:left}
  .cart-summary__totals{width:100%;align-items:flex-start;text-align:left}
  .cart-card__header{flex-direction:column;align-items:flex-start}
  .cart-card__header .secondary{width:100%}
}
@media (max-width:560px){
  .cart-table{min-width:520px}
  .cart-table th,.cart-table td{padding:10px 12px}
  .cart-qty{width:100%}
  .cart-return{margin-top:4px}
}
@media (max-width:768px){
  body.cart-page main{padding:calc(var(--cart-top-offset,0px) + 8px) 0 24px;margin:0}
  body.cart-page .content.cart-shell{padding:18px 16px;border-radius:20px;box-shadow:0 14px 34px rgba(15,23,42,.1)}
  body.checkout-page main{padding:calc(var(--checkout-extra-offset,0px) + 6px) 0 22px;margin:0}
  body.checkout-page .content.checkout-shell{padding:14px 12px 18px;border-radius:20px;box-shadow:0 14px 34px rgba(15,23,42,.1)}
  body.checkout-page .checkout-shell{gap:0}
  body.checkout-page .cart-return{margin:0;padding-bottom:0}
  body.checkout-page .checkout-grid{margin-top:4px}
  .cart-shell{gap:18px}
  .cart-return{order:-1;display:flex;justify-content:flex-start;margin:0}
  .cart-return-btn{width:100%;justify-content:center}
  .cart-table-wrap{overflow:visible;border:0;background:transparent;box-shadow:none;padding:0;margin-top:8px}
  .cart-table{display:block;width:100%;min-width:0;border-collapse:separate;border-spacing:0}
  .cart-table thead{display:none}
  .cart-table tbody{display:flex;flex-direction:column;gap:16px}
  .cart-table tbody tr{display:flex;flex-direction:column;gap:14px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:18px 20px;box-shadow:0 14px 32px rgba(15,23,42,.08)}
  .cart-table tbody tr:hover{background:#fff}
  .cart-table tbody tr:not(:last-child) td{border-bottom:0}
  .cart-table__cell{display:flex;flex-direction:column;gap:8px;align-items:flex-start;justify-content:flex-start;padding:0 !important;border:0 !important}
  .cart-table__cell::before{content:attr(data-label);display:block;font-size:.78rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.08em}
  .cart-table__cell--product{gap:12px}
  .cart-table__cell--product::before{display:none}
  .cart-table__cell--product .cart-item{flex-direction:row;align-items:flex-start;gap:14px}
  .cart-table__cell--product .cart-item a{font-size:1.02rem;line-height:1.35}
  .cart-table__cell--sku,.cart-table__cell--price,.cart-table__cell--total{font-weight:600;color:#0f172a}
  .cart-table__cell--qty{gap:12px}
  .cart-table__cell--qty::before{margin-bottom:2px}
  .cart-table__cell--qty .cart-qty{width:100%}
  .cart-table__cell--qty .cart-pill-group{margin-top:0;width:100%}
  .cart-price,.cart-line{align-items:flex-start;text-align:left}
  .cart-price__meta,.cart-line__meta{text-align:left}
  .cart-table__cell--actions{align-self:flex-end;width:100%;justify-content:flex-end}
  .cart-table__cell--actions::before{display:none}
  .cart-table__cell--actions .cart-remove{width:100%;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;color:#ef4444;font-weight:600;text-align:center}
  .cart-table__cell--actions .cart-remove:hover{background:#fee2e2;color:#b91c1c}
  .cart-thumb{width:64px;height:64px;border-radius:12px}
  .cart-summary{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 12px 30px rgba(15,23,42,.08);padding:20px 18px;gap:18px}
  .cart-summary__left{flex-direction:column;align-items:stretch;gap:12px}
  .cart-summary__payment{flex-direction:column;align-items:flex-start;gap:8px}
  .cart-summary__payment label{display:flex;align-items:center;gap:8px;width:100%}
  .cart-summary__totals{width:100%;align-items:flex-start;text-align:left}
  .cart-summary__ctas{flex-direction:column;gap:12px;width:100%}
  .cart-summary__ctas > *{width:100%}
  .cart-summary__ctas > button,
  .cart-summary__ctas > a,
  .cart-summary__ctas > .btn{display:flex;justify-content:center}
  .cart-summary__ctas > span{padding:0;text-align:left}
  .cart-summary__row--total{font-size:1.1rem}
  .cart-card{box-shadow:0 12px 30px rgba(15,23,42,.08);padding:20px 18px}
  .cart-card__header{flex-direction:column;align-items:flex-start;gap:10px}
  .cart-card__header .secondary{width:100%}
  .cart-estimator__options{flex-direction:column;align-items:flex-start;gap:10px}
  .cart-estimator__carrier-list label{display:flex;flex-direction:row;align-items:center;gap:8px}
}
@media (max-width:520px){
  body.cart-page .content.cart-shell{padding:18px 14px;border-radius:18px}
  .user-topbar__actions{flex-direction:column;align-items:flex-end;gap:10px;}
  .cart-table__cell::before{font-size:.72rem}
  .cart-table__cell--product .cart-item{flex-direction:column;align-items:flex-start}
  .cart-table__cell--product .cart-item a{font-size:.98rem}
  .cart-summary{padding:18px 16px}
  .cart-card{padding:18px 16px}
  .cart-summary__row--total{font-size:1.05rem}
  .cart-pill{font-size:.72rem;padding:3px 8px}
  .cart-table__cell--actions .cart-remove{padding:7px 10px}
}
.logo{font-size:1.5em;font-weight:800;color:#fff;display:flex;align-items:center;gap:8px;text-decoration:none;}
.site-topnav__cart{position:relative;display:flex;align-items:center;}
.site-topnav__cart-link{position:relative;}

@media (max-width:1180px){
  .site-topbar{gap:18px;padding:16px clamp(14px, 5vw, 24px);}
  .user-topnav__link{padding:9px 16px;}
}

@media (max-width:1024px){
  .site-topbar{flex-wrap:wrap;align-items:flex-start;gap:16px;}
  .site-topbar .nav-toggle{display:inline-flex;}
  .user-topnav{order:3;width:100%;justify-content:flex-start;flex-wrap:wrap;row-gap:8px;column-gap:6px;}
  .user-account{margin-left:auto;}
}

@media (max-width:820px){
  .user-topnav{display:none;}
  .user-topbar__actions{gap:10px;}
  .user-topbar__cart-trigger{padding:8px 14px;gap:10px;}
  .user-topbar__cart-text{flex-direction:row;align-items:center;gap:6px;}
  .user-topbar__cart-label{font-size:.68rem;letter-spacing:.06em;}
  .user-topbar__cart-total{font-size:.92rem;}
  .user-topbar__cart-badge--desktop{display:none;}
  .user-topbar__cart-badge--mobile{display:flex;}
  .mobile-header-cart__badge{top:-4px;right:-4px;}
}

@media (max-width:640px){
  .site-topbar{padding:12px 16px;gap:12px;align-items:flex-start;}
  .user-topbar__left{flex:1 1 auto;display:flex;flex-direction:column;align-items:flex-start;gap:10px;}
  .user-topbar__left .user-brand{order:1;}
  .user-topbar__left .nav-toggle{order:2;align-self:flex-start;}
  .user-brand__icon{font-size:24px;}
  .user-brand__name{font-size:14px;}
  .user-brand__section{font-size:11px;}
  .mobile-header-cart{gap:8px;padding:8px 12px;min-height:40px;}
  .user-topbar__cart-icon{font-size:1.4rem;}
  .user-topbar__cart-text{gap:2px;}
  .user-topbar__cart-label{font-size:.64rem;}
  .user-topbar__cart-total{font-size:.92rem;}
  .user-topbar__actions{margin-left:auto;align-items:flex-end;gap:10px;}
  .user-account{font-size:.9rem;gap:4px;}
  .site-topbar .user-account__name{display:none;}
}
@media (max-width:520px){
  .site-topbar{padding:10px 14px;gap:10px;}
  .user-topbar__left{gap:8px;}
  .user-brand{flex-direction:row;align-items:center;gap:6px;}
  .user-brand__icon{font-size:22px;}
  .user-brand__name{font-size:13px;}
  .user-brand__section{display:none;}
  .user-topbar__left .nav-toggle{width:42px;height:42px;}
  .mobile-header-cart,
  .user-topbar__cart-trigger{padding:6px 10px;gap:6px;min-height:36px;}
  .user-topbar__cart-icon{font-size:1.3rem;}
  .user-topbar__cart-text{gap:2px;}
  .user-topbar__cart-total{font-size:.86rem;}
  .user-topbar__actions{margin-left:auto;flex-direction:column;align-items:flex-end;gap:6px;}
  .user-account{font-size:.8rem;gap:4px;}
  .user-account__divider{display:none;}
  .user-account__link{padding:0 2px;}
}
body.mobile-nav-open{overflow:hidden;}
.mobile-nav{position:fixed;inset:0;z-index:2000;display:flex;opacity:0;pointer-events:none;transition:opacity .2s ease;}
.mobile-nav.open{opacity:1;pointer-events:auto;}
.mobile-nav__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(2px);transition:opacity .2s ease;opacity:0;}
.mobile-nav.open .mobile-nav__backdrop{opacity:1;}
.mobile-nav__panel{position:relative;margin-left:auto;width:min(82vw,360px);max-width:100%;height:100%;background:#fff;box-shadow:0 20px 48px rgba(15,23,42,.25);display:flex;flex-direction:column;transform:translateX(12%);transition:transform .24s cubic-bezier(.25,.1,.25,1);overflow:auto;padding:18px 20px 32px;}
.mobile-nav.open .mobile-nav__panel{transform:translateX(0);}
.mobile-nav__header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.mobile-nav__header h2{margin:0;font-size:1.1rem;font-weight:700;color:#0f172a;}
.mobile-nav__close{border:0;background:transparent;font-size:1.8rem;line-height:1;padding:4px 8px;border-radius:8px;cursor:pointer;color:#1f2937;}
.mobile-nav__close:hover{background:#eef2ff;color:#1d4ed8;}
.mobile-nav__section{display:flex;flex-direction:column;gap:8px;margin-top:12px;}
.mobile-nav__link{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eef2f7;text-decoration:none;color:#1f2937;font-weight:600;}
.mobile-nav__link:hover{color:#1d4ed8;}
.mobile-nav__logout{margin:0;}
.mobile-nav__logout-btn{border:0;background:none;width:100%;text-align:left;padding:0;cursor:pointer;font:inherit;}
.mobile-nav__logout-btn:hover{color:#1d4ed8;}
.mobile-nav__subtitle{margin:4px 0 0;font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b;}
.mobile-nav__cats{display:flex;flex-direction:column;gap:6px;margin-top:10px;min-height:48px;}
.mobile-nav__cat-link{display:block;padding:8px 0;border-bottom:1px solid #eef2f7;text-decoration:none;color:#1f2937;font-weight:500;}
.mobile-nav__cat-link:hover{color:#2563eb;}
.mobile-nav__loader{padding:8px 0;color:#64748b;font-size:.9rem;}
.mobile-nav__empty{margin:8px 0;color:#64748b;font-size:.9rem;}
@media (min-width: 821px){
  .mobile-nav{display:none !important;}
}
.fab-stack{position:fixed;right:18px;bottom:18px;display:none;flex-direction:column-reverse;gap:12px;z-index:2401;align-items:flex-end;}
.fab-stack > *{box-shadow:0 18px 44px -18px rgba(15,23,42,.4);}
.search-fab{height:54px;border-radius:999px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s ease,box-shadow .2s ease,transform .16s ease,opacity .18s ease;position:relative;border:1px solid transparent;}
.search-fab{width:54px;background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#f8fafc;border-color:rgba(37,99,235,.4);}
.search-fab:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 22px 48px -18px rgba(15,23,42,.48);}
.search-fab:active{transform:scale(.95);}
.search-open .search-fab{background:#0f172a;color:#fff;box-shadow:0 16px 36px -18px rgba(15,23,42,.6);}
.search-fab:focus-visible{outline:2px solid rgba(255,255,255,.85);outline-offset:3px;}
@media (max-width:640px){
  .fab-stack{display:flex;right:72px;bottom:20px;}
}
.search-overlay{position:fixed;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(3px);display:none;opacity:0;pointer-events:none;transition:opacity .22s ease;z-index:2199;}
.search-open .search-overlay{display:block;opacity:1;pointer-events:auto;}
@media (max-width:640px){
  .search-overlay{background:transparent;backdrop-filter:none;}
  body.search-open{overflow:hidden;}
  .topbar-sticky .search-advanced{display:none;}
  .search-open .topbar-sticky .search-advanced{display:block;position:fixed;top:calc(var(--topbar-h,116px)+10px);left:50%;transform:translateX(-50%);width:min(96vw,560px);background:#fff;border-radius:22px;box-shadow:0 24px 42px rgba(15,23,42,.16);padding:20px 18px 24px;z-index:2200;max-height:calc(92vh - var(--topbar-h,116px) - 20px);overflow:auto;}
  .search-open .topbar-sticky .search-advanced .omni{max-width:100%;}
  .search-open .topbar-sticky .search-close{display:block;}
  .search-open .topbar-sticky{filter:none;}
  .search-open .topbar-sticky .site-topbar{
    position:relative;
    z-index:1;
    filter:none;
  }
}
.search-close{position:absolute;top:14px;right:16px;background:transparent;border:0;color:#475569;font-size:1.8rem;line-height:1;padding:6px;border-radius:12px;cursor:pointer;transition:background .18s ease,color .18s ease;display:none;}
.search-close:hover{background:#e2e8f0;color:#1d4ed8;}
.search-close:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px;}
/* Mini-cart tweaks */
.mini-cart .mc-row:hover{ background:#f8fafc; border-radius:10px; }
.mini-cart .mc-head a{ color:#1e40af; }
.mini-cart .mc-head a:hover{ text-decoration:underline; }
/* Ensure mini cart is above search overlay */
.cart-wrap{ position:relative; z-index:1501; }
.mini-cart{ z-index:1502 !important; }
/* Generic button styles + blue variants */
.btn{ display:inline-flex; align-items:center; gap:8px; border-radius:8px; font-weight:600; text-decoration:none; cursor:pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .06s ease; }
.btn-sm{ padding:6px 10px; font-size:.85rem; line-height:1.1; border-radius:10px; }
.btn:hover{ box-shadow:0 4px 12px rgba(37,99,235,.18); }
.btn:active{ transform: translateY(1px); }
.btn-blue{ border:1px solid #2563eb; color:#2563eb; background:transparent; }
.btn-blue:hover{ background:#2563eb; color:#ffffff; border-color:#1d4ed8; }
.btn-blue--filled{ background:#2563eb; color:#ffffff; border:1px solid #2563eb; }
.btn-blue--filled:hover{ background:#1d4ed8; border-color:#1d4ed8; }
.breadcrumbs{font-size:.9rem;color:#1e3a8a;margin:8px 0}
.breadcrumbs a{color:#1d4ed8;text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline;color:#1e40af}
.breadcrumbs span{margin:0 6px}
/* Bordered container for breadcrumbs */
.breadcrumbs-box{background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:10px 14px;margin:16px 32px 0}
.breadcrumbs-box.delivery-head{margin-bottom:16px}
.breadcrumbs-box.delivery-head .breadcrumbs{font-size:1.1rem;font-weight:600}
.delivery-sep{border:0;border-top:1px solid #e5e7eb;margin:16px 32px}
.login-btn {
  background: #f7fafd;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
}
main {
  display: flex;
  margin: 32px;
  flex: 1 0 auto;
}
.site-main {
  display: block;
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 32px;
  flex: 1 0 auto;
}
/* Odstęp między galerią produktu a sekcją informacji */
main > .product-gallery { margin-right:32px; }
@media (max-width:1024px){
  main > .product-gallery { margin-right:24px; }
}
@media (max-width:820px){
  main > .product-gallery { margin-right:0; }
}

/* Layout produkt – nowy wrapper */
.product-main-layout { width:100%; display:flex; align-items:flex-start; gap:40px; flex-wrap:nowrap; }
.product-main-layout .product-gallery { margin-right:40px; display:flex; align-items:flex-start; gap:12px; flex:1 1 420px; }
.product-main-layout .product-info { margin-right:24px; flex:1 1 360px; }
.product-main-layout .product-info-inner { max-width:680px; }
.product-gallery .thumbs{display:flex;flex-direction:column;gap:6px;max-height:320px;overflow:auto;padding-right:4px;-webkit-overflow-scrolling:touch;}
.product-gallery .thumbs .thumb{flex:0 0 auto;}
.product-gallery .thumbs::-webkit-scrollbar{width:8px;}
.product-gallery .thumbs::-webkit-scrollbar-thumb{background:rgba(15,23,42,.2);border-radius:999px;}
.product-gallery .viewer{flex:1 1 0;min-width:0;max-width:480px;position:relative;}
.product-gallery .viewer picture{display:block;}
@media (max-width:1200px){
  .product-main-layout { gap:32px; }
  .product-main-layout .product-gallery { margin-right:32px; }
}
@media (max-width:1024px){
  .product-main-layout { gap:28px; }
  .product-main-layout .product-gallery { margin-right:24px; }
}
@media (max-width:900px){
  .product-main-layout { flex-direction:column; gap:24px; }
  .product-main-layout .product-gallery { margin-right:0; width:100%; flex-direction:column; }
  .product-gallery .thumbs{order:2; flex-direction:row; max-height:none; overflow-x:auto; overflow-y:hidden; padding:4px 0 2px; column-gap:8px; row-gap:0; margin-top:12px; margin-right:0; }
  .product-gallery .thumbs::-webkit-scrollbar{height:6px; width:auto;}
  .product-gallery .thumbs::-webkit-scrollbar-thumb{background:rgba(15,23,42,.15);}
  .product-gallery .viewer{order:1; max-width:100%;}
  .product-main-layout .product-info, .product-main-layout .product-info-inner { width:100%; max-width:none; }
}
@media (max-width:600px){
  .product-gallery .thumbs{gap:8px;}
  .product-gallery .thumbs .thumb{width:64px; height:64px;}
}
aside {
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #e0e7ef;
  padding: 24px;
  margin-right: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
aside h2 {
  margin-top: 0;
}
aside ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
aside ul li {
  margin: 12px 0;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}
.newsletter-btn {
  background: linear-gradient(90deg, #1e90ff, #007bff);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1em;
  margin-top: 24px;
  cursor: pointer;
}
.content {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #e0e7ef;
  padding: 32px;
  width: 100%;
  box-sizing: border-box; /* ważne przy zagnieżdżonych .content, aby padding mieścił się w 100% */
  overflow-x: hidden; /* zapobiegnij ucieczce karuzeli w poziomie */
}
.content h1 {
  font-size: 2em;
  font-weight: 800;
  color:#0f172a;
  margin: 0;

/* Usunięty layout dwukolumnowy i sidebar na stronie głównej */
.home-layout{ display:block; }
.sidebar{ display:none; }

/* Główny układ: sidebar (aside) + treść (content) w dwóch kolumnach */
main{
  display:flex;
  align-items:flex-start;
  gap:24px;
}
@media (max-width: 980px){
  main{ flex-direction:column; }
  aside{ margin-right:0; width:auto; }
}

/* --- Filter panel (TemplateMonster-like) --- */
.filter-panel{
  background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:12px; box-shadow:0 2px 8px rgba(16,24,40,.06);
}
.filter-header{ display:flex; align-items:center; justify-content:space-between; padding:6px 8px 10px; border-bottom:1px solid #eef2f7; margin:0 4px 8px; }
.filter-title{ font-weight:700; letter-spacing:.2px; color:#111827; }
.filter-clear{ color:#2563eb; font-weight:500; text-decoration:none; font-size:.9rem; }
.filter-clear:hover{ text-decoration:underline; }
.filter-block{ border-bottom:1px solid #eef2f7; }
.filter-block:last-child{ border-bottom:0; }
.filter-block__header{ width:100%; background:transparent; border:0; padding:10px 6px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; font-weight:600; color:#1f2937; }
.filter-block__header:hover{ background:#f8fafc; border-radius:8px; }
.filter-block__body{ padding:6px 6px 12px; display:none; }
.filter-block.is-open > .filter-block__body{ display:block; }
.chevron{ width:18px; height:18px; position:relative; }
.chevron::before{ content:''; position:absolute; inset:0; margin:auto; width:8px; height:8px; border-right:2px solid #6b7280; border-bottom:2px solid #6b7280; transform:rotate(-45deg); transition:transform .2s ease; }
.filter-block.is-open > .filter-block__header .chevron::before{ transform:rotate(45deg); }

.filter-list{ list-style:none; padding-left:0; margin:0; }
.filter-list li{ margin:4px 0; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid #e5e7eb; border-radius:999px; background:#fff; color:#1f2937; text-decoration:none; font-size:.9rem; }
.chip:hover{ border-color:#c7d2fe; background:#f5faff; color:#1d4ed8; }

.filter-form .price-row{ display:flex; gap:8px; }
.filter-form label{ display:flex; gap:6px; align-items:center; font-size:.9rem; color:#4b5563; }
.filter-form input[type=number]{ width:110px; padding:6px 8px; border:1px solid #e5e7eb; border-radius:8px; }
.filter-actions{ margin-top:10px; }
.btn-primary{ background:#2563eb; color:#fff; border:0; border-radius:8px; padding:8px 12px; cursor:pointer; font-weight:600; }
.btn-primary:hover{ background:#1d4ed8; }

.side-card {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(16,24,40,0.08), 0 1px 3px rgba(16,24,40,0.04);
  padding: 18px 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.side-card h3 {
  font-size: 1.1rem;
  margin: 0 0 14px 2px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-card h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 2px;
}

.categories-tree ul { list-style: none; padding-left: 8px; margin: 0; }
.categories-tree ul.root { padding-left: 4px; }
.categories-tree li { 
  position: relative; 
  margin: 2px 0; 
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.categories-tree li:hover {
  background: rgba(59, 130, 246, 0.04);
}

.categories-tree a.cat-link { 
  color: #374151; 
  text-decoration: none; 
  padding: 8px 12px; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-size: 0.95rem; 
  font-weight: 500; 
  letter-spacing: 0.2px; 
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.categories-tree a.cat-link::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.categories-tree a.cat-link:hover { 
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(2px);
}

.categories-tree a.cat-link.all { 
  font-weight: 600; 
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.06);
}

.categories-tree a.cat-link.all::before {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.categories-tree a.cat-link.active { 
  font-weight: 700; 
  color: #1d4ed8;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(29, 78, 216, 0.08));
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
}
/* Gdy jest toggle po lewej, ukryj kropeczkę przed linkiem, by nie wyglądało jak drugi przycisk */
.categories-tree .cat-item.has-children > a.cat-link::before { display:none; }

.categories-tree .cat-item { position: relative; }
/* Wyłączenie starych elementów akordeonu dla czystego wyglądu */
/* Nowy mechanizm akordeonu: przycisk obok kategorii głównej */
.categories-tree .cat-toolbar{ display:none; }
.categories-tree .cat-item{ display:block; }
.categories-tree .cat-item > .cat-tgl{ 
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  width:28px; 
  height:28px; 
  margin-right:8px; 
  border:1px solid #e2e8f0; 
  border-radius:8px; 
  background:linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
  color:#475569; 
  cursor:pointer; 
  font-weight:500; 
  line-height:1; 
  position:relative; 
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.categories-tree .cat-item > .cat-tgl .chev{ 
  transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1); 
  transform-origin:center; 
  transform: rotate(0deg); 
  width: 16px;
  height: 16px;
}
.categories-tree .cat-item.expanded > .cat-tgl .chev{ transform: rotate(90deg); }
.categories-tree .cat-item > .cat-tgl:hover{ 
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}
.categories-tree .cat-item > .cat-tgl:active{
  transform: translateY(0px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.categories-tree .cat-item > .cat-tgl--blank{ display:inline-block; width:28px; height:28px; margin-right:8px; visibility:hidden; }
.categories-tree a.cat-link:focus { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 6px; }
/* Wrapper na podlistę – to jego wysokość animujemy (stabilniejsza w gridzie) */
.categories-tree .cat-subwrap{
  grid-column: 1 / -1;
  display:block;
  height:0;
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition: height .28s ease, opacity .18s ease;
  will-change: height, opacity;
  min-height:0;
  position:relative;
  contain: layout paint;
}
.categories-tree .cat-item.expanded > .cat-subwrap{ opacity:1; visibility:visible; pointer-events:auto; }
.categories-tree .cat-subwrap > ul{ display:block; }
.categories-tree.cats-prep ul.cat-level{ display:none !important; }
.categories-tree.cats-prep .cat-subwrap{ display:none !important; visibility:hidden !important; height:0 !important; }
/* Podlisty wewnątrz wrappera mają pełną szerokość i brak dodatkowych marginesów */
.categories-tree .cat-subwrap > ul{ margin-top: 0; width: 100%; }
.categories-tree .cat-item.expanded > .cat-subwrap{ padding-top: 2px; padding-bottom: 16px; }
.categories-tree .cat-item.expanded > .cat-tgl{ 
  color:#1e293b; 
  border-color:#3b82f6; 
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15), 0 1px 2px rgba(59, 130, 246, 0.1);
}
.categories-tree .cat-item.expanded > .cat-tgl:hover{
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  border-color:#2563eb;
}
/* Drzewko: linia pionowa po lewej i pozioma łącząca element */
aside .categories-tree ul.cat-level.depth-1,
aside .categories-tree ul.cat-level.depth-2,
aside .categories-tree ul.cat-level.depth-3,
aside .categories-tree ul.cat-level.depth-4{
  border-left: 1px solid #d1d5db;
  margin-left: 10px;
  padding-left: 12px;
}
aside .categories-tree ul.cat-level.depth-1 > .cat-item,
aside .categories-tree ul.cat-level.depth-2 > .cat-item,
aside .categories-tree ul.cat-level.depth-3 > .cat-item,
aside .categories-tree ul.cat-level.depth-4 > .cat-item{
  position: relative;
}
aside .categories-tree ul.cat-level.depth-1 > .cat-item::before,
aside .categories-tree ul.cat-level.depth-2 > .cat-item::before,
aside .categories-tree ul.cat-level.depth-3 > .cat-item::before,
aside .categories-tree ul.cat-level.depth-4 > .cat-item::before{
  content:'';
  position:absolute;
  left:-12px; top: 0.95em;
  width: 12px; height:1px; background:#d1d5db;
}
/* Panel sterujący nad drzewem kategorii */
.cat-controls{ display:flex; gap:8px; margin: 4px 0 8px; }
.cat-controls button{ background:#f3f4f6; border:1px solid #e5e7eb; border-radius:8px; padding:6px 10px; font-size:.85rem; color:#374151; cursor:pointer; }
.cat-controls button:hover{ background:#eef2ff; border-color:#bfdbfe; color:#1e40af; }

.delivery-list { list-style: none; padding-left: 4px; margin: 0; }
.delivery-list li { 
  position: relative; 
  margin: 2px 0; 
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.delivery-list li:hover {
  background: rgba(59, 130, 246, 0.04);
}

.delivery-list a { 
  color: #374151; 
  text-decoration: none; 
  font-variant-numeric: tabular-nums; 
  letter-spacing: 0.1px; 
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.delivery-list a::before {
  content: '📅';
  font-size: 0.8rem;
  opacity: 0.7;
}

.delivery-list a:hover { 
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.06);
  transform: translateX(2px);
}
.side-link { 
  display: inline-flex; 
  align-items: center;
  gap: 6px;
  margin-top: 10px; 
  color: #3b82f6; 
  text-decoration: none; 
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.side-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.side-link:hover { 
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  transform: translateX(2px);
}

.side-link:hover::after {
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { order: 2; position: static; max-height: none; overflow: visible; }
  .home-layout .content { order: 1; }
}
  margin: 4px 0 8px 0;
}
.content h2 {
  margin: 18px 0 10px 0;
  font-size: 1.25em;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.container .products {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.products--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.products.products--grid,
.container .products--grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:24px;
}
.products--grid .product{width:100%;max-width:100%;display:flex;flex-direction:column;}
.products--list{ display:flex; flex-direction:column; gap:12px; }
/* Products toolbar: base layout */
.products-toolbar{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-top:8px; flex-wrap:wrap; }
.products-toolbar .view-switch{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; padding-right:8px; }
.products-toolbar .view-switch label{ flex:0 0 auto; }
.products-toolbar label{ color:#374151; display:inline-flex; align-items:center; gap:6px; font-size:.95em; }
.products-toolbar select{ border:1px solid #d1d5db; background:#fff; color:#111827; border-radius:8px; padding:6px 8px; font-size:.9rem; }
.products-toolbar select:focus{ outline:none; border-color:#9ca3af; box-shadow:0 0 0 3px rgba(156,163,175,.25); }
.products-toolbar .muted{ color:#6b7280; }
/* Results chips: compact, wrap nicely on small screens */
.products-toolbar .results-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; row-gap:8px; max-width:100%; }
.products-toolbar .res-chip{ display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border:1px solid #e5e7eb; background:#fff; color:#111827; border-radius:999px; font-size:.85rem; line-height:1; white-space:nowrap; }
.products-toolbar .res-chip .ico{ font-size:.95em; opacity:.9 }
.products-toolbar .res-chip .lbl{ color:#6b7280; font-weight:600; letter-spacing:.2px; text-transform:uppercase; font-size:.78rem; }
.products-toolbar .res-chip.primary{ border-color:#bfdbfe; background:#eff6ff; }
@media (max-width: 860px){
  .products-toolbar{ flex-direction:column; align-items:stretch !important; gap:10px !important; }
}
/* Generic results chips (also used on search.php) */
.results-meta.chips{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; row-gap:8px; max-width:100%; }
.results-meta.chips .res-chip{ display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border:1px solid #e5e7eb; background:#fff; color:#111827; border-radius:999px; font-size:.85rem; line-height:1; white-space:nowrap; }
.results-meta.chips .res-chip .lbl{ color:#6b7280; font-weight:600; letter-spacing:.2px; text-transform:uppercase; font-size:.78rem; }
.results-meta.chips .res-chip .ico{ font-size:.95em; opacity:.9 }
.results-meta.chips .res-chip.primary{ border-color:#bfdbfe; background:#eff6ff; }
.chips--filters{ margin:.5rem 0 1rem 0; }
.segmented{ background:#f3f4f6; border:1px solid #e5e7eb; padding:3px; border-radius:999px; display:inline-flex; }
.segmented a{ font-size:.9rem; padding:6px 12px; border-radius:999px; color:#374151; text-decoration:none; border:1px solid transparent; }
.segmented a.active{ background:#fff; border-color:#d1d5db; color:#111827; box-shadow:0 1px 2px rgba(0,0,0,.06); }
.product { position:relative; background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:14px; width:100%; text-align:center; box-shadow:0 4px 12px rgba(0,0,0,.05); overflow:hidden; display:flex; flex-direction:column; transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product:before, .product:after { content:none; }
.product:hover { transform:translateY(-4px); box-shadow:0 10px 22px -6px rgba(0,0,0,.12); border-color:#d1d5db; }
.product a { text-decoration:none; color:inherit; }
.product picture { display:block; position:relative; margin:0 auto 10px; width:100%; }
.product img { width:100%; height:auto; max-height:150px; object-fit:contain; filter:drop-shadow(0 4px 8px rgba(0,0,0,.06)); transition:transform .5s ease; }
.product:hover img { transform:scale(1.04) translateY(-4px); }
.product h3 { margin: 6px 0 4px; font-size:clamp(1rem, 0.96rem + 0.35vw, 1.12rem); font-weight:700; line-height:1.3; min-height:calc(1.3em * 2); display:block; text-align:center; text-wrap:balance; overflow-wrap:break-word; hyphens:auto; }
.products--grid .product h3{ min-height:calc(1.3em * 2); margin-bottom:0; }
@supports not (text-wrap: balance) {
  .product h3 { text-align:center; }
}
.product h3 a:hover { text-decoration:underline; text-underline-offset:3px; }
.product p { margin:4px 0; }
.product span { font-weight:600; color:#0d4a75; display:block; margin:10px 0 6px; letter-spacing:.3px; }
.product s { color:#6d8599; }
.product .price s{ margin-right:6px; opacity:.7; }
.product form { margin:0; margin-top:auto; }
.product button:not(.btn) { background:linear-gradient(90deg,#1e90ff,#007bff); color:#fff; border:1px solid #0f6fcc; border-radius:10px; padding:9px 13px; cursor:pointer; font-size:.87rem; font-weight:600; letter-spacing:.35px; line-height:1.15; white-space:nowrap; box-shadow:0 2px 6px rgba(0,123,255,.35); transition:background .28s ease, transform .2s ease, box-shadow .28s ease; display:inline-flex; align-items:center; gap:6px; }
.product button:not(.btn):before { content:"＋"; font-weight:500; }
.product button:not(.btn):hover { background:linear-gradient(90deg,#1890ff,#0a6ed1); box-shadow:0 4px 12px rgba(0,123,255,.45); }
.product button:not(.btn):active { transform:translateY(1px) scale(.96); }
.product button:focus-visible { outline:2px solid #7ec2ff; outline-offset:2px; }
.product .btn:before{ content:none; }
.product .muted { color:#4b6c82; font-size:.9em; }
.product .card-actions{ margin-top:6px; display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; }
.product .card-actions .qty-row{ width:100%; display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-bottom:4px; }
.products--list .product .card-actions .qty-row{ justify-content:flex-end; }
.product .card-actions .qty-select{ padding:6px 8px; border:1px solid #d1d5db; border-radius:8px; background:#fff; font-size:.9rem; }

/* Product meta lines spacing */
.product .meta{ margin:4px 0; }
.product .meta-cat{ margin-top:0; margin-bottom:.1rem; }
.product .meta-stock, .product .meta-reserve{ margin:.05rem 0 .25rem; }
.product .meta-delivery{ margin:.25rem 0 .4rem; }
.product .meta-left{ margin:.25rem 0; }
.product .meta-desc{ color:#516071; font-size:.88rem; letter-spacing:.05px; margin:.35rem 0 .2rem; line-height:1.45; display:block; overflow:hidden; max-height: calc(1.45em * 3); text-align:center; word-break:break-word; }
.product .meta-desc{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; }
.products--list .product .meta-desc{ grid-column:1 / -1; text-align:left; margin:.25rem 0 .15rem; -webkit-line-clamp:4; line-clamp:4; max-height: calc(1.45em * 4); }
.product .meta-stock--out{ color:#b91c1c !important; font-weight:700; }

/* Tags (availability/status) */
.tag{ display:inline-flex; align-items:center; gap:6px; padding:2px 8px; border-radius:999px; font-size:.8rem; font-weight:600; }
.tag.out{ background:#fee2e2; color:#991b1b; border:1px solid #fecaca; }
.tag.res{ background:#fef3c7; color:#92400e; border:1px solid #fcd34d; letter-spacing:.2px; }

/* Pagination */
.pagination{ margin-top:24px; }
.products { --gap:24px; }
@media (max-width: 1024px){
  .products--grid,
  .products.products--grid,
  .container .products--grid{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 780px){
  .products--grid,
  .products.products--grid,
  .container .products--grid{ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 600px){
  .products--grid,
  .products.products--grid,
  .container .products--grid{ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:18px; }
}
@media (max-width: 480px){
  .products--grid,
  .products.products--grid,
  .container .products--grid{ grid-template-columns: 1fr; gap:16px; }
}

/* Widok listy: karta wierszowa ala Allegro */
.products--list .product{ width:100%; max-width:100%; text-align:left; display:grid; grid-template-columns: 180px 1fr 260px; grid-template-rows: auto auto; column-gap:14px; row-gap:2px; align-items:start; padding:14px 16px; border-radius:14px; }
.products--list .product > *{ grid-column:2; }
.products--list .product > a:first-child{ grid-column:1; grid-row:1 / -1; align-self:stretch; }
.products--list .product > .card-actions{ grid-column:3; grid-row:2; justify-self:end; align-self:start; display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }

/* Inline meta (Na stanie / Pozostało / Rezerwacja) in list view */
.products--list .product .meta-stock,
.products--list .product .meta-left,
.products--list .product .meta-reserve{ display:inline; margin-right:12px; margin-bottom:.25rem; }
.products--list .product .meta-line{ display:block; line-height:1.2; margin:.15rem 0 .35rem; }
.products--list .product .meta-line .meta{ display:inline; }
.products--list .product picture{ margin:0; height:100%; display:flex; align-items:center; justify-content:center; }
.products--list .product img{ max-height:160px; }
.products--list .product h3{ justify-content:flex-start; min-height:unset; margin:0 12px 0 0 !important; font-size:1.08rem; font-weight:700; line-height:1.2; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; display:block; }
/* Umieść cenę w tym samym wierszu co tytuł */
.products--list .product .price{ grid-column:3; grid-row:1; justify-self:end; align-self:start; margin:0 0 6px 0; text-align:right; font-size:1.2rem; font-weight:700; color:#111827; }
.products--list .product .price s{ display:block; font-size:.9rem; font-weight:400; opacity:.7; margin-bottom:2px; }
.products--list .product .price strong{ display:block; font-size:1.28rem; line-height:1.1; }
/* Zmniejsz odstęp między nazwą a kategorią tylko w widoku listy */
.products--list .product h3 + p.muted{ margin-top:0 !important; margin-bottom:.1rem !important; }
.products--list .product .meta-cat{ margin-top:0 !important; margin-bottom:.1rem !important; }
.products--list .product .info-col{ display:grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap:4px 10px; align-items:start; }
.products--list .product .info-col h3{ grid-column:1; grid-row:1; }
.products--list .product .info-col .price{ grid-column:2; grid-row:1; align-self:start; justify-self:end; margin:0; font-size:1.08rem; font-weight:700; color:#111827; }
.products--list .product .info-col .meta-cat{ grid-column:1; grid-row:2; margin:0 !important; }
.products--list .product .info-col .meta-wrap{ grid-column:1 / -1; grid-row:2; display:flex; align-items:center; gap:8px; }
.products--list .product .info-col .meta-row{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:inline; }
.products--list .product .info-col .meta-line{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0; line-height:1.2; }
/* Metadane w jednej linii z separatorami */
.products--list .product p.meta{ display:inline; margin:0 10px 0 0; }
.products--list .product .meta-stock,
.products--list .product .meta-reserve,
.products--list .product .meta-left{ display:inline; margin:0 10px 0 0; vertical-align:baseline; }
.products--list .product .meta-cat::after,
.products--list .product .meta-stock::after{ content:"\2022"; color:#9ca3af; margin:0 8px 0 6px; }
.products--list .product .meta-left{ display:inline-block; margin-left:8px; }
/* Cena przy tytule (po prawej) w kolumnie informacji */
.products--list .product .price s{ font-weight:400; }

/* Responsywność: na węższych ekranach zredukuj do 2 kolumn i uporządkuj kolejność */
@media (max-width: 980px){
  .products--list .product{ grid-template-columns: 120px 1fr; grid-template-rows:auto auto auto; }
  .products--list .product .price{ grid-column:2; grid-row:1; justify-self:end; text-align:right; }
  .products--list .product > .card-actions{ grid-column:2; grid-row:3; justify-self:end; }
}
@media (max-width: 760px){
  .products--list .product{ grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; row-gap:8px; }
  .products--list .product > *{ grid-column:1; }
  .products--list .product > a:first-child{ grid-row:1; justify-self:center; margin:0 auto; }
  .products--list .product .price{ grid-row:2; grid-column:1; justify-self:flex-start; text-align:left; margin:0; }
  .products--list .product .meta-desc{ grid-column:1; }
  .products--list .product > .card-actions{ grid-row:4; justify-self:stretch; justify-content:flex-start; }
}

/* Dostawy: chipsy filtrów używają .chip i .primary (istniejące) */
.chips .chip.primary{ border-color:#bfdbfe; background:#eff6ff; color:#1e40af; }

/* Karuzela: footer i link */
.carousel-footer{ display:flex; justify-content:flex-end; margin-top:8px; }
.carousel-footer .see-all-link{ color:#2563eb; text-decoration:none; font-weight:600; }
.carousel-footer .see-all-link:hover{ text-decoration:underline; }

/* Info-section (index) */
.info-section{ margin:24px 0 8px 0; padding:20px; background:#f8fafc; border:1px solid #e5e7eb; border-radius:10px; }
.info-section h2{ margin:0 0 10px 0; font-size:1.25rem; }
.info-section ul{ margin:0; padding-left:18px; line-height:1.7; color:#374151; }
.info-section .info-note{ margin:12px 0 0 0; }

/* --- Sidebar links in top-nav style --- */
/* Make category/delivery links look like header nav links */
aside .categories-tree a.cat-link,
aside .delivery-list a{
  background: transparent !important;
  color: #1a2a3a !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: .92rem !important;
  padding: 0 !important;
  display: inline !important;
  gap: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
/* Layout: link blokowy i listy w kolumnie */
aside .categories-tree a.cat-link{ display:inline-block !important; }
aside .categories-tree li{ display:block; }
aside .categories-tree a.cat-link::before,
aside .delivery-list a::before{ content: none !important; box-shadow: none !important; }
aside .categories-tree li:hover,
aside .delivery-list li:hover{ background: transparent !important; }
/* Active state: emphasize only by weight/color, no background */
aside .categories-tree a.cat-link.active,
aside .categories-tree a.cat-link.all,
aside .delivery-list a.active{
  background: transparent !important;
  color: #1a2a3a !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
/* Indentation for nested category levels */
aside .categories-tree ul.cat-level.depth-0 { padding-left: 0 !important; }
aside .categories-tree ul.cat-level.depth-1 { padding-left: 12px !important; }
aside .categories-tree ul.cat-level.depth-2 { padding-left: 22px !important; }
aside .categories-tree ul.cat-level.depth-3 { padding-left: 30px !important; }
aside .categories-tree ul.cat-level.depth-4 { padding-left: 38px !important; }
/* Stabilizacja layoutu drzewa: Grid (toggle + link w pierwszym wierszu; podlista w drugim) */
/* Sidebar: toggler po lewej stronie, link po prawej */
aside .categories-tree li.cat-item{
  display:grid;
  grid-template-columns: 28px 1fr;
  align-items:center;
  column-gap:8px;
  grid-auto-rows: min-content;
}
aside .categories-tree li.cat-item > .cat-tgl,
aside .categories-tree li.cat-item > .cat-tgl--blank{ grid-column: 1; justify-self:start; margin-right:0; }
aside .categories-tree li.cat-item > a.cat-link{ grid-column: 2; min-width:0; }
/* Podlisty są w wrapperze .cat-subwrap, więc bezpośrednie li > ul nie potrzebuje specjalnego layoutu */

/* --- Red cart chip inside header --- */
.side-card .categories-tree{ overflow-x: hidden; }
/* Wyłącz poziome łączniki, które mogły wychodzić poza kontener sidebaru */
aside .categories-tree ul.cat-level.depth-1 > .cat-item::before,
aside .categories-tree ul.cat-level.depth-2 > .cat-item::before,
aside .categories-tree ul.cat-level.depth-3 > .cat-item::before,
aside .categories-tree ul.cat-level.depth-4 > .cat-item::before{
  display:none !important;
}
.cart-chip{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:#fff; background:#dc2626;
  padding:6px 12px; border-radius:999px; border:1px solid rgba(0,0,0,.05);
  box-shadow:0 6px 14px rgba(220,38,38,.25);
}
.cart-chip:hover{ background:#b91c1c; }
.cart-chip .cart-ico{ filter:saturate(180%); }
.cart-chip .cart-total{ font-weight:700; }
.cart-chip .cart-badge{ display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; background:#fff; color:#b91c1c; border-radius:999px; font-weight:800; font-size:.8rem; }
.cart-chip .cart-sep{ opacity:.8; }

/* Compress mode tweaks */
.topbar-sticky.topbar-compress header{ background:#2563eb; }
.products--list .product .card-actions{ justify-self:end; display:flex; align-items:center; gap:8px; }
.products--list .product .muted{ font-size:.9em; }

.site-footer{ margin-top:32px; padding:24px 12px 28px; border-top:1px solid #e5e7eb; color:#5a6b7d; font-size:.9rem; background:#f9fbfd; }
.site-footer__inner{ display:flex; flex-wrap:wrap; gap:24px 32px; align-items:flex-start; justify-content:space-between; }
.site-footer__brand{ max-width:320px; display:flex; flex-direction:column; gap:8px; }
.site-footer__address{ margin-top:4px; line-height:1.6; }
.footer-nav{ display:flex; flex-wrap:wrap; gap:24px 32px; min-width:260px; }
.footer-nav__group{ min-width:180px; display:flex; flex-direction:column; gap:8px; }
.footer-nav__title{ margin:0; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; font-weight:700; color:#334155; }
.footer-nav__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.footer-nav__list a{ color:inherit; text-decoration:none; transition:color .2s ease, transform .2s ease; }
.footer-nav__list a:hover{ color:#1d4ed8; transform:translateX(2px); }
.footer-lang-link--active{ font-weight:700; color:#1d4ed8; }
.footer-lang-link--active:hover{ color:#1d4ed8; }
.footer-nav__logout{ margin:0; }
.footer-nav__logout button{ background:none; border:0; padding:0; color:inherit; font:inherit; cursor:pointer; transition:color .2s ease, transform .2s ease; }
.footer-nav__logout button:hover{ color:#1d4ed8; transform:translateX(2px); }
@media (max-width:900px){
  .site-footer__inner{ gap:20px; }
  .footer-nav__group{ min-width:160px; }
}
@media (max-width:640px){
  .site-footer__inner{ flex-direction:column; align-items:flex-start; }
  .footer-nav{ width:100%; }
  .footer-nav__group{ width:100%; max-width:none; }
  .footer-nav__list{ flex-direction:row; flex-wrap:wrap; gap:10px 18px; }
  .footer-nav__group:nth-child(n+2) .footer-nav__list{ border-top:1px solid #e2e8f0; padding-top:10px; }
}

.pagination {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.pagination button {
  background: #f7fafd;
  border: 1px solid #e0e7ef;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}
.pagination button[disabled], .pagination button[aria-disabled="true"]{
  opacity:.5;
  cursor: not-allowed;
}

/* Simple panel styles for auth forms */
.panel {
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  box-shadow: 0 2px 8px #e0e7ef;
}
.panel-header { border-bottom: 1px solid #e0e7ef; padding: 8px 12px; }
.panel-body { padding: 12px; }
.panel input, .panel textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  margin-top: 4px;
}
button.primary, .panel button.primary {
  background: #1e90ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}
.error { color: #b42318; min-height: 20px; }

/* Buttons: secondary variant (używane m.in. na stronie logowania do resend) */
button.secondary, .btn.secondary, .panel button.secondary {
  background: #fff;
  color: #1d4ed8; /* blue-700 */
  border: 1px solid #c7d2fe; /* indigo-200 */
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
button.secondary:hover, .btn.secondary:hover, .panel button.secondary:hover {
  background: #eef2ff; /* indigo-50 */
  border-color: #a5b4fc; /* indigo-300 */
  color: #1e40af; /* indigo-800 */
  box-shadow: 0 2px 8px rgba(37, 99, 235, .18);
}
button.secondary:active, .btn.secondary:active, .panel button.secondary:active {
  transform: translateY(1px);
}
button.secondary:disabled, .btn.secondary:disabled, .panel button.secondary:disabled {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Auth forms: micro-interactions for inputs (login + signup) */
.auth-card label.form{ transition: color .15s ease; }
.auth-card label.form input{
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.auth-card label.form:focus-within{ color:#1f2937; }
.auth-card label.form input:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.25);
  background-color:#fff;
}
.auth-card .checkbox input{ outline: none; }
.auth-card .checkbox input:focus-visible{ outline:2px solid #93c5fd; outline-offset:2px; border-radius:4px; }

/* Focus visible for primary/secondary buttons */
button.primary:focus-visible, .panel button.primary:focus-visible,
button.secondary:focus-visible, .panel button.secondary:focus-visible{
  outline:2px solid #93c5fd; outline-offset:3px;
}

/* Utilities */
.text-center{ text-align:center; }
.mt-8{ margin-top:8px; }
.mt-12{ margin-top:12px; }
.mt-16{ margin-top:16px; }
.mb-8{ margin-bottom:8px; }
.mb-12{ margin-bottom:12px; }
.mb-16{ margin-bottom:16px; }

/* Product detail unified layout */
.product-detail { display: flex; gap: 24px; align-items: flex-start; margin-top: 16px; }
.product-detail picture { display:block; }
.product-detail img { max-width: 240px; height: auto; border-radius: 8px; }
.product-info h1 { margin: 0 0 6px 0; }
.product-info .actions-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.product-info .summary-row { display:flex; justify-content:space-between; margin-top:8px; }

/* Produkt: galeria */
.product-gallery { margin: 8px 24px 32px 0; padding: 20px 24px; background:#fff; border:1px solid #e0e7ef; border-radius:16px; box-shadow:0 2px 6px rgba(0,0,0,.04); }
.product-gallery .thumbs { padding-right:4px; }
.product-gallery .thumbs::-webkit-scrollbar { width:8px; }
.product-gallery .thumbs::-webkit-scrollbar-track { background:transparent; }
.product-gallery .thumbs::-webkit-scrollbar-thumb { background:#d1d9e2; border-radius:8px; }
.product-gallery .thumb { transition:box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.product-gallery .thumb:hover { box-shadow:0 0 0 2px #1e90ff55; }
.product-gallery .thumb.active { border-color:#1e90ff; background:#f0f7ff; }
.product-gallery .viewer { min-height:300px; display:flex; align-items:center; justify-content:center; background:linear-gradient(145deg,#f5f9fc,#eef3f8); border:1px solid #e3eaf2; border-radius:12px; padding:16px; }
.product-gallery #mainImage { max-height:360px; }

/* Product hero extras */
.product-hero h1{ font-size:1.75rem; line-height:1.25; }
.product-hero .rating .stars{ color:#f59e0b; letter-spacing:2px; }
.product-hero .price-lg s{ font-size:1rem; }
.product-hero .price-lg span{ background:linear-gradient(90deg,#111827,#1f2937); -webkit-background-clip:text; background-clip:text; color:transparent; }
.qty-stepper .step{ font-size:18px; line-height:1; }
.qty-stepper input{ font-size:1rem; }
.tabs .tab-link.active{ border-bottom-color:#1e40af !important; color:#1e40af !important; }
.tabs .tab-link{ transition:color .15s ease, border-color .15s ease; }
.stock-bar-wrap .muted strong{ color:#dc2626; }
.spec-list .muted{ color:#64748b; }
.options .chip{ transition: background .15s ease, border-color .15s ease, color .15s ease; }
.options .chip.active{ background:#111827; color:#fff; border-color:#111827; }
.options .sw:focus-visible{ outline:2px solid #2563eb; outline-offset:2px; }

/* Reviews */
.reviews-summary .stars{ color:#f59e0b; font-size:1.2rem; letter-spacing:2px; }
.reviews-list .review-item .stars{ color:#f59e0b; letter-spacing:2px; }
.stars-input{ display:inline-flex; gap:6px; }
.stars-input .star{ border:1px solid #e5e7eb; background:#fff; color:#d1d5db; border-radius:8px; padding:6px 8px; cursor:pointer; font-size:1rem; line-height:1; transition: all .15s ease; }
.stars-input .star:hover{ transform: translateY(-1px); box-shadow:0 2px 8px rgba(0,0,0,.06); }
.stars-input .star.active{ color:#f59e0b; border-color:#fbbf24; background:#fffbeb; }

@media (max-width: 1024px){
  .product-gallery { padding:16px 18px; }
  .product-gallery .viewer { min-height:250px; }
  .product-gallery #mainImage { max-height:300px; }
}
@media (max-width: 820px){
  .product-gallery { margin: 4px 16px 28px 16px; }
  .product-gallery { flex-direction:column; }
  .product-gallery .thumbs { flex-direction:row !important; max-height:none; overflow:auto; width:100%; order:2; margin-top:12px; }
  .product-gallery .thumb { width:64px; height:64px; }
  .product-gallery .thumb img { width:60px !important; height:60px !important; }
  .product-gallery .viewer { max-width:100%; }
  .product-hero h1{ font-size:1.35rem; }
}

/* Footer links - subtle styles */
footer a {
  color: #364152;
  text-decoration: none;
  transition: color .15s ease, text-decoration-color .15s ease;
}
footer a:hover {
  color: #1e90ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Ensure images inside content scale proportionally */
.content img { max-width: 100%; height: auto; }

/* Responsive tweaks */
@media (max-width: 1024px) {
  main { margin: 16px; }
}
@media (max-width: 820px) {
  main { flex-direction: column; }
  aside {
    order: 1;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }
  .content { 
    order: 2;
    padding: 20px; 
  }
  .product-detail { flex-direction: column; align-items: stretch; }
  .product-detail img { max-width: 100%; }
  main > aside {
    display: none !important;
  }
}

@media (max-width: 900px) {
  main > aside {
    display: none !important;
  }
  .sidebar-mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  aside {
    display: block;
    padding: 16px 14px;
    margin-right: 0;
  }
  .side-card {
    margin-bottom: 16px;
    padding: 14px 12px;
  }
  .filter-panel {
    padding: 10px 12px;
  }
  .filter-header {
    padding: 6px 6px 8px;
  }
  .filter-block__header {
    padding: 8px 4px;
  }
  .filter-block__body {
    padding: 4px 4px 10px;
  }
  .categories-tree a.cat-link {
    padding: 6px 10px;
  }
  main > aside {
    display: none !important;
  }
}

.sidebar-mobile-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 12px 0;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #e0ecff 100%);
  color: #1d4ed8;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .15px;
  cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(37, 99, 235, 0.45);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.sidebar-mobile-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -14px rgba(37, 99, 235, 0.55);
}
.sidebar-mobile-toggle:active {
  transform: translateY(1px);
}
.sidebar-mobile-toggle:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .35);
  outline-offset: 3px;
}
.sidebar-mobile-toggle__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.sidebar-mobile-layer {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(15, 23, 42, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.sidebar-mobile-layer.open {
  opacity: 1;
  pointer-events: auto;
}
.sidebar-mobile-layer__panel {
  width: min(88vw, 360px);
  max-width: 100%;
  background: #fff;
  border-radius: 20px 0 0 20px;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.sidebar-mobile-layer.open .sidebar-mobile-layer__panel {
  transform: translateX(0);
}
.sidebar-mobile-layer__header {
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sidebar-mobile-layer__header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}
.sidebar-mobile__close {
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.sidebar-mobile__close:hover {
  background: #e2e8f0;
}
.sidebar-mobile__close:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 3px;
}
.sidebar-mobile-layer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 45%);
}
.sidebar-desktop-placeholder {
  display: none !important;
}
body.sidebar-mobile-open {
  overflow: hidden;
}

/* Password reveal (wspólne z rejestracją) */
.pw-wrap{position:relative}
.pw-wrap input{padding-right:46px}
.pw-toggle{position:absolute;top:50%;right:10px;transform:translateY(-50%);background:none;border:0;cursor:pointer;padding:4px;border-radius:8px;color:#6b7280;display:flex;align-items:center;justify-content:center}
.pw-toggle:hover{color:#374151;background:#f3f4f6}
.pw-toggle:focus{outline:2px solid #2563eb;outline-offset:2px}
.pw-toggle svg{width:20px;height:20px;pointer-events:none}

/* Recently viewed carousel */
.rv-viewport{ padding: 4px 2px; }
.rv-track .rv-card{ transition: transform .2s ease, box-shadow .2s ease; }
.rv-track .rv-card:hover{ transform: translateY(-4px); box-shadow:0 10px 22px -6px rgba(0,0,0,.15); }
@media (max-width:820px){ .rv-track .rv-card{ width: 70vw !important; } }

/* Zapobieganie wychodzeniu karuzel poza kontener */
.rv-track .rv-card,
.rcat-track .rc-card,
.rdel-track .rd-card { max-width: 100%; }

@media (max-width: 820px){
  .rcat-track .rc-card,
  .rdel-track .rd-card { width: 70vw !important; }
}

/* Promoted Products Carousel */
.promoted-section {
  margin: 24px 0 40px 0;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border-radius: 16px;
  padding: 24px 24px 32px 24px; /* większy dolny odstęp dla wyraźnych łuków */
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden; /* klipuj dzieci do zaokrąglonych rogów sekcji */
  background-clip: padding-box; /* upewnij się, że tło respektuje promień */
  isolation: isolate; /* niezależny kontekst nakładania dla poprawnego klipu */
}

/* Wewnętrzny wrapper, który sam ma zaokrąglone rogi i klipuje zawartość */
.promoted-inner{
  background: transparent; /* zachowaj gradient sekcji */
  border-radius: 16px;
  overflow: hidden;
}

.promoted-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.promoted-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.promoted-header h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Badge gwiazdki na kartach promowanych */
.promoted-section .product-card { position: relative; overflow: hidden; }
.promoted-section .promoted-badge{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.28);
  z-index: 2;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
}

.carousel-container {
  position: relative;
  overflow: hidden; /* klipuj track do własnych zaokrągleń */
  border-radius: 16px; /* dopasuj do .promoted-section dla spójnych dolnych łuków */
  /* Dodaj niewielki prawy padding po stronie viewportu, aby cień/zaokrąglenia nie były ucinane przez .content (overflow-x:hidden) */
  padding: 0 16px 14px 0;
  box-sizing: border-box;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  min-height: 380px;
}

/* Zostaw trochę przestrzeni między viewportem karuzeli a dołem sekcji,
   żeby łuki były optycznie wyraźne */
.promoted-section .carousel-container{ margin-bottom: 8px; }

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 16px;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  will-change: transform;
}

/* Zamiast paddingu kontenera – dodaj bufor po prawej na samym torze */
.promoted-section .carousel-track {
  padding: 0 0 28px 0; /* więcej dolnego odstępu dla wyraźnych narożników */
}

.promoted-section .carousel-slide:last-child {
  margin-right: 0;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 280px;
  display: flex;
  align-items: stretch;
}


.carousel-slide .product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.carousel-slide .product-card > .product {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}

.carousel-slide .product-card > .product .card-actions {
  margin-top: auto;
}

/* Ujednolicone karty w promowanej karuzeli jak w innych karuzelach */
.promoted-section .product-card {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 16px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.promoted-section .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.promoted-section .product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
}
.promoted-section .product:hover img { transform: none; }

.promoted-product {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 22px 16px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Nadpisz bazowe .product (width:220px) i trzymaj overflow w karcie, by nie nachodziła na sąsiednie */
  width: 100%;
  overflow: hidden;
}

.promoted-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* --- Promoted carousel: brak unoszenia i zoomu na hover (zapobieganie nakładaniu) --- */
.promoted-section .promoted-product:hover {
  transform: none;            /* nie podnoś całej karty */
  box-shadow: 0 6px 22px rgba(0,0,0,0.10);
}
.promoted-section .product:hover img {
  transform: none;            /* nie powiększaj obrazka w promowanych */
}
.promoted-section .carousel-slide{
  position: relative;         /* własny kontekst */
  contain: layout paint;      /* izolacja malowania, brak nachodzenia */
  isolation: isolate;
  z-index: 0;
}
.promoted-section .carousel-slide:hover{ z-index: 1; }

.promoted-section .product-card > .product {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}
.promoted-section .product-card > .product .card-actions {
  margin-top: auto;
}

/* Wewnątrz promowanej karty render_product_item dokłada drugi .product –
   zneutralizuj go, by nie dublował ramek/paddingu i nie ucinał zawartości. */
.promoted-product > .product{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  width: 100% !important;
  overflow: visible;
}

.promoted-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  z-index: 2;
}

.promoted-product img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.promoted-product h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.3;
  color: #1f2937;
}

.promoted-product h3 a {
  color: inherit;
  text-decoration: none;
}

.promoted-product h3 a:hover {
  color: #3b82f6;
}

.promoted-product p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0 0 8px 0;
}

.promoted-product .price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #059669;
  margin: 8px 0 12px 0;
}

.promoted-product .card-actions {
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .carousel-slide {
    width: 250px;
  }
}

@media (max-width: 920px) {
  .promoted-section {
    margin: 16px 0 32px 0;
    padding: 20px;
  }
  
  .promoted-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .carousel-slide {
    width: 220px;
  }
  .promoted-section .product-card img { height: 120px; }
  
  .promoted-product img {
    height: 120px;
  }
}

@media (max-width: 640px) {
  .promoted-section {
    padding: 16px;
    border-radius: 12px;
  }
  .carousel-container {
    /* mniejszy bufor po prawej na mobile */
    padding: 0 8px 10px 0;
  }
  .promoted-section .carousel-track {
    padding: 0 0 20px 0; /* mobile: dolne łuki lepiej widoczne */
    gap: 12px;
  }
  .promoted-section .carousel-slide:last-child {
    margin-right: 0;
  }
  .carousel-track {
    gap: 12px;
  }
  .double-carousel .carousel-track {
    gap: 16px;
  }
  .carousel-slide {
    width: 82vw;
    max-width: 280px;
  }
  
  .promoted-section .product-card { padding: 12px; }
  .promoted-section .product-card img { height: 100px; }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  /* Tylko w sekcji promowanej kontrolki są overlayem */
  .promoted-section .carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
  }
  
  .promoted-section .carousel-btn { pointer-events: all; }
  
  .promoted-header {
    position: relative;
    z-index: 3;
  }
}

/* Karuzele dwupiętrowe */
.double-carousel {
  margin: 40px 0;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.double-carousel .carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.double-carousel .carousel-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

.double-carousel .carousel-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.double-carousel .carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: max-content;
}

/* Wyraźne przyciski w karuzelach dwupiętrowych na jasnym tle */
.double-carousel .carousel-controls { display: flex; gap: 8px; }
.double-carousel .carousel-btn {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.double-carousel .carousel-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.double-carousel .product-card {
  flex: 0 0 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
}

.double-carousel .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.double-carousel .product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
}

.double-carousel .product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.3;
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.double-carousel .product-card h3 a {
  color: #1e293b;
  text-decoration: none;
}

.double-carousel .product-card h3 a:hover {
  color: #3b82f6;
}

.double-carousel .product-card p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 8px 0;
}

.double-carousel .product-card .price {
  font-weight: 700;
  font-size: 1rem;
  color: #dc2626;
  display: block;
  margin-bottom: 8px;
}

.double-carousel .product-card .delivery-info {
  display: block;
  font-size: 0.75rem;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 8px;
}

.double-carousel .product-card > .product {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}

.double-carousel .product-card > .product .card-actions {
  margin-top: auto;
}

/* Responsive dla dwupiętrowych karuzeli */
@media (max-width: 768px) {
  .double-carousel {
    padding: 0 16px;
    margin: 30px 0;
  }
  
  .double-carousel .product-card {
    flex: 0 0 160px;
    padding: 12px;
  }
  
  .double-carousel .product-card img {
    height: 120px;
  }
  
  .double-carousel .carousel-header h2 {
    font-size: 1.25rem;
  }
}
