/* ============================================
   KS HEADER v1.0 - Agropunkt.eu
   Custom header: topbar + main + scrollable categories
   ============================================ */

/* ============================================
   HIDE OLD HEADER ELEMENTS
   ============================================ */
.nav_top,
.header-nav,
.header-top-inner {
  display: none !important;
}

/* Disable old sticky behavior */
#header.fixed .header-top {
  position: static !important;
  animation: none !important;
  box-shadow: none !important;
}

/* ============================================
   ROW 1: TOP BAR
   ============================================ */
.ks-topbar {
  background: var(--global-palette1, #003e00);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.ks-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 20px;
}

.ks-topbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ks-topbar__social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ks-topbar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  transition: background 0.2s;
}

.ks-topbar__social a:hover {
  background: rgba(255,255,255,0.25);
}

.ks-topbar__social svg {
  width: 13px;
  height: 13px;
}

.ks-topbar__divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.2);
}

.ks-topbar__nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ks-topbar__nav a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  transition: color 0.2s;
}

.ks-topbar__nav a:hover {
  color: #fff;
}

.ks-topbar__center {
  flex: 1;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  padding: 0 20px;
}

.ks-topbar__center a {
  color: #bfd337;
  text-decoration: underline;
  text-decoration-color: rgba(191,211,55,0.4);
  font-weight: 500;
}

.ks-topbar__center a:hover {
  text-decoration-color: #bfd337;
}

.ks-topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.ks-topbar__contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  transition: color 0.2s;
}

.ks-topbar__contact:hover {
  color: #fff;
}

.ks-topbar__contact svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* ============================================
   ROW 2: MAIN HEADER
   ============================================ */
.ks-header-main {
  background: var(--global-palette9, #fff);
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  z-index: 100;
}

.ks-header-main .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 80px;
}

/* Logo */
.ks-header-main__logo {
  flex-shrink: 0;
}

.ks-header-main__logo img {
  height: 46px;
  width: auto;
}

/* Search */
.ks-header-main__search {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.ks-search__inner {
  display: flex;
  align-items: center;
  border: 2px solid var(--global-palette1, #003e00);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ks-search__inner form {
  display: flex;
  align-items: center;
  flex: 1;
}

.ks-search__inner:focus-within {
  border-color: #4f5f2a;
  box-shadow: 0 0 0 3px rgba(0,62,0,0.1);
}

.ks-search__input {
  flex: 1;
  border: none;
  padding: 11px 18px;
  font-size: 14px;
  font-family: inherit;
  color: #1e1e1e;
  outline: none;
  background: transparent;
}

.ks-search__input::placeholder {
  color: #999;
}

.ks-search__btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--global-palette1, #003e00);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ks-search__btn:hover {
  background: #4f5f2a;
}

.ks-search__btn svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

/* ============================================
   ACTIONS: displayTop module overrides
   Force vertical layout: icon on top, label below
   Modules: ps_customersignin, stfeature (wishlist), ps_shoppingcart
   NOTE: Must use #header prefix to beat theme.css specificity
   ============================================ */
.ks-header-main__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  overflow: visible;
}

/* === HIDE ps_searchbar in displayTop (we have our own search) === */
#header .ks-header-main__actions #search_widget,
#header .ks-header-main__actions .search-widget,
#header .ks-header-main__actions .search-widgets,
#header .ks-header-main__actions [id*="search_widget"],
#header .ks-header-main__actions form[action*="search"] {
  display: none !important;
}

/* === SHARED: all action items === */
#header .ks-header-main__actions .user-info,
#header .ks-header-main__actions .head-wishlist,
#header .ks-header-main__actions #desktop_cart {
  float: none !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  min-width: 56px;
  text-align: center;
  margin: 0 !important;
}

#header .ks-header-main__actions .user-info:hover,
#header .ks-header-main__actions .head-wishlist:hover,
#header .ks-header-main__actions #desktop_cart:hover {
  background: #f4f4f4;
}

/* === ACCOUNT (ps_customersignin) === */

/* Override theme's horizontal flex to vertical */
#header .ks-header-main__actions .user-info .user-info-title {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  overflow: visible !important;
}

#header .ks-header-main__actions .user-info {
  overflow: visible !important;
}

/* User icon - keep theme's mask-image, ensure proper size */
#header .ks-header-main__actions .user-info .user-info-title .user-icon {
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  -webkit-mask-size: 24px !important;
  mask-size: 24px !important;
  background-color: var(--global-palette3, #1e1e1e) !important;
  vertical-align: top;
}

#header .ks-header-main__actions .user-info:hover .user-info-title .user-icon {
  background-color: var(--global-palette1, #003e00) !important;
}

