/* ===========================
   SECO COSMETICS – HEADER
   header.css
   v1.9.1 (10.03.2026) - APro 4.0
   Dedykowane style nagłówka strony (topbar, header, nav, mega menu,
   mobile menu, hamburger, dropdowns, search overlay, cart sidebar).
   Wyodrębnione z styles.css dla zachowania separacji concerns.
   last edited by: klaudiusz@ovh-dpakula
   author: Damian Pakuła (d.pakula@advertpro.co)
   =========================== */

/* ===========================
   TYPOGRAFIA – HEADER
   (wyodrębnione z sekcji TYPOGRAFIA w styles.css)
   =========================== */

.topbar-text {
	font-size: var(--fs-topbar);
	font-weight: var(--fw-semibold);
	line-height: 1.2;
}

/* menu główne */
.nav-main-link {
	font-size: var(--fs-menu);
	font-weight: var(--fw-medium);
	position: relative;
	white-space: nowrap;
}

/* ===========================
   TOP BAR (biały)
   =========================== */

.topbar {
	background-color: #ffffff;
	color: #000000;
	padding-block: var(--space-md);
	font-size: var(--fs-small);
}

.topbar-lang-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	font-family: var(--font-base);
	font-size: var(--fs-small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.topbar-lang-btn i {
	font-size: 1rem;
}

.topbar-lang-separator {
	opacity: 0.6;
}

.topbar-links .topbar-link {
	text-transform: none;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
}

/* ===========================
   HEADER – CZARNY PASEK
   =========================== */

.site-header {
	border-bottom: none;
}

/* górny pasek: telefon + mail + biała linia */
.header-contact {
	background-color: #000000;
	color: #ffffff;
	padding-block: var(--space-md);
	border-bottom: 1px solid #ffffff;
}

.header-contact .topbar-text {
	font-size: var(--fs-topbar);
	line-height: 1.2;
	font-weight: var(--fw-semibold);
	text-align: center;
}

/* dolny pasek: logo + search + CTA + ikony */
.header-main {
	background-color: #000000;
	padding-block: var(--space-md);
}

.header-logo {
	max-height: 40px;
}

.header-search-input {
	border-radius: var(--radius-pill);
	border: none;
	padding-inline: var(--space-lg);
	font-size: var(--fs-body);
	background-color: #ffffff;
	color: #000000;
}

.header-search-input::placeholder {
	color: var(--color-text-muted);
}

.header-actions {
	color: #ffffff;
}

.header-login-btn {
	padding-inline: 1.8rem;
}

.header-badge-img {
	max-height: 42px;
}

/* ikony – białe na czarnym tle */

.icon-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.2rem;
	color: #ffffff;
	padding: 0;
}

.icon-btn:hover {
	color: var(--color-accent);
}

/* Wishlist (serce) ukryte — funkcja nieaktywna */
.icon-btn[aria-label="Ulubione"] {
	display: none;
}


/* MENU – w szerokości kontenera, wyrównane do logo */

.nav-main {
	background-color: #ffffff;
}

/* linia tylko pod kontenerem, nie na całą szerokość okna */
.nav-main .container {
	border-bottom: 2px solid #000000;
}

/* lista: wyrównanie do lewej, więcej oddechu */
.nav-main-list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	/* start = ten sam lewy margines co logo */
	overflow: visible;
	/* klaudiusz@ovh-dpakula: visible wymagane — auto/hidden obcina position:absolute dropdown */
	padding-block: var(--space-md);
	/* było var(--space-sm) – więcej powietrza */
	padding-left: 0;
	list-style: none;
	gap: 2.75rem;
	/* większy odstęp między pozycjami */
	padding-top: 2rem;
}

.nav-main-link {
	text-transform: none;
	font-size: var(--fs-menu);
	font-weight: var(--fw-regular);
	position: relative;
	white-space: nowrap;
	color: #000000;
}


/* hover – tylko kolor tekstu */
.nav-main-link:hover {
	color: var(--color-accent);
}

/* === kwadraty przed Nowości / Promocje === */

.nav-main-link--new,
.nav-main-link--promo {
	padding-left: 24px;
	/* trochę bliżej tekstu */
}

/* pomarańczowy kwadrat – większy */
.nav-main-link--new::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-color: var(--color-accent);
}

/* przerywany kwadrat – też większy */
.nav-main-link--promo::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 2px dashed #000000;
}

/* ===========================
   PROMO BAR (guest header)
   =========================== */

.promo-bar {
  background: #f5f5f5;
  padding: 15px 0;
}

