/* Timehouse — дизайн-система как на React-сайте */

:root {
  --background: 40 20% 98%;
  --foreground: 160 10% 15%;
  --card: 0 0% 100%;
  --primary: 160 35% 25%;
  --primary-foreground: 40 20% 98%;
  --secondary: 40 10% 95%;
  --muted: 40 10% 92%;
  --muted-foreground: 160 5% 45%;
  --border: 40 10% 90%;
  --forest: 160 35% 25%;
  --forest-light: 160 25% 35%;
  --charcoal: 160 10% 15%;
  --cream: 40 20% 98%;
  --gold: 42 45% 50%;
  /* Как реально рендерится time-house.com: Cormorant/Inter в CSS есть,
     но шрифты не подгружаются → fallback Georgia + system-ui. */
  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition-elegant: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 0px;
  --header-h: 5rem;
  --max: 80rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.th-body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-weight: 300; /* как на time-house.com */
  letter-spacing: 0.01em;
  line-height: 1.7;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

ul { margin: 0; padding: 0; list-style: none; }

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

.th-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 1rem;
}

.th-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Layout */
.th-container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .th-container { padding: 0 3rem; }
}

.th-container--narrow { max-width: 56rem; }
.th-container--form { max-width: 36rem; }
.th-center { text-align: center; }
.th-mt-12 { margin-top: 3rem; }
.th-mb-12 { margin-bottom: 3rem; }
.th-mb-16 { margin-bottom: 4rem; }

.th-main { padding-top: var(--header-h); min-height: 60vh; }

/* Buttons */
.btn-primary,
.btn-outline,
button.button,
a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--transition-elegant);
  text-align: center;
  border-radius: var(--radius);
  line-height: 1.2;
}

.btn-primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce input.button.alt,
.single_add_to_cart_button {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground)) !important;
}

.btn-primary:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.single_add_to_cart_button:hover {
  background: hsl(var(--forest-light));
}

.btn-outline {
  border: 1px solid hsl(var(--foreground));
  background: transparent;
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.link-elegant {
  position: relative;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.link-elegant::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: hsl(var(--foreground));
  transition: width 0.4s var(--transition-elegant);
}

.link-elegant:hover::after,
.link-elegant.is-active::after {
  width: 100%;
}

/* Header */
.th-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}

.th-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  position: relative;
}

.th-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem; /* text-2xl как на time-house.com */
  line-height: 2rem;
  letter-spacing: 0.15em; /* tracking-luxury */
  color: hsl(var(--foreground)); /* чёрный/charcoal */
  text-decoration: none;
}

.th-logo--footer {
  position: static;
  transform: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.th-nav--desktop { display: none; }
.th-nav__list {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* WP-меню без класса link-elegant — те же стили, что на time-house.com */
.th-nav--desktop .th-nav__list > li > a {
  position: relative;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--foreground)); /* чёрный, в т.ч. Каталог */
  text-decoration: none;
}

.th-nav--desktop .th-nav__list > li > a:hover,
.th-nav--desktop .th-nav__list > li.current-menu-item > a,
.th-nav--desktop .th-nav__list > li.current_page_item > a,
.th-nav--desktop .th-nav__list > li > a.is-active {
  color: hsl(var(--foreground));
}

.th-nav--desktop .th-nav__list > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: hsl(var(--foreground));
  transition: width 0.4s var(--transition-elegant);
}

.th-nav--desktop .th-nav__list > li > a:hover::after,
.th-nav--desktop .th-nav__list > li.current-menu-item > a::after,
.th-nav--desktop .th-nav__list > li.current_page_item > a::after,
.th-nav--desktop .th-nav__list > li > a.is-active::after {
  width: 100%;
}

.th-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.th-icon-btn {
  position: relative;
  display: inline-flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  transition: opacity 0.3s;
}

.th-icon-btn:hover { opacity: 0.6; }
.th-icon-btn--desktop { display: none; }

.th-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.th-header__menu-btn {
  display: inline-flex;
  padding: 0.5rem;
  margin-left: -0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
}

.th-nav--mobile {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.th-nav--mobile[hidden] { display: none; }

.th-nav--mobile nav {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.25rem;
}

.th-nav--mobile a {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300; /* font-light как на time-house.com */
  color: hsl(var(--foreground)); /* чёрный, в т.ч. Каталог */
  text-decoration: none;
}

.th-nav--mobile a:hover,
.th-nav--mobile .current-menu-item > a,
.th-nav--mobile .current_page_item > a {
  color: hsl(var(--foreground));
}

.th-nav--mobile__actions {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 1024px) {
  .th-header__menu-btn { display: none; }
  .th-nav--desktop { display: block; }
  .th-icon-btn--desktop { display: inline-flex; }
  .th-nav--mobile { display: none !important; }
}

/* Search panel */
.th-search-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: hsl(var(--background) / 0.98);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8rem;
}

