/* =====================================================
   HEADER — climatstore.com.ua
   ===================================================== */

/* --- Top bar --- */
.cs-header-top {
  background: #e8e8e8;
  border-bottom: 1px solid var(--cs-border);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.cs-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-header-top .cs-header-inner {
  height: 36px;
}

.cs-header-top-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.cs-header-top-links a {
  color: var(--cs-text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.cs-header-top-links a:hover {
  color: var(--cs-green);
  text-decoration: none;
}

.cs-header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Phone dropdown */
.cs-header-phones-wrap {
  position: relative;
}

.cs-header-phone-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--cs-text);
  padding: 4px 0;
  font-family: 'Inter', sans-serif;
}

.cs-header-phone-toggle .cs-caret {
  font-size: 12px;
  transition: transform 0.2s;
}

.cs-header-phones-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 220px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s;
}

.cs-header-phones-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cs-phone-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--cs-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.cs-phone-item:hover {
  background: var(--cs-bg);
  color: var(--cs-green);
  text-decoration: none;
}

.cs-phone-callback {
  display: block;
  width: calc(100% - 32px);
  margin: 8px 16px 4px;
  padding: 8px;
  background: var(--cs-green);
  color: #fff;
  border: none;
  border-radius: var(--cs-radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.cs-phone-callback:hover {
  background: #2a9145;
}

/* Language switcher */
.cs-header-lang {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cs-header-lang form {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cs-lang-link {
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cs-text-light);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.cs-lang-link:hover {
  color: var(--cs-text);
  text-decoration: none;
}

.cs-lang-link.active {
  background: var(--cs-green);
  color: #fff;
}

.cs-lang-link.active:hover {
  color: #fff;
}

/* --- Main bar --- */
.cs-header-main {
  background: #fff;
  border-bottom: 1px solid var(--cs-border);
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 100;
}

.cs-header-main .cs-header-inner {
  height: 72px;
  gap: 16px;
}

.cs-header-main.cs-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  animation: csSlideDown 0.25s ease;
}

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

/* Logo */
.cs-header-logo {
  flex-shrink: 0;
}

.cs-header-logo img {
  max-height: 40px;
  width: auto;
}

/* Catalog button */
.cs-catalog-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--cs-green);
  color: #fff;
  border: none;
  border-radius: var(--cs-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

.cs-catalog-btn i {
  font-size: 20px;
}

.cs-catalog-btn:hover {
  background: #2a9145;
}

/* --- Search --- */
.cs-header-search {
  flex: 1;
  min-width: 0;
}

.cs-header-search #search {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--cs-border);
  border-radius: var(--cs-radius);
  overflow: hidden;
  transition: border-color 0.2s;
  height: 44px;
}

.cs-header-search #search:focus-within {
  border-color: var(--cs-green);
}

.cs-header-search #search input[name="search"] {
  flex: 1;
  border: none !important;
  outline: none !important;
  padding: 0 16px !important;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #fff !important;
  box-shadow: none !important;
  height: 100% !important;
  border-radius: 0 !important;
  margin: 0;
}

.cs-header-search #search .input-group-btn {
  display: flex;
  width: 44px;
  flex-shrink: 0;
}

.cs-header-search #search .btn-search {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 100% !important;
  background: var(--cs-green) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer;
  font-size: 0;
  transition: background 0.2s;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0;
}

.cs-header-search #search .btn-search::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cs-header-search #search .btn-search:hover {
  background: #2a9145 !important;
}

.cs-header-search #search .btn-search i {
  display: none;
}

/* --- Header icons --- */
.cs-header-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cs-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--cs-text);
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.cs-header-icon i {
  font-size: 22px;
}

.cs-header-icon:hover {
  background: var(--cs-bg);
  color: var(--cs-green);
  text-decoration: none;
}

/* --- Cart trigger (in header icons + mobile) --- */
.cs-cart-trigger {
  cursor: pointer;
}

