/**
 * ==============================================================================
 * TRÓJKA ELECTRONICS - MOTYW SKLEPU PRESTASHOP v2.3 (DARK TECH)
 * ==============================================================================
 * Dedykowany arkusz stylów CSS dla PrestaShop 1.7 / 8 / 9 (Motyw Classic / Child Theme)
 * Zapewnia 100% eliminację białych pól w całym sklepie (pilot.com.pl):
 * - Całkowite zaciemnienie: karty produktów, tło opisów, miniatur, blok custom-text,
 *   newsletter, filtry, tabele, koszyk, checkout, modale, cookie banner, menu mobilne.
 * - Kolorystyka: Grafit (#090d16), Nocny Granat (#0f172a) i Stalowy Błękit (#38bdf8)
 * - Akcenty: Złoto / Bursztyn (#fbbf24) oraz Szmaragdowa dostępność (#10b981)
 * - Typografia: Montserrat (Google Fonts)
 * ==============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --trojka-bg-main: #090d16;
  --trojka-bg-card: #0f172a;
  --trojka-bg-card-hover: #1e293b;
  --trojka-bg-darkest: #020617;
  --trojka-bg-elevated: #162032;
  
  --trojka-border: #334155;
  --trojka-border-subtle: #1e293b;
  --trojka-border-focus: #38bdf8;
  
  --trojka-primary: #38bdf8;
  --trojka-primary-hover: #0284c7;
  --trojka-primary-light: #7dd3fc;
  --trojka-primary-dark: #0369a1;
  --trojka-primary-glow: rgba(56, 189, 248, 0.15);
  
  --trojka-gold: #fbbf24;
  --trojka-gold-dark: #b45309;
  
  --trojka-emerald: #10b981;
  --trojka-emerald-light: #34d399;
  --trojka-emerald-bg: #064e3b;
  
  --trojka-text: #f8fafc;
  --trojka-text-main: #f8fafc;
  --trojka-text-muted: #cbd5e1; /* Bardzo czytelny, jasny odcień - identyczny jak CAME / SOMFY */
  --trojka-text-dim: #94a3b8;   /* Zwiększona jasność dla elementów drugorzędnych */
  --trojka-radius: 12px;
  --trojka-radius-sm: 8px;
}

/* --------------------------------------------------------------------------
   1. GLOBALNE TŁO I TYPOGRAFIA (ELIMINACJA BIAŁEGO BODY I TŁA STRONY)
   -------------------------------------------------------------------------- */
html,
body, 
#page, 
#wrapper, 
main,
#content-wrapper,
#main,
#content,
.page-content,
.bg-white,
.bg-light {
  background-color: var(--trojka-bg-main) !important;
  color: var(--trojka-text-main) !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

#wrapper {
  background-color: var(--trojka-bg-main) !important;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.05) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px) !important;
  background-size: 100% 100%, 32px 32px, 32px 32px !important;
  box-shadow: none !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

p, span, label, li, dt, dd {
  color: var(--trojka-text-muted);
}

strong, b {
  color: #ffffff !important;
}

a {
  color: var(--trojka-primary-light);
  text-decoration: none !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus {
  color: #ffffff;
  text-decoration: none !important;
}

hr {
  border-color: var(--trojka-border-subtle) !important;
}

/* --------------------------------------------------------------------------
   2. GÓRNY PASEK I NAGŁÓWEK SKLEPU (HEADER, TOP NAV, WYSZUKIWARKA)
   -------------------------------------------------------------------------- */
#header {
  background: var(--trojka-bg-darkest) !important;
  border-bottom: 1px solid var(--trojka-border-subtle);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-banner {
  background: var(--trojka-bg-darkest) !important;
}

.header-nav {
  background: rgba(9, 13, 22, 0.98) !important;
  border-bottom: 1px solid var(--trojka-border-subtle) !important;
  color: var(--trojka-text-muted) !important;
  font-size: 12px;
  padding: 8px 0;
}

.header-nav .right-nav,
.header-nav .left-nav {
  display: flex;
  align-items: center;
}

.header-nav a,
.header-nav .user-info a {
  color: var(--trojka-text-muted) !important;
}

.header-nav a:hover,
.header-nav .user-info a:hover {
  color: var(--trojka-primary-light) !important;
}

.header-nav .contact-link a,
.header-nav a[href^="tel:"] {
  color: var(--trojka-primary-light) !important;
  font-weight: 600;
}

.header-top {
  background: rgba(15, 23, 42, 0.98) !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--trojka-border-subtle);
}

#header .logo {
  max-height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0, 234, 253, 0.25));
}

/* Wyszukiwarka produktów PrestaShop (Search Widget) */
#search_widget,
.search-widgets,
.search-widget {
  position: relative !important;
  min-width: 280px;
}

#search_widget form,
.search-widgets form,
.search-widget form {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  background: transparent !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Lupka - ikona wyszukiwania (zarówno <i> jak i <button>) umieszczona precyzyjnie z lewej */
#search_widget .material-icons.search,
#search_widget i.search,
#search_widget i.material-icons:not(.clear),
.search-widgets .material-icons.search,
.search-widgets i.search,
.search-widgets i.material-icons:not(.clear),
.search-widget .material-icons.search,
.search-widget i.search,
#search_widget button[type="submit"],
.search-widgets button[type="submit"] {
  position: absolute !important;
  left: 14px !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--trojka-primary, #38bdf8) !important;
  font-size: 21px !important;
  width: 22px !important;
  height: 22px !important;
  line-height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 4 !important;
  cursor: pointer !important;
}

/* Pole tekstowe wyszukiwarki: lewy margines 48px gwarantuje, że lupka nie nachodzi na napis "Szukaj w naszym katalogu" */
#search_widget input[type="text"],
.search-widgets form input[type="text"],
.search-widget form input[type="text"],
.header-top .search-widget form input[type="text"],
.header-top .search-widgets form input[type="text"],
#search_widget input[name="s"],
.search-widgets input[name="s"],
.search-widget input[name="s"],
input[name="s"] {
  background: var(--trojka-bg-darkest) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  color: #ffffff !important;
  padding: 10px 42px 10px 48px !important; /* 48px z lewej: lupka kończy się na 36px, co daje 12px czystego odstępu */
  font-size: 13.5px !important;
  height: 44px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

#search_widget input[type="text"]:focus,
.search-widget form input[type="text"]:focus,
.header-top .search-widgets form input[type="text"]:focus,
#search_widget input[name="s"]:focus {
  background: var(--trojka-bg-darkest) !important;
  border-color: var(--trojka-primary) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22) !important;
  outline: none !important;
  color: #ffffff !important;
}

