/* ============================================
   REJO ENHANCEMENTS — Улучшения конверсии
   ============================================ */

/* --- Font: Euclid Square --- */
@font-face {
  font-family: 'EuclidSquare';
  src: url('../fonts/EuclidSquare-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EuclidSquare';
  src: url('../fonts/EuclidSquare-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- 0. STICKY FOOTER LAYOUT --- */
html, body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#allrecords {
  flex: 1 0 auto;
}
.rejo-managed-footer {
  flex-shrink: 0;
}

/* --- 1. КНОПКА ИЗБРАННОЕ (сердечко) --- */
.rejo-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  padding: 0;
}
.rejo-wishlist-btn:hover {
  background: rgba(255,255,255,1);
  transform: scale(1.1);
}
.rejo-wishlist-btn svg {
  width: 18px;
  height: 18px;
  transition: all 0.25s ease;
}
.rejo-wishlist-btn.active svg {
  fill: #e53935;
  stroke: #e53935;
}
.rejo-wishlist-btn.active {
  animation: rejo-heart-beat 0.4s ease;
}
@keyframes rejo-heart-beat {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Relative для img-wrap */
.rejo-product-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #fff;
}
.rejo-product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* --- HERO BANNER overlay --- */
.rejo-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.rejo-hero-title {
  color: #fff;
  font-family: var(--rejo-font-heading, 'EuclidSquare', sans-serif);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* Mobile */
@media (max-width: 768px) {
  .rejo-hero-title {
    font-size: 14px;
  }
}

/* --- 2. БЕЙДЖИ --- */
.rejo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 3px;
  line-height: 1.3;
}
.rejo-badge--new {
  background: #000;
  color: #fff;
}
.rejo-badge--bestseller {
  background: #c5a55a;
  color: #fff;
}
.rejo-badge--limited {
  background: #e53935;
  color: #fff;
}
.rejo-badge--sale {
  background: #F4DDE3;
  color: #1f2433;
}
/* Скрыть оригинальную марку когда есть бейдж */
.rejo-product-card__img-wrap .rejo-badge + .rejo-product-card__mark {
  display: none;
}
/* Стек бейджей */
.rejo-badges-wrap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 24px);
}
.rejo-badges-wrap .rejo-badge {
  position: static;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 2px;
}
.rejo-badges-wrap .rejo-badge--new { background: #111; color: #fff; }
.rejo-badges-wrap .rejo-badge--bestseller { background: #4a4a4a; color: #fff; }
.rejo-badges-wrap .rejo-badge--limited { background: #2f2f2f; color: #fff; }
.rejo-badges-wrap .rejo-badge--sale { background: #F4DDE3; color: #1f2433; }

/* --- 3. РАЗМЕРЫ НА КАРТОЧКАХ --- */
.rejo-sizes {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.rejo-sizes__item {
  font-size: 11px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  color: #333;
  padding: 2px 6px;
  border: 1px solid #ddd;
  border-radius: 3px;
  line-height: 1.3;
  transition: all 0.2s;
}
.rejo-sizes__item--out {
  color: #ccc;
  border-color: #eee;
  text-decoration: line-through;
}

/* --- 4. ЦВЕТОВЫЕ СВОТЧИ (каталог) --- */
.rejo-colors {
  display: flex;
  gap: 6px;
  margin: 0 0 4px;
  flex-wrap: wrap;
}
.rejo-colors__swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.rejo-colors__swatch:hover {
  border-color: #000;
  transform: scale(1.15);
}
.rejo-colors__swatch.active {
  border-color: #000;
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px #000;
}

/* --- 4b. ЦВЕТОВЫЕ ВАРИАНТЫ (товарная страница) --- */
.rejo-color-variants {
  margin: 16px 0 20px;
}
.rejo-color-variants__label {
  font-size: 13px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  color: #666;
  margin-bottom: 10px;
}
.rejo-color-variants__label span {
  color: #000;
  font-weight: 500;
}
.rejo-color-variants__swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rejo-color-variants__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  flex-shrink: 0;
  text-decoration: none;
}
.rejo-color-variants__swatch:hover {
  border-color: #000;
  transform: scale(1.1);
}
.rejo-color-variants__swatch.active {
  border-color: #000;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #000;
  cursor: default;
}

/* --- 5. ЛИД-МАГНИТ ПОПАП --- */
.rejo-lead-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s ease;
}
.rejo-lead-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.rejo-lead-popup {
  background: #fff;
  max-width: 390px;
  width: 90%;
  padding: 30px 28px;
  border-radius: 4px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.35s ease;
  text-align: center;
}
.rejo-lead-overlay.active .rejo-lead-popup {
  transform: translateY(0);
}
.rejo-lead-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.rejo-lead-popup__close:hover {
  color: #000;
}
.rejo-lead-popup__title {
  font-size: 20px;
  font-weight: 600;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  margin: 0 0 8px;
  color: #000;
}
.rejo-lead-popup__text {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px;
  line-height: 1.5;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-lead-popup__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rejo-lead-popup__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.rejo-lead-popup__input:focus {
  border-color: #000;
}
.rejo-lead-popup__btn {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s;
}
.rejo-lead-popup__btn:hover {
  background: #333;
}
.rejo-lead-popup__terms {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}
.rejo-lead-popup__success {
  display: none;
  text-align: center;
}
.rejo-lead-popup__success h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: #000;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-lead-popup__success p {
  font-size: 14px;
  color: #666;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-lead-popup__success .rejo-lead-popup__code {
  display: inline-block;
  background: #f5f5f5;
  padding: 10px 20px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 16px 0;
  border-radius: 4px;
  color: #000;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}


/* --- 7. КРОСС-СЕЛЛ "СОБЕРИ ОБРАЗ" --- */
.rejo-crosssell {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.rejo-crosssell__title {
  font-size: 16px;
  font-weight: 600;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  color: #000;
  margin: 0 0 16px;
}
.rejo-crosssell__grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.rejo-crosssell__item {
  flex: 0 0 130px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.rejo-crosssell__item:hover {
  opacity: 0.8;
}
.rejo-crosssell__item img {
  width: 130px;
  height: 170px;
  object-fit: contain;
  object-position: center center;
  border-radius: 3px;
}
.rejo-crosssell__item-title {
  font-size: 11px;
  margin-top: 6px;
  color: #333;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  line-height: 1.3;
}
.rejo-crosssell__item-price {
  font-size: 12px;
  font-weight: 600;
  color: #000;
  margin-top: 2px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}

/* --- 8. ПРОГРАММА ЛОЯЛЬНОСТИ (виджет) --- */
.rejo-loyalty-banner {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: #fff;
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  cursor: pointer;
  transition: transform 0.2s;
}
.rejo-loyalty-banner:hover {
  transform: translateY(-1px);
}
.rejo-loyalty-banner__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.rejo-loyalty-banner__text h4 {
  font-size: 15px;
  margin: 0 0 4px;
  font-weight: 600;
}
.rejo-loyalty-banner__text p {
  font-size: 12px;
  margin: 0;
  opacity: 0.75;
  line-height: 1.4;
}


/* --- 10. ПЛАВАЮЩАЯ КНОПКА ИЗБРАННОГО --- */
.rejo-wishlist-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  background: #000;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: all 0.3s;
}
.rejo-wishlist-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.rejo-wishlist-float svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}
.rejo-wishlist-float__count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-wishlist-float__count:empty {
  display: none;
}

/* --- 11. УВЕДОМЛЕНИЕ О НАЛИЧИИ --- */
.rejo-notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  margin-top: 6px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  background: none;
  border: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.rejo-notify-btn:hover {
  color: #000;
}
.rejo-notify-btn svg {
  width: 14px;
  height: 14px;
}

/* --- 12. БАННЕР БЕСПЛАТНАЯ ДОСТАВКА --- */
.rejo-free-shipping {
  background: #f8f5f0;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  color: #333;
  letter-spacing: 0.5px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.rejo-free-shipping strong {
  font-weight: 700;
}
@media screen and (max-width: 980px) {
  .rejo-free-shipping {
    margin-top: 60px;
    font-size: 11px;
    padding: 8px 12px;
    letter-spacing: 0.3px;
  }
}

/* --- 12a. АККАУНТ В ХЕДЕРЕ --- */
/* Desktop: menu item with dropdown */
.rejo-account-menu-desktop {
  position: relative;
}
.rejo-account-menu-desktop > a.rejo-account-label {
  white-space: nowrap;
}
/* Mobile icon */
.rejo-account-icon-mobile {
  margin-right: 4px;
}
.rejo-account-icon-mobile a {
  color: #000;
}
.rejo-account-icon-mobile a:hover svg {
  opacity: 0.6;
}
/* Mobile burger menu item */
.rejo-account-menu-item a {
  color: #000 !important;
  border-bottom: 1px solid #eee;
}

/* --- 13. СТИКЕР-БАР "ТОЛЬКО СЕГОДНЯ" --- */
.rejo-urgency-bar {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.rejo-urgency-bar span {
  color: #c5a55a;
  font-weight: 700;
}

/* --- Адаптив --- */
@media screen and (max-width: 640px) {
  .rejo-lead-popup {
    padding: 24px 18px;
  }
  .rejo-lead-popup__title {
    font-size: 17px;
  }
  .rejo-crosssell__item {
    flex: 0 0 110px;
  }
  .rejo-crosssell__item img {
    width: 110px;
    height: 140px;
  }
  .rejo-wishlist-float {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }
  .rejo-wishlist-float svg {
    width: 18px;
    height: 18px;
  }
  .rejo-loyalty-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .rejo-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  .rejo-sizes__item {
    font-size: 10px;
    padding: 2px 5px;
  }
}


/* ============================================
   16. HOMEPAGE — Категории, Бестселлеры, USP, Rewards
   ============================================ */

/* --- 16a. Категории — визуальная навигация --- */
.rejo-categories {
  max-width: 1200px;
  margin: 60px auto 60px;
  padding: 0 20px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-categories__title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 28px;
  color: #000;
}
.rejo-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 14px;
}
.rejo-categories__item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 2/3;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  display: block;
}
.rejo-categories__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}
.rejo-categories__item:hover img {
  transform: scale(1.06);
}
.rejo-categories__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: background 0.3s;
}
.rejo-categories__item:hover .rejo-categories__overlay {
  background: rgba(0,0,0,0.4);
}
.rejo-categories__name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.3;
  text-align: center;
}
.rejo-other-cats {
  max-width: 100%;
  width: 100%;
  margin-top: 64px;
  margin-bottom: 48px;
  padding: 0 40px;
  box-sizing: border-box;
}
/* --- Hints (product recommendations) --- */
.rejo-hints-section {
  max-width: 1200px;
  margin: 48px auto 16px;
  padding: 0 20px;
}
.rejo-hints__title {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin: 0 0 24px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  color: #000;
}
.rejo-hints__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media screen and (max-width: 768px) {
  .rejo-hints-section { margin-top: 32px; padding: 0 12px; }
  .rejo-hints__title { font-size: 16px; margin-bottom: 16px; }
  .rejo-hints__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media screen and (max-width: 768px) {
  .rejo-categories {
    margin: 24px auto 12px;
    padding: 0 12px;
  }
  .rejo-other-cats { margin-top: 40px; margin-bottom: 32px; padding: 0 12px; }
  .rejo-categories__title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .rejo-categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .rejo-categories__name {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .rejo-categories__overlay {
    padding: 12px;
  }
}

/* --- 16b. Бестселлеры — горизонтальная карусель --- */
.rejo-bestsellers {
  margin: 60px 0 0;
  padding: 0 20px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-bestsellers__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.rejo-bestsellers__title {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000;
  margin: 0;
}
.rejo-bestsellers__nav {
  display: flex;
  gap: 8px;
}
.rejo-bestsellers__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  color: #333;
}
.rejo-bestsellers__arrow:hover {
  border-color: #000;
  color: #000;
}
.rejo-bestsellers__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 20px 4px;
}
.rejo-bestsellers__track::-webkit-scrollbar {
  display: none;
}
.rejo-bestsellers__card {
  flex: 0 0 270px;
  min-width: 270px;
}
.rejo-bestsellers__card .rejo-product-card {
  min-width: 0;
  display: flex;
  height: 100%;
  background: #ffffff;
}
.rejo-bestsellers__card .rejo-product-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
.rejo-bestsellers__card .rejo-product-card__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff;
  aspect-ratio: 3 / 4;
}
.rejo-bestsellers__card .rejo-product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}
.rejo-bestsellers__card .rejo-product-card__img {
  position: absolute;
  inset: 0;
}
.rejo-bestsellers__card .rejo-product-card__img--primary {
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.4s ease;
}
.rejo-bestsellers__card .rejo-product-card__img--secondary {
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.4s ease;
}
.rejo-bestsellers__card .rejo-product-card:hover .rejo-product-card__img-wrap img {
  transform: scale(1);
}
.rejo-bestsellers__card .rejo-product-card:hover .rejo-product-card__img--primary {
  opacity: 0;
}
.rejo-bestsellers__card .rejo-product-card:hover .rejo-product-card__img--secondary {
  opacity: 1;
}
.rejo-bestsellers__card .rejo-product-card__info {
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}
.rejo-bestsellers__card .rejo-product-card__title {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  margin: 0 0 4px;
  line-height: 1.3;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rejo-bestsellers__card .rejo-product-card__color-text {
  font-size: 12px;
  color: #888;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  order: 1;
  margin: 0;
  line-height: 1.3;
}
.rejo-bestsellers__card .rejo-product-card__price {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  margin-top: auto;
  padding-top: 4px;
  order: 3;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
}
.rejo-bestsellers__card .rejo-colors {
  order: 1;
  margin: 0 0 4px;
}
.rejo-bestsellers__card .rejo-product-card__price-old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-left: 0;
  white-space: nowrap;
}
.rejo-bestsellers__card .rejo-product-card__mark {
  display: none;
}
.rejo-bestsellers__link {
  display: block;
  text-align: center;
  margin-top: 28px;
}
.rejo-bestsellers__link a {
  display: inline-block;
  padding: 12px 40px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.rejo-bestsellers__link a:hover {
  background: #000;
  color: #fff;
}
@media screen and (max-width: 768px) {
  .rejo-bestsellers {
    margin: 24px auto 12px;
    padding: 0 12px;
  }
  .rejo-bestsellers__title {
    font-size: 18px;
  }
  .rejo-bestsellers__nav {
    display: none;
  }
  .rejo-bestsellers__card {
    flex: 0 0 200px;
    min-width: 200px;
  }
}

/* --- 16c. USP / Trust блок --- */
.rejo-usp {
  max-width: 1200px;
  margin: 48px auto;
  padding: 32px 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-usp__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.rejo-usp__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rejo-usp__icon {
  width: 40px;
  height: 40px;
  color: #000;
}
.rejo-usp__icon svg {
  width: 100%;
  height: 100%;
}
.rejo-usp__text h5 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rejo-usp__text p {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}
@media screen and (max-width: 768px) {
  .rejo-usp {
    margin: 24px auto;
    padding: 24px 16px;
  }
  .rejo-usp__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .rejo-usp__icon {
    width: 32px;
    height: 32px;
  }
  .rejo-usp__text h5 {
    font-size: 12px;
  }
}

/* --- 16d. REJO Rewards — улучшенный баннер --- */
.rejo-rewards {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-rewards__inner {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 40%, #2a2a2a 100%);
  border-radius: 6px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.rejo-rewards__inner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(197,165,90,0.15);
  border-radius: 50%;
}
.rejo-rewards__inner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: 60px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(197,165,90,0.1);
  border-radius: 50%;
}
.rejo-rewards__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}
.rejo-rewards__icon svg {
  width: 100%;
  height: 100%;
}
.rejo-rewards__body {
  flex: 1;
  z-index: 1;
}
.rejo-rewards__title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
}
.rejo-rewards__title span {
  color: #c5a55a;
}
.rejo-rewards__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.5;
}
.rejo-rewards__cta {
  flex-shrink: 0;
  z-index: 1;
}
.rejo-rewards__cta a {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #c5a55a;
  color: #c5a55a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  border-radius: 3px;
  white-space: nowrap;
}
.rejo-rewards__cta a:hover {
  background: #c5a55a;
  color: #000;
}
@media screen and (max-width: 768px) {
  .rejo-rewards {
    margin: 24px auto;
    padding: 0 12px;
  }
  .rejo-rewards__inner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 16px;
  }
  .rejo-rewards__icon {
    width: 44px;
    height: 44px;
  }
  .rejo-rewards__title {
    font-size: 17px;
  }
  .rejo-rewards__desc {
    font-size: 13px;
  }
}

