/* =========================================================
   САХАЮВЕЛИР ПЛЮС — ЧИСТЫЙ CSS
   Структура: общее → десктоп → планшет → мобилка
   ========================================================= */

/* === 1. ОБЩЕЕ === */
@font-face {
  font-family: 'Akrobat';
  src: url('../fonts/Akrobat-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Akrobat';
  src: url('../fonts/Akrobat-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Akrobat';
  src: url('../fonts/Akrobat-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-width: 1440px;
  --side: 60px;
  --gap: 24px;
  --color-bg: #fffffa;
  --color-accent: #310d20;
  --color-secondary: #74604c;
  --color-muted: #858075;
  --color-footer: #b5a293;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: 'Akrobat', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-accent);
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

.header,
.catalog,
.footer,
.detail-shop-header,
.detail-page,
.favorites-page,
.about-page,
.legal-page {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
}

.product-link,
.favorite-list-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* === 2. ДЕСКТОП / ГЛАВНАЯ === */
.header {
  position: relative;
  height: 620px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
    url('../images/ui/Hero.png') center top / cover no-repeat;
}

.hero-topbar {
  position: relative;
  z-index: 60;
  height: 88px;
  padding: 0 var(--side);
  display: grid;
  grid-template-columns: minmax(260px, auto) minmax(260px, 1fr) minmax(340px, 420px) minmax(150px, auto);
  align-items: center;
  gap: 34px;
  color: #fffffa;
}

.hero-topbar::after {
  content: '';
  position: absolute;
  left: var(--side);
  right: var(--side);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 250, 0.48);
}

.hero-topbar-logo,
.detail-header-logo {
  font-family: 'Akrobat', Arial, sans-serif;
  line-height: 100%;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-topbar-logo {
  font-size: 32px;
  color: #fffffa;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.hero-nav a,
.footer-heading,
.detail-header-categories a {
  font-family: 'Akrobat', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-nav a {
  font-size: 18px;
  line-height: 120%;
  color: rgba(255, 255, 250, 0.92);
}

.hero-topbar-logo:hover,
.hero-nav a:hover,
.hero-topbar .favorites-link:hover,
.detail-header-logo:hover,
.detail-header-categories a:hover,
.detail-header-favorites:hover,
.footer-nav a:hover,
.footer-contacts a:hover,
.footer-heading-link:hover,
.about-info a:hover,
.legal-section a:hover {
  opacity: 0.72;
}

.hero-menu-toggle {
  display: none;
}

.header-content {
  position: relative;
  height: 330px;
  padding: 84px var(--side) 0;
}

.logo img {
  width: 560px;
  max-width: 48vw;
  height: auto;
  display: block;
}

.header-divider {
  width: calc(100% - var(--side) * 2);
  height: 1px;
  margin: 66px auto 0;
  background: rgba(255, 255, 250, 0.48);
}

/* === 3. АКТУАЛЬНЫЙ ПОИСК === */
.catalog-main-search {
  position: relative;
  width: 100%;
  height: 48px;
  display: block;
}

.catalog-main-search .search-input {
  width: 100%;
  height: 48px;
  padding: 0 50px 0 18px;
  border: 1px solid rgba(255, 255, 250, 0.50);
  border-radius: 12px;
  background: rgba(255, 255, 250, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 140%;
  color: #fffffa;
  caret-color: #fffffa;
  outline: none;
}

.catalog-main-search .search-input::placeholder {
  color: rgba(255, 255, 250, 0.74);
}

.catalog-main-search .search-input:focus {
  border-color: rgba(255, 255, 250, 0.86);
  background: rgba(255, 255, 250, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 250, 0.08);
}

.catalog-main-search .search-submit {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fffffa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-main-search .search-submit i {
  font-size: 21px;
  line-height: 1;
}

/* === 4. ИЗБРАННОЕ В HERO === */
.hero-topbar .favorites-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffffa;
  text-decoration: none;
}

.hero-topbar .favorites-link-icon {
  position: relative;
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.hero-topbar .favorites-link-icon i,
.hero-topbar .favorites-link-heart {
  font-size: 30px;
  line-height: 1;
  color: #fffffa;
}

.hero-topbar .favorites-link-text {
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 18px;
  line-height: 120%;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 250, 0.92);
}

.hero-topbar .favorites-link-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: #fffffa;
  transform: translateY(1px);
  pointer-events: none;
}

.hero-topbar .favorites-link:not(.has-items) .favorites-link-count {
  display: none !important;
}

.hero-topbar .favorites-link.has-items .favorites-link-icon i,
.hero-topbar .favorites-link.has-items .favorites-link-heart {
  color: var(--color-accent);
}

/* === 5. КАТЕГОРИИ И КАТАЛОГ === */
.categories {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--page-width);
  margin: -122px auto 0;
  padding: 12px var(--side) 36px;
  overflow: visible;
}

.categories-list {
  width: 100%;
  padding: 10px 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  user-select: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-list::-webkit-scrollbar {
  display: none;
}

.category-item {
  min-width: 198px;
  height: 82px;
  padding-right: 22px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 250, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 250, 0.10);
  overflow: hidden;
  transition: transform 250ms ease;
}

.category-item:hover {
  transform: translateY(-2px);
}

.category-item.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.category-icon,
.category-icon img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  flex-shrink: 0;
}

.category-icon {
  overflow: hidden;
}

.category-icon img {
  display: block;
  object-fit: cover;
}

.category-name {
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 17px;
  line-height: 120%;
  font-weight: 600;
  color: rgba(255, 255, 250, 0.92);
  text-transform: uppercase;
}

.catalog {
  padding: 28px var(--side) 90px;
  background: var(--color-bg);
}

.products-grid,
.favorites-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.favorite-list-card {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(116, 96, 76, 0.14);
  border-radius: 16px;
  background: rgba(116, 96, 76, 0.055);
  overflow: hidden;
  transition: transform 250ms ease, border-color 250ms ease;
}

.product-card:hover,
.favorite-list-card:hover {
  transform: translateY(-3px);
  border-color: rgba(116, 96, 76, 0.34);
}

.product-image-wrap,
.favorite-list-image-wrap,
.product-detail-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #eee7dc;
}

.product-image-wrap,
.favorite-list-image-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.product-image-wrap img,
.favorite-list-image-wrap img,
.product-detail-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.025);
}

.product-image-wrap.is-empty,
.favorite-list-image-wrap.is-empty,
.product-detail-image-wrap.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(116, 96, 76, 0.35);
  background: #f3eee7;
}

