/* Catalog page styles. */

.catalog-hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-hero-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(123, 240, 176, 0.25);
  background: rgba(10, 29, 24, 0.7);
  color: #bafcd5;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.catalog-hero-nav__icon {
  display: none;
}

.catalog-hero-nav__link:hover {
  transform: translateY(-1px);
  border-color: rgba(195, 255, 64, 0.42);
  color: #e7ffd0;
}

.catalog-hero-nav__link--sale {
  position: relative;
  isolation: isolate;
  min-width: 160px;
  padding-left: 52px;
  border-color: rgba(255, 109, 83, 0.68);
  background:
    radial-gradient(circle at 24px 50%, rgba(255, 213, 74, 0.22), transparent 17px),
    linear-gradient(135deg, rgba(82, 22, 19, 0.88), rgba(43, 17, 15, 0.9));
  color: #fff2d6;
  box-shadow:
    0 0 12px rgba(255, 84, 63, 0.3),
    inset 0 0 0 1px rgba(255, 230, 160, 0.08);
}

.catalog-hero-nav__link--sale::before {
  content: "%";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ff583f, #ffd456);
  color: #24100b;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 0 14px rgba(255, 87, 62, 0.48);
}

.catalog-hero-nav__link--sale:hover {
  border-color: rgba(255, 180, 100, 0.92);
  color: #fff8e7;
  box-shadow:
    0 0 16px rgba(255, 84, 63, 0.48),
    0 0 30px rgba(255, 183, 74, 0.18),
    inset 0 0 0 1px rgba(255, 230, 160, 0.13);
}

.catalog-hero-nav__link.is-active,
.catalog-hero-nav__link[aria-current="page"] {
  border-color: rgba(232, 255, 117, 0.9);
  background: linear-gradient(135deg, rgba(20, 69, 40, 0.92), rgba(66, 120, 16, 0.86));
  color: #f4ffd4;
  box-shadow:
    0 0 10px rgba(150, 255, 105, 0.6),
    0 0 22px rgba(150, 255, 105, 0.44),
    inset 0 0 0 1px rgba(247, 255, 187, 0.25);
}

.catalog-hero-nav__link--sale.is-active,
.catalog-hero-nav__link--sale[aria-current="page"] {
  border-color: rgba(255, 126, 84, 0.98);
  background:
    radial-gradient(circle at 24px 50%, rgba(255, 213, 74, 0.32), transparent 19px),
    linear-gradient(135deg, rgba(118, 30, 24, 0.96), rgba(72, 37, 14, 0.9));
  color: #fff4d0;
  box-shadow:
    0 0 18px rgba(255, 84, 63, 0.58),
    0 0 36px rgba(255, 177, 63, 0.26),
    inset 0 0 0 1px rgba(255, 235, 181, 0.18);
}

.product-catalog-shortcuts {
  margin-top: 18px;
  margin-bottom: 14px;
}

.catalog-hero-nav--product {
  justify-content: center;
}

