/* ============================================================
   Optimus Prime Shop — "pro" refinement layer (2026-09-26)
   Loaded AFTER public_shop.css / public_page.css. One coherent dark
   canvas, white product cards, calmer type, quieter accents.
   ============================================================ */
:root {
  --pro-bg: #070c16;
  --pro-panel: rgba(13, 20, 35, 0.72);
  --pro-panel-strong: rgba(13, 20, 35, 0.92);
  --pro-line: rgba(148, 178, 220, 0.16);
  --pro-line-strong: rgba(148, 178, 220, 0.28);
  --pro-ink: #eef4ff;
  --pro-muted: #93a4c0;
  --pro-accent: #22c55e;
  --pro-accent-2: #34d399;
  --pro-accent-ink: #052e16;
  --pro-cyan: #38bdf8;
  --pro-radius: 20px;
  --pro-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

body {
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(34, 197, 94, 0.14), transparent 60%),
    radial-gradient(900px 520px at 92% -6%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(180deg, #070c16 0%, #0a1222 60%, #070c16 100%);
  background-attachment: fixed;
  letter-spacing: 0;
}
.grid-glow { opacity: 0.16; }
.orb { opacity: 0.09; filter: blur(80px); }

/* ---------- header ---------- */
.site-header {
  top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--pro-line);
  border-radius: 20px;
  background: rgba(9, 14, 26, 0.86);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.brand-logo { width: 46px; height: 46px; border-radius: 13px; box-shadow: none; background: #fff; }
.brand-logo img { width: 40px; height: 40px; }
.brand-copy strong { font-size: 0.98rem; letter-spacing: 0.02em; }
.brand-copy small { font-weight: 700; color: var(--pro-muted); }
.header-search, .catalog-search {
  min-height: 44px;
  border-color: var(--pro-line);
  background: rgba(255, 255, 255, 0.05);
}
.header-search span, .catalog-search span { font-weight: 800; letter-spacing: 0.08em; color: var(--pro-muted); }
.nav-chip, .nav-cta {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 12px;
}
.nav-chip { border-color: var(--pro-line); background: rgba(255, 255, 255, 0.04); }
.nav-chip:hover { background: rgba(255, 255, 255, 0.09); }
.nav-cta, .btn-primary, .chip.active {
  background: linear-gradient(135deg, var(--pro-accent-2), var(--pro-accent));
  color: var(--pro-accent-ink);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.28);
}

/* ---------- hero ---------- */
.op-hero-intro {
  margin-top: 18px;
  padding: clamp(28px, 4.5vw, 52px) clamp(24px, 4vw, 48px);
  border-radius: 26px;
  border: 1px solid var(--pro-line);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(34, 197, 94, 0.16), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(56, 189, 248, 0.12), transparent 60%),
    var(--pro-panel-strong);
  box-shadow: var(--pro-shadow);
}
.op-hero-eyebrow {
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.op-hero-h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.op-hero-grad {
  background: linear-gradient(90deg, #86efac, #34d399 45%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.op-hero-lede {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--pro-muted);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  font-weight: 500;
  line-height: 1.65;
}
.op-hero-lede strong { color: var(--pro-ink); font-weight: 800; }

/* ---------- how it works ---------- */
.trust-strip {
  gap: 12px;
  margin-top: 14px;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
}
.trust-strip div {
  position: relative;
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--pro-line);
  border-right: 1px solid var(--pro-line);
  border-radius: 18px;
  background: var(--pro-panel);
}
.trust-strip div:last-child { border-right: 1px solid var(--pro-line); }
.trust-strip div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--pro-accent-2), var(--pro-cyan));
}
.trust-strip b { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; color: var(--pro-ink); }
.trust-strip span { margin-top: 4px; color: var(--pro-muted); font-size: 0.88rem; font-weight: 500; line-height: 1.5; }

