/* TOPCITY popular products block v8 */

.products-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 92% 14%, #d9dad53d, transparent 25rem),
    linear-gradient(180deg, #f7f6f1 0%, #f3f2ed 100%);
}

.products-section::before {
  content: "";
  z-index: -1;
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(90deg, transparent 0 49.8%, #8c8f870f 50%, transparent 50.2%);
  background-size: 46px 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}

.product-card {
  isolation: isolate;
  background: linear-gradient(135deg, #e9eaeb, #aeb1b3 48%, #f2f3f3 100%);
  border-color: #4c4f501f;
  box-shadow: 0 13px 34px #20232112, inset 0 1px #fff9;
  transition: border-color .35s, box-shadow .35s, transform .35s;
}

.product-card::before {
  content: "";
  z-index: 1;
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 16%, #fff0b9 0, transparent 35%),
    linear-gradient(135deg, #94640f 0%, #f2d17a 36%, #b17b1c 68%, #ffe7a1 100%);
  mix-blend-mode: color;
  transition: opacity .62s cubic-bezier(.2, .72, .2, 1);
}

.product-card::after {
  content: "";
  z-index: 4;
  pointer-events: none;
  position: absolute;
  width: 13%;
  height: 165%;
  top: -32%;
  left: -30%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #fff8d624 25%, #fffef2cf 50%, #dfff9f38 72%, transparent);
  filter: blur(8px);
  mix-blend-mode: screen;
  transform: skewX(-18deg) translateX(0);
}

.product-card:hover,
.product-card:focus-within {
  border-color: #b98a2a73;
  box-shadow: 0 22px 52px #5d43182a, inset 0 1px #fff8;
  transform: translateY(-3px);
}

.product-card:hover::before,
.product-card:focus-within::before {
  opacity: .94;
}

.product-card:hover::after,
.product-card:focus-within::after {
  animation: product-gold-glint 1.18s cubic-bezier(.32, .05, .25, 1) .09s both;
}

.product-card > img,
.product-card-calendar > img,
.product-card-menu > img,
.product-card-mgk > img,
.product-card-catalog > img {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  transform: none !important;
  filter: contrast(1.035) saturate(.83) brightness(.97);
  transition: transform .72s cubic-bezier(.2, .72, .2, 1), filter .62s ease !important;
}

.product-card:hover > img,
.product-card:focus-within > img,
.product-card-calendar:hover > img,
.product-card-menu:hover > img,
.product-card-mgk:hover > img,
.product-card-catalog:hover > img {
  transform: scale(1.028) !important;
  filter: contrast(1.055) saturate(.88) brightness(.92);
}

.product-card-rigid > img { object-position: 53% center; }
.product-card-bags > img { object-position: 52% center; }
.product-card-calendar > img { object-position: 57% center; }
.product-card-menu > img { object-position: 57% center; }
.product-card-mgk > img { object-position: 53% center; }
.product-card-catalog > img { object-position: 54% center; }
.product-card-carton > img { object-position: 50% center; }
.product-card-labels > img { object-position: 50% center; }
.product-card-publications > img { object-position: 50% center; }

@media (min-width: 1231px) {
  .product-grid {
    grid-template-rows: repeat(3, minmax(270px, 1fr));
  }

  .product-card-featured { grid-column: 1 / 6; grid-row: 1 / 3; }
  .product-card-carton { grid-column: 6 / 10; grid-row: 1; }
  .product-card-mgk { grid-column: 10 / 13; grid-row: 1; }
  .product-card-bags { grid-column: 6 / 9; grid-row: 2; }
  .product-card-labels { grid-column: 9 / 13; grid-row: 2; }
  .product-card-menu { grid-column: 1 / 5; grid-row: 3; }
  .product-card-calendar { grid-column: 5 / 9; grid-row: 3; }
  .product-card-publications { grid-column: 9 / 13; grid-row: 3; }
}

.product-shade,
.product-card-bags .product-shade {
  z-index: 3;
  background:
    linear-gradient(180deg, #06070721 0%, transparent 34%, #05060519 100%),
    linear-gradient(90deg, #ffffff20, transparent 55%) !important;
}

.product-card-copy,
.product-card-bags .product-card-copy {
  z-index: 6;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 92px);
  padding: 12px 14px 11px;
  color: #0b0c0b;
  border: 1px solid #ffffff7a;
  border-radius: 11px;
  background: #f8f8f3bd;
  box-shadow: 0 12px 30px #1114, inset 0 1px #fff;
  -webkit-backdrop-filter: blur(12px) saturate(.8);
  backdrop-filter: blur(12px) saturate(.8);
  transition: background .4s, border-color .4s, transform .4s;
}

.product-card-copy span {
  letter-spacing: -.012em;
  font-size: 14px;
  font-weight: 820;
}

.product-card-copy small,
.product-card-bags .product-card-copy small {
  color: #4c4e4a;
  font-size: 10px;
  line-height: 1.42;
}

.product-card:hover .product-card-copy,
.product-card:focus-within .product-card-copy {
  border-color: #fff1b999;
  background: #fff8e4d6;
  transform: translateY(-1px);
}

.product-card > a,
.product-card-bags > a {
  z-index: 7;
  color: #0b0c0b;
  border-color: #1618164f;
  background: #f6f6f0c7;
  box-shadow: 0 9px 24px #1113;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.product-card > a:hover,
.product-card > a:focus-visible {
  color: #0b0c0b;
  border-color: var(--lime);
  background: var(--lime);
}

@keyframes product-gold-glint {
  0% {
    opacity: 0;
    transform: skewX(-18deg) translateX(0);
  }
  18% { opacity: .9; }
  72% { opacity: .42; }
  100% {
    opacity: 0;
    transform: skewX(-18deg) translateX(1050%);
  }
}

@media (max-width: 1230px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .product-card,
  .product-card-featured,
  .product-card-carton,
  .product-card-rigid,
  .product-card-mgk,
  .product-card-bags,
  .product-card-labels,
  .product-card-menu,
  .product-card-calendar,
  .product-card-publications {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .product-card-featured { min-height: 440px; }
}

@media (max-width: 680px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 335px; }
  .product-card-featured { min-height: 460px; }
}

@media (max-width: 620px) {
  .product-card-copy,
  .product-card-bags .product-card-copy {
    max-width: calc(100% - 74px);
    padding: 10px 11px 9px;
  }

  .product-card-copy span {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card > img,
  .product-card::before,
  .product-card::after {
    animation: none !important;
    transition: none !important;
  }
}
