.products-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(to bottom, #000000, #8a8a8a);
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}

.products-header {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
}

.products-header .back-button {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: background 0.2s ease;
}

.products-header .back-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.products-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.products-header p {
  margin: 0 auto;
  max-width: 36rem;
  color: #d0d0d0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.products-grid {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  width: 100%;
  box-sizing: border-box;
}

.product-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* Image left, copy right; height follows content — no extra stretch */
@media (min-width: 640px) {
  .product-card {
    flex-direction: row;
    align-items: center;
  }
}

.product-card-visual {
  flex: 0 0 auto;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.1rem;
}

/* Soft frame: glow + hairline edge instead of a heavy border */
.product-card-visual img {
  width: 100%;
  max-width: 200px;
  max-height: 140px;
  height: auto;
  aspect-ratio: auto;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  border: none;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (min-width: 640px) {
  .product-card-visual {
    padding: 0.85rem 1rem;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .product-card-visual img {
    max-width: 180px;
    max-height: 120px;
  }
}

.product-card-body {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (min-width: 640px) {
  .product-card-body {
    padding: 0.75rem 1.1rem 0.75rem 0.25rem;
  }
}

.product-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.product-card-body h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #7dd3c0;
  margin: 0;
  white-space: nowrap;
}

.product-description {
  margin: 0;
  line-height: 1.45;
  color: #c8c8cd;
  font-size: 0.9375rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0;
}

.product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-actions .product-btn-primary {
  background: #fff;
  color: #1c1c1e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.product-actions .product-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.35);
  color: #007aff;
}

.product-actions .product-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.product-actions .product-btn-secondary:hover {
  border-color: #64b5f6;
  color: #64b5f6;
}

.products-footer {
  margin-top: auto;
  padding: 2rem;
  background: #222;
  color: white;
  text-align: center;
}

.products-footer a {
  color: #64b5f6;
  margin: 0 0.5rem;
  text-decoration: none;
}

.products-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 639px) {
  .products-header {
    padding: 1.5rem 1rem 1rem;
  }

  .products-header .back-button {
    font-size: 0.9rem;
    padding: 0.45rem 0.95rem;
    margin-bottom: 1rem;
  }

  .products-header h1 {
    font-size: 1.5rem;
  }

  .products-header p {
    font-size: 0.95rem;
  }

  .products-grid {
    padding: 0.75rem 1rem 2rem;
  }

  .product-card {
    flex-direction: column;
    align-items: stretch;
  }

  .product-card-visual {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.1rem 1rem;
  }

  .product-card-visual img {
    max-width: min(100%, 260px);
    max-height: 180px;
    margin: 0 auto;
  }

  .product-card-body {
    padding: 1rem 1rem 1.1rem;
  }

  .product-card-body h2 {
    font-size: 1.15rem;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-actions a {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
  }
}