.th-search-panel[hidden] { display: none; }

.th-search-panel__inner {
  width: min(36rem, 90%);
  position: relative;
}

.th-search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.th-search-form input[type="search"] {
  width: 100%;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.th-search-form input:focus {
  border-color: hsl(var(--foreground));
}

.th-search-panel__close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.th-search-suggest {
  margin-top: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  max-height: min(60vh, 28rem);
  overflow: auto;
}

.th-search-suggest[hidden] { display: none; }

.th-search-suggest__list {
  display: flex;
  flex-direction: column;
}

.th-search-suggest__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid hsl(var(--border));
  transition: background 0.15s ease;
}

.th-search-suggest__item:last-child { border-bottom: 0; }

.th-search-suggest__item:hover,
.th-search-suggest__item:focus-visible {
  background: hsl(var(--secondary));
  outline: none;
}

.th-search-suggest__item--brand {
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.th-search-suggest__thumb {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  background: hsl(var(--secondary));
  overflow: hidden;
}

.th-search-suggest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.th-search-suggest__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.th-search-suggest__meta {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.th-search-suggest__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-search-suggest__price {
  font-size: 0.875rem;
}

.th-search-suggest__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

/* Typography helpers */
.th-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem;
}

.th-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.th-heading--xl { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.th-heading--lg { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.th-heading--sm { font-size: 1.25rem; }

.th-lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin: 0 0 2rem;
}

.th-muted { color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.7; }

.th-seo-intro {
  padding: 3rem 0 4rem;
  border-top: 1px solid hsl(var(--border));
}
.th-seo-intro__text p { margin: 0 0 1rem; }
.th-seo-intro__text a { text-decoration: underline; text-underline-offset: 2px; }
.th-link:hover { color: hsl(var(--foreground)); }

.th-page-hero { padding: 3.5rem 0 2.5rem; }
@media (min-width: 768px) {
  .th-page-hero { padding: 5.5rem 0 3.5rem; }
}
.th-section { padding: 3.5rem 0; }
@media (min-width: 768px) {
  .th-section { padding: 4.5rem 0; }
}
.th-section--muted { background: hsl(var(--secondary)); }

.th-prose p { color: hsl(var(--muted-foreground)); margin: 0 0 1.5rem; line-height: 1.8; }
.th-prose p:last-child { margin-bottom: 0; }
.th-prose h2,
.th-prose h3 {
  margin-top: 2rem;
  text-align: inherit;
}

.th-split {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .th-split { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.th-values {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .th-values { grid-template-columns: repeat(3, 1fr); }
}

/* Category nav */
.th-category-nav { padding: 1.5rem 0; }

.th-category-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .th-category-nav__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
  }
}

.th-category-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.th-category-nav__item:hover,
.th-category-nav__item.is-active { opacity: 1; }

.th-category-nav__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: hsl(var(--secondary));
  border-radius: 0; /* как на time-house.com */
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow 0.3s;
}

.th-category-nav__item.is-active .th-category-nav__image {
  box-shadow: 0 0 0 1px hsl(var(--primary));
}

.th-category-nav__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.th-category-nav__item:hover .th-category-nav__image img {
  transform: scale(1.05);
}

.th-category-nav__label {
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem; /* text-xs как на time-house.com */
  font-weight: 300;
  letter-spacing: 0.15em; /* tracking-luxury */
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  text-align: center;
  line-height: 1.25;
  /* как на старом: без nowrap — иначе «Классические» съезжает на мобилке */
  white-space: normal;
}

.th-category-nav__item.is-active .th-category-nav__label {
  color: hsl(var(--primary));
}

.th-category-nav__item:hover .th-category-nav__label {
  color: hsl(var(--foreground));
}

/* Products grid — override WooCommerce float/width (иначе карточки сжимаются в «палки») */
.th-products-section { padding: 2rem 0 3rem; }

.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products.columns-4,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem !important;
  list-style: none !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* Каталог / категории / бренды — как на главной: 2 в ряд на мобилке */
.th-main--shop .woocommerce ul.products,
.th-main--shop ul.products,
.woocommerce-shop .woocommerce ul.products,
.tax-product_cat .woocommerce ul.products,
.tax-product_brand .woocommerce ul.products {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
}

@media (min-width: 640px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .th-main--shop .woocommerce ul.products,
  .th-main--shop ul.products,
  .woocommerce-shop .woocommerce ul.products,
  .tax-product_cat .woocommerce ul.products,
  .tax-product_brand .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
  }

  .th-main--shop .woocommerce ul.products,
  .th-main--shop ul.products,
  .woocommerce-shop .woocommerce ul.products,
  .tax-product_cat .woocommerce ul.products,
  .tax-product_brand .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1280px) {
  .th-main--shop .woocommerce ul.products,
  .th-main--shop ul.products,
  .woocommerce-shop .woocommerce ul.products,
  .tax-product_cat .woocommerce ul.products,
  .tax-product_brand .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product,
li.product-card {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

/* Скрыть WC-сортировку/счётчик — на React их нет */
.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

.product-card {
  background: hsl(var(--card));
  overflow: hidden;
  border-radius: 0.75rem;
  transition: box-shadow 0.5s var(--transition-elegant);
  list-style: none;
  width: 100%;
  min-width: 0;
}

.product-card:hover { box-shadow: 0 10px 30px hsl(var(--foreground) / 0.08); }

.product-card__visual {
  position: relative;
}

.product-card__image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: hsl(var(--secondary));
}

.product-card__image img.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.product-card__image img.product-image.is-active {
  opacity: 1;
}

.product-card__image img.product-image:first-child {
  opacity: 1;
}

.product-card__wish {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: inline-flex;
  padding: 0.5rem;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  color: inherit;
}

.product-card:hover .product-card__wish,
.product-card__wish.is-active { opacity: 1; }

.product-card__wish.is-active { color: #ef4444; }
.product-card__wish.is-active svg { fill: #ef4444; }

.product-card__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
}

.product-card__info {
  padding: 1rem; /* p-4 как на time-house.com */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  color: inherit;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .product-card__info {
    padding: 1.5rem; /* lg:p-6 */
  }
}

.product-card__brand {
  font-family: var(--font-body);
  font-size: 0.75rem; /* 12px text-xs */
  font-weight: 300; /* как на time-house.com */
  letter-spacing: 0.15em; /* tracking-luxury */
  text-transform: uppercase;
  color: hsl(var(--muted-foreground)); /* rgb(109,120,117) */
  margin: 0 0 0.25rem;
  line-height: 1.333; /* 16px */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__title,
.woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
  font-size: 1.125rem !important; /* 18px text-lg */
  font-weight: 300 !important;
  margin: 0 0 0.75rem !important;
  line-height: 1.555 !important; /* 28px как на time-house.com */
  letter-spacing: 0.02em;
  color: hsl(var(--foreground)) !important;
  min-height: 3.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: break-word;
}

.product-card__price {
  margin: 0;
  margin-top: auto;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important; /* 14px text-sm */
  font-weight: 300 !important;
  letter-spacing: 0.05em !important; /* 0.7px как на time-house.com */
  line-height: 1.4286 !important; /* 20px */
  color: hsl(var(--foreground)) !important;
  white-space: nowrap;
}

.product-card__price .amount,
.product-card__price .woocommerce-Price-amount,
.product-card__price bdi,
.product-card__price .woocommerce-Price-currencySymbol {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  white-space: nowrap;
}

/* Condition badges */
.condition-badge-n,
.condition-badge-a,
.condition-badge-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid hsl(var(--border));
}

.condition-badge-n {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.condition-badge-a {
  background: #C9D3C7;
  color: #2F4A3F;
  border-color: #B6C1B5;
}

.condition-badge-b {
  background: #D6CDD8;
  color: #6E5F76;
  border-color: #C5BBC9;
}

/* Trust */
.th-trust {
  padding: 5rem 0;
  background: hsl(var(--secondary));
}

.th-trust__intro { margin-bottom: 4rem; }

.th-trust__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .th-trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .th-trust__grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--transition-elegant) forwards;
}

