:root {
  --red: #f34350;
  --red-hover: #d93644;
  --dark: #0f1923;
  --cream: #ece8e3;
  --cream-light: #ece8e1;
  --white: #f3f3f3;
  --text-dark: #0f1923;
  --footer-bg: #0f1923;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(15, 25, 35, 0.08);
  --transition: 0.2s ease-in-out;
  --max-width: 1200px;
  --font: 'Tektur', 'Arial', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.seo-intro {
  padding: 32px 0 40px;
  background: var(--cream-light);
  border-top: 1px solid rgba(15, 25, 35, 0.06);
}

.seo-intro__title {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--dark);
}

.seo-intro__text {
  margin: 0;
  max-width: 72ch;
  line-height: 1.6;
  color: #4a5560;
  font-size: 0.95rem;
}

body {
  margin: 0;
  font-family: 'Tektur', 'Arial', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#site-header {
  flex-shrink: 0;
}

#site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

main,
.support-page,
.content-page,
.product-page,
.payment-page {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid rgba(15, 25, 35, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--red);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
}

.header__burger span {
  display: block;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  transition: var(--transition);
}

.header__burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__burger.open span:nth-child(2) {
  opacity: 0;
}

.header__burger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 80px 0 0;
  background: var(--cream);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 25, 35, 0.08);
}

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 25, 35, 0.3) 0%, rgba(15, 25, 35, 0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  max-width: 800px;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 500;
  color: var(--cream-light);
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.warranty-banner {
  background: var(--cream);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(15, 25, 35, 0.06);
  transition: background var(--transition);
}

.warranty-banner:hover {
  background: #e5e0da;
}

.warranty-banner p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  max-width: 900px;
  margin-inline: auto;
}

.warranty-banner .highlight {
  color: var(--red);
}

.filters {
  padding: 40px 0 20px;
  background: var(--cream);
}

.filters__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--red);
  color: var(--cream-light);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition);
}

.filter-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.filter-btn:hover {
  background: var(--dark);
  color: var(--cream-light);
}

.catalog {
  padding: 20px 0 60px;
  background: var(--cream);
}

.section-title {
  margin: 48px 0 32px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.06em;
}

.section-title:first-child {
  margin-top: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--card-bg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(15, 25, 35, 0.12);
}

.product-card__link {
  display: block;
  color: inherit;
}

.product-card__image-wrap {
  position: relative;
  padding-bottom: 77%;
  overflow: hidden;
  background: #1a1a2e;
}

.product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__mark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 8px;
  letter-spacing: 0.04em;
  z-index: 2;
}

.product-card__body {
  padding: 16px;
}

