/*
  Jomar Valve Interactive Product Center
  Production kiosk style sheet.
  Fixed 1920 x 1080 layout with touch-first controls.
*/
:root {
  --blue-950: #061f3a;
  --blue-900: #082f57;
  --blue-800: #0b4778;
  --blue-700: #11679e;
  --blue-100: #e7f3fc;
  --blue-050: #f5fbff;
  --steel-050: #f7fafc;
  --steel-100: #edf2f7;
  --steel-200: #d9e3ec;
  --steel-600: #526171;
  --ink: #15202b;
  --orange: #d47725;
  --green: #2e7d45;
  --red: #b3261e;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(8, 47, 87, .18);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #101827; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input { font-family: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:active { transform: scale(.985); }

.kiosk { width: 1920px; height: 1080px; position: relative; overflow: hidden; transform: scale(var(--scale, 1)); transform-origin: top left; background: linear-gradient(135deg, #f7fbff 0%, #edf6fc 50%, #fff 100%); }
.kiosk:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 18%, rgba(17,103,158,.16), transparent 31%), radial-gradient(circle at 94% 90%, rgba(212,119,37,.13), transparent 28%); pointer-events: none; }

.topbar { position: relative; z-index: 10; height: 128px; padding: 22px 40px; display: grid; grid-template-columns: 180px 1fr 180px; align-items: center; gap: 22px; color: white; background: linear-gradient(90deg, var(--blue-950), var(--blue-900), var(--blue-700)); box-shadow: 0 8px 30px rgba(0,0,0,.20); }
.brand { height: 86px; border: 0; background: transparent; color: white; display: flex; align-items: center; justify-content: center; gap: 22px; }
.brand-mark { width: 82px; height: 82px; border-radius: 23px; background: white; color: var(--blue-900); display: grid; place-items: center; font-size: 50px; font-weight: 900; box-shadow: inset 0 0 0 5px var(--blue-100); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.brand-name { font-size: 38px; font-weight: 900; letter-spacing: .06em; }
.brand-title { font-size: 27px; font-weight: 800; margin-top: 8px; }
.brand-note { font-size: 20px; opacity: .82; margin-top: 8px; }
.nav-btn { height: 74px; border-radius: 22px; font-size: 27px; font-weight: 900; }
.nav-btn.ghost { border: 3px solid rgba(255,255,255,.42); color: white; background: rgba(255,255,255,.12); }
.nav-btn.solid { border: 3px solid white; color: var(--blue-900); background: white; }

.view { position: relative; z-index: 2; height: calc(1080px - 128px - 86px); padding: 36px 48px; }
.quick-ribbon { position: relative; z-index: 10; height: 86px; padding: 13px 38px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; background: rgba(6,31,58,.94); }
.quick-ribbon button { border: 0; border-radius: 18px; color: white; background: rgba(255,255,255,.14); font-size: 23px; font-weight: 900; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; color: var(--blue-900); font-size: 58px; line-height: 1; }
h2 { margin-bottom: 12px; color: var(--blue-900); font-size: 38px; line-height: 1.08; }
h3 { margin-bottom: 10px; color: var(--blue-900); font-size: 30px; line-height: 1.12; }
p { margin-bottom: 14px; color: var(--steel-600); font-size: 23px; line-height: 1.34; }

.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-title p { max-width: 1180px; margin-bottom: 0; }

.home-layout { height: 100%; display: grid; grid-template-columns: 620px 1fr; gap: 36px; }
.hero { border-radius: 38px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); padding: 42px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero h1 { font-size: 72px; letter-spacing: -.03em; }
.hero p { color: #34495d; font-size: 28px; line-height: 1.35; }
.hero-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.hero-chip { min-height: 78px; border-radius: 22px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-900); font-size: 22px; font-weight: 900; text-align: center; padding: 14px; }
.notice { border-radius: 24px; background: #fff5e8; border-left: 12px solid var(--orange); color: #6c3c0c; padding: 22px; font-size: 22px; line-height: 1.3; }
.error-box { border-radius: 24px; background: #fff1ef; border-left: 12px solid var(--red); color: #7a1d18; padding: 22px; font-size: 22px; line-height: 1.3; }
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tile { min-height: 218px; border: 0; border-radius: 34px; background: white; box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; border-top: 9px solid var(--blue-700); }
.tile-icon { font-size: 52px; font-weight: 900; color: var(--blue-700); }
.tile-title { display: block; margin-top: 14px; color: var(--blue-900); font-size: 34px; font-weight: 900; }
.tile-desc { display: block; margin-top: 8px; color: var(--steel-600); font-size: 21px; line-height: 1.25; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card { min-height: 238px; border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); padding: 26px; border-top: 9px solid var(--blue-700); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.card p { font-size: 21px; }
.thumb, .thumb-img { height: 126px; border-radius: 22px; margin-bottom: 16px; background: linear-gradient(135deg, var(--blue-100), #fff); display: grid; place-items: center; color: var(--blue-900); font-size: 34px; font-weight: 900; overflow: hidden; width: 100%; object-fit: cover; }
.thumb-img { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.btn { min-height: 58px; border: 0; border-radius: 16px; padding: 13px 20px; color: white; background: var(--blue-900); font-size: 20px; font-weight: 900; }
.btn.secondary { background: var(--blue-100); color: var(--blue-900); }
.btn.green { background: var(--green); }
.btn.orange { background: var(--orange); }
.btn.red { background: var(--red); }

.toolbar { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.search { flex: 1; height: 78px; border-radius: 24px; border: 3px solid var(--steel-200); background: white; padding: 0 28px; font-size: 32px; outline: none; box-shadow: 0 8px 22px rgba(8,47,87,.08); }
.filter { min-height: 62px; border-radius: 18px; padding: 0 24px; border: 3px solid var(--steel-200); background: white; color: var(--blue-900); font-size: 21px; font-weight: 900; }
.filter.active { color: white; background: var(--blue-900); border-color: var(--blue-900); }

.split { display: grid; grid-template-columns: 1fr 460px; gap: 24px; }
.scroll-panel { max-height: 688px; overflow: auto; padding-right: 10px; }
.scroll-panel::-webkit-scrollbar { width: 18px; }
.scroll-panel::-webkit-scrollbar-thumb { background: #92a7b8; border-radius: 999px; }
.side-panel { height: 688px; border-radius: 30px; background: white; box-shadow: var(--shadow); padding: 28px; overflow: hidden; }
.side-panel p { font-size: 22px; }
.empty { border-radius: 30px; background: white; box-shadow: var(--shadow); padding: 48px; text-align: center; color: var(--steel-600); font-size: 28px; }

.viewer { height: 696px; border-radius: 30px; background: white; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.viewer-head { height: 88px; background: var(--blue-900); color: white; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 24px; font-size: 25px; font-weight: 900; }
.viewer iframe, .viewer video { flex: 1; width: 100%; border: 0; background: white; }
.viewer-fallback { padding: 26px; background: var(--blue-050); color: var(--steel-600); font-size: 22px; }

.qr-panel { width: 760px; margin: 12px auto 0; border-radius: 38px; background: white; box-shadow: var(--shadow); padding: 46px; text-align: center; }
.qr-panel h2 { margin-bottom: 24px; font-size: 38px; color: var(--blue-900); }
.qr-panel img { width: 390px; height: 390px; border: 18px solid var(--blue-100); border-radius: 28px; background: white; image-rendering: pixelated; }
.qr-panel p { margin-top: 24px; font-size: 25px; }

.idle-overlay { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: linear-gradient(135deg, #03192f, var(--blue-900), var(--blue-700)); color: white; text-align: center; }
.idle-overlay.hidden { display: none; }
.idle-card { width: 82%; min-height: 620px; border-radius: 54px; background: rgba(255,255,255,.11); box-shadow: 0 32px 96px rgba(0,0,0,.35); padding: 70px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.idle-kicker { color: #bde5ff; font-size: 32px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 24px; }
.idle-card h1 { color: white; font-size: 86px; margin-bottom: 24px; }
.idle-card p { color: rgba(255,255,255,.9); font-size: 38px; max-width: 1180px; }
.idle-touch { position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%); padding: 22px 44px; border-radius: 32px; background: rgba(255,255,255,.12); border: 3px solid rgba(255,255,255,.5); font-size: 42px; font-weight: 900; }
.idle-dots { display: flex; gap: 12px; margin-top: 28px; }
.idle-dot { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.35); }
.idle-dot.active { background: white; }

/* No mobile layout. Only scale the fixed kiosk stage to the browser viewport. */

.hidden { display: none !important; }
