/* Qbit 2026 storefront layer. Visual only: loaded after style.css. */

:root {
  --qb-navy: #0e4568;
  --qb-navy-deep: #0a314c;
  --qb-orange: #e24a22;
  --qb-orange-deep: #c73c16;
  --qb-ink: #162033;
  --qb-muted: #5e6b7c;
  --qb-line: #e7ebf1;
  --qb-bg: #f5f7fa;
  --qb-surface: #ffffff;
  --qb-soft: #eef3f8;
  --qb-radius: 14px;
  --qb-radius-sm: 10px;
  --qb-shadow: 0 8px 22px rgba(16, 36, 58, 0.06);
  --qb-shadow-hover: 0 12px 28px rgba(16, 36, 58, 0.10);
  --qb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --qb-space: clamp(10px, 2.2vw, 20px);
  --qb-card-img: clamp(150px, 28vw, 200px);
}

/* Overscroll / 1px footer edge matches navy (avoids white hairline under footer) */
html {
  background-color: var(--qb-navy-deep) !important;
  background: var(--qb-navy-deep) !important;
}

body {
  background: var(--qb-bg);
  color: var(--qb-ink);
  font-family: "GT Eesti Pro Text", "Segoe UI", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

/* style.css uses inline-block footer → trailing gap / white edge artifact */
footer {
  display: block !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--qb-navy-deep) !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

a {
  color: inherit;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--qb-line);
}

.header_top {
  background: transparent;
  border-bottom: 1px solid var(--qb-line);
  padding: 4px 0;
}

.header_top_center,
.he_bot_a,
.p_number_ht,
.p_number_ht i,
.p_number_ht span {
  color: var(--qb-muted);
  font-size: 13px;
}

.he_bot_a:hover,
.menu_link_top:hover {
  color: var(--qb-orange);
}

.header_top_top {
  background: var(--qb-navy-deep);
  color: #fff;
}

.header_middle {
  background: transparent;
  padding: 10px 0 12px;
}

.header_middle .cd-dropdown-trigger {
  height: 44px;
  padding: 0 42px 0 16px;
  border-radius: 12px;
  background: var(--qb-navy);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 0.25s var(--qb-ease), transform 0.25s var(--qb-ease);
  display: inline-flex;
  align-items: center;
}

.header_middle .cd-dropdown-trigger:hover,
.header_middle .cd-dropdown-trigger.dropdown-is-active {
  background: var(--qb-orange);
}

.header-search,
.search-catalog__block {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dbe1ea;
  transition: border-color 0.25s var(--qb-ease), box-shadow 0.25s var(--qb-ease), background 0.25s var(--qb-ease);
  min-height: 44px;
  align-items: center;
}

.header-search:focus-within,
.search-catalog__block:focus-within {
  background: #fff;
  border-color: rgba(14, 69, 104, 0.4);
  box-shadow: 0 0 0 3px rgba(14, 69, 104, 0.08);
}

.search_input {
  background: transparent;
  border: 0;
  height: 42px;
  font-size: 14px;
  color: var(--qb-ink);
  font-family: inherit;
}

.search_input::placeholder {
  color: #8b95a5;
  opacity: 1;
}

/* Search submit: soft gray chip (screenshot 1) — not solid navy */
button.header-search__search-submit-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: #e8eef4;
  color: var(--qb-navy);
  transition: background 0.2s var(--qb-ease), color 0.2s var(--qb-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  margin: 2px;
}

button.header-search__search-submit-btn svg,
button.header-search__search-submit-btn path {
  fill: currentColor;
}

button.header-search__search-submit-btn img {
  display: block;
  filter: none;
  opacity: 0.9;
}

button.header-search__search-submit-btn:hover img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.header-search__voice-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7a8798;
  background: transparent;
  border: 0;
  flex: 0 0 auto;
}

.header-search__voice-btn:hover {
  color: var(--qb-navy);
}

/* Header action chips (login / favorites / cart) */
.header_middle .head_right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header_middle .head_pofile,
.header_middle .favorit.f_hed,
.header_middle .cart {
  min-height: 44px;
  border-radius: 12px;
  background: #eef2f6;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  box-sizing: border-box;
  transition: background 0.2s var(--qb-ease), border-color 0.2s var(--qb-ease);
  overflow: visible;
}

/* Kill nested gray box inside login chip (screenshot: double background) */
.header_middle .head_pofile .account,
.header_middle .head_pofile button.account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0;
  padding: 0;
  margin: 0;
  min-height: 44px;
  text-decoration: none !important;
  box-shadow: none;
  color: var(--qb-ink);
}

.header_middle .head_pofile .account_block {
  background: transparent !important;
  border-radius: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  gap: 10px;
  box-shadow: none;
  opacity: 1 !important;
}

.header_middle .head_pofile .account_block:hover {
  opacity: 1 !important;
}

.header_middle .head_pofile .bas,
.header_middle .head_pofile .cart_mod {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  color: var(--qb-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  padding-bottom: 2px; /* room for Armenian descenders (ք) */
  overflow: visible;
}

.header_middle .head_pofile .account_block img {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.header_middle .favorit.f_hed,
.header_middle .cart {
  width: 44px;
  padding: 0;
  background-color: #eef2f6 !important; /* override style.css tinted chips */
}

.header_middle .head_pofile:hover,
.header_middle .favorit.f_hed:hover,
.header_middle .cart:hover {
  background: #e5ebf2;
  border-color: #d5dde8;
}

button.header-search__search-submit-btn:hover {
  background: var(--qb-navy);
  color: #fff;
}

.head_right a,
.profile-menu__link {
  transition: color 0.2s var(--qb-ease);
}

/* Hero: equal-height main + side stack, 16px radius, slightly wider gutter */
.slider_big {
  gap: 16px;
  margin-top: 148px;
  align-items: stretch;
}

.slider_right,
#splide1 {
  border-radius: 16px;
  overflow: hidden;
  background: #e7edf3;
  box-shadow: var(--qb-shadow);
  min-height: 360px;
  height: 100%;
  flex: 1 1 auto;
  aspect-ratio: auto;
}

.slider_right .splide,
.slider_right .splide__track,
.slider_right .splide__list,
.slider_right .splide__slide {
  height: 100%;
}

.slider_right img,
#splide1 .splide__slide img {
  width: 100%;
  height: 100%;
  /* Banners: cover with centered crop — taller min-height reduces product clipping */
  object-fit: cover;
  object-position: center center;
  transition: transform 0.7s var(--qb-ease);
}

