.catalog-page {
  padding-top: 20px;
}

.catalog-layout__content--wide {
  padding: 0;
  border: 0;
  background: transparent;
}

.catalog-page .page-shell {
  display: grid;
  gap: 18px;
}

.catalog-top-nav {
  position: relative;
  z-index: 12;
}

.catalog-top-nav__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.catalog-top-nav__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.catalog-top-nav__list {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-top-nav__item {
  position: relative;
}

.catalog-top-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(124, 89, 70, 0.14);
  border-radius: 14px;
  background: #fffdfb;
  color: var(--text);
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.catalog-top-nav__item:hover > .catalog-top-nav__link,
.catalog-top-nav__item:focus-within > .catalog-top-nav__link,
.catalog-top-nav__item.is-active > .catalog-top-nav__link,
.catalog-top-nav__item.is-current-branch > .catalog-top-nav__link {
  border-color: rgba(198, 149, 46, 0.42);
  background: #fff8ed;
  color: #3f3027;
}

.catalog-top-nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  max-width: 520px;
  padding-top: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.catalog-top-nav__item:hover > .catalog-top-nav__dropdown,
.catalog-top-nav__item:focus-within > .catalog-top-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.catalog-top-nav__dropdown-inner {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(124, 89, 70, 0.12);
  border-radius: 18px;
  background: #fffdfb;
  box-shadow: 0 24px 44px rgba(71, 54, 44, 0.08);
}

.catalog-top-nav__group {
  display: grid;
  gap: 8px;
}

.catalog-top-nav__dropdown-link {
  color: var(--text);
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.catalog-top-nav__sublist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-top-nav__subitem {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(124, 89, 70, 0.12);
  border-radius: 999px;
  background: #f7f0ea;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.catalog-top-nav__group.is-active > .catalog-top-nav__dropdown-link,
.catalog-top-nav__group.is-current-branch > .catalog-top-nav__dropdown-link,
.catalog-top-nav__subitem.is-active,
.catalog-top-nav__subitem:hover {
  color: #b88718;
}

.catalog-page__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2px;
}

.catalog-page__back {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-grid,
.product-grid {
  gap: 18px;
}

.section-card,
.product-card {
  border: 1px solid rgba(124, 89, 70, 0.12);
  border-radius: 24px;
  background: #fffdfb;
}

.section-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.section-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 149, 46, 0.22);
  box-shadow: 0 24px 44px rgba(71, 54, 44, 0.08);
}

.section-card__media,
.product-card__media {
  background: #fff;
}

.section-card__media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.section-card__body {
  padding: 16px 18px 18px;
  text-align: center;
}

.section-card__name {
  font-size: 20px;
  letter-spacing: -0.03em;
  text-align: center;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 18px;
}

.product-card__media img {
  object-fit: contain;
}

.product-card__badge {
  top: 18px;
  left: 18px;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #4c5b6a;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.product-card__wish {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(46, 51, 56, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2e3338;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.product-card__wish:hover {
  transform: translateY(-1px);
}

.product-card__wish.is-active {
  border-color: rgba(194, 146, 46, 0.4);
  background: #c2922e;
  color: #fff8ef;
}

.product-card__wish span {
  display: inline-flex;
  line-height: 1;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 18px 18px;
}

.product-card__brand {
  margin: 0;
  color: #2e3338;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-card__title {
  margin: 2px 0 0;
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
}

.product-card__title a {
  color: inherit;
}

.product-card__meta {
  margin-top: 10px;
}

.product-card__meta span {
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f5efea;
  font-size: 11px;
}

.product-card__footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 89, 70, 0.1);
}

.product-card__footer--default {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-card__price-label {
  color: #b7b0ab;
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__price {
  color: #c6952e;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-card__actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin-top: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover .product-card__footer--default {
  opacity: 0;
}

.product-card__cta {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 0;
  border-radius: 0 0 24px 24px;
  background: #c6952e;
  color: #fffefb;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.product-card__cta:hover {
  background: #b78620;
}

.product-card__cta-text,
.product-card__cta-price {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.product-card__cta-text {
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .catalog-top-nav__dropdown {
    display: none;
  }

  .catalog-page__title {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .catalog-page__title {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-card__name {
    font-size: 18px;
  }

  .product-card__media {
    padding: 14px;
  }

  .product-card__body {
    padding: 0 14px 14px;
  }

  .product-card__wish {
    top: 14px;
    right: 14px;
  }

  .product-card__cta {
    min-height: 54px;
    padding: 0 14px;
  }

  .product-card__cta-text,
  .product-card__cta-price {
    font-size: 13px;
  }
}
