@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* @font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'),
    local('Montserrat Regular'),
    url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
} */

.products-grid__placeholder-desc {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(12, 13, 17, 0.64);
  line-height: 1.5;
  text-align: center;
}

/* Блок товаров со скидкой */
.sale-products-section {
  margin: 24px auto;
  margin-bottom: 30px;
  overflow: visible;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  10%,
  30% {
    transform: scale(1.05);
  }

  20%,
  40% {
    transform: scale(1);
  }
}

.sale-products-section__title {
  margin: -10px auto 12px;
  font-family: var(--font-heading);
  font-size: clamp(12px, 3.2vw, 22px);
  font-weight: 500;
  letter-spacing: clamp(0.04em, 0.45vw, 0.1em);
  text-transform: uppercase;
  line-height: clamp(1.1, 2.2vw, 1.3);
  color: #000000;
  text-decoration: none;
  text-align: center;
  position: relative;
  z-index: 10;
  min-height: var(--highlight-announcement-min-height);
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 12px);
  padding: var(--highlight-announcement-padding-block) var(--highlight-announcement-padding-inline);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
  transform-origin: center;
  will-change: transform;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.sale-products-section__title-icon {
  width: clamp(20px, 4vw, 28px);
  height: clamp(20px, 4vw, 28px);
  flex-shrink: 0;
  display: block;
}

@media (max-width: 560px) {
  .sale-products-section__title {
    margin-top: 15px;
    font-size: 16px;
  }
}

.sale-products-section__title:active {
  opacity: 0.5;
  transform: scale(0.98);
}

.sale-products-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: visible;
}

.sale-products-slider__wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 50px 0 20px 0;
  margin: -50px 0;
}

/* Catalog loader container within grid */
.products-grid__loader-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  width: 100%;
}

.products-grid__loader-container .catalog-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin: 0;
  position: static;
  transform: none;
  background: transparent;
}

.products-grid__loader-container .catalog-loader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.products-grid__loader-container .catalog-loader__text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.products-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  padding: 0 50px;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0 auto;
  margin-top: 10px;
}

.products-loader[hidden] {
  display: none !important;
}

.products-loader__spinner {
  width: clamp(28px, 5vw, 36px);
  height: clamp(28px, 5vw, 36px);
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: rgba(0, 0, 0, 0.45);
  animation: spin 0.8s linear infinite;
}

.products-loader__spinner[hidden] {
  display: none;
}

.products-loader__text {
  font-size: 14px;
  font-weight: 500;
  display: block;
  width: 100%;
  text-align: center;
}

.products-section--loading .sale-products-section__title,
.products-section--loading .new-products-section__title,
.products-section--loading .sale-products-slider__btn,
.products-section--loading .new-products-slider__btn,
.products-section--loading .sale-products-slider,
.products-section--loading .new-products-slider {
  display: none;
}

.sale-products-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  will-change: transform;
  padding: 0 50px;
  margin: 0 -50px;
}

.sale-products-section .products-loader {
  flex: 0 0 100%;
}

.sale-products-grid .product-card {
  flex: 0 0 200px;
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  box-shadow: none;
  height: 512px;
  animation: slideInCard 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInCard {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sale-products-slider__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  padding: 0;
}

.sale-products-slider__btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

.sale-products-slider__btn:active {
  transform: scale(0.95);
}

.sale-products-slider__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sale-products-slider__btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  .sale-products-slider__btn {
    width: 32px;
    height: 32px;
  }

  .sale-products-slider__btn svg {
    width: 16px;
    height: 16px;
  }

  .sale-products-slider {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .sale-products-section {
    margin: 0 !important;
  }

  .sale-products-section.container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .sale-products-slider {
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
  }

  .sale-products-slider__wrapper {
    flex: 1 !important;
    padding: clamp(20px, 5vw, 50px) 0 !important;
    margin: clamp(-20px, -5vw, -50px) 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
  }

  .products-loader {
    min-height: clamp(160px, 40vw, 220px) !important;
    padding: 0 clamp(16px, 5vw, 40px) !important;
    gap: 10px !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .products-loader__spinner {
    width: clamp(28px, 8vw, 36px) !important;
    height: clamp(28px, 8vw, 36px) !important;
    border-width: 2.5px !important;
  }

  .products-loader__text {
    font-size: 13px !important;
  }

  .sale-products-grid {
    gap: 5px !important;
    padding: 0 clamp(12px, 3vw, 50px) !important;
    margin: 0 clamp(-12px, -3vw, -50px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }

  .sale-products-grid .product-card {
    flex: 0 0 clamp(152px, 40vw, 285px) !important;
    width: clamp(152px, 40vw, 285px) !important;
    min-width: clamp(152px, 40vw, 285px) !important;
    max-width: clamp(152px, 40vw, 285px) !important;
    box-sizing: border-box !important;
    height: 512px;
  }

  .sale-products-slider__btn {
    width: clamp(24px, 6vw, 40px) !important;
    height: clamp(24px, 6vw, 40px) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  .sale-products-slider__btn svg {
    width: clamp(12px, 3vw, 20px) !important;
    height: clamp(12px, 3vw, 20px) !important;
  }
}

.privacy-page {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
  margin-top: 90px;
}

.privacy-hero {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  text-align: center;
}

.privacy-hero__eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.56);
}

.privacy-hero__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
}

.privacy-hero__subtitle {
  margin: 0 auto;
  max-width: min(640px, 90%);
  font-size: clamp(14px, 2.1vw, 16px);
  line-height: 1.6;
  color: rgba(12, 13, 17, 0.72);
}

.privacy-content {
  display: grid;
  gap: clamp(28px, 3.2vw, 40px);
}

.privacy-section {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(12, 13, 17, 0.08);
  box-shadow: 0 18px 44px rgba(12, 13, 17, 0.08);
  display: grid;
  gap: clamp(14px, 2vw, 18px);
}

.privacy-section__title {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.82);
  text-align: center;
}

.privacy-section__text {
  margin: 0;
  font-size: clamp(14px, 2.1vw, 16px);
  line-height: 1.7;
  color: rgba(12, 13, 17, 0.8);
  text-align: center;
}

.privacy-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: clamp(14px, 2.1vw, 16px);
  line-height: 1.6;
  color: rgba(12, 13, 17, 0.8);
}

.privacy-section__note {
  margin: 0;
  font-size: clamp(12px, 1.8vw, 14px);
  line-height: 1.6;
  color: rgba(12, 13, 17, 0.54);
}

.privacy-cta {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 13, 17, 0.14);
  text-align: center;
  box-shadow: 0 18px 44px rgba(12, 13, 17, 0.08);
}

.privacy-cta__title {
  margin: 0;
  font-size: clamp(18px, 2.8vw, 24px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.82);
}

.privacy-cta__desc {
  margin: 0 auto;
  max-width: min(540px, 90%);
  font-size: clamp(13px, 2.1vw, 15px);
  line-height: 1.6;
  color: rgba(12, 13, 17, 0.7);
}

.privacy-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.privacy-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  border: 1px solid rgba(12, 13, 17, 0.16);
  background: rgba(12, 13, 17, 0.04);
  color: rgba(12, 13, 17, 0.88);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.privacy-cta__btn:hover {
  background: rgba(6, 7, 9, 0.08);
  border-color: rgba(6, 7, 9, 0.18);
  color: rgba(6, 7, 9, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(6, 7, 9, 0.18);
}

.details-page .privacy-content,
.reviews-page .privacy-content,
.delivery-page .privacy-content {
  gap: clamp(24px, 3vw, 36px);
}

.details-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(16px, 3vw, 28px);
  margin-top: clamp(8px, 1.6vw, 16px);
}

.details-stats__item {
  display: grid;
  gap: 8px;
  padding: clamp(16px, 2.6vw, 24px);
  border-radius: 18px;
  background: rgba(12, 13, 17, 0.04);
  border: 1px solid rgba(12, 13, 17, 0.08);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.details-stats__value {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(12, 13, 17, 0.9);
}

.details-stats__label {
  font-size: clamp(12px, 2vw, 14px);
  color: rgba(12, 13, 17, 0.64);
}

.details-features,
.details-community,
.details-cooperation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.details-feature,
.details-community__item,
.details-cooperation__option,
.reviews-faq__item,
.delivery-card,
.delivery-security__item,
.delivery-payment__option,
.delivery-faq__item {
  padding: clamp(18px, 2.8vw, 26px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 13, 17, 0.08);
  box-shadow: 0 14px 36px rgba(12, 13, 17, 0.08);
  display: grid;
  gap: 12px;
}

.details-feature__title,
.delivery-card__title {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 20px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.82);
}

.details-feature__text,
.details-community__item p,
.details-cooperation__option p,
.delivery-card__text,
.delivery-security__item p,
.delivery-payment__option p,
.delivery-faq__item p {
  margin: 0;
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.6;
  color: rgba(12, 13, 17, 0.72);
}

