/*
Theme Name: HAGHPARAST 2026
Theme URI: https://haghparast.co/
Author: HAGHPARAST
Description: قالب اختصاصی پلتفرم گروه خودرویی حق‌پرست؛ نیازمند افزونه HAGHPARAST Core.
Version: 1.0.0
Text Domain: haghparast-2026
*/

:root{--gh-red:#df1734;--gh-ink:#10151c;--gh-navy:#171d29;--gh-soft:#f4f5f7;--gh-gold:#bda77c;--gh-line:#e7e8eb;--gh-white:#fff}
body{font-family:Vazirmatn,Tahoma,sans-serif;background:#fff;color:#151922}
.gh-header{position:sticky;top:0;z-index:999;background:rgba(10,12,16,.96);border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(16px)}
.gh-header-inner{height:78px;display:flex;align-items:center;gap:22px}.gh-logo{margin-left:auto;display:flex;align-items:center}.gh-logo img{width:48px;height:48px;object-fit:contain}.gh-nav{display:flex;align-items:center;gap:20px}.gh-nav>a,.gh-menu-item>a{color:#fff;font-size:12px;font-weight:700;padding:28px 0;display:block}.gh-header-actions{display:flex;align-items:center;gap:10px}.gh-search{color:#fff;font-size:27px}.gh-test{background:var(--gh-red);color:#fff;padding:11px 16px;border-radius:4px;font-size:11px;font-weight:800}.gh-has-mega{position:static}.gh-mega{position:absolute;top:78px;right:50%;transform:translateX(50%);width:min(1060px,calc(100vw - 40px));background:#fff;border-radius:0 0 18px 18px;box-shadow:0 30px 80px rgba(0,0,0,.18);display:none;grid-template-columns:220px 1fr;overflow:hidden}.gh-has-mega:hover .gh-mega{display:grid}.gh-mega-brands{background:#f6f7f9;padding:18px;max-height:510px;overflow:auto}.gh-brand-tab{display:block;width:100%;border:0;background:transparent;text-align:right;padding:12px 14px;border-radius:10px;font:inherit;font-weight:700;color:#3d4654;cursor:pointer}.gh-brand-tab.active{background:#fff;color:var(--gh-red);box-shadow:0 4px 15px rgba(0,0,0,.06)}.gh-mega-models{padding:24px}.gh-brand-panel{display:none;grid-template-columns:repeat(4,1fr);gap:14px}.gh-brand-panel.active{display:grid}.gh-mega-car{border:1px solid var(--gh-line);border-radius:14px;padding:12px;text-align:center;color:#171d29;background:#fff}.gh-mega-car img{width:100%;height:105px;object-fit:contain}.gh-mega-car span{display:block;font-size:11px;font-weight:800;margin-top:8px}.gh-mobile-toggle{display:none;border:0;background:transparent}.gh-mobile-toggle span{display:block;width:22px;height:2px;background:#fff;margin:4px}
.gh-finder-page{min-height:calc(100vh - 78px);padding:45px 0 70px;background:linear-gradient(180deg,#f8f5f0 0,#fff4e6 100%)}.gh-finder-tabs{width:min(620px,100%);margin:0 auto 40px;background:#fff;border-radius:999px;padding:6px;display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 12px 30px rgba(70,50,30,.08)}.gh-finder-tabs button{border:0;background:transparent;border-radius:999px;padding:13px;font-weight:800;color:#999;cursor:pointer}.gh-finder-tabs button.active{background:#c98e68;color:#fff}.gh-finder-stage{position:relative;min-height:510px}.gh-finder-car{display:none;text-align:center;max-width:980px;margin:auto}.gh-finder-car.active{display:block}.gh-finder-name{font-size:48px;font-weight:900;margin-bottom:4px}.gh-finder-image{height:340px;display:flex;align-items:center;justify-content:center}.gh-finder-image img{max-width:820px;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 22px 16px rgba(0,0,0,.22))}.gh-finder-price{font-size:25px;font-weight:900;margin:10px 0 18px}.gh-finder-actions{display:flex;justify-content:center;gap:14px}.gh-finder-actions a{min-width:190px;border:1px solid #222;border-radius:999px;padding:12px 18px;font-weight:800}.gh-finder-actions a.dark{background:#050505;color:#fff}.gh-finder-budget{margin:35px auto 20px;max-width:880px;background:#fff8f2;border:1px solid rgba(201,142,104,.25);border-radius:22px;padding:20px}.gh-finder-budget label{display:flex;justify-content:space-between;font-size:13px}.gh-finder-budget input{width:100%;accent-color:#c98e68;margin-top:12px}.gh-finder-thumbs{background:rgba(255,255,255,.82);border-radius:24px;padding:14px;display:flex;gap:10px;overflow:auto;box-shadow:0 10px 25px rgba(0,0,0,.05)}.gh-finder-thumbs button{min-width:130px;border:0;background:transparent;border-radius:14px;padding:8px;cursor:pointer}.gh-finder-thumbs img{width:100%;height:65px;object-fit:contain}.gh-finder-thumbs span{display:block;font-size:10px;font-weight:800;margin-top:4px}
@media(max-width:1000px){.gh-nav{display:none;position:absolute;top:68px;right:0;left:0;background:#0e1218;padding:18px 24px;flex-direction:column;align-items:stretch}.gh-header.menu-open .gh-nav{display:flex}.gh-mobile-toggle{display:block}.gh-header-inner{height:68px}.gh-has-mega .gh-mega{position:static;transform:none;width:100%;display:none!important}.gh-header-actions .gh-test{display:none}.gh-finder-name{font-size:36px}.gh-finder-image{height:270px}}
.hp-shell{width:min(1180px,calc(100% - 40px));margin-inline:auto}.gh-cars-page{padding:42px 0 80px}.gh-cars-head{text-align:center;margin-bottom:30px}.gh-cars-head span{color:var(--gh-gold);font-size:12px;font-weight:900;letter-spacing:2px}.gh-cars-head h1{font-size:38px;margin:8px 0}.gh-cars-head p{color:#777}.gh-cars-layout{display:grid;grid-template-columns:270px 1fr;gap:20px;align-items:start}.gh-cars-sidebar{position:sticky;top:98px;border:1px solid var(--gh-line);border-radius:16px;padding:14px;background:#fff}.gh-cars-sidebar input{width:100%;border:1px solid #dfe2e7;border-radius:10px;padding:13px;font:inherit;margin-bottom:12px}.gh-cars-sidebar h3{background:#242a4d;color:#fff;padding:12px;border-radius:8px;font-size:14px}.gh-side-brand{display:block;width:100%;border:0;background:#fff;text-align:right;padding:11px 12px;border-bottom:1px solid #f0f0f2;font:inherit;font-weight:700;cursor:pointer}.gh-side-brand.active,.gh-side-brand:hover{color:var(--gh-red);background:#fafafa}.gh-sortbar{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--gh-line);border-radius:14px;padding:12px 16px;margin-bottom:14px}.gh-sortbar button{border:0;background:transparent;font:inherit;color:#666;font-weight:700}.gh-product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.gh-product-card{position:relative;border:1px solid var(--gh-line);border-radius:14px;background:#fff;padding:14px;min-width:0}.gh-product-card a{color:#20263f}.gh-product-img{height:180px;display:flex;align-items:center;justify-content:center}.gh-product-img img{width:100%;height:100%;object-fit:contain;transition:.25s}.gh-product-card:hover .gh-product-img img{transform:scale(1.035)}.gh-sale-badge{position:absolute;top:14px;left:14px;background:#46b649;color:#fff;border-radius:7px;padding:7px 9px;font-size:10px;font-weight:900}.gh-product-card h2{font-size:15px;margin:12px 0 3px;text-align:center}.gh-product-card> a>small{display:block;text-align:center;color:#9aa0ad}.gh-product-specs{display:grid;gap:7px;margin:18px 0;font-size:11px}.gh-product-specs span{display:flex;justify-content:space-between;border-top:1px dashed #e5e6e9;padding-top:7px}.gh-product-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.gh-product-actions span{background:#282d52;color:#fff;text-align:center;padding:10px 6px;border-radius:9px;font-size:10px;font-weight:900}.gh-product-actions .gold{background:var(--gh-gold)}
.gh-finder-page:before{content:'XTRIM';position:absolute;left:0;right:0;top:110px;text-align:center;font-size:170px;font-weight:900;color:rgba(201,142,104,.13);pointer-events:none}.gh-finder-page{position:relative;overflow:hidden}.gh-finder-stage,.gh-finder-tabs,.gh-finder-budget,.gh-finder-thumbs{position:relative;z-index:1}.gh-finder-car.active:after{content:'';display:block;width:340px;height:1px;background:#c98e68;margin:14px auto 0}.gh-finder-thumbs button{opacity:.5;transition:.2s}.gh-finder-thumbs button:hover{opacity:1;background:#fff}.gh-finder-thumbs button:first-child{opacity:1}
@media(max-width:1000px){.gh-cars-layout{grid-template-columns:1fr}.gh-cars-sidebar{position:static}.gh-product-grid{grid-template-columns:repeat(2,1fr)}.gh-finder-page:before{font-size:110px}}
.hp-car-page{background:#fff;padding:28px 0 80px}.hp-car-wrap{width:min(1180px,calc(100% - 40px));margin:auto}.hp-car-breadcrumb{display:flex;gap:8px;align-items:center;color:#8a8e96;font-size:11px;margin:8px 0 22px}.hp-car-breadcrumb a{color:#8a8e96}.hp-car-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.75fr);gap:28px;align-items:start}.hp-car-gallery{min-width:0}.hp-car-main-media{height:460px;border-radius:18px;background:linear-gradient(145deg,#f8f9fa,#fff);display:flex;align-items:center;justify-content:center;overflow:hidden}.hp-car-main-media img{width:100%;height:100%;object-fit:contain}.hp-car-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.hp-car-thumbs button{height:82px;border:1px solid #e2e4e8;border-radius:10px;background:#fff;padding:4px;overflow:hidden}.hp-car-thumbs button.active{border-color:var(--gh-red)}.hp-car-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:7px}.hp-car-summary{padding:24px;border:1px solid var(--gh-line);border-radius:18px;position:sticky;top:98px}.hp-car-brand{font-size:11px;color:var(--gh-red);font-weight:900}.hp-car-summary h1{font-size:30px;margin:8px 0}.hp-car-lead{color:#6e737b;line-height:2;font-size:12px}.hp-car-price-box{margin-top:20px;padding:16px 0;border-top:1px solid var(--gh-line);border-bottom:1px solid var(--gh-line)}.hp-car-price-box span,.hp-car-status span{display:block;color:#8b8f96;font-size:10px}.hp-car-price-box strong{display:block;color:var(--gh-red);font-size:23px;margin-top:5px}.hp-car-status{display:flex;justify-content:space-between;align-items:center;padding:14px 0}.hp-car-status span{display:inline}.hp-car-cta{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hp-car-cta a,.hp-car-mini-actions button{border-radius:8px;padding:12px;text-align:center;font:inherit;font-size:11px;font-weight:900}.hp-car-cta .primary{background:var(--gh-red);color:#fff}.hp-car-cta .secondary{background:#252a4e;color:#fff}.hp-car-mini-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.hp-car-mini-actions button{background:#fff;border:1px solid #ddd;color:#444}.hp-car-spec-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:24px 0}.hp-car-spec-strip article{background:#fafafa;border:1px solid #eee;border-radius:12px;padding:18px 10px;text-align:center}.hp-car-spec-strip span{display:block;color:#888;font-size:10px}.hp-car-spec-strip strong{display:block;margin-top:7px;font-size:12px}.hp-car-tabs-nav{position:sticky;top:78px;z-index:20;display:flex;gap:4px;overflow:auto;background:#fff;border:1px solid #ececef;border-radius:12px;padding:6px;margin:28px 0}.hp-car-tabs-nav a{white-space:nowrap;padding:10px 14px;border-radius:8px;color:#444;font-size:11px;font-weight:800}.hp-car-tabs-nav a:first-child{background:#252a4e;color:#fff}.hp-car-content-section{padding:42px 0;border-bottom:1px solid #eee}.hp-car-content-alt{background:#fafafa;margin-inline:-20px;padding-inline:20px;border-radius:16px}.hp-section-head span{color:var(--gh-gold);font-size:10px;font-weight:900;letter-spacing:1.5px}.hp-section-head h2{font-size:24px;margin:5px 0 22px}.hp-car-data-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hp-car-data-grid>div{display:flex;justify-content:space-between;gap:10px;padding:14px;background:#f6f6f8;border-radius:9px;font-size:11px}.hp-car-data-grid span{color:#777}.hp-car-prose{line-height:2.1;color:#555;font-size:12px}.hp-car-gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.hp-car-gallery-grid a{height:180px;border-radius:12px;overflow:hidden}.hp-car-gallery-grid img{width:100%;height:100%;object-fit:cover}.hp-history{display:grid;gap:6px}.hp-history>div{display:flex;justify-content:space-between;padding:12px 14px;background:#fff;border:1px solid #eee;border-radius:9px}.hp-empty-state{padding:22px;background:#f7f7f8;border-radius:10px;color:#777}.hp-config-stage{height:420px;display:flex;justify-content:center}.hp-config-stage img{max-width:100%;height:100%;object-fit:contain}.hp-color-swatches{display:flex;justify-content:center;gap:10px}.hp-color-swatches button{border:0;background:transparent}.hp-color-swatches span{display:inline-block;width:24px;height:24px;border-radius:50%;background:var(--swatch);border:2px solid #fff;box-shadow:0 0 0 1px #bbb;margin-left:5px;vertical-align:middle}
@media(max-width:1000px){.hp-car-hero{grid-template-columns:1fr}.hp-car-summary{position:static}.hp-car-spec-strip{grid-template-columns:repeat(3,1fr)}.hp-car-data-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.hp-shell,.hp-car-wrap{width:min(100% - 24px,1180px)}.gh-finder-tabs{grid-template-columns:repeat(2,1fr);border-radius:22px}.gh-finder-name{font-size:30px}.gh-finder-image{height:220px}.gh-finder-actions{flex-direction:column}.gh-finder-actions a{width:100%}.gh-product-grid{grid-template-columns:1fr}.gh-cars-head h1{font-size:27px}.gh-product-img{height:210px}.gh-sortbar{align-items:flex-start;gap:10px;flex-direction:column}.gh-finder-page:before{font-size:72px;top:145px}.hp-car-main-media{height:300px}.hp-car-thumbs{grid-template-columns:repeat(4,1fr)}.hp-car-thumbs button{height:64px}.hp-car-summary{padding:18px}.hp-car-summary h1{font-size:24px}.hp-car-spec-strip{grid-template-columns:repeat(2,1fr)}.hp-car-data-grid{grid-template-columns:1fr}.hp-car-gallery-grid{grid-template-columns:repeat(2,1fr)}.hp-car-gallery-grid a{height:130px}.hp-car-tabs-nav{top:68px}.hp-car-cta{grid-template-columns:1fr}.hp-car-price-box strong{font-size:19px}}
