/* Visible shared storefront refinements required for the first paint. */
.admin-bar .site-header {
  top: 32px;
}

@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

/* Red storefront actions stay flat in every interaction state. The header
 * stylesheet is enqueued after page-specific storefront assets so the same
 * rule covers catalog, product, cart and checkout controls consistently. */
body:not(.wp-admin) :is(
  .button--primary,
  .catalog-guide__links a:first-child,
  .header-action-popover__footer .button,
  .atlas-filter-panel__submit,
  .catalog-selection-cta .button,
  .atlas-product-card__action .button,
  .atlas-catalog-load-more__button,
  .single_add_to_cart_button,
  .atlas-mobile-purchase button,
  .atlas-product-sticky__buy,
  .atlas-product-sticky__analogs,
  .atlas-product-analogs,
  .atlas-product-comparison__product .add_to_cart_button,
  .atlas-gallery-modal__buy,
  .atlas-feedback__primary,
  .atlas-feedback-form button[type="submit"],
  .woocommerce-cart .checkout-button,
  .woocommerce-checkout .button.alt
),
body:not(.wp-admin) :is(
  .button--primary,
  .catalog-guide__links a:first-child,
  .header-action-popover__footer .button,
  .atlas-filter-panel__submit,
  .catalog-selection-cta .button,
  .atlas-product-card__action .button,
  .atlas-catalog-load-more__button,
  .single_add_to_cart_button,
  .atlas-mobile-purchase button,
  .atlas-product-sticky__buy,
  .atlas-product-sticky__analogs,
  .atlas-product-analogs,
  .atlas-product-comparison__product .add_to_cart_button,
  .atlas-gallery-modal__buy,
  .atlas-feedback__primary,
  .atlas-feedback-form button[type="submit"],
  .woocommerce-cart .checkout-button,
  .woocommerce-checkout .button.alt
):is(:hover, :focus, :focus-visible, :active, .atlas-touch-active) {
  box-shadow: none !important;
  transform: none !important;
}


@media (min-width: 1101px) and (max-width: 1280px) {
  .desktop-nav { display: none; }
  .mobile-menu { position: relative; display: block; }
  .mobile-menu summary {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    cursor: pointer;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu__panel {
    position: absolute;
    top: 51px;
    left: 0;
    z-index: 20;
    display: flex;
    width: min(86vw, 340px);
    padding: 22px;
    border: 1px solid var(--atlas-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .16);
    flex-direction: column;
  }
  .mobile-menu__panel a {
    padding: 12px 0;
    border-bottom: 1px solid var(--atlas-line);
    text-decoration: none;
  }
}

@media (max-width: 767px) {
  .site-header__inner { min-height: 50px; gap: 4px; }
  .mobile-menu summary { width: 40px; height: 44px; font-size: 1.25rem; }
  .brand-logo { width: 112px; height: 32px; }
  .header-actions { height: 50px; align-items: center; gap: 1px; }
  .header-actions a,
  .header-actions button { min-width: 40px; min-height: 48px; align-items: center; justify-content: center; }
  .header-actions a > span,
  .header-actions button > span { width: 28px; height: 28px; }
  .header-actions .ui-icon { width: 24px; height: 24px; }

  .site-header .header-action-product__remove {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }
}

@media (max-width: 340px) {
  html { overflow-x: hidden; overflow-x: clip; }
  .site-header__inner { gap: 0; }
  .mobile-menu summary { width: 36px; }
  .brand-logo { width: 96px; }
  .header-actions { gap: 0; }
  .header-actions a,
  .header-actions button { min-width: 36px; }
  .header-actions a > span,
  .header-actions button > span { width: 26px; height: 26px; }
  .header-actions .ui-icon { width: 22px; height: 22px; }
}

.woocommerce-breadcrumb,
.catalog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #8791a1;
  font-size: 14px;
  line-height: 1.45;
}

.woocommerce-breadcrumb a,
.catalog-breadcrumbs a {
  color: #7b8492;
  text-decoration: none;
  transition: color .15s ease;
}