.details-community__item h3,
.details-cooperation__option h3,
.delivery-security__item h3,
.delivery-payment__option h3,
.delivery-faq__item h3,
.reviews-faq__item h3 {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(12, 13, 17, 0.82);
}

.reviews-score {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: clamp(14px, 2.4vw, 20px) clamp(18px, 3vw, 30px);
  border-radius: 18px;
  background: rgba(12, 13, 17, 0.08);
  border: 1px solid rgba(12, 13, 17, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  margin-top: clamp(10px, 1.8vw, 16px);
}

.reviews-score__value {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 600;
  color: rgba(12, 13, 17, 0.92);
  letter-spacing: -0.02em;
}

.reviews-score__meta {
  display: grid;
  gap: 6px;
  font-size: clamp(12px, 1.8vw, 14px);
  color: rgba(12, 13, 17, 0.68);
}

.reviews-score__stars {
  font-size: clamp(14px, 2vw, 16px);
  letter-spacing: 0.18em;
  color: rgba(12, 13, 17, 0.82);
}

.reviews-score__count {
  font-size: clamp(12px, 2vw, 14px);
  color: rgba(12, 13, 17, 0.6);
}

.reviews-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.review-card {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.8vw, 26px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 13, 17, 0.08);
  box-shadow: 0 12px 32px rgba(12, 13, 17, 0.08);
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card__name {
  font-weight: 600;
  font-size: clamp(14px, 2.1vw, 16px);
  color: rgba(12, 13, 17, 0.82);
}

.review-card__rating {
  font-size: clamp(14px, 2vw, 16px);
  letter-spacing: 0.18em;
  color: rgba(12, 13, 17, 0.82);
}

.review-card__meta {
  margin: 0;
  font-size: clamp(11px, 1.8vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(12, 13, 17, 0.5);
}

.review-card__text {
  margin: 0;
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.7;
  color: rgba(12, 13, 17, 0.76);
}

.review-form {
  display: grid;
  gap: clamp(18px, 2.8vw, 24px);
}

.review-form__grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.review-form__field {
  display: grid;
  gap: 8px;
}

.review-form__label {
  font-size: clamp(11px, 1.8vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.6);
}

.review-form__input {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(12, 13, 17, 0.16);
  background: rgba(12, 13, 17, 0.04);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.5;
  color: rgba(12, 13, 17, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  font-family: var(--font-body);
  width: 100%;
  height: 50px;
}

.review-form__input:focus {
  outline: none;
  border-color: rgba(12, 13, 17, 0.32);
  box-shadow: 0 0 0 4px rgba(12, 13, 17, 0.08);
}

.review-form__textarea {
  min-height: 160px;
}

.review-form__submit {
  align-self: flex-start;
  padding: 1rem 2.5rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  border: 1px solid rgba(12, 13, 17, 0.16);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.review-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.review-form__status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #1b5e20;
  background-color: #e8f5e9;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
}

.review-form__status--error {
  color: #b71c1c;
  background-color: #ffebee;
}

.reviews-feed__empty {
  padding: clamp(18px, 2.8vw, 24px);
  border-radius: 18px;
  border: 1px dashed rgba(12, 13, 17, 0.18);
  background: rgba(12, 13, 17, 0.04);
  text-align: center;
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(12, 13, 17, 0.6);
}

.reviews-feed .reviews-cards {
  margin-top: clamp(12px, 2vw, 18px);
}

.reviews-faq__list,
.delivery-faq__list,
.delivery-payment__grid,
.delivery-grid,
.delivery-security {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.reviews-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.delivery-card {
  position: relative;
}

.delivery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.delivery-grid {
  align-items: stretch;
}

.delivery-banner {
  margin-top: clamp(18px, 3vw, 28px);
  padding: clamp(16px, 2.6vw, 24px) clamp(18px, 3vw, 28px);
  border-radius: 20px;
  background: rgba(12, 13, 17, 0.92);
  color: #ffffff;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 44px rgba(12, 13, 17, 0.16);
  position: relative;
  overflow: hidden;
}

.delivery-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.delivery-banner__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 1;
}

.delivery-banner__text {
  margin: 0;
  font-size: clamp(14px, 2.1vw, 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  z-index: 1;
}

.delivery-photo {
  margin-top: clamp(16px, 2.6vw, 24px);
  display: grid;
  gap: 10px;
}

.delivery-photo img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(12, 13, 17, 0.14);
}

.delivery-photo figcaption {
  margin: 0;
  font-size: clamp(12px, 1.9vw, 14px);
  line-height: 1.6;
  color: rgba(12, 13, 17, 0.64);
  text-align: center;
}

.delivery-security__item,
.delivery-payment__option,
.delivery-faq__item {
  align-content: start;
}

:root {
  --header-height: 72px;
  --container-max: 1280px;
  --gap: 16px;
  --bg: #ffffff;
  --text: #0c0d11;
  --muted: #50535a;
  --shadow: 0 18px 48px rgba(12, 13, 17, 0.08);
  --accent: #0f1014;
  --accent-strong: #060709;
  --accent-soft: rgba(12, 13, 17, 0.08);
  --accent-contrast: #ffffff;
  --neutral-25: #ffffff;
  --neutral-50: #f7f7f8;
  --neutral-100: #eeeeef;
  --neutral-200: #d9dadd;
  --neutral-400: #8b8e94;
  --neutral-600: #1b1d21;
  --cart-control-height: 46px;
  --cart-control-padding-inline: 20px;
  --highlight-announcement-min-height: clamp(55px, 10vw, 83px);
  --highlight-announcement-padding-block: clamp(8px, 2.4vw, 18px);
  --highlight-announcement-padding-inline: clamp(16px, 6vw, 48px);

  /* Typography Variables */
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-ui: 'Montserrat', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  touch-action: manipulation;
}


html,
body {
  height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  padding-top: var(--header-height);
}

@media (min-width: 1024px) {
  body {
    zoom: 0.93;
  }

  @supports not (zoom: 0.93) {
    html {
      overflow-x: hidden;
    }

    body {
      transform: scale(0.93);
      transform-origin: top center;
    }
  }
}

body.cart-modal-open,
body.product-modal-open {
  overflow: hidden;
}

/* Дополнительная блокировка скролла для мобильных устройств */
@media (max-width: 768px) {
  body.product-modal-open {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
}

.site-subheader {
  background: var(--bg);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.subheader-inner {
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--cart-control-padding-inline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Для Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  background: rgb(245, 245, 245);
  box-shadow: 0 20px 48px rgba(6, 7, 9, 0.12);
  border-bottom: 1px solid rgba(6, 7, 9, 0.08);
  backdrop-filter: blur(24px);
}

.header-inner {
  height: var(--header-height);
  /* max-width: var(--container-max); */
  max-width: 760px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-left {
  justify-self: start;
}

.header-right {
  justify-self: end;
}

.header-center {
  display: flex;
  user-select: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 12px);
  height: 100%;
  transform: translateY(-16px);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.header-logo {
  font-family: var(--font-heading);
  letter-spacing: clamp(0.36rem, 2vw, 0.42rem);
  font-size: clamp(28px, 2.2vw, 32px);
  font-weight: 300;
  text-transform: lowercase;
  color: var(--text);
  display: inline-block;
  white-space: nowrap;
  transform: translateY(15px);
  padding-inline: clamp(6px, 0.6vw, 12px);
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-center {
    transform: translateY(-8px);
  }
}

.header-tagline {
  font-family: var(--font-heading);
  letter-spacing: clamp(0.36rem, 2vw, 0.42rem);
  font-size: clamp(11px, 1.2vw, 11px);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  padding-inline: clamp(6px, 0.6vw, 12px);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  border-radius: 12px;
  background: rgba(12, 13, 17, 0.04);
  border: 1px solid rgba(12, 13, 17, 0.12);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.add-to-cart-btn:focus,
.add-to-cart-btn:active {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

.add-to-cart-btn:focus-visible {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

.icon-btn .icon path {
  transition: opacity 0.2s ease;
}

.icon-btn:hover {
  background: rgba(6, 7, 9, 0.08);
  border-color: rgba(6, 7, 9, 0.18);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(6, 7, 9, 0.14);
}

/* Chat launcher in header */
.icon-btn.chat-launcher {
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(12, 13, 17, 0.04);
  color: var(--text);
  border: 1px solid rgba(12, 13, 17, 0.12);
  box-shadow: none;
  z-index: auto;
  outline: none;
}

.icon-btn.chat-launcher:focus,
.icon-btn.chat-launcher:active {
  outline: none;
  border-color: rgba(12, 13, 17, 0.12);
}

.icon-btn.chat-launcher:hover {
  background: rgba(6, 7, 9, 0.08);
  border-color: rgba(6, 7, 9, 0.18);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(6, 7, 9, 0.14);
}

.icon-btn.chat-launcher .icon {
  width: 22px;
  height: 22px;
}

/* Heroicons SVG иконки */
.icon-btn .icon {
  width: 22px;
  height: 22px;
  color: inherit;
  stroke-width: 1.5;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#btn-burger[data-menu-open="true"] .icon {
  transform: rotate(90deg);
}

#btn-burger[data-menu-open="true"]:hover .icon {
  transform: rotate(90deg) scale(1.1);
}

#btn-cart .icon .icon-close,
#btn-cart .icon .icon-cart {
  transition: opacity 0.05s ease-out;
}

#btn-cart .icon .icon-close {
  opacity: 0;
}

#btn-cart[data-cart-open="true"] .icon .icon-close {
  opacity: 1;
}

#btn-cart .icon .icon-cart {
  opacity: 1;
}

#btn-cart[data-cart-open="true"] .icon .icon-cart {
  opacity: 0;
}

#btn-cart[data-cart-open="true"] {
  background: rgba(0, 0, 0, 0.82);
  color: var(--neutral-25);
  border-color: rgba(0, 0, 0, 0.82);
}

#btn-cart[data-cart-open="true"] .icon {
  color: var(--neutral-25);
}

#btn-search[data-search-open="true"] {
  background: rgba(0, 0, 0, 0.82);
  color: var(--neutral-25);
  border-color: rgba(0, 0, 0, 0.82);
}