/* ---------- sections (featured + catalog) — dark glass instead of light slabs ---------- */
.featured, .catalog {
  margin-top: 16px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--pro-line);
  background: var(--pro-panel);
  color: var(--pro-ink);
  box-shadow: var(--pro-shadow);
}
.eyebrow { color: #86efac; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; }
.section-head { align-items: center; margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--pro-ink);
}
.section-head span { margin-top: 6px; color: var(--pro-muted); font-weight: 500; font-size: 0.92rem; }
.section-head a { color: #86efac; font-weight: 700; }

.featured-rail { gap: 10px; padding-bottom: 8px; }
.featured-pill {
  min-width: 270px;
  padding: 10px 12px;
  border: 1px solid var(--pro-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--pro-ink);
  box-shadow: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.featured-pill:hover { border-color: var(--pro-line-strong); background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }
.featured-pill strong { font-weight: 700; }
.featured-pill span span { color: var(--pro-muted); font-weight: 500; font-size: 0.8rem; }
.featured-icon { width: 46px; height: 46px; border-radius: 12px; background: #fff; }

.catalog-search { background: rgba(255, 255, 255, 0.05); border-color: var(--pro-line); }
.catalog-search input { color: var(--pro-ink); }
.catalog-search input::placeholder { color: #6b7d99; }
.category-chips { gap: 8px; margin-bottom: 20px; }
.chip {
  min-height: 34px;
  padding: 6px 13px;
  border-color: var(--pro-line);
  background: rgba(255, 255, 255, 0.05);
  color: #dbe6f6;
  font-weight: 600;
  font-size: 0.82rem;
}
.chip:hover { background: rgba(255, 255, 255, 0.1); }
.chip.active { border-color: transparent; font-weight: 800; }

/* ---------- product cards ---------- */
.product-grid { gap: 16px; }
.product-card {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--pro-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.product-card:hover { transform: translateY(-3px); border-color: rgba(52, 211, 153, 0.7); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35); }
.product-media {
  height: 128px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f3f7fc 0%, #ffffff 100%);
}
.product-media::before { height: 3px; background: linear-gradient(90deg, var(--pro-accent-2), var(--pro-cyan)); }
.product-card .product-icon, .product-media img {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(8, 17, 31, 0.12);
  background: #fff;
}
.product-card .product-icon { font-size: 2.1rem; }
.product-badge {
  top: 14px;
  right: 14px;
  padding: 5px 10px 5px 8px;
  border: 1px solid rgba(8, 122, 91, 0.18);
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.product-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--pro-accent);
  vertical-align: middle;
}
.product-body { gap: 12px; padding: 16px 18px 12px; }
.product-title {
  min-height: 40px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #0b1424;
}
.product-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf1f7;
}
.meta-box {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.meta-box:first-child { flex: 1 1 auto; }
.meta-box span { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; color: #7c8aa3; }
.meta-box b { margin-top: 2px; font-size: 0.9rem; font-weight: 700; color: #1e293b; }
.meta-box:first-child b { font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; color: #0b1424; letter-spacing: -0.02em; }
.stock-good { color: #15803d; }
.product-actions { gap: 8px; padding: 0 18px 18px; }
.product-actions .btn { min-height: 42px; border-radius: 12px; font-size: 0.9rem; font-weight: 800; }
.product-actions .btn-primary { box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25); }
.product-actions .btn-ghost { color: #1e293b; border: 1px solid #dfe6f0; background: #fff; }
.product-actions .btn-ghost:hover { background: #f4f7fb; }
.sold-button { background: #e2e8f0; color: #64748b; box-shadow: none; }

/* ---------- thin dark scrollbars on the horizontal rails ---------- */
.featured-rail, .category-chips { scrollbar-width: thin; scrollbar-color: rgba(148, 178, 220, 0.35) transparent; }
.featured-rail::-webkit-scrollbar, .category-chips::-webkit-scrollbar { height: 6px; }
.featured-rail::-webkit-scrollbar-track, .category-chips::-webkit-scrollbar-track { background: transparent; }
.featured-rail::-webkit-scrollbar-thumb, .category-chips::-webkit-scrollbar-thumb { background: rgba(148, 178, 220, 0.35); border-radius: 999px; }

/* ---------- product page: brand icon rendered like the cards ---------- */
.op-pd-media { display: grid; place-items: center; }
.op-pd-media tg-emoji { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 128px; line-height: 1; }
.op-pd-media tg-emoji img, .op-pd-media tg-emoji video, .op-pd-media tg-emoji .lottie-holder { width: 168px; height: 168px; object-fit: contain; }

/* ---------- modal ---------- */
.product-modal { border-radius: 24px; }
.modal-visual::before { content: "Product"; letter-spacing: 0.12em; }
.modal-info h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.modal-meta div { border-radius: 12px; }
.modal-actions .btn { border-radius: 12px; min-height: 46px; }

/* ---------- mobile ---------- */
@media (max-width: 680px) {
  body {
    background:
      radial-gradient(600px 380px at 10% -10%, rgba(34, 197, 94, 0.16), transparent 60%),
      linear-gradient(180deg, #070c16 0%, #0a1222 100%);
  }
  .site-header { border-radius: 18px; }
  .op-hero-intro, .featured, .catalog { border-radius: 20px; padding: 20px; }
  .op-hero-h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust-strip div { padding: 14px 14px 14px 16px; }
  .trust-strip span { font-size: 0.82rem; }
  .product-actions .btn { width: auto; flex: 1 1 120px; }
}
@media (max-width: 430px) {
  .trust-strip { grid-template-columns: 1fr; }
}

/* mobile: section heads stay left-aligned */
@media (max-width: 980px) {
  .section-head, .catalog-head { align-items: flex-start; text-align: left; }
}