/* ============================================
   15. QUICK VIEW — Быстрый просмотр
   ============================================ */

/* Кнопка на карточке каталога */
.rejo-quickview-btn {
  display: none !important;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 8;
  background: rgba(255,255,255,0.95);
  color: #000;
  border: none;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.rejo-product-card__img-wrap:hover .rejo-quickview-btn {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.rejo-quickview-btn:hover {
  background: #000;
  color: #fff;
}

/* Overlay */
.rejo-qv-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.3s ease;
}
.rejo-qv-overlay--open {
  background: rgba(0,0,0,0.5);
  pointer-events: auto;
}

/* Modal */
.rejo-qv-modal {
  background: #fff;
  width: 860px;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-qv-overlay--open .rejo-qv-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close */
.rejo-qv-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.rejo-qv-close:hover {
  color: #000;
}

/* Body (two columns) */
.rejo-qv-body {
  display: flex;
  max-height: 90vh;
}

/* Gallery */
.rejo-qv-gallery {
  width: 50%;
  flex-shrink: 0;
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
}
.rejo-qv-gallery__main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
}
.rejo-qv-gallery__img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}
.rejo-qv-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.2s;
  opacity: 0;
}
.rejo-qv-gallery__main:hover .rejo-qv-gallery__nav {
  opacity: 1;
}
.rejo-qv-gallery__nav:hover {
  background: #fff;
  color: #000;
}
.rejo-qv-gallery__prev {
  left: 10px;
}
.rejo-qv-gallery__next {
  right: 10px;
}
.rejo-qv-gallery__counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #999;
  background: rgba(255,255,255,0.8);
  padding: 2px 10px;
  border-radius: 10px;
}
.rejo-qv-gallery__thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
}
.rejo-qv-gallery__thumb {
  width: 52px;
  height: 65px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.rejo-qv-gallery__thumb.active {
  border-color: #000;
}
.rejo-qv-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info panel */
.rejo-qv-info {
  width: 50%;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.rejo-qv-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #000;
  padding-right: 30px;
}
.rejo-qv-price {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rejo-qv-price__current {
  font-size: 20px;
  font-weight: 600;
  color: #000;
}
.rejo-qv-price__old {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}

/* Sizes */
.rejo-qv-sizes {
  margin-bottom: 20px;
}
.rejo-qv-sizes__label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.rejo-qv-sizes__grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rejo-qv-size {
  min-width: 44px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  font-weight: 500;
  color: #000;
  padding: 0 12px;
  transition: all 0.15s;
}
.rejo-qv-size:hover:not(:disabled) {
  border-color: #000;
}
.rejo-qv-size--active {
  border-color: #000;
  background: #000;
  color: #fff;
}
.rejo-qv-size--oos {
  color: #ccc;
  border-color: #eee;
  text-decoration: line-through;
  cursor: not-allowed;
}
.rejo-qv-sizes__error {
  font-size: 12px;
  color: #e53935;
  margin-top: 6px;
  min-height: 18px;
}

/* Add to cart */
.rejo-qv-addcart {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  margin-bottom: 12px;
}
.rejo-qv-addcart:hover {
  background: #333;
}
.rejo-qv-addcart--done {
  background: #2e7d32;
}
.rejo-qv-addcart--done:hover {
  background: #2e7d32;
}

/* Link to full product */
.rejo-qv-link {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  text-align: center;
  transition: color 0.2s;
}
.rejo-qv-link:hover {
  color: #000;
}

/* Smaller add-to-cart button on product page (Tilda product snippet) */
.t-store__product-snippet .t-store__prod-popup__btn,
.t-store__product-snippet .js-store-prod-popup-buy-btn {
  min-height: 44px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

/* Catalog: keep discount badge pink inside product card/popup */
.t-store__card__mark,
.t-store__prod-popup__mark {
  background-color: #F4DDE3 !important;
  color: #1f2433 !important;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .rejo-qv-modal {
    width: 95vw;
    max-height: 95vh;
  }
  .rejo-qv-body {
    flex-direction: column;
    max-height: 95vh;
    overflow-y: auto;
  }
  .rejo-qv-gallery {
    width: 100%;
    max-height: 50vh;
  }
  .rejo-qv-gallery__main {
    min-height: 250px;
  }
  .rejo-qv-gallery__img {
    max-height: 250px;
  }
  .rejo-qv-info {
    width: 100%;
    padding: 20px;
    overflow-y: visible;
  }
  .rejo-quickview-btn {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================
   17. ACCOUNT INLINE — ЛК в основном пространстве
   ============================================ */

/* Container */
.rejo-acc-inline {
  max-width: 100%;
  margin: 0;
  padding: 30px 40px 60px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  min-height: 70vh;
}

/* Loading */
.ria-loading {
  text-align: center;
  color: #999;
  padding: 80px 0;
  font-size: 15px;
}

/* ===== AUTH ===== */
.ria-auth {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 0;
}
.ria-auth__box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 36px 32px;
}
.ria-auth__title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 24px;
  color: #000;
}
.ria-auth__tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}
.ria-tab {
  flex: 1;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: #999;
  transition: all 0.2s;
}
.ria-tab:hover { color: #333; }
.ria-tab.active {
  color: #000;
  border-bottom-color: #000;
}

/* ===== FORMS ===== */
.ria-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ria-field {
  margin-bottom: 18px;
}
.ria-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ria-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.ria-field input:focus {
  border-color: #000;
}
.ria-field input:disabled {
  background: #f5f5f5;
  color: #999;
}
.ria-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s;
  margin-top: 4px;
}
.ria-btn:hover { background: #333; }
.ria-btn:disabled { background: #999; cursor: wait; }
.ria-btn-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.ria-btn-link:hover { color: #000; }
.ria-btn-link:disabled { color: #999; cursor: wait; text-decoration: none; }
.ria-sms-hint {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.ria-error {
  display: none;
  background: #fff3f3;
  color: #e53935;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid #ffd5d5;
}

/* ===== LAYOUT (sidebar + content) ===== */
.ria-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Sidebar */
.ria-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}
.ria-sidebar__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.ria-sidebar__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.ria-sidebar__name {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}
.ria-sidebar__email {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.ria-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ria-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  color: #555 !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  user-select: none;
}
.ria-sidebar__link:hover {
  background: #f5f5f5;
  color: #000 !important;
}
.ria-sidebar__link.active {
  background: #000;
  color: #fff !important;
}
.ria-sidebar__link.active .ria-icon {
  color: #fff;
}
.ria-sidebar__link--logout {
  margin-top: 16px;
  color: #999 !important;
}
.ria-sidebar__link--logout:hover {
  background: #fff3f3;
  color: #e53935 !important;
}
.ria-icon {
  display: flex;
  align-items: center;
  width: 20px;
  height: 20px;
}
.ria-icon svg {
  width: 20px;
  height: 20px;
}

/* Content area */
.ria-content {
  flex: 1;
  min-width: 0;
}

/* Headings */
.ria-heading {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin: 0 0 24px;
}
.ria-subheading {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 16px;
}

/* ===== STATS CARDS ===== */
.ria-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.ria-stat {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.ria-stat__val {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}
.ria-stat__label {
  font-size: 13px;
  color: #888;
}

/* ===== LOYALTY CARD ===== */
.ria-loyalty-card {
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
  border-radius: 10px;
  padding: 24px;
  color: #fff;
  margin-bottom: 28px;
}
.ria-loyalty-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ria-loyalty-card__brand {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c5a55a;
  font-weight: 600;
}
.ria-loyalty-card__points {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}
.ria-loyalty-card__hint {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ===== ORDERS ===== */
.ria-orders {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ria-order-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px 20px;
  transition: border-color 0.2s;
}
.ria-order-card:hover {
  border-color: #ccc;
}
.ria-order-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ria-order-card__row + .ria-order-card__row {
  margin-top: 8px;
}
.ria-order-card__num {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}
.ria-order-card__date {
  font-size: 12px;
  color: #999;
}
.ria-order-card__status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #666;
}
.ria-status--new { background: #e3f2fd; color: #1565c0; }
.ria-status--processing { background: #fff3e0; color: #ef6c00; }
.ria-status--shipped { background: #e8f5e9; color: #2e7d32; }
.ria-status--delivered { background: #e8f5e9; color: #2e7d32; }
.ria-status--cancelled { background: #fce4ec; color: #c62828; }
.ria-order-card__total {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

/* ===== ADDRESSES ===== */
.ria-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}
.ria-addr-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 18px;
  width: 320px;
  flex-shrink: 0;
}
.ria-addr-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 6px;
}
.ria-addr-card__default {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
}
.ria-addr-card__text {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* Empty state */
.ria-empty {
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-size: 15px;
}

/* Transaction colors */
.ria-tx--earn { color: #2e7d32; font-weight: 600; }
.ria-tx--spend { color: #e53935; font-weight: 600; }

/* ===== DROPDOWN MENU ===== */
.rejo-acc-dropdown {
  position: fixed;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 100000;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  pointer-events: none;
}
.rejo-acc-dropdown--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.rejo-acc-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.rejo-acc-dropdown__item:hover {
  background: #f5f5f5;
  color: #000 !important;
}
.rejo-acc-dropdown__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.rejo-acc-dropdown__sep {
  height: 1px;
  background: #eee;
  margin: 6px 0;
}
.rejo-acc-dropdown__item--logout {
  color: #999;
}
.rejo-acc-dropdown__item--logout:hover {
  background: #fff3f3;
  color: #e53935;
}

/* ===== MOBILE ===== */
@media screen and (max-width: 768px) {
  .rejo-acc-inline {
    padding: 20px 16px 40px;
  }
  .ria-layout {
    flex-direction: column;
    gap: 0;
  }
  .ria-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 24px;
  }
  .ria-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 16px;
  }
  .ria-sidebar__link {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #eee;
    border-radius: 20px;
  }
  .ria-sidebar__link.active {
    border-color: #000;
  }
  .ria-sidebar__link--logout {
    margin-top: 0;
  }
  .ria-icon {
    width: 16px;
    height: 16px;
  }
  .ria-icon svg {
    width: 16px;
    height: 16px;
  }
  .ria-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .ria-stat {
    padding: 14px 8px;
  }
  .ria-stat__val {
    font-size: 20px;
  }
  .ria-heading {
    font-size: 20px;
  }
  .ria-auth__box {
    padding: 24px 20px;
    border: none;
    border-radius: 0;
  }
  .ria-loyalty-card__points {
    font-size: 24px;
  }
  .ria-addresses {
    grid-template-columns: 1fr;
  }
  .rejo-acc-dropdown {
    right: -10px;
    min-width: 180px;
  }
}

/* ===== MOBILE PRODUCT CARD OVERFLOW FIX ===== */
@media screen and (max-width: 768px) {
  .rejo-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .rejo-product-card {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .rejo-product-card__info,
  .rejo-product-card__title,
  .rejo-product-card__price {
    min-width: 0 !important;
  }

  .rejo-product-card__title,
  .rejo-product-card__price,
  .rejo-product-card__price-old {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .rejo-product-card__price {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .rejo-product-card__price-old {
    margin-left: 0;
  }
}

/* ============================================
   20. SKIMS-STYLE HEADER
   ============================================ */

/* --- Hide Tilda skip-to-content link --- */
.t-skiplink { display: none !important; }

/* --- Main wrapper --- */
.rejo-skims-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  border-bottom: 1px solid #eee;
  padding-top: env(safe-area-inset-top, 0px);
}
/* Extend white background above header to cover Telegram WebView gap */
.rejo-skims-header::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: #fff;
  z-index: -1;
}

/* --- Topbar: logo + center text + icons --- */
.rejo-skims-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
}
.rejo-skims-logo img {
  height: 24px;
  display: block;
}
.rejo-skims-topbar__center {
  flex: 1;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #666;
  white-space: nowrap;
}
.rejo-skims-topbar__icons {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.rejo-skims-topbar__icons a,
.rejo-skims-topbar__icons button {
  color: #000;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.rejo-skims-topbar__icons svg {
  width: 20px;
  height: 20px;
}
.rejo-skims-topbar__icons a:hover,
.rejo-skims-topbar__icons button:hover {
  opacity: 0.6;
}
.rejo-topbar-search-btn.active {
  opacity: 0.6;
}
.rejo-topbar-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  padding: 0 3px;
  line-height: 1;
}
.rejo-topbar-count:empty {
  display: none;
}

/* --- Inline search near topbar icon --- */
.rejo-topbar-inline-search {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.18s ease, opacity 0.18s ease;
  margin-right: 8px;
}
.rejo-topbar-inline-search.open {
  width: 240px;
  opacity: 1;
}
.rejo-topbar-inline-search__input {
  width: 100%;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 17px;
  padding: 0 12px;
  font-size: 13px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  outline: none;
}
.rejo-topbar-inline-search__input:focus {
  border-color: #000;
}

/* --- Inline search results panel --- */
.rejo-inline-search-panel {
  display: none;
  padding: 16px 40px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.rejo-inline-search-panel.open {
  display: block;
}
.rejo-inline-search-panel__meta {
  font-size: 12px;
  color: #666;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  margin-bottom: 10px;
}
.rejo-inline-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.rejo-inline-search__item {
  text-decoration: none;
  color: #000;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rejo-inline-search__item-img {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.rejo-inline-search__item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.rejo-inline-search__item-title {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.3;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  min-height: calc(1.3em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rejo-inline-search__item-price {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  padding-top: 4px;
}
.rejo-inline-search__item-price-old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

/* --- Wishlist page --- */
.rejo-wishlist-page {
  padding: 24px 40px 48px;
}
.rejo-wishlist-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}
.rejo-wishlist-page--logged .rejo-wishlist-layout {
  grid-template-columns: minmax(0, 1fr);
}
.rejo-wishlist-page__head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}
.rejo-wishlist-page__head p {
  margin: 6px 0 0;
  color: #666;
  font-size: 13px;
}
.rejo-wishlist-auth {
  margin-top: 0;
  position: sticky;
  top: 120px;
}
.rejo-wishlist-auth .ria-auth {
  padding: 0;
}
.rejo-wishlist-auth .ria-auth__box {
  max-width: 100%;
  padding: 24px 22px;
}
.rejo-wishlist-auth__card {
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: none;
}
.rejo-wishlist-auth h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}
.rejo-wishlist-auth p {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}
.rejo-wishlist-auth__tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 18px;
}
.rejo-wishlist-auth__tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: none;
  background: none;
  color: #999;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.rejo-wishlist-auth__tab.active {
  color: #000;
  border-bottom-color: #000;
}
.rejo-wishlist-auth__forms {
  display: block;
}
.rejo-wishlist-auth__form {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}
.rejo-wishlist-auth__field {
  margin-bottom: 16px;
}
.rejo-wishlist-auth__field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rejo-wishlist-auth__form input {
  width: 100%;
  height: 42px;
  border: 1px solid #ddd;
  margin-bottom: 0;
  padding: 0 12px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  font-size: 14px;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.rejo-wishlist-auth__form input:focus {
  outline: none;
  border-color: #000;
}
.rejo-wishlist-auth__form button {
  height: 44px;
  border: none;
  width: 100%;
  background: #000;
  color: #fff;
  border-radius: 4px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  cursor: pointer;
}
.rejo-wishlist-auth__form button:hover {
  background: #333;
}
.rejo-wishlist-auth__error {
  margin-top: 14px;
  color: #c00;
  font-size: 13px;
  background: #fef2f2;
  border-radius: 4px;
  padding: 10px 12px;
  display: none;
}
.rejo-wishlist-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.rejo-wishlist-page--logged .rejo-wishlist-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rejo-wishlist-empty {
  grid-column: 1 / -1;
  padding: 26px;
  text-align: center;
  color: #666;
  border: 1px dashed #ddd;
}
.rejo-wishlist-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* --- Navigation bar --- */
.rejo-skims-nav {
  display: flex;
  align-items: center;
  padding: 0 40px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.rejo-skims-nav::-webkit-scrollbar { display: none; }
.rejo-skims-nav__item {
  display: inline-block;
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-skims-nav__item:first-child {
  padding-left: 0;
}
.rejo-skims-nav__item:hover {
  color: #000;
}
.rejo-skims-nav__item.active {
  color: #000;
  font-weight: 500;
}
.rejo-skims-nav__arrow {
  margin-left: 3px;
  vertical-align: -1px;
  display: inline-block;
  transition: transform 0.2s;
}
.rejo-skims-nav__item[data-dropdown].active .rejo-skims-nav__arrow {
  transform: rotate(180deg);
}
.rejo-skims-nav__item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #000;
}

/* --- Dropdown (categories) --- */
.rejo-skims-dropdown {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 65;
  background: #fff;
  padding: 32px 40px 36px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}
.rejo-skims-dropdown.open {
  display: flex;
  gap: 48px;
}
.rejo-skims-dropdown__col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rejo-skims-dropdown__heading {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-skims-dropdown__item {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
  white-space: nowrap;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  line-height: 1.5;
}
.rejo-skims-dropdown__item:hover {
  color: #000;
}
.rejo-skims-dropdown__item.active {
  color: #000;
  font-weight: 600;
}
.rejo-skims-dropdown__item--bold {
  font-weight: 500;
}

/* --- Burger menu collections --- */
#rejo-burger-collections {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  border-top: 1px solid #eee;
}
.rejo-burger-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  padding: 8px 24px 4px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-burger-link {
  display: block;
  padding: 8px 24px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  transition: color 0.2s;
}
.rejo-burger-link:hover {
  color: #000;
}

/* --- Page header (title + breadcrumbs) --- */
.rejo-skims-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 40px 16px;
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
}
.rejo-skims-page-header.is-hidden-on-scroll {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.rejo-skims-breadcrumbs {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.rejo-skims-breadcrumbs a {
  color: #999;
  text-decoration: none;
}
.rejo-skims-breadcrumbs a:hover {
  color: #000;
}
.rejo-skims-page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #000;
  margin: 0;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}

/* Hide footer while catalog content is being replaced to prevent visual jump */
body.rejo-catalog-loading #t-footer {
  opacity: 0;
  pointer-events: none;
}
body.rejo-catalog-swapping #t-footer {
  opacity: 0;
  pointer-events: none;
}

/* --- Category thumbnails strip --- */
.rejo-cat-strip {
  display: flex;
  gap: 16px;
  padding: 12px 40px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-height: 120px;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.rejo-cat-strip.is-hidden-on-scroll {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
  overflow: hidden !important;
}
.rejo-cat-strip::-webkit-scrollbar { display: none; }
.rejo-cat-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #333;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.rejo-cat-strip__item:hover { opacity: 0.7; }
.rejo-cat-strip__item.active .rejo-cat-strip__name { font-weight: 600; color: #000; }
.rejo-cat-strip__img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}
.rejo-cat-strip__img--empty {
  background: #f5f5f5;
}
.rejo-cat-strip__name {
  font-size: 11px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  text-align: center;
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Toolbar (filters + sort toggle — inline with page title) --- */
.rejo-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  flex-shrink: 0;
}
.rejo-toolbar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}
.rejo-toolbar__toggle:hover { color: #000; }
.rejo-toolbar__toggle.active { color: #000; font-weight: 600; }

/* --- Filters & sort drawers --- */
.rejo-filters-drawer,
.rejo-sort-drawer {
  padding: 0 40px;
  border-bottom: 1px solid #f0f0f0;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
}
.rejo-filters-drawer.is-hidden-on-scroll,
.rejo-sort-drawer.is-hidden-on-scroll {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
  pointer-events: none;
  border-bottom: none;
}

/* --- Filters row (inside drawer) --- */
.rejo-skims-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
  flex-wrap: wrap;
}
.rejo-skims-filters__btn {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  transition: color 0.2s;
  white-space: nowrap;
}
.rejo-skims-filters__btn:hover {
  color: #000;
}
.rejo-skims-filters__btn.active {
  color: #000;
  font-weight: 600;
}
.rejo-skims-filters__count {
  font-size: 12px;
  color: #999;
  margin-left: auto;
}

.rejo-managed-content {
  padding: 28px 40px 44px;
}
.rejo-managed-content__inner {
  max-width: 960px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  color: #111;
  line-height: 1.65;
}
.rejo-managed-content__inner h2,
.rejo-managed-content__inner h3 {
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.35;
}
.rejo-managed-content__inner h2 {
  font-size: 26px;
}
.rejo-managed-content__inner h3 {
  font-size: 20px;
}
.rejo-managed-content__inner p,
.rejo-managed-content__inner ul,
.rejo-managed-content__inner ol,
.rejo-managed-content__inner blockquote {
  margin: 0 0 12px;
}
.rejo-managed-content__inner ul,
.rejo-managed-content__inner ol {
  padding-left: 20px;
}
.rejo-managed-content__inner a {
  color: #000;
  text-decoration: underline;
}

.rejo-managed-footer {
  background: #111;
  color: #fff;
  padding: 56px 40px 36px;
}
.rejo-managed-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.rejo-managed-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 22px;
}
.rejo-managed-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rejo-managed-footer__col li {
  margin: 0 0 10px;
}
.rejo-managed-footer__col a {
  color: #fff;
  text-decoration: none;
}
.rejo-managed-footer__col a:hover {
  text-decoration: underline;
}
.rejo-managed-footer__col--text {
  color: #dbdbdb;
  font-size: 14px;
  line-height: 1.5;
}
.rejo-footer-subscribe {
  display: flex;
  gap: 0;
  margin-top: 12px;
  max-width: 320px;
}
.rejo-footer-subscribe__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.rejo-footer-subscribe__input::placeholder {
  color: rgba(255,255,255,0.5);
}
.rejo-footer-subscribe__input:focus {
  border-color: #fff;
}
.rejo-footer-subscribe__btn {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 0 4px 4px 0;
  background: #fff;
  color: #000;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.rejo-footer-subscribe__btn:hover {
  opacity: 0.85;
}
.rejo-footer-subscribe__msg {
  margin-top: 10px;
  font-size: 13px;
  color: #98ff98;
}
.rejo-managed-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 26px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: #dbdbdb;
}
.rejo-managed-footer__legal-right {
  text-align: right;
}
.rejo-managed-footer__legal-right a {
  color: #dbdbdb;
  text-decoration: none;
}
.rejo-managed-footer__legal-right a:hover {
  text-decoration: underline;
}

/* --- Filter panel (expanded) --- */
.rejo-filter-panel {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 40px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.rejo-filter-panel.open {
  display: flex;
}
.rejo-filter-panel__chip {
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 16px;
  cursor: pointer;
  background: #fff;
  color: #333;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  transition: all 0.15s;
}
.rejo-filter-panel__chip:hover {
  border-color: #000;
}
.rejo-filter-panel__chip.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* --- Burger button (hidden on desktop) --- */
.rejo-skims-topbar__icons .rejo-skims-burger {
  display: none;
}
.rejo-skims-burger svg {
  width: 24px;
  height: 24px;
}

/* --- Mobile drawer --- */
.rejo-mobile-drawer__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  z-index: 99998;
  pointer-events: none;
  transition: background 0.3s;
}
.rejo-mobile-drawer__overlay.open {
  background: rgba(0,0,0,0.4);
  pointer-events: auto;
}
.rejo-mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 99999;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 20px 24px;
  box-sizing: border-box;
}
.rejo-mobile-drawer.open {
  right: 0;
}
.rejo-mobile-drawer__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  padding: 0;
  margin-bottom: 16px;
  display: block;
}
.rejo-mobile-drawer__section {
  margin-bottom: 20px;
}
.rejo-mobile-drawer__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 10px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-mobile-drawer__link {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-mobile-drawer__link:hover {
  color: #666;
}
.rejo-mobile-drawer__link.active {
  font-weight: 600;
}
.rejo-mobile-drawer__link--accent {
  font-weight: 500;
}
.rejo-mobile-drawer__link--bold {
  font-weight: 500;
}
.rejo-mobile-drawer__accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rejo-mobile-drawer__chevron {
  transition: transform 0.3s ease;
}
.rejo-mobile-drawer__accordion.open .rejo-mobile-drawer__chevron {
  transform: rotate(180deg);
}
.rejo-mobile-drawer__accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 16px;
}
.rejo-mobile-drawer__accordion.open .rejo-mobile-drawer__accordion-body {
  max-height: 1000px;
}
.rejo-mobile-drawer__accordion-body .rejo-mobile-drawer__link {
  font-size: 14px;
  padding: 10px 0;
  color: #444;
}
.rejo-mobile-drawer__accordion-body .rejo-mobile-drawer__link:last-child {
  border-bottom: none;
  margin-bottom: 4px;
}

/* --- Category grid (dynamic products) --- */
.rejo-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
  padding: 30px 40px 60px;
  width: 100%;
  box-sizing: border-box;
}
/* Row-based layout mode */
.rejo-category-grid--rows {
  display: block;
  padding: 30px 40px 60px;
}
.rejo-catalog-desktop { display: block; }
.rejo-catalog-mobile { display: none; }
.rejo-catalog-row {
  display: grid;
  gap: 20px;
  width: 100%;
  margin-bottom: 20px;
}
.rejo-catalog-row:last-child { margin-bottom: 0; }
.rejo-catalog-row--1 { grid-template-columns: 1fr; }
.rejo-catalog-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejo-catalog-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rejo-catalog-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rejo-category-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fafafa;
}
.rejo-category-empty__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  color: #111;
}
.rejo-category-empty__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #7a7a7a;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-category-grid img {
  max-width: 100%;
  height: auto;
}