.trust-badge-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--primary));
}

.trust-badge p {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA + brands */
.th-cta-section { padding: 4rem 0 5rem; }

.th-brands {
  padding: 4rem 0 5rem;
  border-top: 1px solid hsl(var(--border));
}

.th-brands__track {
  overflow: hidden;
  margin-top: 3rem;
}

.th-brands__row {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  width: max-content;
  animation: brandScroll 40s linear infinite;
}

.th-brands__track:hover .th-brands__row { animation-play-state: paused; }

.th-brands__item {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  color: hsl(var(--muted-foreground) / 0.6);
  font-weight: 300;
  min-width: 180px;
  text-align: center;
  user-select: none;
}

a.th-brands__item--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground) / 0.75);
  text-decoration: none;
  transition: color 0.25s, opacity 0.25s;
  min-width: 140px;
}
a.th-brands__item--link:hover {
  color: hsl(var(--foreground));
  opacity: 1;
}

.th-brands__logo {
  display: block;
  width: 140px;
  height: 40px;
  object-fit: contain;
  background: #f7f5f2;
  flex-shrink: 0;
}

.th-brands__lead {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: 0.95rem;
}

.th-brands--catalog { padding-bottom: 2rem; }
.th-brands--marketing { padding-top: 2rem; border-top: 0; }

