:root {
  --tg-color-accent: #c5a059;
  --tg-color-deep: #0d0d0d;
  --tg-color-bg: #ffffff;
  --tg-color-bg-alt: #f4f4f4;
  --tg-color-text: #1a1a1a;
  --tg-color-text-soft: #4d4d4d;
  --tg-color-text-muted: #8c8c8c;
  --tg-color-border: #e6e6e6;
  --tg-color-sale: #c8102e;
  --tg-shell-max: 19.2rem;
  --tg-section-space: 1.066667rem;
  --tg-gap: 0.32rem;
  --tg-gap-lg: 0.426667rem;
  --tg-radius: 0.053333rem;
  --tg-font-body: 0.213333rem;
  --tg-font-small: 0.173333rem;
  --tg-font-nav: 0.16rem;
  --tg-font-button: 0.186667rem;
  --tg-font-card-title: 0.266667rem;
  --tg-font-title: 0.48rem;
  --tg-font-hero: 0.693333rem;
  --tg-line-body: 1.6;
  --tg-shadow-soft: 0 0.106667rem 0.32rem rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--tg-font-body);
  line-height: var(--tg-line-body);
  color: var(--tg-color-text);
  background: var(--tg-color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.tg-shell { width: min(calc(100% - 0.64rem), var(--tg-shell-max)); margin: 0 auto; }
.tg-section { padding: var(--tg-section-space) 0; background: var(--tg-color-bg); }
.tg-section--light { background: var(--tg-color-bg-alt); }

.tg-overline {
  display: inline-block;
  margin-bottom: 0.16rem;
  font-size: var(--tg-font-nav);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tg-color-accent);
}

.tg-overline--light { color: rgba(255, 255, 255, 0.78); }
.section-heading { margin-bottom: 0.64rem; }
.section-heading--center { text-align: center; }

.tg-title {
  margin: 0;
  font-size: var(--tg-font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tg-color-deep);
}

.tg-text {
  max-width: 7.466667rem;
  margin: 0.186667rem 0 0;
  color: var(--tg-color-text-soft);
}

.tg-actions { display: flex; flex-wrap: wrap; gap: 0.186667rem; }

.tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0.64rem;
  padding: 0 0.373333rem;
  border: 1px solid var(--tg-color-accent);
  border-radius: var(--tg-radius);
  background: var(--tg-color-accent);
  color: #fff;
  font-size: var(--tg-font-button);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tg-button:hover { background: #ae8d4f; border-color: #ae8d4f; color: #fff; transform: translateY(-0.013333rem); }
.tg-button--ghost { background: transparent; color: var(--tg-color-deep); border-color: var(--tg-color-deep); }
.tg-button--ghost:hover { background: var(--tg-color-deep); color: #fff; border-color: var(--tg-color-deep); }
.tg-button--light { background: #fff; color: var(--tg-color-deep); border-color: #fff; }
.tg-button--light:hover { background: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.9); color: var(--tg-color-deep); }
.tg-button--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.48); }
.tg-button--ghost-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.68); }

.tg-grid-row { --bs-gutter-x: var(--tg-gap); --bs-gutter-y: var(--tg-gap); }
.tg-grid-row--center { justify-content: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(0.16rem);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.266667rem;
  min-height: 0.8rem;
}

.site-header__brand {
  font-size: 0.293333rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--tg-color-deep);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 0.346667rem; }
