/* Plantilla base para los nuevos productos de las subpaginas */
:root {
  --product-card-border: rgba(116, 86, 255, .82);
  --product-card-bg: rgba(15, 12, 33, .96);
  --product-card-line: rgba(192, 61, 222, .88);
  --product-card-radius: 20px;
}

.product-catalog {
  padding: 34px 0 22px;
}

.product-catalog .wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.product-section + .product-section {
  margin-top: 34px;
}

.product-section-title {
  width: 100%;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .2px;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(211, 39, 255, .18);
}

.product-section-title::before {
  content: "";
  width: 3px;
  height: 26px;
  flex: 0 0 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d327ff, #8b2cff);
  box-shadow: 0 0 14px rgba(211, 39, 255, .30);
}

.product-section-title::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  min-width: 36px;
  background: linear-gradient(90deg, rgba(211, 39, 255, .76), rgba(139, 44, 255, .30), transparent);
}

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

.product-grid:has(> .product-card:only-child) {
  grid-template-columns: minmax(220px, 286px);
  justify-content: center;
}

.product-card {
  width: 100%;
  max-width: 286px;
  margin: 0 auto;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--product-card-border);
  border-radius: var(--product-card-radius);
  background: var(--product-card-bg);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .24);
}

.product-card-featured {
  border-color: rgba(255, 191, 31, .72);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .24), 0 0 22px rgba(255, 191, 31, .12);
}

.product-card-image {
  width: min(100%, 170px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.product-card-title {
  width: 100%;
  margin: 14px 0 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
}

.product-card-price-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(22px, 1fr) auto minmax(22px, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.product-card-price-row::before,
.product-card-price-row::after {
  content: "";
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--product-card-line), rgba(116, 86, 255, .92));
}

.product-card-price-row::after {
  background: linear-gradient(90deg, rgba(116, 86, 255, .92), var(--product-card-line), transparent);
}

.product-card-price {
  min-width: 84px;
  padding: 6px 13px;
  border: 1px solid rgba(211, 39, 255, .70);
  border-radius: 999px;
  color: #fff;
  background: rgba(139, 44, 255, .25);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.product-card-actions {
  width: calc(100% - 12px);
  display: grid;
  gap: 10px;
}

.product-card-action {
  min-height: 42px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, .72);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.product-card-buy {
  color: #09030f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 36%),
    linear-gradient(135deg, #ffbf1f, #ffe15c);
  box-shadow: 0 4px 0 #8b4a00, 0 10px 18px rgba(0, 0, 0, .22);
}

.product-card-details {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 36%),
    linear-gradient(135deg, #74289d, #9b3bac);
  box-shadow: 0 4px 0 #42125d, 0 10px 18px rgba(0, 0, 0, .22);
}

.product-card-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.product-card-action:active {
  transform: translateY(3px) scale(.99);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 5px 10px rgba(0, 0, 0, .20);
}

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

@media (max-width: 480px) {
  .product-section + .product-section {
    margin-top: 26px;
  }

  .product-section-title {
    gap: 10px;
    margin-bottom: 14px;
    font-size: 19px;
  }

  .product-section-title::before {
    height: 22px;
  }

  .product-card {
    padding: 14px 10px 15px;
    border-radius: 16px;
  }

  .product-card-image {
    width: min(100%, 130px);
  }

  .product-card-title {
    margin: 12px 0 9px;
    font-size: 15px;
  }

  .product-card-price-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .product-card-price {
    min-width: 68px;
    padding: 5px 9px;
    font-size: 9px;
  }

  .product-card-actions {
    width: calc(100% - 6px);
    gap: 8px;
  }

  .product-card-action {
    min-height: 36px;
    padding: 8px 5px;
    font-size: 10px;
  }
}

/* Beneficios de compra: lectura rápida y alineación uniforme. */
.shop-benefit-card {
  text-align: center !important;
}

.shop-benefit-img {
  margin-left: auto !important;
  margin-right: auto !important;
}