.th-brands-nav-wrap {
  padding: 0.5rem 0 1.25rem;
}

.th-brands-nav__label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.th-brands-nav__rail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.th-brands-nav__btn {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.th-brands-nav.is-scrollable .th-brands-nav__btn {
  display: inline-flex;
}

.th-brands-nav__btn:hover:not(:disabled) {
  background: hsl(var(--secondary));
  border-color: hsl(var(--foreground) / 0.25);
}

.th-brands-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.th-brands-nav__scroller {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.th-brands-nav__scroller::-webkit-scrollbar {
  display: none;
}

.th-brands-nav.is-scrollable .th-brands-nav__scroller {
  mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
}

.th-brands-nav__list {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0;
  width: max-content;
  max-width: none;
}

.th-brands-nav__item {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.th-brands-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid hsl(var(--border));
  font-size: 0.875rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  text-decoration: none;
  background: hsl(var(--background));
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.th-brands-nav__link:hover,
.th-brands-nav__link.is-active {
  background: hsl(var(--secondary));
  border-color: hsl(var(--foreground) / 0.25);
}

.th-brands-nav__logo {
  display: block;
  width: 88px;
  height: 28px;
  object-fit: contain;
  background: #f7f5f2;
  flex-shrink: 0;
}

.th-brands-nav__name {
  line-height: 1.2;
  white-space: nowrap;
}

.th-brands-nav__count {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .th-brands-nav.is-scrollable .th-brands-nav__btn {
    display: inline-flex;
  }
}

@keyframes brandScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer */
.th-footer {
  background: hsl(var(--secondary));
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 0 0;
}

.th-footer__grid {
  display: grid;
  gap: 3rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .th-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
}
@media (min-width: 1024px) {
  .th-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; }
}

.th-footer__tagline {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.th-footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.th-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.th-footer__nav a {
  font-size: 0.875rem;
  font-weight: 400;
  transition: opacity 0.3s;
}

.th-footer__nav a:hover { opacity: 0.6; }

.th-footer__bottom {
  padding: 2rem 0;
  border-top: 1px solid hsl(var(--border));
}

.th-footer__bottom p {
  margin: 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.05em;
}

/* Float chat — как FloatingChat на React */
.th-float-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
}

.th-float-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: 18rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px hsl(var(--foreground) / 0.12);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.th-float-chat__panel[hidden] {
  display: block;
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
}

.th-float-chat__panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.th-float-chat__panel-inner { padding: 1.5rem; }

.th-float-chat__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  margin: 0 0 0.5rem;
}

.th-float-chat__text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.th-float-chat__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.th-float-chat__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

.th-float-chat__close-text {
  width: 100%;
  background: none;
  border: 0;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.2s;
}

.th-float-chat__close-text:hover { color: hsl(var(--foreground)); }

.th-float-chat__fab {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--charcoal));
  color: hsl(var(--cream));
  border: 0;
  box-shadow: 0 4px 16px hsl(var(--foreground) / 0.16);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.th-float-chat__fab:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px hsl(var(--foreground) / 0.2);
}

/* Contact */
.th-contact-cards {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .th-contact-cards { grid-template-columns: repeat(3, 1fr); }
}

.th-contact-cards__icon {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: hsl(var(--primary));
}

.th-form { display: flex; flex-direction: column; gap: 1.5rem; }

.th-form__row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .th-form__row { grid-template-columns: 1fr 1fr; }
}

.th-form__field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.th-form__field input,
.th-form__field select,
.th-form__field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: inherit;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
}

.th-form__field input:focus,
.th-form__field select:focus,
.th-form__field textarea:focus {
  border-color: hsl(var(--foreground));
}

.th-form__field textarea { resize: none; }
.th-form__submit { width: 100%; }

