/* Snapdec 2026 — SnapWarehouse+ PDP styles (Malaysian WMS detail page) */

body { background: var(--bone); }

/* ─── HERO ─── */
.pdp-hero { padding: 140px 0 64px; background: #0A0A0C; color: var(--bone); position: relative; overflow: hidden; }
.pdp-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('assets/wh-hero.png') center/cover no-repeat;
  opacity: 1;
}
.pdp-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.15) 0%, rgba(10,10,12,.3) 60%, rgba(10,10,12,.5) 100%),
              linear-gradient(90deg, rgba(10,10,12,.4) 0%, rgba(10,10,12,0) 50%, rgba(10,10,12,.15) 100%);
}
.pdp-hero > .container { position: relative; z-index: 2; }
.pdp-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: end; position: relative; z-index: 1; }
.pdp-hero h1 { font-size: clamp(48px, 6.4vw, 96px); line-height: .95; letter-spacing: -.038em; }
.pdp-hero h1 .plus { color: var(--snap); font-style: normal; }
.pdp-hero-tag { font-size: 18px; line-height: 1.45; color: rgba(255,255,255,.65); margin-top: 24px; max-width: 520px; font-weight: 400; }
.pdp-hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 32px; text-transform: uppercase; }
.crumbs a:hover { color: var(--bone); }
@media (max-width: 960px) { .pdp-hero-grid { grid-template-columns: 1fr; } }

/* ─── CONSOLE MOCK ─── */
.pdp-console { background: rgba(14,14,16,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px; min-height: 520px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.pdp-console-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line-dark); }
.pdp-console-bar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-block; }
.pdp-console-bar > i:first-child { background: var(--snap); }
.pdp-console-bar .pdp-console-url { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.55); margin-left: 14px; }
.demo-tabs { display: flex; gap: 4px; }
.demo-tab { padding: 7px 12px; font-size: 11px; border-radius: 6px; color: rgba(255,255,255,.55); background: transparent; border: 0; font-family: var(--font-mono); letter-spacing: .04em; cursor: pointer; transition: background .15s, color .15s; }
.demo-tab:hover { color: var(--bone); }
.demo-tab.is-active { background: rgba(255,255,255,.08); color: var(--bone); }
.demo-body { padding: 6px 4px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.demo-body > [data-console-pane] { display: flex; flex-direction: column; gap: 10px; }
.demo-body > [data-console-pane][hidden] { display: none; }
.demo-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.demo-stat { background: rgba(255,255,255,.03); border: 1px solid var(--line-dark); border-radius: 8px; padding: 12px; }
.demo-stat-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.5); text-transform: uppercase; }
.demo-stat-v { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; color: var(--bone); }
.demo-stat-d { font-family: var(--font-mono); font-size: 10.5px; color: #5fd674; margin-top: 4px; }
.demo-stat-d.warn { color: #ffb168; }
.demo-ai { background: rgba(230,57,70,.08); border: 1px solid rgba(230,57,70,.3); border-radius: 8px; padding: 12px; }
.demo-ai-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--snap); }
.demo-ai-msg { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.85); margin-top: 4px; }
.demo-ai-actions { display: flex; gap: 6px; margin-top: 8px; }
.demo-ai-btn { font-size: 11px; font-family: var(--font-mono); padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(230,57,70,.4); color: var(--snap); background: transparent; cursor: pointer; }
.demo-list { display: flex; flex-direction: column; border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; }
.demo-item { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 8px 10px; font-size: 11.5px; border-bottom: 1px solid var(--line-dark); align-items: center; }
.demo-item:last-child { border-bottom: 0; }
.demo-item-name { color: var(--bone); }
.demo-item-bin { font-family: var(--font-mono); color: rgba(255,255,255,.5); font-size: 10.5px; }
.demo-item-qty { font-family: var(--font-mono); color: var(--snap); font-size: 10.5px; }