/* --- Product card in category grid --- */
.rejo-category-grid .rejo-product-card {
  min-width: 0;
  display: flex;
  height: 100%;
  background: #ffffff;
}
.rejo-category-grid .rejo-product-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
.rejo-category-grid .rejo-product-card__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff;
  aspect-ratio: 3 / 4;
}
.rejo-category-grid .rejo-product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}
.rejo-category-grid .rejo-product-card__img {
  position: absolute;
  inset: 0;
}
.rejo-category-grid .rejo-product-card__img--primary {
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.4s ease;
}
.rejo-category-grid .rejo-product-card__img--secondary {
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.4s ease;
}
.rejo-category-grid .rejo-product-card:hover .rejo-product-card__img-wrap img {
  transform: scale(1);
}
.rejo-category-grid .rejo-product-card:hover .rejo-product-card__img--primary {
  opacity: 0;
}
.rejo-category-grid .rejo-product-card:hover .rejo-product-card__img--secondary {
  opacity: 1;
}
.rejo-category-grid .rejo-product-card__info {
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}
.rejo-category-grid .rejo-product-card__title {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  margin: 0 0 4px;
  line-height: 1.3;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rejo-category-grid .rejo-product-card__color-text {
  font-size: 12px;
  color: #888;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  order: 1;
  margin: 0;
  line-height: 1.3;
}
.rejo-category-grid .rejo-product-card__price {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  margin-top: auto;
  padding-top: 4px;
  order: 3;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
}
.rejo-category-grid .rejo-colors {
  order: 1;
  margin: 0 0 4px;
}
.rejo-category-grid .rejo-product-card__price-old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-left: 0;
  white-space: nowrap;
}
.rejo-category-grid .rejo-product-card__mark {
  display: none;
}

