/* ═══════════════════════════════════════════════════
   KEEPP — Products Page Styles (style-products.css)
   ═══════════════════════════════════════════════════ */

/* ── Products page token aliases (mapped to KEEPP vars) ── */
:root {
  --cream: var(--off-white);
  --warm-white: var(--white);
  --ink: var(--navy);
  --moss: var(--navy);
  --sage: var(--navy-light);
  --gold: var(--navy-light);
  --gold-light: var(--navy-pale);
  --terracotta: var(--navy-light);
  --blush: var(--navy-pale);
  --border: rgba(18,47,81,0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --ui: 'Questrial', system-ui, sans-serif;
}

/* ═══ HERO (matches services page pattern) ═══ */
.hero {
  background: radial-gradient(ellipse at 30% 20%, #f0f7ff 0%, #f8fafc 50%, #fafbfd 100%);
  padding: 100px 80px 48px;
  text-align: center;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-content {
  max-width: 720px;
  margin: 0 auto 32px;
  flex-shrink: 0;
}

/* ═══ SHARED SECTION HEADERS ═══ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-eyebrow {
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 600;
}
.section-title em {
  font-style: italic;
  color: var(--sage);
}
.section-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}
.section-subtitle em {
  font-style: italic;
  color: var(--sage);
}
.section-desc {
  margin: 1rem auto 0;
  max-width: 500px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ═══ PRODUCT CATEGORIES (inside hero) ═══ */
.products-grid {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
}

/* ═══ DOSAGE FORMS (mod-brand style 3×2 grid) ═══ */
.forms-section {
  background: linear-gradient(160deg, #f0e8fb 0%, #e8f0fd 50%, #fde8f2 100%);
  padding: 0;
}

/* ── 3-column grid ── */
.df-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
  padding: 40px 80px 0;
}

/* ── Navy title card (first cell) ── */
.df-title-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 260px;
}
.df-title-bg {
  position: absolute;
  inset: 0;
}
.df-deco-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.df-title-overlay {
  position: relative;
  z-index: 2;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(12,32,64,0.85) 0%, rgba(12,32,64,0.3) 60%, transparent 100%);
  flex: 1;
}
.df-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 34px);
  color: #fff;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.df-title em {
  font-style: italic;
  color: var(--navy-pale);
}
.df-lead {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

/* ── Glassmorphism cards ── */
.df-card {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.df-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(18,47,81,0.10), inset 0 1px 0 rgba(255,255,255,0.6);
}
.df-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}
.df-card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 8px 0 10px;
}
.df-card-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 12px;
}
.df-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.df-card-tags span {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-light);
  padding: 5px 12px;
  border: 1px solid rgba(18,47,81,0.1);
  border-radius: 100px;
  background: rgba(255,255,255,0.7);
}

/* CTA spacing for dosage forms */
.forms-section .df-cta {
  padding: 48px 80px 60px;
  text-align: center;
}

/* ═══ WORKFLOW ═══ */
.workflow-section {
  padding: 6rem 5rem;
  background: var(--navy-dark);
  border-top: none;
}
.workflow-section .section-eyebrow { color: var(--navy-pale); opacity: 0.8; }
.workflow-section .section-title { color: var(--white); }
.workflow-section .section-title em { color: var(--navy-pale); }
.workflow-section .section-desc { color: rgba(255,255,255,0.4); }
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
  margin-top: 3rem;
}
.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.6rem;
  text-align: center;
  position: relative;
}
.wf-line {
  position: absolute;
  top: 30px;
  left: 50%;
  right: -50%;
  height: 1.5px;
  background: rgba(255,255,255,0.15);
  opacity: 1;
  z-index: 0;
}
.workflow-step:last-child .wf-line { display: none; }
.wf-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.wf-circle svg {
  width: 22px;
  height: 22px;
}
.workflow-step:hover .wf-circle {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.wf-num {
  font-family: var(--ui);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.wf-title {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
}
.wf-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.3rem;
}

/* ═══ CATEGORIES (top-bottom layout, inside forms-section) ═══ */
.categories-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 80px 0;
}
.categories-block .section-header {
  margin-bottom: 3rem;
}
/* ── Bento Categories Grid ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
}
.categories-cta {
  text-align: center;
  padding-top: 48px;
}

/* Base card — image bg + dark mask */
.cat-card {
  padding: 2.2rem 2rem;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  /* Background image (set via inline style) */
  background-size: cover;
  background-position: center;
  background-color: var(--navy-dark);  /* fallback until images uploaded */
  transition: transform 0.25s;
}
/* Dark gradient mask overlay */
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,32,64,0.15) 0%, rgba(12,32,64,0.75) 100%);
  transition: background 0.3s;
  z-index: 1;
}
.cat-card:hover::before {
  background: linear-gradient(180deg, rgba(12,32,64,0.25) 0%, rgba(12,32,64,0.85) 100%);
}
.cat-card:hover {
  transform: translateY(-2px);
}
/* All card children above the mask */
.cat-card > * { position: relative; z-index: 2; }

