:root {
  --hpg-ink: #0f172a;
  --hpg-copy: #475569;
  --hpg-cyan: #10a6cc;
  --hpg-teal: #009b91;
  --hpg-line: #d6e6ec;
  --hpg-soft: #f3f9fb;
}

body {
  background: #fff;
  color: var(--hpg-ink);
  font-family: "Prompt", "IBM Plex Sans Thai", system-ui, sans-serif;
}

body p,
body small { color: var(--hpg-copy); }
.eyebrow { color: var(--hpg-cyan); font-family: "Prompt", system-ui, sans-serif; font-weight: 700; letter-spacing: .15em; }
.section-heading h2,
.need-section h2,
.categories h2 { color: var(--hpg-ink); font-weight: 800; letter-spacing: -.035em; }
.button,
.cart-button { border-radius: 999px; }
.button-primary,
.cart-button { background: var(--hpg-cyan); box-shadow: 0 10px 24px rgba(16,166,204,.18); }

.need-section { padding-top: 72px; }
.need-section .section-heading { margin-bottom: 28px; }
.need-grid { gap: 18px; }
.need-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  padding: 0 22px 22px;
  background: #fff;
  border: 1px solid var(--hpg-line);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15,23,42,.055);
}
.need-card:hover,
.need-card:focus-visible { border-color: var(--hpg-cyan); box-shadow: 0 18px 42px rgba(16,166,204,.14); }
.need-card > .need-card-media {
  width: calc(100% + 44px);
  height: 152px;
  margin: 0 -22px 20px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg,#eff9fb,#e8f4f8);
}
.need-card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.need-card strong { color: var(--hpg-ink); font-size: 1.04rem; line-height: 1.45; }
.need-card small { color: var(--hpg-copy); font-size: .84rem; line-height: 1.65; }
.need-card-clinic { background: #073c51; border-color: #073c51; }
.need-card-clinic > .need-card-media { background: linear-gradient(145deg,#e9f8fb,#d9f0f5); }
.need-card-clinic strong { color: #fff; }
.need-card-clinic small { color: #d9eef3; }

.category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.category-card {
  display: flex;
  min-width: 0;
  min-height: 286px;
  overflow: hidden;
  padding: 0 20px 20px;
  flex-direction: column;
  border: 1px solid var(--hpg-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,.05);
  color: var(--hpg-ink);
  text-decoration: none;
}
.category-card:hover,
.category-card.selected { border-color: var(--hpg-cyan); background: #fff; box-shadow: 0 18px 42px rgba(16,166,204,.13); }
.category-card > .category-card-media {
  display: grid;
  width: calc(100% + 40px);
  height: 160px;
  flex: 0 0 160px;
  margin: 0 -20px 18px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg,#eff9fb,#e7f4f7);
}
.category-card > .category-card-media > img { display: block; width: 100% !important; height: 160px !important; max-height: 160px !important; object-fit: contain; mix-blend-mode: multiply; }
.category-card .category-card-kicker { display: block; width: auto; height: auto; margin: 0 0 5px; border-radius: 0; background: transparent; color: var(--hpg-cyan); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.category-card-external .category-card-media { background: linear-gradient(145deg,#f3f8fb,#ecf6f9); }
.category-card-external .category-card-kicker { background: transparent; color: var(--hpg-teal); }
.category-card strong { color: var(--hpg-ink); font-size: .98rem; line-height: 1.45; }
.category-card small { color: var(--hpg-copy); font-size: .78rem; line-height: 1.55; }

.catalog-mega[hidden] { display: none; }
.catalog-mega {
  position: absolute;
  z-index: 25;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 28px 0 34px;
  border-top: 1px solid var(--hpg-line);
  border-bottom: 1px solid var(--hpg-line);
  background: rgba(255,255,255,.985);
  box-shadow: 0 24px 50px rgba(15,23,42,.15);
}
.site-header { position: relative; }
.catalog-mega-inner { display: grid; gap: 22px; }
.catalog-mega-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.catalog-mega-heading h2 { margin: 0; color: var(--hpg-ink); font-size: 1.75rem; letter-spacing: -.03em; }
.catalog-mega-heading p:not(.eyebrow) { margin: 8px 0 0; font-size: .9rem; }
.catalog-mega-close { width: 42px; height: 42px; border: 1px solid var(--hpg-line); border-radius: 50%; background: #fff; color: var(--hpg-ink); font-size: 1.65rem; cursor: pointer; }
.catalog-mega-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.catalog-mega-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  min-height: 118px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--hpg-line);
  border-radius: 18px;
  background: #fff;
  color: var(--hpg-ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.catalog-mega-card:hover,
.catalog-mega-card:focus-visible { border-color: var(--hpg-cyan); box-shadow: 0 10px 26px rgba(16,166,204,.12); }
.catalog-mega-card img { width: 88px; height: 88px; object-fit: contain; border-radius: 13px; background: var(--hpg-soft); mix-blend-mode: multiply; }
.catalog-mega-card strong { display: block; font-size: .88rem; line-height: 1.45; }
.catalog-mega-card small { display: block; margin-top: 5px; font-size: .73rem; line-height: 1.45; }
.catalog-mega-access { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-radius: 18px; background: #073c51; color: #fff; }
.catalog-mega-access strong,
.catalog-mega-access small { display: block; color: inherit; }
.catalog-mega-access small { margin-top: 4px; color: #d9eef3; font-size: .78rem; }
.catalog-mega-access button { flex: none; min-height: 42px; padding: 8px 20px; border: 0; border-radius: 999px; background: var(--hpg-cyan); color: #fff; font-weight: 700; cursor: pointer; }
.catalog-trigger[aria-expanded="true"] { background: var(--hpg-cyan); color: #fff; }

@media (max-width: 980px) {
  .need-grid,
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-mega { position: fixed; top: 0; height: 100dvh; overflow-y: auto; }
  .catalog-mega-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .need-section { padding-top: 52px; }
  .need-grid,
  .category-grid,
  .catalog-mega-grid { grid-template-columns: 1fr; }
  .need-card { min-height: 268px; }
  .category-card { min-height: 264px; }
  .catalog-mega { padding: 20px 0 28px; }
  .catalog-mega-heading h2 { font-size: 1.35rem; }
  .catalog-mega-card { grid-template-columns: 78px 1fr; min-height: 104px; }
  .catalog-mega-card img { width: 78px; height: 78px; }
  .catalog-mega-access { align-items: flex-start; flex-direction: column; }
  .catalog-mega-access button { width: 100%; }
}