.cs-cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--cs-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  pointer-events: none;
}

.cs-cart-badge:empty,
.cs-wishlist-badge:empty,
.cs-compare-badge:empty {
  display: none;
}

.cs-wishlist-badge,
.cs-compare-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--cs-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  pointer-events: none;
}

/* Cart system container: rendered at body root, always visible */
.cs-cart-system {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
}

.cs-cart-system #cart {
  position: static;
  margin: 0;
}

.cs-cart-system #cart > button,
.cs-cart-system .cart-block-open {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

/* Cart overlay */
.cs-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  pointer-events: none;
}

.cs-cart-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Cart panel pointer-events */
.cs-cart-system #open-header-cart {
  pointer-events: auto;
}

/* Cart slide panel — slide in from right */
#open-header-cart {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: 400px !important;
  max-width: 100vw !important;
  height: 100vh !important;
  z-index: 999 !important;
  background: var(--cs-bg) !important;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15) !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease !important;
  overflow-y: auto;
}

#open-cart:checked ~ #open-header-cart,
.cs-cart-system #open-cart:checked ~ #open-header-cart {
  transform: translateX(0) !important;
  left: auto !important;
}

/* Cart close bar - sticky at top */
.cs-cart-close-bar {
  position: sticky !important;
  top: 0;
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: #fff !important;
  border-bottom: 1px solid var(--cs-border);
  padding: 14px 20px !important;
  list-style: none;
}

.cs-cart-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--cs-text);
}

.cs-cart-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--cs-text-light);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-cart-close-btn:hover {
  background: var(--cs-bg);
  color: var(--cs-text);
}

/* Cart items area */
#open-header-cart > li {
  list-style: none;
  padding: 12px 16px;
}

/* Empty state */
#open-header-cart > li > p {
  color: var(--cs-text-light) !important;
  font-size: 15px !important;
  text-align: center !important;
  padding: 60px 0;
  background: #fff;
  border-radius: var(--cs-radius);
  margin: 8px 0;
}

/* Product card in cart */
#open-header-cart .fbc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#open-header-cart .product {
  display: grid !important;
  grid-template-columns: 64px 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px !important;
  margin: 0 !important;
  max-width: none !important;
  background: #fff;
  border-radius: var(--cs-radius);
  border: 1px solid var(--cs-border);
}

#open-header-cart .product > div {
  margin-right: 0 !important;
  width: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product image */
#open-header-cart .product > div:nth-child(1) {
  grid-column: 1;
}

#open-header-cart .product img:not(.ico) {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  border-radius: var(--cs-radius);
  background: var(--cs-bg);
  padding: 4px;
}

/* Product name */
#open-header-cart .product > div:nth-child(2) {
  grid-column: 2;
  justify-content: flex-start;
}

#open-header-cart .product a {
  color: var(--cs-text) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
}

#open-header-cart .product a:hover {
  color: var(--cs-green) !important;
}

/* Quantity */
#open-header-cart .product > div:nth-child(3) {
  grid-column: 3;
  font-size: 13px;
  color: var(--cs-text-light);
  white-space: nowrap;
}

/* Price */
#open-header-cart .product > div:nth-child(4) {
  grid-column: 4;
  font-size: 13px;
  font-weight: 600;
  color: var(--cs-text);
  white-space: nowrap;
}

/* Remove button */
#open-header-cart .product > div:nth-child(5) {
  grid-column: 5;
}

#open-header-cart .product button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#open-header-cart .product button:hover {
  background: #fee2e2;
}

#open-header-cart .product button img.ico {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

/* Totals */
#open-header-cart .total {
  max-width: none !important;
  padding: 0;
  background: #fff;
  border-radius: var(--cs-radius);
  border: 1px solid var(--cs-border);
  padding: 16px !important;
}

#open-header-cart .total > div:first-child {
  margin-bottom: 12px;
}

#open-header-cart .total .fbr {
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  display: flex;
}

