/* Xlopni redesign global layer — only under .xl-redesign (silver_new) */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap");

html {
  padding-bottom: 0 !important;
}

.xl-redesign,
.xl-redesign body {
  /* body may already exist; class is on body and #container */
}

body.xl-redesign {
  background: var(--xl-warm-white) !important;
  color: var(--xl-text);
  font-family: var(--xl-font-sans);
}

body.xl-redesign #container {
  font-family: var(--xl-font-sans);
}

/* hide old decorative leftovers */
body.xl-redesign .posM1,
body.xl-redesign .posM2 {
  display: none !important;
}

/* ===== Header shell ===== */
body.xl-redesign .xl-header {
  width: 100%;
  margin: 0 0 16px;
  background: var(--xl-surface);
  border-bottom: 1px solid var(--xl-line);
}

body.xl-redesign .xl-wrap {
  width: min(100%, var(--xl-container));
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

body.xl-redesign .xl-utility {
  height: 34px;
  background: #f0e9e1;
  font-size: 12px;
  color: var(--xl-muted);
}

body.xl-redesign .xl-utility .xl-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.xl-redesign .xl-utility-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

body.xl-redesign .xl-utility a {
  color: var(--xl-muted);
  text-decoration: none;
}

body.xl-redesign .xl-utility a:hover {
  color: var(--xl-red-600);
}

body.xl-redesign .xl-utility-note {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap;
}
body.xl-redesign .xl-utility-note img {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* brand row */
body.xl-redesign .xl-brandrow {
  background: var(--xl-surface);
  border-bottom: 1px solid var(--xl-line);
}

body.xl-redesign .xl-brandrow .xl-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 20px;
}

body.xl-redesign .xl-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  text-decoration: none;
  color: var(--xl-text);
}

body.xl-redesign .xl-logo:hover {
  color: var(--xl-text);
  text-decoration: none;
}

body.xl-redesign .xl-sun {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #f6b745 0 18%, var(--xl-orange-500) 19% 34%, transparent 35%),
    repeating-conic-gradient(var(--xl-orange-500) 0 4deg, transparent 4deg 11deg);
}

body.xl-redesign .xl-logo-name {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

body.xl-redesign .xl-logo-tag {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--xl-muted);
  font-weight: 400;
}

body.xl-redesign .xl-phone-block {
  min-width: 160px;
}

body.xl-redesign .xl-phone {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--xl-text);
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
}

body.xl-redesign .xl-phone:hover {
  color: var(--xl-red-600);
}

body.xl-redesign .xl-hours {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--xl-muted);
}

body.xl-redesign .xl-perks {
  display: flex;
  flex: 1 1 auto;
  gap: 18px;
  justify-content: center;
}

body.xl-redesign .xl-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #423d38;
  max-width: 140px;
  line-height: 1.3;
}

body.xl-redesign .xl-perk img,
body.xl-redesign .xl-perk .xl-icon {
  width: 22px;
  height: 22px;
  color: var(--xl-gold-500);
}

body.xl-redesign .xl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.xl-redesign .xl-ib {
  width: 44px;
  height: 44px;
  border: 1px solid var(--xl-line);
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--xl-text);
  text-decoration: none;
  box-sizing: border-box;
}

body.xl-redesign .xl-ib:hover {
  border-color: var(--xl-gold-500);
  color: var(--xl-red-700);
  text-decoration: none;
}

body.xl-redesign .xl-ib:focus-visible,
body.xl-redesign .xl-catalog:focus-visible,
body.xl-redesign .xl-cta:focus-visible,
body.xl-redesign .xl-search-row input:focus-visible,
body.xl-redesign .xl-cart-a:focus-visible {
  outline: 3px solid rgba(232, 102, 34, 0.35);
  outline-offset: 2px;
}

body.xl-redesign .xl-ib img,
body.xl-redesign .xl-ib .xl-icon {
  width: 20px;
  height: 20px;
}

body.xl-redesign #boxLogin.xl-auth,
body.xl-redesign .xl-auth {
  display: inline-flex;
  align-items: center;
}

body.xl-redesign .xl-auth-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--xl-line);
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--xl-text);
  text-decoration: none;
}

body.xl-redesign .xl-auth-link:hover {
  border-color: var(--xl-gold-500);
  color: var(--xl-red-700);
}

/* cart */
body.xl-redesign #divShoppingCart,
body.xl-redesign #boxCart.xl-cart {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
}

body.xl-redesign .xl-cart-a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  height: auto;
  padding: 7px 16px 7px 8px;
  border: 1px solid #efe6db;
  border-radius: 999px;
  background: #fff;
  color: var(--xl-text) !important;
  text-decoration: none !important;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(32, 29, 26, 0.08);
}

body.xl-redesign .xl-cart-a:hover {
  border-color: #ffd4b8;
  background: #fffaf6;
  box-shadow: 0 8px 22px rgba(32, 29, 26, 0.1);
}