#btn-search[data-search-open="true"] .icon {
  color: var(--neutral-25);
}

.icon-btn:hover .icon {
  transform: scale(1.1);
}

#btn-burger:focus-visible {
  outline: none;
  box-shadow: none;
}

.icon-btn:focus-visible {
  outline: 2px solid rgba(6, 7, 9, 0.45);
  outline-offset: 2px;
}

#btn-cart:focus-visible {
  outline: none;
}

.badge {
  --cart-badge-size: 14px;
  position: absolute;
  top: -4px;
  right: -4px;
  width: var(--cart-badge-size);
  height: var(--cart-badge-size);
  min-width: var(--cart-badge-size);
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(234, 36, 36) 0%, rgb(228, 46, 46) 100%);
  color: #ffffff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 8px;
  line-height: var(--cart-badge-size);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* box-shadow: 0 10px 24px rgba(6, 7, 9, 0.18); */
  z-index: 1000;
}

.badge[hidden] {
  display: none !important;
}

.search-panel {
  position: absolute;
  top: 102%;
  left: 50%;
  transform: translate(-50%, -10px) scale(0.95);
  z-index: 180;
  width: min(620px, calc(100vw - 48px));
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  max-height: 0;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.26s ease,
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s ease;
}

.search-panel.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  max-height: 160px;
}

.search-form {
  --search-form-min-height: calc(var(--highlight-announcement-min-height) - 3px);
  padding: var(--highlight-announcement-padding-block) var(--highlight-announcement-padding-inline);
  min-height: var(--search-form-min-height);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.search-panel.is-open .search-form {
  opacity: 1;
  transform: translateY(0);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 520px;
  width: 100%;
  max-width: 520px;
  height: calc(var(--search-form-min-height, var(--highlight-announcement-min-height)) - (var(--highlight-announcement-padding-block) * 2));
  padding: 0 clamp(12px, 3vw, 16px);
  border: 1.5px solid var(--neutral-200);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 1024px) {
  .search-input-wrapper {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .search-input-wrapper {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.search-input-wrapper:focus-within {
  border-color: rgba(12, 13, 17, 0.28);
  box-shadow: 0 0 0 3px rgba(12, 13, 17, 0.12);
}

.search-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  user-select: none;
  pointer-events: none;
}

.search-input-wrapper:focus-within .search-icon {
  opacity: 0.8;
}

.search-input {
  text-align: center;
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px !important;
  font-weight: 400;
  padding: 0;
  width: 100%;
}

.search-input:focus {
  outline: none;
}

.search-input::placeholder {
  text-align: center;
  color: rgba(27, 29, 33, 0.48);
  font-weight: 400;
}

.page-content .container {
  margin: 24px auto;
  padding: 0 20px;
  max-width: var(--container-max);
}

.page-content {
  position: relative;
}

.page-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  text-align: center;
  color: rgba(12, 13, 17, 0.68);
  z-index: 40;
  transition: opacity 0.3s ease;
  pointer-events: all;
}

.catalog-loader {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 36px);
  text-align: center;
  color: rgba(12, 13, 17, 0.64);
  transition: opacity 0.3s ease;
  z-index: 100;
}

.catalog-loader[hidden] {
  display: none !important;
}

.catalog-loader__spinner {
  width: clamp(40px, 9vw, 56px);
  height: clamp(40px, 9vw, 56px);
  border-radius: 50%;
  border: 3px solid rgba(12, 13, 17, 0.12);
  border-top-color: rgba(12, 13, 17, 0.45);
  animation: page-loader-spin 0.9s linear infinite;
}

.catalog-loader__text {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  font-family: var(--font-body);
}

.page-loader__text {
  margin: 0;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.page-loader__spinner {
  width: clamp(44px, 9vw, 56px);
  height: clamp(44px, 9vw, 56px);
  border-radius: 50%;
  border: 3px solid rgba(12, 13, 17, 0.08);
  border-top-color: rgba(12, 13, 17, 0.45);
  animation: page-loader-spin 0.9s linear infinite;
}

@keyframes page-loader-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.page-content[data-loading="true"] .page-loader {
  display: flex;
}

.page-content[data-loading="true"] {
  min-height: 60vh;
}

.home-highlight {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  position: relative;
  padding-top: var(--highlight-announcement-min-height);
}

.home-highlight__announcement-main {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--highlight-announcement-min-height);
  padding: var(--highlight-announcement-padding-block) var(--highlight-announcement-padding-inline);
  text-align: center;
  color: #fff;
  background: transparent;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.32);
}

.home-highlight__media {
  width: 100%;
  margin-top: calc(var(--highlight-announcement-min-height) * -1.7);
  position: relative;
  z-index: 1;
}

.home-highlight__announcement-text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(12px, 3.2vw, 22px);
  font-weight: 400;
  letter-spacing: clamp(0.04em, 0.45vw, 0.1em);
  text-transform: uppercase;
  line-height: clamp(1.1, 2.2vw, 1.3);
  max-width: min(100%, 720px);
  text-wrap: balance;
}

.home-highlight[hidden],
.home-highlight.home-highlight--hidden,
html[style*="--hide-home-highlight: 1"] .home-highlight {
  display: none !important;
}

.home-highlight__media {
  width: 100%;
}

.home-highlight__content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 5vw, 40px);
  padding: 0;
  margin-top: 0;
}

.page-content .home-highlight__content {
  margin: 0 auto;
  padding: 0;
}

.hero-video-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
}

html[style*="--hide-home-highlight: 1"] .hero-video-banner {
  display: none !important;
}

.hero-video-banner__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  image-rendering: -webkit-optimize-contrast; /* Немного повышает программную резкость */
  will-change: transform; /* Помогает браузеру выделить ресурсы GPU */
}

/* Прячем стандартные контролы видео на главной */
.hero-video-banner__video::-webkit-media-controls-enclosure,
.hero-video-banner__video::-webkit-media-controls {
  display: none !important;
}

.overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(92vw, 350px);
  background: #ffffff;
  box-shadow: 0 36px 80px rgba(6, 7, 9, 0.24);
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 260;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(6, 7, 9, 0.08);
  user-select: none;
  overflow-y: overlay;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  will-change: transform;
}

.sidebar-menu.is-open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 18px 20px;
  border-bottom: 1px solid rgba(6, 7, 9, 0.08);
  box-sizing: border-box;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
  flex-shrink: 0;
  scrollbar-gutter: stable;
}

