/* ============================================================
   REZON THEME 2.0 — Design System
   ============================================================ */

:root {
  --navy:        #2c3e87;
  --navy-dark:   #1a2660;
  --orange:      #ee7b10;
  --black:       #4a4a4a;
  --white:       #ffffff;
  --bg-page:     #efefed;
  --bg-surface:  #f5f5f3;
  --bg-card:     #ffffff;
  --border:      rgba(0,0,0,0.08);
  --border-med:  rgba(0,0,0,0.12);
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --sidebar-w:   210px;
  --topbar-h:    58px;
  --container:   1400px;
  --font:        'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 16px rgba(44,62,135,0.12), 0 1px 4px rgba(0,0,0,0.06);
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font);
  font-size: 13px;
  color: var(--black);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ============================================================
   SITE WRAPPER — wyśrodkowany kontener
   ============================================================ */
.site-wrapper {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--bg-card);
  box-shadow: 0 0 0 0.5px var(--border), 0 8px 40px rgba(0,0,0,0.08);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.site-topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 0.5px solid var(--border-med);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.topbar-divider {
  width: 0.5px;
  height: 28px;
  background: var(--border-med);
  flex-shrink: 0;
}

.topbar-nav {
  display: flex;
  gap: 2px;
  align-items: center;
}

.topbar-nav a {
  font-size: 11px;
  font-weight: 400;
  color: var(--black);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.2px;
  transition: background 0.12s, color 0.12s;
  text-transform: uppercase;
}

.topbar-nav a:hover {
  background: rgba(0,0,0,0.05);
}

.topbar-nav a.current-menu-item,
.topbar-nav a.current_page_item {
  background: rgba(44,62,135,0.08);
  color: var(--navy);
  font-weight: 500;
}

.topbar-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 0.5px solid var(--border-med);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  transition: border-color 0.15s;
}

.topbar-search:focus-within {
  border-color: var(--navy);
}

.topbar-search input {
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 11px;
  color: var(--black);
  background: transparent;
  width: 160px;
}

.topbar-search input::placeholder { color: #aaa; }

.topbar-search button {
  padding: 0;
  color: #aaa;
  display: flex;
  align-items: center;
  transition: color 0.12s;
}
.topbar-search button:hover { color: var(--navy); }
.topbar-search svg { width: 14px; height: 14px; }

/* Mobile toggle */
.topbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--black);
  transition: background 0.12s;
}
.topbar-toggle:hover { background: rgba(0,0,0,0.05); }
.topbar-toggle svg { width: 20px; height: 20px; }

/* ============================================================
   BODY LAYOUT — sidebar + main
   ============================================================ */
.site-body {
  display: flex;
  flex: 1;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.site-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 0.5px solid var(--border-med);
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-med) transparent;
}

.site-sidebar::-webkit-scrollbar { width: 4px; }
.site-sidebar::-webkit-scrollbar-track { background: transparent; }
.site-sidebar::-webkit-scrollbar-thumb { background: var(--border-med); border-radius: 2px; }

.sidebar-section { padding: 0 8px; margin-bottom: 4px; }
.sidebar-topmenu-mobile { display: none; }

.sidebar-label {
  font-size: 10px;
  font-weight: 500;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 8px 3px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--black);
  transition: color 0.2s;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Animacja C — pomarańczowe tło wypełnia od lewej */
.sidebar-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(238, 123, 16, 0.12);
  transform: translateX(-101%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: var(--radius-sm);
}

.sidebar-link:hover::before {
  transform: translateX(0);
}

.sidebar-link:hover {
  color: var(--orange);
}

.sidebar-link:hover svg {
  color: var(--orange);
  opacity: 1;
}

.sidebar-link.active {
  color: var(--navy);
  font-weight: 500;
}

.sidebar-link.active::before {
  transform: translateX(0);
  background: rgba(44, 62, 135, 0.08);
}

.sidebar-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--navy);
  border-radius: 0 2px 2px 0;
}

.sidebar-link.link-new {
  color: var(--orange);
  font-weight: 500;
}

.sidebar-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.5;
}

.sidebar-link.active svg { opacity: 1; color: var(--navy); }
.sidebar-link.link-new svg { opacity: 1; color: var(--orange); }

.sidebar-divider {
  height: 0.5px;
  background: var(--border-med);
  margin: 8px 10px;
}

/* Kontakt w sidebarze */
.sidebar-contact {
  padding: 12px 10px;
  border-top: 0.5px solid var(--border-med);
}

.sidebar-contact-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
}

.sidebar-contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #666;
  margin-bottom: 4px;
  line-height: 1.4;
}