#splide1 .splide__slide:hover img {
  transform: scale(1.03);
}

.slid_info {
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.rms_a {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--qb-navy) !important;
  font-weight: 600;
}

.qbit_top_right {
  width: 24%;
  display: flex;
  align-self: stretch;
}

ul.qbit_top_right_ul {
  gap: 16px;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

ul.qbit_top_right_ul li {
  flex: 1 1 0;
  height: auto !important;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--qb-shadow);
}

ul.qbit_top_right_ul .h_b_img {
  height: 100% !important;
  border-radius: 16px;
  overflow: hidden;
}

.single-slide-link {
  display: flex;
  height: 100%;
  position: relative;
}

.h_b_img,
.h_b_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h_b_text_desc_qbit {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* Hero arrows — same contrast both sides (screenshot: left grey vs right black) */
.splide__arrow,
#splide1 .splide__arrow,
#splide1 .splide__arrow--prev,
#splide1 .splide__arrow--next,
.slider_right .splide__arrow {
  background: rgba(255, 255, 255, 0.94) !important;
  opacity: 1 !important;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 0;
  box-shadow: 0 6px 16px rgba(16, 36, 58, 0.16);
  transition: transform 0.2s var(--qb-ease), background 0.2s var(--qb-ease);
}

.splide__arrow:hover,
#splide1 .splide__arrow:hover,
.slider_right .splide__arrow:hover {
  background: var(--qb-navy) !important;
  transform: scale(1.04);
}

.splide__arrow svg,
#splide1 .splide__arrow svg,
.slider_right .splide__arrow svg {
  fill: var(--qb-navy) !important;
}

.splide__arrow:hover svg,
#splide1 .splide__arrow:hover svg,
.slider_right .splide__arrow:hover svg {
  fill: #fff !important;
}

.splide__arrow:disabled,
.splide__arrow.splide__arrow--disabled {
  opacity: 0.55 !important;
}

/* Homepage sections */
.container_home {
  padding-top: 8px;
}

.container_home_h1 {
  text-align: left;
  margin: 36px 0 18px;
}

.container_home h1,
.inner h2,
.inner h3,
.sop_pr_block h4,
.home_text h2 {
  color: var(--qb-ink);
  letter-spacing: -0.03em;
  font-weight: 650;
  line-height: 1.15;
}

.container_home h1 {
  font-size: clamp(28px, 3vw, 40px);
}

.container_home_h1 p {
  margin-top: 8px;
  max-width: 640px;
  color: var(--qb-muted);
  font-size: 16px;
  line-height: 1.5;
}

.top_cats {
  margin-top: 18px;
  padding-bottom: 8px;
}

.one_brand_home {
  width: 148px;
  height: 88px;
  margin: 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--qb-line);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.3s var(--qb-ease), box-shadow 0.3s var(--qb-ease), border-color 0.3s var(--qb-ease);
}

.one_brand_home:hover {
  border-color: transparent;
  box-shadow: var(--qb-shadow-hover);
  transform: translateY(-3px);
}

.cat_home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
  padding: 0;
  justify-content: stretch;
}

.hom_cat_new {
  width: auto;
  height: auto;
  min-height: 148px;
  background: var(--qb-surface);
  border: 1px solid var(--qb-line);
  border-radius: 20px;
  box-shadow: none;
  transition: transform 0.35s var(--qb-ease), box-shadow 0.35s var(--qb-ease), border-color 0.35s var(--qb-ease);
}

.hom_cat_new:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--qb-shadow-hover);
}

.cat_home a {
  gap: 12px;
  min-height: 148px;
  padding: 22px 14px;
}

.cat_home img {
  width: 64px;
  height: 64px;
  padding: 12px;
  object-fit: contain;
  background: var(--qb-soft);
  border-radius: 16px;
}

.inchvor_cat_home,
.hom_cat_new h2 {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--qb-ink);
  line-height: 1.3;
}

.inner_spec h3,
.inner h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 12px 0 16px;
}

/* Product grids — fluid columns across viewports */
.mec_divv.grid_veiw,
.mec_divv {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(8px, 1.4vw, 14px);
  width: 100%;
  max-width: 100%;
}

.sop_pr_block .grid_veiw,
.container_home .sop_pr_block .grid_veiw,
.grid_veiw {
  gap: clamp(8px, 1.4vw, 14px);
}

/* Product cards */
.cart_in_part {
  border: 1px solid var(--qb-line);
  border-radius: var(--qb-radius);
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.3s var(--qb-ease), border-color 0.3s var(--qb-ease);
}

.cart_in_part:hover {
  transform: none;
  border-color: rgba(14, 69, 104, 0.22);
  box-shadow: var(--qb-shadow-hover);
}

.sop_pr_block .grid_veiw,
.container_home .sop_pr_block .grid_veiw {
  border-radius: var(--qb-radius);
  border: 1px solid var(--qb-line);
  box-shadow: none;
}

.cart_in_part .cat_grid {
  padding: 12px 12px 14px;
  gap: 8px;
  box-sizing: border-box;
}

.cat_grid .image_cart_451,
.cart_in_part .pop_nkar_cat {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  border-radius: var(--qb-radius-sm);
  height: var(--qb-card-img);
  min-height: 140px;
}

.cart_in_part .pop_nkar_cat img,
.pop_nkar_cat img {
  height: calc(var(--qb-card-img) - 28px);
  max-height: 170px;
  width: auto;
  max-width: 88%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transition: transform 0.35s var(--qb-ease);
}

.cart_in_part:hover .pop_nkar_cat img {
  transform: scale(1.03);
}