.sidebar-header h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.close-btn {
  width: 36px;
  height: 36px;
  border: none;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.82);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(6, 7, 9, 0.14);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.close-btn .icon {
  color: rgba(255, 255, 255, 0.96);
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn:hover .icon {
  stroke-width: 2;
}

.categories-list {
  list-style: none;
  margin: 0;
  padding: 0px 0 24px;
  background: transparent;
  flex: 1 1 auto;
  overflow: visible;
}

.category {
  border-bottom: 1px solid rgba(6, 7, 9, 0.08);
}

.category-name,
.category-name.active {
  width: 100%;
  text-align: left;
  padding: 24px 72px 24px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(27, 29, 33, 0.88);
  transition: color 0.15s ease;
  position: relative;
  user-select: none;
  letter-spacing: 0.05em;
}

.category-name::after {
  content: "\25BC";
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(12, 13, 17, 0.04);
  border: 1px solid rgba(12, 13, 17, 0.1);
  color: rgba(27, 29, 33, 0.72);
  box-shadow: 0 12px 32px rgba(6, 7, 9, 0.08);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.category-name:hover::after {
  background: rgba(6, 7, 9, 0.08);
  border-color: rgba(6, 7, 9, 0.18);
  color: rgba(12, 13, 17, 0.96);
  box-shadow: 0 16px 36px rgba(6, 7, 9, 0.12);
}

.category.open .category-name::after {
  transform: translateY(-50%) rotate(-180deg);
  background: rgba(0, 0, 0, 0.82);
  border-color: rgba(0, 0, 0, 0.82);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 44px rgba(6, 7, 9, 0.2);
}

.category-name:hover {
  color: var(--accent);
}

.category-name:focus {
  outline: none;
}

.category-name:hover::after {
  color: var(--accent);
}

.subcategory {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.category.open .subcategory {
  max-height: 1200px;
  padding: 6px 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.subcategory-item {
  padding: 10px 16px 10px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(27, 29, 33, 0.68);
  cursor: pointer;
  transition: color 0.15s ease;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  text-decoration: none;
}

.subcategory-item__name {
  flex: 1;
  text-align: left;
  padding-right: 8px;
}

.subcategory-item__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(12, 13, 17, 0.05);
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: rgba(27, 29, 33, 0.56);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.subcategory-item:hover,
.category-name:hover {
  color: rgba(27, 29, 33, 0.88);
  background: rgba(12, 13, 17, 0.04);
}

.subcategory-item--empty {
  display: none !important;
}

/* Heading styles for product pages */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 0.75em 0;
}

h1 {
  font-size: 2.25rem;
  font-weight: 400;
}

/* Product titles */
h2 {
  font-size: 1.875rem;
  font-weight: 400;
}

/* Section headers */
h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Category headers */
h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Subsection headers */
h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Card titles */
h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* Small headers */

/* Body text improvements */
p,
li,
span {
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Price and number styling */
.price,
.number,
.quantity {
  font-family: var(--font-heading);
  font-weight: 600;
  font-feature-settings: "tnum" 1;
  /* Tabular numbers */
  letter-spacing: -0.01em;
}

/* Button and UI element styling */
button,
.btn,
input[type="submit"] {
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
}


/* Enhanced category hover effects */
.category-name:hover,
.subcategory-item:hover,
.subcategory-item.active,
.category-name.active {
  transform: none;
}

.subcategory-item:hover {
  color: var(--accent);
}

/* Badge styling */
.badge {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 9px;
}

/* Improved search styling */
.search-input::placeholder {
  color: rgba(62, 69, 84, 0.5);
  font-weight: 400;
}

.search-submit:hover {
  background: rgba(6, 7, 9, 0.9);
  transform: translateY(-1px);
}

.page-content {
  font-family: var(--font-body);
}

.page-content h1,
.page-content h2,
.page-content h3 {
  color: var(--text);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin: 48px 0 28px;
  padding: 0 0 14px;
  box-sizing: border-box;
  color: var(--accent);
  border-bottom: 1px solid rgba(6, 7, 9, 0.1);
}

.category-header--search {
  justify-content: flex-end;
  border-bottom: 1px solid rgba(6, 7, 9, 0.1);
  margin: 48px 0 28px;
  padding: 0 0 14px;
}

.category-header--search .category-title {
  margin-left: auto;
  text-align: right !important;
  letter-spacing: 0.16em;
  color: var(--accent) !important;
  font-size: 16px;
  font-weight: 400;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--accent) !important;
  margin: 0;
  margin-left: auto;
  text-align: right !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ========== Products Grid & Cards ========== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
  min-height: 0px;
  position: relative;
}

body.page-loaded:not(.catalog-ready) .products-grid {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.products-grid__empty {
  grid-column: 1 / -1;
  min-height: clamp(240px, 60vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 16px;
}

.products-grid__empty-text {
  font-family: var(--font-heading);
  font-size: clamp(14px, 2.4vw, 20px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.72);
  margin: 0;
}

.products-grid.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  min-height: 0;
}


.products-grid__placeholder,
.products-grid__message {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: clamp(260px, calc((100vh - var(--header-height)) * 0.66), 640px);
  padding: clamp(28px, 6vw, 72px) clamp(16px, 5vw, 48px);
  border: 1px dashed rgba(12, 13, 17, 0.14);
  border-radius: 28px;
  background: rgba(12, 13, 17, 0.02);
}

.products-grid__message {
  margin-top: 0;
}

.products-grid__placeholder-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 360px;
  width: min(360px, 100%);
  text-align: center;
  color: rgba(12, 13, 17, 0.66);
  margin-top: -50px;
}

.products-grid__placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 4.5vw, 64px);
  height: clamp(44px, 4.5vw, 64px);
  color: rgba(12, 13, 17, 0.55);
}

.products-grid__placeholder-icon svg {
  width: 100%;
  height: 100%;
}

.products-grid__placeholder-desc {
  font-size: clamp(13px, 2.2vw, 16px);
  margin: 0;
  color: rgba(12, 13, 17, 0.64);
  line-height: 1.5;
}

/* Loading indicator for search */
.products-grid.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(240px, 60vh, 520px);
  position: relative;
}

.products-grid__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 20px;
}

.products-grid__loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(12, 13, 17, 0.1);
  border-top-color: #0C0D11;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.products-grid__loading-text {
  font-family: var(--font-heading);
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(12, 13, 17, 0.64);
  margin: 0;
}

.products-grid__more-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  margin-top: 16px;
  background: rgba(12, 13, 17, 0.04);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.8vw, 15px);
  color: rgba(12, 13, 17, 0.72);
  line-height: 1.5;
}

/* ========== Products Pagination ========== */

.products-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  padding: 0;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.pagination-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(12, 13, 17, 0.12);
  background: rgba(12, 13, 17, 0.04);
  color: rgba(12, 13, 17, 0.88);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: manipulation;
  flex-shrink: 0;
  box-sizing: border-box;
}

.pagination-icon {
  width: 20px;
  height: 20px;
  color: inherit;
  stroke-width: 1.8;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(6, 7, 9, 0.12);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(12, 13, 17, 0.04);
  border-color: rgba(12, 13, 17, 0.12);
  color: rgba(12, 13, 17, 0.4);
  transform: none;
  box-shadow: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-number {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(12, 13, 17, 0.12);
  background: rgba(12, 13, 17, 0.04);
  color: rgba(12, 13, 17, 0.88);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: manipulation;
  flex-shrink: 0;
  box-sizing: border-box;
}

.pagination-number:active:not(.pagination-number--active) {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(6, 7, 9, 0.1);
}

.pagination-number--active {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
  cursor: default;
  transform: none;
  box-shadow: 0 4px 12px rgba(6, 7, 9, 0.16);
}

.pagination-ellipsis {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  color: rgba(12, 13, 17, 0.5);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Класс для скрытия кнопок, когда они не помещаются */
.products-pagination--compact .pagination-ellipsis:first-of-type+.pagination-number:not([data-is-first-page]),
.products-pagination--compact .pagination-numbers .pagination-number:has(+ .pagination-ellipsis:last-of-type):not([data-is-last-page]) {
  display: none;
}

/* Дополнительная защита: никогда не скрываем кнопки первой и последней страницы */
.products-pagination .pagination-number[data-is-first-page],
.products-pagination .pagination-number[data-is-last-page] {
  display: flex !important;
}

/* Fallback для браузеров без поддержки :has() */
@supports not selector(:has(*)) {
  .products-pagination--compact .pagination-numbers .pagination-number:nth-last-child(2):not([data-is-first-page]):not([data-is-last-page]):not(.pagination-number--active) {
    display: none;
  }
}

.popular-categories {
  display: grid;
  width: 100%;
  margin: 0;
  gap: clamp(20px, 4vw, 32px);
  text-align: center;
}

.popular-categories--standalone {
  width: 100%;
  margin: 0 auto;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  margin-top: 30px;
}

@media (max-width: 500px) {
  .popular-categories--standalone {
    margin-top: 20px;
  }
}


.popular-categories__header {
  display: grid;
  gap: 8px;
}

.popular-categories__title {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.88);
}

.popular-categories__note {
  margin: 0;
  font-size: clamp(13px, 2.2vw, 15px);
  color: rgba(12, 13, 17, 0.68);
}

.popular-categories__note {
  color: rgba(12, 13, 17, 0.56);
}

.popular-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(320px, 450px));
  width: calc((450px * 4) + (3 * clamp(14px, 3vw, 24px)));
  justify-content: center;
  justify-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: clamp(14px, 3vw, 24px);
  padding-inline: clamp(12px, 4vw, 48px);
  margin-top: 5px;
}

@media (max-width: 1450px) {
  .popular-categories__grid {
    grid-template-columns: repeat(2, minmax(0px, 480px));
    gap: clamp(8px, 3vw, 20px);
    padding-inline: clamp(6px, 4vw, 16px);
  }
}

.popular-category {
  position: relative;
  display: grid;
  gap: 0;
  align-content: center;
  align-items: center;
  justify-items: center;
  padding: clamp(18px, 5vw, 28px);
  border: 0px solid rgba(12, 13, 17, 0.1);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 16px 36px rgba(12, 13, 17, 0.08);
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  font-family: inherit;
  width: clamp(0px, 100%, 450px);
  min-height: 270px;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}


.popular-category__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0, 0, 0, 0.52);
  pointer-events: none;
  z-index: 1;
}

.popular-category__emoji {
  display: none;
}