.sidebar-contact-row svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--navy);
}

.sidebar-contact-row a { color: #666; }
.sidebar-contact-row a:hover { color: var(--navy); }

.sidebar-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.sidebar-social a {
  color: #bbb;
  transition: color 0.12s;
  display: flex;
}

.sidebar-social a:hover { color: var(--navy); }
.sidebar-social svg { width: 16px; height: 16px; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.site-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   PAGE HERO (nagłówek kategorii / strony)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 18px 24px 16px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -20px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: rgba(238,123,16,0.15);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: 80px;
  top: 5px;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.page-hero__title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
}

.page-hero__title .dot { color: var(--orange); }

.page-hero__sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.page-hero__badges {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.page-hero__badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

.page-hero__badge svg { width: 12px; height: 12px; color: rgba(255,255,255,0.75); }
.page-hero__badge span { font-size: 10px; color: rgba(255,255,255,0.85); }

/* ============================================================
   TREŚĆ GŁÓWNA
   ============================================================ */
.site-content {
  padding: 20px 24px;
  flex: 1;
}

.section-heading {
  font-size: 12px;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border-med);
}

/* ============================================================
   SIATKA PRODUKTÓW
   ============================================================ */
.products-grid,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  list-style: none !important;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  float: none !important;
}

@media (max-width: 900px) {
  .products-grid,
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   KARTA PRODUKTU
   ============================================================ */
.product-card,
ul.products li.product {
  background: var(--bg-card) !important;
  border: 0.5px solid var(--border-med) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card) !important;
  transition: box-shadow 0.18s ease, transform 0.18s ease !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}

.product-card:hover,
ul.products li.product:hover {
  box-shadow: var(--shadow-hover) !important;
  transform: translateY(-3px) !important;
}

/* Zdjęcie */
.product-card__img,
.rezon-product-card__image-wrapper {
  height: 200px !important;
  background: #f9f9f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.product-card__img img,
.rezon-product-card__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 12px !important;
}

/* Badge Nowość */
.product-card__badge,
.rezon-product-card__badge-new {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: var(--orange) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  padding: 3px 7px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  z-index: 2 !important;
}

/* Brak w magazynie */
.product-card__outofstock,
.rezon-product-card__out-of-stock {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(74,74,74,0.75) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2 !important;
}