/* ─── QUICK FACTS ─── */
.pdp-facts { background: var(--bone); padding: 0; }
.pdp-facts-inner { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 0; align-items: stretch; border-bottom: 1px solid var(--line); }
.pdp-fact-label { padding: 32px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); display: flex; align-items: center; max-width: 260px; }
.pdp-fact { padding: 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pdp-fact:last-child { border-right: 0; }
.pdp-fact-v { font-size: clamp(36px, 4.4vw, 56px); font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.pdp-fact-v small { font-size: .5em; font-weight: 500; opacity: .5; margin-left: 4px; }
.pdp-fact-l { font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (max-width: 960px) { .pdp-facts-inner { grid-template-columns: 1fr; } .pdp-fact-label { border-right: 0; border-bottom: 1px solid var(--line); max-width: none; } .pdp-fact { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ─── SECTION RHYTHM ─── */
.pdp-sec { padding: 56px 0 96px; scroll-margin-top: 120px; }
.pdp-sec.is-bone { background: var(--bone); }
.pdp-sec.is-bone2 { background: var(--bone-2); }
.pdp-sec.is-ink { background: var(--ink); color: var(--bone); }

/* ─── FEATURES 4-up ─── */
.pdp-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pdp-feat { background: var(--bone); padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; position: relative; }
.pdp-feat.is-hl { background: var(--ink); color: var(--bone); }
.pdp-feat.is-hl .pdp-feat-num { color: rgba(255,255,255,.4); }
.pdp-feat.is-hl .pdp-feat-body { color: rgba(255,255,255,.72); }
.pdp-feat-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--bone); display: grid; place-items: center; }
.pdp-feat.is-hl .pdp-feat-mark { background: var(--snap); }
.pdp-feat-num { position: absolute; top: 32px; right: 32px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.pdp-feat-title { font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.pdp-feat-body { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 720px) { .pdp-features { grid-template-columns: 1fr; } }

/* ─── ECOSYSTEM bento ─── */
.pdp-eco { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.pdp-eco-card { background: var(--bone); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 240px; }
.pdp-eco-card.is-hero { grid-row: span 2; background: var(--ink); color: var(--bone); border-color: var(--ink); position: relative; overflow: hidden; }
.pdp-eco-card.is-hero > * { position: relative; z-index: 1; }
.pdp-eco-card.is-hero .pdp-eco-num { color: rgba(255,255,255,.5); }
.pdp-eco-card.is-hero .pdp-eco-body { color: rgba(255,255,255,.78); }
.pdp-eco-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.pdp-eco-title { font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.pdp-eco-card.is-hero .pdp-eco-title { font-size: 28px; }
.pdp-eco-body { font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 960px) { .pdp-eco { grid-template-columns: 1fr; } .pdp-eco-card.is-hero { grid-row: auto; } }

/* Hero card connector visual — AutoCount → SQL Acc */
.pdp-eco-connect { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 24px; }
.pdp-eco-pill { padding: 14px 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; font-size: 14px; color: rgba(255,255,255,.85); letter-spacing: -.005em; white-space: nowrap; }
.pdp-eco-dots { position: relative; flex: 1; max-width: 160px; height: 14px; background-image: radial-gradient(circle, rgba(255,255,255,.32) 1.4px, transparent 1.8px); background-size: 7px 14px; background-repeat: repeat-x; background-position: center; }
.pdp-eco-dot-moving { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--snap); box-shadow: 0 0 12px rgba(230,57,70,.6); animation: pdp-eco-travel 2.6s ease-in-out infinite; }
@keyframes pdp-eco-travel { 0% { left: 0; } 50% { left: calc(100% - 10px); } 100% { left: 0; } }
@media (prefers-reduced-motion: reduce) { .pdp-eco-dot-moving { animation: none; left: calc(50% - 5px); } }

/* Zoning diagram */
.pdp-zoning { background: var(--bone-2); border-radius: 12px; padding: 16px; margin-top: auto; }
.pdp-zoning-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.pdp-zone-step { padding: 6px 10px; background: var(--bone); border: 1px solid var(--line); border-radius: 6px; }
.pdp-zone-arrow { color: var(--muted); }

/* ─── FLOW DIAGRAM ─── */
.pdp-flow { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 24px; background: var(--bone); border: 1px solid var(--line); border-radius: 12px; }
.pdp-flow-step { padding: 14px 12px; background: var(--bone-2); border-radius: 8px; display: flex; flex-direction: column; gap: 4px; min-height: 100px; position: relative; text-align: left; border: 0; font-family: inherit; cursor: pointer; transition: background .2s; }
.pdp-flow-step:hover:not(.is-active) { background: #EAE7DF; }
.pdp-flow-step.is-active { background: var(--ink); color: var(--bone); }
.pdp-flow-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.pdp-flow-step.is-active .pdp-flow-num { color: rgba(255,255,255,.55); }
.pdp-flow-name { font-size: 13px; font-weight: 600; letter-spacing: -.005em; }
@media (max-width: 960px) { .pdp-flow { grid-template-columns: repeat(2, 1fr); } }

/* ─── PHOTO STRIP ─── */
.pdp-photo-strip { height: 420px; background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; }
@media (max-width: 720px) { .pdp-photo-strip { height: 380px; } }
.pdp-photo-strip::after { content:''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,16,.15) 0%, rgba(14,14,16,.55) 100%); }
.pdp-photo-strip .container { position: relative; z-index: 1; height: 100%; display: flex; align-items: end; padding-top: 56px; padding-bottom: 32px; color: var(--bone); }
.pdp-photo-strip h3 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.022em; line-height: 1.05; max-width: 760px; }
.pdp-photo-strip-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.6); text-transform: uppercase; margin-bottom: 14px; }

/* ─── INDUSTRIES ─── */
.pdp-ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pdp-ind-card { background: var(--bone); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; transition: background .2s; }
.pdp-ind-card:hover { background: var(--bone-2); }
.pdp-ind-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--snap); }
.pdp-ind-name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.pdp-ind-body { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 960px) { .pdp-ind-grid { grid-template-columns: 1fr; } }