.promo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-bar-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.promo-bar-arrow:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.promo-bar-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.promo-bar-text {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.promo-bar-link {
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: underline;
}

.promo-bar-link:hover {
  color: #e63946;
}

@media (max-width: 768px) {
  .promo-bar {
    display: none;
  }
}

/* ===========================
   MEGA MENU
   Dodaj do styles.css
   =========================== */

/* ---------- NAV-MAIN MUSI BYĆ RELATIVE ---------- */

.nav-main {
  position: relative;
}

/* ---------- KONTENER GŁÓWNY ---------- */

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mega-menu--open {
  visibility: visible;
  opacity: 1;
}

/* Wewnętrzny kontener z białym tłem */
.mega-menu > .container {
  background-color: #ffffff;
  border-top: 4px solid #333333;
  padding-top: 35px;
  padding-bottom: 40px;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mega-menu--open > .container {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- GRID KOLUMN ---------- */

.mega-menu-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding-right: 60px; /* miejsce na przycisk X */
}

/* ---------- KOLUMNA ---------- */

.mega-menu-col {
  flex: 0 0 auto;
}

/* ---------- NAGŁÓWEK KOLUMNY ---------- */

.mega-menu-title {
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  color: #000000;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

/* Aktywny nagłówek - czerwone podkreślenie */
.mega-menu-title--active {
  border-bottom-color: var(--color-accent);
}

/* ---------- LISTA LINKÓW ---------- */

.mega-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-menu-list li {
  margin-bottom: 8px;
}

.mega-menu-link {
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: var(--fw-regular);
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.mega-menu-link:hover {
  color: var(--color-accent);
}

/* Aktywny link - czerwony */
.mega-menu-link--active {
  color: var(--color-accent);
  font-weight: var(--fw-bold);
}

/* ---------- DODATKOWY LINK (Darmowa dostawa) ---------- */

.mega-menu-extra {
  display: inline-block;
  margin-top: 25px;
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: var(--fw-regular);
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mega-menu-extra:hover {
  color: var(--color-accent);
}

/* ---------- PRZYCISK ZAMKNIĘCIA ---------- */

.mega-menu-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid #000000;
  cursor: pointer;
  color: #000000;
  transition: all 0.2s ease;
}

.mega-menu-close:hover {
  background-color: #000000;
  color: #ffffff;
}

/* ---------- RESPONSYWNOŚĆ ---------- */

@media (max-width: 1200px) {
  .mega-menu-grid {
    gap: 30px;
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  .mega-menu-grid {
    gap: 25px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .mega-menu-col {
    min-width: 130px;
    flex: 0 0 calc(33.333% - 20px);
  }

  .mega-menu-title {
    font-size: 0.9rem;
  }

  .mega-menu-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  .mega-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.3);
  }

  .mega-menu > .container {
    padding-top: 60px;
    padding-bottom: 30px;
    min-height: 100%;
  }

  .mega-menu-grid {
    flex-direction: column;
    gap: 25px;
    padding-right: 0;
  }

  .mega-menu-col {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .mega-menu-title {
    font-size: 1rem;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .mega-menu-list li {
    margin-bottom: 10px;
  }

  .mega-menu-link {
    font-size: 0.95rem;
  }

  .mega-menu-close {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background-color: #ffffff;
  }

  .mega-menu-extra {
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  .mega-menu > .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mega-menu-close {
    width: 36px;
    height: 36px;
  }

  .mega-menu-close svg {
    width: 14px;
    height: 14px;
  }
}

/* ===========================
   TOPBAR LOGO MOBILE
   =========================== */

.topbar-logo-mobile {
  display: none;
}

.topbar-logo-mobile img {
  height: 22px;
  width: auto;
}

/* ===========================
   HEADER MOBILE ELEMENTS
   =========================== */

.header-search-mobile {
  display: none;
}

.header-pro-btn {
  display: none;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.header-pro-btn-highlight {
  color: var(--color-accent);
}

/* ===========================
   HAMBURGER MENU
   =========================== */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active,
.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active,
.mobile-menu.open {
  transform: translateX(0);
}

/* MOBILE MENU HEADER - X odsunięty od logo, czarny */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.mobile-menu-logo {
  flex-shrink: 0;
}

.mobile-menu-logo img {
  display: block;
  height: 18px;
  width: auto;
  filter: none !important;
}

.mobile-menu-close {
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: #e8e8e8;
}

.mobile-menu-close svg {
  width: 12px;
  height: 12px;
}

.mobile-menu-close svg path {
  stroke: #000000 !important;
}

.mobile-menu-search {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-search input {
  width: 100%;
  border-radius: 25px;
  padding: 14px 20px;
  border: 1px solid #e0e0e0;
  font-size: 0.95rem;
  background: #f9f9f9;
}

.mobile-menu-search input:focus {
  border-color: var(--color-accent);
  outline: none;
  background: #fff;
}

.mobile-menu-nav {
  padding: 10px 0;
}

.mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-nav a {
  display: block;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  color: var(--color-accent);
  background-color: #fafafa;
}

.mobile-menu-extra {
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
}

.mobile-menu-extra a {
  display: block;
  padding: 12px 0;
  color: #666;
  font-size: 0.9rem;
  text-decoration: none;
}

.mobile-menu-cta {
  padding: 20px;
}

.mobile-menu-cta .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  /* ===== TOPBAR scrolluje, HEADER staje się sticky przez JS ===== */

  /* Topbar: normalny flow, scrolluje z treścią */
  .topbar {
    display: flex !important;
    position: relative !important;
    background: #000 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Header: domyślnie w normalnym flow */
  .site-header {
    position: relative !important;
    z-index: 999 !important;
    background: #000 !important;
  }

  /* JS dodaje tę klasę gdy topbar znika za górą ekranu */
  .site-header.mobile-header-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }

  .topbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .topbar-logo-mobile {
    display: block !important;
    order: 1;
  }

  .topbar-logo-mobile img {
    display: block !important;
    height: 20px;
    filter: brightness(0) invert(1);
  }

  .topbar-lang-btn {
    display: flex !important;
    font-size: 0.7rem;
    order: 2;
    color: #fff;
    background: transparent;
    border: none;
  }

  .topbar-lang-btn i,
  .topbar-lang-btn span {
    color: #fff;
  }

  .topbar-links {
    display: none !important;
  }

  /* ===== HEADER MOBILE - WSZYSTKIE ELEMENTY WIDOCZNE ===== */
  .header-contact {
    display: none !important;
  }

  .header-main {
    padding-block: 12px !important;
  }

  /* Napraw row - nie stack pionowo */
  .header-main .row.align-items-center {
    flex-wrap: nowrap !important;
    display: flex !important;
  }

  /* Ukryj logo i search form z desktopa */
  .header-main .row .col-12.col-md-3 {
    display: none !important;
  }

  .header-main .row .col-12.col-md-5 {
    display: none !important;
  }

  /* Rozszerz kolumnę z akcjami na 100% */
  .header-main .row .col-12.col-md-4 {
    display: block !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* HEADER ACTIONS - wszystkie elementy w jednej linii */
  .header-main .header-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* ===== WIDOCZNE ELEMENTY ===== */

  /* HAMBURGER - widoczny, z lewej */
  .header-main .header-actions .hamburger-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 26px !important;
    height: 18px !important;
    margin-right: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* SEARCH ICON - widoczny */
  .header-main .header-actions .header-search-mobile {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* SECO PRO BUTTON - widoczny */
  .header-main .header-actions .header-pro-btn {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* IKONY SERCE I KOSZYK - widoczne */
  .header-main .header-actions .icon-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Wishlist (serce) - ukryte na mobile */
  .header-main .header-actions .icon-btn[aria-label="Ulubione"] {
    display: none !important;
  }

  /* ===== UKRYTE ELEMENTY ===== */

  /* Badge BarberPro - ukryty na mobile */
  .header-main .header-actions .header-badge-link {
    display: none !important;
  }

  /* Login button - ukryty na mobile (jest w menu) */
  .header-main .header-actions .header-login-btn {
    display: none !important;
  }

  /* NAV - ukryta (jest mobile menu) */
  .nav-main {
    display: none !important;
  }
}

/* ===========================
   HEADER DROPDOWNS - LOGIN & CART
   =========================== */
.header-login-dropdown,
.header-cart-dropdown {
  position: relative;
}

.login-dropdown-menu,
.cart-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffffde;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  min-width: 280px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.header-login-dropdown:hover .login-dropdown-menu,
.header-cart-dropdown:hover .cart-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Login Dropdown Styles */
.login-dropdown-menu {
  padding: 20px;
}

.login-dropdown-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.login-dropdown-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.login-dropdown-form input {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9375rem;
}

.login-dropdown-form button {
  padding: 12px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.login-dropdown-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.login-dropdown-links a {
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
}

.login-dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 12px 0;
}

.login-dropdown-pro {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
}

/* Cart Dropdown Styles */
.cart-dropdown-menu {
  min-width: 320px;
  padding: 0;
  overflow: hidden;
}

.cart-dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  font-weight: 700;
  color: #1a1a1a;
}

.cart-dropdown-items {
  max-height: 300px;
  overflow-y: auto;
}

.cart-dropdown-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f5f5f5;
}

.cart-dropdown-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-dropdown-item-info {
  flex: 1;
}

.cart-dropdown-item-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1a1a1a;
}

.cart-dropdown-item-info p {
  font-size: 0.75rem;
  color: #888;
  margin: 0;
}

.cart-dropdown-item-price {
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}

.cart-dropdown-summary {
  padding: 16px 20px;
  border-top: 1px solid #eee;
}

.cart-dropdown-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-dropdown-total span {
  color: #666;
}

.cart-dropdown-total strong {
  font-size: 1.125rem;
  color: #1a1a1a;
}

.cart-dropdown-shipping {
  font-size: 0.8125rem;
  color: #4CAF50;
  margin-bottom: 16px;
}

.cart-dropdown-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 20px;
}

.cart-dropdown-actions .btn {
  width: 100%;
  padding: 12px;
  text-align: center;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
  display: block;
}

.cart-dropdown-actions .btn-outline {
  background: transparent;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
}

.cart-dropdown-actions .btn-primary {
  background: #E53935;
  border: 2px solid #E53935;
  color: #fff;
}

/* Hide dropdowns on mobile - use mobile cart/search instead */
@media (max-width: 767px) {
  .login-dropdown-menu,
  .cart-dropdown-menu {
    display: none !important;
  }
}

/* ===========================
   EMPTY CART STATE
   =========================== */

/* Fix: text color for empty cart message (APro injects plain <p> without color) */
.mini-cart-inner.empty-cart .cart-dropdown-item {
  border-bottom: none;
  justify-content: center;
}

.mini-cart-inner.empty-cart .cart-dropdown-item p {
  color: #444;
  font-size: 0.9rem;
  margin: 0;
}

/* Hide summary and action buttons when cart is empty */
.mini-cart-inner.empty-cart .cart-dropdown-summary,
.mini-cart-inner.empty-cart .cart-dropdown-actions {
  display: none;
}

/* ===========================
   MOBILE SEARCH OVERLAY
   =========================== */
.mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 9999;
  display: none;
  flex-direction: column;
  padding: 20px;
}

.mobile-search-overlay.active {
  display: flex;
}

.mobile-search-container {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.mobile-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.mobile-search-header span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.mobile-search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-search-input {
  position: relative;
  margin-bottom: 24px;
}

.mobile-search-input i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.mobile-search-input input {
  width: 100%;
  padding: 14px 14px 14px 48px;
  border: 2px solid #1a1a1a;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
}

.mobile-search-popular p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 12px;
}

.mobile-search-popular .popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-search-popular .popular-tags a {
  display: inline-block;
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.875rem;
}

/* ===========================
   MOBILE CART SIDEBAR
   =========================== */
.mobile-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.mobile-cart-sidebar.active {
  right: 0;
}

.mobile-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  color: #111;
}

.mobile-cart-header span {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
}

.mobile-cart-header strong {
  color: var(--color-accent, #e34636);
}

/* Close btn SVG stroke fix — light background */
.mobile-cart-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-cart-close svg path {
  stroke: #111;
}

.mobile-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8f8f8;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 6px;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.cart-item-brand {
  font-size: 0.75rem;
  color: #888;
  margin: 0 0 6px 0;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item-qty span {
  color: #555;
  font-weight: 600;
  font-size: 0.875rem;
}

.cart-item-price {
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  font-size: 0.9375rem;
  align-self: center;
}

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: #e53e3e;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.15s;
}

.cart-item-remove:hover {
  background: #c53030;
}

.mobile-cart-summary {
  padding: 16px 20px;
  border-top: 1px solid #e0e0e0;
  background: #f8f8f8;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #111;
}

.cart-row span {
  color: #666;
  font-size: 0.9rem;
}

.cart-row strong {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
}

.cart-shipping .free {
  color: #2e7d32;
  font-weight: 700;
}

.mobile-cart-actions {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.mobile-cart-actions .btn {
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.mobile-cart-actions .btn-outline {
  background: #fff;
  border: 2px solid #111;
  color: #111;
}

.mobile-cart-actions .btn-primary {
  background: var(--color-accent, #e34636);
  border: 2px solid var(--color-accent, #e34636);
  color: #fff;
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #E53935;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   MOBILE MENU - SUBMENU
   =========================== */
.mobile-menu-nav .has-submenu > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-nav .has-submenu > a span:first-child {
  flex: 1;
}

.mobile-menu-nav .submenu-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 1.5rem;
  font-weight: 300;
  color: #666;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mobile-menu-nav .has-submenu.open > a .submenu-toggle {
  transform: rotate(45deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  background: #f9f9f9;
  transition: max-height 0.3s ease;
}

.mobile-menu-nav .has-submenu.open .mobile-submenu {
  /* klaudiusz@ovh-dpakula: increased for categories with many subcategories (Zarost: 15+) */
  max-height: 1200px;
}

.mobile-submenu li {
  border-bottom: 1px solid #eee !important;
}

.mobile-submenu li:last-child {
  border-bottom: none !important;
}

.mobile-submenu a {
  padding: 14px 20px 14px 35px !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  color: #444 !important;
}

.mobile-submenu a:hover {
  color: var(--color-accent) !important;
}

.mobile-submenu .see-all {
  color: var(--color-accent) !important;
  font-weight: 600 !important;
}

/* ===========================
   NAV DROPDOWN (desktop hover)
   klaudiusz@ovh-dpakula: v1.5.1 — liquid glass white theme
   Białe tło z backdrop-filter blur, poniżej linii nav.
   Ukryty na ≤991px (mobile ma accordion).
   =========================== */

/* Nav item musi mieć position:relative żeby dropdown był pod nim */
.nav-item--has-dropdown {
  position: relative;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 8px 0 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown list */
.nav-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}

/* Two-column layout when > 6 items */
.nav-dropdown-list--two-col {
  column-count: 2;
  column-gap: 0;
  min-width: 380px;
}

.nav-dropdown-list--two-col li {
  break-inside: avoid;
}

/* Dropdown link */
.nav-dropdown-link {
  display: block;
  padding: 9px 20px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-dropdown-link:hover {
  color: #000000;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Footer "Zobacz wszystko" */
.nav-dropdown-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 9px 20px 11px;
}

.nav-dropdown-see-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent, #e34636);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.nav-dropdown-see-all:hover {
  color: #c0392b;
}

/* Caret (▾) on items that have a dropdown */
.nav-dropdown-caret {
  font-size: 1rem;
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
  line-height: 1;
}

/* Rotate caret when dropdown is open */
.nav-item--has-dropdown .nav-main-link.dropdown-active .nav-dropdown-caret {
  transform: rotate(180deg);
}

/* Hide on mobile/tablet — accordion is used there */
@media (max-width: 991px) {
  .nav-dropdown {
    display: none !important;
  }

  .nav-dropdown-caret {
    display: none;
  }
}

/* ===========================
   MOBILE MENU - SECO PRO BUTTON
   =========================== */
.mobile-menu-pro {
  padding: 15px 20px;
}

.mobile-pro-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-pro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.mobile-pro-btn .pro-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
}

.mobile-pro-btn .pro-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-pro-btn .pro-text strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.mobile-pro-btn .pro-text small {
  color: #999;
  font-size: 0.75rem;
}

.mobile-pro-btn .pro-arrow {
  color: #fff;
  font-size: 1.25rem;
}

/* ===========================
   MOBILE MENU - CONTACT & SOCIAL
   =========================== */
.mobile-menu-contact {
  padding: 20px;
  background: #f5f5f5;
  margin-top: auto;
}

.mobile-menu-contact .contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: #333;
  font-size: 0.9375rem;
}

.mobile-menu-contact .contact-row i {
  width: 20px;
  color: #666;
}

.mobile-menu-contact .contact-row a {
  color: #333;
  text-decoration: none;
}

.mobile-menu-contact .contact-row a:hover {
  color: var(--color-accent);
}

.mobile-menu-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.mobile-menu-social a {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mobile-menu-social a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================
   LOGGED-IN USER HEADER STYLES
   Added: 30.01.2026 by klaudiusz@localhost
   ============================================ */

/* Header User Profile */
.header-user-profile {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 25px;
  transition: background 0.2s ease;
}

.header-user-profile:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.header-user-greeting {
  font-size: 14px;
  white-space: nowrap;
}

.header-user-greeting strong {
  font-weight: 600;
}

/* Header User Points Badge */
.header-user-points {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  min-width: 60px;
  line-height: 1.2;
}

.header-user-points-value {
  font-size: 13px;
  font-weight: 700;
}

.header-user-points-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Topbar Loyalty Section */
.topbar-loyalty {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
}

.topbar-loyalty-points {
  font-weight: 700;
  color: var(--color-accent);
}

.topbar-loyalty-link {
  color: #333;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.topbar-loyalty-link:hover {
  color: var(--color-accent);
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .header-user-profile {
    padding: 6px 10px;
    font-size: 13px;
  }

  .header-user-points {
    padding: 4px 8px;
    min-width: 50px;
  }

  .header-user-points-value {
    font-size: 12px;
  }

  .header-user-points-label {
    font-size: 9px;
  }

  .topbar-loyalty {
    display: none;
  }
}

@media (max-width: 767px) {
  .header-user-profile,
  .header-user-points {
    display: none;
  }
}

/* ============================================
   B2C LOGGED-IN HEADER STYLES
   Based on seco-html-final/produkt-b2c.html
   Added: 30.01.2026 by klaudiusz@localhost
   ============================================ */

/* A. TOP BAR (czarny) */
.b2c-topbar {
  background: #1a1a1a;
  padding: 8px 0;
}

.b2c-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b2c-topbar__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
}

.b2c-topbar__lang-sep {
  opacity: 0.5;
}

.b2c-topbar__loyalty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
}

.b2c-topbar__loyalty-points {
  color: #e63946;
  font-weight: 700;
}

.b2c-topbar__loyalty-link {
  color: #fff;
  text-decoration: underline;
}

.b2c-topbar__loyalty-link:hover {
  color: #e63946;
}

.b2c-topbar__links {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.b2c-topbar__links a {
  color: #fff;
  text-decoration: none;
}

.b2c-topbar__links a:hover {
  color: #e63946;
}

/* B. CONTACT BAR (biały z czerwonym tekstem) */
.b2c-contact-bar {
  background: #fff;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.b2c-contact-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: #e63946;
}

.b2c-contact-bar__sep {
  color: #ddd;
}

.b2c-contact-bar__inner a {
  color: #e63946;
}

/* C. HEADER MAIN (biały) */
.b2c-header {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.b2c-header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.b2c-header__logo {
  flex-shrink: 0;
  text-decoration: none;
}

.b2c-header__logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.05em;
}

.b2c-header__search {
  flex: 1;
  max-width: 500px;
}

.b2c-header__search input {
  width: 100%;
  padding: 12px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  background: #f5f5f5;
  border: none;
  border-radius: 25px;
}

.b2c-header__search input::placeholder {
  color: #999;
}

.b2c-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.b2c-header__profile {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  text-decoration: none;
}

.b2c-header__profile:hover {
  background: #333;
  color: #fff;
}

.b2c-header__profile strong {
  margin-left: 4px;
}

/* Unread messages badge on profile button */
.b2c-header__msg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #e53e3e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9px;
  margin-left: 6px;
  line-height: 1;
  flex-shrink: 0;
}

.b2c-header__points {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  background: #fff;
  border: 2px solid #e63946;
  border-radius: 20px;
}

.b2c-header__points-value {
  font-size: 12px;
  font-weight: 700;
  color: #e63946;
  line-height: 1;
}

.b2c-header__points-label {
  font-size: 10px;
  color: #e63946;
  line-height: 1;
}

.b2c-header__icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.b2c-header__icon-btn:hover {
  color: #e63946;
}

.b2c-header__cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e63946;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
}

/* D. NAVIGATION (biały) */
.b2c-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.b2c-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 15px 0;
  margin: 0;
}

.b2c-nav__list li {
  display: flex;
  align-items: center;
}

.b2c-nav__link {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.b2c-nav__link:hover {
  color: #e63946;
}

.b2c-nav__link--active {
  color: #e63946;
}

.b2c-nav__link--new::before,
.b2c-nav__link--promo::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.b2c-nav__link--new::before {
  background: #4CAF50;
}

.b2c-nav__link--promo::before {
  background: #e63946;
}

/* E. PROMO BAR (szary) */
.b2c-promo-bar {
  background: #f5f5f5;
  padding: 14px 0;
}

.b2c-promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b2c-promo-bar__arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.b2c-promo-bar__arrow:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}

.b2c-promo-bar__content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.b2c-promo-bar__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.b2c-promo-bar__text {
  font-size: 15px;
  font-weight: 400;
  color: inherit;
  letter-spacing: 0.2px;
}

.b2c-promo-bar__text strong {
  font-weight: 700;
}

.b2c-promo-bar__link {
  font-size: 13px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.b2c-promo-bar__link:hover {
  opacity: 1;
}

.promo-bar-badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 4px;
  margin-right: 14px;
  text-transform: uppercase;
  vertical-align: middle;
  flex-shrink: 0;
}

/* B2C Header Responsive */
@media (max-width: 991px) {
  .b2c-header__search {
    max-width: 300px;
  }

  .b2c-header__profile {
    padding: 8px 15px;
    font-size: 13px;
  }

  .b2c-nav__list {
    gap: 15px;
  }

  .b2c-nav__link {
    font-size: 12px;
  }
}

/* B2C Search button — hidden on desktop (form is visible), shown on mobile */
.b2c-header__search-btn {
  display: none;
}

/* B2C Header Hamburger — hidden on desktop, visible on mobile */
.b2c-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.b2c-header__hamburger span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  background: #fff !important;
  border-radius: 2px;
  transition: background 0.2s;
  flex-shrink: 0;
}

/* B2C Header — mobile layout (≤768px) */
@media (max-width: 768px) {
  .b2c-topbar,
  .b2c-contact-bar,
  .b2c-nav {
    display: none;
  }

  .b2c-promo-bar {
    padding: 12px 0;
  }

  .b2c-promo-bar__slide {
    flex-wrap: wrap;
    gap: 4px;
  }

  .b2c-promo-bar__text {
    font-size: 13px;
    line-height: 1.4;
  }

  .promo-bar-badge {
    font-size: 11px;
    padding: 4px 10px;
    margin-right: 8px;
    letter-spacing: 1.5px;
  }

  .b2c-promo-bar__link {
    font-size: 12px;
  }

  /* Show b2c-header on mobile, dark background like site-header */
  .b2c-header {
    background: #000;
    padding: 12px 0;
    border-bottom: none;
  }

  /* Compact single-row layout */
  .b2c-header__inner {
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
  }

  /* Show hamburger on mobile */
  .b2c-header__hamburger {
    display: flex;
  }

  /* Show search icon button on mobile — consistent size with other icons */
  .b2c-header__search-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    flex-shrink: 0;
  }

  /* Logo text: smaller, white */
  .b2c-header__logo-text {
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 0.03em;
  }

  /* Hide desktop-only elements */
  .b2c-header__search {
    display: none !important;
  }

  .b2c-header__points {
    display: none !important;
  }

  /* Compact profile — icon-only, consistent size with other action buttons */
  .b2c-header__profile {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    gap: 0 !important;
  }

  /* Hide text label and chevron on mobile */
  .b2c-header__profile-name,
  .b2c-header__profile i.fa-chevron-down {
    display: none !important;
  }

  /* Profile user icon visible — same font-size as other action icons */
  .b2c-header__profile-icon {
    display: inline-block !important;
    font-size: 18px !important;
    color: #fff !important;
    margin: 0 !important;
  }

  /* Profile dropdown: ulubione heart icon */
  .b2c-header__icon-btn[aria-label="Ulubione"] {
    display: none !important;
  }

  /* Cart/icon buttons — white, consistent 36px size */
  .b2c-header__icon-btn,
  .b2c-header__cart {
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
  }

  /* Actions gap compact */
  .b2c-header__actions {
    gap: 2px;
  }

  /* Profile menu: position adjustment for mobile */
  .b2c-header__profile-menu {
    right: auto;
    left: 0;
  }
}

/* ===========================
   B2C PROFILE DROPDOWN
   =========================== */

.b2c-header__profile-dropdown {
  position: relative;
}

.b2c-header__profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
}

.b2c-header__profile-dropdown.is-open .b2c-header__profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}

.profile-menu-item:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.profile-menu-item i {
  width: 16px;
  color: #666;
}

.profile-menu-item--logout {
  color: #e63946;
}

.profile-menu-item--logout i {
  color: #e63946;
}

.profile-menu-item--logout:hover {
  background: #fff5f5;
  color: #e63946;
}

/* ===========================
   B2B HEADER STYLES
   =========================== */

/* PASEK 1 - TOPBAR (biały) */
.b2b-topbar {
  background: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.b2b-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b2b-topbar__lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-topbar__lang-icon {
  color: #666;
  font-size: 14px;
}

.b2b-topbar__lang-options {
  display: flex;
  align-items: center;
  gap: 5px;
}

.b2b-topbar__lang-link {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.b2b-topbar__lang-link--active {
  color: #1a1a1a;
  font-weight: 700;
}

.b2b-topbar__lang-separator {
  color: #ccc;
}

.b2b-topbar__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.b2b-topbar__info-label {
  color: #666;
}

.b2b-topbar__info-value {
  color: #e63946;
  font-weight: 700;
}

.b2b-topbar__info-separator {
  color: #ccc;
  margin: 0 5px;
}

.b2b-topbar__links {
  display: flex;
  gap: 20px;
}

.b2b-topbar__link {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.b2b-topbar__link:hover {
  color: #e63946;
}

/* PASEK 2 - HEADER INFO (czarny) */
.b2b-header-info {
  background: #1a1a1a;
  padding: 12px 0;
}

.b2b-header-info .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b2b-header-info__logo img {
  height: 24px;
  filter: brightness(0) invert(1);
}

.b2b-header-info__advisor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
}

.b2b-header-info__advisor-label {
  color: #999;
}

.b2b-header-info__advisor-name {
  font-weight: 700;
}

.b2b-header-info__advisor-separator {
  color: #666;
}

.b2b-header-info__advisor-phone {
  color: #fff;
}

.b2b-header-info__advisor-email {
  color: #fff;
  text-decoration: none;
}

.b2b-header-info__advisor-email:hover {
  text-decoration: underline;
}

/* Separator */
.b2b-header-separator {
  margin: 0;
  border: none;
  border-top: 1px solid #eee;
}

/* PASEK 3 - HEADER MAIN (biały) */
.b2b-header-main {
  background: #ffffff;
  padding: 20px 0;
}

.b2b-header-main .container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.b2b-badge-pro {
  display: block;
  flex-shrink: 0;
}

.b2b-badge-pro__img {
  height: 50px;
  width: auto;
}

.b2b-search {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  position: relative;
}

.b2b-search__input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.b2b-search__input:focus {
  border-color: #1a1a1a;
}

.b2b-search__btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #1a1a1a;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.b2b-search__btn:hover {
  background: #333;
}

.b2b-header-main__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.b2b-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}

.b2b-user-btn:hover {
  background: #333;
}

.b2b-user-btn__greeting {
  font-size: 14px;
  color: #fff;
}

.b2b-user-btn__name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.b2b-action-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #1a1a1a;
  position: relative;
  transition: color 0.2s;
}

.b2b-action-btn:hover {
  color: #e63946;
}

.b2b-action-btn__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #e63946;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* B2B Header Responsive */
@media (max-width: 991px) {
  .b2b-topbar__info {
    display: none;
  }

  .b2b-header-info__advisor {
    font-size: 12px;
  }

  .b2b-search {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .b2b-topbar,
  .b2b-header-info,
  .b2b-header-separator,
  .b2b-header-main {
    display: none;
  }
}

/* ===========================
   B2B HEADER STYLES — moved from produkt-b2b.css for global availability
   =========================== */
:root {
  --color-b2b-highlight: #FF8C00;
  --b2b-topbar-height: 44px;
  --b2b-header-info-height: 40px;
  --b2b-header-main-height: 70px;
  --b2b-info-left: 280px;
}

.b2b-topbar {
  background-color: var(--color-bg-dark);
  height: var(--b2b-topbar-height);
  display: flex;
  align-items: center;
  position: relative;
}

.b2b-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.b2b-topbar__lang {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.b2b-topbar__lang-icon {
  color: var(--color-text-inverse);
  font-size: var(--fs-body);
}

.b2b-topbar__lang-options {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
}

.b2b-topbar__lang-link {
  color: var(--color-text-inverse);
  opacity: 0.7;
  font-weight: var(--fw-regular);
}

.b2b-topbar__lang-link:hover {
  opacity: 1;
}

.b2b-topbar__lang-link--active {
  opacity: 1;
  font-weight: var(--fw-semibold);
}

.b2b-topbar__lang-separator {
  color: var(--color-text-inverse);
  opacity: 0.4;
}

.b2b-topbar__info {
  position: absolute;
  left: var(--b2b-info-left);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
}

.b2b-topbar__info-label {
  color: var(--color-text-inverse);
  font-weight: var(--fw-regular);
}

.b2b-topbar__info-value {
  color: var(--color-b2b-highlight);
  font-weight: var(--fw-bold);
}

.b2b-topbar__info-separator {
  color: var(--color-text-inverse);
  opacity: 0.4;
  margin: 0 var(--space-xs);
}

.b2b-topbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: auto;
}

.b2b-topbar__link {
  color: var(--color-text-inverse);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
}

.b2b-topbar__link:hover {
  opacity: 0.75;
}

.b2b-header-info {
  background-color: var(--color-accent);
  height: var(--b2b-header-info-height);
  display: flex;
  align-items: center;
  position: relative;
}

.b2b-header-info .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.b2b-header-info__logo {
  display: block;
  height: 12px;
}

.b2b-header-info__logo img {
  height: 100%;
  width: auto;
}

.b2b-header-info__logo-text {
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.b2b-header-info__advisor {
  position: absolute;
  left: var(--b2b-info-left);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-inverse);
  font-size: var(--fs-small);
}

.b2b-header-info__advisor-label {
  font-weight: var(--fw-bold);
  color: var(--color-bg-dark);
}

.b2b-header-info__advisor-name {
  font-weight: var(--fw-bold);
}

.b2b-header-info__advisor-separator {
  opacity: 0.6;
  margin: 0 var(--space-xs);
}

.b2b-header-info__advisor-phone {
  font-weight: var(--fw-regular);
}

.b2b-header-info__advisor-email {
  font-weight: var(--fw-regular);
}

.b2b-header-info__advisor-email:hover {
  text-decoration: underline;
}

.b2b-header-separator {
  width: 100%;
  height: 1px;
  background-color: var(--color-bg-dark);
  border: none;
  margin: 0;
  padding: 0;
}

.b2b-header-main {
  background-color: var(--color-accent);
  height: var(--b2b-header-main-height);
  display: flex;
  align-items: center;
  padding-bottom: var(--space-xs);
  padding-top: var(--space-xs);
}

.b2b-header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
}

.b2b-badge-pro {
  display: block;
  flex-shrink: 0;
}

.b2b-badge-pro__img {
  height: 44px;
  width: auto;
}

.b2b-badge-pro--text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  flex-shrink: 0;
}