.product-card__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  min-height: 56px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-card__price {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.product-card__price-old {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.product-card__currency {
  font-size: 14px;
}

.stats {
  background: var(--dark);
  padding: 60px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stats__item {
  text-align: center;
  padding: 20px 24px;
  position: relative;
}

.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: var(--white);
  opacity: 0.3;
}

.stats__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.stats__number {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.stats__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer {
  background: var(--footer-bg);
  padding: 40px 20px;
  text-align: center;
  width: 100%;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col--brand {
  max-width: 360px;
}

.footer__logo-title {
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.6;
}

.footer__heading {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--red);
}

.footer__bottom {
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.footer__links a {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--red);
}

.footer__sep {
  color: var(--white);
}

.footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.5;
  max-width: 720px;
  margin-inline: auto;
}

.footer__brand {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.7;
  letter-spacing: 0.1em;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.open {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--cream);
  max-width: 560px;
  width: 100%;
  padding: 32px;
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.popup-overlay.open .popup {
  transform: translateY(0);
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 24px;
  line-height: 1;
}

.popup__image {
  max-width: 200px;
  margin: 0 auto 20px;
  border-radius: 4px;
}

.popup__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.popup__text .highlight {
  color: var(--red);
}

.product-page {
  padding: 24px 0 32px;
  background: var(--cream);
}

body[data-seo-rendered="1"] .seo-fallback {
  display: none;
}

.product-detail {
  margin-bottom: 48px;
}

@media (min-width: 769px) {
  .product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

.product-detail__gallery {
  background: #1a1a2e;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-detail__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__mark {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 16px;
}

.product-detail__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 24px;
  line-height: 1.3;
}

.product-detail__prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}

.product-detail__price {
  font-size: 32px;
  font-weight: 700;
}

.product-detail__price-old {
  font-size: 22px;
  color: #999;
  text-decoration: line-through;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  background: #f3f3f3;
  color: #fb2458;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition);
}

.buy-btn:hover {
  background: #e8e8e8;
  transform: scale(1.02);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  text-transform: uppercase;
}

.back-link:hover {
  text-decoration: underline;
}

.content-page {
  padding: 60px 0 80px;
  background: var(--cream);
  min-height: 50vh;
}

.content-page h1 {
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 32px;
}

.content-page__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

.content-page__body p {
  margin: 0 0 16px;
}

.content-page__body h2 {
  font-size: 20px;
  text-transform: uppercase;
  margin: 32px 0 12px;
  letter-spacing: 0.04em;
}

.content-page__body h3 {
  font-size: 16px;
  margin: 24px 0 10px;
}

.content-page__body ul,
.content-page__body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.content-page__body li {
  margin-bottom: 8px;
}

.content-page__body a {
  color: var(--red);
  font-weight: 600;
}

.content-page--legal .content-page__body {
  max-width: 800px;
  background: var(--card-bg);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.content-page__intro {
  font-size: 17px;
  color: #444;
  border-left: 4px solid var(--red);
  padding-left: 16px;
  margin-bottom: 24px !important;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3000;
  background: transparent;
}

.progress-bar__inner {
  height: 100%;
  width: 0;
  background: #505050;
  transition: width 0.3s ease;
}

.progress-bar.loaded .progress-bar__inner {
  width: 100%;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__brand {
    display: none;
  }

  .header__inner {
    min-height: 64px;
    gap: 12px;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .header__logo img {
    height: 42px;
  }

  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .hero {
    min-height: 340px;
  }

  .hero__content {
    padding: 36px 16px;
  }

  .hero__subtitle {
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.05em;
  }

  .warranty-banner {
    padding: 14px 12px;
  }

  .warranty-banner p {
    font-size: 11px;
    line-height: 1.5;
  }

  .search-panel {
    padding: 16px 0 8px;
  }

  .search-panel__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .search-box {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .search-box__input {
    padding: 12px 12px 12px 40px;
    font-size: 16px;
  }

  .filter-select {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .filter-checkbox {
    grid-column: 1 / -1;
    white-space: normal;
    padding: 4px 0;
  }

  .filter-input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .filter-reset {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 14px;
    border: none;
    cursor: pointer;
  }

  .search-panel__meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filters__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13px;
  }

  .results-count {
    text-align: center;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section-title {
    margin: 32px 0 20px;
    font-size: 20px;
  }

  .catalog {
    padding: 12px 0 40px;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats__item:not(:last-child)::after {
    display: none;
  }

  .content-page {
    padding: 32px 0 40px;
  }

  .content-page h1,
  .reviews-page h1,
  .support-page h1 {
    font-size: 24px;
  }

  .content-page--legal .content-page__body {
    padding: 20px 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__col--brand {
    max-width: none;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer__sep {
    display: none;
  }

  .reviews-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card__title {
    font-size: 13px;
  }

  .hero__title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .mobile-menu {
    inset: 64px 0 0;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__brand {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
}

.hero__domain {
  font-size: 14px;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: lowercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.footer__brand {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.7;
  letter-spacing: 0.1em;
}

/* Search panel */
.search-panel {
  background: var(--cream);
  padding: 24px 0 8px;
  border-bottom: 1px solid rgba(15, 25, 35, 0.06);
}

.search-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-box__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.search-box__input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 2px solid transparent;
  background: var(--card-bg);
  font-family: inherit;
  font-size: 14px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition);
}

.search-box__input:focus {
  outline: none;
  border-color: var(--red);
}

.filter-select,
.filter-input {
  padding: 12px 14px;
  border: none;
  background: var(--card-bg);
  font-family: inherit;
  font-size: 14px;
  box-shadow: var(--shadow);
  min-width: 120px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.filter-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.filter-reset {
  padding: 12px 20px;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.filter-reset:hover {
  background: var(--red);
}

.search-panel__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
}

.results-count {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.filter-btn.active-section {
  background: var(--dark);
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.product-card__tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(15, 25, 35, 0.08);
  padding: 3px 8px;
  letter-spacing: 0.04em;
}

.loading {
  text-align: center;
  padding: 60px;
  color: #666;
  font-size: 16px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
}

.empty-state p {
  color: #666;
  margin: 0 0 24px;
}

/* Product page v2 */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 24px;
  color: #666;
  min-width: 0;
  max-width: 100%;
}

.breadcrumbs a {
  color: var(--red);
  flex-shrink: 0;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs__sep {
  flex-shrink: 0;
  color: #bbb;
}

.breadcrumbs__current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.product-page {
  overflow-x: clip;
}

.product-detail > * {
  min-width: 0;
}

@media (min-width: 769px) {
  .product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--dark);
  cursor: zoom-in;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  max-width: 100%;
}

.product-gallery__thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  min-height: 44px;
  overflow: hidden;
  border: 2px solid rgba(15, 25, 35, 0.12);
  border-radius: 3px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
  scroll-snap-align: start;
  touch-action: manipulation;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--red);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.product-detail__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
}

.product-detail__stars {
  color: #ffb800;
  letter-spacing: 2px;
}

.product-detail__discount {
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 16px;
  background: rgba(15, 25, 35, 0.04);
  border-radius: 4px;
}

@media (min-width: 769px) {
  .product-features {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
    padding: 20px;
  }
}

.product-features__item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-features__icon {
  flex-shrink: 0;
  width: 1.5em;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

.product-features__label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-features__value {
  font-size: 13px;
  font-weight: 600;
}

.buy-btn--large {
  width: 100%;
  flex-direction: column;
  padding: 20px;
  gap: 4px;
  background: var(--red);
  color: white;
  margin-bottom: 20px;
}

.pay-methods {
  margin-bottom: 16px;
}

.pay-methods__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  margin-bottom: 10px;
}

.pay-methods__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pay-method {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 2px solid #e8e8e8;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-method__title {
  font-size: 14px;
  font-weight: 700;
}

.pay-method__hint {
  font-size: 11px;
  color: #777;
  line-height: 1.3;
}

.pay-method--active,
.pay-method:hover {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(227, 30, 36, 0.08);
}

.pay-method--active {
  background: #fff7f7;
}

.buy-btn--large small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}

.buy-btn--large:hover {
  background: var(--dark);
  transform: none;
}

.product-trust {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}

.buy-email-inline + .product-trust,
.buy-email-inline ~ .product-trust {
  margin-top: 24px;
}

.buy-email-inline--legacy + .product-trust,
.buy-email-inline--legacy ~ .product-trust {
  margin-top: 28px;
}

.product-trust__item {
  font-size: 13px;
  color: #555;
}

.product-description {
  background: var(--card-bg);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.product-description h2 {
  margin: 0 0 16px;
  font-size: 20px;
  text-transform: uppercase;
}

.product-description p {
  margin: 0;
  line-height: 1.7;
  color: #444;
}

.related-products h2 {
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 32px;
  font-size: 24px;
}

.products-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .products-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .products-grid--4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Product page — mobile (must be after desktop product v2 rules) */
@media (max-width: 768px) {
  .product-page {
    padding: 8px 0 20px;
  }

  .product-page .container {
    width: min(100% - 24px, var(--max-width));
  }

  .breadcrumbs {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .product-detail {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 12px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .product-detail__left {
    order: 1;
  }

  .product-detail__right {
    order: 2;
    padding: 14px 16px 16px;
  }

  .product-gallery {
    gap: 0;
  }

  .product-gallery__main {
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }

  .product-gallery__thumbs {
    gap: 8px;
    padding: 8px 12px 10px;
    margin: 0;
    background: rgba(15, 25, 35, 0.04);
  }

  .product-gallery__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
  }

  .product-detail__mark {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .product-detail__title {
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .product-detail__rating {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .product-detail__prices {
    flex-wrap: wrap;
    margin-bottom: 12px;
    gap: 8px;
  }

  .product-detail__price {
    font-size: 26px;
  }

  .product-detail__price-old {
    font-size: 17px;
  }

  .product-features {
    margin: 0 0 12px;
    padding: 12px;
    gap: 8px;
  }

  .product-features__label {
    font-size: 10px;
  }

  .product-features__value {
    font-size: 12px;
  }

  .buy-btn--large {
    padding: 14px 16px;
    min-height: 50px;
    font-size: 15px;
    margin-bottom: 10px;
  }

  .product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .product-trust__item {
    font-size: 11px;
    line-height: 1.35;
  }

  .product-trust__item:last-child {
    grid-column: auto;
  }

  .product-description {
    padding: 16px;
    margin: 0 0 20px;
  }

  .product-description h2 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .product-description p {
    font-size: 14px;
    line-height: 1.55;
  }

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

  .related-products h2 {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .related-products .product-card__title {
    min-height: auto;
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 480px) {
  .product-detail__title {
    font-size: 15px;
  }

  .product-detail__price {
    font-size: 24px;
  }

  .product-trust {
    grid-template-columns: 1fr;
  }
}

.error-msg {
  text-align: center;
  padding: 80px;
  font-size: 18px;
  color: #666;
}

/* Reviews */
.reviews-page h1 {
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 32px;
}

.reviews-notice {
  background: var(--card-bg);
  border-left: 4px solid var(--red);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.reviews-notice strong {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 14px;
}

.reviews-notice p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.reviews-notice a {
  color: var(--red);
  font-weight: 600;
}

.reviews-form-block {
  background: var(--card-bg);
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
}

.reviews-form-block__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.reviews-form-block__hint {
  margin: 0 0 24px;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.reviews-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.reviews-form__label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #444;
}

.reviews-form__label input,
.reviews-form__label textarea {
  font: inherit;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  resize: vertical;
}

.reviews-form__label input:focus,
.reviews-form__label textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(243, 67, 80, 0.12);
}

.reviews-form__stars {
  display: flex;
  gap: 6px;
}

.reviews-form__star {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #ddd;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, transform 0.15s;
}

.reviews-form__star:hover,
.reviews-form__star--active {
  color: #f5a623;
  transform: scale(1.05);
}

.reviews-form__submit {
  justify-self: start;
  padding: 14px 28px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.reviews-form__submit:hover:not(:disabled) {
  opacity: 0.9;
}

.reviews-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.reviews-form__msg {
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.reviews-form__msg--success {
  background: #e8f8ef;
  color: #1a7a3a;
}

.reviews-form__msg--error {
  background: #fdecea;
  color: #c0392b;
}

.reviews-list-title {
  margin: 0 0 24px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.reviews-empty {
  color: #777;
  margin: 0;
}

.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  background: var(--card-bg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  align-items: center;
}

.reviews-summary__score {
  text-align: center;
  min-width: 120px;
}

.reviews-summary__number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.reviews-summary__stars {
  color: #ffb800;
  letter-spacing: 2px;
  margin: 8px 0;
}

.reviews-summary__count {
  font-size: 13px;
  color: #888;
}

.reviews-bar {
  display: grid;
  grid-template-columns: 40px 1fr 30px;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.reviews-bar__track {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.reviews-bar__fill {
  height: 100%;
  background: #ffb800;
  border-radius: 4px;
}

.reviews-list {
  display: grid;
  gap: 16px;
}

.reviews-load-more {
  display: block;
  margin: 32px auto 0;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.reviews-load-more:hover:not(:disabled) {
  background: var(--red);
  color: #fff;
}

.reviews-load-more:disabled {
  opacity: 0.6;
  cursor: wait;
}

.reviews-load-more[hidden] {
  display: none;
}

.review-card {
  background: var(--card-bg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-card__author {
  font-weight: 700;
  font-size: 15px;
}

.review-card__date {
  font-size: 12px;
  color: #999;
}

.review-card__stars {
  margin-bottom: 12px;
}

.review-star {
  color: #ddd;
  font-size: 16px;
}

.review-star--filled {
  color: #ffb800;
}

.review-card__text {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #444;
}

.review-card__product {
  font-size: 12px;
  color: #999;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

@media (max-width: 1024px) {
  .products-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Gallery lightbox */
.product-gallery__zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.product-gallery__zoom:hover {
  background: var(--red);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, 0.95);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
}

.gallery-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 32px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
  background: var(--red);
}

.gallery-lightbox__close { top: 20px; right: 20px; font-size: 28px; }
.gallery-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

.gallery-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 16px;
}

.product-trust a {
  color: var(--red);
}

/* Support chat page */
.support-page {
  padding: 40px 0 32px;
  background: var(--cream);
}

.support-page__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.support-page h1 {
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 32px;
}

.support-page__list {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

.support-page__list li {
  padding: 8px 0;
  font-size: 15px;
}

.support-page__note {
  font-size: 13px;
  color: #666;
}

.chat-widget {
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
}

.chat-widget__header {
  background: var(--dark);
  color: white;
  padding: 16px 20px;
}

.chat-widget__status {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.chat-widget__name-form {
  padding: 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #eee;
}

.chat-widget__name-form.hidden {
  display: none;
}

.chat-widget__name-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
}

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
}

.chat-msg--visitor {
  align-self: flex-end;
  text-align: right;
}

.chat-msg--admin {
  align-self: flex-start;
}

.chat-msg__bubble {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 12px;
}

.chat-msg--visitor .chat-msg__bubble {
  background: var(--red);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-msg--admin .chat-msg__bubble {
  background: #f0f0f0;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.chat-msg__time {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.chat-limit-banner {
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff8ef 0%, #fff5f5 100%);
  border-top: 1px solid #fed7aa;
  border-bottom: 1px solid #fecaca;
}

.chat-limit__inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-limit__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 12px;
}

.chat-limit__title {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #9a3412;
}

.chat-limit__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #7c4a12;
}

.chat-limit__until {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
}

.chat-widget__input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eee;
}

.chat-widget__input input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  font-family: inherit;
}

.chat-widget__input button {
  flex-shrink: 0;
  min-width: 44px;
  padding: 0 14px;
  background: var(--red);
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.chat-widget__input button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .support-page__inner {
    grid-template-columns: 1fr;
  }

  .chat-widget {
    height: 450px;
  }
}

/* ── Inline email field (modal disabled) ───────────────────────────────── */
.buy-email-inline {
  margin-top: 12px;
}

.buy-email-inline__input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.buy-email-inline__note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.65;
}

.buy-email-inline__error {
  margin: 4px 0 0;
  font-size: 12px;
  color: #ff4655;
}

.buy-email-inline__error.hidden { display: none; }

/* Legacy inline */
.buy-email-inline--legacy {
  margin-top: 12px;
}

.buy-email-inline--legacy .buy-email-inline__input {
  border: 1px solid #ccc;
  background: #fff;
  color: var(--text-dark);
}

.buy-email-inline--legacy .buy-email-inline__input::placeholder {
  color: #999;
}

.buy-email-inline--legacy .buy-email-inline__input:focus {
  border-color: var(--red);
}

.buy-email-inline--legacy .buy-email-inline__note {
  color: var(--text-dark);
}

/* v2 inline (dark) */
.buy-email-inline--v2 .buy-email-inline__input {
  border: 1px solid #ff4655;
  background: rgba(0,0,0,0.28);
  color: #f4f5f7;
  box-shadow: 0 0 0 1px rgba(255,70,85,0.35);
}

.buy-email-inline--v2 .buy-email-inline__input::placeholder {
  color: rgba(244,245,247,0.35);
}

.buy-email-inline--v2 .buy-email-inline__input:focus {
  border-color: var(--v2-red, #ff4655);
}

.buy-email-inline--v2 .buy-email-inline__note {
  color: var(--v2-muted, #9aa3ad);
}

/* v2 light theme */
html[data-theme='light'] .buy-email-inline--v2 .buy-email-inline__input {
  background: #fff;
  color: #0f1923;
  border-color: rgba(15,25,35,0.14);
}

html[data-theme='light'] .buy-email-inline--v2 .buy-email-inline__input::placeholder {
  color: #8a95a0;
}

html[data-theme='light'] .buy-email-inline--v2 .buy-email-inline__note {
  color: #5c6773;
}

/* ── Email-modal before purchase ────────────────────────────────────────── */
.buy-email-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 16, 24, 0.72);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.buy-email-modal-overlay.visible {
  display: flex;
}

.buy-email-modal {
  position: relative;
  background: #162330;
  border: 1px solid #1e3045;
  border-radius: 14px;
  padding: 32px 28px 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.buy-email-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #8a95a0;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.buy-email-modal__close:hover {
  color: #fff;
}

.buy-email-modal__title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

.buy-email-modal__note {
  margin: 0 0 20px;
  font-size: 13px;
  color: #8a95a0;
  line-height: 1.5;
}

.buy-email-modal__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #1e3045;
  border-radius: 8px;
  background: #0f1923;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 8px;
  font-family: inherit;
}

.buy-email-modal__input:focus {
  border-color: #ff4655;
}

.buy-email-modal__input::placeholder {
  color: #4a5560;
}

.buy-email-modal__error {
  margin: 0 0 12px;
  font-size: 13px;
  color: #ff6b74;
}

.buy-email-modal__error.hidden {
  display: none;
}

.buy-email-modal__actions {
  display: block;
  margin-top: 16px;
}

.buy-email-modal__btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.buy-email-modal__btn:hover {
  opacity: 0.85;
}

.buy-email-modal__btn--primary {
  background: #ff4655;
  color: #fff;
}

/* Legacy/old design style */
.buy-email-modal--legacy {
  background: var(--cream);
  border: 1px solid #d8d3cc;
  box-shadow: 0 20px 40px rgba(15, 25, 35, 0.22);
  font-family: var(--font);
}

.buy-email-modal--legacy .buy-email-modal__title {
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.buy-email-modal--legacy .buy-email-modal__note {
  color: #4f5760;
}

.buy-email-modal--legacy .buy-email-modal__input {
  background: #fff;
  color: var(--text-dark);
  border-color: #d6d6d6;
}

.buy-email-modal--legacy .buy-email-modal__input::placeholder {
  color: #8b9096;
}

.buy-email-modal--legacy .buy-email-modal__close {
  color: #6f7881;
}

.buy-email-modal--legacy .buy-email-modal__close:hover {
  color: var(--text-dark);
}

.buy-email-modal--legacy .buy-email-modal__btn--primary {
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* v2 dark style */
.buy-email-modal--v2 {
  background: linear-gradient(145deg, #141c26, #0f1923);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.buy-email-modal--v2 .buy-email-modal__title,
.buy-email-modal--v2 .buy-email-modal__input,
.buy-email-modal--v2 .buy-email-modal__btn {
  font-family: var(--v2-font, 'Manrope', system-ui, -apple-system, sans-serif);
}

.buy-email-modal--v2 .buy-email-modal__btn--primary {
  background: linear-gradient(135deg, var(--v2-red, #ff4655), #ff6b4a);
  box-shadow: 0 8px 32px var(--v2-red-glow, rgba(255, 70, 85, 0.45));
}

.buy-email-modal__icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}

.buy-email-modal__form {
  display: flex;
  flex-direction: column;
}

.buy-email-field {
  display: block;
  margin-top: 2px;
}

.buy-email-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #c8d0d8;
}

.buy-email-field__optional {
  font-weight: 400;
  color: #8a95a0;
  font-size: 12px;
}

.buy-email-modal .buy-promo-field {
  margin-bottom: 16px;
}

.buy-email-modal .buy-promo-field__label {
  color: #c8d0d8;
}

.buy-email-modal .buy-checkout-input,
.buy-email-modal .buy-email-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}

.buy-email-modal .buy-checkout-input::placeholder,
.buy-email-modal .buy-email-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.buy-email-modal .buy-checkout-input:focus,
.buy-email-modal .buy-email-modal__input:focus {
  border-color: rgba(255, 70, 85, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.14);
}

.buy-email-modal .buy-promo-field__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.buy-email-modal .buy-promo-field__input {
  flex: 1;
  min-width: 0;
}

.buy-email-modal .buy-promo-field__apply {
  flex-shrink: 0;
  padding: 0 16px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 70, 85, 0.45);
  background: rgba(255, 70, 85, 0.14);
  color: #ff8a94;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.buy-email-modal .buy-promo-field__apply:hover {
  background: rgba(255, 70, 85, 0.24);
  border-color: rgba(255, 70, 85, 0.65);
  color: #fff;
}

.buy-email-modal .buy-promo-field__status--ok {
  color: #5ee89a;
}

.buy-email-modal .buy-promo-field__status--err {
  color: #ff8a94;
}

.buy-email-modal .buy-email-modal__actions {
  margin-top: 20px;
}

.buy-email-modal .buy-email-modal__btn--primary {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* v2 light theme */
html[data-theme='light'] .buy-email-modal--v2,
.buy-email-modal--light.buy-email-modal--v2 {
  background: linear-gradient(145deg, #ffffff, #f4f6f8);
  border-color: rgba(15, 25, 35, 0.12);
  box-shadow: 0 20px 48px rgba(15, 25, 35, 0.14);
}

html[data-theme='light'] .buy-email-modal--v2 .buy-email-modal__title,
.buy-email-modal--light.buy-email-modal--v2 .buy-email-modal__title {
  color: #0f1923;
}

html[data-theme='light'] .buy-email-modal--v2 .buy-email-modal__note,
.buy-email-modal--light.buy-email-modal--v2 .buy-email-modal__note {
  color: #5c6773;
}

html[data-theme='light'] .buy-email-modal--v2 .buy-email-modal__input,
.buy-email-modal--light.buy-email-modal--v2 .buy-email-modal__input {
  background: #fff;
  color: #0f1923;
  border-color: rgba(15, 25, 35, 0.12);
}

html[data-theme='light'] .buy-email-modal--v2 .buy-email-modal__input::placeholder,
.buy-email-modal--light.buy-email-modal--v2 .buy-email-modal__input::placeholder {
  color: #6b7580;
}

html[data-theme='light'] .buy-email-modal--v2 .buy-email-modal__close,
.buy-email-modal--light.buy-email-modal--v2 .buy-email-modal__close {
  color: #6b7580;
}

html[data-theme='light'] .buy-email-modal--v2 .buy-email-modal__close:hover,
.buy-email-modal--light.buy-email-modal--v2 .buy-email-modal__close:hover {
  color: #0f1923;
}

html[data-theme='light'] .buy-email-modal--v2 .buy-email-field__label,
.buy-email-modal--light.buy-email-modal--v2 .buy-email-field__label,
html[data-theme='light'] .buy-email-modal--v2 .buy-promo-field__label,
.buy-email-modal--light.buy-email-modal--v2 .buy-promo-field__label {
  color: #3d4a56;
}

html[data-theme='light'] .buy-email-modal--v2 .buy-checkout-input,
.buy-email-modal--light.buy-email-modal--v2 .buy-checkout-input {
  background: #fff;
  color: #0f1923;
  border-color: rgba(15, 25, 35, 0.12);
}

html[data-theme='light'] .buy-email-modal--v2 .buy-checkout-input::placeholder,
.buy-email-modal--light.buy-email-modal--v2 .buy-checkout-input::placeholder {
  color: #9aa3ad;
}

html[data-theme='light'] .buy-email-modal--v2 .buy-promo-field__apply,
.buy-email-modal--light.buy-email-modal--v2 .buy-promo-field__apply {
  background: rgba(255, 70, 85, 0.08);
  color: #ff4655;
  border-color: rgba(255, 70, 85, 0.35);
}

/* Inline promo on product page (v2) */
.v2 .buy-email-inline .buy-checkout-input,
.v2 .buy-promo-field__input.buy-checkout-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
}

.v2 .buy-email-inline .buy-checkout-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.v2 .buy-promo-field__apply {
  border: 1px solid rgba(255, 70, 85, 0.45);
  background: rgba(255, 70, 85, 0.14);
  color: #ff8a94;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 600;
}

html[data-theme='light'] .v2 .buy-email-inline .buy-checkout-input,
html[data-theme='light'] .v2 .buy-promo-field__input.buy-checkout-input {
  background: #fff;
  color: #0f1923;
  border-color: rgba(15, 25, 35, 0.12);
}

@media (max-width: 480px) {
  .buy-email-modal {
    padding: 24px 18px 20px;
  }
}

/* Welcome promo popup */
.welcome-popup-overlay .welcome-popup {
  max-width: 420px;
  text-align: center;
  padding: 28px 24px 24px;
}

.welcome-popup__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #ff4655;
  margin-bottom: 8px;
}

.welcome-popup__title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.welcome-popup__text {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.welcome-popup__code-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.welcome-popup__code {
  font-family: ui-monospace, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border: 2px dashed #ff4655;
  border-radius: 10px;
  background: rgba(255, 70, 85, 0.08);
}

.welcome-popup__copy {
  border: none;
  background: #0f1923;
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
}

.welcome-popup__email-label {
  display: block;
  text-align: left;
  margin-bottom: 14px;
  font-size: 13px;
}

.welcome-popup__email {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
}

.welcome-popup__cta {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #ff4655, #d93a48);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

.welcome-popup__hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #888;
}

html[data-theme='dark'] .welcome-popup__text,
.v2 .welcome-popup__text {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme='dark'] .welcome-popup__email,
.v2 .welcome-popup__email {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Promo field at checkout */
.buy-promo-field {
  display: block;
  margin-bottom: 14px;
  text-align: left;
}

.buy-promo-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.buy-promo-field__row {
  display: flex;
  gap: 8px;
}

.buy-promo-field__input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.buy-promo-field__apply {
  border: none;
  background: #0f1923;
  color: #fff;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.buy-promo-field__status {
  margin: 8px 0 0;
  font-size: 12px;
}

.buy-promo-field__status--ok {
  color: #1a7f37;
}

.buy-promo-field__status--err {
  color: #c62828;
}

.buy-email-inline .buy-promo-field {
  margin-top: 12px;
}

.payment-card__discount,
.payment-card__original {
  margin: 6px 0;
  font-size: 14px;
  color: #666;
}

/* Floating VPN promo (avoid *-ad class names — blocked by mobile adblockers) */
.vp-vpn-float {
  position: fixed;
  left: 16px;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 10500;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "badge badge close"
    "icon body cta";
  gap: 6px 10px;
  align-items: center;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #13202c 0%, #0f1923 70%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color: #f4f5f7;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.vp-vpn-float.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.vp-vpn-float__close {
  grid-area: close;
  justify-self: end;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.vp-vpn-float__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.vp-vpn-float__badge {
  grid-area: badge;
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vp-vpn-float__icon {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
}

.vp-vpn-float__body {
  grid-area: body;
  min-width: 0;
}

.vp-vpn-float__title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.vp-vpn-float__text {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(244, 245, 247, 0.72);
}

.vp-vpn-float__cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: #052f38;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.vp-vpn-float__cta:hover {
  filter: brightness(1.06);
}

@media (max-width: 640px) {
  .vp-vpn-float {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: auto;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "badge close"
      "icon body"
      "cta cta";
  }

  .vp-vpn-float__cta {
    width: 100%;
    min-height: 44px;
  }
}