#open-header-cart .total .button {
  margin-top: 8px;
}

#open-header-cart .total .button a {
  display: block;
  width: 100%;
  padding: 12px 24px !important;
  background: var(--cs-green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--cs-radius) !important;
  font-size: 14px !important;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  text-transform: none !important;
}

#open-header-cart .total .button a:hover {
  background: #2a9145 !important;
}

/* --- Search scroll lock --- */
body.cs-search-open {
  overflow: hidden;
}

/* --- MEGA MENU --- */
.cs-mega-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.cs-mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
  border-top: 1px solid var(--cs-border);
  border-radius: 0 0 var(--cs-radius) var(--cs-radius);
  background: #fff;
  z-index: 95;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  max-height: 70vh;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
}

.cs-mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s, transform 0.25s, visibility 0s 0s;
}

.cs-mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  min-height: 420px;
}

.cs-mega-cats {
  width: 280px;
  flex-shrink: 0;
  background: var(--cs-bg);
  border-right: 1px solid var(--cs-border);
  padding: 12px 0;
  overflow-y: auto;
}

.cs-mega-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: var(--cs-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.cs-mega-cat-item i {
  font-size: 14px;
  color: var(--cs-text-light);
}

.cs-mega-cat-item:hover,
.cs-mega-cat-item.active {
  background: #fff;
  color: var(--cs-green);
  text-decoration: none;
}

.cs-mega-cat-item.active {
  font-weight: 600;
  border-left-color: var(--cs-green);
}

.cs-mega-subcats {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
}

.cs-mega-subcat-panel {
  display: none;
}

.cs-mega-subcat-panel.active {
  display: block;
}

.cs-mega-subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}

.cs-mega-subcat-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cs-text);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.cs-mega-subcat-title:hover {
  color: var(--cs-green);
  text-decoration: none;
}

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

.cs-mega-subcat-list li {
  margin-bottom: 4px;
}

.cs-mega-subcat-list a {
  font-size: 13px;
  color: var(--cs-text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.cs-mega-subcat-list a:hover {
  color: var(--cs-green);
  text-decoration: none;
}

.cs-mega-see-all {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cs-green);
  border: 1px solid var(--cs-green);
  border-radius: var(--cs-radius);
  text-decoration: none;
  transition: all 0.2s;
}

.cs-mega-see-all:hover {
  background: var(--cs-green);
  color: #fff;
  text-decoration: none;
}

/* --- LIVE SEARCH RESTYLE --- */
.ui-autocomplete {
  background: #fff !important;
  border: 1px solid var(--cs-border) !important;
  border-radius: var(--cs-radius) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.14) !important;
  padding: 0 !important;
  max-height: 420px;
  overflow-y: auto;
  z-index: 9999 !important;
  list-style: none !important;
  font-family: 'Inter', sans-serif !important;
}

.ui-autocomplete .ui-menu-item {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  list-style: none !important;
  box-shadow: inset 0 -1px 0 var(--cs-border);
}

.ui-autocomplete .ui-menu-item:last-child {
  box-shadow: none;
}

.ui-autocomplete .ui-menu-item a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  color: var(--cs-text) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
  transition: background 0.15s !important;
  margin: 0 !important;
}

.ui-autocomplete .ui-menu-item a:hover,
.ui-autocomplete .ui-menu-item a.ui-state-focus,
.ui-autocomplete .ui-menu-item a.ui-state-hover,
.ui-autocomplete .ui-menu-item a.ui-state-active,
.ui-autocomplete .ui-state-hover,
.ui-autocomplete .ui-widget-content .ui-state-hover,
.ui-autocomplete .ui-widget-content .ui-state-focus,
.ui-autocomplete .ui-widget-header .ui-state-hover,
.ui-autocomplete .ui-widget-header .ui-state-focus {
  background: var(--cs-bg) !important;
  border: none !important;
  color: var(--cs-text) !important;
  font-weight: normal !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.ui-autocomplete .ui-menu-item img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  border-radius: var(--cs-radius) !important;
  flex-shrink: 0 !important;
  background: var(--cs-bg);
  padding: 3px;
}