#search_widget input::placeholder,
.search-widgets input::placeholder,
.search-widget input::placeholder,
input[name="s"]::placeholder {
  color: var(--trojka-text-muted) !important;
  opacity: 0.9 !important;
  font-size: 13.5px !important;
}

/* Ikona czyszczenia (clear / krzyżyk) po prawej stronie */
#search_widget .material-icons.clear,
#search_widget i.clear,
.search-widgets .material-icons.clear,
.search-widgets i.clear {
  position: absolute !important;
  right: 14px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--trojka-text-muted) !important;
  font-size: 19px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 4 !important;
  transition: color 0.15s ease !important;
}

#search_widget .material-icons.clear:hover,
.search-widgets .material-icons.clear:hover {
  color: #ffffff !important;
}

/* Koszyk w nagłówku (#_desktop_cart) */
#_desktop_cart .blockcart,
.blockcart {
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: var(--trojka-radius) !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#_desktop_cart .blockcart:hover,
.blockcart:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

#_desktop_cart .blockcart a,
.blockcart a {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blockcart .cart-products-count {
  background: var(--trojka-gold) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  border-radius: 9999px !important;
  padding: 2px 7px !important;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   3. MENU GŁÓWNE I ROZWIJANE KATEGORIE (TOP NAVIGATION & POPOVER SUBMENU)
   -------------------------------------------------------------------------- */
.top-menu,
#_desktop_top_menu,
.menu.js-top-menu {
  background: var(--trojka-bg-darkest) !important;
  border-bottom: 1px solid var(--trojka-border-subtle);
  margin-bottom: 0 !important;
}

.top-menu .category > a,
.top-menu a[data-depth="0"] {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 14px 18px !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.top-menu .category > a:hover,
.top-menu a[data-depth="0"]:hover {
  color: var(--trojka-primary-light, #7dd3fc) !important;
  background: transparent !important;
  text-decoration: none !important;
}

.top-menu li.current > a,
.top-menu li.active-parent > a,
.top-menu a[data-depth="0"].active {
  color: var(--trojka-primary, #38bdf8) !important;
  background: transparent !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.top-menu a:focus,
.top-menu a:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Rozwijane mega menu marek/kategorii (eliminacja białego tła popover) */
.top-menu .sub-menu,
.popover.sub-menu,
.popover,
.dropdown-menu {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8) !important;
  color: var(--trojka-text-main) !important;
}

.top-menu .sub-menu ul,
.top-menu .sub-menu li {
  background: transparent !important;
}

.top-menu .sub-menu a,
.dropdown-item {
  color: var(--trojka-text-muted) !important;
  background: transparent !important;
}

.top-menu .sub-menu a:hover,
.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--trojka-primary-light) !important;
  background: rgba(56, 189, 248, 0.1) !important;
}

/* Mobilne menu */
#mobile_top_menu_wrapper,
#mobile_top_menu_wrapper .top-menu,
#mobile_top_menu_wrapper .top-menu .sub-menu,
.js-top-menu.mobile {
  background: var(--trojka-bg-card) !important;
  color: var(--trojka-text-main) !important;
  border-color: var(--trojka-border) !important;
}

#mobile_top_menu_wrapper a {
  color: var(--trojka-text-main) !important;
}

/* --------------------------------------------------------------------------
   4. BREADCRUMB (ŚCIEŻKA POWROTU)
   -------------------------------------------------------------------------- */
.breadcrumb {
  background: transparent !important;
  padding: 14px 0 !important;
  font-size: 12px !important;
}

.breadcrumb ol,
.breadcrumb li {
  background: transparent !important;
}

.breadcrumb ol li a,
.breadcrumb li a,
.breadcrumb a {
  color: var(--trojka-text-muted) !important;
}

.breadcrumb ol li a:hover,
.breadcrumb a:hover {
  color: var(--trojka-primary-light) !important;
}

.breadcrumb ol li:last-child span,
.breadcrumb li:last-child {
  color: #ffffff !important;
  font-weight: 600;
}

.breadcrumb ol li::after,
.breadcrumb li::after {
  color: var(--trojka-border) !important;
}

/* --------------------------------------------------------------------------
   5. SIATKA, KAFELKI PRODUKTÓW I OPISY (.product-miniature - RÓWNA WYSOKOŚĆ, ODSTĘPY I SERDUSZKO)
   -------------------------------------------------------------------------- */
/* Siatka produktów - flex z równymi kolumnami i wyraźnymi przerwami zapobiegającymi sklejaniu */
#js-product-list .products.row,
.products.row {
  display: flex !important;
  flex-wrap: wrap !important;
  row-gap: 32px !important;
  margin-left: -14px !important;
  margin-right: -14px !important;
}

.products .product,
.js-product.product,
#js-product-list .product {
  display: flex !important;
  flex-direction: column !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  margin-bottom: 32px !important; /* Wyraźny odstęp pionowy eliminujący sklejanie się górnych i dolnych okien */
  box-sizing: border-box !important;
}

/* Karta miniatury produktu - pełna równa wysokość i zwiększone wymiary okna */
.products .product-miniature,
.product-miniature,
.js-product-miniature {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius, 12px) !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex-grow: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 440px !important; /* Zwiększona, jednolita wysokość okna miniatury */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}

.products .product-miniature:hover,
.product-miniature:hover,
.js-product-miniature:hover {
  border-color: var(--trojka-primary) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.15) !important;
  background: var(--trojka-bg-card-hover) !important;
}

/* Wewnętrzny kontener miniatury */
.product-miniature .thumbnail-container {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex-grow: 1 !important;
  height: 100% !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  position: relative !important;
}