/* Hide account text wrap (name etc.) */
#header .ks-header-main__actions .user-info .user-info-title .account-wrap {
  display: none !important;
}

/* Add "Konto" label via pseudo-element */
#header .ks-header-main__actions .user-info .user-info-title::after {
  content: 'Konto';
  font-size: 11px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}

#header .ks-header-main__actions .user-info:hover .user-info-title::after {
  color: var(--global-palette1, #003e00);
}

/* Dropdown menu - hidden by default */
#header .ks-header-main__actions .user-info .dropdown-menu {
  display: none;
  position: absolute;
  top: 100% !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px 0;
  z-index: 1000;
  list-style: none;
  margin: 4px 0 0;
}

/* Show dropdown via our JS class */
#header .ks-header-main__actions .user-info .dropdown-menu.ks-show {
  display: block !important;
}

/* Dropdown items */
#header .ks-header-main__actions .user-info .dropdown-menu li {
  list-style: none;
}

#header .ks-header-main__actions .user-info .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

#header .ks-header-main__actions .user-info .dropdown-menu a:hover {
  background: #f4f4f4;
  color: var(--global-palette1, #003e00);
}

/* === WISHLIST (stfeature) === */
#header .ks-header-main__actions .head-wishlist .ap-btn-wishlist {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px;
  text-decoration: none !important;
  color: inherit;
  position: relative;
}

/* Heart icon - show as material icon character */
#header .ks-header-main__actions .head-wishlist .ap-btn-wishlist > i.material-icons {
  display: inline-block !important;
  font-size: 24px !important;
  color: var(--global-palette3, #1e1e1e);
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  background-color: transparent !important;
  background-image: none !important;
}

#header .ks-header-main__actions .head-wishlist:hover .ap-btn-wishlist > i.material-icons {
  color: var(--global-palette1, #003e00);
}

/* Hide "Lista życzeń" text */
#header .ks-header-main__actions .head-wishlist .ap-btn-wishlist > span.icon {
  display: none !important;
}

/* Add "Ulubione" label */
#header .ks-header-main__actions .head-wishlist .ap-btn-wishlist::after {
  content: 'Ulubione';
  font-size: 11px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
  order: 3;
}

#header .ks-header-main__actions .head-wishlist:hover .ap-btn-wishlist::after {
  color: var(--global-palette1, #003e00);
}

/* Wishlist count badge */
#header .ks-header-main__actions .head-wishlist .ap-btn-wishlist .ap-total-wishlist {
  position: absolute !important;
  top: -2px !important;
  right: 2px !important;
  left: auto !important;
  background: var(--global-palette1, #003e00) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  line-height: 1 !important;
}

/* Remove parentheses from wishlist count */
#header .ks-header-main__actions .head-wishlist .ap-total-wishlist::before,
#header .ks-header-main__actions .head-wishlist .ap-total-wishlist::after {
  content: none !important;
}

/* === CART (ps_shoppingcart) === */
#header .ks-header-main__actions #desktop_cart {
  padding: 6px 14px;
  background: #f4f4f4;
  border-radius: 12px;
}

#header .ks-header-main__actions #desktop_cart:hover {
  background: #e8e8e8;
}

#header .ks-header-main__actions #desktop_cart .blockcart {
  float: none !important;
  position: static !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

#header .ks-header-main__actions #desktop_cart .blockcart .blockcart-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px;
}

/* Override theme's horizontal flex to vertical */
#header .ks-header-main__actions #desktop_cart .blockcart .blockcart-header > .shopping-cart {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  position: relative;
}

/* Cart icon - keep theme's mask-image, adjust size */
#header .ks-header-main__actions #desktop_cart .blockcart .blockcart-header > .shopping-cart > .icon {
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  -webkit-mask-size: 24px !important;
  mask-size: 24px !important;
  background-color: var(--global-palette3, #1e1e1e) !important;
  font-size: 0 !important;
  vertical-align: top;
}

#header .ks-header-main__actions #desktop_cart:hover .blockcart .blockcart-header > .shopping-cart > .icon {
  background-color: var(--global-palette1, #003e00) !important;
}

/* Cart count badge - override theme's position */
#header .ks-header-main__actions #desktop_cart .blockcart .blockcart-header > .shopping-cart .mobile_count {
  position: absolute !important;
  top: -5px !important;
  right: -8px !important;
  left: auto !important;
}

/* Hide cart product count text (just keep badge) */
#header .ks-header-main__actions #desktop_cart .blockcart .blockcart-header > .shopping-cart .cart-products-count {
  display: none !important;
}