.th-notice {
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.th-notice--success { background: #e8f0ea; color: #2F4A3F; }
.th-notice--error { background: #f5e8e8; color: #7a2e2e; }

/* News */
.th-news-list { display: flex; flex-direction: column; gap: 3rem; }

.th-news-card {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .th-news-card { grid-template-columns: 280px 1fr; align-items: start; }
}

.th-news-card__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.th-article__thumb { margin-bottom: 2rem; }
.th-article__thumb img { width: 100%; }

/* Breadcrumbs (Yoast) */
.th-breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 1024px) {
  .th-breadcrumbs { padding-left: 3rem; padding-right: 3rem; }
}

.th-breadcrumbs a:hover { color: hsl(var(--foreground)); }

/* Checkout / cart — скрыть лишние WC-поля */
.th-hide-field,
.woocommerce-checkout .th-hide-field,
#billing_country_field.th-hide-field,
#billing_last_name_field,
#billing_company_field,
#billing_postcode_field,
#billing_state_field {
  display: none !important;
}

/* Порядок полей как на React (WC locale иначе переставляет) */
.woocommerce-billing-fields__field-wrapper {
  display: flex;
  flex-direction: column;
}
#billing_first_name_field { order: 1; }
#billing_email_field { order: 2; }
#billing_phone_field { order: 3; }
#billing_telegram_field { order: 4; }

.woocommerce-cart .cart-collaterals > h2,
.woocommerce-cart .cart_totals > h2,
.woocommerce-checkout #order_review_heading {
  font-family: var(--font-display);
  font-weight: 300;
}

/* Цены в корзине/чекауте — один шрифт (как в таблице товаров) */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals,
.woocommerce-cart .cart_totals table,
.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td,
.woocommerce-checkout .shop_table {
  font-family: var(--font-body);
  font-weight: 400;
}
.woocommerce-cart .cart-collaterals > h2,
.woocommerce-cart .cart_totals > h2 {
  font-family: var(--font-display);
  font-weight: 300;
}
.woocommerce-cart .woocommerce-Price-amount,
.woocommerce-cart .woocommerce-Price-amount bdi,
.woocommerce-cart .amount,
.woocommerce-cart .amount bdi,
.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal,
.woocommerce-checkout .woocommerce-Price-amount,
.woocommerce-checkout .woocommerce-Price-amount bdi,
.woocommerce-checkout .amount,
.woocommerce-checkout .amount bdi {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* Самовывоз: не показываем «Платёжный адрес» на чекауте и в заказе */
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-customer-details {
  display: none !important;
}

.woocommerce-cart table.cart img {
  width: 72px !important;
  height: 72px;
  object-fit: cover;
}

/* Купон: кнопка не обрезает «ПРИМЕНИТЬ КУПОН» */
.woocommerce-cart table.cart td.actions .coupon,
.woocommerce-checkout table.cart td.actions .coupon,
.woocommerce form.checkout_coupon {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  float: none !important;
  width: 100%;
  max-width: 100%;
}

.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-checkout table.cart td.actions .coupon .input-text,
.woocommerce form.checkout_coupon .input-text {
  float: none !important;
  flex: 1 1 10rem;
  min-width: 8rem;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
}

.woocommerce-cart table.cart td.actions .coupon .button,
.woocommerce-checkout table.cart td.actions .coupon .button,
.woocommerce form.checkout_coupon .button,
.woocommerce button[name="apply_coupon"],
.woocommerce input[name="apply_coupon"] {
  float: none !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: max-content;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  letter-spacing: 0.08em !important;
  padding: 0.85rem 1.25rem !important;
  line-height: 1.3 !important;
}

.woocommerce-checkout .form-row label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.woocommerce-checkout .input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  border-radius: 0 !important;
  border-color: hsl(var(--border)) !important;
  padding: 0.85rem 1rem !important;
  background: transparent !important;
}

/* Shop / product */
.th-shop-header { padding: 2.5rem 0 0.5rem; }
.th-shop-header--seo {
  padding: 2rem 0 3rem;
  border-top: 1px solid hsl(var(--border));
}
.th-shop-header--seo .page-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.th-shop-content { padding: 1.5rem 0 2rem; }

.th-brands-nav-wrap--desktop { display: none; }
@media (min-width: 1024px) {
  .th-brands-nav-wrap--desktop { display: block; }
}

/* Catalog toolbar */
.th-catalog-toolbar {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}
.th-catalog-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.th-catalog-toolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: inherit;
  transition: background 0.2s;
}
.th-catalog-toolbar__btn:hover { background: hsl(var(--secondary)); }
.th-catalog-toolbar__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: hsl(var(--primary));
}
.th-catalog-toolbar__sort { position: relative; }
.th-catalog-toolbar__sort-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 12rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 10px 30px hsl(var(--foreground) / 0.08);
  z-index: 30;
}
.th-catalog-toolbar__sort-menu[hidden] { display: none !important; }
.th-catalog-toolbar__sort-item {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}
.th-catalog-toolbar__sort-item:hover { background: hsl(var(--secondary)); }
.th-catalog-toolbar__sort-item.is-active { color: hsl(var(--primary)); }
.th-catalog-toolbar__sort-item--muted { color: hsl(var(--muted-foreground)); }