/* Hover-only arrow (replaces static ↗) */
/* Hover: scale like SC/PC cards, no arrow */
.cat-card:hover { transform: scale(1.02); }

/* Number — white on image */
.cat-number {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

/* Icon — hidden (images replace emoji) */
.cat-icon-wrap { display: none; }
.cat-emoji { display: none; }

/* Text — white on image */
.cat-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.cat-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  flex: 1;
}

/* ── Featured cards (span 2 columns) ── */
.cat-card.featured:nth-child(1)  { grid-column: 1 / 3; }   /* 01 Slimming      */
.cat-card.featured:nth-child(6)  { grid-column: 3 / 5; }   /* 04 Beauty         */
.cat-card.featured:nth-child(11) { grid-column: 1 / 3; }   /* 11 Respiratory    */
.cat-card.featured:nth-child(12) { grid-column: 3 / 5; }   /* 12 Cognitive      */

.cat-card.featured {
  flex-direction: row;
  align-items: center;
  gap: 1.6rem;
  padding: 2.4rem 2.4rem;
}
.cat-card.featured .cat-number {
  position: absolute;
  top: 1.4rem; left: 2rem;
  margin-bottom: 0;
}
.cat-card.featured .cat-text {
  display: flex;
  flex-direction: column;
  padding-top: 0.8rem;
}
.cat-card.featured .cat-name {
  font-size: 1.25rem;
}
.cat-card.featured .cat-sub {
  font-size: 13px;
}

/* ═══ PATENTED INGREDIENTS (Marquee) ═══ */
.ingredients-block {
  padding: 80px 80px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.ingredients-block .section-header {
  padding: 0;
  margin-bottom: 48px;
}

/* ═══ PROCESS (Dark Section) ═══ */
.process-section {
  padding: 8rem 5rem;
  background: var(--navy-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.process-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}
.process-section .section-eyebrow { color: var(--gold-light); opacity: 0.8; }
.process-section .section-title { color: var(--white); }
.process-section .section-desc { color: rgba(255,255,255,0.4); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  z-index: 1;
}
.process-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.process-step:last-child { border-right: none; }
.step-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: rgba(42,90,148,0.25);
  line-height: 1;
  margin-bottom: 1rem;
  font-weight: 600;
}
.step-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.7rem;
  letter-spacing: 0.04em;
}
.step-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}
.step-connector {
  position: absolute;
  top: 2.5rem;
  right: -0.5rem;
  color: var(--sage);
  opacity: 0.35;
  font-size: 0.8rem;
  z-index: 2;
}

/* ═══ SECONDARY SECTIONS (Skincare / Personal Care) ═══ */
.secondary-section {
  padding: 5rem 5rem;
  background: var(--off-white);
}
.secondary-section#skincare {
  background: radial-gradient(ellipse at 30% 20%, #f0f7ff 0%, #f8fafc 50%, #fafbfd 100%);
}
.secondary-section#personal-care {
  background: linear-gradient(160deg, #f0e8fb 0%, #e8f0fd 50%, #fde8f2 100%);
}