.pr_single_name,
.cart_in_part .pr_single_name,
.cat_grid .pr_single_name a,
.cart_in_part a.pr_single_name {
  font-size: clamp(13px, 1.05vw, 14.5px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--qb-ink);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.7em;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pr_code {
  color: var(--qb-muted);
  font-size: 12px;
}

.for_new_price,
.for_new_price b {
  color: var(--qb-navy);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Quantity + CTA row on cards (screenshot 3) */
.cart_in_part .quantity-box {
  border-radius: 10px;
  border-color: #d5dde8;
  height: 40px;
  max-width: 100%;
}

.cart_in_part .spec452,
.cart_in_part .sho_hide {
  gap: 8px;
}

.cart_in_part .pr_code,
.cart_in_part .pr_code span {
  font-size: 12px;
  color: var(--qb-muted);
}

.for_old_price {
  color: #98a2b3;
  text-decoration: line-through;
  font-size: 13px;
}

.offerd_item,
.discount_count_cat span,
.new_bage,
.best_bage,
.patver_bage {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 8px;
}

.offerd_item,
.discount_count_cat span {
  background: var(--qb-orange);
  color: #fff;
}

.new_bage {
  background: var(--qb-navy);
  color: #fff;
}

.not_in_stock {
  background: #eef1f5;
  color: var(--qb-muted);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
}

/* Out-of-stock CTA + review line (screenshot: sharp flat grey block) */
button.not_in_stock_button,
a.not_in_stock_button,
.not_in_stock_button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d8dee8;
  border-radius: var(--qb-radius-sm);
  background: #eef2f6 !important;
  color: var(--qb-muted) !important;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  touch-action: manipulation;
  text-decoration: none !important;
  box-sizing: border-box;
}

.not_in_stock_button a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: auto;
}

button.not_in_stock_button:hover,
a.not_in_stock_button:hover,
.not_in_stock_button:hover {
  background: #e5ebf2 !important;
}

.cart_in_part .t7,
.cat_grid .t7 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--qb-muted);
  font-size: 12px;
  line-height: 1.3;
  margin: 4px 0 8px;
}

.cart_in_part .t7 img {
  width: 15px;
  height: 15px;
  opacity: 0.75;
  flex: 0 0 auto;
}

.ad_cart_button,
.ad_cart_button_fast,
.ad_cart_button_know,
.ad_cart_button_notify {
  min-height: 42px;
  height: auto;
  padding: 10px 12px;
  border-radius: var(--qb-radius-sm);
  background: var(--qb-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--qb-ease), transform 0.2s var(--qb-ease);
  touch-action: manipulation;
}

.ad_cart_button:hover,
.ad_cart_button_fast:hover,
.ad_cart_button_know:hover,
.ad_cart_button_notify:hover,
.ad_cart_button.in_cart {
  background: var(--qb-orange);
  color: #fff;
}

.ad_cart_button:active,
.header_middle .cd-dropdown-trigger:active,
button.header-search__search-submit-btn:active {
  transform: scale(0.98);
}

.add_favorite {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 36, 58, 0.12);
  transition: transform 0.2s var(--qb-ease);
}

.add_favorite:hover {
  transform: scale(1.08);
}

.product-card__fast-view {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--qb-navy);
  box-shadow: var(--qb-shadow);
}

/* Catalog, filters, paging */
.sort_select,
.catalog-sidebar__search input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
  border: 1px solid var(--qb-line);
  border-radius: 12px;
  background: #fff;
  color: var(--qb-ink);
  transition: border-color 0.2s var(--qb-ease), box-shadow 0.2s var(--qb-ease);
}

.sort_select:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(14, 69, 104, 0.45);
  box-shadow: 0 0 0 4px rgba(14, 69, 104, 0.08);
}

.paging,
.paging.current_page {
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--qb-line);
  background: #fff;
  color: var(--qb-ink);
}

.paging.current_page,
.paging:hover {
  background: var(--qb-navy);
  color: #fff;
  border-color: var(--qb-navy);
}

.filters_left_left,
.catalog-sidebar__search {
  background: #fff;
  border-radius: 16px;
}

/* Product and cart surfaces */
.cart_backround,
.cart_pr,
.pr_brand_img_title {
  background: #fff;
  border-radius: 20px;
}

.cart_pr {
  border: 1px solid var(--qb-line);
  padding: 12px;
  margin-bottom: 12px;
}

/* Footer */
footer,
.footer-colophon-wrapper,
.footer_bottom {
  background: var(--qb-navy-deep);
  color: #d5deea;
}

footer a,
.footer_det_links a,
.phonn p,
.p_number1,
.p_number1 i {
  color: #d5deea;
}

footer a:hover {
  color: #fff;
}

/* Icon-only social circles (footer social row). */
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--qb-ease), transform 0.2s var(--qb-ease);
}

.social-btn:hover {
  background: var(--qb-orange);
  transform: translateY(-2px);
}

/*
 * WhatsApp / Viber / Telegram are text+icon links (.social_obr), not icon-only
 * circles. Circling them clipped labels and left dark text on navy.
 */
.social_obr {
  width: auto !important;
  height: auto !important;
  min-height: 40px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(14, 69, 104, 0.08);
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--qb-ink) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  overflow: visible;
  transition: background 0.2s var(--qb-ease), color 0.2s var(--qb-ease), transform 0.2s var(--qb-ease);
}

.social_obr img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.social_obr:hover {
  background: rgba(14, 69, 104, 0.14);
  color: var(--qb-navy) !important;
  transform: translateY(-1px);
}

/* Dark footer / navy contact blocks need light labels. */
footer .obr_icons,
.footer_bottom .obr_icons,
.contact_i .obr_icons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

footer .social_obr,
.footer_bottom .social_obr,
.contact_i .social_obr,
footer .obr_icons a,
.contact_i .obr_icons a {
  width: auto !important;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  box-shadow: none;
  justify-content: flex-start;
}

footer .social_obr:hover,
.footer_bottom .social_obr:hover,
.contact_i .social_obr:hover {
  background: var(--qb-orange);
  color: #fff !important;
}