/* --- Loader spinner --- */
.rejo-category-loader {
  text-align: center;
  padding: 120px 0;
  min-height: 42vh;
  color: #999;
  font-size: 14px;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-category-loader::after {
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  margin: 16px auto 0;
  border: 2px solid #eee;
  border-top-color: #000;
  border-radius: 50%;
  animation: rejo-spin 0.8s linear infinite;
}
@keyframes rejo-spin {
  to { transform: rotate(360deg); }
}

/* --- Mobile breakpoints for SKIMS header --- */
@media screen and (max-width: 1200px) {
  .rejo-skims-topbar__center {
    display: none;
  }
}
@media screen and (max-width: 980px) {
  .rejo-skims-nav {
    display: none;
  }
  .rejo-skims-topbar__icons .rejo-skims-burger {
    display: flex;
  }
  .rejo-skims-topbar {
    justify-content: space-between;
  }
  .rejo-skims-topbar {
    padding: 12px 16px;
  }
  .rejo-skims-page-header {
    padding: 20px 16px 12px 15px;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .rejo-skims-page-title {
    font-size: 22px;
  }
  .rejo-toolbar__toggle {
    font-size: 12px;
  }
  .rejo-cat-strip {
    padding: 10px 16px 12px;
    gap: 12px;
  }
  .rejo-cat-strip__img { width: 52px; height: 52px; }
  .rejo-cat-strip__name { font-size: 10px; max-width: 60px; }
  .rejo-toolbar {
    gap: 12px;
  }
  .rejo-filters-drawer,
  .rejo-sort-drawer {
    padding: 0 16px;
  }
  .rejo-skims-filters {
    padding: 8px 0 4px;
  }
  .rejo-filter-panel {
    padding: 8px 0;
  }
  .rejo-skims-dropdown {
    padding: 16px;
  }
  .rejo-filter-panel {
    padding: 12px 16px;
  }
  .rejo-managed-content {
    padding: 18px 16px 28px;
  }
  .rejo-managed-content__inner h2 {
    font-size: 22px;
  }
  .rejo-managed-content__inner h3 {
    font-size: 18px;
  }
  .rejo-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
    padding: 16px 16px 40px;
  }
  .rejo-category-grid--rows {
    padding: 16px 16px 40px;
  }
  .rejo-catalog-desktop { display: none; }
  .rejo-catalog-mobile { display: block; }
  .rejo-catalog-row { gap: 10px; margin-bottom: 10px; }
  .rejo-category-empty {
    padding: 40px 16px;
  }
  .rejo-category-empty__title {
    font-size: 20px;
  }
  .rejo-topbar-inline-search.open {
    width: 140px;
  }
  .rejo-inline-search-panel {
    padding: 12px 16px 20px;
  }
  .rejo-inline-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .rejo-wishlist-page {
    padding: 16px 16px 28px;
  }
  .rejo-wishlist-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rejo-wishlist-auth {
    position: static;
  }
  .rejo-wishlist-auth .ria-auth__box {
    padding: 20px 16px;
  }
  .rejo-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .rejo-managed-footer {
    padding: 36px 16px 26px;
  }
  .rejo-managed-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rejo-managed-footer__col--text {
    grid-column: 1 / -1;
  }
  .rejo-footer-subscribe {
    max-width: 100%;
  }
  .rejo-managed-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
  .rejo-managed-footer__legal-right {
    text-align: left;
  }
}

/* Mini categories strip for /catalog page */
.rejo-catalog-mini-cats {
  padding: 6px 40px 14px;
  max-height: 280px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.22s ease, opacity 0.22s ease, padding 0.22s ease;
}
.rejo-catalog-mini-cats__track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.rejo-catalog-mini-cats__item {
  display: block;
  text-decoration: none;
  color: #000;
}
.rejo-catalog-mini-cats__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: #f3f3f3;
}
.rejo-catalog-mini-cats__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.rejo-catalog-mini-cats__item span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: #333;
  font-family: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