.product-card__outofstock span,
.rezon-product-card__out-of-stock-text {
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

/* Belka z nazwą */
.product-card__name,
.rezon-product-card__name {
  background: var(--navy) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  white-space: normal !important;
}

/* Body karty */
.product-card__body,
.rezon-product-card__details {
  padding: 10px 12px 4px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.product-card__row,
.rezon-product-card__detail {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  font-size: 10px !important;
  color: #888 !important;
}

.product-card__row-label,
.rezon-product-card__detail-label {
  font-weight: 500 !important;
  text-transform: uppercase !important;
  font-size: 9px !important;
  letter-spacing: 0.3px !important;
  color: #aaa !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.product-card__row-val {
  color: var(--black) !important;
  font-weight: 400 !important;
}

.product-card__price {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--black) !important;
  margin: 4px 0 8px !important;
  padding: 0 12px !important;
}

/* Przycisk */
.product-card__btn,
.rezon-product-card__button {
  display: block !important;
  margin: auto 12px 12px !important;
  padding: 7px 12px !important;
  text-align: center !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  color: #666 !important;
  background: #f5f5f3 !important;
  border: 0.5px solid var(--border-med) !important;
  border-radius: var(--radius-sm) !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font-family: var(--font) !important;
}

.product-card:hover .product-card__btn,
ul.products li.product:hover .rezon-product-card__button {
  background: var(--navy) !important;
  color: #fff !important;
  border-color: var(--navy) !important;
}

/* ============================================================
   KAFELKI KATEGORII (strona główna)
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

.category-tile {
  background: var(--bg-card);
  border: 0.5px solid var(--border-med);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}

.category-tile:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--navy);
}

.category-tile__img {
  height: 160px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.category-tile__footer {
  padding: 10px 14px;
  border-top: 0.5px solid var(--border);
}

.category-tile__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.category-tile__name .dot { color: var(--orange); font-size: 16px; }

.category-tile__desc {
  font-size: 10px;
  color: #888;
  margin-top: 3px;
  line-height: 1.5;
}

/* ============================================================
   HERO BANER (strona główna)
   ============================================================ */
.home-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.home-hero__slides { display: flex; transition: transform 0.55s ease; }
.home-hero__slide { min-width: 100%; }
.home-hero__img { width: 100%; max-height: 360px; object-fit: cover; display: block; }

.home-hero__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.home-hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.home-hero__dot.active { background: var(--orange); }

/* ============================================================
   PASEK ZALET
   ============================================================ */
.benefits-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.benefit-item {
  padding: 16px 14px;
  text-align: center;
  border-right: 0.5px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.benefit-item:hover { background: rgba(255,255,255,0.05); }
.benefit-item:last-child { border-right: none; }

.benefit-item svg { width: 24px; height: 24px; color: rgba(255,255,255,0.8); }

.benefit-item__title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.benefit-item__sub {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   TEKST WPROWADZAJĄCY
   ============================================================ */
.intro-text {
  margin-bottom: 20px;
  max-width: 800px;
}

.intro-text__heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.intro-text p {
  font-size: 12px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 8px;
}

/* ============================================================
   STRONA PRODUKTU
   ============================================================ */
.single-product-wrap { padding: 24px; }

.single-product__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #aaa;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.single-product__breadcrumb a { color: var(--navy); }
.single-product__breadcrumb a:hover { color: var(--orange); }
.single-product__breadcrumb span { color: #ccc; }

.single-product__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .single-product__layout { grid-template-columns: 1fr; }
}

.single-product__gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid var(--border-med);
  background: #f9f9f9;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-product__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.single-product__thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.single-product__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border-med);
  overflow: hidden;
  cursor: pointer;
  padding: 4px;
  background: #f9f9f9;
  transition: border-color 0.15s;
}

.single-product__thumb:hover,
.single-product__thumb.active { border-color: var(--navy); }

.single-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.single-product__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
  line-height: 1.3;
}

.single-product__title .dot { color: var(--orange); }

.single-product__price {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: 12px 0;
}

.single-product__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  border: 0.5px solid var(--border-med);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.single-product__meta-row {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 0.5px solid var(--border);
  font-size: 12px;
  gap: 12px;
}

.single-product__meta-row:last-child { border-bottom: none; }

.single-product__meta-label {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #aaa;
  min-width: 90px;
}

.single-product__meta-val { color: var(--black); }

.single-product__stock-yes { color: #2d8a4e; font-weight: 500; }
.single-product__stock-no  { color: var(--orange); font-weight: 500; }

/* Zakładki */
.product-tabs { margin-top: 20px; }

.product-tabs__nav {
  display: flex;
  border-bottom: 0.5px solid var(--border-med);
  margin-bottom: 16px;
}

.product-tabs__btn {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #aaa;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -0.5px;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  font-family: var(--font);
}

.product-tabs__btn:hover { color: var(--navy); }

.product-tabs__btn.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.product-tabs__panel { display: none; font-size: 12px; line-height: 1.7; color: #555; }
.product-tabs__panel.active { display: block; }

.product-tabs__table { width: 100%; border-collapse: collapse; font-size: 12px; }
.product-tabs__table td { padding: 7px 0; border-bottom: 0.5px solid var(--border); }
.product-tabs__table td:first-child { color: #aaa; font-weight: 500; text-transform: uppercase; font-size: 10px; width: 120px; }

/* Formularz zapytania */
.inquiry-form { display: flex; flex-direction: column; gap: 10px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row::before, .form-row::after,
.inquiry-form::before, .inquiry-form::after,
.form-group::before, .form-group::after {
  display: none !important;
  content: none !important;
}

.form-group { display: flex; flex-direction: column; gap: 4px; }

.form-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #aaa;
}

.form-input,
.form-textarea {
  font-family: var(--font);
  font-size: 12px;
  color: var(--black);
  border: 0.5px solid var(--border-med);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  outline: none;
  background: #fafafa;
  transition: border-color 0.15s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus { border-color: var(--navy); background: #fff; }

.form-textarea { min-height: 100px; resize: vertical; }

.form-submit {
  align-self: flex-start;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.form-submit:hover { background: var(--navy-dark); }

/* ============================================================
   STRONY STATYCZNE
   ============================================================ */
.static-page { padding: 24px; max-width: 860px; }

.static-page__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--navy);
}

.static-page__title .dot { color: var(--orange); }

.static-page h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(44,62,135,0.06);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin: 20px 0 12px;
}

.static-page p {
  font-size: 12px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
}

.static-page a { color: var(--navy); }
.static-page a:hover { color: var(--orange); }

/* Karty przedstawicieli */
.reps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0 20px;
}

.rep-card {
  border: 0.5px solid var(--border-med);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s;
}

.rep-card:hover { box-shadow: var(--shadow-hover); }

.rep-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.rep-card__row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #555;
  margin-bottom: 4px;
}

.rep-card__row svg { width: 12px; height: 12px; color: var(--navy); flex-shrink: 0; }
.rep-card__row a { color: var(--navy); }
.rep-card__row a:hover { color: var(--orange); }

.rep-card__area {
  font-size: 10px;
  color: #aaa;
  line-height: 1.5;
  margin-top: 8px;
  font-style: italic;
}

/* Strona O nas */
.onas-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 0.5px solid var(--border-med);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s;
}

.onas-section:hover { box-shadow: var(--shadow-hover); }

.onas-section::before, .onas-section::after { display: none !important; content: none !important; }

.onas-section.reverse { direction: rtl; }
.onas-section.reverse > * { direction: ltr; }

.onas-section > div:first-child {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.onas-section__heading {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
  align-self: flex-start;
}

.onas-section__heading .dot { color: var(--orange); }

.onas-section p {
  font-size: 12px;
  line-height: 1.8;
  color: #555;
}

.onas-section__img {
  background: #f9f9f9;
  border-left: 0.5px solid var(--border);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onas-section.reverse .onas-section__img {
  border-left: none;
  border-right: 0.5px solid var(--border);
}

.onas-section__img img { width: 100%; height: 100%; max-height: 260px; object-fit: contain; padding: 20px; }

.contact-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  text-decoration: none;
}

.contact-btn:hover { background: var(--navy-dark); color: #fff; }

/* Fix — .static-page a nadpisywał biały tekst przycisków */
.static-page .contact-btn,
.static-page .contact-btn:hover,
.static-page .contact-btn:visited {
  color: #fff !important;
}
.contact-btn svg { width: 13px; height: 13px; }

/* Strona Kontakt */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.contact-info__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
  line-height: 1.5;
}

.contact-info__row svg { width: 14px; height: 14px; color: var(--navy); flex-shrink: 0; }
.contact-info__row a { color: var(--navy); }

/* ============================================================
   PAGINACJA
   ============================================================ */
.woocommerce-pagination { margin-top: 12px; text-align: center; }
.woocommerce-pagination ul { display: flex; gap: 4px; justify-content: center; list-style: none; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #888;
  border: 0.5px solid var(--border-med);
  background: var(--bg-card);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.woocommerce-pagination ul li a:hover { background: var(--bg-surface); color: var(--navy); }
.woocommerce-pagination ul li span.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.site-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #aaa;
  padding: 10px 24px;
  border-bottom: 0.5px solid var(--border);
  flex-wrap: wrap;
}

.site-breadcrumb a { color: var(--navy); }
.site-breadcrumb a:hover { color: var(--orange); }
.site-breadcrumb span { color: #ddd; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, background 0.15s, transform 0.15s;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(44,62,135,0.25);
}

#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--orange); transform: translateY(-2px); }
#scroll-top svg { width: 18px; height: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #ececea;
  border-top: 0.5px solid var(--border-med);
  padding: 24px 24px 16px;
  font-size: 11px;
  color: #888;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}

.site-footer__col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  margin-bottom: 10px;
}

.site-footer__link {
  display: block;
  color: #888;
  margin-bottom: 4px;
  transition: color 0.12s;
}

.site-footer__link:hover { color: var(--navy); }

.site-footer__bottom {
  border-top: 0.5px solid var(--border-med);
  padding-top: 12px;
  text-align: center;
  font-size: 10px;
  color: #bbb;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-notices-wrapper { padding: 0 24px; }

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: var(--radius-md) !important;
  font-size: 12px !important;
  font-family: var(--font) !important;
  margin-bottom: 12px !important;
}

/* KLUCZOWE: clearfix ::before/::after WooCommerce staje się komórką grida! */
ul.products::before,
ul.products::after,
.products-grid::before,
.products-grid::after {
  display: none !important;
  content: none !important;
}

/* Ukryj puste li i kafelki podkategorii (puste pierwsze pole) */
ul.products li.product-category,
ul.products li.product-category.product,
ul.products li:empty,
ul.products li.product:not(:has(.rezon-product-card__image-wrapper)):not(:has(img)) {
  display: none !important;
}

/* Ukryj domyślne elementy WooCommerce na kartach */
ul.products li.product a.woocommerce-loop-product__link:not(.rezon-product-card__image-wrapper),
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price:not(.rezon-product-card__detail),
ul.products li.product a.button:not(.rezon-product-card__button),
ul.products li.product .star-rating { display: none !important; }

ul.products li.product .rezon-product-card__image-wrapper,
ul.products li.product .rezon-product-card__name { display: flex !important; }

ul.products li.product .rezon-product-card__content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 1000px) {
  /* Sidebar chowany, hamburger pokazany */
  .site-sidebar { display: none; }
  .topbar-toggle { display: flex; }
  .site-sidebar.open { display: flex; position: fixed; top: 0; left: 0; height: 100%; z-index: 200; width: 260px; box-shadow: 4px 0 24px rgba(0,0,0,0.15); }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 199; display: none; }
  .sidebar-overlay.open { display: block; }

  /* Menu topbara chowamy — będzie w sidebarze */
  .topbar-nav,
  .topbar-divider { display: none; }

  /* Wyszukiwarka mniejsza */
  .topbar-search { width: auto; }
  .topbar-search input { width: 100px; font-size: 12px; }

  /* Topbar bez paddingu bocznego */
  .site-topbar { padding: 0 12px; gap: 8px; }

  /* Logo mniejsze */
  .site-logo img { height: 32px; }

  /* Hamburger po prawej */
  .topbar-toggle { order: 10; }

  /* Pokaż sekcję menu topbara w sidebarze */
  .sidebar-topmenu-mobile { display: block; border-bottom: 0.5px solid var(--border); padding-bottom: 8px; margin-bottom: 8px; }
}

