/* ══════════════════════════════════════════════════════════════════════
   MNORY — Precious metals: main category page (/precious-metals/<metal>/)
   One template for gold / silver / diamond; the accent follows
   [data-metal]. Class names avoid "hero"/"-banner" (combined.css forces
   headings inside those white).
   ══════════════════════════════════════════════════════════════════════ */

.pmc {
  --pm-accent: #d4a017;
  --pm-accent-2: #f5d27a;
  --pm-accent-soft: rgba(212, 160, 23, .12);
  --pm-ink: #0f172a;
  --pm-muted: #64748b;
  --pm-surface: #ffffff;
  --pm-soft: #f8f7f3;
  --pm-border: #ece7da;
  --pm-radius: 20px;
  --pm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
  color: var(--pm-ink);
}
.pmc[data-metal="silver"] { --pm-accent: #94a3b8; --pm-accent-2: #e2e8f0; --pm-accent-soft: rgba(148, 163, 184, .16); --pm-soft: #f6f7f9; --pm-border: #e5e8ee; }
.pmc[data-metal="diamond"] { --pm-accent: #38bdf8; --pm-accent-2: #bae6fd; --pm-accent-soft: rgba(56, 189, 248, .12); --pm-soft: #f4f8fb; --pm-border: #e2ecf3; }

body.dark-mode .pmc {
  --pm-ink: #f1f5f9;
  --pm-muted: #94a3b8;
  --pm-surface: #151a24;
  --pm-soft: #0f141d;
  --pm-border: #262f3f;
  --pm-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.pmc h1, .pmc h2, .pmc h3 { color: inherit; }

/* ── Intro ───────────────────────────────────────────────────────── */
.pmc-intro {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 3.5rem;
  color: #fff;
  background:
    radial-gradient(80% 120% at 85% 10%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(135deg, #0b0f19 0%, #161b26 55%, #1e1a10 100%);
  isolation: isolate;
}
.pmc-intro-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  top: -260px;
  inset-inline-end: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pm-accent) 38%, transparent), transparent 65%);
  filter: blur(10px);
  z-index: -1;
}
.pmc-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 2.5rem;
  align-items: center;
}

.pmc-crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
}
.pmc-crumbs a { display: inline-flex; align-items: center; gap: .3rem; color: rgba(255, 255, 255, .78); text-decoration: none; }
.pmc-crumbs a:hover { color: var(--pm-accent-2); }
.pmc-crumbs a .material-icons { font-size: 15px; }
.pmc-crumb-sep { font-size: 16px; opacity: .6; }
[dir="rtl"] .pmc-crumb-sep { transform: scaleX(-1); }
.pmc-crumbs [aria-current] { color: var(--pm-accent-2); font-weight: 700; }