/* Filter panel */
.th-filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: hsl(var(--foreground) / 0.35);
}
.th-filter-overlay[hidden] { display: none !important; }
.th-filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(100%, 22rem);
  height: 100%;
  background: hsl(var(--background));
  border-left: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
}
.th-filter-panel[hidden] { display: none !important; }
.th-filter-panel__form {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.th-filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid hsl(var(--border));
}
.th-filter-panel__title {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}
.th-filter-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}
.th-filter-section { border-bottom: 1px solid hsl(var(--border)); }
.th-filter-section__title {
  list-style: none;
  cursor: pointer;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.th-filter-section__title::-webkit-details-marker { display: none; }
.th-filter-section__title::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.th-filter-section[open] > .th-filter-section__title::after {
  transform: rotate(-135deg);
}
.th-filter-section__list {
  padding: 0 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.th-filter-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.th-filter-check:hover { color: hsl(var(--foreground)); }
.th-filter-check input {
  width: 1rem;
  height: 1rem;
  accent-color: hsl(var(--primary));
}
.th-filter-panel__foot {
  padding: 2rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.th-filter-panel__apply { width: 100%; text-align: center; }
.th-filter-panel__clear {
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}
.th-filter-panel__clear:hover { color: hsl(var(--foreground)); }

/* Brand archive */
.th-brand-header { padding-bottom: 1.5rem; }
.th-brand-header__inner {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 768px) {
  .th-brand-header__inner {
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 2.5rem;
    align-items: center;
  }
}
.th-brand-header__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 4rem;
}
.th-brand-header__logo img {
  display: block;
  width: 220px;
  height: 72px;
  object-fit: contain;
  background: #f7f5f2;
  padding: 0.5rem 0.75rem;
}
.th-brand-header__desc {
  margin-top: 1rem;
  max-width: 42rem;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.65;
}
.th-brand-header__desc p { margin: 0 0 0.85rem; }
.th-brand-header__desc p:last-child { margin-bottom: 0; }
.product-card__brand a,
.th-product__brand a {
  color: inherit;
  text-decoration: none;
}
.product-card__brand a:hover,
.th-product__brand a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.th-product { padding: 0 0 0; }

.th-product__back { padding: 1.5rem 0; }

.th-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s;
}

.th-back-link:hover { color: hsl(var(--foreground)); }

.th-product__main { padding-bottom: 4rem; }

.th-product__layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .th-product__layout {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

.th-product__stage {
  position: relative;
  aspect-ratio: 1;
  background: hsl(var(--secondary));
  overflow: hidden;
  cursor: zoom-in;
}

.th-product__stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
}

.th-product__stage-img.is-active { opacity: 1; }

.th-product__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: hsl(var(--background) / 0.7);
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
}

.th-product__nav--prev { left: 0.75rem; }
.th-product__nav--next { right: 0.75rem; }
.th-product__nav:hover { background: hsl(var(--background)); }

.th-product__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-thumbnail {
  width: 5rem;
  height: 5rem;
  padding: 0;
  border: 1px solid transparent;
  opacity: 0.6;
  cursor: pointer;
  background: hsl(var(--secondary));
  overflow: hidden;
  transition: all 0.3s;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  border-color: hsl(var(--foreground));
  opacity: 1;
}