@media (max-width: 600px) {
  /* Bardzo małe ekrany — jeszcze mniej */
  .topbar-search input { width: 70px; }
  .site-logo img { height: 28px; }
}

@media (max-width: 700px) {
  .site-content { padding: 14px 16px; }
  .onas-section, .contact-page, .reps-grid { grid-template-columns: 1fr; }
  .onas-section.reverse { direction: ltr; }
  .single-product__layout { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .benefits-bar { grid-template-columns: 1fr; }
}

/* ============================================================
   PLIKI DO POBRANIA (Katalogi produktów / Formularze zamówień)
   ============================================================ */

/* Nagłówek "Pliki Do Pobrania" */
.static-page .download-attachments-title,
.static-page h3.download-title {
  font-size: 12px;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 4px 0 14px;
}

/* Tabela wtyczki -> lista kart */
.static-page table.download-attachments,
.static-page .download-attachments table,
.static-page table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin: 0;
}

/* Ukryj nagłówek tabeli (Plik / Opis) */
.static-page table thead,
.static-page table th {
  display: none;
}

/* Wiersz jako karta */
.static-page table tbody tr {
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s, transform 0.15s;
}

.static-page table tbody tr:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.static-page table tbody td {
  border: 0.5px solid var(--border-med);
  border-left: none;
  border-right: none;
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 12px;
  color: #888;
}