.pmc-title-row { display: flex; align-items: center; gap: 1.1rem; margin: 1.6rem 0 1rem; }
.pmc-emblem {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  font-size: 2.4rem;
  line-height: 1;
  background: linear-gradient(145deg, color-mix(in srgb, var(--pm-accent) 35%, transparent), rgba(255, 255, 255, .04));
  border: 1px solid color-mix(in srgb, var(--pm-accent) 45%, transparent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--pm-accent) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.pmc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--pm-accent-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.pmc-eyebrow .material-icons { font-size: 16px; }
.pmc .pmc-title {
  margin: .2rem 0 0;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff 0%, var(--pm-accent-2) 55%, var(--pm-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pmc-lead { max-width: 560px; margin: 0 0 1.5rem; color: rgba(255, 255, 255, .72); line-height: 1.8; }

.pmc-facts { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.pmc-facts li {
  display: flex;
  flex-direction: column;
  min-width: 110px;
  padding: .75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}
.pmc-facts strong { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1.2; }
.pmc-facts span { font-size: .78rem; color: rgba(255, 255, 255, .6); }

/* Live board */
.pmc-board {
  padding: 1.35rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.pmc-board-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.pmc .pmc-board-head h2 { margin: 0; font-size: .95rem; font-weight: 700; color: rgba(255, 255, 255, .85); }

.pmc-live {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, .14);
  color: #4ade80;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pmc-live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pmcPulse 1.8s infinite; }
@keyframes pmcPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@media (prefers-reduced-motion: reduce) { .pmc-live-dot { animation: none; } }

.pmc-rates { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pmc-rates li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .9rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .06);
}
.pmc-rates li:first-child { background: linear-gradient(120deg, color-mix(in srgb, var(--pm-accent) 26%, transparent), rgba(0, 0, 0, .2)); border-color: color-mix(in srgb, var(--pm-accent) 40%, transparent); }
.pmc-karat {
  min-width: 56px;
  padding: .25rem .55rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pm-accent-2), var(--pm-accent));
  color: #1a1306;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}
.pmc-rate { font-size: 1.3rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.pmc-rate small { font-size: .72rem; font-weight: 600; color: rgba(255, 255, 255, .55); }
.pmc-updated { display: flex; align-items: center; gap: .3rem; margin: .7rem 0 0; font-size: .74rem; color: rgba(255, 255, 255, .5); }
.pmc-updated .material-icons { font-size: 14px; }

/* Calculator */
.pmc-calc { margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px dashed rgba(255, 255, 255, .14); }
.pmc-calc-title { display: flex; align-items: center; gap: .4rem; margin-bottom: .7rem; font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
.pmc-calc-title .material-icons { font-size: 18px; color: var(--pm-accent-2); }
.pmc-calc-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
.pmc-calc-fields label { display: flex; flex-direction: column; gap: .3rem; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .55); }
/* !important: combined.css forces input/select backgrounds and colors */
.pmc .pmc-calc select,
.pmc .pmc-calc input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 .75rem;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 11px;
  background-color: rgba(0, 0, 0, .3) !important;
  color: #fff !important;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: none !important;
}
.pmc .pmc-calc select option { color: #0f172a; }
.pmc .pmc-calc select:focus,
.pmc .pmc-calc input:focus { outline: 0; border-color: var(--pm-accent) !important; }
.pmc-calc-result {
  display: block;
  margin-top: .75rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pm-accent) 16%, transparent);
  color: var(--pm-accent-2);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.pmc-calc-note { display: block; margin-top: .45rem; font-size: .7rem; color: rgba(255, 255, 255, .45); text-align: center; }

/* ── Sections ────────────────────────────────────────────────────── */
.pmc-section { padding: 3.5rem 0; background: var(--pm-surface); }
.pmc-section--soft { background: var(--pm-soft); }
.pmc-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.pmc-kicker { display: block; margin-bottom: .3rem; color: var(--pm-accent); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pmc .pmc-head h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; color: var(--pm-ink); }
.pmc-head p { margin: 0; color: var(--pm-muted); font-size: .92rem; }
.pmc-muted { color: var(--pm-muted); }

/* Subcategory cards */
.pmc-subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.pmc-sub {
  display: flex;
  flex-direction: column;
  border-radius: var(--pm-radius);
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  box-shadow: var(--pm-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pmc-sub:hover { transform: translateY(-4px); border-color: var(--pm-accent); box-shadow: 0 18px 40px color-mix(in srgb, var(--pm-accent) 18%, transparent); }
.pmc-sub-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1.1rem;
  color: var(--pm-ink);
  text-decoration: none;
}
.pmc-sub-link:hover { color: var(--pm-ink); }
.pmc-sub-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  font-size: 28px;
  color: #1a1306;
  background: linear-gradient(140deg, var(--pm-accent-2), var(--pm-accent));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--pm-accent) 30%, transparent);
}
.pmc-sub-text { flex: 1; min-width: 0; }
.pmc .pmc-sub-text h3 { margin: 0 0 .2rem; font-size: 1.12rem; font-weight: 800; }
.pmc-sub-count { color: var(--pm-muted); font-size: .82rem; }
.pmc-sub-go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pm-accent-soft);
  color: var(--pm-accent);
  font-size: 19px;
  transition: background .2s ease, color .2s ease;
}
[dir="rtl"] .pmc-sub-go { transform: scaleX(-1); }
.pmc-sub:hover .pmc-sub-go { background: var(--pm-accent); color: #fff; }

.pmc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding: .9rem 1.35rem 1.25rem;
  border-top: 1px dashed var(--pm-border);
}
.pmc-chip {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--pm-soft);
  border: 1px solid var(--pm-border);
  color: var(--pm-muted);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pmc-chip:hover { background: var(--pm-accent-soft); border-color: var(--pm-accent); color: var(--pm-ink); }
.pmc-chip--more { color: var(--pm-accent); font-weight: 800; }

/* Featured products */
.pmc-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.pmc-product {
  display: flex;
  flex-direction: column;
  border-radius: var(--pm-radius);
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  overflow: hidden;
  color: var(--pm-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pmc-product:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow); color: var(--pm-ink); }
.pmc-product-img {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 40%, var(--pm-accent-soft), var(--pm-soft) 70%);
}
.pmc-product-img img { width: 100%; height: 100%; object-fit: cover; }
.pmc-product-img > .material-icons { font-size: 48px; color: var(--pm-accent); opacity: .6; }
.pmc-product-karat {
  position: absolute;
  top: .7rem;
  inset-inline-start: .7rem;
  padding: .2rem .55rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pm-accent-2), var(--pm-accent));
  color: #1a1306;
  font-size: .72rem;
  font-weight: 800;
}
.pmc-product-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.15rem; }
.pmc .pmc-product-body h3 { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmc-product-meta { display: inline-flex; align-items: center; gap: .25rem; color: var(--pm-muted); font-size: .78rem; }
.pmc-product-meta .material-icons { font-size: 14px; color: var(--pm-accent); }
.pmc-product-price { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .35rem; }
.pmc-product-price strong { font-size: 1.1rem; font-weight: 800; }
.pmc-product-price small { font-size: .72rem; color: var(--pm-muted); }
.pmc-live--sm { background: rgba(34, 197, 94, .12); color: #16a34a; font-size: .66rem; padding: .15rem .5rem; }

.pmc-empty {
  padding: 3rem 1.5rem;
  border-radius: var(--pm-radius);
  border: 1px dashed var(--pm-border);
  background: var(--pm-surface);
  text-align: center;
}
.pmc-emblem--sm { width: 64px; height: 64px; margin: 0 auto 1rem; font-size: 2rem; border-radius: 20px; box-shadow: none; }
.pmc .pmc-empty h3 { margin: 0 0 .35rem; font-size: 1.1rem; font-weight: 800; color: var(--pm-ink); }
.pmc-empty p { margin: 0 auto; max-width: 420px; color: var(--pm-muted); font-size: .9rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .pmc-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .pmc-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pmc-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmc-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .pmc-intro { padding: 2rem 0 2.5rem; }
  .pmc-emblem { width: 60px; height: 60px; font-size: 1.9rem; border-radius: 18px; }
  .pmc-facts li { min-width: 0; flex: 1; }
  .pmc-section { padding: 2.5rem 0; }
  .pmc-subs { grid-template-columns: 1fr; }
  .pmc-products { gap: .75rem; }
  .pmc-product-body { padding: .8rem; }
}
