


:root {
  --red: #ed111b;
  --text: #151515;
  --muted: #777;
  --line: #e8e8e8;
  --soft: #f7f7f7;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

button,
select {
  font: inherit;
}

.category-container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}


/* =================================
   CATEGORY HERO — DESKTOP
================================= */

.category-hero {
  width: 100%;
  min-height: 545px;

  background: #f7f7f7;
  overflow: hidden;
}

.category-hero .category-container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.category-hero-inner {
  min-height: 545px;

  display: grid;
  grid-template-columns:
    minmax(470px, 42%)
    minmax(0, 58%);

  align-items: stretch;
  gap: 0;
}

.category-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding:
    35px
    clamp(45px, 7vw, 150px)
    45px
    max(48px, calc((100vw - 1280px) / 2 + 24px));

  background: #f7f7f7;
}

.category-breadcrumbs {
  margin-bottom: 58px;

  display: flex;
  align-items: center;
  gap: 10px;

  color: #999;
  font-size: 12px;
}

.category-breadcrumbs b {
  color: #666;
}

.category-eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.category-hero h1 {
  max-width: 535px;
  margin: 14px 0 22px;

  font-size: clamp(44px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -1.5px;
  text-transform: uppercase;
}

.category-hero-content > p {
  max-width: 500px;

  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

.category-summary {
  margin-top: 27px;

  display: flex;
  align-items: center;
  gap: 12px;
}

.category-summary img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.category-summary b,
.category-summary span {
  display: block;
}

.category-summary b {
  font-size: 12px;
}

.category-summary span {
  margin-top: 3px;

  color: #777;
  font-size: 10px;
}

.category-hero-image {
  min-width: 0;
  height: 545px;

  overflow: hidden;
  background: #ece8e4;
}

.category-hero-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center center;
}




/* CONTENT */

.category-content {
  padding: 35px 0 75px;
}

.category-team-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}

.category-team-slider::-webkit-scrollbar {
  display: none;
}

.category-team {
  flex: 0 0 176px;
  min-height: 76px;
  border: 1px solid transparent;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  cursor: pointer;
}

.category-team.active {
  border-color: var(--red);
  border-radius: 7px;
}

.category-team img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.category-team b,
.category-team small {
  display: block;
  text-align: left;
}

.category-team b {
  font-size: 12px;
}

.category-team small {
  margin-top: 4px;
  color: #888;
  font-size: 9px;
}

.category-toolbar {
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-toolbar p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.category-toolbar select {
  min-width: 175px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0 12px;
  outline: none;
}

.category-products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 38px 24px;
}

.category-product-card {
  min-width: 0;
}

.category-product-image {
  position: relative;
  display: block;

  /*
    Базовый вертикальный формат:
    50×80, Pit Stop, City.
  */
  aspect-ratio: 0.72;

  overflow: hidden;
  background: #f0f0f0;
}

.category-product-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/*
  Квадратный формат:
  Modern, Apex, Drivers, Track.
*/

.category-products-grid--square
.category-product-image {
  aspect-ratio: 1 / 1;
}


/*
  Горизонтальный формат:
  Apex Series.
*/

.category-products-grid--landscape
.category-product-image {
  aspect-ratio: 1.45 / 1;
}

.category-products-grid--landscape
.category-product-image > img {
  object-fit: cover;
}


/*
  На квадратной карточке изображение
  заполняет всю доступную область.
*/

.category-products-grid--square
.category-product-image > img {
  object-fit: cover;
}


/*
  Явно сохраняем вертикальный формат
  для 50×80, Pit Stop и City.
*/

.category-products-grid--portrait
.category-product-image {
  aspect-ratio: 0.72;
}

.category-products-grid--portrait
.category-product-image > img {
  object-fit: cover;
}

.category-product-favorite {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  padding: 6px;
}

.category-product-favorite img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-product-info {
  padding-top: 11px;
}