/* Add "Koszyk" label */
#header .ks-header-main__actions #desktop_cart .blockcart .blockcart-header > .shopping-cart::after {
  content: 'Koszyk';
  font-size: 11px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}

#header .ks-header-main__actions #desktop_cart:hover .blockcart .blockcart-header > .shopping-cart::after {
  color: var(--global-palette1, #003e00);
}

/* Cart slide-out panel - preserve theme functionality */
#header .ks-header-main__actions #desktop_cart .blockcart .cart_block {
  /* Theme handles position: fixed + transform for slide-out */
}

/* ============================================
   ROW 3: CATEGORIES (scrollable)
   Override base_horizontalmenu for horizontal scroll
   ============================================ */
.ks-header-categories {
  background: var(--global-palette9, #fff);
  border-bottom: 2px solid var(--global-palette1, #003e00);
  position: relative;
  z-index: 99;
}

.ks-catscroll {
  position: relative;
  display: flex;
  align-items: center;
}

.ks-catscroll__track {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  flex: 1;
}

.ks-catscroll__track::-webkit-scrollbar {
  display: none;
}

/* Override base_horizontalmenu to be inline */
.ks-catscroll__track .container_base_horizontalmenu,
.ks-catscroll__track #base-menu-horizontal {
  width: 100%;
}

.ks-catscroll__track .horizontalmenu-content {
  display: flex !important;
  flex-wrap: nowrap !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ks-catscroll__track .horizontalmenu-content > li.level-1 {
  flex-shrink: 0;
  white-space: nowrap;
  position: relative;
}

.ks-catscroll__track .horizontalmenu-content > li.level-1 > a.baseinnermenu {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

.ks-catscroll__track .horizontalmenu-content > li.level-1:hover > a.baseinnermenu,
.ks-catscroll__track .horizontalmenu-content > li.level-1.active > a.baseinnermenu {
  color: var(--global-palette1, #003e00);
  text-decoration: none !important;
}

/* Hide mobile elements in horizontal mode */
.ks-catscroll__track .title-horizontalmenu-mobile,
.ks-catscroll__track .title_main_menu,
.ks-catscroll__track .navbar-toggler,
.ks-catscroll__track .js-top-menu-bottom,
.ks-catscroll__track .js-top-menu,
.ks-catscroll__track .base-left-arrow {
  display: none !important;
}

/* Chevron for expand-more */
.ks-catscroll__track .horizontalmenu-content > li.level-1 .expand-more {
  font-size: 14px;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}

.ks-catscroll__track .horizontalmenu-content > li.level-1:hover .expand-more {
  opacity: 0.7;
  transform: rotate(180deg);
}

/* Scroll arrows */
.ks-catscroll__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1e1e1e;
  transition: all 0.2s;
}

.ks-catscroll__arrow:hover {
  background: var(--global-palette1, #003e00);
  color: #fff;
  border-color: var(--global-palette1, #003e00);
}

.ks-catscroll__arrow--left { left: 0; }
.ks-catscroll__arrow--right { right: 0; }
.ks-catscroll__arrow.visible { display: flex; }

/* Hide "Więcej/More" dropdown - overflow handled by scroll */
.ks-catscroll__track #basemore_menu,
.ks-catscroll__track .basemore_menu {
  display: none !important;
}

/* ============================================
   MEGA MENU IMPROVEMENTS
   Use position: fixed to escape overflow-x: auto clipping
   JS sets --ks-cat-bottom CSS variable on hover
   ============================================ */
.ks-catscroll__track .horizontalmenu-content > li.level-1 > .base-sub-menu.menu-dropdown {
  position: fixed !important;
  top: var(--ks-cat-bottom, 170px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(1230px, 100vw) !important;
  max-width: 100vw !important;
  border-top: 3px solid var(--global-palette1, #003e00);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  padding: 24px;
  z-index: 200 !important;
  background: #fff;
}

/* Mega menu column layout */
.base-sub-menu.menu-dropdown .base-menu-row {
  display: flex !important;
  flex-wrap: wrap;
}

.base-sub-menu.menu-dropdown .base-menu-col {
  padding: 0 16px !important;
}

/* Category headers in mega menu */
.base-sub-menu.menu-dropdown li.menu-item.item-header > a.submenu-title {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--global-palette1, #003e00) !important;
  border-bottom: 2px solid #e8e8e8 !important;
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
  display: block !important;
  text-decoration: none !important;
}

.base-sub-menu.menu-dropdown li.menu-item.item-header > a.submenu-title:hover {
  color: #1e1e1e !important;
}

/* Subcategory links in mega menu */
.base-sub-menu.menu-dropdown li.menu-item.item-line > a.submenu-title {
  padding: 5px 0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #555 !important;
  transition: all 0.15s !important;
  display: block !important;
  text-decoration: none !important;
  border: none !important;
}

.base-sub-menu.menu-dropdown li.menu-item.item-line > a.submenu-title:hover {
  color: var(--global-palette1, #003e00) !important;
  padding-left: 6px !important;
}

/* Mega menu ul styling */
.base-sub-menu.menu-dropdown ul.ul-column {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
}

/* ============================================
   STICKY HEADER
   ============================================ */
.ks-header-main.ks-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  animation: ksSlideDown 0.3s ease;
}

.ks-header-main.ks-sticky .container {
  height: 64px;
  justify-content: center;
}

.ks-header-main.ks-sticky .ks-header-main__logo img {
  height: 36px;
}

/* Hamburger visible in sticky (desktop) */
.ks-sticky-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ks-sticky-hamburger:hover {
  background: #f4f4f4;
}

.ks-header-main.ks-sticky .ks-sticky-hamburger {
  display: flex;
}

@keyframes ksSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.ks-sticky-placeholder {
  display: none;
}

/* ============================================
   MOBILE SEARCH OVERLAY
   ============================================ */
.ks-mobile-search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10001;
  background: #fff;
  padding: 10px 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  animation: ksSlideDown 0.25s ease;
}

.ks-mobile-search-overlay.open {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ks-mobile-search-overlay .ks-search__inner {
  flex: 1;
}

.ks-mobile-search-overlay .ks-search__input {
  padding: 12px 16px;
  font-size: 16px;
}

.ks-mobile-search-close {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s;
}

.ks-mobile-search-close:hover {
  background: #f4f4f4;
}

/* ============================================
   MOBILE DRAWER MENU
   ============================================ */
.ks-drawer-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  transition: opacity 0.3s;
}

.ks-drawer-overlay.open {
  display: block;
}

.ks-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  max-width: 82vw;
  height: 100%;
  background: #fff;
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ks-drawer.open {
  transform: translateX(0);
}

/* Header */
.ks-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.ks-drawer__header-logo img { height: 26px; }

.ks-drawer__close {
  width: 32px; height: 32px;
  border: none; background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #555;
}

/* Quick actions */
.ks-drawer__quick {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.ks-drawer__quick a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 500;
  color: #1e1e1e;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: background 0.15s;
}

.ks-drawer__quick a:active { background: #f4f4f4; }
.ks-drawer__quick svg { width: 16px; height: 16px; opacity: 0.5; }

/* Category list */
.ks-drawer__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ks-drawer__cat {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #1e1e1e;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}

.ks-drawer__cat:active { background: #f4f4f4; }

.ks-drawer__cat.active {
  color: var(--global-palette1, #003e00);
  font-weight: 600;
}

.ks-drawer__cat-arrow {
  margin-left: auto;
  width: 16px; height: 16px;
  opacity: 0.25;
  flex-shrink: 0;
}

.ks-drawer__cat-badge {
  background: var(--global-palette1, #003e00);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 8px;
}

.ks-drawer__sep {
  height: 6px;
  background: #f4f4f4;
}

/* Footer */
.ks-drawer__footer {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ks-drawer__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--global-palette1, #003e00);
}

.ks-drawer__phone svg { width: 16px; height: 16px; }

.ks-drawer__social {
  display: flex;
  gap: 6px;
}

.ks-drawer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f4f4f4;
  color: #1e1e1e;
  transition: background 0.15s;
}

.ks-drawer__social a:active { background: #ddd; }
.ks-drawer__social svg { width: 14px; height: 14px; }

/* ============================================
   CHECKOUT HEADER (unchanged)
   ============================================ */
.ks-checkout-header {
  /* Existing checkout header styles preserved */
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .ks-topbar { display: none; }
  .ks-header-categories { display: none; }
  .ks-header-main__search { display: none; }

  /* Hide labels and some actions */
  .ks-header-main__actions .user-info .hidden-sm-down,
  .ks-header-main__actions .blockcart .hidden-sm-down {
    display: none !important;
  }

  .ks-header-main .container {
    height: 56px;
    gap: 10px;
  }

  .ks-header-main__logo img { height: 32px; }

  .ks-mobile-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
  }

  .ks-mobile-hamburger:hover { background: #f4f4f4; }

  .ks-mobile-search-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    margin-left: auto;
    flex-shrink: 0;
  }

  .ks-mobile-search-btn:hover { background: #f4f4f4; }

  /* Hide desktop sticky hamburger on mobile */
  .ks-sticky-hamburger { display: none !important; }
}

@media (min-width: 992px) {
  .ks-mobile-hamburger { display: none !important; }
  .ks-mobile-search-btn { display: none !important; }
}
