/* prousedmachinery.com - main stylesheet */
:root {
  --navy: #12345b; --navy-2: #0e2a49; --orange: #e8871e; --orange-dark: #c96f0f;
  --bg: #f5f7fa; --card: #ffffff; --text: #1f2a37; --muted: #64748b; --line: #e2e8f0;
  --radius: 10px; --shadow: 0 1px 3px rgba(15,23,42,.08), 0 4px 16px rgba(15,23,42,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.topbar { background: var(--navy-2); color: #cbd5e1; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; }
.topbar a { color: #cbd5e1; } .topbar a:hover { color: #fff; }
.topbar .tb-left span { margin-right: 18px; }
.topbar .tb-right a { margin-left: 16px; }
header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 26px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; white-space: nowrap; }
.logo img { height: 44px; width: auto; display: block; background: #fff; border-radius: 6px; padding: 4px 10px; }
.logo span { color: var(--orange); }
nav { margin-left: auto; }
nav ul { display: flex; gap: 24px; align-items: center; }
nav a { font-size: .98rem; font-weight: 500; color: #e2e8f0; padding: 6px 2px; }
nav a:hover, nav a.active { color: #fff; border-bottom: 2px solid var(--orange); }
.cta-btn { background: var(--orange); color: #fff; font-weight: 600; padding: 10px 20px; border-radius: 6px; transition: background .2s; display: inline-block; }
.cta-btn:hover { background: var(--orange-dark); }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1b4a7a 60%, #25619a 100%); color: #fff; padding: 72px 0 90px; text-align: center; }
.hero h1 { font-size: 2.4rem; line-height: 1.25; margin-bottom: 16px; font-weight: 800; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.1rem; color: #dbe7f3; max-width: 720px; margin: 0 auto 34px; }
.search-box { display: flex; max-width: 720px; margin: 0 auto; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.search-box input { flex: 1; border: none; padding: 16px 18px; font-size: 1rem; outline: none; color: var(--text); }
.search-box button { background: var(--orange); color: #fff; border: none; padding: 0 30px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.search-box button:hover { background: var(--orange-dark); }
section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 1.9rem; color: var(--navy); margin-bottom: 10px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { position: relative; background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,34,.15) 0%, rgba(10,18,34,.55) 48%, rgba(10,18,34,.9) 100%); transition: background .2s; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.cat-card:hover::before { background: linear-gradient(180deg, rgba(10,18,34,.08) 0%, rgba(10,18,34,.5) 48%, rgba(10,18,34,.92) 100%); }
.cat-card > * { position: relative; z-index: 1; }
.cat-card .icon { font-size: 1.7rem; margin-bottom: 8px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.cat-card h3 { font-size: 1.08rem; color: #fff; margin-bottom: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.cat-card p { font-size: .88rem; color: rgba(255,255,255,.9); margin-bottom: 8px; }
.cat-card .count { color: #ffb547; font-weight: 600; }
.cat-scrap { background-image: url('../images/cat-scrap.jpg'); }
.cat-hydraulic { background-image: url('../images/cat-hydraulic.jpg'); }
.cat-press { background-image: url('../images/cat-press.jpg'); }
.cat-machining { background-image: url('../images/cat-machining.jpg'); }
.cat-wood { background-image: url('../images/cat-wood.jpg'); }
.cat-other { background-image: url('../images/cat-other.jpg'); }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.prod-img { height: 190px; overflow: hidden; background: #eef2f7; display: flex; align-items: center; justify-content: center; }
.prod-img .ph { color: #94a3b8; font-size: 2.4rem; }
.prod-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.prod-specs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.prod-specs li { margin-bottom: 4px; }
.prod-tags { margin-bottom: 12px; }
.tag { display: inline-block; background: #eef2f7; color: var(--navy); font-size: .72rem; padding: 3px 9px; border-radius: 20px; margin-right: 5px; }
.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--orange-dark); font-weight: 700; font-size: 1.05rem; }
.btn { background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: .88rem; font-weight: 600; transition: background .2s; }
.btn:hover { background: var(--navy-2); }
.btn.orange { background: var(--orange); } .btn.orange:hover { background: var(--orange-dark); }
.why { background: var(--card); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-item { text-align: center; padding: 10px; }
.why-item .icon { font-size: 2.2rem; margin-bottom: 12px; }
.why-item h3 { color: var(--navy); margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: .92rem; }
.markets { background: var(--navy); color: #fff; }
.markets .section-head h2 { color: #fff; }
.markets .section-head p { color: #cbd5e1; }
.market-pills { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.market-pill { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); padding: 12px 26px; border-radius: 30px; font-weight: 500; }
.market-pill:hover { background: var(--orange); border-color: var(--orange); }
.cta-band { background: var(--orange); color: #fff; text-align: center; }
.cta-band h2 { font-size: 1.8rem; margin-bottom: 10px; }
.cta-band p { margin-bottom: 22px; color: #fff0e0; }
.cta-band .btn { background: var(--navy); } .cta-band .btn:hover { background: var(--navy-2); }
footer { background: #0c2137; color: #94a3b8; padding: 50px 0 24px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 34px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-grid a { display: block; margin-bottom: 8px; color: #94a3b8; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #1e3a57; padding-top: 20px; text-align: center; font-size: .82rem; color: #64748b; }
.page-hero { background: var(--navy); color: #fff; padding: 46px 0; }
.page-hero h1 { font-size: 2rem; }
.page-hero p { color: #cbd5e1; margin-top: 6px; }
.breadcrumb { font-size: .85rem; color: #94a3b8; margin-bottom: 8px; }
.breadcrumb a { color: var(--orange); }
.list-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.sidebar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sidebar h4 { color: var(--navy); margin-bottom: 12px; }
.sidebar .f-group { margin-bottom: 18px; }
.sidebar label { display: block; font-size: .88rem; margin-bottom: 6px; color: var(--muted); }
.sidebar select, .sidebar input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; background: #fff; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 6px; color: var(--text); }
.detail-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.gallery-main { height: 380px; background: #eef2f7; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.gallery-main .ph { color: #94a3b8; font-size: 4rem; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs div { width: 80px; height: 60px; background: #eef2f7; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.detail-info h1,
.detail-info .product-title { color: var(--navy); font-size: 1.6rem; margin-bottom: 8px; line-height: 1.25; }
.detail-price { color: var(--orange-dark); font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.inquiry-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.inquiry-box h3 { color: var(--navy); margin-bottom: 16px; }
.inquiry-box input, .inquiry-box textarea, .contact-form input, .contact-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; font-size: .95rem; font-family: inherit; }
.inquiry-box .btn, .contact-form .btn { width: 100%; padding: 12px; font-size: 1rem; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.about-cols .ph-block { height: 320px; background: #eef2f7; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 2rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .icon { font-size: 1.6rem; }
.contact-item h4 { color: var(--navy); margin-bottom: 4px; }
.contact-item p { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 16px 20px; gap: 14px; }
  nav ul.open { display: flex; }
  nav { margin-left: 0; }
  .hamburger { display: block; margin-left: auto; }
  .header-inner { flex-wrap: wrap; }
  .hero h1 { font-size: 1.8rem; }
  .list-layout, .detail-layout, .about-cols, .contact-grid { grid-template-columns: 1fr; }
  .topbar .tb-left span { margin-right: 10px; }
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs div img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.prod-img img { width: 100%; height: 100%; object-fit: cover; }

.gallery-main { position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs div { width: 80px; height: 60px; background: #eef2f7; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .7; transition: all .2s; }
.gallery-thumbs div:hover { opacity: 1; }
.gallery-thumbs div.active { border-color: var(--orange); opacity: 1; }
.gallery-thumbs div img { width: 100%; height: 100%; object-fit: cover; }
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(15,23,42,.55); color: #fff; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.gallery-prev:hover, .gallery-next:hover { background: rgba(15,23,42,.8); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

#lightbox { position: fixed; inset: 0; background: rgba(8,12,20,.92); display: none; align-items: center; justify-content: center; z-index: 200; cursor: zoom-out; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92%; max-height: 90%; object-fit: contain; border-radius: 6px; box-shadow: 0 12px 60px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .85; }
.lightbox-close:hover { opacity: 1; }

/* Clickable category filter list */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { margin-bottom: 2px; }
.cat-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 6px; font-size: .9rem; color: var(--text); text-decoration: none; border: 1px solid transparent; transition: all .15s; }
.cat-list a:hover { background: #f4f6f8; }
.cat-list a.active { background: var(--orange, #f57c00); color: #fff; font-weight: 600; border-color: var(--orange, #f57c00); }
.cat-list .cnt { font-size: .78rem; background: rgba(0,0,0,.08); padding: 1px 8px; border-radius: 10px; }
.cat-list a.active .cnt { background: rgba(255,255,255,.25); }


/* Floating WhatsApp button */
#wa-float{position:fixed;right:20px;bottom:20px;z-index:9999;width:56px;height:56px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.25);transition:transform .2s ease}
#wa-float:hover{transform:scale(1.08)}
#wa-float svg{width:32px;height:32px;display:block}
.form-hint{margin-top:12px;font-size:.85rem;color:#7a7a7a}
#wa-float.wa-float-img{background:#fff;padding:0;overflow:hidden;width:60px;height:60px;border-radius:50%;box-shadow:0 4px 16px rgba(0,0,0,.28)}
#wa-float.wa-float-img img{width:100%;height:100%;object-fit:cover;display:block}

.prod-empty { display: none; width: 100%; padding: 48px 20px; text-align: center; color: var(--muted); font-size: 1rem; line-height: 1.7; }