.b2b-badge-pro__label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.5625rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.b2b-badge-pro__title {
  display: flex;
  align-items: baseline;
}

.b2b-badge-pro__title-barber {
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: var(--fw-regular);
  letter-spacing: 0.02em;
}

.b2b-badge-pro__title-pro {
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: var(--fw-regular);
  letter-spacing: 0.02em;
}

.b2b-search {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.b2b-search__input {
  width: 100%;
  height: 38px;
  padding: 0 70px 0 var(--space-xl);
  font-size: var(--fs-body);
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: none;
  border-radius: var(--radius-pill);
  outline: none;
  transition: var(--transition-base);
}

.b2b-search__input::placeholder {
  color: var(--color-text-muted);
  font-weight: var(--fw-regular);
}

.b2b-search__input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.b2b-search__btn {
  position: absolute;
  right: var(--space-xs);
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  cursor: pointer;
  transition: var(--transition-base);
}

.b2b-search__btn:hover {
  color: var(--color-accent);
}

.b2b-header-main__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.b2b-user-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-bg-dark);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--color-text-inverse);
  font-size: var(--fs-small);
  white-space: nowrap;
  transition: var(--transition-base);
}

.b2b-user-btn:hover {
  background: #1a1a1a;
}

.b2b-user-btn__greeting {
  font-weight: var(--fw-regular);
}