.category-product-info h3 {
  min-height: 38px;
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.35;
}

.category-product-info p {
  min-height: 16px;
  margin: 0 0 10px;
  color: #777;
  font-size: 11px;
}

.category-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-product-bottom strong {
  font-size: 13px;
}

.category-product-cart {
  width: 35px;
  height: 35px;
  border: 1px solid #eee;
  background: #fff;
  border-radius: 5px;
  padding: 8px;
  cursor: pointer;
}

.category-product-cart img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-empty {
  grid-column: 1 / -1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

.category-load-more {
  min-width: 220px;
  height: 46px;
  margin: 48px auto 0;
  display: block;
  border: 1px solid var(--red);
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.category-load-more[hidden] {
  display: none;
}



/* MOBILE */

@media (max-width: 900px) {
  .category-container {
    width: min(100% - 24px, var(--container));
  }

  .category-hero {
    min-height: auto;
  }

  .category-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 22px;
  }

  .category-breadcrumbs {
    margin-bottom: 25px;
  }

  .category-hero h1 {
    margin-top: 8px;
    font-size: 30px;
  }

  .category-hero-content > p {
    font-size: 12px;
  }

  .category-hero-image {
    height: 265px;
  }

  .category-content {
    padding-top: 20px;
  }

  .category-team {
    flex-basis: 93px;
    min-height: 70px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 7px;
  }

  .category-team img {
    width: 28px;
    height: 28px;
  }

  .category-team b,
  .category-team small {
    text-align: center;
    font-size: 8px;
  }

  .category-toolbar {
    align-items: stretch;
    gap: 10px;
  }

  .category-toolbar p {
    display: none;
  }

  .category-toolbar select {
    width: 100%;
  }

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

  .category-product-info h3 {
    min-height: 33px;
    font-size: 11px;
  }

  .category-product-info p {
    font-size: 9px;
  }

  .category-product-bottom strong {
    font-size: 11px;
  }
}






/* =================================
   TEMPORARILY DISABLE CATEGORY HERO IMAGE
================================= */

.category-hero-image {
  display: none !important;
}

.category-hero-inner {
  grid-template-columns: 1fr;
}

.category-hero-content {
  width: 100%;
  max-width: 1280px;
  min-height: 545px;
}





/* =================================
   CATEGORY TEAM HORIZONTAL SLIDER
================================= */

.category-team-slider-wrap {
  position: relative;

  display: flex;
  align-items: center;

  padding-left: 42px;
  padding-right: 42px;
}

.category-team-slider {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: stretch;
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 4px 2px 18px;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;

  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.category-team-slider::-webkit-scrollbar {
  display: none;
}

.category-team-slider.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.category-team {
  flex: 0 0 176px;
  scroll-snap-align: start;
}

.category-team-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;

  width: 34px;
  height: 34px;

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

  border: 1px solid #e3e3e3;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.97);
  color: #111;

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

  cursor: pointer;

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);

  transform: translateY(-65%);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.category-team-arrow:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.category-team-arrow-left {
  left: 0;
}

.category-team-arrow-right {
  right: 0;
}

.category-team-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}


/* Телефон */

@media (max-width: 768px) {
  .category-team-slider-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .category-team-arrow {
    display: none;
  }

  .category-team-slider {
    gap: 9px;
    padding-bottom: 12px;
  }

  .category-team {
    flex-basis: 145px;
  }
}





/* CITY FRAMES CATEGORY */

.category-products-grid
.city-frame-category-card
.category-product-image {
  aspect-ratio: 0.72;
}

.category-products-grid
.city-frame-category-card {
  min-width: 0;
}

.category-products-grid
.city-frame-category-card
.city-frame-options-button {
  width: 100%;
}

@media (max-width: 700px) {
  body:has(
    #categoryProductsGrid
    .city-frame-category-card
  )
  .category-products-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 28px 14px;
  }
}