.copyright,
.right1,
.masterkassa,
.footer_bottom p,
.footer-colophon-wrapper p {
  color: #a8b6c8;
}

.copyright a,
.right1 a,
.masterkassa a {
  color: #8ec8ff;
}

.copyright a:hover,
.right1 a:hover,
.masterkassa a:hover {
  color: #fff;
}

.pr_right_side .ad_cart_button,
.qeek_add_cart .ad_cart_button,
.spec452 .ad_cart_button {
  background: var(--qb-navy);
  border-radius: 12px;
}

.pr_right_side .ad_cart_button:hover,
.qeek_add_cart .ad_cart_button:hover {
  background: var(--qb-orange);
}

.search_five_res:not(:has(*)) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

/* Floating controls */
.scrollup {
  width: 44px;
  height: 44px;
  bottom: 24px;
  right: max(16px, env(safe-area-inset-right, 0px));
  border: 0;
  border-radius: 14px;
  background: var(--qb-navy) url(/css/images/top.png) center no-repeat;
  background-size: 22px;
  color: #fff;
  box-shadow: var(--qb-shadow-hover);
  z-index: 80;
  display: none;
}

.scrollup:hover {
  background-color: var(--qb-orange);
  background-image: url(/css/images/top.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px;
}

/* Legacy floating WhatsApp button stays inactive/hidden until an approved business number is enabled. */
.whatsapp-button {
  display: none !important;
}

/* Keep Qbity above scroll-to-top; open panel already uses a higher z-index. */
.qbitik-root {
  z-index: 90;
}

.inner,
.cart_backround,
.filters_left_left,
.pr_brand_img_title {
  box-sizing: border-box;
}

.inner {
  padding-top: 12px;
}

#breadcrumbs,
.breadcrumbs,
.breadcrumb {
  color: var(--qb-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0 16px;
}

#breadcrumbs a:hover,
.breadcrumbs a:hover {
  color: var(--qb-orange);
}

.socials-item {
  border: 1px solid var(--qb-line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.socials-item-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.socials-item-messengers-image-wrapper img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--qb-soft);
  padding: 8px;
}

.w_tel,
.head_pofile .obr_icons,
.tooltip-profile .obr_icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Catalog filter sidebar — match clean reference layout */
.category_left .cat_pr_top_count,
.category_left .right_side_sec_finde {
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  white-space: normal;
}

.category_left .cat_pr_top_count b,
.category_left .cat_count_p {
  color: #111;
  font-weight: 700;
}

.category_left .trigle_switch {
  border-top: 0;
  border-bottom: 1px solid #eee;
  margin: 0 0 14px;
  padding: 4px 0 10px;
  background: transparent;
}

.category_left .trigle_switch_tog {
  margin: 8px 0;
  align-items: center;
}

.category_left .trigle_switch_tog p {
  margin: 0;
  color: #333;
  font-size: 14px;
}

.category_left .price_filter,
.category_left .podborki_brand,
.category_left .notes_filter,
.category_left .house_section1,
.category_left .colors_filter {
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid #eee;
  background: transparent;
}

.category_left .attr_title,
.category_left .podborki_title_name_brand {
  color: #111;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}

.category_left .range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category_left .val-placeholder {
  flex: 1 1 0;
  min-width: 0;
}

.category_left input.slider-min-val,
.category_left input.slider-max-val {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 14px;
  line-height: 1.2;
}

.category_left .minus_valu {
  flex: 0 0 auto;
  color: #9aa3b2;
}

.category_left .catalog-sidebar__search {
  margin-bottom: 10px;
}

.category_left .catalog-sidebar__search input {
  height: 40px;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  color: #333;
  background: #fff;
}

.category_left .podborki_values_items_brand {
  max-height: 280px;
  overflow-y: auto;
  border-top: 1px solid #eee;
}

.category_left .podborki_values_items_name_brand,
.sidenav .podborki_values_items_name_brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  height: auto;
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
  box-shadow: none;
  transform: none;
}

.category_left .podborki_values_items_name_brand:hover,
.sidenav .podborki_values_items_name_brand:hover {
  border-color: #eee;
  box-shadow: none;
  transform: none;
  background: #fafbfc;
}

.category_left .podborki_values_items_name_brand > button:first-of-type,
.sidenav .podborki_values_items_name_brand > button:first-of-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 4px 2px;
  text-align: left;
}

.category_left .podborki_values_items_name_brand span,
.sidenav .podborki_values_items_name_brand span {
  font-size: 13px;
  color: #222;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

/* Fixed logo slot so mixed brand assets align (screenshot 3) */
.category_left .podborki_values_items_name_brand img,
.sidenav .podborki_values_items_name_brand img {
  flex: 0 0 72px;
  width: 72px;
  height: 28px;
  max-width: 72px;
  max-height: 28px;
  object-fit: contain;
  object-position: right center;
}

/* Filter checkboxes — tighter label gap (screenshot: checkbox + text) */
.category_left .myCheckbox,
.sidenav .myCheckbox {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 6px 2px;
  min-height: 40px;
  box-sizing: border-box;
}

.category_left .myCheckbox span,
.sidenav .myCheckbox span {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #c9d0da;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.category_left .myCheckbox em,
.sidenav .myCheckbox em,
.house_category_content12 .myCheckbox em {
  width: auto;
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #222;
}

.category_left .myCheckbox input:checked + span,
.sidenav .myCheckbox input:checked + span {
  background-color: var(--qb-navy);
  border-color: var(--qb-navy);
}

/* Mobile filter drawer only (#mySidenav) — screenshot 4 */
@media (max-width: 850px) {
  /* Closed: no padding/border (padding was leaking a ~22px left strip) */
  #mySidenav.category_left,
  #mySidenav.sidenav {
    background: #f7f8fa;
    padding: 0;
    border: 0;
    box-sizing: border-box;
  }

  /* Open: JS sets style.width = "100%" — restore drawer padding then */
  #mySidenav.sidenav[style*="100%"],
  #mySidenav.category_left[style*="100%"] {
    padding: 0 10px 24px;
  }

  #mySidenav .modal__header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 6px 12px;
    background: #fff;
    border-bottom: 1px solid var(--qb-line);
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 -10px 8px;
    padding-left: 16px;
    padding-right: 12px;
  }

  #mySidenav .b-modal__header {
    font-size: 18px;
    font-weight: 700;
    color: var(--qb-ink);
  }

  #mySidenav .closebtn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 28px;
    line-height: 1;
    color: #445;
    background: transparent;
    position: static;
    margin: 0;
  }

  #mySidenav .trigle_switch,
  #mySidenav .price_filter,
  #mySidenav .podborki_brand,
  #mySidenav .house_section1,
  #mySidenav .colors_filter,
  #mySidenav .notes_filter {
    background: #fff;
    margin: 0 0 10px;
    padding: 12px 14px;
    border-bottom: 0;
    border-radius: 12px;
  }

  #mySidenav .cat_pr_top_count,
  #mySidenav .right_side_sec_finde {
    margin: 4px 4px 12px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 13px;
  }

  #mySidenav .trigle_switch_tog {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  #mySidenav .switch {
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
  }

  #mySidenav .slider:before {
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
  }

  #mySidenav input:checked + .slider {
    background-color: var(--qb-navy);
  }

  #mySidenav input:checked + .slider:before {
    transform: translateX(20px);
  }

  #mySidenav .podborki_values_items_name_brand {
    min-height: 52px;
  }

  #mySidenav .myCheckbox {
    min-height: 44px;
    gap: 8px;
  }

  #mySidenav input.slider-min-val,
  #mySidenav input.slider-max-val {
    min-height: 42px;
    font-size: 15px;
  }
}