.site-nav__link {
  position: relative;
  padding: 0.08rem 0;
  font-size: var(--tg-font-nav);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tg-color-deep);
  transition: color 0.25s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.093333rem;
  height: 1px;
  background: var(--tg-color-accent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-nav__link:hover,
.site-nav__link.is-current { color: var(--tg-color-accent); }
.site-nav__link:hover::after,
.site-nav__link.is-current::after { opacity: 1; transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 0.08rem; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.56rem;
  height: 0.56rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tg-color-deep);
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.icon-button:hover { color: var(--tg-color-accent); background: rgba(197, 160, 89, 0.08); }
.icon { width: 0.266667rem; height: 0.266667rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-header__cart-link { position: relative; }
.site-header__cart-badge {
  position: absolute;
  top: 0.066667rem;
  right: 0.04rem;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 0.24rem;
  height: 0.24rem;
  padding: 0 0.05rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d5451b;
  box-shadow: 0 0.04rem 0.12rem rgba(213, 69, 27, 0.25);
  color: #fff;
  font-size: 0.12rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  transform: translate(32%, -30%);
}

.site-account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-account-menu__toggle {
  position: relative;
  z-index: 2;
}

.site-account-menu__panel {
  position: absolute;
  top: calc(100% + 0.08rem);
  right: 0;
  min-width: 2.2rem;
  padding: 0.1rem;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 0.08rem;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 0.18rem 0.42rem rgba(24, 18, 8, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.08rem);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-account-menu__panel::before {
  content: "";
  position: absolute;
  top: -0.066667rem;
  right: 0.16rem;
  width: 0.133333rem;
  height: 0.133333rem;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  border-left: 1px solid rgba(197, 160, 89, 0.2);
  background: rgba(255, 252, 247, 0.98);
  transform: rotate(45deg);
}

.site-account-menu:hover .site-account-menu__panel,
.site-account-menu:focus-within .site-account-menu__panel,
.site-account-menu.is-open .site-account-menu__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-account-menu__link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0.44rem;
  padding: 0 0.16rem;
  border: 0;
  border-radius: 0.05rem;
  background: transparent;
  color: var(--tg-color-deep);
  font-size: 0.16rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.site-account-menu__link:hover {
  background: rgba(197, 160, 89, 0.1);
  color: var(--tg-color-accent);
}

.site-account-menu__link--button {
  cursor: pointer;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.066667rem;
  width: 0.586667rem;
  height: 0.586667rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.site-header__toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--tg-color-deep);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-open .site-header__toggle span:nth-child(1) { transform: translateY(0.093333rem) rotate(45deg); }
.site-header.is-open .site-header__toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .site-header__toggle span:nth-child(3) { transform: translateY(-0.093333rem) rotate(-45deg); }

.product-card,
.feature-card,
.story-card,
.category-card { display: block; height: 100%; }

.product-card__media,
.feature-card__media,
.story-card__media,
.brand-story__media { overflow: hidden; background: #efefef; }

.product-card__media img,
.feature-card__media img,
.story-card__media img,
.category-card__visual img,
.brand-story__media img,
.editorial-feature__image {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__media img,
.feature-card:hover .feature-card__media img,
.story-card:hover .story-card__media img,
.category-card:hover .category-card__visual img,
.editorial-feature:hover .editorial-feature__image { transform: scale(1.04); }

.product-card__media,
.feature-card__media { position: relative; aspect-ratio: 3 / 4; }
.product-card__body,
.feature-card__body { padding-top: 0.24rem; }

.product-card__title,
.feature-card__title {
  margin: 0;
  font-size: var(--tg-font-card-title);
  line-height: 1.3;
  font-weight: 600;
  color: var(--tg-color-deep);
}

.product-card__meta,
.feature-card__meta {
  min-height: 0.6rem;
  margin: 0.12rem 0 0;
  font-size: var(--tg-font-small);
  color: var(--tg-color-text-soft);
}

.product-card__price { margin: 0.16rem 0 0; font-size: 0.24rem; font-weight: 700; color: var(--tg-color-accent); }
.product-card__price-sale { margin-right: 0.133333rem; }
.product-card__price-old { color: var(--tg-color-text-muted); font-size: 0.2rem; font-weight: 400; text-decoration: line-through; }

.product-card__badge {
  position: absolute;
  top: 0.186667rem;
  left: 0.186667rem;
  z-index: 1;
  padding: 0.066667rem 0.133333rem;
  background: var(--tg-color-sale);
  color: #fff;
  font-size: 0.146667rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card__media { aspect-ratio: 3 / 2; border-radius: var(--tg-radius); }
.story-card__body { padding-top: 0.186667rem; }
.story-card__meta {
  display: block;
  margin-bottom: 0.093333rem;
  font-size: var(--tg-font-small);
  color: var(--tg-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-card__title {
  margin: 0;
  font-size: 0.293333rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--tg-color-deep);
  transition: color 0.25s ease;
}

.story-card:hover .story-card__title { color: var(--tg-color-accent); }

.site-footer--news-detail {
  padding: 1.066667rem 0 0.426667rem;
  background: #f4f4f4;
  border-top: 1px solid rgba(13, 13, 13, 0.06);
}

.site-footer__top { display: flex; gap: 0.64rem; align-items: flex-start; }
.site-footer__brand-block { flex: 0 0 25%; }
.site-footer__brand {
  display: block;
  margin-bottom: 0.213333rem;
  font-size: 0.293333rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--tg-color-deep);
}

.site-footer__text { margin: 0; color: var(--tg-color-text-soft); font-size: .2133rem;}
.site-footer__text + .site-footer__text { margin-top: 0.133333rem; }
.site-footer__columns { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.32rem; }

.site-footer__column h3 {
  margin: 0 0 0.16rem;
  font-size: .24rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tg-color-deep);
}

.site-footer__column a {
  display: block;
  margin-top: 0.133333rem;
  color: var(--tg-color-text-soft);
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
  font-size: .2133rem;
}

.site-footer__column a:hover {
  color: var(--tg-color-deep);
  text-decoration: underline;
  text-decoration-color: var(--tg-color-accent);
  text-underline-offset: 0.053333rem;
}

.site-footer__note {
  margin: 0.133333rem 0 0;
  color: var(--tg-color-text-soft);
  font-size: .2133rem;
  line-height: 1.6;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.16rem;
  margin-top: 0.853333rem;
  padding-top: 0.213333rem;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
  font-size: var(--tg-font-small);
  color: var(--tg-color-text-soft);
}

.site-header {
  z-index: 50;
  background: rgba(252, 249, 248, 0.8);
  border-bottom: 1px solid rgba(13, 13, 13, 0.1);
  backdrop-filter: blur(0.2rem);
}

.site-header__brand {
  font-size: 0.32rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.site-nav {
  gap: 0.32rem;
}

.site-nav__link {
  padding: 0 0 0.04rem;
  font-size: 0.16rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.site-nav__link::after {
  bottom: -0.02rem;
  height: 0.02rem;
}

.site-header__actions {
  gap: 0.16rem;
}

.icon-button {
  width: 0.3733rem;
  height: 0.3733rem;
  border-radius: 0;
}

.icon {
  width: .3733rem;
  height: .3733rem;
}

.site-footer__bottom p { margin: 0; font-size: .2133rem;}

@media (max-width: 991.98px) {
  .tg-shell { width: min(calc(100% - 0.48rem), var(--tg-shell-max)); }
  .site-header__toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: 1.093333rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.186667rem;
    padding: 0.32rem 0.24rem 0.4rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(13, 13, 13, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.16rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-header.is-open .site-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-footer__top { flex-direction: column; }
  .site-footer__brand-block { flex-basis: auto; }
  .site-footer__columns { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-account-menu__panel {
    top: calc(100% + 0.12rem);
    right: -0.08rem;
    min-width: 2.56rem;
  }

  .site-account-menu__link {
    min-height: 0.66rem;
    font-size: 0.213333rem;
  }
}

@media (max-width: 575.98px) {
  .tg-shell { width: min(calc(100% - 0.32rem), var(--tg-shell-max)); }
  .site-header__bar { min-height: 0.933333rem; }
  .site-nav { top: 0.933333rem; }
  .site-header__actions { gap: 0.026667rem; }
  .site-footer__columns { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
