/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* ---------- Themes ---------- */
:root[data-theme="light"] {
  --bg: #FFF;
  --surface: #F5F5F5;
  --border: #F0F0F0;
  --text: #111;
  --muted: #666;
}
:root[data-theme="dark"] {
  --bg: #0F1115;
  --surface: #161A22;
  --border: #2A3142;
  --text: #E7ECF3;
  --muted: #9AA3B2;
}
/* ---------- Page skeleton ---------- */
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 11px;
  background: var(--bg);
  color: var(--text);
  /* добавя място отдолу = височината на footer-а, така че при скрол до края той се разкрива */
  padding-bottom: var(--footer-h, 0px);
}
.xt_site-header { flex: 0 0 auto; }
.xt_site-main {
  flex: 1 1 auto;
  width: 100%;
  background: var(--bg); /* непрозрачен фон, за да покрива footer-а зад себе си */
  position: relative;
  z-index: 1;
}
.xt_site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  /* footer-ът е fixed зад main; "разкрива се" когато скролираме до самия край */
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 0;
  width: 100%;
}
/* ---------- Header bars ---------- */
.xt_site-header { font-size: 13px; }
.xt_header-info,
.xt_header-actions,
.xt_header-menu {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
/* header_info — тъмна лента, бял текст */
.xt_header-info {
  background: #1A1A1A;
  color: #FFF;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 6px;
  padding: 6px 12px;
  border-bottom: 0;
}
.xt_hi-left,
.xt_hi-right { display: flex; align-items: center; flex-wrap: wrap; }
.xt_hi-left { gap: 14px; }
.xt_hi-right { gap: 8px; margin-left: auto; }
.xt_hi-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.xt_hi-item .xt_ico { font-size: 16px; line-height: 1; }
.xt_hi-item.xt_phone .xt_ico { color: #E53935; }
.xt_hi-item.xt_phone .xt_val { color: #FFF; font-weight: 700; }
.xt_hi-item.xt_mail .xt_ico {
  color: #2196F3;
  display: inline-flex;
  align-items: center;
  height: 16px;
  font-size: 24px;
  line-height: 0;
  transform: translateY(-2px);
}
.xt_hi-item.xt_mail .xt_val,
.xt_hi-item.xt_mail .xt_val:visited { color: #FFF; text-decoration: none; font-weight: 700; font-size: 14px; }
.xt_hi-item.xt_mail .xt_val:hover { color: #2196F3; }
.xt_hi-right a {
  color: #888;
  text-decoration: none;
  font-weight: 400;
}
.xt_hi-right a:hover { color: #FFF; }
.xt_hi-right a.xt_login { color: #FFF; font-weight: 700; }
.xt_hi-right .xt_sep { color: #555; }
:root[data-theme="dark"] .xt_header-info { background: #0A0C10; }
/* ---------- header_actions ---------- */
.xt_header-actions {
  gap: 16px;
  padding: 10px 16px;
  background: var(--bg);
  flex-wrap: nowrap;
  border-bottom: 0; /* без разделител между actions и menu */
}
.xt_ha-search { min-width: 0; }
/* позволяваме да се свива */
.xt_site-header {
  transition: opacity .16s ease, visibility .16s ease;
}
body.xt_search-docked .xt_site-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.xt_nav-open.xt_search-docked .xt_site-header,
body.xt_nav-closing.xt_search-docked .xt_site-header {
  opacity: 1;
  visibility: visible;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
body.xt_nav-open.xt_search-docked .xt_header-info,
body.xt_nav-open.xt_search-docked .xt_header-actions,
body.xt_nav-closing.xt_search-docked .xt_header-info,
body.xt_nav-closing.xt_search-docked .xt_header-actions {
  display: none;
}
body.xt_nav-open.xt_search-docked .xt_nav-overlay,
body.xt_nav-open.xt_search-docked .xt_header-menu.xt_nav,
body.xt_nav-closing.xt_search-docked .xt_nav-overlay,
body.xt_nav-closing.xt_search-docked .xt_header-menu.xt_nav {
  pointer-events: auto;
}
.xt_header-sticky-search {
  position: fixed;
  inset: 0 0 auto;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(17, 24, 39, .08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.xt_search-docked .xt_header-sticky-search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.xt_header-sticky-search .xt_ha-search {
  flex: 1 1 auto;
  width: 100%;
}
/* Старото мобилно разпадане, изнесено да започва от 850px */
@media (max-width: 850px) {
  .xt_header-actions {
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
  }
  .xt_ha-burger,
  .xt_ha-logo,
  .xt_ha-actions {
    order: 1;
  }
  .xt_ha-search {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
  }
  .xt_ha-actions { margin-left: auto; }
}
/* ≤500px — само burger + logo на 1 ред; сърча и actions на свои редове */
@media (max-width: 500px) {
  .xt_ha-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
}
/* ---------- header_menu ---------- */
.xt_header-menu {
  gap: 0;
  padding: 0 16px;
  min-height: 44px;
}
.xt_header-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 14px 18px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.xt_header-menu a:hover { color: #2D6BE3; }
.xt_header-menu a.xt_active {
  color: #2D6BE3;
  border-bottom-color: #2D6BE3;
}
/* hamburger */
.xt_ha-burger {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  border-radius: 4px;
}
.xt_ha-burger:hover,
.xt_ha-burger:focus,
.xt_ha-burger:active {
  background: transparent;
}
.xt_ha-burger .xt_bars {
  display: flex; flex-direction: column; gap: 5px;
}
.xt_ha-burger .xt_bars span {
  display: block;
  width: 22px; height: 3px;
  background: #2196F3;
  border-radius: 2px;
}
/* logo */
.xt_ha-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.xt_ha-logo img { height: 36px; width: auto; display: block; }
/* search */
.xt_ha-search {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
}
.xt_ha-search .xt_ico {
  position: absolute;
  left: 12px;
  color: #555;
  width: 16px; height: 16px;
  cursor: pointer;
  display: grid; place-items: center;
}
.xt_ha-search .xt_ico svg { width: 16px; height: 16px; display: block; pointer-events: none; }
.xt_ha-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 36px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .15s;
}
.xt_ha-search input::placeholder { color: #999; }
.xt_ha-search input:focus { border-color: #2D6BE3; }
/* actions cluster */
.xt_ha-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.xt_ha-action {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  padding: 4px 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}
.xt_ha-action:hover { background: var(--surface); }
.xt_ha-action .xt_ico { font-size: 18px; line-height: 1; }
.xt_ha-action .xt_number { font-size: 16px; color: #2196F3; line-height: 1; }
.xt_ha-action .xt_lbl { white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; }
.xt_ha-cart { position: relative; }
.xt_cart-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.xt_cart-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--bg);
  transform: rotate(45deg);
}
.xt_cart-popover span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}
.xt_cart-popover strong {
  display: block;
  color: #2196F3;
  font-size: 14px;
  white-space: nowrap;
}
.xt_ha-cart:hover .xt_cart-popover,
.xt_ha-cart:focus .xt_cart-popover {
  opacity: 1;
  transform: translateY(0);
}
/* ---------- Placeholders ---------- */
.xt_placeholder {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.xt_site-main .xt_placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  margin: 20px;
  border-radius: 12px;
  text-align: center;
}
.xt_site-footer .xt_placeholder { padding: 24px 20px; text-align: center; }

.xt-top-cat { flex: 1; }
.xt-top-cat-hidden { display: none; }
.xt-top-cat-grid { display: grid; }
.xt-top-cat-grid-inner { display: grid; align-content: center; }

.xt-banner-img { width: 100%; margin-bottom: 20px; }

.xt-promo-banner { margin: 20px 0; text-align: center; }
.xt-promo-banner img { border-radius: 3px; box-shadow: 0 0 5px gray; margin-bottom: 20px; max-width: 100%; max-height:400px; cursor: pointer; }

.xt-asm-block { margin: 20px 0; text-align: center; }
.xt-asm-tile { position: relative; display: inline-block; max-width: 600px; max-height: 600px; }
.xt-asm-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: 0 0 5px gray; margin-bottom: 20px; max-width: 100%; cursor: pointer; }
.xt-asm-overlay { text-wrap: nowrap; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 28px; line-height: 1.5; font-weight: bold; text-align: center; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); background: rgba(0, 0, 0, 0.3); padding: 10px; border-radius: 5px; }
.xt-os-img { margin-left: 20px; border-radius: 3px; box-shadow: 0 0 5px gray; margin-bottom: 20px; max-width: 100%; cursor: pointer; }

.xt-home-h1 { font-size: 1.5em; margin: 20px 30px; line-height: 0.9; }
.xt-home-h1-wrap { text-align: center; }

.xt-brand-img { max-height: 130px; max-width: 100%; }
.xt-brand-img-md { max-height: 120px; max-width: 100%; }
.xt-brand-img-sm { max-height: 100px; max-width: 100%; }
.xt-brand-img-shift { margin-top: -55px; }
.xt-brand-block-bordered { border-left: 1px solid #E1E2E3; }