.b2b-user-btn__name {
  font-weight: var(--fw-bold);
}

.b2b-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--color-text-inverse);
  font-size: 1.375rem;
  position: relative;
  transition: var(--transition-base);
}

.b2b-action-btn:hover {
  opacity: 0.75;
}

.b2b-action-btn__badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-accent);
}

/* B2B header — tablet */
@media (max-width: 1024px) {
  :root {
    --b2b-info-left: 220px;
  }
  .b2b-topbar__info { font-size: 0.75rem; }
  .b2b-topbar__links { gap: var(--space-lg); }
  .b2b-topbar__link { font-size: 0.8125rem; }
  .b2b-header-info__advisor { font-size: 0.75rem; }
  .b2b-search { max-width: 400px; }
  .b2b-badge-pro__img { height: 38px; }
  .b2b-badge-pro__title-barber,
  .b2b-badge-pro__title-pro { font-size: 1.625rem; }
  .b2b-user-btn { padding: var(--space-xs) var(--space-md); font-size: 0.8125rem; }
}

/* B2B header — mobile */
@media (max-width: 767px) {
  .b2b-topbar { height: auto; padding: var(--space-sm) 0; }
  .b2b-topbar .container { display: flex; flex-direction: column; gap: var(--space-xs); }
  .b2b-topbar__info { position: static; transform: none; flex-wrap: wrap; justify-content: center; text-align: center; font-size: 0.6875rem; gap: var(--space-2xs); }
  .b2b-topbar__info-separator { margin: 0 var(--space-2xs); }
  .b2b-topbar__links { display: none; }
  .b2b-header-info { height: auto; padding: var(--space-sm) 0; }
  .b2b-header-info .container { display: flex; flex-direction: column; gap: var(--space-xs); }
  .b2b-header-info__logo { height: 18px; }
  .b2b-header-info__advisor { position: static; transform: none; flex-wrap: wrap; justify-content: center; font-size: 0.6875rem; text-align: center; }
  .b2b-header-main { height: auto; padding: var(--space-sm) 0; }
  .b2b-header-main .container { flex-wrap: wrap; gap: var(--space-sm); }
  .b2b-badge-pro { display: none; }
  .b2b-search { order: 10; flex: 0 0 100%; max-width: 100%; }
  .b2b-search__input { height: 44px; font-size: var(--fs-small); }
  .b2b-header-main__actions { gap: var(--space-xs); }
  .b2b-user-btn { padding: var(--space-xs) var(--space-sm); font-size: 0.75rem; }
  .b2b-action-btn { width: 38px; height: 38px; font-size: 1.125rem; }
}