/* ─── FAQ ─── */
.pdp-faq { display: flex; flex-direction: column; }
.pdp-faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; cursor: pointer; }
.pdp-faq-q { display: flex; justify-content: space-between; gap: 24px; align-items: center; font-size: 18px; font-weight: 550; letter-spacing: -.01em; }
.pdp-faq-q-num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-right: 8px; letter-spacing: .08em; }
.pdp-faq-toggle { font-size: 24px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.pdp-faq-item.is-open .pdp-faq-toggle { transform: rotate(45deg); color: var(--snap); }
.pdp-faq-a { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 0; max-height: 0; overflow: hidden; transition: max-height .35s ease, margin-top .35s ease; }
.pdp-faq-item.is-open .pdp-faq-a { max-height: 600px; margin-top: 16px; }

/* ─── FINAL CTA ─── */
.pdp-cta-card { background: linear-gradient(135deg, var(--snap-deep) 0%, var(--snap) 50%, var(--ember) 100%); color: #fff; border-radius: 24px; padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.pdp-cta-card h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; }
.pdp-cta-card-lead { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 520px; margin-top: 16px; }
@media (max-width: 720px) { .pdp-cta-card { grid-template-columns: 1fr; padding: 32px; } }

/* ─── STICKY TABS ─── */
.pdp-tabs { position: sticky; top: 64px; z-index: 50; background: rgba(250,250,247,.92); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px -12px rgba(0,0,0,.18); }
.pdp-tabs-inner { display: flex; align-items: center; gap: 8px; padding: 14px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.pdp-tabs-inner::-webkit-scrollbar { display: none; }
.pdp-tab { background: transparent; border: 0; padding: 9px 16px; font-size: 13.5px; border-radius: 999px; color: var(--muted); white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease; }
.pdp-tab:hover { color: var(--ink); }
.pdp-tab.is-active { background: var(--ink); color: var(--bone); }

/* ─────────────────────────────────────────────────────────────────────
   MOOD: SUNSET — dark warm-tinted night + hot pink→orange gradient accents
   Applied via <html class="mood-sunset"> on the SnapWarehouse+ PDP only.
   ───────────────────────────────────────────────────────────────────── */
html.mood-sunset { --sunset-grad: linear-gradient(135deg, #EC4899 0%, #FB923C 100%); }
html.mood-sunset body { background: #160F19; color: rgba(255,255,255,.92); }

/* Section backgrounds */
html.mood-sunset .pdp-sec.is-bone { background: #160F19; color: rgba(255,255,255,.92); }
html.mood-sunset .pdp-sec.is-bone2 { background: #1E1424; color: rgba(255,255,255,.92); }
html.mood-sunset .pdp-facts { background: #160F19; border-bottom-color: #2C1F33; }
html.mood-sunset .pdp-facts-inner { border-bottom-color: #2C1F33; }
html.mood-sunset .pdp-fact-label,
html.mood-sunset .pdp-fact { border-right-color: #2C1F33; }
html.mood-sunset .pdp-fact-label { color: rgba(255,255,255,.55); }
html.mood-sunset .pdp-fact-v { color: rgba(255,255,255,.95); }
html.mood-sunset .pdp-fact-l { color: rgba(255,255,255,.55); }

/* Section eyebrows / leads / headings inherit dark-mode treatment */
html.mood-sunset .eyebrow { color: rgba(255,255,255,.6); }
html.mood-sunset .lead { color: rgba(255,255,255,.65); }
html.mood-sunset h2 { color: rgba(255,255,255,.95); }

/* Features 4-up — flagship gradient card + gradient icon marks */
html.mood-sunset .pdp-features { background: #2C1F33; border-color: #2C1F33; }
html.mood-sunset .pdp-feat { background: #1A1320; color: rgba(255,255,255,.92); }
html.mood-sunset .pdp-feat.is-hl { background: var(--sunset-grad); color: #fff; }
html.mood-sunset .pdp-feat-mark { background: var(--sunset-grad); color: #1A1320; }
html.mood-sunset .pdp-feat.is-hl .pdp-feat-mark { background: #1A1320; color: #FBBF77; }
html.mood-sunset .pdp-feat-body { color: rgba(255,255,255,.7); }
html.mood-sunset .pdp-feat.is-hl .pdp-feat-body { color: rgba(255,255,255,.92); }
html.mood-sunset .pdp-feat-num { color: rgba(255,255,255,.4); }
html.mood-sunset .pdp-feat.is-hl .pdp-feat-num { color: rgba(255,255,255,.65); }

/* Ecosystem bento */
html.mood-sunset .pdp-eco-card { background: #1A1320; border-color: #2C1F33; color: rgba(255,255,255,.92); }
html.mood-sunset .pdp-eco-card.is-hero { background: var(--sunset-grad); border-color: transparent; color: #fff; }
html.mood-sunset .pdp-eco-num { color: rgba(255,255,255,.5); }
html.mood-sunset .pdp-eco-body { color: rgba(255,255,255,.7); }
html.mood-sunset .pdp-eco-card.is-hero .pdp-eco-body { color: rgba(255,255,255,.92); }
html.mood-sunset .pdp-zoning { background: rgba(0,0,0,.18); }
html.mood-sunset .pdp-zone-step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
html.mood-sunset .pdp-eco-pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }

/* Flow diagram */
html.mood-sunset .pdp-flow { background: #1A1320; border-color: #2C1F33; }
html.mood-sunset .pdp-flow-step { background: #221729; color: rgba(255,255,255,.92); }
html.mood-sunset .pdp-flow-step:hover:not(.is-active) { background: #2A1D33; }
html.mood-sunset .pdp-flow-step.is-active { background: var(--sunset-grad); color: #fff; }
html.mood-sunset .pdp-flow-num { color: rgba(255,255,255,.5); }

/* Photo strip — warmer dusk gradient */
html.mood-sunset .pdp-photo-strip::after { background: linear-gradient(180deg, rgba(236,72,153,.18) 0%, rgba(22,15,25,.7) 100%); }

/* Industries */
html.mood-sunset .pdp-ind-grid { background: #2C1F33; border-color: #2C1F33; }
html.mood-sunset .pdp-ind-card { background: #1A1320; color: rgba(255,255,255,.92); }
html.mood-sunset .pdp-ind-card:hover { background: #221729; }
html.mood-sunset .pdp-ind-num { background: var(--sunset-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html.mood-sunset .pdp-ind-body { color: rgba(255,255,255,.7); }

/* FAQ */
html.mood-sunset .pdp-faq-item { border-bottom-color: #2C1F33; }
html.mood-sunset .pdp-faq-q { color: rgba(255,255,255,.92); }
html.mood-sunset .pdp-faq-q-num,
html.mood-sunset .pdp-faq-toggle { color: rgba(255,255,255,.55); }
html.mood-sunset .pdp-faq-item.is-open .pdp-faq-toggle { color: #FB923C; }
html.mood-sunset .pdp-faq-a { color: rgba(255,255,255,.7); }

/* Final CTA — sunset gradient (matches accent system) */
html.mood-sunset .pdp-cta-card { background: var(--sunset-grad); }

/* Sticky tabs */
html.mood-sunset .pdp-tabs { background: rgba(22,15,25,.86); border-bottom-color: #2C1F33; box-shadow: 0 12px 32px -12px rgba(0,0,0,.7); }
html.mood-sunset .pdp-tab { color: rgba(255,255,255,.55); }
html.mood-sunset .pdp-tab:hover { color: rgba(255,255,255,.92); }
html.mood-sunset .pdp-tab.is-active { background: var(--sunset-grad); color: #fff; }

/* Light-theme back-to-top for the SnapWarehouse+ PDP — the page background
   ends in bone so the default snap-red FAB clashes with the snap-red CTAs.
   Override only on this page (scoped under .mood-sunset on <html>). */
html.mood-sunset .back-to-top {
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.1);
}
html.mood-sunset .back-to-top:hover {
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.25), 0 4px 12px rgba(0,0,0,.15);
}
