/* 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 */
.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; }
}