/* ── Skincare Grid (4×2) ── */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-radius: 20px;
  overflow: hidden;
}
.sc-card {
  min-height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.6rem;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-dark);
  transition: transform 0.25s;
}
.sc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,32,64,0.05) 0%, rgba(12,32,64,0.65) 100%);
  transition: background 0.3s;
  z-index: 1;
}
.sc-card:hover::before {
  background: linear-gradient(180deg, rgba(12,32,64,0.15) 0%, rgba(12,32,64,0.8) 100%);
}
.sc-card { cursor: default; }
.sc-card:hover { transform: scale(1.02); }
.sc-name {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

/* ── Personal Care Grid (1×5) ── */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  border-radius: 20px;
  overflow: hidden;
}
.pc-card {
  min-height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-dark);
  transition: transform 0.25s;
}
.pc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,32,64,0.05) 0%, rgba(12,32,64,0.65) 100%);
  transition: background 0.3s;
  z-index: 1;
}
.pc-card:hover::before {
  background: linear-gradient(180deg, rgba(12,32,64,0.15) 0%, rgba(12,32,64,0.8) 100%);
}
.pc-card { cursor: default; }
.pc-card:hover { transform: scale(1.02); }
.pc-name {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

/* Hottest Hits */
.hottest-hits {
  margin-top: 2rem;
  text-align: center;
}
.hottest-hits-label {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.hottest-hits-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hottest-hits-tag {
  font-family: 'Questrial', sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(18,47,81,0.06);
  border: 1px solid rgba(18,47,81,0.12);
  border-radius: 100px;
  padding: 8px 20px;
  transition: background .25s, border-color .25s;
}
.hottest-hits-tag:hover {
  background: rgba(18,47,81,0.12);
  border-color: rgba(18,47,81,0.25);
}

/* CTA for secondary sections */
.secondary-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.secondary-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.secondary-eyebrow {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.secondary-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
  font-weight: 600;
}
/* Scroll cards */
.scroll-track {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-card {
  flex: 0 0 210px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
}
.scroll-card:hover {
  border-color: rgba(18,47,81,0.25);
  transform: translateY(-4px);
}
.scroll-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--off-white), var(--gold-light));
  opacity: 0.65;
}
.placeholder-icon {
  font-size: 2rem;
  opacity: 0.4;
}
.scroll-card-body {
  padding: 1.2rem 1.4rem;
}
.scroll-card-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.scroll-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.65;
}
.scroll-card-enquire {
  flex: 0 0 160px;
  scroll-snap-align: start;
  border: 1px dashed var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 2rem 1.2rem;
  text-align: center;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}
.scroll-card-enquire:hover {
  background: rgba(18,47,81,0.03);
  border-color: var(--ink);
}
.enquire-icon { font-size: 1.4rem; opacity: 0.3; }
.enquire-text {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-body);
  opacity: 0.5;
  line-height: 1.6;
}
.enquire-link {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(18,47,81,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  transition: background 0.2s, border-color 0.2s;
}
.scroll-card-enquire:hover .enquire-link {
  border-color: var(--navy);
  background: rgba(18,47,81,0.05);
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
}
.scroll-hint::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* ═══ ANIMATIONS ═══ */
/* Uses .sr / .vis scroll-reveal system from style-main.css */

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .workflow-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .wf-line { display: none; }
}

@media (max-width: 1024px) {
  .hero { padding: 120px 40px 48px; }
  .process-section,
  .workflow-section,
  .secondary-section { padding: 4rem 2.5rem; }
  .forms-section > .section-header { padding: 80px 40px 0 !important; }
  .df-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 80px 40px 0; }
  .df-title-card { min-height: 200px; }
  .df-card { padding: 22px; }
  .categories-block { padding: 60px 40px 0; }
  .ingredients-block { padding: 60px 40px 60px; }
  /* Bento stays 4-col on tablet, just tighter padding */
  .process-steps { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .products-grid > a { height: 260px !important; }
  /* PC grid: 5 → keep 5 but smaller */
  .pc-grid { gap: 2px; }
  .pc-name { font-size: 0.85rem; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 20px 60px; height: auto; min-height: 0; }
  .process-section,
  .workflow-section,
  .secondary-section { padding: 64px 20px; }
  .forms-section > .section-header { padding: 64px 20px 0 !important; }
  .df-grid { grid-template-columns: 1fr; gap: 16px; padding: 64px 20px 0; }
  .df-title-card { min-height: 200px; border-radius: 20px; order: -1; }
  .df-title { font-size: 26px; }
  .df-card { padding: 24px; }
  .categories-block { padding: 48px 20px 0; }
  .ingredients-block { padding: 48px 20px 48px; }
  /* Bento → 2-col mobile: all featured = full width */
  .categories-grid { grid-template-columns: repeat(2, 1fr); border-radius: 16px; }
  .cat-card.featured,
  .cat-card.featured:nth-child(1),
  .cat-card.featured:nth-child(6),
  .cat-card.featured:nth-child(11),
  .cat-card.featured:nth-child(12) { grid-column: 1 / -1; }
  .cat-card.featured .cat-name { font-size: 1.15rem; }
  /* Skincare grid: 4-col → 2-col on mobile */
  .sc-grid { grid-template-columns: repeat(2, 1fr); border-radius: 16px; }
  .sc-name { font-size: 0.9rem; padding: 0; }
  .sc-card { padding: 1.2rem; }
  /* Personal Care: 5 → 2-col + last full-width */
  .pc-grid { grid-template-columns: repeat(2, 1fr); border-radius: 16px; }
  .pc-card:last-child { grid-column: 1 / -1; }
  .pc-name { font-size: 0.9rem; }
  .pc-card { padding: 1.2rem; }
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .products-grid > a { height: 260px !important; }
}


