:root {
  --brand-blue: #0ea5e9;
}

body {
  min-height: 100vh;
}

/* Frontend: disable double-tap zoom, keep pinch-zoom available */
html,
body,
a,
button,
label,
summary,
input,
select,
textarea,
[role='button'] {
  touch-action: manipulation;
}

border: 1px solid #362d2d94;

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.decoration-dotted {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #2e98c9;
  text-underline-offset: 2px;
}

#live-search-results {
  scrollbar-width: thin;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.wishlist-toggle-btn[data-in-wishlist='1'] {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

#search-focus-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.28);
}

#live-search-wrap.search-active {
  z-index: 50;
}

.dual-range {
  position: relative;
  height: 26px;
}

.dual-range::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
}


.dual-range input[type='range'] {
  position: absolute;
  /*inset: 0;*/
  width: 100%;
  height: 26px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.dual-range input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #0ea5e9;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.45);
  pointer-events: auto;
  cursor: pointer;
}

.dual-range input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #0ea5e9;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.45);
  pointer-events: auto;
  cursor: pointer;
}



/* системные стрелочки скрываем (native) controls */
@layer base {
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  input[type="number"] {
    -moz-appearance: textfield;
  }
}


.fancybox__content {
  padding: 0!important;
  text-align:center;
}

/* скрыл маркер выпадающего меню */
summary::-webkit-details-marker {
  display: none;
}

.pm-filter-pulse {
  animation: pmFilterPulse 1.6s ease-in-out infinite;
}

@keyframes pmFilterPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(225, 29, 72, 0.2);
    transform: scale(1.03);
  }
}

.stikers { font-size: 9px !important; }

.no-scrollbar::-webkit-scrollbar {
  display: none;
}


.prose p {
  margin-bottom: 1rem;
}

.product-seller-info-block p {
  margin-bottom: 0.5rem;
}

.category-text  p {margin: 5px 0px 10px 0px}
.category-text a, .prose a{text-decoration:underline; color:rgb(3 105 161 / var(--tw-text-opacity, 1))}

.fancybox__content {
  align-self: center;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  /*! padding: 2rem; */
  max-width: 100%;
  color: var(--fancybox-content-color, #374151);
  background: var(--fancybox-content-bg, #000000);
  background-color: black;
  background: black;
  cursor: default;
  /*! border-radius: 0; */
  z-index:20;
  /*height:100%!important;*/
}

ul,
ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}
li {
  margin: 0.35rem 0;
}
blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 0.5rem;
}

#static-page-shell h2, #static-page-shell h3{font-size: 1.25rem; line-height: 1.5rem; margin-bottom:10px; font-weight:500;}
#static-page-shell img {border-radius: .75rem}


/* Product-card lazy placeholders to avoid broken-image flash on fast scroll */
[data-lazy-wrap] img.lazy {
  opacity: 0;
  transition: opacity 0.2s ease;
}
[data-lazy-wrap] img.lazy.lazy-ready {
  opacity: 1;
}
[data-lazy-wrap] [data-lazy-skeleton].hidden {
  display: none;
}

/* Advertising blocks inside product grids */
.pm-ad-block {
  grid-column: 1 / -1;
}
.pm-ad-mobile {
  display: block;
}
.pm-ad-desktop {
  display: none;
}
@media (min-width: 640px) {
  .pm-ad-mobile {
    display: none;
  }
}
@media (min-width: 640px) and (max-width: 767.98px) {
  .pm-ad-desktop-sm {
    display: block;
  }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .pm-ad-desktop-md {
    display: block;
  }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .pm-ad-desktop-lg {
    display: block;
  }
}
@media (min-width: 1280px) and (max-width: 1699.98px) {
  .pm-ad-desktop-xl {
    display: block;
  }
}
@media (min-width: 1280px) {
  .pm-ad-desktop-xlplus {
    display: block;
  }
}
@media (min-width: 1700px) {
  .pm-ad-desktop-xl {
    display: none;
  }
  .pm-ad-desktop-xxl {
    display: block;
  }
}

/* Stabilize the main mobile sticky header during scroll and lazy-load */
@media (max-width: 639px) {
  .site-sticky-header {
    background-color: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow-anchor: none;
  }

  .site-sticky-header__inner {
    min-height: 68px;
    flex-wrap: nowrap;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .site-sticky-header #live-search-wrap {
    min-width: 0;
  }
}

/*
 * iOS "Добавить на экран Домой" (standalone PWA / WKWebView) отрисовывает
 * position: sticky иначе, чем обычная вкладка Safari: во время быстрого
 * скролла шапка может на несколько кадров пропасть и снова появиться
 * ("дрыганье"), даже с фиксами выше. Для standalone-режима переключаем
 * шапку на position: fixed — эта позиция не имеет такого бага в WKWebView.
 * html.pwa-standalone проставляется инлайн-скриптом в <head> base.html.
 */
@media (max-width: 639px) {
  html.pwa-standalone .site-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  html.pwa-standalone body {
    padding-top: 69px;
  }
}

@media (min-width: 640px) and (max-width: 850px) {
  .site-sticky-header__inner {
    flex-wrap: wrap;
  }

  .site-sticky-header__inner > nav {
    flex: 0 0 100%;
    margin-left: 0;
    justify-content: center;
  }
}
