/* ===================================================================
   CATALOG UI — buy_medicine polish (scoped overrides)
   v1.0 — Jun 2026
   =================================================================== */

body.catalog-page {
  background: linear-gradient(160deg, hsl(160, 40%, 92%) 0%, hsl(160, 40%, 92%) 40%, hsl(35, 18%, 90%) 100%);
}

/* Hero alignment with commerce funnel */
body.catalog-page .hero-pharmacy {
  background: linear-gradient(135deg, #006e53, #008c69, #523db8) !important;
}

body.catalog-page .hero-pharmacy .hero-title {
  letter-spacing: -0.02em;
}

body.catalog-page .hero-stats-bar {
  border-radius: 100px;
  background: hsla(35, 12%, 80%, 0.14);
  border: 1px solid hsla(35, 14%, 82%, 0.22);
}

/* Product cards — cleaner commerce look */
body.catalog-page .product-card {
  border-radius: 18px !important;
  border: 1px solid hsl(160, 40%, 92%) !important;
  box-shadow: 0 4px 18px rgba(0, 140, 105, 0.07) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  position: relative;
  overflow: hidden;
}

/* Premium unique shine + micro brand effect extending the global premium cards */
body.catalog-page .product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 35%), rgba(0,140,105,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
body.catalog-page .product-card:hover::after { opacity: 1; }

@media (hover: hover) {
  body.catalog-page .product-card:hover {
    transform: translateY(-6px) scale(1.005) !important;
    border-color: rgba(0, 140, 105, 0.38) !important;
    box-shadow: 0 16px 36px rgba(0, 140, 105, 0.18) !important;
  }
  /* Subtle capsule brand accent on hover for special design consistency */
  body.catalog-page .product-card:hover .product-badge {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(0,140,105,0.3);
  }
}

body.catalog-page .product-card .product-price,
body.catalog-page .product-card .price-tag {
  color: #008c69 !important;
  font-weight: 800 !important;
}

body.catalog-page .categories-section .category-tile.active {
  border-color: #008c69 !important;
  box-shadow: 0 0 0 3px rgba(0, 140, 105, 0.12) !important;
}

body.catalog-page .search-btn {
  background: linear-gradient(135deg, #008c69, #523db8) !important;
  border: none !important;
  color: #fff !important;
}

body.catalog-page .search-btn:hover {
  background: linear-gradient(135deg, #006e53, #452fa0) !important;
  color: #fff !important;
}

.trending-keywords-bar {
  max-width: 1100px;
  margin: 12px auto 20px;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(0, 140, 105, 0.06), rgba(82, 61, 184, 0.04));
  border: 1px solid rgba(0, 140, 105, 0.12);
  border-radius: 999px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.trending-keywords-bar .trending-label {
  font-weight: 600;
  opacity: 0.7;
  margin-inline-end: 4px;
}

.trending-keywords-bar .trending-link {
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  padding: 2px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.trending-keywords-bar .trending-link:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* Sticky filter bar on mobile */
@media (max-width: 991px) {
  body.catalog-page .catalog-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid hsl(35, 15%, 88%);
  }
}