/* ==========================================================
   PPS PRODUCTS PAGE
========================================================== */

.products-page {
  padding-bottom: 28px;
}

/* ==========================================================
   HERO
========================================================== */

.products-hero {
  padding: 52px 0 34px;
}

.products-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: center;

  padding: 54px;
  border-radius: 34px;

  background:
    radial-gradient(circle at 88% 16%, rgba(77, 83, 159, .22), transparent 32%),
    radial-gradient(circle at 6% 10%, rgba(46, 47, 121, .16), transparent 28%),
    linear-gradient(135deg, #f8f9ff 0%, #eef0fb 48%, #f7f8fc 100%);

  border: 1px solid rgba(46, 47, 121, .12);
  box-shadow: 0 28px 70px rgba(31, 25, 84, .12);
}

.products-hero__content {
  max-width: 720px;
}

.products-hero__eyebrow,
.products-catalog__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 16px;
  padding: 8px 14px;

  border-radius: 999px;
  background: rgba(46, 47, 121, .10);
  color: var(--primary);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.products-hero h1 {
  margin: 0 0 20px;

  color: var(--primary-dark);

  font-size: clamp(40px, 5.4vw, 68px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.05em;
}

.products-hero__content > p {
  max-width: 660px;
  margin: 0;

  color: #62677f;
  font-size: 18px;
  line-height: 1.75;
}

.products-hero__highlights {
  display: grid;
  gap: 14px;
}

.products-highlight {
  padding: 20px 22px;

  border-radius: 20px;
  background: rgba(255, 255, 255, .80);
  border: 1px solid rgba(255, 255, 255, .88);

  box-shadow: 0 14px 34px rgba(31, 25, 84, .08);
  backdrop-filter: blur(10px);
}

.products-highlight strong {
  display: block;
  margin-bottom: 4px;

  color: var(--primary-dark);
  font-size: 16px;
}

.products-highlight span {
  color: #73788e;
  font-size: 14px;
}

/* ==========================================================
   CATALOG
========================================================== */

.products-catalog {
  padding: 58px 0 86px;
}

.products-catalog__head {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 34px;
  align-items: end;

  margin-bottom: 38px;
}

.products-catalog__head h2 {
  max-width: 700px;
  margin: 0;

  color: var(--primary-dark);

  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.04em;
}

.products-catalog__head > p {
  max-width: 520px;
  margin: 0 0 4px auto;

  color: #72778d;
  font-size: 16px;
  line-height: 1.75;
}

/* ==========================================================
   PRODUCT CARDS
========================================================== */

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

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 24px;
}

.product-content h2 {
  margin: 0 0 12px;

  color: var(--primary-dark);

  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.02em;
}

.product-content > p {
  margin: 0 0 18px;

  color: #6d7286;

  font-size: 14px;
  line-height: 1.7;
}

.product-content > p[style] {
  margin-bottom: 14px !important;

  color: var(--primary-dark) !important;

  font-size: 20px !important;
  font-weight: 900 !important;
}

.product-content .btn {
  width: 100%;
  margin-top: auto;
}

/* ==========================================================
   EMPTY STATE
========================================================== */

.empty-state {
  grid-column: 1 / -1;

  padding: 62px 28px;
  border-radius: 26px;

  text-align: center;

  background:
    radial-gradient(
      circle at top,
      rgba(77, 83, 159, .12),
      transparent 42%
    ),
    #fff;

  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 48px rgba(31, 25, 84, .08);
}

.empty-state__icon {
  width: 96px;
  height: 96px;

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

  margin: 0 auto 20px;

  border-radius: 28px;
  background: var(--accent-soft);
}

.empty-state__icon svg {
  width: 58px;
  height: 58px;
}

.empty-state h3 {
  margin: 0 0 10px;

  color: var(--primary-dark);
  font-size: 26px;
}

.empty-state p {
  margin: 0;

  color: #72778d;
  line-height: 1.65;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1080px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .products-hero {
    padding-top: 28px;
  }

  .products-hero__inner,
  .products-catalog__head {
    grid-template-columns: 1fr;
  }

  .products-hero__inner {
    padding: 36px 26px;
    border-radius: 28px;
  }

  .products-catalog__head > p {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .products-catalog {
    padding-top: 38px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    border-radius: 22px;
  }

  .product-card__body,
  .product-card__content {
    padding: 22px 20px;
  }

  .products-hero h1 {
    font-size: 42px;
  }
}

/* ==========================================================
   SHOP PRODUCT CARDS
========================================================== */

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

.shop-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  background: #fff;
  border: 1px solid rgba(46, 47, 121, 0.11);
  border-radius: 26px;

  box-shadow: 0 18px 48px rgba(31, 25, 84, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.shop-product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(46, 47, 121, 0.22);
  box-shadow: 0 28px 70px rgba(31, 25, 84, 0.14);
}

/* Product media */

.shop-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;

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

  overflow: hidden;
  text-decoration: none;

  background:
    radial-gradient(
      circle at 82% 14%,
      rgba(77, 83, 159, 0.18),
      transparent 36%
    ),
    linear-gradient(145deg, #f8f9ff, #eef0f8);
}

.shop-product-card__media img {
  width: 100%;
  height: 100%;
  padding: 26px;

  display: block;
  object-fit: contain;

  transition: transform 0.3s ease;
}

.shop-product-card:hover .shop-product-card__media img {
  transform: scale(1.045);
}

.shop-product-card__placeholder {
  width: 112px;
  height: 112px;

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

  border-radius: 30px;

  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--accent)
  );

  color: #fff;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* Badge */

.shop-product-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;

  padding: 7px 11px;

  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  box-shadow: 0 8px 20px rgba(31, 25, 84, 0.16);
}

.shop-product-card__badge--info {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border: 1px solid rgba(46, 47, 121, 0.14);
}

/* Body */

.shop-product-card__body {
  flex: 1;
  padding: 24px;

  display: flex;
  flex-direction: column;
}

.shop-product-card__content {
  flex: 1;
}

.shop-product-card__title {
  margin: 0 0 12px;

  font-size: 22px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.shop-product-card__title a {
  color: var(--primary-dark);
  text-decoration: none;
}

.shop-product-card__title a:hover {
  color: var(--primary);
}

.shop-product-card__description {
  margin: 0;

  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  color: #6c7185;
  font-size: 14px;
  line-height: 1.7;
}

/* Purchase area */

.shop-product-card__purchase {
  margin-top: 24px;
  padding-top: 20px;

  display: grid;
  gap: 12px;

  border-top: 1px solid rgba(46, 47, 121, 0.09);
}

.shop-product-card__price {
  color: var(--primary-dark);

  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.shop-product-card__purchase .btn {
  width: 100%;
}

.shop-product-card__details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 38px;

  color: var(--primary);
  text-decoration: none;

  font-size: 13px;
  font-weight: 800;

  transition: gap 0.2s ease, color 0.2s ease;
}

.shop-product-card__details:hover {
  gap: 12px;
  color: var(--primary-dark);
}

.product-add-to-cart:disabled {
  opacity: 0.72;
  cursor: default;
}

/* Responsive */

@media (max-width: 1080px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-product-card {
    border-radius: 22px;
  }

  .shop-product-card__media {
    aspect-ratio: 1 / 0.82;
  }

  .shop-product-card__body {
    padding: 22px 20px;
  }
}