.rejo-catalog-mini-cats.is-hidden-on-scroll {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
@media screen and (max-width: 980px) {
  .rejo-catalog-mini-cats {
    padding: 0 16px 12px;
  }
  .rejo-catalog-mini-cats__track {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 2px;
  }
  .rejo-catalog-mini-cats__item {
    min-width: 88px;
    width: 88px;
    flex: 0 0 auto;
  }
  .rejo-catalog-mini-cats__thumb {
    aspect-ratio: 3 / 4;
  }
}

/* Global font normalization: Euclid Square across all text nodes */
:root {
  --rejo-font-main: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
  --rejo-font-heading: 'EuclidSquare', 'EuclidFlex', Arial, sans-serif;
}
body,
#allrecords,
#allrecords .t-records,
#allrecords .tn-atom,
#allrecords .t-text,
#allrecords .t-name,
#allrecords .t-title,
#allrecords .t-descr,
#allrecords .t-btn,
#allrecords .t-submit,
#allrecords .t-input,
#allrecords .t-select,
button,
input,
select,
textarea,
option {
  font-family: var(--rejo-font-main) !important;
  font-weight: 300;
}
/* Headings: Euclid Square Regular (400) */
h1, h2, h3, h4, h5, h6,
#allrecords h1, #allrecords h2, #allrecords h3,
#allrecords h4, #allrecords h5, #allrecords h6,
#allrecords .t-title,
.rejo-skims-page-title,
.rejo-product-title,
.rejo-category-empty__title {
  font-family: var(--rejo-font-heading) !important;
  font-weight: 400 !important;
}
/* Prices: unified style — EuclidSquare SemiBold (600) everywhere */
.rejo-product-card__price,
.r-product-card__price,
.rejo-bestsellers__card .rejo-product-card__price,
.rejo-category-grid .rejo-product-card__price,
.rejo-qv-price__current,
.rejo-crosssell__item-price,
.rejo-inline-search__item-price {
  font-family: var(--rejo-font-main) !important;
  font-weight: 600 !important;
}
