/**
 * ==============================================================================
 * TRÓJKA ELECTRONICS - MOTYW SKLEPU PRESTASHOP (WERSJA CIEMNA / 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-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;
}

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

#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"] {
  background: var(--trojka-bg-darkest) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius) !important;
  color: #ffffff !important;
  padding: 10px 45px 10px 16px !important;
  font-size: 13px !important;
  height: 44px;
  width: 100%;
  transition: all 0.2s ease;
}

#search_widget input[type="text"]:focus,
.search-widget form input[type="text"]:focus,
.header-top .search-widgets form input[type="text"]:focus {
  background: 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;
}

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

#search_widget i.material-icons,
.search-widgets i.material-icons {
  color: var(--trojka-primary) !important;
}

#search_widget button[type="submit"] {
  position: absolute;
  right: 6px;
  background: transparent !important;
  border: none !important;
  color: var(--trojka-primary) !important;
  padding: 8px 12px;
  cursor: pointer;
}

#search_widget button[type="submit"]: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,
.top-menu li.current > a {
  color: var(--trojka-primary) !important;
  background: rgba(56, 189, 248, 0.08) !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. KAFELKI PRODUKTÓW I OPISY (.product-miniature - ELIMINACJA BIAŁEGO TŁA)
   -------------------------------------------------------------------------- */
.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) !important;
  padding: 16px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  position: relative;
  overflow: hidden;
}

.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;
}

/* Tło pod zdjęciem produktu */
.product-miniature .thumbnail-container,
.thumbnail-container,
.thumbnail-top {
  background: var(--trojka-bg-darkest) !important;
  border-radius: var(--trojka-radius-sm) !important;
  padding: 10px !important;
  border: 1px solid var(--trojka-border-subtle) !important;
  margin-bottom: 12px !important;
  text-align: center;
}

.thumbnail-container img,
.product-thumbnail img {
  border-radius: var(--trojka-radius-sm);
  transition: transform 0.25s ease;
  background: transparent !important;
}

.product-miniature:hover .thumbnail-container img {
  transform: scale(1.03);
}

/* 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 !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 */
.product-title,
.product-title a {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  margin-bottom: 6px !important;
}

.product-title a:hover {
  color: var(--trojka-primary-light) !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-bottom: 24px !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 */
.products-selection,
.products-sort-order,
.sort-by-row,
.select-title,
.suppliers-sort .select-title {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  color: var(--trojka-text-main) !important;
  border: 1px solid var(--trojka-border) !important;
  border-radius: var(--trojka-radius-sm) !important;
}

.products-selection .sort-by,
.products-selection span,
.total-products,
.total-products p {
  color: var(--trojka-text-muted) !important;
}

/* --------------------------------------------------------------------------
   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, #2563eb 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: var(--trojka-radius) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
  transition: all 0.2s ease !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, #1d4ed8 0%, #0369a1 100%) !important;
  border-color: var(--trojka-primary) !important;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.4) !important;
  transform: translateY(-1px);
}

/* 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 (AIWA, AKAI, AMIKO, BENQ itd.) - kolor jak CAME / SOMFY */
.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: var(--trojka-text-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: inline-block;
  width: 100%;
  padding: 3px 0;
}

.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-light) !important;
  text-decoration: none !important;
  padding-left: 4px;
}

/* 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;
}

/* Sekcja Podkategorie na głównej karcie (np. kafelki AIWA, AKAI) */
#subcategories,
.subcategories {
  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 !important;
}

#subcategories .subcategory-heading,
.subcategories .subcategory-heading {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  border-bottom: 1px solid var(--trojka-border-subtle) !important;
  padding-bottom: 10px !important;
  margin-bottom: 16px !important;
}

#subcategories ul li .subcategory-name,
#subcategories a.subcategory-name {
  color: var(--trojka-primary) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: color 0.15s ease;
}

#subcategories ul li .subcategory-name:hover,
#subcategories a.subcategory-name:hover {
  color: var(--trojka-primary-light) !important;
  text-decoration: none !important;
}

/* Ukrycie pustych ramek miniatur, gdy podkategoria nie ma zdjęcia */
#subcategories ul li .subcategory-image a:empty {
  display: none !important;
}

#subcategories ul li .subcategory-image a {
  border: 1px solid var(--trojka-border) !important;
  background: var(--trojka-bg-darkest) !important;
  border-radius: var(--trojka-radius-sm) !important;
}

#subcategories ul li:hover .subcategory-image a {
  border-color: var(--trojka-primary) !important;
}

#search_filters .facet label {
  color: var(--trojka-text-muted) !important;
  font-size: 13px;
  transition: color 0.15s ease;
}

#search_filters .facet label:hover {
  color: #ffffff !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 (PAGINATION)
   -------------------------------------------------------------------------- */
.pagination,
.pagination .page-list,
.page-item .page-link,
.page-link {
  background-color: var(--trojka-bg-card) !important;
  background: var(--trojka-bg-card) !important;
  border-color: var(--trojka-border) !important;
  color: var(--trojka-text-main) !important;
}

.page-item.active .page-link,
.pagination .current a,
.page-link:hover {
  background-color: var(--trojka-primary) !important;
  background: var(--trojka-primary) !important;
  color: var(--trojka-bg-darkest) !important;
  font-weight: 700 !important;
  border-color: var(--trojka-primary) !important;
}

.page-item.disabled .page-link {
  background-color: var(--trojka-bg-darkest) !important;
  background: var(--trojka-bg-darkest) !important;
  color: var(--trojka-text-dim) !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) !important;
}

#footer {
  background: var(--trojka-bg-darkest) !important;
  border-top: 1px solid var(--trojka-border) !important;
  padding-top: 36px !important;
  color: var(--trojka-text-muted) !important;
  font-size: 13px;
}

#footer h4,
#footer .h4,
#footer .h3,
#footer p.h3 {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-bottom: 14px;
}

#footer ul li a {
  color: var(--trojka-text-muted) !important;
  padding: 4px 0;
  display: inline-block;
}

#footer ul li a:hover {
  color: var(--trojka-primary) !important;
  transform: translateX(3px);
}

#footer .footer-container {
  border-bottom: 1px solid var(--trojka-border-subtle);
  padding-bottom: 30px;
}

#footer .footer-after,
#footer .copyright {
  padding: 20px 0;
  text-align: center;
  color: var(--trojka-text-dim) !important;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   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;
}
