.shopPage {
  --shop-header-height: 4.8vw;
  min-height: 100%;
  background: #f8f8f8;
  color: #242424;
}

.shopPage .mainMenu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
}

.shopPage .blockMenu:last-child {
  align-items: flex-start;
}

.headerCartCount {
  color: #2a2a2a;
  font-family: 'ABC MonumentGrotesk Mono', sans-serif;
  font-size: 1.1vw;
  line-height: 1;
  white-space: nowrap;
}

.promoMarquee {
  position: relative;
  z-index: 9;
  width: 100%;
  margin-top: var(--shop-header-height);
  overflow: hidden;
  background: #65b900;
  color: #fff;
}

.promoMarqueeTrack {
  display: flex;
  width: max-content;
  animation: shop-marquee 22s linear infinite;
}

.promoMarqueeGroup {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.promoMarquee span {
  min-width: 430px;
  padding: 1.55vw 42px 1.45vw;
  font-size: clamp(13px, 1.1vw, 18px);
  line-height: 1;
  white-space: nowrap;
}

@keyframes shop-marquee {
  to {
    transform: translateX(-50%);
  }
}

.shopMain {
  display: grid;
  grid-template-columns: clamp(190px, 22.5vw, 340px) minmax(0, 1fr);
  padding: 3vw 3.4vw 7vw 5.2vw;
}

.shopCategories {
  position: sticky;
  top: calc(var(--shop-header-height) + 2vw);
  align-self: start;
  display: flex;
  flex-direction: column;
  padding-top: 1vw;
}

.shopCategories a {
  width: fit-content;
  color: #d7d7d7;
  font-family: 'ABC MonumentGrotesk Regular', sans-serif;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.shopCategories a:hover,
.shopCategories a:focus-visible {
  color: #868686;
  outline: none;
}

.shopCategories a.active {
  color: #151515;
  transform: translateX(3px);
}

.productRows {
  min-width: 0;
}

.productRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.1vw, 34px);
  scroll-margin-top: 2vw;
}

.productRow + .productRow {
  margin-top: clamp(34px, 3vw, 52px);
}

.productCard {
  display: flex;
  min-width: 0;
  aspect-ratio: 0.625 / 1;
  flex-direction: column;
  padding: clamp(12px, 1vw, 18px);
  background: #efefef;
}

.productVisual {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  background: #d8d9d9;
}

.productVisual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* Высота фотографий повторяет ритм референса.
   При этом каждое изображение занимает всю ширину своего блока. */
#clothes .productCard:nth-child(1) .productVisual,
#clothes .productCard:nth-child(3) .productVisual,
#things .productCard:nth-child(2) .productVisual,
#gifts .productCard:nth-child(3) .productVisual {
  aspect-ratio: 0.76 / 1;
}

#clothes .productCard:nth-child(2) .productVisual {
  aspect-ratio: 1 / 1.02;
}

#things .productCard:nth-child(1) .productVisual,
#things .productCard:nth-child(3) .productVisual,
#gifts .productCard:nth-child(1) .productVisual {
  aspect-ratio: 1 / 1;
}

#gifts .productCard:nth-child(2) .productVisual {
  aspect-ratio: 1.08 / 1;
}

.productVisualContain img {
  object-fit: contain;
}

.productCard:hover .productVisual img {
  transform: scale(1.025);
}

.productInfo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: auto;
  padding-top: clamp(14px, 1.45vw, 24px);
}

.productInfo h2,
.productInfo p {
  grid-column: 1;
  color: #303030;
  font-family: 'ABC MonumentGrotesk Regular', sans-serif;
  font-size: clamp(13px, 1.1vw, 18px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.productInfo h2 {
  max-width: 160px;
}

.productInfo p {
  color: #303030;
}

.addButton,
.quantityControl {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  min-width: clamp(92px, 7.5vw, 112px);
  height: clamp(34px, 2.75vw, 42px);
  border: 1px solid #555;
  border-radius: 0;
  background: transparent;
  color: #303030;
  font-family: 'ABC MonumentGrotesk Mono', sans-serif;
  font-size: clamp(9px, 0.75vw, 12px);
  line-height: 1;
  text-transform: uppercase;
}

.addButton {
  padding: 0 10px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.addButton:hover,
.addButton:focus-visible {
  border-color: #242424;
  background: #242424;
  color: #fff;
  outline: none;
}

.quantityControl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
}

.quantityControl button {
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.quantityControl button:hover,
.quantityControl button:focus-visible {
  background: #dedede;
  outline: none;
}

@media (min-width: 1001px) and (max-width: 1500px) and (min-height: 960px) and (max-height: 1100px) {
  .shopPage {
    --shop-header-height: 86px;
  }

  .shopPage .blockMenu:last-child {
    align-items: center;
  }

  .shopPage .headerCartCount {
    display: inline-flex;
    min-height: 62px;
    align-items: center;
    font-size: 15px;
  }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .shopPage {
    --shop-header-height: 72px;
  }

  .shopPage .blockMenu:last-child {
    align-items: center;
  }

  .shopPage .headerCartCount {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .shopPage {
    --shop-header-height: 72px;
  }

  .headerCartCount {
    font-size: 14px;
  }

  .shopMain {
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 32px 24px 72px;
  }

  .productRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .productCard {
    aspect-ratio: 0.625 / 1;
  }
}

@media (max-width: 600px) {
  .shopPage {
    --shop-header-height: 64px;
  }

  .shopPage .mainMenu {
    position: fixed;
  }

  .shopPage #burger {
    position: fixed;
  }

  .shopPage .blockMenu:last-child {
    align-items: flex-start;
  }

  .shopPage .mainMenu .headerCartCount {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    font-size: 7vw;
  }

  .promoMarquee {
    margin-top: var(--shop-header-height);
  }

  .promoMarquee span {
    min-width: 330px;
    padding: 17px 28px;
    font-size: 13px;
  }

  .shopMain {
    display: block;
    padding: 0 14px 60px;
  }

  .shopCategories {
    top: 0;
    z-index: 15;
    flex-direction: row;
    gap: 18px;
    margin: 0 -14px 20px;
    padding: 16px 14px 13px;
    overflow-x: auto;
    background: rgb(248 248 248 / 0.94);
    backdrop-filter: blur(8px);
  }

  .shopCategories a {
    flex: 0 0 auto;
    font-size: 18px;
  }

  .productRow {
    grid-template-columns: 1fr;
    gap: 16px;
    scroll-margin-top: 62px;
  }

  .productRow + .productRow {
    margin-top: 30px;
  }

  .productCard {
    aspect-ratio: auto;
    min-height: 0;
    padding: 13px;
  }

  .productInfo {
    min-height: 82px;
    padding-top: 18px;
  }

  .productInfo h2,
  .productInfo p {
    font-size: 18px;
  }

  .addButton,
  .quantityControl {
    min-width: 108px;
    height: 42px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promoMarqueeTrack {
    animation-play-state: paused;
  }

  .productVisual img {
    transition: none;
  }
}