body.xl-redesign .xl-cart-ico {
  width: 38px;
  height: 38px;
  display: inline-block;
  flex: 0 0 38px;
  border-radius: 50%;
  background-color: #f6ece3;
  background-image: url("../icons/ui/cart-header.svg");
  background-position: center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

body.xl-redesign .xl-cart-txt {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0;
  flex: 1 1 auto;
}

body.xl-redesign .xl-cart-t {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  color: #171513;
}

body.xl-redesign .xl-cart-d {
  display: block !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #8a847c;
}

body.xl-redesign .xl-cart-go {
  width: 8px;
  height: 8px;
  margin: 0 2px 0 4px;
  border-right: 2px solid #ff6a00;
  border-bottom: 2px solid #ff6a00;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

body.xl-redesign #boxCart img#cart,
body.xl-redesign #boxCart .boxcontent,
body.xl-redesign .xl-cart-badge {
  display: none !important;
}

/* nav row */
body.xl-redesign .xl-navrow {
  background: var(--xl-surface);
}

body.xl-redesign .xl-navrow .xl-wrap {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
}

body.xl-redesign .xl-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--xl-graphite-900);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  white-space: nowrap;
  flex: 0 0 auto;
}

body.xl-redesign .xl-catalog:hover {
  background: var(--xl-graphite-800);
  color: #fff !important;
}

body.xl-redesign .xl-catalog img,
body.xl-redesign .xl-catalog .xl-icon {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

body.xl-redesign .xl-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  white-space: nowrap;
}

body.xl-redesign .xl-menu a {
  color: var(--xl-text);
  text-decoration: none;
}

body.xl-redesign .xl-menu a:hover {
  color: var(--xl-red-600);
}

body.xl-redesign .xl-search-wrap {
  margin-left: auto;
  min-width: 220px;
  flex: 1 1 auto;
  max-width: 430px;
}

body.xl-redesign #boxSearch.xl-search,
body.xl-redesign #boxSearchContent {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  width: 100% !important;
  position: relative;
}

body.xl-redesign #boxSearch form {
  margin: 0;
  width: 100%;
}

body.xl-redesign #boxSearch table {
  display: none !important;
}

body.xl-redesign .xl-search-row {
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid #d5ccc2;
  border-radius: 11px;
  background: #fff;
  padding: 0 4px 0 12px;
  box-sizing: border-box;
}

body.xl-redesign #boxSearch input[type="text"],
body.xl-redesign #quick_find_keyword {
  flex: 1 1 auto;
  width: 100% !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font: 14px/1.2 var(--xl-font-sans) !important;
  color: var(--xl-text);
}

body.xl-redesign .xl-search-btn {
  width: 40px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--xl-muted);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
}

body.xl-redesign .xl-search-btn:hover {
  color: var(--xl-red-600);
}

body.xl-redesign .xl-search-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

body.xl-redesign .xl-search-advanced {
  display: none !important;
}

body.xl-redesign #ajaxQuickFind {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  z-index: 80;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--xl-line);
  border-radius: 12px;
  box-shadow: var(--xl-shadow-card);
}

/* пустой quick-find не должен рисовать полосу (border/shadow) */
body.xl-redesign #ajaxQuickFind:empty,
body.xl-redesign .ajaxQuickFind:empty {
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.xl-redesign .xl-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--xl-red-600);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  flex: 0 0 auto;
}

body.xl-redesign .xl-cta:hover {
  background: var(--xl-red-700);
  color: #fff !important;
}

/* kill previous experimental header remnants if present */
body.xl-redesign table#header,
body.xl-redesign table#header2,
body.xl-redesign .xh {
  display: none !important;
}

/* soft page canvas */
body.xl-redesign html,
html body.xl-redesign {
  background: var(--xl-warm-white) !important;
}

@media (max-width: 1179px) {
  body.xl-redesign .xl-perks {
    display: none;
  }
  body.xl-redesign .xl-menu {
    display: none;
  }
  body.xl-redesign .xl-brandrow .xl-wrap {
    min-height: 76px;
  }
}

@media (max-width: 767px) {
  body.xl-redesign .xl-utility {
    display: none;
  }
  body.xl-redesign .xl-wrap {
    padding: 0 12px;
  }
  body.xl-redesign .xl-brandrow .xl-wrap {
    min-height: 62px;
    gap: 8px;
  }
  body.xl-redesign .xl-logo {
    min-width: 0;
    flex: 1;
  }
  body.xl-redesign .xl-sun {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  body.xl-redesign .xl-logo-name {
    font-size: 18px;
  }
  body.xl-redesign .xl-logo-tag,
  body.xl-redesign .xl-phone-block,
  body.xl-redesign .xl-actions .xl-ib {
    display: none;
  }
  body.xl-redesign .xl-cart-txt,
  body.xl-redesign .xl-cart-go {
    display: none;
  }
  body.xl-redesign .xl-cart-a {
    width: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
  }
  body.xl-redesign .xl-navrow .xl-wrap {
    flex-wrap: wrap;
  }
  body.xl-redesign .xl-search-wrap {
    order: 1;
    min-width: 100%;
    max-width: none;
    margin-left: 0;
  }
  body.xl-redesign .xl-catalog,
  body.xl-redesign .xl-cta {
    order: 2;
    flex: 1 1 calc(50% - 7px);
  }
}