.w_t_a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--qb-soft);
  color: var(--qb-ink);
  font-size: 13px;
  line-height: 1.2;
}

.w_t_a:hover {
  background: rgba(14, 69, 104, 0.12);
  color: var(--qb-navy);
}

.no_cart_items,
.empaty_cart_image,
.emp_text,
.emp_text2 {
  text-align: center;
}

.no_cart_items a {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--qb-navy);
  color: #fff !important;
  font-weight: 650;
}

.no_cart_items a:hover {
  background: var(--qb-orange);
}

/* Entrance motion, applied by qbit-2026.js */
.qb-rise {
  animation: qb-rise 0.6s var(--qb-ease) both;
}

@keyframes qb-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .cat_home {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .header_top {
    display: none;
  }

  .header_middle {
    padding: 8px 0 10px;
  }

  /* Desktop header shell at tablet/phone widths: logo row + full-width search */
  .header_middle .wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "left right"
      "search search";
    align-items: center;
    gap: 10px 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .header_middle .header_left {
    grid-area: left;
    min-width: 0;
  }

  .header_middle .header-item-left_mix {
    display: contents;
  }

  .header_middle .head_right {
    grid-area: right;
    width: auto !important;
    gap: 10px;
    justify-content: flex-end;
  }

  .header_middle .header-search,
  .header_middle .search-catalog__block {
    grid-area: search;
    width: 100%;
    min-width: 0;
  }

  .header_middle .search_input {
    width: 100%;
    min-width: 0;
  }

  .header_middle .cd-dropdown-trigger {
    height: 40px;
    padding: 0 36px 0 14px;
    font-size: 14px;
  }
}