@media print {
  .b2b-topbar, .b2b-header-info, .b2b-header-main {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* ===========================
   ADVISOR SECTION (B2B/Wholesale) — global
   Moved from produkt-b2b.css to header.css for global availability
   =========================== */
.advisor-section {
  background: var(--color-bg);
  padding: var(--space-2xl) 0;
}

.advisor-wrapper {
  position: relative;
}

.advisor-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  background: var(--color-accent);
  padding: var(--space-sm) var(--space-lg);
  z-index: 1;
}

.advisor-header__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  text-transform: uppercase;
  margin: 0;
}

.advisor-header__icon {
  display: none;
}

.advisor-footer {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;
  height: 40px;
  background: var(--color-bg-dark);
  z-index: 1;
}

.advisor-content {
  position: relative;
  z-index: 2;
  padding-top: 42px;
  padding-bottom: 40px;
}

.advisor-layout {
  display: grid;
  grid-template-columns: 30% 1fr 1fr;
  align-items: stretch;
  background: var(--color-bg);
  min-height: 200px;
  max-height: 280px;
  border: 2px solid var(--color-bg-dark);
  overflow: hidden;
}

.advisor-photo {
  position: relative;
}

.advisor-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.advisor-photo__badge {
  position: absolute;
  left: var(--space-lg);
  bottom: var(--space-lg);
}