.popular-category__label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: clamp(14px, 3vw, 20px) clamp(12px, 3vw, 18px);
  text-align: center;
  font-size: clamp(14.4px, 2.88vw, 16.8px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
}

@media (max-width: 600px) {
  .popular-categories__grid {
    grid-template-columns: repeat(2, minmax(0px, 350px));
    gap: clamp(8px, 3vw, 20px);
    padding-inline: clamp(6px, 4vw, 16px);
  }

  .popular-category {
    width: 100%;
    min-width: unset;
    max-width: unset;
    height: clamp(150px, 46vw, 200px);
    min-height: unset;
    padding: clamp(12px, 5vw, 18px);
  }

  .popular-category__overlay,
  .popular-category__label {
    height: clamp(42px, 14vw, 54px);
    padding: clamp(8px, 4vw, 14px) clamp(10px, 4vw, 16px);
  }

  .popular-category__label {
    font-size: clamp(11px, 3.4vw, 13.5px);
    letter-spacing: 0.08em;
  }
}

.popular-category[data-category="Секс-игрушки"] {
  background-image: url('../img/buttons/секс-игрушки.png?v=1.01');
}

.popular-category[data-category="Интимная косметика"] {
  background-image: url('../img/buttons/интимная косметика.png?v=1.01');
}

.popular-category[data-category="Белье и одежда"] {
  background-image: url('../img/buttons/белье и одежда.png?v=1.01');
}

.popular-category[data-category="БДСМ, фетиш"] {
  background-image: url('../img/buttons/бдсм и фетиш.png?v=1.01');
}

.popular-category[data-category="Гели, смазки и лубриканты"] {
  background-image: url('../img/buttons/гели и лубриканты.png?v=1.01');
}

.popular-category[data-category="Презервативы"] {
  background-image: url('../img/buttons/презервативы.png?v=1.01');
}

.popular-category[data-category="Презервативы"] .popular-category__label {
  letter-spacing: 0.05em;
}

.popular-category[data-category="Подарки и игры"] {
  background-image: url('../img/buttons/подарки и игры.png?v=1.01');
}

.popular-category[data-category="БАДы"] {
  background-image: url('../img/buttons/бады.png?v=1.01');
}

.popular-category {
  opacity: 0.97;
}

.chat-launcher:focus,
.chat-launcher:active {
  outline: none;
  border-color: rgba(12, 13, 17, 0.08);
}

.chat-launcher:hover {
  background: rgba(6, 7, 9, 0.96);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 48px rgba(6, 7, 9, 0.32);
  transform: translateY(-2px);
}

.chat-launcher__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-launcher__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.chat-widget {
  position: fixed;
  bottom: 40px;
  right: 24px;
  width: min(385px, calc(100vw - 32px));
  min-height: 400px;
  max-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  box-shadow: 0 28px 64px rgba(6, 7, 9, 0.22),
    0 6px 24px rgba(6, 7, 9, 0.12);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
  z-index: 250;
}

.chat-widget.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 999;
}

.chat-widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px 18px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(2px);
  color: var(--neutral-25);
  border-bottom: 1px solid rgba(6, 7, 9, 0.08);
}

.chat-widget__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--neutral-25);
}

.chat-widget__subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.chat-widget__close {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: rgba(12, 13, 17, 0.88);
  border: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(6, 7, 9, 0.16);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  outline: none;
  margin-left: auto;
  align-self: flex-start;
}

.chat-widget__close:focus {
  outline: none;
}

.chat-widget__close svg {
  width: 23px;
  height: 23px;
  color: rgba(12, 13, 17, 0.88);
}

.chat-widget__body {
  flex: 1;
  padding: 18px 18px 16px;
  background: rgba(247, 247, 248, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: overlay;
  scrollbar-gutter: stable;
}

.chat-message {
  display: inline-block;
  align-self: flex-start;
  max-width: 85%;
  padding: 10px 15px;
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  line-height: 1.45;
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(6, 7, 9, 0.12);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  position: relative;
  margin-top: 10px;
}

.chat-message--user {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  box-shadow: 0 12px 28px rgba(6, 7, 9, 0.18);
}

.chat-message[data-sender-label] {
  margin-top: 22px;
}

.chat-message[data-sender-label]::before {
  content: attr(data-sender-label);
  position: absolute;
  top: -16px;
  left: 6px;
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.48);
  width: 200px;
}

.chat-widget__form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 18px;
  background: rgba(247, 247, 248, 1);
  border-top: 1px solid rgba(6, 7, 9, 0.08);
}

.site-footer {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  padding: 40px 20px 20px;
  border-top: 1px solid rgba(12, 13, 17, 0.08);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 13, 17, 0.04) 0%, rgba(12, 13, 17, 0.1) 100%);
  opacity: 0.6;
  pointer-events: none;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.footer-layout {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
  margin-left: 200px;
}


@media (max-width: 1300px) {
  .footer-layout {
    margin-left: 190px;
  }
}

@media (max-width: 1270px) {
  .footer-layout {
    margin-left: 220px;
  }
}

@media (max-width: 1200px) {
  .footer-layout {
    margin-left: 175px;
  }
}

@media (max-width: 1100px) {
  .footer-layout {
    margin-left: 155px;
  }
}

@media (max-width: 1000px) {
  .footer-layout {
    margin-left: 0px;
  }
}

.footer-col {
  width: 100%;
  display: grid;
  grid-auto-rows: minmax(min-content, auto);
  align-content: stretch;
  gap: 20px;
}

.footer-col--contacts {
  justify-self: start;
}

.footer-col--right {
  display: grid;
  gap: 24px;
  align-content: start;
}

.footer-col--center {
  display: grid;
  gap: 24px;
  grid-template-rows: 1fr;
  align-content: stretch;
}

.footer-hours {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  text-align: left;
}

.footer-hours__title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.72);
}

.footer-hours__line {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: black;
}

.footer-contacts {
  display: grid;
  align-content: start;
  gap: 18px;
  text-align: left;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
  flex-wrap: nowrap;
}

.footer-nav .footer-link {
  flex: 1 1 0;
  justify-content: center;
}

.footer-map__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  min-height: 40px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  z-index: 1;
  background: #e3e4e5;
  border-top: 1px solid rgba(12, 13, 17, 0.12);
}

.footer-map__caption span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: black;
  text-transform: uppercase;
}

.footer-map__caption-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-map__caption .footer-map__illustration {
  width: clamp(27px, 3.8vw, 38px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(12, 13, 17, 0.16));
  opacity: 0.72;
}

.footer-map__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin: 0 auto;
  border: 1px solid rgba(12, 13, 17, 0.12);
}

.footer-map__image {
  position: absolute;
  inset: 0;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-map__image.loaded {
  opacity: 1;
}

.footer-map__link--loading .footer-map__image {
  opacity: 0;
}

.footer-map__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(227, 228, 229, 0.9));
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.footer-map__link:not(.footer-map__link--loading) .footer-map__loader {
  opacity: 0;
  visibility: hidden;
}

.footer-map__spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(12, 13, 17, 0.15);
  border-top-color: rgba(12, 13, 17, 0.6);
  animation: footerSpinner 0.9s linear infinite;
}

@keyframes footerSpinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.footer-map__link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 17, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.footer-map__hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(12, 13, 17, 0.88);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contacts__title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.72);
}