@media (min-width: 981px) {
  .catalog-hero-nav--desktop-icons {
    gap: 14px;
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link {
    min-height: 58px;
    padding: 0 22px 0 12px;
    border-color: rgba(123, 240, 176, 0.28);
    background:
      radial-gradient(circle at 24px 50%, rgba(20, 215, 106, 0.18), transparent 30px),
      rgba(6, 22, 18, 0.76);
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link:hover,
  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link.is-active,
  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link[aria-current="page"] {
    transform: translateY(-1px);
    border-color: rgba(87, 255, 142, 0.86);
    background:
      radial-gradient(circle at 32px 50%, rgba(44, 255, 130, 0.46), transparent 54px),
      linear-gradient(135deg, rgba(18, 96, 48, 0.86), rgba(4, 20, 16, 0.88));
    color: #f4ffe7;
    box-shadow:
      0 0 18px rgba(49, 245, 117, 0.58),
      0 0 44px rgba(49, 245, 117, 0.24),
      inset 0 0 0 1px rgba(205, 255, 158, 0.18);
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link:not(:has(.catalog-hero-nav__icon)) {
    padding-left: 22px;
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin-left: -4px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 48%, rgba(38, 255, 130, 0.24), transparent 62%),
      rgba(3, 18, 14, 0.86);
    box-shadow:
      0 0 16px rgba(24, 225, 108, 0.36),
      inset 0 0 0 1px rgba(123, 240, 176, 0.18);
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__icon img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link:hover .catalog-hero-nav__icon,
  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link.is-active .catalog-hero-nav__icon,
  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link[aria-current="page"] .catalog-hero-nav__icon {
    background:
      radial-gradient(circle at 50% 48%, rgba(54, 255, 136, 0.42), transparent 64%),
      rgba(4, 42, 26, 0.9);
    box-shadow:
      0 0 18px rgba(35, 255, 121, 0.62),
      0 0 36px rgba(35, 255, 121, 0.26),
      inset 0 0 0 1px rgba(183, 255, 162, 0.28);
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link--sale {
    min-width: 0;
    padding-left: 12px;
    border-color: rgba(255, 116, 83, 0.8);
    background:
      radial-gradient(circle at 32px 50%, rgba(255, 213, 74, 0.34), transparent 48px),
      radial-gradient(circle at 100% 50%, rgba(255, 71, 55, 0.24), transparent 72px),
      linear-gradient(135deg, rgba(88, 26, 18, 0.95), rgba(34, 13, 11, 0.9));
    color: #fff1d5;
    box-shadow:
      0 0 14px rgba(255, 83, 58, 0.36),
      0 0 30px rgba(255, 171, 62, 0.14),
      inset 0 0 0 1px rgba(255, 225, 154, 0.12);
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link--sale::before {
    display: none;
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link--sale .catalog-hero-nav__icon {
    background:
      radial-gradient(circle at 50% 48%, rgba(255, 213, 74, 0.4), transparent 64%),
      rgba(75, 23, 14, 0.92);
    box-shadow:
      0 0 18px rgba(255, 86, 60, 0.48),
      inset 0 0 0 1px rgba(255, 225, 154, 0.18);
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link--sale:hover,
  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link--sale.is-active,
  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link--sale[aria-current="page"] {
    border-color: rgba(255, 126, 84, 0.98);
    background:
      radial-gradient(circle at 32px 50%, rgba(255, 220, 91, 0.52), transparent 56px),
      radial-gradient(circle at 96% 52%, rgba(255, 64, 52, 0.36), transparent 86px),
      linear-gradient(135deg, rgba(137, 34, 25, 0.98), rgba(76, 30, 11, 0.94));
    color: #fff8e8;
    box-shadow:
      0 0 20px rgba(255, 84, 63, 0.72),
      0 0 46px rgba(255, 177, 63, 0.3),
      0 0 74px rgba(255, 54, 48, 0.12),
      inset 0 0 0 1px rgba(255, 235, 181, 0.24);
  }

  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link--sale:hover .catalog-hero-nav__icon,
  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link--sale.is-active .catalog-hero-nav__icon,
  .catalog-hero-nav--desktop-icons .catalog-hero-nav__link--sale[aria-current="page"] .catalog-hero-nav__icon {
    background:
      radial-gradient(circle at 50% 48%, rgba(255, 232, 118, 0.56), transparent 66%),
      rgba(103, 25, 14, 0.94);
    box-shadow:
      0 0 20px rgba(255, 88, 62, 0.72),
      0 0 42px rgba(255, 177, 63, 0.24),
      inset 0 0 0 1px rgba(255, 235, 181, 0.26);
  }
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 240, 176, 0.26);
}

.card__main-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.card__badges {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 8px;
  max-width: calc(100% - 28px);
}

.catalog-card--sale .card__badges {
  right: auto;
  left: 14px;
  justify-items: start;
}

.catalog-card--promo.catalog-card--sale .card__badges {
  top: 58px;
}

.card-promo-ribbon {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: -44px;
  width: 164px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.card-promo-ribbon--new {
  background: linear-gradient(135deg, #0b7f47, #36dc8e);
  border: 1px solid rgba(211, 255, 229, 0.45);
}

.card-promo-ribbon--hit {
  background: linear-gradient(135deg, #f0a21a, #ffe168);
  border: 1px solid rgba(255, 246, 184, 0.66);
  color: #c0141f !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 2px rgba(255, 255, 255, 0.75) !important;
}

.card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 24, 20, 0.92);
  border: 1px solid rgba(255, 213, 74, 0.3);
  color: #ffe59a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__badge--sale {
  background:
    linear-gradient(135deg, rgba(255, 64, 64, 0.96), rgba(255, 194, 61, 0.92));
  border-color: rgba(255, 231, 148, 0.78);
  color: #17110a;
  box-shadow:
    0 10px 22px rgba(255, 63, 63, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

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

.catalog-card__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.catalog-card__icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(123, 240, 176, 0.24);
  background: rgba(255, 255, 255, 0.035);
  color: #e8fff3;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card__icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-card__icon-button:hover,
.catalog-card__icon-button.is-selected,
.catalog-card__icon-button.is-active {
  transform: translateY(-1px);
  border-color: rgba(232, 255, 117, 0.5);
  background: rgba(17, 182, 93, 0.16);
  color: #efffd2;
  box-shadow: 0 0 16px rgba(123, 240, 176, 0.18);
}

.card-sale {
  display: grid;
  grid-template-columns: auto;
  align-items: center;
  gap: 8px;
  max-width: 86px;
  color: #fff9df;
  filter: drop-shadow(0 12px 20px rgba(255, 58, 48, 0.24));
}

.compare-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(680px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(123, 240, 176, 0.28);
  background: rgba(5, 16, 13, 0.94);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42), 0 0 24px rgba(17, 182, 93, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.compare-dock[hidden] {
  display: none;
}

.compare-dock__copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #bfead9;
}

.compare-dock__copy strong {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand2), #e8ff75);
  color: #04100c;
}

.compare-dock__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compare-dock__button,
.compare-dock__clear {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.compare-dock__button {
  border: 0;
  background: linear-gradient(135deg, var(--brand2), #e8ff75);
  color: #04100c;
}

.compare-dock__button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.compare-dock__clear {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 6, 0.78);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.compare-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.compare-modal__dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(calc(100dvh - 36px), 820px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(123, 240, 176, 0.2);
  background: rgba(7, 15, 13, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.compare-modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.compare-modal__dialog h2 {
  margin: 0 54px 18px 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.bookmark-login-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 6, 0.78);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bookmark-login-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.bookmark-login-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(123, 240, 176, 0.22);
  background:
    linear-gradient(145deg, rgba(17, 182, 93, 0.1), rgba(255, 213, 74, 0.06)),
    rgba(7, 15, 13, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 0 26px rgba(17, 182, 93, 0.14);
}

.bookmark-login-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.bookmark-login-modal__dialog h2 {
  margin: 0 44px 12px 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.bookmark-login-modal__dialog p {
  margin: 0 0 20px;
  color: #b8d0c6;
  line-height: 1.55;
}

.bookmark-login-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bookmark-login-modal__primary,
.bookmark-login-modal__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.bookmark-login-modal__primary {
  border: 0;
  background: linear-gradient(135deg, var(--brand2), #e8ff75);
  color: #04100c;
}

.bookmark-login-modal__ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.compare-table {
  min-width: 720px;
  display: grid;
  gap: 8px;
}

.compare-table__row {
  display: grid;
  grid-template-columns: 160px repeat(var(--compare-cols), minmax(150px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.compare-table__row > div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8e9e1;
  line-height: 1.45;
}

.compare-table__label {
  color: #9ad0ba !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.compare-table__product {
  display: grid;
  gap: 8px;
}

.compare-table__product img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.compare-table__product strong {
  line-height: 1.25;
}

.compare-table__product a {
  color: var(--brand2);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 640px) {
  .compare-dock {
    bottom: 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .compare-dock__actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .compare-modal {
    padding: 10px;
  }

  .compare-modal__dialog {
    max-height: calc(100dvh - 20px);
    padding: 18px 14px;
    border-radius: 20px;
  }

  .compare-table {
    min-width: 640px;
  }
}

.card-sale__coin {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.48), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 221, 74, 0.95), transparent 42%),
    linear-gradient(145deg, #e41717 0%, #ff4c1f 48%, #ffb72e 100%);
  border: 2px solid rgba(255, 238, 166, 0.95);
  box-shadow:
    0 0 0 4px rgba(255, 109, 31, 0.25),
    0 0 24px rgba(255, 74, 45, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.card-sale__coin span,
.card-sale__coin small {
  display: block;
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 1px 2px rgba(75, 22, 9, 0.38);
}

.card-sale__coin strong {
  display: block;
  margin: 1px 0;
  color: #fff;
  font-family: var(--display);
  font-size: 1.14rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 4px rgba(75, 22, 9, 0.38);
}

.card .card-sale__coin span,
.card .card-sale__coin small {
  color: #fff;
  line-height: 1.05;
}

.card-sale__timer {
  display: grid;
  gap: 1px;
  min-width: 116px;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(9, 22, 16, 0.86);
  border: 1px solid rgba(255, 213, 74, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-sale__timer small {
  color: rgba(255, 249, 223, 0.72);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.card-sale__timer strong {
  color: #ffe37b;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.card__img {
  position: absolute;
  top: 16px;
  left: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  display: block;
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.card__img--secondary {
  opacity: 0;
  transform: scale(1.035);
  filter: saturate(1.06);
}

.card:hover .card__img--primary,
.card:focus-visible .card__img--primary {
  opacity: 0;
  transform: scale(0.98);
}

.card:hover .card__img--secondary,
.card:focus-visible .card__img--secondary {
  opacity: 1;
  transform: scale(1);
}

.card strong {
  font-size: 1.04rem;
  line-height: 1.35;
}

.card p,
.card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card .card__availability {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 2px;
  border: 1px solid rgba(123, 240, 176, 0.28);
  background: rgba(17, 182, 93, 0.1);
  color: #7bf0b0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.card > span,
.card__excerpt {
  display: -webkit-box;
  min-height: calc(1.6em * 4);
  max-height: calc(1.6em * 4);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.catalog-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.card__price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.card__price--sale {
  color: #ff4b4b;
}

.card__price__main {
  color: inherit;
}

.card__price__old {
  color: rgba(234, 236, 232, 0.62);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: line-through;
}

.card__price__saving {
  flex-basis: 100%;
  color: #4ee18a;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.catalog-card {
  display: grid;
  gap: 12px;
}

.catalog-card--on-request {
  animation: catalog-card-fade-in 0.45s ease both;
}

.catalog-card--sale .card {
  border-color: rgba(255, 194, 61, 0.22);
  box-shadow:
    var(--shadow),
    0 0 26px rgba(255, 64, 64, 0.08);
}

.catalog-card--on-request .card {
  border-color: rgba(255, 213, 74, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.025);
}

.catalog-card--on-request .card__img {
  filter: grayscale(1);
}

.catalog-card--on-request .card strong,
.catalog-card--on-request .card span,
.catalog-card--on-request .card__price,
.catalog-card--on-request .card__price__main,
.catalog-card--on-request .card__price__old,
.catalog-card--on-request .card__price__saving {
  color: rgba(234, 236, 232, 0.78);
}

.catalog-card--on-request .card .card-promo-ribbon--new {
  color: #fff;
}

.catalog-card--on-request .card .card-promo-ribbon--hit {
  color: #c0141f !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 2px rgba(255, 255, 255, 0.75) !important;
}

.catalog-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 12px;
  padding: 0 6px;
}

.catalog-card__footer .card__price {
  min-width: 0;
}

.catalog-card__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 2px solid rgba(229, 228, 228, 0.86);
  background: #15351e;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 0 5px rgba(12, 217, 12, 0.68),
    0 0 10px rgba(7, 222, 7, 0.46),
    0 0 20px rgba(10, 210, 10, 0.28),
    0 0 40px rgba(7, 224, 7, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.catalog-card__cart:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 255, 117, 0.96);
  background: linear-gradient(135deg, #1a4828, #22461b);
  box-shadow:
    0 0 8px rgba(123, 240, 176, 0.75),
    0 0 18px rgba(12, 217, 12, 0.56),
    0 0 34px rgba(232, 255, 117, 0.24),
    0 16px 34px rgba(0, 0, 0, 0.26);
}

.catalog-card__cart.is-added {
  background: linear-gradient(135deg, rgba(17, 182, 93, 0.24), rgba(232, 255, 117, 0.18));
  color: var(--brand2);
}

.catalog-card__cart:disabled,
.catalog-card__cart--on-request {
  cursor: not-allowed;
  opacity: 0.82;
  border-color: rgba(255, 213, 74, 0.18);
  background: linear-gradient(135deg, rgba(77, 75, 59, 0.6), rgba(59, 63, 52, 0.72));
  color: #f2dfb0;
  box-shadow: none;
}

.catalog-browser {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  position: relative;
}

.catalog-browser__sidebar {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 18px;
}

.catalog-browser__main,
.catalog-empty-state {
  display: grid;
  gap: 22px;
}

.catalog-empty-state--full {
  grid-column: 1 / -1;
}

.catalog-facet,
.catalog-toolbar,
.catalog-empty-state {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(17, 182, 93, 0.08), rgba(255, 213, 74, 0.04)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.catalog-facet--nested {
  display: none;
}

.catalog-browser,
.catalog-browser__main,
.catalog-toolbar,
.catalog-toolbar__top,
.catalog-toolbar__controls,
.catalog-toolbar__equipment,
.catalog-equipment,
.catalog-facet,
.catalog-card,
.card {
  min-width: 0;
}

.hero,
.section {
  overflow-x: clip;
}

.catalog-facet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.catalog-facet__drawer-head {
  display: none;
}

.catalog-facet__head h2,
.catalog-toolbar__label,
.catalog-empty-state strong {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
}

.hero h1,
.hero .lead,
.card strong,
.card p,
.card span {
  overflow-wrap: anywhere;
}

.catalog-facet__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(190, 255, 117, 0.38);
  background: rgba(123, 240, 176, 0.1);
  color: #dfff8f;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow:
    0 0 14px rgba(123, 240, 176, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.catalog-facet__reset:hover {
  transform: translateY(-1px);
  border-color: rgba(219, 255, 111, 0.62);
  background: rgba(123, 240, 176, 0.16);
}

.catalog-facet__reset.is-hidden {
  display: none;
}

.catalog-facet__list {
  display: grid;
  gap: 12px;
}

.catalog-facet__list-wrap {
  position: relative;
}

.catalog-facet__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.catalog-facet__toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s ease;
}

.catalog-facet__toggle[aria-expanded="true"] .catalog-facet__toggle-icon {
  transform: rotate(225deg) translateY(-1px);
}

.catalog-facet__empty,
.catalog-empty-state span {
  color: var(--muted);
  line-height: 1.6;
}

.catalog-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.catalog-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.catalog-check__box {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.catalog-check input:checked + .catalog-check__box {
  border-color: rgba(195, 255, 103, 0.86);
  background: linear-gradient(135deg, rgba(25, 226, 118, 0.78), rgba(190, 255, 83, 0.48));
  box-shadow:
    0 0 0 3px rgba(123, 240, 176, 0.18),
    0 0 18px rgba(123, 240, 176, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.catalog-check input:checked + .catalog-check__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 7px;
  height: 12px;
  border-right: 3px solid rgba(5, 31, 20, 0.88);
  border-bottom: 3px solid rgba(5, 31, 20, 0.88);
  transform: rotate(42deg);
}

.catalog-check:has(input:checked) .catalog-check__label {
  color: #efffd3;
}

.catalog-check__label {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.catalog-check__count {
  color: var(--muted);
  font-size: 0.92rem;
}

.catalog-toolbar {
  gap: 14px;
  padding: 16px 18px;
}

.catalog-toolbar__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.catalog-toolbar__controls {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.catalog-toolbar__equipment {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.catalog-toolbar__label--mobile-hint::after {
  content: "Проведіть, щоб побачити всі";
  margin-left: 10px;
  color: rgba(209, 225, 218, 0.76);
  font-size: 0.82rem;
  font-weight: 500;
}

.catalog-equipment {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: start;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.catalog-equipment__item {
  cursor: pointer;
  flex: 0 0 86px;
  scroll-snap-align: start;
}

.catalog-equipment__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.catalog-equipment__card {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 82px;
  padding: 8px 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.catalog-equipment__item:hover .catalog-equipment__card {
  transform: translateY(-2px);
  border-color: rgba(123, 240, 176, 0.24);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.catalog-equipment__item input:checked + .catalog-equipment__card {
  border-color: rgba(123, 240, 176, 0.42);
  background:
    linear-gradient(135deg, rgba(17, 182, 93, 0.12), rgba(255, 213, 74, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.16),
    0 0 0 3px rgba(123, 240, 176, 0.08);
}

.catalog-equipment__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / 57%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.catalog-equipment__item input:checked + .catalog-equipment__card .catalog-equipment__icon {
  border-color: rgba(123, 240, 176, 0.46);
  box-shadow: 0 0 0 3px rgba(123, 240, 176, 0.12);
}

.catalog-equipment__icon--image img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.catalog-equipment__title {
  color: var(--text);
  font-weight: 700;
  font-size: 0.69rem;
  line-height: 1;
}

.catalog-equipment__count {
  color: var(--muted);
  font-size: 0.68rem;
}

.catalog-sort {
  display: grid;
  gap: 6px;
  justify-items: end;
  align-content: start;
  min-width: 0;
}

.catalog-sort select {
  min-width: min(100%, 220px);
  min-height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 17, 16, 0.74);
  color: var(--text);
  font: inherit;
}

.catalog-toolbar__label--sort {
  font-size: 0.86rem;
}

@media (min-width: 981px) {
  .catalog-toolbar:has(.catalog-toolbar__equipment) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 22px;
    row-gap: 10px;
  }

  .catalog-toolbar:has(.catalog-toolbar__equipment) .catalog-toolbar__top {
    display: contents;
  }

  .catalog-toolbar:has(.catalog-toolbar__equipment) .catalog-toolbar__label--mobile-hint {
    grid-column: 1;
    grid-row: 1;
  }

  .catalog-toolbar:has(.catalog-toolbar__equipment) .catalog-toolbar__controls {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .catalog-toolbar:has(.catalog-toolbar__equipment) .catalog-toolbar__equipment {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin-top: 0;
  }
}

.catalog-filter-trigger,
.catalog-filter-overlay {
  display: none;
}

.catalog-section__grid {
  animation: catalog-grid-reveal 0.55s ease both;
}

.catalog-load-more {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 55px;
}

.catalog-load-more__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(17, 182, 93, 0.08), rgba(255, 213, 74, 0.06)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.catalog-load-more__button:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 240, 176, 0.28);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.2),
    0 0 18px rgba(123, 240, 176, 0.12);
}

.catalog-load-more__button:disabled {
  cursor: wait;
  opacity: 0.76;
  transform: none;
}

.catalog-load-more__status {
  min-height: 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.catalog-pagination--secondary {
  opacity: 1;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.catalog-pagination__link,
.catalog-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.catalog-pagination__link:hover,
.catalog-pagination__arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 240, 176, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.catalog-pagination__link.is-current {
  background: linear-gradient(135deg, var(--brand), #d8ff63);
  border-color: transparent;
  color: #07110d;
  box-shadow: 0 16px 32px rgba(17, 182, 93, 0.2);
}

.catalog-seo-section {
  padding-top: 0;
}

.catalog-seo {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 28px 0 4px;
  color: var(--muted);
}

.catalog-seo__content {
  position: relative;
  max-height: 13.8em;
  overflow: hidden;
  line-height: 1.7;
  transition: max-height 0.45s ease;
}

.catalog-seo[data-expanded="false"] .catalog-seo__content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6.5em;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 13, 11, 0), var(--bg) 88%);
}

.catalog-seo[data-expanded="true"] .catalog-seo__content {
  max-height: var(--catalog-seo-expanded-height, 1600px);
}

.catalog-seo__content h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
}

.catalog-seo__content h3 {
  margin: 22px 0 10px;
  color: var(--text);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.3;
}

.catalog-seo__content h2 + h3 {
  margin-top: 0;
}

.catalog-seo__content h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.catalog-seo__content p {
  margin: 0 0 14px;
}

.catalog-seo__content p:last-child {
  margin-bottom: 0;
}

.catalog-seo__content a {
  color: var(--brand2);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 213, 74, 0.34);
}

.catalog-seo__content a:hover {
  color: var(--text);
  border-bottom-color: rgba(123, 240, 176, 0.7);
}

.catalog-seo__faq {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.catalog-seo__faq-item {
  padding-left: 16px;
  border-left: 2px solid rgba(123, 240, 176, 0.26);
}

.catalog-seo__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(123, 240, 176, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.catalog-seo__toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 240, 176, 0.34);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

@keyframes catalog-grid-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes catalog-card-fade-in {
  from {
    opacity: 0.92;
  }
  to {
    opacity: 1;
  }
}

.catalog-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(17, 182, 93, 0.08), rgba(255, 213, 74, 0.04)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.catalog-footer-nav__copy {
  display: grid;
  gap: 6px;
}

.catalog-footer-nav__copy strong {
  color: var(--text);
  font-size: 1.02rem;
}

.catalog-footer-nav__copy span {
  color: var(--muted);
  line-height: 1.6;
}

.catalog-footer-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-footer-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-footer-nav__link:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 240, 176, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.catalog-footer-nav__link--primary {
  background: linear-gradient(135deg, var(--brand), #d8ff63);
  border-color: transparent;
  color: #07110d;
}

.recent-products {
  margin-top: 28px;
}

.recent-products[hidden] {
  display: none;
}

.recent-products__head {
  margin-bottom: 16px;
}

.recent-products__head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.recent-products__wrap {
  position: relative;
}

.recent-products__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(244px, 286px);
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 76px 18px 2px;
  margin-right: -2px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(188, 203, 214, 0.82) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.recent-products__track::-webkit-scrollbar {
  height: 10px;
}

.recent-products__track::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.recent-products__track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(188, 203, 214, 0.82);
}

.recent-products__track .catalog-card {
  scroll-snap-align: start;
}

.recent-products__arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(232, 255, 117, 0.42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(28, 76, 42, 0.98), rgba(10, 18, 15, 0.98));
  color: #e8ff75;
  cursor: pointer;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.32),
    0 0 20px rgba(123, 240, 176, 0.18);
  transform: translateY(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.recent-products__arrow--prev {
  left: 8px;
}

.recent-products__arrow--next {
  right: 8px;
}

.recent-products__arrow::before {
  content: "";
  width: 15px;
  height: 15px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg) translate(-2px, 2px);
}

.recent-products__arrow--prev::before {
  transform: rotate(225deg) translate(-2px, 2px);
}

.recent-products__arrow:hover {
  border-color: rgba(232, 255, 117, 0.82);
}

.recent-products__arrow--prev:hover {
  transform: translateY(-50%) translateX(-2px);
}

.recent-products__arrow--next:hover {
  transform: translateY(-50%) translateX(2px);
}

.recent-products__arrow:disabled,
.recent-products__arrow.is-disabled {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .product-catalog-shortcuts {
    display: none;
  }

  .catalog-hero-nav__link {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.8rem;
  }

  .catalog-hero-nav__link--sale {
    min-width: 150px;
    padding-left: 48px;
    padding-right: 18px;
  }

  .catalog-hero-nav__link--sale::before {
    left: 14px;
  }

  .catalog-browser,
  .grid {
    grid-template-columns: 1fr;
  }

  .catalog-browser__sidebar {
    position: static;
    top: auto;
  }

  .catalog-toolbar__top {
    align-items: stretch;
    gap: 14px;
  }

  .catalog-toolbar__controls {
    justify-content: space-between;
  }

  .catalog-sort {
    justify-items: stretch;
  }

  .catalog-footer-nav,
  .catalog-footer-nav__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-footer-nav__link {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .catalog-hero-nav {
    display: flex;
  }

  .catalog-hero-nav__link {
    display: none;
  }

  .catalog-hero-nav__link.is-active,
  .catalog-hero-nav__link[aria-current="page"] {
    display: inline-flex;
  }

  .catalog-hero-nav__link--sale.is-active,
  .catalog-hero-nav__link--sale[aria-current="page"] {
    min-width: 154px;
    padding-left: 50px;
    padding-right: 18px;
  }

  .catalog-card--sale .card__badges {
    top: 12px;
    right: 12px;
    left: 12px;
    justify-items: stretch;
    max-width: none;
  }

  .card-promo-ribbon {
    top: 13px;
    left: -45px;
    width: 154px;
    min-height: 31px;
    font-size: 0.66rem;
  }

  .catalog-card--promo.catalog-card--sale .card__badges {
    top: 54px;
  }

  .catalog-card--sale .card-sale {
    width: auto;
    max-width: 78px;
    grid-template-columns: auto;
  }

  .catalog-card--sale .card-sale__coin {
    width: 70px;
    height: 70px;
  }

  body {
    overflow-x: hidden;
  }

  .catalog-toolbar {
    margin-right: -20px;
    margin-left: -20px;
    padding: 16px 20px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body.catalog-mobile-filters-open {
    overflow: hidden;
  }

  .catalog-browser__sidebar {
    position: fixed;
    top: 82px;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: min(340px, 88vw);
    max-width: 100%;
    overflow-y: auto;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .catalog-browser[data-catalog-filter-open="true"] .catalog-browser__sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .catalog-browser__sidebar .catalog-facet {
    min-height: auto;
    margin-bottom: 14px;
    padding: 18px 18px 24px;
    border-radius: 0 22px 22px 0;
    background:
      linear-gradient(135deg, rgb(1 67 32), rgb(76 255 74 / 4%)),
      rgb(0 0 0);
    border-color: rgba(110, 230, 146, 0.14);
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.48),
      inset -1px 0 0 rgba(255, 255, 255, 0.04);
    overflow: visible;
  }

  .catalog-browser__sidebar .catalog-facet:last-child {
    margin-bottom: 0;
  }

  .catalog-facet__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px -2px 18px;
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .catalog-facet__drawer-title {
    color: var(--text);
    font-size: 1.24rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .catalog-facet__drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
  }

  .catalog-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    padding: 0;
    background: linear-gradient(180deg, rgba(4, 10, 8, 0.58), rgba(4, 10, 8, 0.76));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .catalog-browser[data-catalog-filter-open="true"] .catalog-filter-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .catalog-facet__list-wrap[data-catalog-diameter-collapsed="true"] {
    max-height: 188px;
    overflow: hidden;
  }

  .catalog-facet__list-wrap[data-catalog-diameter-collapsed="true"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 58px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 39, 22, 0), rgba(15, 39, 22, 0.96));
  }

  .catalog-facet__toggle {
    display: inline-flex;
  }

  .catalog-toolbar__top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .catalog-toolbar__equipment {
    gap: 12px;
  }

  .catalog-toolbar__controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    margin-bottom: 7px;
  }

  .catalog-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(17, 182, 93, 0.08), rgba(255, 213, 74, 0.05)),
      rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
  }

  .catalog-filter-trigger__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--brand2);
  }

  .catalog-filter-trigger__icon svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .catalog-toolbar__label--sort {
    display: none;
  }

  .catalog-toolbar__label--mobile-hint {
    display: none;
  }

  .catalog-equipment {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(96px, 96px);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding-right: 56px;
    padding-bottom: 8px;
    margin-right: -56px;
    margin-left: -20px;
    padding-left: 20px;
    margin-top: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-equipment__card {
    min-height: 110px;
    scroll-snap-align: start;
  }

  .catalog-equipment__icon {
    width: 54px;
    height: 54px;
  }

  .catalog-equipment__icon--image img {
    width: 30px;
    height: 30px;
  }

  .catalog-sort {
    justify-items: stretch;
  }

  .catalog-sort select {
    min-width: 100%;
    min-height: 48px;
  }

  .catalog-card__footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .recent-products {
    margin-top: 18px;
  }

  .recent-products .container {
    overflow: hidden;
  }

  .recent-products__head {
    margin-bottom: 12px;
  }

  .recent-products__head h2 {
    font-size: 1.32rem;
  }

  .recent-products__track {
    grid-auto-columns: minmax(204px, 52vw);
    gap: 10px;
    padding-right: 42px;
    padding-bottom: 16px;
    margin-right: -42px;
  }

  .recent-products__track .card {
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .recent-products__track .card__image {
    padding: 10px;
    border-radius: 14px;
  }

  .recent-products__track .card__img {
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }

  .recent-products__track .card strong {
    font-size: 0.86rem;
  }

  .recent-products__track .catalog-card__meta-row {
    align-items: center;
    gap: 4px;
    min-height: 40px;
  }

  .recent-products__track .card .card__availability {
    flex: 0 0 auto;
    max-width: calc(100% - 88px);
    min-width: 88px;
    min-height: 30px;
    padding: 0 9px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 0.76rem;
    line-height: 1;
  }

  .recent-products__track .catalog-card__tools {
    flex: 0 0 auto;
    gap: 5px;
  }

  .recent-products__track .catalog-card__icon-button {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .recent-products__track .card > span,
  .recent-products__track .card__excerpt {
    display: none;
  }

  .recent-products__track .card__price {
    font-size: 1.12rem;
  }

  .recent-products__track .catalog-card__footer {
    gap: 8px;
    padding: 0;
  }

  .recent-products__track .catalog-card__cart {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.84rem;
  }

  .recent-products__arrow {
    display: none;
  }

  .catalog-pagination__link,
  .catalog-pagination__arrow {
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
  }
}