.advisor-photo__badge-label {
  display: block;
  color: var(--color-text-inverse);
  font-size: 0.5rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.advisor-photo__badge-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
}

.advisor-photo__badge-barber {
  color: var(--color-text-inverse);
}

.advisor-photo__badge-pro {
  color: var(--color-accent);
}

.advisor-contact {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.advisor-contact__name {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.advisor-contact__phone,
.advisor-contact__email {
  display: block;
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-2xs);
  transition: var(--transition-base);
}

.advisor-contact__phone:hover,
.advisor-contact__email:hover {
  color: var(--color-accent-dark);
}

.advisor-info {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.advisor-info__item {
  margin-bottom: var(--space-md);
}

.advisor-info__item:last-child {
  margin-bottom: 0;
}

.advisor-info__label {
  display: block;
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  margin-bottom: 0;
}

.advisor-info__value {
  display: block;
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
}

/* Advisor section — tablet */
@media (max-width: 1024px) {
  .advisor-section {
    padding: var(--space-lg) 0;
  }

  .advisor-header {
    width: 100%;
    position: relative;
    left: 0;
  }

  .advisor-footer {
    width: 100%;
    position: relative;
    right: 0;
    height: 30px;
  }

  .advisor-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .advisor-layout {
    grid-template-columns: 1fr;
    text-align: center;
    max-height: none;
  }

  .advisor-photo {
    height: 200px;
    overflow: hidden;
  }

  .advisor-photo__img {
    object-position: top;
  }

  .advisor-photo__badge {
    left: 50%;
    transform: translateX(-50%);
  }

  .advisor-contact,
  .advisor-info {
    padding: var(--space-md);
  }
}

/* Advisor section — mobile */
@media (max-width: 767px) {
  .advisor-section {
    padding: var(--space-xl) 0;
  }

  .advisor-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .advisor-header {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    padding: 12px 16px;
    background: #E53935 !important;
    order: 1;
  }

  .advisor-header__title {
    font-size: 1rem;
    text-align: center;
    color: #fff;
  }

  .advisor-footer {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 24px;
    background: #1a1a1a !important;
    order: 3;
  }

  .advisor-content {
    padding: 0;
    border-left: 3px solid #1a1a1a;
    border-right: 3px solid #1a1a1a;
    order: 2;
  }

  .advisor-layout {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
    background: #fff;
    border: none !important;
    grid-template-columns: none !important;
    max-height: none;
  }

  .advisor-photo {
    width: 180px;
    height: 180px;
    position: relative;
  }

  .advisor-photo__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .advisor-photo__badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    text-align: center;
  }

  .advisor-photo__badge-label {
    font-size: 0.625rem;
  }

  .advisor-photo__badge-title {
    font-size: 1rem;
  }

  .advisor-contact {
    padding: 0;
  }

  .advisor-contact__name {
    font-size: 1.375rem;
    margin-bottom: 12px;
  }

  .advisor-contact__phone,
  .advisor-contact__email {
    display: block;
    font-size: 1.0625rem;
    margin-bottom: 6px;
  }

  .advisor-info {
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }

  .advisor-info__item {
    margin-bottom: 12px;
  }

  .advisor-info__label {
    font-size: 0.9375rem;
  }

  .advisor-info__value {
    font-size: 1.125rem;
  }
}