.woocommerce-breadcrumb a:hover,
.woocommerce-breadcrumb a:focus-visible,
.catalog-breadcrumbs a:hover,
.catalog-breadcrumbs a:focus-visible {
  color: var(--atlas-red, #e30613);
}

.atlas-breadcrumb-separator {
  display: inline-grid;
  min-width: 12px;
  place-items: center;
  color: #c4cad3;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 480px) {
  .woocommerce-breadcrumb,
  .catalog-breadcrumbs {
    flex-wrap: nowrap;
    gap: 5px;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Shared consultation panel: readable contacts and explicit messenger actions on every page. */
.site-footer {
  overflow-x: hidden;
  overflow-x: clip;
}

.site-footer .footer-consultation {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 66px minmax(280px, 1fr) minmax(180px, .55fr) auto;
  gap: 24px;
  padding: 26px 34px;
  border: 0;
  border-radius: 0;
  background: #fafafa;
}

.site-footer .footer-consultation::before,
.site-footer .footer-consultation::after {
  position: absolute;
  right: 50%;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: #e1e5ea;
  content: "";
  transform: translateX(-50%);
}
.site-footer .footer-consultation::before { top: 0; }
.site-footer .footer-consultation::after { bottom: 0; }

.site-footer .footer-consultation > span:first-child {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #111827;
}
.site-footer .footer-consultation > span:first-child::before { display: none; }
.site-footer .footer-consultation > span:first-child .ui-icon { width: 42px; height: 42px; stroke-width: .8; }
.site-footer .footer-consultation__copy strong { color: #111827; font-size: 1.28rem; }
.site-footer .footer-consultation__copy small { margin-top: 7px; font-size: .9rem; }

.site-footer .footer-consultation__contacts { display: contents; }
.site-footer .footer-consultation__phone-group { display: flex; align-items: center; flex-direction: column; text-align: center; }
.site-footer .footer-consultation__phone-group small { margin-top: 3px; color: #526070; font-size: .8rem; }
.site-footer .footer-consultation__phone {
  color: var(--atlas-ink, #111827);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}
.site-footer .footer-consultation__phone:hover,
.site-footer .footer-consultation__phone:focus-visible { color: var(--atlas-red, #e30613); }
.site-footer .footer-consultation__messengers { justify-content: flex-end; gap: 12px; }
.site-footer .footer-messenger {
  width: auto;
  min-width: 142px;
  height: 48px;
  gap: 10px;
  padding: 0 22px;
  border-color: #eef0f3;
  border-radius: 4px;
  background: #fff;
  color: var(--atlas-ink, #111827);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.site-footer .footer-messenger:hover,
.site-footer .footer-messenger:focus-visible {
  border-color: #c8ced8;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.site-footer .footer-messenger .ui-icon { width: 26px; height: 26px; }
.site-footer .footer-messenger--telegram .ui-icon { color: #229ed9; }
.site-footer .footer-messenger--viber .ui-icon { color: #7360f2; }
.site-footer .footer-messenger__label {
  color: var(--atlas-ink, #111827);
  font-size: .9rem;
  font-weight: 650;
}

@media (max-width: 1139px) {
  .site-footer .footer-consultation {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 14px;
    border-radius: 8px;
  }
  .site-footer .footer-consultation > span:first-child { width: 44px; height: 44px; flex-basis: 44px; }
  .site-footer .footer-consultation > span:first-child .ui-icon { width: 22px; height: 22px; }
  .site-footer .footer-consultation strong { font-size: .82rem; }
  .site-footer .footer-consultation small { font-size: .7rem; }
  .site-footer .footer-consultation__contacts {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .site-footer .footer-consultation__phone { font-size: .88rem; }
  .site-footer .footer-consultation__messengers { gap: 6px; }
  .site-footer .footer-messenger { min-width: 86px; height: 38px; gap: 5px; padding: 0 9px; border-radius: 7px; }
  .site-footer .footer-messenger .ui-icon { width: 18px; height: 18px; }
  .site-footer .footer-messenger__label { font-size: .68rem; }
}

@media (max-width: 560px) {
  .site-header .mobile-search input {
    height: 42px;
    padding: 0 12px 0 34px;
    border-radius: 6px;
    font-size: 16px;
  }

  .site-footer .footer-consultation {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    border-radius: 0;
  }

  .site-footer .footer-consultation::before,
  .site-footer .footer-consultation::after {
    right: auto;
    left: -12px;
    width: calc(100% + 24px);
    transform: none;
  }
  .site-footer .footer-consultation__contacts { align-items: stretch; flex-direction: column; }
  .site-footer .footer-consultation__messengers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .footer-messenger { min-width: 0; padding-inline: 7px; }

  .site-footer .footer-consultation {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 5px 12px;
    padding: 12px 14px;
    text-align: left;
  }
  .site-footer .footer-consultation > span:first-child { width: 34px; height: 34px; justify-self: start; }
  .site-footer .footer-consultation > span:first-child .ui-icon { width: 22px; height: 22px; }
  .site-footer .footer-consultation__copy { width: 100%; align-items: flex-start; text-align: left; }
  .site-footer .footer-consultation__copy strong,
  .site-footer .footer-consultation__copy small { text-align: left; }
  .site-footer .footer-consultation__copy strong { font-size: .96rem; }
  .site-footer .footer-consultation__copy small { font-size: .78rem; }
  .site-footer .footer-consultation__contacts { width: 100%; align-items: center; gap: 9px; grid-column: 1 / -1; }
  .site-footer .footer-consultation__messengers { width: min(100%, 360px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .footer-messenger { width: 100%; justify-content: center; }
}

/* Keep the approved catalogue search treatment in the shared mobile header. */
@media (max-width: 767px) {
  .site-header .mobile-search {
    padding: 0 0 6px;
  }

  .site-header .mobile-search form {
    position: relative;
  }

  .site-header .mobile-search form::before {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 1.8px solid #111827;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    content: "";
    font-size: 0;
    transform: translateY(-58%);
    pointer-events: none;
  }

  .site-header .mobile-search form::after {
    position: absolute;
    top: 50%;
    left: 30px;
    z-index: 2;
    width: 7px;
    height: 1.8px;
    border-radius: 999px;
    background: #111827;
    content: "";
    transform: translateY(5px) rotate(45deg);
    transform-origin: left center;
    pointer-events: none;
  }

  .site-header .mobile-search input,
  .site-header .mobile-search input[type="search"] {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 14px 0 46px;
    border: 1px solid #dce1e8;
    border-radius: 10px;
    background: #fff !important;
    box-shadow: none;
    color: #111827;
    font-size: 14px;
  }

  .site-header .mobile-search input::placeholder {
    color: #8a93a3;
    opacity: 1;
  }
}
/* Prevent accidental selection only on controls and visual interaction surfaces. */
body:not(.wp-admin) :is(
  button,
  .button,
  [role="button"],
  [role="switch"],
  [aria-pressed],
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  input[type="range"],
  input[type="checkbox"],
  input[type="radio"],
  select,
  summary,
  [draggable="true"],
  img,
  picture,
  svg,
  canvas,
  [class*="__arrow"],
  [class*="__counter"],
  [class*="__badge"],
  [class*="__pill"],
  [class*="__toggle"],
  [class*="__handle"]
) {
  -webkit-user-select: none;
  user-select: none;
}

body:not(.wp-admin) img {
  -webkit-user-drag: none;
}


@media(max-width:600px){
 .site-footer .footer-consultation{display:flex;flex-wrap:wrap;justify-content:center;text-align:center;gap:10px}
 .site-footer .footer-consultation>span:first-child{display:none}
 .site-footer .footer-consultation__copy{width:100%}
 .site-footer .footer-consultation__copy strong{display:flex;align-items:center;justify-content:center;gap:8px}
 .site-footer .footer-consultation__title-icon{display:inline-flex;width:22px;height:22px;flex:0 0 22px}
 .site-footer .footer-consultation__title-icon .ui-icon{width:22px;height:22px}
 .site-footer .footer-consultation__contacts{width:100%}
}
@media(min-width:601px){.footer-consultation__title-icon{display:none}}

@media(max-width:600px){.site-footer .footer-consultation__copy{align-items:center;text-align:center}.site-footer .footer-consultation__copy strong,.site-footer .footer-consultation__copy small{width:100%;text-align:center}}

body.atlas-standard-product-page .woocommerce-product-gallery__trigger {
  border: 0 !important;
}

body.atlas-standard-product-page .woocommerce-product-gallery__trigger:is(:not(:focus-visible), [data-atlas-gallery-pointer-return]) {
  outline: 0 !important;
}


/* Match the light sweep on the product purchase button. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .atlas-gallery-modal__buy:not(:disabled, .atlas-product-cart-added)::after {
    position: absolute;
    inset: -30% auto -30% -42%;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 30%), transparent);
    content: "";
    pointer-events: none;
    transform: skewX(-18deg);
    transition: left .34s ease;
  }

  .atlas-gallery-modal__buy:not(:disabled, .atlas-product-cart-added):is(:hover, :focus-visible)::after {
    left: 114%;
  }
}


@media (hover: hover) and (pointer: fine) {
  .atlas-gallery-modal__buy:not(:disabled, .is-unavailable, .atlas-product-cart-added):hover {
    background: #bd0711;
  }
}