.th-product__sold {
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.th-product__sold span {
  background: #b91c1c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.5rem;
}

.th-product__summary { padding-top: 0; }
@media (min-width: 1024px) {
  .th-product__summary { padding-top: 2rem; }
}

.th-product__brand {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.5rem;
}

.th-product__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.th-product__price {
  font-family: var(--font-body);
  font-size: 1.5rem; /* text-2xl как на time-house.com */
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 2rem;
  margin: 0 0 2rem; /* mb-8 */
  color: hsl(var(--foreground));
}

.th-product__price .amount,
.th-product__price bdi {
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

.th-product__condition-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.875rem;
}

.th-product__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.th-product__buy {
  flex: 1;
  min-width: 10rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.th-product__cart-form {
  margin: 0 !important;
  float: none !important;
  display: flex;
}

.th-product__cart-form::before,
.th-product__cart-form::after {
  display: none !important;
  content: none !important;
}

.woocommerce .th-product__cart-form .single_add_to_cart_button.button,
.woocommerce .th-product__cart-form button.single_add_to_cart_button,
.th-product__cart-form .single_add_to_cart_button,
.th-product__cart-form .btn-outline {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: hsl(var(--foreground)) !important;
  border: 1px solid hsl(var(--foreground)) !important;
  border-radius: 0 !important;
  padding: 1rem 1.5rem !important;
  margin: 0 !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em;
  text-transform: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  line-height: 1.2 !important;
}

.woocommerce .th-product__cart-form .single_add_to_cart_button.button:hover,
.th-product__cart-form .single_add_to_cart_button:hover {
  background: hsl(var(--foreground)) !important;
  background-color: hsl(var(--foreground)) !important;
  color: hsl(var(--background)) !important;
}

.th-product__wish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid hsl(var(--foreground));
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.th-product__wish-btn.is-active {
  color: #ef4444;
}

.th-product__wish-btn.is-active svg {
  fill: #ef4444;
}

.th-product__sold-note {
  margin-bottom: 3rem;
  padding: 1rem;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  text-align: center;
}

.th-product__block { margin-bottom: 2rem; }
.th-product__block--border {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.th-product__block-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem;
}

.th-product__seo-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 40rem;
}
.th-product__seo-desc p { margin: 0 0 0.85rem; }
.th-product__seo-desc h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  margin: 1.5rem 0 0.75rem;
}
.th-product__seo-desc ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}
.th-product__seo-desc li { margin: 0.25rem 0; }
.th-product__seo-desc a {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.th-product__specs { margin: 0; }

.th-product__spec {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.th-product__spec dt { color: hsl(var(--muted-foreground)); margin: 0; }
.th-product__spec dd { margin: 0; text-align: right; }

.th-product__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.th-product__cat {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
}

.th-product__telegram { margin-top: 1.5rem; }
.th-product__telegram .btn-outline { width: 100%; text-align: center; }

.th-condition-guide {
  padding: 3rem 0 0;
  border-top: 1px solid hsl(var(--border));
  margin-top: 1rem;
}

.th-condition-guide__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.th-condition-guide__item {
  display: flex;
  gap: 1.5rem;
}

.th-condition-guide__badge {
  width: 2.5rem !important;
  height: 2.5rem !important;
  flex-shrink: 0;
  font-size: 0.875rem !important;
}

.th-related {
  padding: 2rem 0 5rem;
}

.th-related__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  margin: 0 0 2.5rem;
}

/* hide WC default noise on single */
.th-product .woocommerce-product-gallery,
.th-product .product_meta,
.th-product .woocommerce-tabs,
.th-product .quantity { display: none !important; }

.th-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: hsl(var(--muted-foreground));
  padding: 3rem 1rem;
}

.th-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* WooCommerce cleanup */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 1.5rem;
}

.woocommerce div.product div.images img {
  width: 100%;
  background: hsl(var(--secondary));
}

.woocommerce .star-rating { display: none; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: hsl(var(--primary));
  background: hsl(var(--secondary));
}

.related.products > h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.75rem;
  margin: 3rem 0 1.5rem;
  text-align: center;
}

/* Pagination */
.navigation.pagination,
.woocommerce-pagination {
  margin-top: 3rem;
  text-align: center;
}

.navigation.pagination .page-numbers,
.woocommerce-pagination .page-numbers {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
}

.navigation.pagination a,
.navigation.pagination span,
.woocommerce-pagination a,
.woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border: 1px solid hsl(var(--border));
  font-size: 0.875rem;
  padding: 0 0.5rem;
}