@media (max-width: 850px) {
  /* Product sticky title fought the sticky header/search on mobile. */
  .sticky_title {
    position: static !important;
    height: auto !important;
    width: auto !important;
    padding-left: 0 !important;
    margin: 8px 0 12px !important;
  }

  .sticky_title h1 {
    font-size: clamp(20px, 5.4vw, 26px);
    line-height: 1.25;
    padding-right: 8px;
  }

  /* Mobile Detect header: logo/icons row 1, full-width search row 2 */
  body {
    overflow-x: hidden;
  }

  .header {
    z-index: 10040;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px;
    backdrop-filter: none;
  }

  .header-item-left {
    order: 1;
    flex: 0 0 auto;
    min-width: 0;
    gap: 10px;
  }

  .header .brand {
    display: inline-flex;
    align-items: center;
  }

  .header .log_top_name {
    max-width: none;
    overflow: visible;
  }

  .header_middle,
  .header-search,
  .search-catalog__block,
  .head_right {
    position: relative;
    z-index: 2;
  }

  /* Only the Mobile_Detect header has .head_right as a direct child. */
  .header > .head_right {
    display: contents;
    width: auto !important;
  }

  .header > .header-item-left + .head_right,
  .header #mobileheader {
    order: 2;
  }

  .header #mobileheader {
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  .header .favorit.f_hed,
  .header .head_right > .cart {
    display: flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
  }

  .header .favorit.f_hed {
    order: 3;
  }

  .header .head_right > .cart {
    order: 4;
  }

  /* Mobile header icons are white SVGs on a white bar — darken them. */
  .header .favorit.f_hed img,
  .header .head_right > .cart img {
    filter: invert(1) brightness(0.18);
  }

  .header .head_right .mobile_hide {
    order: 10;
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
  }

  .header_middle .head_right {
    display: flex !important;
    width: auto !important;
  }

  .cd-dropdown-trigger_search {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--qb-soft);
    color: var(--qb-muted);
    font-size: 14px;
    gap: 8px;
  }

  span.mob_search_t {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hero: full-width slider, promos stacked below (not a cramped side column).
     Header is fixed and now two rows (icons + search), so clear both. */
  .slider_big {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 122px;
    margin-bottom: 4px;
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    max-width: 100%;
  }

  .slider_right,
  #splide1 {
    width: 100% !important;
    flex: none;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 16px;
    background: transparent;
    box-shadow: var(--qb-shadow);
  }

  .slider_right .splide,
  .slider_right .splide__track,
  .slider_right .splide__list,
  .slider_right .splide__slide {
    height: auto !important;
  }

  .slider_right img,
  #splide1 .splide__slide img {
    width: 100%;
    height: auto !important;
    max-height: none;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    display: block;
  }

  #splide1 .splide__pagination {
    bottom: 10px;
  }

  #splide1 .splide__arrow {
    display: none;
  }

  .qbit_top_right {
    display: block !important;
    width: 100% !important;
    align-self: stretch;
  }

  ul.qbit_top_right_ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    height: auto;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  ul.qbit_top_right_ul li {
    height: auto !important;
    min-height: 120px;
    border-radius: 16px;
  }

  ul.qbit_top_right_ul .h_b_img {
    height: 140px !important;
    border-radius: 16px;
  }

  .h_b_text_desc_qbit {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .h_b_title_qbit {
    font-size: 13px;
    line-height: 1.25;
  }

  .h_b_desc_qbit {
    display: none;
  }

  /* Brands: no clipped first/last cards, no page overflow */
  .top_cats {
    margin-top: 12px;
    padding: 0 12px 4px;
    overflow: hidden;
  }

  #splide_brands {
    padding: 0;
  }

  #splide_brands .splide__track {
    overflow: hidden;
  }

  .one_brand_home {
    width: 118px;
    height: 70px;
    margin: 0 6px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
  }

  #splide_brands .splide__list {
    padding-right: 16px;
  }

  #splide_brands .splide__arrows,
  #splide_brands .splide__pagination {
    display: none;
  }

  .hom_cat_new h2 {
    font-size: 13px;
    line-height: 1.25;
  }

  .container_home,
  .inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cat_home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hom_cat_new,
  .cat_home a {
    min-height: 124px;
  }

  .container_home h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .container_home_h1 p {
    font-size: 14px;
    line-height: 1.45;
  }

  .cart_in_part:hover {
    transform: none;
  }

  .scrollup {
    bottom: 18px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .w_tel,
  .obr_icons,
  .socials-item-messengers {
    gap: 8px;
  }

  .socials-item {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 8px 10px;
  }

  .slider_big {
    margin-top: 128px;
  }

  .slider_big,
  .container_home,
  .inner,
  .top_cats {
    padding-left: 10px;
    padding-right: 10px;
  }

  ul.qbit_top_right_ul .h_b_img,
  ul.qbit_top_right_ul li {
    min-height: 120px;
    height: 120px !important;
  }

  .h_b_desc_qbit {
    display: block;
    font-size: 12px;
    opacity: 0.92;
  }

  .one_brand_home {
    width: 108px;
    height: 64px;
    margin: 0 5px 0 0;
    padding: 10px 12px;
  }

  .container_home h1 {
    font-size: 22px;
    line-height: 1.25;
  }

  .container_home_h1 {
    margin: 22px 0 14px;
  }

  .container_home_h1 p {
    font-size: 14px;
  }
}

/* Mid-width phones can keep two compact promo tiles */
@media (min-width: 520px) and (max-width: 850px) {
  ul.qbit_top_right_ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  ul.qbit_top_right_ul .h_b_img,
  ul.qbit_top_right_ul li {
    min-height: 112px;
    height: 112px !important;
  }

  .h_b_desc_qbit {
    display: none;
  }
}

/* —— Extra responsive polish (2026) —— */

.category_top_side h1,
.cat_top_spec_top h1 {
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  color: var(--qb-ink);
  line-height: 1.25;
}

#breadcrumbs,
.breadcrumbs {
  font-size: 13px;
  color: var(--qb-muted);
  margin: 8px 0 14px;
  overflow-wrap: anywhere;
}

.cat_pr_top_count {
  color: var(--qb-muted);
  font-size: 14px;
}

.cart_backround,
.pr_brand_img_title {
  border-radius: var(--qb-radius);
  border: 1px solid var(--qb-line);
  background: #fff;
}

.pr_right_side .ad_cart_button,
.qeek_add_cart .ad_cart_button {
  min-height: 46px;
  border-radius: var(--qb-radius-sm);
}