.product-image-wrap.is-empty::before,
.favorite-list-image-wrap.is-empty::before,
.product-detail-image-wrap.is-empty::before {
  content: 'Фото скоро';
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 22px;
  line-height: 120%;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-image-wrap.is-empty img,
.favorite-list-image-wrap.is-empty img,
.product-detail-image-wrap.is-empty img {
  display: none;
}

.product-tags,
.favorite-list-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-tags span,
.favorite-list-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid rgba(116, 96, 76, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 250, 0.38);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 10px;
  line-height: 125%;
  font-weight: 400;
  color: var(--color-secondary);
  white-space: nowrap;
}

.product-tags:empty,
.favorite-list-tags:empty,
.product-tags span:empty,
.favorite-list-tags span:empty {
  display: none !important;
}

.product-title,
.favorite-list-title {
  margin-top: 9px;
  padding-right: 24px;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 18px;
  line-height: 112%;
  font-weight: 400;
  color: var(--color-accent);
}

.product-link::after {
  content: '→';
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  color: var(--color-accent);
}

.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-info {
  width: 100%;
  margin-bottom: 12px;
  text-align: center;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 16px;
  line-height: 120%;
  color: var(--color-muted);
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(116, 96, 76, 0.35);
  border-radius: 999px;
  background: transparent;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 16px;
  line-height: 120%;
  font-weight: 600;
  color: var(--color-accent);
  transition: 0.2s ease;
}

