/* MPSON Kitchen & Bath - global styles */
:root {
  --primary: #0b3d91;
  --primary-dark: #082c6a;
  --accent: #ff7a1a;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f5f7fa;
  --white: #ffffff;
  --banner-h: 516px;
  --hero-h: 440px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", Arial, Helvetica, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.topbar { background: var(--primary-dark); color: #dbe4f5; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; gap: 6px; }
.topbar span { margin-right: 18px; }
.topbar i { margin-right: 5px; }

/* header */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.15; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 1px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 8px 14px; font-size: 15px; font-weight: 600; color: var(--ink); border-radius: 6px; }
.nav a:hover, .nav a.active { color: var(--primary); background: #eef3fb; }

/* Products dropdown in nav */
.nav-drop { position: relative; }
.nav-drop > .nav-toggle { display: inline-flex; align-items: center; gap: 4px; }
.nav-drop > .nav-toggle .caret { font-size: 10px; line-height: 1; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 32px rgba(2, 12, 40, .14);
  display: none; flex-direction: column; gap: 2px; z-index: 90;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.open .nav-drop-menu { display: flex; }
.nav-drop-menu a {
  display: block; padding: 9px 12px; font-size: 14px; font-weight: 600;
  color: var(--ink); border-radius: 6px; white-space: nowrap;
}
.nav-drop-menu a:hover { color: var(--primary); background: #eef3fb; }
.nav-drop-menu a.nav-all {
  color: var(--primary); font-size: 13px; border-top: 1px solid var(--line);
  border-radius: 0 0 6px 6px; margin-top: 3px; padding-top: 10px;
}
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 10px 22px; border-radius: 6px; font-weight: 600; border: none; cursor: pointer; font-size: 15px; }
.btn:hover { background: #e56a0d; }
.btn.outline { background: transparent; border: 2px solid #fff; }
.btn.primary { background: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.lg { padding: 13px 38px; font-size: 16px; border-radius: 8px; }

/* hero carousel */
.hero-carousel { position: relative; height: var(--hero-h); overflow: hidden; background: #0b3d91; }
.hero-carousel .slides { display: flex; height: 100%; transition: transform .6s ease; }
.hero-carousel .slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; }
.hero-carousel .hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; color: #fff;
  background: linear-gradient(180deg, rgba(6,24,61,.55), rgba(6,24,61,.35));
  padding: 0 20px;
}
.hero-carousel .hero-overlay .brand { font-size: 16px; letter-spacing: 3px; font-weight: 700; color: #ffd66b; margin-bottom: 10px; }
.hero-carousel .hero-overlay h1 { font-size: 40px; line-height: 1.2; max-width: 760px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-carousel .hero-overlay p { font-size: 18px; margin: 16px 0 26px; color: #eaf1ff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-carousel .hero-overlay .cta .btn { margin: 0 8px; }
.hero-carousel .nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.25); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(2px);
}
.hero-carousel .nav:hover { background: rgba(255,255,255,.45); }
.hero-carousel .nav.prev { left: 16px; }
.hero-carousel .nav.next { right: 16px; }
.hero-carousel .dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-carousel .dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-carousel .dots span.on { background: #ffd66b; width: 22px; border-radius: 6px; }

/* featured sections */
.feat-section { margin-bottom: 48px; }
.feat-banner { display: block; width: 100%; height: var(--banner-h); overflow: hidden; border-radius: 12px; margin-bottom: 18px; background: #eef2f7; }
.feat-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; border-left: 4px solid var(--primary); padding-left: 12px; }
.feat-head h3 { font-size: 22px; color: var(--primary-dark); }
.feat-head .more { font-size: 14px; color: var(--primary); white-space: nowrap; }
@media (max-width: 640px) {
  .hero-carousel { height: var(--hero-h); }
  .hero-carousel .hero-overlay h1 { font-size: 26px; }
  .feat-banner { height: 150px; }
}

/* sections */
.section { padding: 60px 0; }
.section.soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 30px; color: var(--primary-dark); }
.section-title p { color: var(--muted); margin-top: 6px; }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 18px; text-align: center; transition: .2s; }
.cat-card:hover { box-shadow: 0 8px 24px rgba(11, 61, 145, .12); transform: translateY(-3px); }
.cat-card .icon { font-size: 34px; }
.cat-card h3 { margin: 12px 0 4px; font-size: 17px; color: var(--primary-dark); }
.cat-card span { color: var(--muted); font-size: 13px; }

/* product grid */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.prod-card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .1); transform: translateY(-3px); }
.prod-card .thumb { aspect-ratio: 1; background: #f3f4f6 center/contain no-repeat; }
.prod-card .info { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.prod-card h3 { font-size: 14.5px; font-weight: 600; line-height: 1.45; height: 3.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prod-card .price { color: var(--accent); font-weight: 700; font-size: 17px; margin-top: 10px; }
.prod-card .moq { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; text-align: center; }
.stats .num { font-size: 34px; font-weight: 800; color: var(--primary); }
.stats .lbl { color: var(--muted); font-size: 14px; }

/* layout for products page */
.page-head { background: var(--bg-soft); padding: 34px 0; border-bottom: 1px solid var(--line); }
.page-head h1 { color: var(--primary-dark); font-size: 28px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.side { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; position: sticky; top: 92px; }
.side h4 { font-size: 15px; margin-bottom: 10px; color: var(--primary-dark); }
.side a.cat-link { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.side a.cat-link:hover, .side a.cat-link.active { background: #eef3fb; color: var(--primary); }
.searchbar { display: flex; gap: 10px; margin-bottom: 22px; }
.searchbar input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.pager a.cur { background: var(--primary); color: #fff; border-color: var(--primary); }

/* product detail (left: image + thumbs + title/price/button under it; right: description + inquiry form) */
.pd { display: grid; grid-template-columns: 460px 1fr; gap: 44px; align-items: start; }
.pd .main-img { border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 1; width: 100%; height: auto; object-fit: contain; background: #f8fafc; display: block; cursor: zoom-in; transition: transform .15s ease; }
.pd .main-img.zoomed { transform: scale(2.2); position: relative; z-index: 5; }
/* full-screen image viewer */
.lightbox { position: fixed; inset: 0; background: rgba(2,12,40,.93); display: none; align-items: center; justify-content: center; z-index: 3000; }
.lightbox.open { display: flex; }
.lightbox .lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; background: #fff; border-radius: 8px; }
.lightbox .lb-close { position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox .lb-close:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: none; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; font-family: inherit; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-nav.prev { left: 22px; }
.lightbox .lb-nav.next { right: 22px; }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 14px; background: rgba(255,255,255,.12); padding: 4px 14px; border-radius: 999px; }
.pd .thumbs-wrap { position: relative; margin-top: 12px; }
.pd .thumbs { display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.pd .thumbs::-webkit-scrollbar { display: none; }
.pd .thumbs img { flex: 0 0 74px; width: 74px; height: 74px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: #fff; }
.pd .thumbs img.cur { border-color: var(--primary); }
.pd .th-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.94); color: #1f2937; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(2,12,40,.18); font-size: 18px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 2; padding: 0; font-family: inherit; }
.pd .thumbs-wrap.has-overflow .th-nav { display: flex; }
.pd .th-nav.prev { left: -10px; }
.pd .th-nav.next { right: -10px; }
.pd .th-nav:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.pd .th-nav:disabled { opacity: .35; cursor: default; }
.pd .pd-buy { margin-top: 26px; }
.pd h1 { font-size: 24px; line-height: 1.45; margin-bottom: 16px; }
.pd .price { font-size: 28px; color: var(--accent); font-weight: 800; margin: 12px 0 6px; }
.pd .meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.pd .pd-side .desc { color: #374151; font-size: 15px; line-height: 1.75; word-wrap: break-word; }
.pd .pd-side .form-card { margin-top: 28px; }
.pd .desc h1 { font-size: 22px; margin: 14px 0 10px; color: #111827; }
.pd .desc h2 { font-size: 18px; margin: 14px 0 8px; color: #111827; }
.pd .desc p { margin: 10px 0; }
.pd .desc ul, .pd .desc ol { margin: 10px 0; padding-left: 24px; }
.pd .desc li { margin: 4px 0; }
.pd .desc a { color: var(--accent); text-decoration: underline; }
.pd .desc img { max-width: 100%; height: auto; border-radius: 6px; margin: 10px 0; }
.pd .desc blockquote { border-left: 4px solid var(--line); margin: 10px 0; padding: 4px 14px; color: #6b7280; }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.form-card h3 { margin-bottom: 16px; color: var(--primary-dark); }
.form-card input, .form-card textarea, .form-card select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; font-size: 14.5px; margin-bottom: 12px; font-family: inherit; }
.form-card textarea { min-height: 110px; resize: vertical; }
.form-msg { font-size: 14px; margin-top: 4px; }
.form-msg.ok { color: #16a34a; }
.form-msg.err { color: #dc2626; }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.news-card .body { padding: 18px 20px; }
.news-card time { font-size: 12.5px; color: var(--muted); }
.news-card h3 { margin: 6px 0 8px; font-size: 17px; color: var(--primary-dark); }
.news-card p { font-size: 14px; color: var(--muted); }
.article { max-width: 800px; margin: 0 auto; }
.article h1 { font-size: 28px; color: var(--primary-dark); margin-bottom: 6px; }
.article time { color: var(--muted); font-size: 13px; }
.article .content { margin-top: 22px; font-size: 15.5px; white-space: pre-wrap; }
#news-detail .content { margin-top: 22px; font-size: 15.5px; line-height: 1.8; color: #374151; }
#news-detail .content h1 { font-size: 24px; margin: 18px 0 10px; color: var(--primary-dark); }
#news-detail .content h2 { font-size: 20px; margin: 16px 0 8px; color: var(--primary-dark); }
#news-detail .content p { margin: 10px 0; }
#news-detail .content ul, #news-detail .content ol { margin: 10px 0; padding-left: 24px; }
#news-detail .content li { margin: 4px 0; }
#news-detail .content a { color: #0b3d91; text-decoration: underline; }
#news-detail .content img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }

/* about */
.factory-banner{width:100%;display:block;border-radius:14px;margin:0 0 20px;box-shadow:0 2px 10px rgba(15,23,42,.08)}
.topbar-certs{height:22px;width:auto;max-width:none;object-fit:contain;display:inline-block;vertical-align:middle;margin:0 16px 0 10px}
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; }
.about-grid h2 { color: var(--primary-dark); margin-bottom: 14px; }
.about-grid p { color: #374151; margin-bottom: 12px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.fact li { list-style: none; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; display: flex; justify-content: space-between; }
.fact li:last-child { border-bottom: none; }
.fact b { color: var(--primary-dark); }

/* footer */
.footer { background: #101d36; color: #b9c4d8; margin-top: 60px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; padding: 48px 0 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer a { display: block; font-size: 14px; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer p, .footer li { font-size: 14px; list-style: none; padding: 3px 0; }
.footer .copy { border-top: 1px solid #233252; padding: 16px 0; font-size: 13px; text-align: center; color: #8fa0bd; }

/* inquiry float */
.inq-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.inq-float a { display: flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 13px 20px; border-radius: 40px; font-weight: 700; box-shadow: 0 6px 18px rgba(255, 122, 26, .4); }

.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* homepage about teaser: factory video (left) + company intro (right) */
/* homepage about teaser: video on top (full container width), intro below — both on grey cards */
.about-teaser { background: var(--white); }
.about-teaser-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.at-media .video-wrap {
  background: #eef1f5; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; box-shadow: 0 10px 30px rgba(2, 12, 40, .07);
}
.at-media video {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 9; border-radius: 10px; background: #000;
}
.at-media .video-empty {
  text-align: center; color: var(--muted); padding: 80px 20px;
  background: #eef1f5; border: 1px dashed var(--line); border-radius: 14px;
}
.at-text {
  background: #eef1f5; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 34px; box-shadow: 0 10px 30px rgba(2, 12, 40, .07);
}
.at-text .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: 13px; margin-bottom: 14px;
}
.at-text .kicker::before { content: ""; width: 24px; height: 3px; background: var(--accent); border-radius: 2px; }
.at-text .rich { color: #374151; line-height: 1.9; font-size: 15.5px; }
.at-text .rich h1, .at-text .rich h2 { color: var(--primary-dark); margin: 0 0 12px; }
.at-text .rich p { margin: 10px 0; }
.at-text .rich ul, .at-text .rich ol { margin: 10px 0; padding-left: 24px; }
.at-text .rich img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.at-text .intro-cta { margin-top: 22px; }
@media (max-width: 640px) {
  .at-text { padding: 22px 20px; }
  .at-media .video-wrap { padding: 7px; }
}

/* per-page banner ads (replaces the page title block, full-bleed, same size as homepage hero carousel) */
.page-ad { line-height: 0; }
.pb-grid { display: flex; flex-direction: column; }
.pb-grid a.pb { display: block; width: 100%; height: var(--hero-h); overflow: hidden; }
.pb-grid a.pb:hover { filter: brightness(1.03); }
.pb-grid a.pb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
  :root { --banner-h: 260px; --hero-h: 320px; }
  .hero-carousel { height: var(--hero-h); }
  .hero-carousel .hero-overlay h1 { font-size: 26px; }
}

@media (max-width: 900px) {
  .shop, .pd, .about-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  .side { position: static; }
}

.cert-hero h2{color:var(--primary-dark);margin-bottom:14px}
.cert-strip{width:100%;display:block;border-radius:14px;margin:0 0 18px;box-shadow:0 2px 10px rgba(15,23,42,.08)}
.cert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px}
.cert-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}
.cert-card b{display:block;color:var(--primary);font-size:17px;margin-bottom:6px}
.cert-card span{font-size:14px;color:var(--muted);line-height:1.6}
.cert-card img{width:100%;height:160px;object-fit:contain;background:#f8fafc;border:1px solid var(--line);border-radius:8px;margin-bottom:10px;display:block}
@media(max-width:768px){.cert-grid{grid-template-columns:1fr 1fr}.cert-strip{margin:0 0 14px}}

.cert-desc{font-size:15px;line-height:1.7;color:#444;margin:14px 0 10px}
.cert-banner-tall{width:100%;height:auto;max-width:100%;display:block;margin:18px auto}

/* certifications page: full-bleed factory hero, mobile-style (no side gaps) */
.section.cert-section{padding-top:0}
.factory-banner.factory-fullbleed{width:100%;max-width:none;border-radius:0;box-shadow:none;margin:0;display:block}

/* ============ Video Showcase ============ */
.video-showcase { padding: 44px 0; }
.video-showcase .vs-title { text-align: center; font-size: 26px; margin: 0 0 8px; letter-spacing: .5px; }
.video-showcase .vs-intro { text-align: center; max-width: 760px; margin: 0 auto 28px; color: #4b5563; line-height: 1.7; }
.vs-msg-form { max-width: 580px; margin: 0 auto 26px; display: flex; flex-direction: column; gap: 10px; }
.vs-msg-form input, .vs-msg-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px;
  font: inherit; box-sizing: border-box; background: #fff;
}
.vs-msg-form textarea { min-height: 74px; resize: vertical; }
.vs-msg-form button { align-self: flex-start; }
.vs-messages { max-width: 760px; margin: 0 auto 32px; display: grid; gap: 10px; }
.vs-msg { background: #f9fafb; border: 1px solid #eee; border-radius: 10px; padding: 12px 14px; }
.vs-msg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vs-msg-head b { color: #111827; }
.vs-date { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.vs-msg p { margin: 6px 0 0; color: #374151; line-height: 1.6; }
.vs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vs-card {
  position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 440px; margin: 0 auto;
  background: #000 center / cover no-repeat; border-radius: 14px; overflow: hidden; cursor: pointer;
  display: flex; align-items: flex-end; box-shadow: 0 6px 18px rgba(0,0,0,.12); transition: transform .15s ease;
}
.vs-card:hover { transform: translateY(-3px); }
.vs-play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
}
.vs-cap {
  position: relative; width: 100%; padding: 10px 12px; color: #fff; font-size: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}
.vs-empty { grid-column: 1 / -1; text-align: center; color: #9ca3af; padding: 30px; }
/* phone-shaped play modal */
.vs-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.75); display: none;
  align-items: center; justify-content: center; z-index: 9999; padding: 16px;
}
.vs-modal.open { display: flex; }
.vs-phone {
  position: relative; width: min(360px, 92vw); aspect-ratio: 9 / 16; max-height: 90vh;
  background: #111; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.vs-screen { width: 100%; height: 100%; }
.vs-frame { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }
.vs-close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border: 0;
  border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
@media (max-width: 768px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-card { max-height: 460px; }
}

/* video card without poster: visible placeholder instead of a black box */
.vs-card.no-poster { background: linear-gradient(160deg,#1f2937 0%,#111827 55%,#0b1220 100%); }
.vs-badge { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.62);
  color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 999px; letter-spacing: .2px; }

/* ============ Video Showcase — player chrome (PC, mirrors mobile) ============ */
/* phone-shaped play modal */
.vs-modal { position: fixed; inset: 0; background: rgba(0,0,0,.78); display: none;
  align-items: center; justify-content: center; z-index: 9999; padding: 16px; }
.vs-modal.open { display: flex; }
.vs-phone { position: relative; width: min(420px, 94vw); aspect-ratio: 9 / 16; max-height: 92vh;
  background: #111; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.vs-phone .vs-player { position: absolute; inset: 0; }
.vs-player { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.vs-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.vs-frame { width: 100%; height: 100%; object-fit: contain; background: #000; border: 0; display: block; }

.vs-swiper-hint {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 6;
  color: rgba(255,255,255,.85); font-size: 12px; background: rgba(0,0,0,.35);
  padding: 4px 12px; border-radius: 14px; pointer-events: none;
  animation: vsHint 1.8s ease-in-out infinite;
}
@keyframes vsHint { 0%,100% { opacity: .55; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, -5px); } }

.vs-side { position: absolute; right: 10px; bottom: 118px; z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vs-avatar { width: 40px; height: 40px; border-radius: 50%; background: #07c160; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
  margin-bottom: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.vs-act { background: none; border: 0; color: #fff; display: flex; flex-direction: column;
  align-items: center; gap: 3px; cursor: pointer; font: inherit; padding: 0; }
.vs-act .vs-ico { font-size: 26px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.vs-act .vs-lbl { font-size: 11px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.vs-act.on .vs-ico { color: #ff4d4f; }
.vs-act.vs-share .vs-ico { color: #07c160; }
.vs-act.vs-follow.following .vs-ico, .vs-act.vs-follow.following .vs-lbl { color: #07c160; font-weight: 700; }

.vs-info { position: absolute; left: 14px; right: 84px; bottom: 22px; z-index: 6; }
.vs-title { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; max-height: 42px;
  overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.vs-meta { margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.vs-brand { color: #fff; font-size: 13px; opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.vs-follow-pill { border: 1px solid #fff; background: transparent; color: #fff; font: inherit; font-size: 12px;
  padding: 3px 12px; border-radius: 14px; cursor: pointer; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.vs-follow-pill.on { border-color: #07c160; color: #07c160; }
.vs-progress { margin-top: 10px; height: 2px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.vs-progress span { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }
.vs-cat { display: inline-block; margin: 6px 0 0; padding: 2px 10px; background: rgba(255,255,255,.18);
  color: #fff; font-size: 12px; border-radius: 20px; }
.vs-prod { margin: 8px 0 0; }
.vs-prod-link { display: inline-block; padding: 8px 14px; background: #ff2d55; color: #fff;
  font-size: 13px; font-weight: 600; border-radius: 22px; text-decoration: none; }

/* comments bottom sheet */
.vs-comments { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; height: 70%;
  background: rgba(18,18,18,.96); border-top-left-radius: 14px; border-top-right-radius: 14px;
  display: flex; flex-direction: column; transform: translateY(100%); transition: transform .25s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,.5); }
.vs-comments.open { transform: translateY(0); }
.vs-cmt-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px;
  color: #fff; font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.12); }
.vs-cmt-close { background: none; border: 0; color: rgba(255,255,255,.7); font: inherit; font-size: 13px; cursor: pointer; }
.vs-cmt-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 14px 12px; }
.vs-cmt-empty { color: rgba(255,255,255,.45); text-align: center; padding: 30px 0; font-size: 13px; }
.vs-cmt-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.vs-cmt-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #07c160; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.vs-cmt-body { flex: 1; min-width: 0; }
.vs-cmt-name { color: rgba(255,255,255,.6); font-size: 12px; margin-bottom: 2px; }
.vs-cmt-text { color: #fff; font-size: 14px; line-height: 1.4; word-break: break-word; }
.vs-cmt-reply { margin-top: 6px; background: rgba(7,193,96,.14); border-radius: 8px; padding: 6px 9px;
  color: #b7f0cf; font-size: 13px; line-height: 1.4; word-break: break-word; }
.vs-cmt-date { flex: 0 0 auto; color: rgba(255,255,255,.35); font-size: 11px; align-self: flex-start; }
.vs-cmt-bar { display: flex; gap: 8px; align-items: center; padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.12); background: rgba(18,18,18,.98); }
.vs-cmt-name { max-width: 84px; }
.vs-cmt-text { flex: 1; min-width: 0; height: 36px; border: 0; border-radius: 18px; padding: 0 14px;
  background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 13px; outline: none; }
.vs-cmt-name.vs-cmt-name { background: rgba(255,255,255,.12); border-radius: 18px; padding: 0 12px; color: #fff; height: 36px; }
.vs-cmt-text::placeholder, .vs-cmt-name::placeholder { color: rgba(255,255,255,.45); }
.vs-cmt-send { flex: 0 0 auto; height: 36px; padding: 0 16px; border: 0; border-radius: 18px; cursor: pointer;
  background: #07c160; color: #fff; font: inherit; font-size: 13px; font-weight: 600; }
.vs-cmt-send:disabled { opacity: .6; }

/* video share sheet (Douyin-style) — z-index above the player modal (9999) */
.vs-share-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10001;
  display: none; align-items: flex-end; justify-content: center; }
.vs-share-mask.open { display: flex; }
.vs-share-sheet { width: 100%; max-width: 520px; background: #fff; border-radius: 16px 16px 0 0;
  padding: 18px 14px calc(14px + env(safe-area-inset-bottom)); animation: vsSheetUp .22s ease; }
@keyframes vsSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.vs-share-title { text-align: center; font-size: 15px; font-weight: 600; color: #111; margin-bottom: 14px; }
.vs-share-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
.vs-share-item { flex: 0 0 23%; max-width: 23%; display: flex; flex-direction: column; align-items: center;
  gap: 6px; background: none; border: none; padding: 8px 2px; cursor: pointer; }
.vs-share-ico { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.vs-share-lbl { font-size: 12px; color: #333; }
.vs-share-wx .vs-share-ico { background: #1aad19; }
.vs-share-pyq .vs-share-ico { background: #2e7dd1; }
.vs-share-dy .vs-share-ico { background: #000; }
.vs-share-copy .vs-share-ico { background: #ff2d55; }
.vs-share-fb .vs-share-ico { background: #1877f2; }
.vs-share-wa .vs-share-ico { background: #25d366; }
.vs-share-tw .vs-share-ico { background: #000; }
.vs-share-mail .vs-share-ico { background: #888; }
.vs-share-cancel { width: 100%; margin-top: 14px; padding: 12px; border: none; border-radius: 10px;
  background: #f2f2f2; color: #333; font-size: 15px; font-weight: 600; cursor: pointer; }

/* toast (above share sheet) */
.vs-toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 10002;
  background: rgba(0,0,0,.82); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 80vw; text-align: center; }
.vs-toast.show { opacity: 1; }

/* category badge on grid card (PC) */
.vs-cat-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(0,0,0,.55);
  color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 999px; }

/* product detail: Photos / Video tabs */
.pd-tabs { display:flex; gap:0; margin-bottom:10px; border-bottom:2px solid #eee; }
.pd-tab { background:none; border:none; padding:10px 18px; font-size:15px; font-weight:600; color:#666; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; }
.pd-tab.active { color:#c8102e; border-bottom-color:#c8102e; }
.pd-video-wrap { position:relative; width:100%; aspect-ratio:1; background:#000; border:1px solid var(--line); border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.pd-video-el { width:100%; height:100%; object-fit:contain; background:#000; }
.pd-video-link { cursor:pointer; }
.pd-video-link .pd-video-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55; }
.pd-video-play { position:relative; z-index:2; width:64px; height:64px; border-radius:50%; background:rgba(200,16,46,.92); color:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; box-shadow:0 4px 16px rgba(0,0,0,.4); }
.pd-video-hint { position:absolute; bottom:12px; z-index:2; color:#fff; font-size:12px; background:rgba(0,0,0,.5); padding:4px 10px; border-radius:12px; }

/* editable combobox (bind video / bind product in admin) */
.combo { position: relative; }
.combo-input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; box-sizing: border-box; background: #fff; }
.combo-list { position: absolute; z-index: 60; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.16); display: none; }
.combo-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-size: 14px; cursor: pointer; border-bottom: 1px solid #f1f3f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-item:last-child { border-bottom: none; }
.combo-item:hover { background: #f5f7fa; }
.combo-item.empty { color: #999; cursor: default; display: block; }
.combo-thumb { width: 40px; height: 40px; flex: 0 0 40px; object-fit: cover; border-radius: 6px; background: #eef1f4; border: 1px solid #e3e8ee; }
.combo-thumb--empty { display: inline-block; }
.combo-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.combo-label { overflow: hidden; text-overflow: ellipsis; }
.combo-price { font-size: 12px; color: #e8590c; font-weight: 600; }

.combo-hint { font-size: 12px; color: #999; margin-top: 5px; line-height: 1.4; }
