/* ============ JTPART - Industrial Theme ============ */
:root {
  --steel-900: #14161a;
  --steel-800: #1d2025;
  --steel-700: #262a31;
  --steel-600: #33383f;
  --steel-300: #8b939e;
  --steel-100: #e8eaec;
  --paper: #f4f4f2;
  --white: #ffffff;
  --amber: #ffb400;
  --amber-dark: #e09a00;
  --red: #e23a2e;
  --text: #22252a;
  --muted: #5c6470;
  --radius: 6px;
  --font-head: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; line-height: 1.15; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* hazard stripe */
.hazard { height: 8px; background: repeating-linear-gradient(-45deg, var(--amber) 0 16px, var(--steel-900) 16px 32px); }

/* ---------- Header ---------- */
.topbar { background: var(--steel-900); color: #b8bfc9; font-size: 13px; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a:hover { color: var(--amber); }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }

header.site-header { background: var(--white); border-bottom: 3px solid var(--amber); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 46px; height: 46px; background: var(--steel-900); color: var(--amber); font-family: var(--font-head); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; border-radius: 4px; border: 2px solid var(--amber); }
.logo-text { font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: 2px; color: var(--steel-900); }
.logo-text span { color: var(--amber-dark); }

nav.main-nav { display: flex; gap: 4px; align-items: center; }
nav.main-nav a { font-family: var(--font-head); text-transform: uppercase; font-size: 17px; font-weight: 600; padding: 10px 14px; color: var(--steel-800); border-bottom: 3px solid transparent; margin-bottom: -3px; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--amber-dark); border-bottom-color: var(--amber); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; }
.lang-switch select { appearance: none; -webkit-appearance: none; background: var(--steel-100); border: 1px solid #cfd4da; padding: 8px 30px 8px 10px; font-size: 14px; font-weight: 600; border-radius: 4px; cursor: pointer; font-family: inherit; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.btn-quote { background: var(--amber); color: var(--steel-900); font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 4px; border: none; cursor: pointer; letter-spacing: 1px; }
.btn-quote:hover { background: var(--amber-dark); color: #fff; }

.hamburger { display: none; background: none; border: 1px solid #cfd4da; border-radius: 4px; padding: 8px 10px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2.5px; background: var(--steel-800); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(90deg, rgba(13,15,19,.82) 0%, rgba(13,15,19,.62) 42%, rgba(13,15,19,.28) 78%, rgba(13,15,19,.15) 100%), url('/uploads/hero-mine-night2.jpg') center/cover no-repeat #101216; color: #fff; padding: 110px 0 120px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(rgba(16,18,22,0), #101216); pointer-events: none; }
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(255,180,0,.14), transparent 70%); }
.hero h1 { font-size: 52px; max-width: 720px; color: #fff; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p { max-width: 620px; margin: 18px 0 30px; color: #c3c9d2; font-size: 17px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; font-family: var(--font-head); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; padding: 13px 26px; border-radius: 4px; font-size: 16px; transition: .15s; cursor: pointer; }
.btn-amber { background: var(--amber); color: var(--steel-900); }
.btn-amber:hover { background: var(--amber-dark); color: #fff; }
.btn-ghost { border: 2px solid #565d66; color: #dfe3e8; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.hero-badges { display: flex; gap: 26px; margin-top: 42px; flex-wrap: wrap; }
.hero-badge { border-left: 3px solid var(--amber); padding-left: 12px; font-size: 13px; color: #9aa2ad; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 20px; color: #fff; letter-spacing: 1px; }

/* ---------- Sections ---------- */
section.pad { padding: 64px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head h2 { font-size: 34px; color: var(--steel-900); }
.sec-head h2::before { content: '// '; color: var(--amber); }
.sec-head a { color: var(--amber-dark); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.sec-head a:hover { color: var(--steel-900); }
.sec-dark { background: var(--steel-900); color: #cfd4da; }
.sec-dark h2 { color: #fff; }
.sec-dark .sec-head a { color: var(--amber); }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.cat-card { background: var(--white); border: 1px solid #dfe2e6; border-top: 4px solid var(--steel-700); border-radius: var(--radius); padding: 22px; transition: .15s; display: flex; flex-direction: column; gap: 8px; min-height: 130px; }
.cat-card:hover { border-top-color: var(--amber); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.cat-card .cat-icon { font-size: 28px; }
.cat-card h3 { font-size: 19px; color: var(--steel-900); }
.cat-card p { font-size: 13px; color: var(--muted); }
.cat-card .cat-count { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--amber-dark); text-transform: uppercase; letter-spacing: 1px; }

/* product grid */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.prod-card { background: var(--white); border: 1px solid #dfe2e6; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.prod-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.12); transform: translateY(-3px); }
.prod-thumb { aspect-ratio: 4/3; background: #fff; position: relative; overflow: hidden; border-bottom: 1px solid #eceef0; display: flex; align-items: center; justify-content: center; }
.prod-thumb img { max-width: 50%; max-height: 60%; width: auto; height: auto; object-fit: contain; }
.prod-badge { position: absolute; top: 10px; left: 10px; background: var(--amber); color: var(--steel-900); font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; letter-spacing: 1px; }
.prod-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-sku { font-size: 12px; color: var(--amber-dark); font-weight: 700; letter-spacing: 1px; }
.prod-body h3 { font-size: 17px; color: var(--steel-900); line-height: 1.3; }
.prod-body p { font-size: 13px; color: var(--muted); }
.prod-body .prod-link { margin-top: auto; padding-top: 10px; }
.prod-body .prod-link a { font-size: 13px; font-weight: 700; color: var(--steel-800); text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }

/* advantages */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.adv-card { background: var(--steel-800); border: 1px solid var(--steel-600); border-radius: var(--radius); padding: 24px; }
.adv-card h3 { color: var(--amber); font-size: 19px; margin-bottom: 8px; }
.adv-card p { font-size: 13.5px; color: #aab1bb; }
.adv-num { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--steel-600); line-height: 1; }

/* articles */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.art-card { background: var(--white); border: 1px solid #dfe2e6; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.art-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.art-card .art-cover { aspect-ratio: 16/8; background: var(--steel-700); }
.art-card .art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.art-meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.art-meta b { color: var(--amber-dark); }
.art-body h3 { font-size: 19px; color: var(--steel-900); }
.art-body p { font-size: 13.5px; color: var(--muted); }
.art-body .read-more { margin-top: auto; padding-top: 8px; color: var(--amber-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Breadcrumb / page head ---------- */
.page-head { background: var(--steel-900); color: #fff; padding: 40px 0; }
.page-head h1 { font-size: 38px; }
.breadcrumb { font-size: 13px; color: #9aa2ad; margin-top: 6px; }
.breadcrumb a { color: var(--amber); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Catalog layout ---------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 44px 0; align-items: start; }
.filter-box { background: var(--white); border: 1px solid #dfe2e6; border-radius: var(--radius); padding: 20px; position: sticky; top: 100px; }
.filter-box h3 { font-size: 17px; margin-bottom: 14px; color: var(--steel-900); }
.filter-box li a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 4px; font-size: 14px; color: var(--steel-800); }
.filter-box li a:hover, .filter-box li a.active { background: var(--steel-900); color: var(--amber); }
.searchbar { display: flex; margin-bottom: 22px; background: var(--white); border: 2px solid var(--steel-800); border-radius: 4px; overflow: hidden; }
.searchbar input { flex: 1; border: none; padding: 12px 14px; font-size: 15px; outline: none; font-family: inherit; }
.searchbar button { background: var(--amber); border: none; padding: 0 22px; font-weight: 700; cursor: pointer; font-family: var(--font-head); text-transform: uppercase; font-size: 15px; letter-spacing: 1px; }
.searchbar button:hover { background: var(--amber-dark); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 48px 0; align-items: start; }
.pd-gallery { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #dfe2e6; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }
.pd-gallery img { max-width: 50%; max-height: 62%; width: auto; height: auto; object-fit: contain; }
.pd-info h1 { font-size: 34px; color: var(--steel-900); margin-bottom: 6px; }
.pd-sku { color: var(--amber-dark); font-weight: 700; letter-spacing: 1px; font-size: 14px; margin-bottom: 18px; }
.pd-desc { color: var(--muted); margin-bottom: 22px; }
.pd-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid #dfe2e6; border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid #eceef0; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { background: var(--steel-100); color: var(--steel-800); width: 40%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }

.article-wrap { max-width: 800px; margin: 0 auto; padding: 48px 0; }
.article-wrap .art-meta { margin-bottom: 12px; }
.article-wrap h1 { font-size: 38px; color: var(--steel-900); margin-bottom: 20px; }
.article-content { background: var(--white); border: 1px solid #dfe2e6; border-radius: var(--radius); padding: 34px; font-size: 16px; }
.article-content h2, .article-content h3 { margin: 26px 0 10px; color: var(--steel-900); }
.article-content p { margin-bottom: 14px; color: #3a3f47; }
.article-content ul, .article-content ol { margin: 0 0 14px 22px; list-style: disc; }
.article-content img { margin: 16px 0; border-radius: var(--radius); }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; padding: 48px 0; align-items: start; }
.contact-info-card { background: var(--steel-900); color: #cfd4da; border-radius: var(--radius); padding: 30px; }
.contact-info-card h3 { color: var(--amber); font-size: 20px; margin-bottom: 18px; }
.contact-info-card li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--steel-700); font-size: 14px; }
.contact-info-card li:last-child { border-bottom: none; }
.contact-info-card .ci-icon { color: var(--amber); }
.form-card { background: var(--white); border: 1px solid #dfe2e6; border-radius: var(--radius); padding: 30px; }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--steel-800); text-transform: uppercase; letter-spacing: .5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; border: 1px solid #c8cdd4; border-radius: 4px; padding: 11px 12px; font-size: 15px; font-family: inherit; outline: none; background: #fbfbfa; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--amber); background: #fff; }
.form-group textarea { min-height: 120px; resize: vertical; }
.alert-ok { background: #e7f6ec; border: 1px solid #9ed8b1; color: #1d6b39; padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: 14px; }
.alert-err { background: #fdeceb; border: 1px solid #f1948a; color: #a93226; padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: 14px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--steel-900); color: #9aa2ad; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 50px 0 34px; }
.footer-grid h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer-grid li { padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--amber); }
.footer-brand .logo-text { color: #fff; font-size: 26px; }
.footer-brand p { font-size: 13.5px; margin-top: 10px; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--steel-700); padding: 16px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- RTL ---------- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .hero-badge { border-left: none; border-right: 3px solid var(--amber); padding-left: 0; padding-right: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero h1 { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filter-box { position: static; }
  .product-detail, .contact-grid { grid-template-columns: 1fr; }
  nav.main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; border-bottom: 3px solid var(--amber);
    box-shadow: 0 14px 24px rgba(0,0,0,.15); padding: 8px 0 14px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 13px 24px; border-bottom: none; margin: 0; }
  .hamburger { display: block; }
  .btn-quote { display: none; }
  .topbar .tb-left { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 32px; }
  .sec-head h2 { font-size: 26px; }
  .page-head h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .article-content { padding: 22px; }
  .prod-grid, .art-grid, .cat-grid, .adv-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 24px; }
}

/* ---------- Product detail v2 (gallery / chips / perks / order) ---------- */
.page-head-crumb { padding: 18px 0; }
.page-head-crumb .breadcrumb { margin-top: 0; font-size: 13px; }
.pd-gallery-wrap { display: flex; flex-direction: column; gap: 12px; }
.pd-gallery-wrap .pd-gallery { aspect-ratio: 4/3; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb { width: 74px; height: 60px; background: #fff; border: 2px solid #dfe2e6; border-radius: 4px; padding: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .12s; }
.pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-thumb:hover { border-color: var(--steel-300); }
.pd-thumb.active { border-color: var(--amber); }
.pd-info h1 { font-size: 30px; color: var(--steel-900); margin-bottom: 14px; line-height: 1.2; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.pd-chip { background: var(--steel-100); border: 1px solid #d8dce1; border-radius: 4px; padding: 5px 10px; font-size: 12.5px; color: var(--steel-800); }
.pd-chip b { color: var(--amber-dark); margin-right: 5px; text-transform: uppercase; font-size: 11px; letter-spacing: .5px; }
.pd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.pd-perks div { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid #e3e6ea; border-radius: 4px; padding: 9px 12px; font-size: 13px; font-weight: 600; color: var(--steel-800); }
.pd-perks span { font-size: 16px; }
.pd-actions .pd-wa { border-color: #25a35a !important; color: #1d7a44 !important; }
.pd-actions .pd-wa:hover { background: #25a35a; color: #fff !important; border-color: #25a35a !important; }
.pd-order { background: var(--steel-900); color: #cfd4da; border-radius: var(--radius); padding: 20px 22px; margin-top: 22px; }
.pd-order h3 { color: var(--amber); font-size: 18px; margin-bottom: 10px; }
.pd-order li { padding: 5px 0; font-size: 13.5px; border-bottom: 1px dashed var(--steel-700); }
.pd-order li:last-child { border-bottom: none; }
.pd-apps { max-width: 860px; color: var(--muted); font-size: 15px; margin-top: -12px; }
@media (max-width: 560px) {
  .pd-perks { grid-template-columns: 1fr; }
  .pd-info h1 { font-size: 24px; }
}