.footer-phone {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: black;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.footer-email {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: black;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 13, 17, 0.04);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.footer-social::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.footer-social--whatsapp::after {
  background-image: url('../icons/whatsapp.svg?v=1');
}

.footer-social--instagram::after {
  background-image: url('../icons/instagram.svg?v=1');
}

.footer-social--telegram::after {
  background-image: url('../icons/telegram.svg?v=1');
}

.footer-link {
  color: rgba(12, 13, 17, 0.72);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-nav .footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 16px;
  height: 40px;
  border-radius: 12px;
  background: rgba(12, 13, 17, 0.04);
  border: 1px solid rgba(12, 13, 17, 0.12);
  box-shadow: none;
  color: black;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  margin-left: -3px;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(12, 13, 17, 0.64);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 24px;
  text-align: center;
}

.footer-copy {
  margin: 0;
}

.chat-widget__input {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  min-height: 46px;
  max-height: 300px;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(12, 13, 17, 0.16);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: rgba(247, 247, 248, 0.9);
  box-sizing: border-box;
  resize: none;
  overflow-y: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-widget__input.chat-widget__input--overflow {
  overflow-y: auto;
}

.chat-widget__input:focus {
  outline: none;
  border-color: rgba(12, 13, 17, 0.28);
  box-shadow: 0 0 0 3px rgba(12, 13, 17, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.chat-widget__send {
  height: 46px;
  width: 46px;
  flex: 0 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(12, 13, 17, 0.14);
  background: rgba(12, 13, 17, 0.06);
  color: rgba(12, 13, 17, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(6, 7, 9, 0.12);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  outline: none;
}

.chat-widget__send:focus,
.chat-widget__send:active {
  outline: none;
  border-color: rgba(12, 13, 17, 0.32);
}

.chat-widget__send:hover {
  background: rgba(12, 13, 17, 0.06);
  border-color: rgba(12, 13, 17, 0.32);
  color: rgba(0, 0, 0, 0.96);
  box-shadow: 0 18px 36px rgba(6, 7, 9, 0.2);
  transform: translateY(-1px);
}

.chat-widget__send:disabled {
  background: rgba(27, 29, 33, 0.04);
  color: rgba(27, 29, 33, 0.32);
  border-color: rgba(27, 29, 33, 0.08);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.chat-widget__send-icon {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.chat-widget__status {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 12px;
  color: rgba(27, 29, 33, 0.45);
  background: rgba(247, 247, 248, 1);
}

.chat-widget__status--loading::after {
  content: '';
  animation: dots-loading 2s linear infinite;
}

@keyframes dots-loading {
  0% { content: ' .'; }
  17% { content: ' . .'; }
  34% { content: ' . . .'; }
  51% { content: ' . . . .'; }
  68% { content: ' . . . . .'; }
  85% { content: ''; }
}

.chat-widget__status:empty {
  padding: 0;
}

.product-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(12, 13, 17, 0.08);
  box-shadow: 0 20px 48px rgba(12, 13, 17, 0.08);
  user-select: none;
  touch-action: manipulation;
}

/* Шильдик распродажи */
.product-sale-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(230, 0, 0, 0.8) 0%, rgba(230, 0, 0, 0.8) 100%);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 0 14px 0 16px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

/* Слайдер изображений */

.product-image-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(180deg, rgba(12, 13, 17, 0.08) 0%, rgba(12, 13, 17, 0.02) 100%);
  overflow: hidden;
}

.product-image-single {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(180deg, rgba(12, 13, 17, 0.08) 0%, rgba(12, 13, 17, 0.02) 100%);
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.slider-image {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateZ(0);
  user-select: none;
}

.slider-image.loaded {
  opacity: 1;
}

.image-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.image-loading::before,
.image-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.image-loading::before {
  background: conic-gradient(#d8d8d8 0deg, #d8d8d8 360deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

.image-loading::after {
  background: conic-gradient(#111 0deg 96deg, transparent 96deg 360deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  transform-origin: 50% 50%;
  animation: image-loading-spin 0.8s linear infinite;
}

@keyframes image-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Стрелки слайдера */

.slider-arrow {
  position: absolute;
  right: 12px !important;
  bottom: 12px;
  width: 33px;
  height: 33px;
  background: rgba(12, 13, 17, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
}

.slider-arrow:hover {
  background: rgba(6, 7, 9, 0.8);
  transform: scale(1.08);
}

.slider-arrow__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.slider-arrow-right {
  right: 12px !important;
}

.product-image-slider:hover .slider-arrow {
  opacity: 1;
}

@media (max-width: 768px) {
  .product-image-slider:not(.product-image-slider--modal) .slider-arrow {
    display: none;
  }
}

/* Кнопка добавления в корзину */


.add-to-cart-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: calc(var(--cart-control-height) * 0.9);
  height: calc(var(--cart-control-height) * 0.9);
  padding: 0 var(--cart-control-padding-inline);
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(6, 7, 9, 0.18);
  border-radius: 14px;
  color: var(--text);
  width: 90%;
  max-width: var(--cart-control-max-width);
  margin: 0 auto;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.product-card:hover .add-to-cart-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: 0 3px 6px rgba(6, 7, 9, 0.14);
}

/* Показываем кнопку на тач-устройствах */
@media (hover: none) and (pointer: coarse) {
  .add-to-cart-btn {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

.add-to-cart-btn:disabled {
  cursor: not-allowed;
  background: rgba(12, 13, 17, 0.04);
  border-color: rgba(12, 13, 17, 0.18);
  color: rgba(12, 13, 17, 0.4);
}

.add-to-cart-btn.added {
  background: rgba(0, 0, 0, 0.82) !important;
}


/* Информация о товаре */
.product-info {
  padding: 17px 17px 5px 17px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-stock {
  font-size: 11px;
  color: rgba(12, 13, 17, 0.56);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0px 16px 0px;
  margin-bottom: 8px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0px 16px 16px;
  margin-top: auto;
}

.cart-actions {
  margin-left: auto;
  display: flex;
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
  gap: 0;
}

/* Ensure consistent width for cart controls */
.cart-actions>* {
  flex: 1 1 100%;
  width: 100%;
}

.add-to-cart-btn.is-hidden,
.add-to-cart-btn[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.quantity-control[hidden] {
  display: none !important;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(2px, 0.6vw, 6px);
  width: 90%;
  min-height: calc(var(--cart-control-height) * 0.9);
  height: calc(var(--cart-control-height) * 0.9);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex: 1 1 0;
  user-select: none;
  touch-action: manipulation;
  outline: none;
  outline-offset: 0;
}

.quantity-control.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  user-select: none;
  touch-action: manipulation;
  outline: none;
  outline-offset: 0;
}

.qty-btn {
  width: clamp(26px, 3.4vw, 32px);
  height: clamp(26px, 3.4vw, 32px);
  border-radius: 10px;
  border: 1px solid rgba(6, 7, 9, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}

.qty-btn:hover {
  box-shadow: 0 3px 6px rgba(6, 7, 9, 0.14);
  color: var(--accent);
}

.qty-value {
  min-width: 22px;
  text-align: center;
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 600;
  color: var(--text);
  user-select: none;
  touch-action: manipulation;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  margin-left: 4px;
}

/* Контейнер для цен со скидкой */
.product-price-container--sale {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Новая цена со скидкой (сверху) */
.product-price--sale {
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  line-height: 1.2;
  margin: 0;
}

/* Старая перечеркнутая цена (снизу, меньше размером, опущена ниже) */
.product-price--old {
  font-size: 13px;
  font-weight: 400;
  text-decoration: line-through;
  color: rgba(12, 13, 17, 0.5);
  line-height: 1.2;
  margin: 0;
  margin-top: 4px;
}

.product-brand {
  font-family: var(--font-body);
  font-size: 13px;
  color: gray;
  font-weight: 400;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: default;
  transition: color 0.2s ease;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: 2px;
  min-height: 25px;
  -webkit-user-select: text;
  user-select: text;
}

.product-name {
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: none;
  padding: 0;
  margin: 0 0 7px 0;
  text-align: left;
  display: block;
  width: 100%;
  font-family: inherit;
  color: inherit;
  font-weight: 400;
  text-transform: none;
}

.product-name:hover {
  color: var(--accent);
}

/* Улучшение кликабельности на iOS */
.slider-image,
.product-image-single img {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Индикатор загрузки */
.loading-spinner {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: clamp(260px, calc((100vh - var(--header-height)) * 0.66), 640px);
  padding: clamp(28px, 6vw, 72px) clamp(16px, 5vw, 48px);
  border: 1px dashed rgba(12, 13, 17, 0.14);
  border-radius: 28px;
  background: rgba(12, 13, 17, 0.02);
  z-index: 10;
  margin-top: -192.5px;
}

.loading-spinner.hidden {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  position: relative;
  pointer-events: none;
}

.spinner::before,
.spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.spinner::before {
  background: conic-gradient(#dcdcdc 0deg, #dcdcdc 360deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
}

.spinner::after {
  background: conic-gradient(#111 0deg 90deg, transparent 90deg 360deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  animation: image-loading-spin 1s linear infinite;
}

.loading-spinner__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 360px;
  width: min(360px, 100%);
  text-align: center;
  color: rgba(12, 13, 17, 0.66);
  margin-top: -50px;
}

/* ================= Cart Modal ================= */

.cart-modal {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: none;
}

.cart-modal.is-open {
  display: block;
}

.cart-modal__overlay {
  position: fixed;
  inset: var(--header-height) 0 0;
  background: rgba(12, 13, 17, 0.55);
  backdrop-filter: blur(6px);
}

.cart-modal__container {
  position: fixed;
  inset: var(--header-height) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  overflow-y: overlay;
  z-index: 100;
  scrollbar-gutter: stable;
}

.cart-modal__close {
  position: absolute;
  right: clamp(18px, 4vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.82);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(6, 7, 9, 0.14);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-modal__close:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(6, 7, 9, 0.2);
}

.cart-modal__close svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.98);
}

.cart-modal__frame {
  position: fixed;
  top: var(--header-height);
  left: 50%;
  right: auto;
  bottom: 0;
  transform: translateX(-50%);
  width: var(--cart-modal-max-width, min(960px, 100%));
  background: var(--neutral-25);
  padding: clamp(24px, 1.5vw, 30px) clamp(18px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1vw, 36px);
  align-items: stretch;
  overflow-y: overlay;
  box-sizing: border-box;
  border-radius: 0;
  scrollbar-gutter: stable;
}

.cart-modal__frame>* {
  width: 100%;
  max-width: 100%;
}

.cart-modal__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 16px);
  width: 100%;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(6, 7, 9, 0.1);
}

.cart-modal__heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.8vw, 27px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

.cart-modal__box {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 26px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 32px 64px rgba(15, 16, 24, 0.12);
  padding: clamp(22px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vw, 24px);
}

.cart-modal__items {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 0.2vw, 10px);
  width: min(680px, 100%);
  margin-top: -10px;
}

.cart-modal__items--few {
  margin-top: 20px;
}

.cart-modal__item {
  display: grid;
  grid-template-columns: clamp(54px, 11.5vw, 84px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(7px, 1.2vw, 11px);
  padding: clamp(6px, 0.3vw, 15px);
  background: #fff;
  border: 1px solid rgba(12, 13, 17, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(12, 13, 17, 0.08);
}

.cart-modal__item-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.7vw, 15px);
}

.cart-modal__item-info {
  display: flex;
  flex-direction: column;
  gap: clamp(1px, 0.45vw, 3.5px);
  margin-left: -5px;
}

.cart-modal__item-actions {
  display: grid;
  grid-template-columns: auto 28px;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: clamp(8px, 1.3vw, 12px);
  row-gap: clamp(5px, 1vw, 8px);
  justify-items: end;
  justify-self: end;
}

.cart-modal__item-total {
  grid-column: 1 / 2;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  width: clamp(72px, 11vw, 82px);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}


.cart-modal__item-total-value {
  font-family: var(--font-heading);
  font-size: clamp(13.5px, 2.025vw, 16.2px);
  font-weight: 600;
  line-height: 1;
  text-align: right;
}

.cart-modal__item-total-currency {
  margin-left: clamp(3px, 0.6vw, 5px);
  font-size: clamp(13.5px, 2.025vw, 16.2px);
  color: rgb(0, 0, 0);
}

.cart-modal__item-remove {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  width: clamp(28px, 3.8vw, 34px);
  height: clamp(28px, 3.8vw, 34px);
  font-size: clamp(22px, 2.3vw, 26px);
  transform: translateX(10px);
}

.cart-modal__item-meta {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1vw, 8px);
  font-family: var(--font-ui);
  font-size: clamp(11px, 1.3vw, 10px);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.6);
  transform: translateY(8px);
}

.cart-modal__item-sku {
  font-weight: 600;
  color: var(--text);
}

.cart-modal__item-brand {
  color: var(--accent);
  margin-left: 5px;
}

.cart-modal__item-name {
  font-family: var(--font-body);
  font-size: clamp(10px, 1.5vw, 12px);
  color: var(--text);
  line-height: 1.4;
}

.cart-modal__item-tags {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1vw, 8px);
}

.cart-modal__item-badge,
.cart-modal__item-label {
  font-family: var(--font-ui);
  font-size: clamp(9px, 1.3vw, 10px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 7px;
}

.cart-modal__item-badge {
  background: var(--accent);
  color: #fff;
}

.cart-modal__item-label {
  background: rgba(12, 13, 17, 0.08);
  color: rgba(12, 13, 17, 0.72);
}

.cart-modal__item-total {
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600;
  justify-content: end;
}

.cart-modal__item-controls {
  display: inline-flex;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(4px, 0.5vw, 5px);
  width: 78px;
  min-height: 32px;
  height: 32px;
  grid-column: 1 / 2;
  grid-row: 2;
  justify-self: end;
}

.cart-modal__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(12, 13, 17, 0.24);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  flex: 0 0 28px;
}

.cart-modal__qty-btn:hover {
  box-shadow: 0 2px 4px rgba(6, 7, 9, 0.14);
  color: var(--accent);
}

.cart-modal__qty-value {
  min-width: 18px;
  font-size: clamp(11px, 1.7vw, 14px);
  font-weight: 600;
  color: var(--text);
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-modal__item-remove {
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(12, 13, 17, 0.36);
  font-size: clamp(22px, 2.3vw, 30px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cart-modal__item-remove:hover {
  color: var(--accent);
}

.cart-modal__summary {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vw, 22px);
  text-align: center;
  width: min(420px, 100%);
  margin: 20px auto 0px auto;
}

.cart-modal__total {
  font-family: var(--font-heading);
  font-size: clamp(15px, 2.2vw, 18px);
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.82);
  font-weight: 800;
  margin-top: -7px;
}

.cart-modal__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 12px);
  font-size: clamp(12px, 1.6vw, 13px);
  color: rgba(12, 13, 17, 0.72);
  width: min(100%, 32ch);
  margin: 10px auto 0px auto;
}

.cart-modal__phone span {
  display: inline-block;
  margin-bottom: 0;
  white-space: nowrap;
}

.cart-modal__phone input {
  width: 100%;
  min-width: 30ch;
  height: clamp(38px, 5vw, 46px);
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(12, 13, 17, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 18px rgba(15, 16, 24, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px !important;
  font-weight: 600;
  color: var(--text);
}

.cart-modal__phone input:focus {
  outline: none;
  border-color: rgba(12, 13, 17, 0.28);
  box-shadow: 0 0 0 3px rgba(12, 13, 17, 0.12);
}

.cart-modal__phone input::placeholder {
  color: rgba(12, 13, 17, 0.48);
  font-size: clamp(12px, 1.4vw, 13px);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
}

.cart-modal__comment {
  display: block;
  width: 100%;
  margin: 10px auto 0px auto;
}

.cart-modal__comment textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(12, 13, 17, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 18px rgba(15, 16, 24, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  resize: vertical;
}

.cart-modal__comment textarea:focus {
  outline: none;
  border-color: rgba(12, 13, 17, 0.28);
  box-shadow: 0 0 0 3px rgba(12, 13, 17, 0.12);
}

.cart-modal__comment textarea::placeholder {
  color: rgba(12, 13, 17, 0.48);
  font-size: clamp(12px, 1.4vw, 13px);
  font-family: var(--font-body);
  font-weight: 500;
}

.cart-modal__phone-error {
  margin: 8px auto 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.24);
  font-size: clamp(11px, 1.5vw, 13px);
  line-height: 1.5;
  color: rgba(127, 29, 29, 0.88);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.01em;
  animation: slideDown 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-modal__note {
  font-size: clamp(11px, 1.5vw, 13px);
  color: rgba(17, 17, 17, 0.62);
  line-height: 1.65;
  margin-top: -10px;
}

.cart-modal__actions {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 16px);
  width: min(340px, 100%);
  margin: 0 auto;
  margin-top: -7px;
}

.cart-modal__action {
  height: clamp(42px, 5.2vw, 48px);
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: clamp(12px, 1.7vw, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cart-modal__action--primary {
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
}

.cart-modal__action--primary:hover {
  background: rgba(0, 0, 0, 0.88);
}

.cart-modal__action--secondary {
  background: rgba(12, 13, 17, 0.05);
  border-color: rgba(12, 13, 17, 0.16);
  color: var(--text);
}

.cart-modal__action--secondary:hover {
  border-color: rgba(12, 13, 17, 0.28);
  color: var(--accent);
}

@media (max-width: 1024px) {
  .cart-modal__frame {
    padding: clamp(22px, 3.8vw, 44px) clamp(14px, 6vw, 28px);
    width: min(640px, 100%);
  }

  .cart-modal__frame>* {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .cart-modal__frame {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    padding: clamp(18px, 6.5vw, 34px) clamp(12px, 6vw, 24px);
  }

  .cart-modal__frame>* {
    width: 100%;
  }

  .cart-modal__items {
    gap: clamp(5px, 1.5vw, 8px);
  }
}

@media (max-width: 670px) {
  .cart-modal__item {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(10px, 3vw, 16px);
    padding: clamp(14px, 5.5vw, 18px);
  }

  .cart-modal__item-thumb {
    display: none !important;
  }

  .cart-modal__item-content {
    grid-column: auto;
    gap: clamp(12px, 3vw, 18px);
  }

  .cart-modal__item-info {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .cart-modal__items {
    gap: clamp(4px, 2vw, 6px);
    width: 100%;
  }

  .cart-modal__item {
    gap: clamp(7px, 3.4vw, 10px);
    padding: clamp(12px, 3.1vw, 17px);
  }

  .cart-modal__item-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(12px, 4vw, 18px);
    align-items: center;
  }

  .cart-modal__item-actions {
    grid-template-columns: auto auto;
    grid-template-rows: auto;
    justify-items: end;
    align-items: center;
    column-gap: clamp(0px, 0vw, 16px);
    row-gap: 0;
  }

  .cart-modal__item-controls {
    justify-self: start;
    width: auto;
    transform: scale(0.87);
    transform-origin: center right;
  }

  .cart-modal__item-remove {
    width: 36px;
    height: 36px;
    font-size: 24px;
    transform: none;
    margin-right: -15px;
  }

  .cart-modal__phone {
    flex-direction: row;
    gap: clamp(6px, 3vw, 10px);
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: min(100%, 32ch);
    margin: 0 auto;
  }

  .cart-modal__phone span {
    margin-bottom: 0;
    white-space: nowrap;
  }

  .cart-modal__phone input {
    width: 100%;
    min-width: 21ch;
    flex: 1 1 auto;
  }

  .cart-modal__phone input,
  .cart-modal__actions {
    width: min(100%, 32ch);
  }
}

.cart-modal__item-thumb {
  display: block;
  width: clamp(32px, 9vw, 49px);
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-left: 15px;
  position: relative;
  background: linear-gradient(180deg, rgba(12, 13, 17, 0.08) 0%, rgba(12, 13, 17, 0.02) 100%);
}

.cart-modal__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-modal__item-thumb img.loaded {
  opacity: 1;
}

.cart-modal__empty {
  text-align: center;
}

input {
  font-size: 16px !important;
}

textarea {
  font-size: 16px !important;
}

.product-new-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(67, 160, 71, 0.9) 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 0 14px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

/* ��� ������� */
.new-products-section {
  margin: 24px auto;
  margin-bottom: 30px;
  overflow: visible;
}

.new-products-section__title {
  margin: -10px auto 12px;
  font-family: var(--font-heading);
  font-size: clamp(12px, 3.2vw, 22px);
  font-weight: 500;
  letter-spacing: clamp(0.04em, 0.45vw, 0.1em);
  text-transform: uppercase;
  line-height: clamp(1.1, 2.2vw, 1.3);
  color: #000000;
  text-decoration: none;
  text-align: center;
  position: relative;
  z-index: 10;
  min-height: var(--highlight-announcement-min-height);
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 12px);
  padding: var(--highlight-announcement-padding-block) var(--highlight-announcement-padding-inline);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
  transform-origin: center;
  will-change: transform;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.new-products-section__title-icon {
  width: clamp(20px, 4vw, 28px);
  height: clamp(20px, 4vw, 28px);
  flex-shrink: 0;
  display: block;
}

@media (max-width: 560px) {
  .new-products-section__title {
    margin-top: 15px;
    font-size: 16px;
  }
}

.new-products-section__title:active {
  opacity: 0.5;
  transform: scale(0.98);
}

.new-products-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: visible;
}

.new-products-slider__wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 50px 0 20px 0;
  margin: -50px 0;
}

.new-products-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  will-change: transform;
  padding: 0 50px;
  margin: 0 -50px;
}

.new-products-section .products-loader {
  flex: 0 0 100%;
}

.new-products-grid .product-card {
  flex: 0 0 200px;
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  box-shadow: none;
  height: 512px;
  animation: slideInCard 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.new-products-slider__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  padding: 0;
}

.new-products-slider__btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

.new-products-slider__btn:active {
  transform: scale(0.95);
}

.new-products-slider__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.new-products-slider__btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  .new-products-slider__btn {
    width: 32px;
    height: 32px;
  }

  .new-products-slider__btn svg {
    width: 16px;
    height: 16px;
  }

  .new-products-slider {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .new-products-section {
    margin: 0 !important;
  }

  .new-products-section.container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .new-products-slider {
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
  }

  .new-products-slider__wrapper {
    flex: 1 !important;
    padding: clamp(20px, 5vw, 50px) 0 !important;
    margin: clamp(-20px, -5vw, -50px) 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
  }




  .new-products-grid {
    gap: 5px !important;
    padding: 0 clamp(12px, 3vw, 50px) !important;
    margin: 0 clamp(-12px, -3vw, -50px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }

  .new-products-grid .product-card {
    flex: 0 0 clamp(152px, 40vw, 285px) !important;
    width: clamp(152px, 40vw, 285px) !important;
    min-width: clamp(152px, 40vw, 285px) !important;
    max-width: clamp(152px, 40vw, 285px) !important;
    box-sizing: border-box !important;
    height: 512px;
  }

  .new-products-slider__btn {
    width: clamp(24px, 6vw, 40px) !important;
    height: clamp(24px, 6vw, 40px) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  .new-products-slider__btn svg {
    width: clamp(12px, 3vw, 20px) !important;
    height: clamp(12px, 3vw, 20px) !important;
  }
}

.seo-intro {
  display: none;
}

/* ===== Плавающая кнопка чата в правом нижнем углу ===== */
.icon-btn.chat-launcher.chat-launcher--floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0c0d11;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(6, 7, 9, 0.28), 0 4px 12px rgba(6, 7, 9, 0.18);
  z-index: 240;
}

.icon-btn.chat-launcher.chat-launcher--floating .icon {
  width: 26px;
  height: 26px;
}

.icon-btn.chat-launcher.chat-launcher--floating:hover {
  background: #1c1e24;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(6, 7, 9, 0.34), 0 6px 16px rgba(6, 7, 9, 0.2);
}

.icon-btn.chat-launcher.chat-launcher--floating:focus,
.icon-btn.chat-launcher.chat-launcher--floating:active {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Прячем плавающую кнопку, пока чат открыт */
body:has(.chat-widget.is-open) .icon-btn.chat-launcher.chat-launcher--floating {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

@media (max-width: 600px) {
  .icon-btn.chat-launcher.chat-launcher--floating {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
}

/* ===== Личный кабинет: дропдаун в шапке ===== */
.header-right {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid rgba(12, 13, 17, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(6, 7, 9, 0.18), 0 4px 16px rgba(6, 7, 9, 0.08);
  padding: 8px;
  z-index: 260;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.account-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.account-menu__header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(12, 13, 17, 0.08);
  margin-bottom: 6px;
}

.account-menu__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__email {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__nav {
  display: flex;
  flex-direction: column;
}

.account-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-menu__item:hover {
  background: rgba(12, 13, 17, 0.06);
}

.account-menu__footer {
  border-top: 1px solid rgba(12, 13, 17, 0.08);
  margin-top: 6px;
  padding-top: 6px;
}

.account-menu__item--logout {
  color: #b3261e;
}

.account-menu__item--logout:hover {
  background: rgba(179, 38, 30, 0.08);
}

/* ===== Страницы входа/регистрации и кабинета ===== */
.auth-page {
  max-width: 640px;
  margin: 32px auto 64px;
  padding: 0 16px;
}

.auth-card {
  background: #fff;
  border: 1px solid rgba(12, 13, 17, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 40px);
}

.auth-card__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-card__divider {
  border: none;
  border-top: 1px solid rgba(12, 13, 17, 0.1);
  margin: 16px 0 24px;
}

.auth-note {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.auth-note a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.auth-row--pair {
  grid-template-columns: 1fr 1fr;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.auth-form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230c0d11' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: var(--neutral-400);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 13, 17, 0.08);
}

.auth-form textarea {
  min-height: 110px;
  resize: vertical;
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 48px;
}

.auth-password__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--neutral-400);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-password__toggle:hover {
  color: var(--text);
  background: rgba(12, 13, 17, 0.05);
}

.auth-password__toggle.is-visible {
  color: var(--text);
}

.auth-password__toggle svg {
  width: 20px;
  height: 20px;
}

.auth-forgot {
  align-self: flex-start;
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-forgot:hover {
  color: var(--accent);
}

.auth-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.24);
  color: #b3261e;
  font-size: 14px;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.auth-btn-primary {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  color: var(--accent-contrast);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.auth-btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(6, 7, 9, 0.2);
}

.auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.auth-btn-secondary {
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.auth-btn-secondary:hover {
  color: var(--accent);
}

/* Профиль */
.profile-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.profile-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(12, 13, 17, 0.08);
}

.profile-list dt {
  color: var(--muted);
  font-size: 14px;
}

.profile-list dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.favorites-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .auth-row,
  .auth-row--pair {
    grid-template-columns: 1fr;
  }

  .auth-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }

  .auth-btn-primary {
    width: 100%;
  }

  .account-menu {
    right: -8px;
    min-width: 220px;
  }
}

a.auth-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Автозаполнение браузера: убираем жёлтый фон, оставляем белый в теме сайта */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-out 0s;
}

/* ===== Кастомный select (страна) — список раскрывается вниз единым блоком ===== */
.auth-select {
  position: relative;
}

.auth-select__control {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, border-radius 0.15s ease;
}

.auth-select__control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 13, 17, 0.08);
}

.auth-select__chevron {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text);
  transition: transform 0.18s ease;
}

.auth-select.is-open .auth-select__control {
  border-color: var(--accent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
}

.auth-select.is-open .auth-select__chevron {
  transform: rotate(180deg);
}

.auth-select__list {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--accent);
  border-top: 1px solid rgba(12, 13, 17, 0.08);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 36px rgba(6, 7, 9, 0.12);
  z-index: 30;
  max-height: 260px;
  overflow-y: auto;
}

.auth-select__option {
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}

.auth-select__option:hover,
.auth-select__option.is-active {
  background: rgba(12, 13, 17, 0.06);
}

.auth-select__option.is-selected {
  font-weight: 600;
}

/* ===== Страница входа/регистрации: без подвала, окно по центру экрана ===== */
.auth-body .site-footer {
  display: none;
}

.auth-body .page-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding-block: 24px;
}

.auth-body .page-content > .container {
  width: 100%;
}

.auth-body .auth-page {
  margin-top: 0;
  margin-bottom: 0;
}