.wrapper,
.container,
.container_home,
.inner {
  max-width: 100%;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* Image containment / CLS reduction storewide */
.pop_nkar_cat,
.cat_grid .image_cart_451,
.h_b_img,
.hom_cat_new .hom_cat_img,
.one_brand_home span {
  overflow: hidden;
}

.pop_nkar_cat img,
.cat_grid .image_cart_451 img,
.hom_cat_new img,
.one_brand_home img {
  object-fit: contain;
  object-position: center;
}

.slider_right img,
#splide1 .splide__slide img,
.h_b_img img {
  object-fit: cover;
  object-position: center;
}

/* Keep content-visibility off product cards: it can leave images blank
   while scrolling / after AJAX insert in some Chromium builds. */
.hom_cat_new,
.one_brand_home,
.socials-item {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

/* Large desktops: keep comfortable card density */
@media (min-width: 1440px) {
  .mec_divv.grid_veiw,
  .mec_divv {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .mec_divv.grid_veiw,
  .mec_divv {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 1024px) {
  .mec_divv.grid_veiw,
  .mec_divv {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .category_left {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .mec_divv.grid_veiw,
  .mec_divv {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
  }

  .cat_grid .image_cart_451,
  .cart_in_part .pop_nkar_cat {
    height: clamp(140px, 36vw, 180px);
  }

  .cart_in_part .pop_nkar_cat img,
  .pop_nkar_cat img {
    height: clamp(110px, 28vw, 150px);
  }

  .ad_cart_button,
  .ad_cart_button_fast,
  .ad_cart_button_know,
  .ad_cart_button_notify {
    min-height: 44px;
    font-size: 12.5px;
  }
}

@media (max-width: 768px) {
  .category_left_right {
    gap: 0;
  }

  .cat_list_right {
    width: 100%;
  }

  .sort_select {
    min-height: 42px;
    width: 100%;
    max-width: 100%;
  }

  .mob_cat_left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--qb-radius-sm);
    background: var(--qb-soft);
    border: 1px solid var(--qb-line);
  }
}

@media (max-width: 480px) {
  .mec_divv.grid_veiw,
  .mec_divv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cart_in_part .cat_grid {
    padding: 10px 8px 12px;
  }

  .pr_single_name,
  .cart_in_part .pr_single_name,
  .cat_grid .pr_single_name a {
    font-size: 12.5px;
    min-height: 2.6em;
  }

  .for_new_price,
  .for_new_price b {
    font-size: 15px;
  }

  .cat_grid .image_cart_451,
  .cart_in_part .pop_nkar_cat {
    height: 132px;
  }

  .cart_in_part .pop_nkar_cat img,
  .pop_nkar_cat img {
    height: 108px;
    max-height: 108px;
  }
}

/* Very narrow phones: one full-width product column (avoids ~160–196px squeezed cards) */
@media (max-width: 400px) {
  .mec_divv.grid_veiw,
  .mec_divv {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 360px) {
  .mec_divv.grid_veiw,
  .mec_divv {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cat_home {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .header {
    padding: 8px;
  }

  .slider_big {
    margin-top: 120px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 320px) {
  .container_home,
  .inner,
  .slider_big,
  .top_cats {
    padding-left: 8px;
    padding-right: 8px;
  }

  .ad_cart_button,
  .ad_cart_button_fast {
    font-size: 12px;
    padding: 9px 8px;
  }
}

/* Safe areas for notched phones */
@supports (padding: max(0px)) {
  .header {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .scrollup {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .cart_in_part:hover,
  .hom_cat_new:hover,
  .one_brand_home:hover,
  #splide1 .splide__slide:hover img,
  .cart_in_part:hover .pop_nkar_cat img {
    transform: none;
  }
}

/* =========================================================
   Screenshot-aligned storewide polish (refs 1–4)
   ========================================================= */

/* Search submit: soft gray chip like screenshot 1 (not solid navy fill) */
button.header-search__search-submit-btn {
  background: #e8eef4;
  color: var(--qb-navy);
  border: 0;
}

button.header-search__search-submit-btn:hover {
  background: var(--qb-navy);
  color: #fff;
}

button.header-search__search-submit-btn svg,
button.header-search__search-submit-btn path {
  fill: currentColor;
}

/* Brand filter rows — less cramped, consistent logo box (screenshot 3) */
.category_left .podborki_values_items_name_brand,
.sidenav .podborki_values_items_name_brand,
.podborki_values_items_name_brand {
  min-height: 52px;
  padding: 8px 6px;
}

.category_left .podborki_values_items_name_brand > button:first-of-type,
.sidenav .podborki_values_items_name_brand > button:first-of-type {
  min-height: 48px;
}

.category_left .podborki_values_items_name_brand img,
.sidenav .podborki_values_items_name_brand img,
.podborki_values_items_name_brand img {
  width: 72px;
  height: 28px;
  max-width: 72px;
  max-height: 28px;
  object-fit: contain;
  object-position: right center;
  flex: 0 0 72px;
}

.category_left .attr_title,
.category_left .attr_title p,
.sidenav .attr_title,
.sidenav .attr_title p {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--qb-ink);
}

.category_left .house_section1.colors_filter,
.category_left .house_section1,
.sidenav .house_section1 {
  padding-top: 4px;
}

.category_left .house_category_content12,
.sidenav .house_category_content12 {
  gap: 2px;
}

/* Toggle switches — screenshot 4 */
.category_left .switch,
.sidenav .switch,
.trigle_switch .switch {
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
}

.category_left .slider:before,
.sidenav .slider:before,
.trigle_switch .slider:before {
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
}

.category_left input:checked + .slider,
.sidenav input:checked + .slider,
.trigle_switch input:checked + .slider {
  background-color: var(--qb-navy);
}

.category_left input:checked + .slider:before,
.sidenav input:checked + .slider:before,
.trigle_switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Category layout polish — desktop sidebar chrome only (NOT #mySidenav) */
.category_left_right {
  gap: clamp(12px, 2vw, 24px);
  align-items: flex-start;
}

.category_left:not(.sidenav):not(#mySidenav) {
  background: #fff;
  border-radius: var(--qb-radius);
  border: 1px solid var(--qb-line);
  padding: 12px 14px 16px;
  box-sizing: border-box;
}

.cat_list_right {
  min-width: 0;
  flex: 1 1 auto;
}

.cat_top {
  margin-bottom: 12px;
  gap: 10px;
}

/* Product cards storewide (home, category, search, brands) */
.cart_in_part .t_code_cat,
.cart_in_part .t_code_cat span {
  color: var(--qb-muted);
  font-size: 12px;
}

.cart_in_part .quantity {
  width: 100%;
  max-width: 100%;
}

.cart_in_part .quantity-box {
  border-radius: 10px;
  border: 1px solid #d5dde8;
  height: 40px;
  overflow: hidden;
}

.grid_veiw_list .cart_in_part {
  border-radius: var(--qb-radius);
  border: 1px solid var(--qb-line);
}

/* Product detail purchase block */
.pr_right_side,
.pr_right_side_inside,
.sticky_buy {
  border-radius: var(--qb-radius);
}

.pr_right_side .ad_cart_button,
.qeek_add_cart .ad_cart_button,
.sticky_buy .ad_cart_button {
  min-height: 46px;
  border-radius: var(--qb-radius-sm);
}

/* Brand / search / cart surfaces */
.cat_list_right_brend .cart_in_part,
.search_five_res .cart_in_part,
.parfumer_section .cart_in_part {
  border-radius: var(--qb-radius);
}

.cart_backround,
.prais-header,
.socials-item {
  border-radius: var(--qb-radius);
}

/* Footer must stay full-bleed — rounded wrapper caused white side strips on mobile */
.footer-colophon-wrapper,
footer .wrapper {
  border-radius: 0;
}

.price-button a {
  border-radius: var(--qb-radius-sm);
  background: var(--qb-navy);
  transition: background 0.2s var(--qb-ease);
}

.price-button a:hover {
  background: var(--qb-orange);
}

/* Desktop hero: keep side column visually locked to slider height */
@media (min-width: 851px) {
  .slider_big {
    align-items: stretch;
  }

  .slider_right,
  #splide1 {
    min-height: 380px;
  }

  ul.qbit_top_right_ul {
    min-height: 380px;
  }
}

@media (min-width: 1280px) {
  .slider_right,
  #splide1,
  ul.qbit_top_right_ul {
    min-height: 420px;
  }
}

/* Tablet category: full-width list, filter via drawer */
@media (max-width: 1024px) {
  .category_left:not(#mySidenav) {
    border-radius: var(--qb-radius);
  }
}

@media (max-width: 850px) {
  /*
   * Mobile full-width shell:
   * - style.css .cat_list_right { width: 77% } is desktop sidebar ratio
   * - closed #mySidenav must not keep card padding (left strip)
   * Do NOT set width:0 !important on #mySidenav — openNav() sets inline width:100%
   */
  .category_left_right {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .cat_list_right,
  .cat_list_right_brend {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    float: none !important;
  }

  .category_left:not(#mySidenav) {
    display: none !important;
  }

  .pr_right_side .ad_cart_button,
  .sticky_buy .ad_cart_button {
    width: 100%;
  }

  /* Header / page shells use full viewport */
  .header,
  .header_middle,
  .header .wrapper,
  .header_middle .wrapper,
  .header_middle .container,
  .container,
  .container_home,
  .footer-colophon-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .header_middle .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .header .wrapper,
  .header_middle .wrapper {
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .cart_in_part .quantity-box {
    height: 38px;
  }

  .category_left .podborki_values_items_name_brand img,
  .sidenav .podborki_values_items_name_brand img {
    width: 64px;
    max-width: 64px;
    flex-basis: 64px;
  }
}

/* =========================================================
   Mobile footer / contact block (screenshot: white left strip,
   cramped hours, left-only WhatsApp/Viber)
   ========================================================= */
/* Contain off-canvas Splide tracks so they don't inflate page scroll width */
.splide,
.splide__track,
.top_cats,
.home_img_right,
.slider_big {
  max-width: 100%;
}

.splide__track {
  overflow: hidden;
}

@media (max-width: 850px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: none;
  }

  footer {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: var(--qb-navy-deep);
    overflow-x: hidden;
  }

  footer .footer-colophon-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 16px 20px;
    box-sizing: border-box;
    border-radius: 0;
  }

  footer .fottww,
  footer .footer_bottom,
  footer .contact_i,
  footer .footer_det_links_big,
  footer .copyright,
  footer .copy_middle {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  footer .footer_bottom {
    padding: 8px 0 0;
    background: transparent;
  }

  footer .ph_verev {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0 4px;
  }

  footer .phonn p {
    font-size: 16px;
    line-height: 1.4;
    margin: 2px 0;
  }

  footer .p_number1 {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
    font-size: 13px;
    padding: 0 4px;
    box-sizing: border-box;
  }

  footer .p_number1 i {
    display: inline;
    margin-right: 4px;
  }

  footer .obr_icons,
  footer .contact_i .obr_icons,
  footer .footer_bottom .obr_icons {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
  }

  footer .social_obr {
    min-height: 44px;
    padding: 10px 16px 10px 12px;
    font-size: 14px;
    justify-content: center;
  }

  footer .social-btn-row {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0 8px;
  }

  footer .social-btn {
    width: 44px;
    height: 44px;
  }

  footer .footer_det_links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 12px 0 24px;
    padding: 0 8px;
  }

  footer .footer_det_links a {
    font-size: 15px;
    line-height: 1.4;
    padding: 4px 0;
    text-align: center;
  }

  footer .payments-col {
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  footer .icon-btns-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  footer .masterkassa,
  footer .right1 {
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Keep sticky header from creating a side gutter over footer */
  .header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
}

@media (max-width: 390px) {
  footer .footer-colophon-wrapper {
    padding: 14px 12px 18px;
  }

  footer .social_obr {
    flex: 1 1 calc(50% - 10px);
    max-width: 160px;
  }
}

/* =========================================================
   Screenshot follow-ups (CSS only)
   - Footer white hairline under copyright
   - Mobile category left clipping / tight gutters
   - Qbitik overlapping quantity controls
   ========================================================= */

footer .copyright,
footer .copy_middle,
footer .right1 {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

footer .right1 {
  margin-bottom: 0 !important;
  padding-bottom: 24px;
}

footer .copyright {
  padding-bottom: 8px;
}

@media (max-width: 850px) {
  /* Category / listing gutters — pad page shell only (avoid stacked padding) */
  .container,
  .inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    overflow-x: hidden;
  }

  .cat_list_right,
  .cat_list_right_brend,
  .category_left_right,
  .cat_prods_block {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }

  .mec_divv {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding-bottom: 120px; /* room above Qbitik */
  }

  .cat_top {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
    gap: 10px;
  }

  .cart_in_part {
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    overflow: hidden;
  }

  .cart_in_part .cat_grid,
  .cart_in_part .pr_single_name,
  .cart_in_part .pr_code,
  .cart_in_part .t_code_cat,
  .cart_in_part .quantity,
  .cart_in_part .ad_cart_button,
  .cart_in_part .not_in_stock_button {
    max-width: 100%;
    box-sizing: border-box;
  }

  .cart_in_part .pr_single_name,
  .cart_in_part .pr_code,
  .cart_in_part .t_code_cat {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Qbitik positioning/sizing stays in qbitik.css — do not override here. */

  .scrollup {
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    z-index: 80;
  }

  /* Product detail purchase block — stay under sticky header, don't spill */
  .sticky_buy,
  .pr_right_side,
  .qeek_add_cart {
    max-width: 100%;
    box-sizing: border-box;
  }

  .sticky_buy {
    position: relative;
    z-index: 2;
    width: 100% !important;
    margin: 12px 0 24px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--qb-line);
    border-radius: var(--qb-radius);
    box-sizing: border-box;
  }

  .sticky_buy .ad_cart_button,
  .pr_right_side .ad_cart_button {
    width: 100% !important;
  }

  .header {
    z-index: 10040;
  }
}

@media (max-width: 480px) {
  .container,
  .inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