.static-page table tbody td:first-child {
  border-left: 0.5px solid var(--border-med);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.static-page table tbody td:last-child {
  border-right: 0.5px solid var(--border-med);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: right;
}

/* Jeśli tylko jedna kolumna — zaokrąglij całość */
.static-page table tbody td:only-child {
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border-med);
}

/* Ikona PDF wtyczki — schowaj brzydki obrazek, damy własną */
.static-page table tbody td img {
  display: none;
}

/* Link do pliku */
.static-page table tbody td a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: color 0.12s;
}

.static-page table tbody td a:hover {
  color: var(--navy);
}

/* Własna ikona PDF przed linkiem */
.static-page table tbody td a::before {
  content: '';
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: rgba(238, 123, 16, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ee7b10' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}

/* Strzałka pobierania po prawej stronie linku */
.static-page table tbody td a::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbbbbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  opacity: 0.6;
  transition: opacity 0.12s;
}

.static-page table tbody tr:hover td a::after {
  opacity: 1;
}

/* Link zajmuje cały wiersz — klikalna cała szerokość */
.static-page table tbody td:first-child a {
  width: 100%;
}

/* ============================================================
   PRZYCISK B2B — CTA w topbarze
   ============================================================ */
.topbar-b2b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-b2b svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.topbar-b2b:hover {
  background: #d66c0a;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(238, 123, 16, 0.35);
  color: #fff !important;
}

.topbar-b2b:active {
  transform: translateY(0);
}

/* Pulsujący błysk przy pojawieniu */
.topbar-b2b::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: b2b-shine 4s ease-in-out infinite;
}

@keyframes b2b-shine {
  0%, 88%, 100% { left: -50%; }
  94% { left: 130%; }
}

/* Mobile — tylko ikona */
@media (max-width: 1000px) {
  .topbar-b2b { padding: 7px 9px; }
  .topbar-b2b span { display: none; }
  .topbar-b2b svg { width: 16px; height: 16px; }
}