.navigation.pagination .current,
.woocommerce-pagination .current {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* ===== Account (React /profile) ===== */
.th-account { padding: 3rem 0 5rem; }
.th-account__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 2.5rem;
}
.th-account__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .th-account__grid {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}
.th-account-nav {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  float: none !important;
}
.th-account__content,
.woocommerce-MyAccount-content {
  width: 100% !important;
  float: none !important;
}
.th-account-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}
.th-account-nav li {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
  background: transparent !important;
  float: none !important;
}
.th-account-nav li::before,
.th-account-nav li::after,
.th-account-nav a::before,
.th-account-nav a::after,
.woocommerce-MyAccount-navigation li::before,
.woocommerce-MyAccount-navigation li.is-active a::before {
  content: none !important;
  display: none !important;
}
.th-account-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}
.th-account-nav a:hover,
.th-account-nav li.is-active > a,
.th-account-nav .is-active a,
.woocommerce-MyAccount-navigation li.is-active > a {
  background: hsl(var(--secondary)) !important;
  color: hsl(var(--foreground)) !important;
  box-shadow: none !important;
}
/* WC иногда красит сам <li> — убираем, чтобы фон не наезжал на соседние пункты */
.woocommerce-MyAccount-navigation li.is-active,
.th-account-nav li.is-active {
  background: transparent !important;
}
/* Сброс float/процентов WooCommerce внутри нашего grid */
.woocommerce-account .th-account__grid::after,
.woocommerce-account .th-account__grid::before {
  content: none !important;
  display: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
}
.th-account-panel__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
}
.th-account-card {
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.35);
  margin-bottom: 1.5rem;
  text-align: center;
}
.th-account-card--center { text-align: center; padding: 3rem 1.5rem; }
.th-account-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .th-account-stats { grid-template-columns: repeat(4, 1fr); }
}
.th-account-stat {
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.35);
  text-align: center;
}
.th-account-stat__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  margin: 0;
}
.th-account-stat__label {
  margin: 0.35rem 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.th-account-orders { display: flex; flex-direction: column; gap: 1rem; }
.th-account-order {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.35);
  text-decoration: none;
  color: inherit;
}
.th-account-order img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}
.th-account-order__body { flex: 1; min-width: 0; }
.th-account-order__brand {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.th-account-order__model {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-weight: 300;
}
.th-account-order__price { margin: 0.35rem 0 0; font-size: 0.875rem; }
.th-account-order__status {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.th-account-order__meta {
  text-align: right;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}
.th-account-order__meta p { margin: 0 0 0.35rem; }
.th-account-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
}
.th-account-form input,
.th-account-form textarea,
.th-account-form select,
.woocommerce-EditAccountForm input,
.woocommerce-EditAccountForm textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  font-size: 0.875rem;
  outline: none;
}
.th-account-form input:focus,
.th-account-form textarea:focus,
.th-account-form select:focus {
  border-color: hsl(var(--foreground));
}
.th-account-form__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.th-account-form__lost { margin: 0; font-size: 0.8rem; }
.th-account-flash {
  padding: 0.85rem 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.4);
  margin-bottom: 1rem;
}
.th-account-flash--err { border-color: #b91c1c; }
.th-account-wishlist__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .th-account-wishlist__grid { grid-template-columns: repeat(3, 1fr); }
}
.th-account-wish-card {
  position: relative;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.35);
  overflow: hidden;
}
.th-account-wish-card a { color: inherit; text-decoration: none; }
.th-account-wish-card__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: hsl(var(--secondary));
}
.th-account-wish-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.th-account-wish-card:hover .th-account-wish-card__img img { transform: scale(1.05); }
.th-account-wish-card__info { padding: 0.75rem; }
.th-account-wish-card__remove,
.th-wish-item__remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: hsl(var(--background) / 0.85);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.th-account-wishlist__actions { margin-top: 1.5rem; }
.th-account-auth {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .th-account-auth { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.th-account-auth--single { max-width: 28rem; }
.th-account--guest {
  max-width: 56rem;
  margin: 0 auto;
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset,
.woocommerce-MyAccount-content .woocommerce-address-fields {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem;
}
.woocommerce-MyAccount-content .woocommerce-Button { margin-top: 0.5rem; }

/* Wishlist slide-over — hidden по умолчанию (display:flex иначе перебивает [hidden]) */
.th-wish-overlay,
.th-wish-panel {
  display: none !important;
}
.th-wish-overlay:not([hidden]) {
  display: block !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 80;
}
.th-wish-panel:not([hidden]) {
  display: flex !important;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(100%, 28rem);
  height: 100%;
  background: hsl(var(--background));
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}
html.th-wish-open { overflow: hidden; }

/* Лишний заголовок страницы WP на my-account */
.woocommerce-account .th-shop-header,
.woocommerce-account .woocommerce-products-header,
.woocommerce-account .entry-title,
.woocommerce-account h1.page-title,
.woocommerce-account .th-page-hero {
  display: none !important;
}
.th-section--account {
  padding-top: 1rem;
}
.th-section--account.th-prose > * {
  max-width: none;
}
.th-wish-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}
.th-wish-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.25rem;
}
.th-wish-panel__body {
  flex: 1;
  overflow: auto;
  padding: 1.25rem 1.5rem;
}
.th-wish-panel__empty {
  min-height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
}
.th-wish-panel__foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
}
.th-wish-panel__clear {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.th-wish-panel__clear:hover { color: hsl(var(--foreground)); }
.th-wish-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: hsl(var(--secondary) / 0.5);
  position: relative;
}
.th-wish-item__img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  background: hsl(var(--secondary));
}
.th-wish-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.th-wish-item__body { flex: 1; min-width: 0; padding-right: 1.5rem; }
.th-wish-item__brand {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.th-wish-item__model {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 300;
  color: inherit;
  text-decoration: none;
}
.th-wish-item__price { margin: 0.5rem 0 0; font-size: 0.875rem; }