/* Okno ze zdjęciem pilota - wyższe, wycentrowane z czystym tłem */
.product-miniature .thumbnail-top {
  position: relative !important;
  background: #ffffff !important; /* Czyste tło pod zdjęciem pilota */
  border-radius: var(--trojka-radius-sm, 8px) !important;
  padding: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 270px !important; /* Zwiększona wysokość okna ze zdjęciem */
  height: 270px !important;
  border: 1px solid var(--trojka-border-subtle, rgba(255, 255, 255, 0.08)) !important;
  margin-bottom: 14px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.product-miniature .thumbnail-top a.product-thumbnail,
.product-miniature .thumbnail.product-thumbnail {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.product-miniature .thumbnail-top img,
.product-miniature .product-thumbnail img {
  border-radius: var(--trojka-radius-sm, 6px);
  max-height: 246px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  margin: auto !important;
  transition: transform 0.25s ease !important;
  background: transparent !important;
}

.product-miniature:hover .thumbnail-top img {
  transform: scale(1.04);
}

/* ==========================================================================
   PRZYCISK SERDUSZKA (LISTA ŻYCZEŃ / BLOCKWISHLIST) W PRAWYM GÓRNYM ROGU MINIATURY
   Spójny z kolorystyką Trójka Electronics (Dark Tech / Cyber Cyan)
   ========================================================================== */
.wishlist-button-add,
.products article .wishlist-button-add,
.product-miniature .wishlist-button-add,
button.wishlist-button-add,
div.wishlist-button button {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  background: rgba(11, 19, 43, 0.92) !important; /* Ciemny granat dopasowany do motywu Trójka */
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important; /* Subtelna ramka Cyber Cyan */
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 10px rgba(56, 189, 248, 0.2) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10 !important;
  outline: none !important;
}

/* Ikona serduszka wewnątrz przycisku */
.wishlist-button-add i,
.products article .wishlist-button-add i,
.product-miniature .wishlist-button-add i,
button.wishlist-button-add i,
div.wishlist-button button i {
  color: var(--trojka-primary, #38bdf8) !important; /* Cyber Cyan serduszko */
  font-size: 20px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

/* Stan najechania myszą (Hover) - rozświetlenie w kolorze motywu */
.wishlist-button-add:hover,
.products article .wishlist-button-add:hover,
.product-miniature .wishlist-button-add:hover,
button.wishlist-button-add:hover,
div.wishlist-button button:hover {
  background: var(--trojka-primary, #38bdf8) !important;
  border-color: #38bdf8 !important;
  transform: scale(1.12) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.75), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
}

.wishlist-button-add:hover i,
.products article .wishlist-button-add:hover i,
.product-miniature .wishlist-button-add:hover i,
button.wishlist-button-add:hover i,
div.wishlist-button button:hover i {
  color: #020617 !important; /* Ciemny kontrast wewnątrz świecącego cyjanu */
}

/* Stan aktywny / kliknięty */
.wishlist-button-add:active,
.wishlist-button-add.wishlist-button-active {
  transform: scale(1.18) !important;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.9) !important;
}

/* Przycisk listy życzeń na karcie produktu */
.wishlist-button-product {
  background: rgba(11, 19, 43, 0.92) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  border-radius: var(--trojka-radius-sm, 6px) !important;
  color: var(--trojka-primary, #38bdf8) !important;
  transition: all 0.2s ease !important;
}

.wishlist-button-product:hover {
  background: var(--trojka-primary, #38bdf8) !important;
  color: #020617 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6) !important;
}

/* Tło pod opisem produktu (PrestaShop domyślnie wymuszało tu #fff) */
.product-miniature .product-description,
.product-description {
  background-color: transparent !important;
  background: transparent !important;
  color: var(--trojka-text-muted) !important;
  padding: 8px 4px 4px 4px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  flex-grow: 1 !important;
  margin-top: auto !important;
  width: 100% !important;
  text-align: center !important;
}

.product-miniature:hover .product-description {
  background: transparent !important;
}

/* Pasek szybkiego podglądu (wysuwający się) */
.product-miniature .highlighted-informations,
.highlighted-informations {
  background-color: var(--trojka-bg-elevated) !important;
  background: var(--trojka-bg-elevated) !important;
  border-top: 1px solid var(--trojka-border-subtle) !important;
  color: var(--trojka-text-main) !important;
}

.product-miniature .highlighted-informations .quick-view {
  color: var(--trojka-primary-light) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.product-miniature .highlighted-informations .quick-view:hover {
  color: #ffffff !important;
}

.product-miniature .variant-links,
.variant-links {
  background: transparent !important;
}

/* Nazwa i symbol produktu - stała rezerwa wysokości eliminująca różnice wysokości miniatur */
.product-title,
.product-title a,
.product-miniature .product-title,
.product-miniature .product-title a {
  text-decoration: none !important;
  border-bottom: none !important;
}

.product-miniature .product-title,
.product-title {
  min-height: 52px !important; /* Gwarantowana stała wysokość na 2-3 linijki tytułu */
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 0 6px 0 !important;
  padding: 0 4px !important;
  width: 100% !important;
}

.product-title a,
.product-miniature .product-title a {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  transition: color 0.15s ease !important;
}

.product-title a:hover,
.product-miniature .product-title a:hover {
  color: var(--trojka-primary, #38bdf8) !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.product-title a:active,
.product-title a:focus,
.product-title a.active,
.product-miniature .product-title a:active {
  color: var(--trojka-primary, #38bdf8) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Ceny */
.product-price-and-shipping {
  margin-top: 10px !important;
}

.product-price-and-shipping .price,
.current-price .current-price-value,
.product-price {
  color: var(--trojka-primary) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.product-price-and-shipping .regular-price,
.regular-price {
  color: var(--trojka-text-dim) !important;
  text-decoration: line-through !important;
  font-size: 13px !important;
  margin-right: 6px;
}

.product-price-and-shipping .discount-percentage,
.discount-percentage {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Flagi produktów (Nowość, Wyprzedaż) */
.product-flags .product-flag {
  background: var(--trojka-bg-darkest) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: 6px !important;
  color: var(--trojka-primary-light) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
}

.product-flags .product-flag.on-sale {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: var(--trojka-gold) !important;
  color: var(--trojka-gold) !important;
}

/* Dostępność w magazynie / Pawilon 67 */
.product-availability,
.product-availability .material-icons {
  font-size: 12px !important;
}

.product-available,
.product-availability .product-available {
  color: var(--trojka-emerald-light) !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.product-unavailable {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  display: inline-flex;
  font-weight: 600;
}

/* Przycisk „Wszystkie produkty” */
.all-product-link {
  color: var(--trojka-primary-light) !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.all-product-link:hover {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   6. BLOK TEKSTOWY NA STRONIE GŁÓWNEJ (#custom-text)
   -------------------------------------------------------------------------- */
#custom-text {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  color: var(--trojka-text-main) !important;
  padding: 32px 28px !important;
  margin: 32px 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

#custom-text h2,
#custom-text h3 {
  color: #ffffff !important;
  margin-bottom: 16px;
  font-weight: 700;
}

#custom-text p,
#custom-text span,
#custom-text strong {
  color: var(--trojka-text-muted) !important;
  line-height: 1.7;
}

#custom-text strong.dark {
  color: #ffffff !important;
}

#custom-text a,
#custom-text span a {
  color: var(--trojka-primary) !important;
  font-weight: 700 !important;
}

#custom-text a:hover {
  color: #ffffff !important;
}

/* Baner reklamowy */
.banner {
  border-radius: var(--trojka-radius);
  overflow: hidden;
  border: 1px solid var(--trojka-border);
  display: block;
  margin: 24px 0;
}

/* --------------------------------------------------------------------------
   7. BLOKI I KARTY BOOTSTRAP / PRESTASHOP (.card, .card-block)
   -------------------------------------------------------------------------- */
.card,
.card-block,
.card-header,
.card-footer,
.list-group-item,
.page-order-detail .box,
.page-my-account #content .links a span.link-item,
.page-addresses .address {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  color: var(--trojka-text-main) !important;
}

.card-header {
  border-bottom: 1px solid var(--trojka-border-subtle) !important;
}

/* Nagłówek kategorii (np. Piloty LG, dekodery) */
.block-category,
.block-category.card,
.block-category.card.card-block {
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  padding: 24px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.block-category h1,
.block-category .h1 {
  color: #ffffff !important;
}

.block-category p,
.block-category strong,
.block-category #category-description {
  color: var(--trojka-text-muted) !important;
}

/* Pasek sortowania i wyboru liczby produktów zdefiniowano w sekcji 13 (brak powielających się ramek) */

/* --------------------------------------------------------------------------
   8. TABELE I DANE TECHNICZNE (ELIMINACJA .table td/th background: #fff)
   -------------------------------------------------------------------------- */
table,
.table,
.table td,
.table th,
.table tbody tr,
.table thead tr,
.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(even),
.table-product-discounts thead tr th,
.order-confirmation-table {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  color: var(--trojka-text-main) !important;
  border-color: var(--trojka-border) !important;
}

.table th {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   9. PRZYCISKI I FORMULARZE (BUTTONS & CONTROLS)
   -------------------------------------------------------------------------- */
/* Główny przycisk akcji (CTA: Dodaj do koszyka, Zamawiam, Subskrybuj) */
.btn-primary,
.add-to-cart,
button.btn-primary,
a.btn-primary,
input.btn-primary[type="submit"] {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: var(--trojka-radius-sm, 6px) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.btn-primary:hover,
.add-to-cart:hover,
button.btn-primary:hover,
a.btn-primary:hover,
input.btn-primary[type="submit"]:hover {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%) !important;
  border-color: var(--trojka-primary, #38bdf8) !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.55) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* Przycisk pomocniczy / kontynuuj zakupy */
.btn-secondary,
button.btn-secondary,
a.btn-secondary {
  background: var(--trojka-bg-card) !important;
  color: var(--trojka-primary-light) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  transition: all 0.2s ease !important;
}

.btn-secondary:hover,
button.btn-secondary:hover,
a.btn-secondary:hover {
  background: var(--trojka-bg-card-hover) !important;
  border-color: var(--trojka-primary) !important;
  color: #ffffff !important;
}

/* Pola tekstowe formularzy, selecty */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select,
.custom-select,
.input-group input {
  background-color: var(--trojka-bg-darkest) !important;
  background: var(--trojka-bg-darkest) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius-sm) !important;
  color: #ffffff !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus,
.custom-select:focus {
  background-color: var(--trojka-bg-darkest) !important;
  border-color: var(--trojka-primary) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
  outline: none !important;
  color: #ffffff !important;
}

.form-control-label {
  color: var(--trojka-text-main) !important;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. KARTA POJEDYNCZEGO PRODUKTU (PRODUCT DETAIL PAGE)
   -------------------------------------------------------------------------- */
.product-container,
.product-information,
.product-actions {
  background: transparent !important;
}

#product-description-short,
.product-description {
  color: var(--trojka-text-muted) !important;
  line-height: 1.7;
}

.product-features,
.product-features dl {
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  padding: 16px !important;
}

.product-features dt {
  color: #ffffff !important;
  font-weight: 600;
}

.product-features dd {
  color: var(--trojka-text-muted) !important;
}

/* Zakładki (Opis, Szczegóły produktu) */
.tabs,
.nav-tabs {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border-bottom: 1px solid var(--trojka-border) !important;
}

.nav-tabs .nav-link {
  color: var(--trojka-text-muted) !important;
  background: transparent !important;
  border: none !important;
  font-weight: 600 !important;
  padding: 14px 22px !important;
  border-bottom: 2px solid transparent !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
  color: var(--trojka-primary) !important;
  border-bottom-color: var(--trojka-primary) !important;
  background: transparent !important;
}

.tab-content {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-top: none !important;
  border-radius: 0 0 var(--trojka-radius) var(--trojka-radius) !important;
  padding: 24px !important;
  color: var(--trojka-text-muted) !important;
}

/* Zdjęcia i miniatury na karcie produktu */
.images-container .js-qv-product-cover,
.product-cover,
.product-cover img {
  background: var(--trojka-bg-darkest) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  padding: 12px;
}

.product-images img.thumb {
  background: var(--trojka-bg-darkest) !important;
  border: 1px solid var(--trojka-border-subtle) !important;
  border-radius: var(--trojka-radius-sm) !important;
}

.product-images img.thumb.selected {
  border-color: var(--trojka-primary) !important;
}

/* Moduł zaufania (Gwarancja, Wysyłka, Obsługa) */
.blockreassurance,
.blockreassurance_product {
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  padding: 16px !important;
  color: var(--trojka-text-main) !important;
}

.blockreassurance p,
.blockreassurance .block-title {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   11. FILTRY BOCZNE I KATEGORIE (FACETED SEARCH, BLOCK CATEGORIES & SUBCATEGORIES)
   -------------------------------------------------------------------------- */
#search_filters,
#search_filters_suppliers,
.block-categories,
#left-column .block-categories {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  padding: 20px !important;
  margin-bottom: 24px;
}

/* Nagłówek drzewa kategorii (np. PILOTY RTV w lewym panelu bocznym) */
#search_filters .facet .facet-title,
.block-categories .h5,
.block-categories .h6,
.block-categories .title_block,
.block-categories .category-top-menu > li > a.h6,
.block-categories > ul > li > a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--trojka-border-subtle);
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: block;
}

/* Lista marek i podkategorii (ujednolicona kolorystyka z miniaturkami, bez podkreśleń i bez skakania) */
.block-categories a,
.block-categories ul li a,
.block-categories .category-sub-menu a,
.block-categories .category-sub-menu li a,
.block-categories .category-sub-menu li[data-depth="0"] > a,
.block-categories .category-sub-link,
#left-column .block-categories a {
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.15s ease !important;
  display: inline-block;
  width: 100%;
  padding: 4px 0 !important;
}

.block-categories a:hover,
.block-categories ul li a:hover,
.block-categories .category-sub-menu a:hover,
.block-categories .category-sub-menu li a:hover,
.block-categories .category-sub-menu li[data-depth="0"] > a:hover,
.block-categories .category-sub-link:hover,
#left-column .block-categories a:hover {
  color: var(--trojka-primary, #38bdf8) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  padding-left: 0 !important;
}

/* Aktywny / wciśnięty / wybrany link w lewym panelu: Trójka Cyber Cyan, bez paska bocznego, bez zmiany tła i bez przesuwania */
.block-categories a:active,
.block-categories a:focus,
.block-categories a.active,
.block-categories li.active > a,
.block-categories .current > a,
.block-categories .current a,
#left-column .block-categories a:active,
#left-column .block-categories a:focus,
#left-column .block-categories a.active,
#left-column .block-categories li.active > a,
#left-column .block-categories .current > a,
#left-column .block-categories .current a {
  color: var(--trojka-primary, #38bdf8) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  border: none !important;
  border-left: none !important;
  background: transparent !important;
  background-color: transparent !important;
  padding-left: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Ikony rozwijania kategorii (+ / - / strzałki) */
.block-categories .collapse-icons,
.block-categories .collapse-icons .material-icons,
.block-categories .collapse-icons .add,
.block-categories .collapse-icons .remove,
.block-categories .arrows,
.block-categories .arrows .arrow-right,
.block-categories .arrows .arrow-down {
  color: var(--trojka-text-muted) !important;
}

.block-categories .collapse-icons:hover,
.block-categories .arrows:hover {
  color: var(--trojka-primary-light) !important;
}

/* ==========================================================================
   UKRYCIE WIDOKU PODKATEGORII I NAGŁÓWKA KATEGORII W OKNIE GŁÓWNYM
   Podkategorie są dostępne i wybierane wyłącznie w lewym menu bocznym.
   W oknie głównym od razu pojawia się lista produktów i filtry.
   ========================================================================== */
#subcategories,
.subcategories,
#main #subcategories,
section#main #subcategories,
.card#subcategories,
.block-category,
.block-category.card,
.block-category.card.card-block,
#js-product-list-header .block-category,
#main .block-category,
section#main .block-category {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#search_filters .facet label,
#search_filters .facet .facet-label a,
#search_filters .facet a {
  color: #ffffff !important;
  font-size: 13.5px;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.15s ease;
}

#search_filters .facet label:hover,
#search_filters .facet .facet-label a:hover,
#search_filters .facet a:hover {
  color: var(--trojka-primary, #38bdf8) !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

#search_filters .facet label:active,
#search_filters .facet label.active,
#search_filters .facet .facet-label.active a,
#search_filters .facet a:active {
  color: var(--trojka-primary, #38bdf8) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.custom-checkbox input[type="checkbox"] + span {
  background: var(--trojka-bg-darkest) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: 4px;
}

.custom-checkbox input[type="checkbox"]:checked + span {
  background: var(--trojka-primary) !important;
  border-color: var(--trojka-primary) !important;
}

.active_filters .filter-block {
  background: var(--trojka-bg-elevated) !important;
  border: 1px solid var(--trojka-border) !important;
  color: #ffffff !important;
  border-radius: var(--trojka-radius-sm);
}

/* --------------------------------------------------------------------------
   12. STRONA KOSZYKA I KASA / ZAMÓWIENIE (CART & CHECKOUT)
   -------------------------------------------------------------------------- */
.cart-grid-body,
.cart-summary,
.checkout-step,
body#checkout section.checkout-step {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  padding: 22px !important;
  margin-bottom: 20px;
}

.cart-item {
  border-bottom: 1px solid var(--trojka-border-subtle) !important;
  padding: 14px 0 !important;
}

.cart-summary-line .value {
  color: #ffffff !important;
  font-weight: 600;
}

.cart-total .value {
  color: var(--trojka-primary) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.checkout-step .step-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  border-bottom: 1px solid var(--trojka-border-subtle);
  padding-bottom: 12px;
}

.checkout-step .step-number {
  background: var(--trojka-primary) !important;
  color: var(--trojka-bg-darkest) !important;
  font-weight: 800;
  border-radius: 9999px;
}

body#checkout section.checkout-step .address-item.selected {
  background: var(--trojka-bg-elevated) !important;
  border: 2px solid var(--trojka-primary) !important;
}

body#checkout #footer {
  background: var(--trojka-bg-darkest) !important;
}

/* --------------------------------------------------------------------------
   13. PAGINACJA I LICZNIK STRON (PAGINATION & PAGE COUNTER)
   -------------------------------------------------------------------------- */
/* Główny pasek paginacji na dole listy produktów */
.pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  padding: 16px 20px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 28px !important;
  margin-bottom: 28px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

/* Tekst licznika stron ("Pokazano 1-12 z 961 pozycji" / "Wyświetlanie 1-12 z...") */
.pagination > div:first-child,
.pagination .col-md-4,
.products-selection .total-products p,
.total-products p,
.products-selection .showing,
.showing {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 2.4 !important;
  letter-spacing: 0.01em !important;
}

/* Kontener z listą stron */
.pagination .col-md-6.offset-md-2,
.pagination .col-md-8 {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.pagination .page-list {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: none !important;
}

.pagination .page-list li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Poszczególne kafelki / przyciski stron (1, 2, 3...) */
.pagination .page-list a,
.pagination a:not(.previous):not(.next),
.page-item .page-link,
.page-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 12px !important;
  border-radius: var(--trojka-radius-sm, 6px) !important;
  background: var(--trojka-bg-darkest) !important;
  border: 1px solid var(--trojka-border) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* Ujednolicony efekt najechania (hover) na numer strony oraz na przyciski Poprzedni i Dalej */
.pagination .page-list a:hover:not(.disabled):not(.active),
.pagination .page-list li:not(.current) a:hover,
.page-link:hover,
.pagination .page-list a.previous:hover,
.pagination .page-list a.next:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: var(--trojka-primary, #38bdf8) !important;
  color: var(--trojka-primary, #38bdf8) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* Aktywna / bieżąca strona w liczniku stron */
.pagination .page-list li.current a,
.pagination .current a,
.page-item.active .page-link {
  background: var(--trojka-primary, #38bdf8) !important;
  color: #020617 !important;
  border-color: var(--trojka-primary, #38bdf8) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
  text-decoration: none !important;
  pointer-events: none !important;
  transform: none !important;
}

/* Przyciski Poprzedni i Następny (DALEJ) */
.pagination .page-list a.previous,
.pagination .page-list a.next {
  min-width: auto !important;
  padding: 0 16px !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: var(--trojka-bg-darkest) !important;
  color: #ffffff !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius-sm, 6px) !important;
  text-decoration: none !important;
}

.pagination .page-list a.previous i.material-icons,
.pagination .page-list a.next i.material-icons {
  font-size: 18px !important;
  line-height: 1 !important;
  color: var(--trojka-primary, #38bdf8) !important;
  transition: color 0.2s ease !important;
}

.pagination .page-list a.previous:hover i.material-icons,
.pagination .page-list a.next:hover i.material-icons {
  color: var(--trojka-primary, #38bdf8) !important;
}

/* Stan nieaktywny przycisków paginacji */
.pagination .page-list a.disabled,
.pagination .disabled,
.page-item.disabled .page-link {
  opacity: 0.35 !important;
  pointer-events: none !important;
  background: var(--trojka-bg-darkest) !important;
  border-color: var(--trojka-border-subtle) !important;
  color: var(--trojka-text-dim) !important;
}

/* Kropki (...) między stronami */
.pagination .spacer {
  color: var(--trojka-text-muted) !important;
  padding: 0 6px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* --------------------------------------------------------------------------
   PASEK GÓRNY KATALOGU: LICZNIK PRODUKTÓW I SORTOWANIE
   (Reguła czystego interfejsu: obramowanie występuje WYŁĄCZNIE przy zmianie
   tła z niebieskawego na czarny, zero zbędnych podwójnych ramek wewnątrz pola)
   -------------------------------------------------------------------------- */
#js-product-list-top,
#js-product-list-bottom,
.products-selection {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  padding: 12px 20px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 22px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

#js-product-list-top > div,
.products-selection > div {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Informacja o liczbie produktów - czysty tekst bez żadnych ramek */
.products-selection .total-products,
.products-selection .total-products p,
.total-products,
.total-products p {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

/* Wiersz sortowania - transparentny, bez jakichkolwiek wewnętrznych ramek */
.products-selection .sort-by-row,
.sort-by-row,
#js-product-list-top .sort-by-row {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* Napis "Sortuj wg:" - czysty, czytelny tekst bezpośrednio na niebieskawym tle */
.products-selection .sort-by,
.products-selection span.sort-by,
.sort-by,
span.sort-by {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  margin: 0 12px 0 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  line-height: normal !important;
}

/* Kontener dropdowna - transparentny, bez obramowania */
.products-sort-order,
.products-selection .products-sort-order,
div.products-sort-order,
.brands-sort,
.suppliers-sort {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
}

/* JEDYNE obramowanie wewnątrz niebieskawego pola:
   Występuje TYLKO na przejściu koloru z niebieskawego tła na czarny (przycisk wyboru "Dostępne") */
.products-sort-order .select-title,
.products-selection .select-title,
.brands-sort .select-title,
.suppliers-sort .select-title,
button.select-title {
  background: var(--trojka-bg-darkest) !important; /* czarne tło #020617 */
  border: 1px solid var(--trojka-border) !important; /* pojedyncza ramka na granicy kolorów */
  border-radius: var(--trojka-radius-sm) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 8px 14px !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  outline: none !important;
}

.products-sort-order .select-title:hover,
.products-selection .select-title:hover,
button.select-title:hover {
  border-color: var(--trojka-primary, #38bdf8) !important;
  color: var(--trojka-primary-light, #7dd3fc) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22) !important;
}

.products-sort-order .select-title i.material-icons,
button.select-title i.material-icons {
  color: var(--trojka-primary, #38bdf8) !important;
  font-size: 18px !important;
  margin-left: 8px !important;
  line-height: 1 !important;
}

/* Rozwijane menu z opcjami sortowania (czarne tło + ramka na granicy) */
.products-sort-order .dropdown-menu,
.brands-sort .dropdown-menu,
.suppliers-sort .dropdown-menu {
  background: var(--trojka-bg-darkest) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius-sm) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65) !important;
  padding: 6px 0 !important;
  margin-top: 4px !important;
  min-width: 180px !important;
  z-index: 1050 !important;
}

.products-sort-order .dropdown-menu .select-list,
.dropdown-menu a.select-list {
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  padding: 8px 16px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  display: block !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.products-sort-order .dropdown-menu .select-list:hover,
.dropdown-menu a.select-list:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  color: var(--trojka-primary, #38bdf8) !important;
  text-decoration: none !important;
}

.products-sort-order .dropdown-menu .select-list.current,
.dropdown-menu a.select-list.current {
  background: rgba(56, 189, 248, 0.25) !important;
  color: var(--trojka-primary, #38bdf8) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   14. OKNA POP-UP I MODALE (.modal-content, QUICKVIEW, DODANO DO KOSZYKA)
   -------------------------------------------------------------------------- */
.modal-content,
.modal-header,
.modal-body,
.modal-footer,
#blockcart-modal .modal-content,
#product-modal .modal-content,
#product-modal .modal-body .product-cover-modal,
#product-modal .modal-content .modal-body .image-caption,
.wishlist-modal .modal-content {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  color: var(--trojka-text-main) !important;
}

.modal-header {
  border-bottom: 1px solid var(--trojka-border) !important;
}

.modal-footer {
  border-top: 1px solid var(--trojka-border) !important;
}

#blockcart-modal .cart-content p.product-total {
  background-color: var(--trojka-bg-darkest) !important;
  color: #ffffff !important;
  border-radius: var(--trojka-radius-sm);
  padding: 10px !important;
}

.close {
  color: var(--trojka-text-muted) !important;
  opacity: 0.8;
  text-shadow: none !important;
}

.close:hover {
  color: #ffffff !important;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   15. BANER COOKIE (ETS_COOKIE_BANNER)
   -------------------------------------------------------------------------- */
.ets_cookie_banber_block,
.ets_cookie_banber_block.bottom {
  background-color: rgba(9, 13, 22, 0.96) !important;
  background: rgba(9, 13, 22, 0.96) !important;
  border-top: 1px solid var(--trojka-border) !important;
  color: var(--trojka-text-main) !important;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px);
}

.ets_cookie_banber_block p,
.ets_cookie_banber_block span,
.ets_cookie_banner_content {
  color: var(--trojka-text-muted) !important;
}

.ets_cookie_banber_block button.ets-cb-btn-ok {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: var(--trojka-radius-sm) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
}

/* --------------------------------------------------------------------------
   16. BLOK NEWSLETTERA I STOPKA (FOOTER)
   -------------------------------------------------------------------------- */
.block_newsletter,
#blockEmailSubscription_displayFooterBefore {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  padding: 24px 20px !important;
  margin: 30px auto !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.block_newsletter #block-newsletter-label {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

.block_newsletter p {
  color: var(--trojka-text-muted) !important;
}

.block_newsletter form input[type="email"] {
  background: var(--trojka-bg-darkest) !important;
  border: 1px solid var(--trojka-border) !important;
  color: #ffffff !important;
  border-radius: var(--trojka-radius-sm, 6px) !important;
  height: 44px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

.block_newsletter form input[type="email"]:focus {
  border-color: var(--trojka-primary, #38bdf8) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22) !important;
  outline: none !important;
}

/* Przycisk SUBSKRYBUJ w formularzu newslettera */
.block_newsletter form input[type="submit"],
.block_newsletter form button[type="submit"],
.block_newsletter input.btn-primary[name="submitNewsletter"],
input[name="submitNewsletter"] {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: var(--trojka-radius-sm, 6px) !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  height: 44px !important;
  line-height: 22px !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
}

.block_newsletter form input[type="submit"]:hover,
.block_newsletter form button[type="submit"]:hover,
.block_newsletter input.btn-primary[name="submitNewsletter"]:hover,
input[name="submitNewsletter"]:hover {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%) !important;
  border-color: var(--trojka-primary, #38bdf8) !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.55) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   16. JEDNOLITA KOLORYSTYKA I TYPOGRAFIA STOPKI (#footer)
   Wersja 2.4 - perfekcyjnie ujednolicona stopka (Nagłówki, Linki, Adres, Copyright)
   -------------------------------------------------------------------------- */
#footer,
.footer-container {
  background-color: var(--trojka-bg-darkest, #0b0f19) !important;
  background: var(--trojka-bg-darkest, #0b0f19) !important;
  border-top: 1px solid var(--trojka-border, #1e293b) !important;
  padding-top: 40px !important;
  color: var(--trojka-text-main, #cbd5e1) !important;
  font-family: inherit !important;
}

/* 1. Nagłówki kolumn stopki (O NAS, TWOJE KONTO, INFORMACJA O SKLEPIE) */
#footer h3,
#footer .h3,
#footer h4,
#footer .h4,
#footer p.h3,
#footer p.h4,
#footer .block-contact-title,
#footer .myaccount-title,
#footer .myaccount-title a,
#footer .blockcms-title,
#footer .blockcms-title a,
#footer .links .h3,
#footer .links .title .h3,
#footer .links p.h3,
#block_myaccount_infos .myaccount-title,
#block_myaccount_infos .myaccount-title a,
.block-contact .block-contact-title {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  display: block !important;
}

#footer .myaccount-title a:hover,
#block_myaccount_infos .myaccount-title a:hover {
  color: var(--trojka-primary, #38bdf8) !important;
  text-decoration: none !important;
}

/* 2. Linki w kolumnach stopki (Kontakt z nami, Sklepy, Śledzenie zamówienia, Zaloguj się, Utwórz konto...) */
#footer ul,
#footer .links ul,
#footer .account-list {
  padding-left: 0 !important;
  list-style: none !important;
  background-color: transparent !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

#footer ul li,
#footer .links ul > li,
#footer .account-list li {
  padding: 5px 0 !important;
  border: none !important;
  background-color: transparent !important;
  background: transparent !important;
}

#footer ul li a,
#footer .links ul > li a,
#footer .account-list li a,
#footer .links a {
  color: #cbd5e1 !important; /* Czysty, jednolity jasny slate */
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  display: inline-block !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

#footer ul li a:hover,
#footer .links ul > li a:hover,
#footer .account-list li a:hover,
#footer .links a:hover {
  color: var(--trojka-primary, #38bdf8) !important; /* Cyber Cyan */
  text-decoration: none !important;
  transform: translateX(3px) !important;
}

/* 3. Dane teleadresowe sklepu (INFORMACJA O SKLEPIE) */
#footer .block-contact,
#footer .block-contact #contact-infos,
#footer #contact-infos {
  color: #cbd5e1 !important; /* Taki sam czysty, elegancki odcień jak linki */
  font-size: 14px !important;
  line-height: 1.8 !important;
  padding-left: 0 !important;
  padding-top: 0 !important;
}

/* Linki kontaktowe (telefon, e-mail) */
#footer .block-contact a,
#footer #contact-infos a {
  color: var(--trojka-primary, #38bdf8) !important; /* Cyber Cyan dla numeru i maila */
  text-decoration: none !important;
  font-weight: 500 !important;
  border-bottom: none !important;
  transition: color 0.15s ease, text-decoration 0.15s ease !important;
}

#footer .block-contact a:hover,
#footer #contact-infos a:hover {
  color: #7dd3fc !important;
  text-decoration: underline !important;
}

/* 4. Kontener stopki i separator */
#footer .footer-container {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 30px !important;
}

/* 5. Dolny pasek praw autorskich (Copyright) */
#footer .footer-after,
#footer .copyright,
#footer .text-sm-center,
#footer .text-sm-center a {
  color: #94a3b8 !important; /* Elegancki, stonowany szary - nie jaskrawy */
  font-size: 13px !important;
  text-align: center !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.15s ease !important;
}

#footer .text-sm-center a:hover,
#footer .copyright a:hover {
  color: var(--trojka-primary, #38bdf8) !important;
  text-decoration: none !important;
}

/* Ikony zwijania na telefonach w stopce */
#footer .navbar-toggler .material-icons,
#footer .links .title .collapse-icons .material-icons {
  color: #ffffff !important;
}

#footer .links .title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* --------------------------------------------------------------------------
   17. PASEK PRZEWIJANIA (CUSTOM SCROLLBARS)
   -------------------------------------------------------------------------- */
* {
  scrollbar-width: thin;
  scrollbar-color: #334155 #0b0f19;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid #334155;
}

::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
  border-color: #7dd3fc;
}


/* --------------------------------------------------------------------------
   18. PŁYNNE I POPRAWNE SKALOWANIE SLIDERA (ps_imageslider / #carousel)
   Wersja 2.0 - eliminuje błędy skalowania, zachowuje naturalne proporcje banera (1110x340)
   oraz płynną responsywność na desktopie, tabletach i telefonach (bez pustych przestrzeni)
   -------------------------------------------------------------------------- */
#carousel,
.carousel {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-bottom: 2rem !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: var(--trojka-radius, 12px) !important;
}

#carousel .carousel-inner,
.carousel .carousel-inner {
  height: auto !important;
  max-height: 340px !important;
  background: transparent !important;
  border-radius: var(--trojka-radius, 12px) !important;
  overflow: hidden !important;
  width: 100% !important;
}

#carousel .carousel-item,
.carousel .carousel-item {
  height: auto !important;
  background: transparent !important;
  text-align: center;
}

#carousel .carousel-item figure,
.carousel .carousel-item figure {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  line-height: 0 !important;
}

#carousel .carousel-item img,
.carousel .carousel-item img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: var(--trojka-radius, 12px) !important;
}

/* Wygładzone strzałki nawigacji */
.carousel .carousel-control {
  opacity: 0.85 !important;
  transition: opacity 0.2s ease;
  z-index: 10 !important;
}

.carousel:hover .carousel-control {
  opacity: 1 !important;
}

.carousel .carousel-control .icon-prev i,
.carousel .carousel-control .icon-next i {
  color: var(--trojka-primary, #38bdf8) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
  transition: transform 0.2s ease, color 0.2s ease;
}

.carousel .carousel-control:hover .icon-prev i {
  transform: translateX(-3px) scale(1.1);
  color: #ffffff !important;
}

.carousel .carousel-control:hover .icon-next i {
  transform: translateX(3px) scale(1.1);
  color: #ffffff !important;
}

/* Kropki / wskaźniki slajdów */
.carousel-indicators {
  bottom: 12px !important;
}

.carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.35) !important;
  border: 1px solid rgba(0, 0, 0, 0.6) !important;
  border-radius: 9999px !important;
  width: 10px !important;
  height: 10px !important;
  margin: 0 4px !important;
  transition: all 0.25s ease !important;
}

.carousel-indicators li.active {
  background-color: var(--trojka-primary, #38bdf8) !important;
  width: 24px !important;
  border-radius: 9999px !important;
  border-color: var(--trojka-primary, #38bdf8) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7) !important;
}

/* Responsywność tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  #carousel .carousel-inner,
  .carousel .carousel-inner {
    max-height: 280px !important;
  }
}

/* Responsywność smartfony (< 768px) */
@media (max-width: 767px) {
  #carousel,
  .carousel {
    left: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: var(--trojka-radius-sm, 8px) !important;
    background-color: transparent !important;
    padding-bottom: 0 !important;
  }

  #carousel .carousel-inner,
  .carousel .carousel-inner {
    height: auto !important;
    max-height: none !important;
    border-radius: var(--trojka-radius-sm, 8px) !important;
  }

  #carousel .carousel-item img,
  .carousel .carousel-item img {
    border-radius: var(--trojka-radius-sm, 8px) !important;
    width: 100% !important;
    height: auto !important;
  }

  .carousel-indicators {
    bottom: 6px !important;
  }
}


/* ==========================================================================
   19. GŁÓWNE TŁO I CZCIONKA POD OPISEM PRODUKTU
   Ustawienie głównego tła i czcionki pod całym opisem
   niezależnie od formatowania tekstu (np. z edytorów TinyMCE / Word)
   ========================================================================== */
div.product-description {
  background-color: var(--trojka-bg-card) !important;
  color: var(--trojka-text) !important;
  padding: 20px !important;
  border-radius: var(--trojka-radius, 12px) !important;
  line-height: 1.7 !important;
}

/* Ochrona miniatur produktów w katalogu przed nadmiernym paddingiem */
.product-miniature div.product-description,
.product-miniature .product-description {
  background: transparent !important;
  background-color: transparent !important;
  padding: 8px 4px !important;
  border-radius: 0 !important;
}

/* Neutralizacja tła i dziedziczenie czcionki dla paragrafów oraz wszystkich znaczników wewnętrznych */
div.product-description p,
div.product-description span,
div.product-description div,
div.product-description ul,
div.product-description ol,
div.product-description li,
div.product-description table,
div.product-description thead,
div.product-description tbody,
div.product-description tr,
div.product-description td,
div.product-description th,
div.product-description font,
div.product-description strong,
div.product-description b,
div.product-description em,
div.product-description i,
div.product-description u,
div.product-description section,
div.product-description article {
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
}

/* Czytelne nagłówki wewnątrz opisu */
div.product-description h1,
div.product-description h2,
div.product-description h3,
div.product-description h4,
div.product-description h5,
div.product-description h6 {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* Linki wewnątrz opisu (bez podkreśleń) */
div.product-description a {
  color: var(--trojka-primary, #38bdf8) !important;
  text-decoration: none !important;
}

div.product-description a:hover {
  color: var(--trojka-primary-light, #7dd3fc) !important;
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   19. GLOBALNE USUNIĘCIE WSZELKICH PODKREŚLEŃ LINKÓW I STANÓW AKTYWNYCH
   -------------------------------------------------------------------------- */
a,
a:hover,
a:focus,
a:active,
a:visited,
a.active,
li.active > a,
.active > a,
.current > a,
.current a,
.selected a,
.selected > a,
.block-categories a,
.block-categories a:hover,
.block-categories a:focus,
.block-categories a:active,
.block-categories li.active > a,
#left-column a,
#left-column a:hover,
#left-column a:focus,
#left-column a:active,
#search_filters a,
#search_filters a:hover,
#search_filters a:focus,
#search_filters a:active,
.facet-label a,
.facet-label a:hover,
.facet-label a:focus,
.facet-label a:active,
.product-title a,
.product-title a:hover,
.product-title a:focus,
.product-title a:active,
.product-miniature a,
.product-miniature a:hover,
.product-miniature a:focus,
.product-miniature a:active,
.breadcrumb a,
.breadcrumb a:hover,
.breadcrumb a:focus,
.breadcrumb a:active,
.subcategories a,
.subcategories a:hover,
.subcategories a:focus,
.subcategories a:active,
div.product-description a,
div.product-description a:hover,
div.product-description a:focus,
div.product-description a:active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}