@media (max-width: 640px) {
  .process-steps { grid-template-columns: 1fr; }
  /* secondary-header removed — now uses centered section-header */
  /* Vertical timeline on mobile */
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 400px;
    margin: 2rem auto 0;
    position: relative;
  }
  .workflow-grid::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.15);
  }
  .workflow-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.2rem;
    align-items: start;
    text-align: left;
    padding: 0 0 2rem 0;
  }
  .workflow-step:last-child { padding-bottom: 0; }
  .wf-line { display: none; }
  .wf-circle {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    grid-row: 1 / 3;
    align-self: center;
  }
  .wf-title { font-size: 12px; align-self: end; }
  .wf-sub { font-size: 11px; margin-top: 0; }
}

/* ── Category Detail Modal ── */
.cat-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.cat-modal-overlay.active { opacity: 1; pointer-events: auto; }

.cat-modal {
  position: relative;
  width: 90%; max-width: 900px; max-height: 85vh;
  background: #fff; border-radius: 24px;
  overflow: visible; box-shadow: 0 24px 64px rgba(0,0,0,0.15);
  transform: translateY(30px); transition: transform .35s ease;
}
.cat-modal-overlay.active .cat-modal { transform: translateY(0); }

.cat-modal-close {
  position: absolute; top: -44px; right: 0; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  font-size: 18px; color: var(--navy); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: background .2s, transform .2s;
}
.cat-modal-close:hover { background: #fff; transform: scale(1.1); }

.cat-modal-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-radius: 24px; overflow: hidden;
}

.cat-modal-image {
  background-size: cover; background-position: center;
  min-height: 100%;
}

.cat-modal-content {
  padding: 40px 40px 48px; display: flex; flex-direction: column;
}

.cat-modal-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 600;
  color: var(--navy-pale); line-height: 1;
  margin-bottom: 8px;
}

.cat-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 600;
  color: var(--navy); margin: 0 0 6px;
}

.cat-modal-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; color: var(--text-muted);
  margin: 0 0 24px; line-height: 1.5;
}

.cat-modal-label {
  font-family: 'Questrial', sans-serif;
  font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--navy-light);
  margin: 0 0 12px;
}

.cat-modal-list {
  list-style: none; padding: 0; margin: 0 0 24px;
}
.cat-modal-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: var(--text-body);
  padding: 8px 0; line-height: 1.5;
  border-bottom: 1px solid rgba(18,47,81,0.06);
  position: relative; padding-left: 20px;
}
.cat-modal-list li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--navy-light);
}

@media (max-width: 768px) {
  .cat-modal { width: 92%; max-height: 85vh; border-radius: 20px; }
  .cat-modal-inner { grid-template-columns: 1fr; border-radius: 20px; overflow-y: auto; max-height: 85vh; }
  .cat-modal-image { height: 200px; }
  .cat-modal-content { padding: 24px 24px 36px; }
  .cat-modal-number { font-size: 2rem; }
  .cat-modal-title { font-size: 1.3rem; }
  .cat-modal-close { top: -44px; right: 0; }
}