.ui-autocomplete .ui-menu-item a > div {
  font-size: 12px;
  color: var(--cs-green);
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

/* "Show all" footer link */
.cs-search-show-all,
.cs-search-show-all:link,
.cs-search-show-all:visited,
.cs-search-show-all:active {
  display: block !important;
  padding: 12px 14px !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--cs-green) !important;
  text-decoration: none !important;
  transition: background 0.2s !important;
  border-radius: 0 0 var(--cs-radius) var(--cs-radius) !important;
  font-family: 'Inter', sans-serif !important;
  border: none !important;
  margin: 0 !important;
}

.cs-search-show-all:hover {
  background: #2a9145 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* --- MOBILE MENU --- */
.cs-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.cs-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cs-mobile-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 210;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}

.cs-mobile-menu.open {
  left: 0;
}

.cs-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cs-border);
  font-size: 16px;
  font-weight: 600;
  color: var(--cs-text);
}

.cs-mobile-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--cs-text-light);
  cursor: pointer;
}

.cs-mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.cs-mobile-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-mobile-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.cs-mobile-cat-row a {
  color: var(--cs-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.cs-mobile-expand {
  background: none;
  border: none;
  color: var(--cs-text-light);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: transform 0.2s;
}

.cs-mobile-cat-item.expanded .cs-mobile-expand i {
  transform: rotate(180deg);
}

.cs-mobile-subcats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  background: var(--cs-bg);
}

.cs-mobile-cat-item.expanded .cs-mobile-subcats {
  display: block;
}

.cs-mobile-subcats li {
  padding: 6px 20px 6px 32px;
}

.cs-mobile-subcats a {
  color: var(--cs-text-light);
  text-decoration: none;
  font-size: 13px;
}

.cs-mobile-subcats a:hover {
  color: var(--cs-green);
}

.cs-mobile-sub3 {
  padding-left: 44px !important;
}

.cs-mobile-info {
  border-top: 1px solid var(--cs-border);
  margin-top: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-mobile-info a {
  color: var(--cs-text-light);
  text-decoration: none;
  font-size: 13px;
}

.cs-mobile-info a:hover {
  color: var(--cs-green);
}

.cs-mobile-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--cs-text) !important;
}

/* Mobile burger */
.cs-mobile-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cs-text);
  font-size: 24px;
  flex-shrink: 0;
}

/* Mobile right group (burger + cart) */
.cs-header-mobile-right {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cs-mobile-cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--cs-text);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.cs-mobile-cart-icon:hover {
  background: var(--cs-bg);
  color: var(--cs-green);
}

.cs-mobile-cart-icon i {
  font-size: 22px;
}

/* --- RESPONSIVE --- */
/* Hide mobile-only elements on desktop */
.cs-mobile-search-close {
  display: none;
}

@media (max-width: 991px) {
  .cs-header-top-links {
    display: none;
  }

  .cs-header-top .cs-header-inner {
    justify-content: flex-end;
  }

  .cs-catalog-btn span {
    display: none;
  }

  .cs-catalog-btn {
    padding: 10px 14px;
  }
}