.pagination-btn:hover {
  background: rgba(49, 13, 32, 0.08);
}

.pagination-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pagination-dots {
  padding: 0 6px;
  color: var(--color-muted);
}

/* === 6. ИЗБРАННОЕ НА КАРТОЧКАХ И СТРАНИЦА ИЗБРАННОГО === */
.favorite-toggle-card,
.favorite-toggle-card:hover,
.favorite-toggle-card:focus,
.favorite-toggle-card.is-active,
.favorite-toggle-card.is-active:hover {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #fffffa;
  transform: none !important;
}

.favorite-toggle-card i,
.favorite-toggle-card svg {
  width: auto !important;
  height: auto !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: #fffffa !important;
}

.favorite-toggle-card.is-active i,
.favorite-toggle-card.is-active svg {
  color: var(--color-accent) !important;
}

.favorites-page {
  padding: 32px var(--side) 96px;
  background: var(--color-bg);
}

.favorites-page-head {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.favorites-page-title {
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 52px;
  line-height: 105%;
  font-weight: 600;
  color: var(--color-accent);
}

.favorites-page-subtitle,
.favorite-list-article,
.favorites-empty {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-secondary);
}

.favorites-page-subtitle {
  margin-top: 10px;
  font-size: 17px;
  line-height: 145%;
}

.favorites-empty {
  padding: 36px 0;
  font-size: 18px;
  line-height: 150%;
}

.favorites-export-button,
.favorites-clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(49, 13, 32, 0.16);
  border-radius: 999px;
  background: rgba(49, 13, 32, 0.04);
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  color: var(--color-accent);
}

.favorites-clear-button {
  margin-top: 10px;
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: var(--color-muted);
}

.favorites-export-button:disabled,
.favorites-clear-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.favorite-list-info {
  margin-top: 12px;
}

.favorite-list-article {
  margin-top: 8px;
  font-size: 14px;
  line-height: 145%;
}