@media (max-width: 767px) {
  .cs-header-top {
    display: none;
  }

  .cs-header-main .cs-header-inner {
    height: 56px;
    gap: 6px;
  }

  .cs-header-logo img {
    max-height: 32px;
  }

  .cs-catalog-btn {
    display: none;
  }

  /* Search: collapsed to icon, expands on click */
  .cs-header-search {
    position: static;
    flex: 0 0 auto;
  }

  .cs-header-search #search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    z-index: 150;
    border: none !important;
    border-bottom: 2px solid var(--cs-green) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }

  .cs-header-search.cs-search-expanded #search {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .cs-header-search #search input[name="search"] {
    font-size: 16px !important;
    padding: 0 52px 0 16px !important;
    height: 56px !important;
    margin: 0 !important;
    border: none !important;
  }

  /* Hide search button on mobile — close button takes its spot */
  .cs-header-search #search .input-group-btn {
    display: none !important;
  }

  /* Mobile search close button */
  .cs-mobile-search-close {
    position: fixed;
    top: 0;
    right: 0;
    width: 48px;
    height: 56px;
    z-index: 152;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-bottom: 2px solid var(--cs-green);
    font-size: 22px;
    color: var(--cs-text-light);
    cursor: pointer;
    transition: color 0.2s;
  }

  .cs-mobile-search-close.visible {
    display: flex;
  }

  .cs-mobile-search-close:hover {
    color: var(--cs-text);
  }

  .cs-mobile-search-btn {
    display: flex !important;
  }

  /* Hide desktop icons, show mobile group */
  .cs-header-icons {
    display: none;
  }

  .cs-header-mobile-right {
    display: flex;
  }

  .cs-mobile-burger {
    display: flex;
  }

  .cs-mega-menu {
    display: none !important;
  }

  /* Cart: full width on mobile */
  #open-header-cart {
    width: 100vw !important;
  }

  /* Live search dropdown: full width */
  .ui-autocomplete {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
  }
}

@media (min-width: 768px) {
  .cs-header-mobile-right {
    display: none !important;
  }

  .cs-mobile-search-btn {
    display: none !important;
  }
}

/* Mobile search toggle button */
.cs-mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cs-text);
  font-size: 22px;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cs-mobile-search-btn:hover {
  background: var(--cs-bg);
  color: var(--cs-green);
}

/* Compare & Wishlist badges (same style as cart) */
.cs-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--cs-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}
.cs-badge:empty {
  display: none;
}

/* =====================================================
   CALLBACK POPUP
   ===================================================== */
.cs-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: csFadeIn 0.2s ease;
}

@keyframes csFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cs-popup-card {
  background: #fff;
  border-radius: var(--cs-radius, 12px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 420px;
  padding: 40px 32px 32px;
  position: relative;
  font-family: "Inter", sans-serif;
  animation: csSlideUp 0.25s ease;
}

@keyframes csSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cs-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  color: var(--cs-text-light, #888);
  transition: background 0.2s, color 0.2s;
}

.cs-popup-close:hover {
  background: #f0f0f0;
  color: var(--cs-text, #212121);
}

.cs-popup-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cs-green, #32a850);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.cs-popup-icon-success {
  background: var(--cs-green, #32a850);
}

.cs-popup-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--cs-text, #212121);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cs-popup-subtitle {
  font-size: 14px;
  color: var(--cs-text-light, #888);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.cs-popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-popup-field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--cs-border, #e0e0e0);
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: var(--cs-text, #212121);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.cs-popup-field input::placeholder {
  color: #aaa;
}

.cs-popup-field input:focus {
  border-color: var(--cs-green, #32a850);
  box-shadow: 0 0 0 3px rgba(50,168,80,0.12);
}

.cs-popup-submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--cs-green, #32a850);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

.cs-popup-submit:hover {
  background: #2a9244;
}

.cs-popup-submit:active {
  transform: scale(0.98);
}

.cs-popup-submit:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

.cs-popup-error {
  color: #dc3545;
  font-size: 13px;
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .cs-popup-card {
    padding: 32px 20px 24px;
    max-width: 100%;
  }
  .cs-popup-title {
    font-size: 20px;
  }
}

/* Mobile language switcher */
.cs-mobile-lang {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cs-border, #e8e8e8);
}
.cs-mobile-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cs-text-light, #666);
  background: var(--cs-bg, #f7f7f7);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cs-mobile-lang-link.active {
  background: var(--cs-green, #32a850);
  color: #fff;
}