.favorite-list-remove {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(49, 13, 32, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite-list-remove i {
  font-size: 22px;
  line-height: 1;
}

/* === 7. ДЕТАЛЬНАЯ СТРАНИЦА === */
.detail-shop-header {
  padding: 0 var(--side);
  background: var(--color-bg);
  border-bottom: 1px solid rgba(116, 96, 76, 0.16);
}

.detail-header-main {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(320px, 1fr) minmax(300px, auto);
  gap: 36px;
  align-items: center;
}

.detail-header-logo {
  font-size: 32px;
  color: var(--color-accent);
}

.detail-header-search {
  position: relative;
  width: 100%;
  max-width: 540px;
  justify-self: center;
}

.detail-header-search input {
  width: 100%;
  height: 44px;
  padding: 0 48px 0 18px;
  border: 1px solid rgba(116, 96, 76, 0.28);
  border-radius: 12px;
  background: transparent;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 140%;
  color: var(--color-accent);
  outline: none;
}

.detail-header-search input::placeholder {
  color: rgba(116, 96, 76, 0.78);
}

.detail-header-search input:focus {
  border-color: rgba(49, 13, 32, 0.42);
  box-shadow: 0 0 0 3px rgba(49, 13, 32, 0.06);
}

.detail-header-search button {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-header-search button i {
  font-size: 20px;
  line-height: 1;
}

.detail-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.detail-header-location,
.detail-header-favorites {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 135%;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}

.detail-header-location i,
.detail-header-favorites i {
  font-size: 18px;
  line-height: 1;
  color: var(--color-secondary);
}

.detail-header-favorites i {
  font-size: 20px;
  color: var(--color-accent);
}

.detail-header-categories {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 12px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  border-top: 1px solid rgba(116, 96, 76, 0.10);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.detail-header-categories::-webkit-scrollbar {
  display: none;
}

.detail-header-categories a {
  font-size: 18px;
  line-height: 120%;
  color: var(--color-accent);
}

.detail-page {
  padding: 26px var(--side) 84px;
  background: var(--color-bg);
}

.product-detail-back {
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 140%;
  color: var(--color-secondary);
  text-decoration: none;
}

.product-detail-back i {
  font-size: 18px;
  color: var(--color-accent);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.product-detail-gallery,
.product-detail-info {
  min-width: 0;
  width: 100%;
}

.product-detail-info {
  max-width: 640px;
}

.product-detail-image-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #f3eee7;
}

.product-detail-image-wrap.is-empty::before {
  font-size: 32px;
}

.product-detail-thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-detail-thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(116, 96, 76, 0.18);
  border-radius: 10px;
  background: transparent;
  overflow: hidden;
}

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

.product-detail-thumb.is-active {
  border-color: var(--color-accent);
}

.product-detail-title {
  max-width: 640px;
  margin: 0;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 46px;
  line-height: 105%;
  font-weight: 600;
  color: var(--color-accent);
}

.product-detail-characteristics-block {
  width: 100%;
  max-width: 640px;
  margin-top: 22px;
}

.product-detail-characteristics {
  width: 100%;
  margin-top: 0;
}

.product-detail-characteristic-section,
.product-detail-stones-title {
  padding: 0 0 10px;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 18px;
  line-height: 125%;
  font-weight: 600;
  color: var(--color-accent);
}

.product-detail-characteristic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  gap: 28px;
  padding: 5px 0;
}

.product-detail-characteristic-row dt,
.product-detail-characteristic-row dd {
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 17px;
  line-height: 130%;
  font-weight: 400;
}

.product-detail-characteristic-row dt {
  color: var(--color-muted);
}

.product-detail-characteristic-row dd {
  margin: 0;
  color: var(--color-accent);
  text-align: right;
}

.product-detail-characteristics-empty,
.product-detail-empty p {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-secondary);
}

.product-detail-characteristics-empty {
  margin-top: 22px;
  font-size: 17px;
  line-height: 145%;
}

.product-detail-characteristics-block.is-collapsed .is-extra {
  display: none !important;
}

.product-detail-characteristics-block.is-expanded .product-detail-stones.is-extra {
  display: block !important;
}

.product-detail-more {
  margin-top: 18px;
  padding-top: 14px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(116, 96, 76, 0.16);
  background: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;

  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 16px;
  line-height: 120%;
  font-weight: 600;
  color: var(--color-accent);
  text-align: left;
}

.product-detail-more-text {
  display: inline-block;
  width: 178px;
  min-width: 178px;
  max-width: 178px;

  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 16px;
  line-height: 120%;
  font-weight: 600;
  color: var(--color-accent);
  text-align: left;

  white-space: nowrap;
}

.product-detail-more-arrow {
  width: 18px;
  min-width: 18px;
  height: 18px;
  flex: 0 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-detail-more-arrow,
.product-detail-favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-detail-more-arrow i {
  width: 18px;
  min-width: 18px;
  height: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;

  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.product-detail-more.is-expanded .product-detail-more-arrow i {
  transform: rotate(-90deg);
}

.product-detail-stones {
  width: 100%;
  max-width: 640px;
  margin-top: 18px;
}

.product-detail-stones-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.product-detail-stones-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.product-detail-stones-table th,
.product-detail-stones-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(116, 96, 76, 0.12);
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 16px;
  line-height: 130%;
  font-weight: 400;
  color: var(--color-accent);
  vertical-align: top;
  text-align: left;
}

.product-detail-stones-table th {
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

.product-detail-stones-table th:first-child,
.product-detail-stones-table td:first-child {
  padding-left: 0;
  text-align: left;
}

.product-detail-stone-cards {
  display: none;
}

.product-detail-note {
  max-width: 620px;
  margin: 0 0 7px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 13px;
  line-height: 150%;
  color: var(--color-secondary);
}

.product-detail-note:first-of-type {
  margin-top: 20px;
}

.product-detail-actions {
  margin-top: 24px;
}

.product-detail-action-frame {
  height: 48px;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(49, 13, 32, 0.20);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.product-detail-button {
  height: 48px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  background: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 16px;
  line-height: 120%;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

.product-detail-favorite-button {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border: 0;
  border-left: 1px solid rgba(49, 13, 32, 0.14);
  background: #ffffff;
  color: var(--color-accent);
}

.product-detail-favorite-button i {
  font-size: 24px;
  line-height: 1;
}

.product-detail-empty {
  padding: 80px 0;
  text-align: center;
}

.product-detail-empty h1 {
  margin-bottom: 12px;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 42px;
  line-height: 110%;
  font-weight: 600;
  color: var(--color-accent);
}

.product-detail-empty a {
  margin-top: 24px;
  display: inline-flex;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-accent);
}

.product-detail-image-wrap.is-zoomable {
  cursor: zoom-in;
}

.product-detail-zoom-lens {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 250, 0.9);
  border-radius: 50%;
  background-repeat: no-repeat;
  box-shadow: 0 14px 36px rgba(49, 13, 32, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease;
  z-index: 10;
}

.product-detail-image-wrap.is-zooming .product-detail-zoom-lens {
  opacity: 1;
}

.product-detail-zoom-icon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(49, 13, 32, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 250, 0.82);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(49, 13, 32, 0.16);
}

.product-detail-image-wrap.is-zooming .product-detail-zoom-icon {
  opacity: 0;
}

/* === 8. FOOTER / ABOUT / LEGAL === */
.footer {
  padding: 64px var(--side) 56px;
  background: var(--color-footer);
  color: #fffffa;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 64px;
}

.footer-title {
  margin-bottom: 20px;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 36px;
  line-height: 110%;
  font-weight: 400;
}

.footer-text {
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 150%;
  color: rgba(255, 255, 250, 0.82);
}

.footer-contacts,
.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-contacts {
  gap: 8px;
  margin-top: 24px;
}

.footer-nav {
  gap: 10px;
}

.footer-contacts a,
.footer-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 140%;
  color: rgba(255, 255, 250, 0.82);
  text-decoration: none;
}

.footer-contacts a,
.footer-nav a:hover {
  color: #fffffa;
}

.footer-heading {
  margin-bottom: 20px;
  display: inline-flex;
  font-size: 24px;
  line-height: 120%;
  font-weight: 400;
  color: #fffffa;
}

.about-page,
.legal-page {
  padding: 56px var(--side) 96px;
  background: var(--color-bg);
}

.about-section,
.legal-section {
  max-width: 760px;
}

.about-title {
  margin-bottom: 32px;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 56px;
  line-height: 105%;
  font-weight: 600;
  color: var(--color-accent);
}

.about-text,
.about-info p,
.about-info a,
.legal-section p,
.legal-section li,
.legal-section a {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 150%;
}

.about-text,
.legal-section p,
.legal-section li {
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--color-secondary);
}

.about-info {
  margin-top: 40px;
  display: grid;
  gap: 14px;
}

.about-info p,
.about-info a {
  font-size: 18px;
  color: var(--color-accent);
  text-decoration: none;
}

.legal-section h2 {
  margin: 34px 0 16px;
  font-family: 'Akrobat', Arial, sans-serif;
  font-size: 28px;
  line-height: 115%;
  color: var(--color-accent);
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 20px 22px;
}

.legal-updated {
  margin-top: 36px !important;
  color: var(--color-muted) !important;
}

/* === 9. ПЛАНШЕТ: КАК ДЕСКТОП, НО КОМПАКТНЕЕ === */

@media (min-width: 641px) and (max-width: 1439px) {
  :root {
    --side: 28px;
    --gap: 18px;
  }

  .home-page .header {
    height: 560px;
    min-height: 560px;
    background:
      linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
      url('../images/ui/Hero.png') center top / cover no-repeat;
  }

  .home-page .hero-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;

    padding: 28px var(--side) 0;

    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
    grid-template-areas:
      "logo nav nav"
      "search search favorite";
    align-items: center;
    gap: 18px 24px;
  }

  .home-page .hero-topbar-logo {
    grid-area: logo;
    font-size: 26px;
    color: #fffffa;
    white-space: nowrap;
  }

  .home-page .hero-menu-toggle {
    display: none;
  }

  .home-page .hero-nav {
    grid-area: nav;

    position: static;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;

    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-page .hero-nav a {
    font-size: 17px;
    line-height: 120%;
    font-weight: 600;
    color: #fffffa;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .home-page .hero-topbar .favorites-link {
    grid-area: favorite;

    position: static;
    display: inline-flex;
    justify-self: end;

    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    color: #fffffa;
  }

  .home-page .favorites-link-icon {
    background: transparent;
  }

  .home-page .favorites-link-text {
    display: inline;
    font-size: 17px;
  }

  .home-page .hero-topbar .catalog-main-search {
    grid-area: search;

    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;

    width: 100%;
    max-width: 430px;
    height: 48px;
    margin: 0;
    padding: 0;
  }

  .home-page .hero-topbar .catalog-main-search .search-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 18px;

    border: 1px solid rgba(255, 255, 250, 0.58);
    border-radius: 12px;
    background: rgba(255, 255, 250, 0.10);
    color: #fffffa;

    font-size: 15px;
    box-sizing: border-box;
  }

  .home-page .hero-topbar .catalog-main-search .search-submit {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);

    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;
    color: #fffffa;

    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .home-page .hero-topbar::after {
    content: "";
    position: absolute;
    left: var(--side);
    right: var(--side);
    top: 400px;
    height: 1px;
    background: rgba(255, 255, 250, 0.58);
  }

  .home-page .header-content {
    display: block;
    height: 318px;
    padding: 210px var(--side) 0;
  }

  .home-page .logo img {
    width: 420px;
    max-width: 58vw;
  }

  .home-page .header-divider {
    display: none;
  }

  .home-page .categories {
    margin: -145px auto 0;
    padding: 12px var(--side) 42px;
  }

  .home-page .categories-list {
    justify-content: flex-start;
    gap: 18px;
    padding: 10px 0 14px;
  }

  .home-page .category-item {
    min-width: 178px;
    height: 84px;
  }

  .home-page .category-icon,
  .home-page .category-icon img {
    display: block;
    width: 84px;
    height: 84px;
  }

  .home-page .category-name {
    font-size: 15px;
    color: #fffffa;
    text-transform: uppercase;
  }

  .home-page .catalog {
    padding: 28px var(--side) 72px;
    background: #fffffa;
  }

  .home-page .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

/* === 10. МОБИЛКА === */
@media (max-width: 640px) {
  :root {
    --side: 14px;
    --gap: 12px;
  }

  body.home-page {
    overflow-x: hidden;
    background: #fffffa;
  }

  .home-page .header {
    position: relative;
    width: 100%;
    max-width: none;
    height: 360px;
    min-height: 360px;
    margin: 0;
    overflow: visible;
    background:
      linear-gradient(rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.10)),
      url('../images/ui/Hero.png') 60% top / cover no-repeat;
  }

  .home-page .hero-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    height: auto;
    padding: 18px var(--side) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'logo burger';
    align-items: center;
    gap: 12px;
  }

  .home-page .hero-topbar::after {
    content: '';
    position: absolute;
    left: var(--side);
    right: var(--side);
    top: 268px;
    bottom: auto;
    height: 1px;
    background: rgba(255, 255, 250, 0.58);
  }

  .home-page .hero-topbar-logo {
    grid-area: logo;
    min-width: 0;
    font-size: 20px;
    color: #fffffa;
  }

  .home-page .hero-menu-toggle {
    grid-area: burger;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fffffa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .home-page .hero-menu-toggle i {
    font-size: 30px;
    line-height: 1;
  }

  .home-page .hero-nav {
    position: absolute;
    top: 58px;
    right: var(--side);
    z-index: 100;
    min-width: 190px;
    padding: 14px 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(255, 255, 250, 0.28);
    border-radius: 14px;
    background: rgba(49, 13, 32, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .home-page .hero-topbar.is-menu-open .hero-nav {
    display: flex;
  }

  .home-page .hero-nav a {
    font-size: 17px;
    color: #fffffa;
  }

  .home-page .hero-topbar .favorites-link {
    display: none;
  }

  .home-page .hero-topbar .catalog-main-search {
  position: absolute;
  left: var(--side);
  right: var(--side);
  top: 210px;
  bottom: auto;

  width: auto;
  height: 42px;
  margin: 0;
  padding: 0;

  display: block;
  box-sizing: border-box;
  }

  .home-page .hero-topbar .catalog-main-search .search-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 42px;

  padding: 0 44px 0 14px;

  border: 1px solid rgba(255, 255, 250, 0.58);
  border-radius: 10px;
  background: rgba(255, 255, 250, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  font-size: 13px;
  color: #fffffa;
  box-sizing: border-box;
  outline: none;
  }

  .home-page .hero-topbar .catalog-main-search .search-input::placeholder {
    color: rgba(255, 255, 250, 0.78);
  }

  .home-page .hero-topbar .catalog-main-search .search-submit {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);

  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;

  border: 0;
  background: transparent;
  color: #fffffa;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  }

  .home-page .hero-topbar .catalog-main-search .search-submit i {
  font-size: 22px;
  line-height: 1;
  }

  .home-page .header-content,
  .home-page .header-divider {
    display: none;
  }

  .home-page .categories {
    z-index: 20;
    width: 100%;
    max-width: none;
    margin: -56px auto 0;
    padding: 0 var(--side) 18px;
    background: transparent;
  }

  .home-page .categories-list {
    gap: 8px;
    padding: 0 0 6px;
  }

  .home-page .category-item {
    min-width: auto;
    height: 34px;
    padding: 0 14px;
    gap: 0;
    border: 1px solid rgba(255, 255, 250, 0.48);
    background: rgba(255, 255, 250, 0.14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-page .category-icon {
    display: none;
  }

  .home-page .category-name {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #fffffa;
    text-transform: none;
    white-space: nowrap;
  }

  .home-page .catalog {
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: 18px var(--side) 64px;
    background: #fffffa;
  }

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

  .home-page .product-card {
    padding: 8px;
    border-radius: 14px;
    background: #fffffa;
    border-color: rgba(116, 96, 76, 0.16);
  }

  .home-page .product-image-wrap {
    border-radius: 10px;
  }

  .home-page .product-tags {
    gap: 3px;
    margin-top: 8px;
  }

  .home-page .product-tags span {
    padding: 3px 5px;
    font-size: 9px;
    line-height: 120%;
  }

  .home-page .product-title {
    margin-top: 8px;
    padding-right: 18px;
    font-size: 16px;
    line-height: 110%;
  }

  .home-page .product-link::after {
    right: 10px;
    bottom: 9px;
    font-size: 20px;
  }

  .home-page .favorite-toggle-card {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  .home-page .favorite-toggle-card i,
  .home-page .favorite-toggle-card svg {
    font-size: 23px !important;
  }

  .detail-shop-header {
    padding: 0 var(--side);
  }

  .detail-header-main {
    min-height: auto;
    padding: 14px 0 12px;
    grid-template-columns: 1fr auto;
    grid-template-areas: 'logo actions' 'search search';
    gap: 12px 14px;
  }

  .detail-header-logo {
    grid-area: logo;
    font-size: 22px;
    white-space: normal;
  }

  .detail-header-actions {
    grid-area: actions;
    justify-self: end;
  }

  .detail-header-location {
    display: none;
  }

  .detail-header-favorites {
    width: 42px;
    height: 42px;
    min-width: 42px;
    justify-content: center;
    border: 1px solid rgba(49, 13, 32, 0.12);
    border-radius: 50%;
    background: rgba(49, 13, 32, 0.03);
  }

  .detail-header-favorites span {
    display: none;
  }

  .detail-header-search {
    grid-area: search;
  }

  .detail-header-categories {
    gap: 20px;
    min-height: auto;
    margin-top: 0;
    padding: 10px 0 12px;
  }

  .detail-header-categories a {
    font-size: 15px;
  }

  .detail-page,
  .favorites-page,
  .about-page,
  .legal-page {
    padding: 32px var(--side) 72px;
  }

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

  .product-detail-gallery,
  .product-detail-info {
    width: 100%;
    max-width: none;
  }

  .product-detail-info {
    padding-top: 0;
  }

  .product-detail-image-wrap {
    width: 100%;  
  }

  .product-detail-title {
    font-size: 32px;
  }

  .product-detail-characteristic-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 6px 0;
  }

  .product-detail-characteristic-row dd {
    text-align: left;
  }

  .product-detail-more {
    width: auto;
    border-top: 0;
    padding-top: 0;
  }

  .product-detail-stones-table-wrap,
  .product-detail-zoom-lens {
    display: none !important;
  }

  .product-detail-stone-cards {
    display: block;
  }

  .product-detail-stone-card {
    padding: 12px 0;
    border-bottom: 1px solid rgba(116, 96, 76, 0.14);
  }

  .product-detail-stone-card-title {
    margin-bottom: 8px;
    font-family: 'Akrobat', Arial, sans-serif;
    font-size: 18px;
    line-height: 120%;
    font-weight: 600;
    color: var(--color-accent);
  }

  .product-detail-stone-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(90px, auto);
    gap: 12px;
    padding: 4px 0;
  }

  .product-detail-stone-card-row span,
  .product-detail-stone-card-row strong {
    font-family: 'Akrobat', Arial, sans-serif;
    font-size: 16px;
    line-height: 125%;
    font-weight: 400;
  }

  .product-detail-stone-card-row span {
    color: var(--color-muted);
  }

  .product-detail-stone-card-row strong {
    color: var(--color-accent);
    text-align: right;
  }

  .favorites-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .favorites-page-title {
    font-size: 40px;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .favorite-list-remove {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .footer {
    padding: 48px var(--side) 44px;
  }

  .footer-inner {
  grid-template-columns: 1fr;
  gap: 32px;
  }
 
  .footer-column,
  .footer-brand {
  width: 100%;
  min-width: 0;
  }

  .footer-title {
    font-size: 30px;
  }

  .footer-heading {
    font-size: 22px;
  }

  .footer-text,
  .footer-nav a,
  .footer-contacts a {
    font-size: 15px;
  }

  .about-title {
    font-size: 36px;
  }

  .about-text,
  .legal-section p,
  .legal-section li {
    font-size: 15px;
  }

  .legal-section h2 {
    font-size: 23px;
  }
}

@media (max-width: 380px) {
  .home-page .hero-topbar-logo {
    font-size: 18px;
  }

  .home-page .header {
    height: 340px;
    min-height: 340px;
  }

  .home-page .hero-topbar .catalog-main-search {
  top: 200px;
  left: var(--side);
  right: var(--side);
  width: auto;
  padding: 0;
  }

  .home-page .hero-topbar::after {
    top: 243px;
  }

  .home-page .category-item {
    height: 32px;
    padding: 0 12px;
  }

  .home-page .category-name {
    font-size: 11px;
  }

  .home-page .product-title {
    font-size: 15px;
  }
}
