@font-face{font-family:Vazirmatn;src:url('assets/vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{--red:#dc2033;--red-dark:#bd1727;--ink:#191b20;--muted:#777d86;--line:#e7e8eb;--soft:#f6f7f9;--radius:14px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:#fff;color:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif;font-size:14px}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a,input,select{outline-offset:5px}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--red)}button:disabled{cursor:default;opacity:.4}button{border:0;background:none}img{display:block;max-width:100%}.wrap{width:min(1280px,calc(100% - 80px));margin-inline:auto}.header{height:92px;background:#fff}.header-inner{display:flex;align-items:center;justify-content:space-between;height:100%;gap:24px}.identity{display:flex;align-items:center;gap:13px}.identity strong{display:block;font-size:21px;font-weight:850;white-space:nowrap}.identity small{display:block;font:9px Arial;letter-spacing:2.8px;color:var(--muted);margin-top:6px}.main-nav{display:flex;align-items:center;gap:30px}.main-nav a,.main-nav button{font-size:13px;padding:12px 0}.main-nav a:hover,.main-nav button:hover{color:var(--red)}.nav-home{color:var(--red);position:relative}.nav-home:after{content:'';position:absolute;bottom:0;right:0;width:19px;height:2px;background:var(--red)}.outline{border:1px solid #e7b2b8;color:var(--red);padding:10px 18px;border-radius:8px;display:flex;gap:24px;align-items:center}.hero{background:#141517;height:360px;position:relative;overflow:hidden;color:#fff}.hero-photo{position:absolute;inset:0 34% 0 0;background:url('assets/hero.webp') center 55%/cover no-repeat}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(270deg,#141517 25%,rgba(20,21,23,.96) 35%,rgba(20,21,23,.08) 75%,rgba(20,21,23,.08))}.hero-content{position:relative;z-index:1;height:100%;display:flex;align-items:center}.hero-copy{padding-bottom:6px}.eyebrow{display:flex;align-items:center;gap:9px;font-size:11px;color:#ddd;letter-spacing:.3px}.eyebrow i{height:5px;width:5px;background:var(--red);border-radius:50%}.hero h1{font-size:42px;line-height:1.6;letter-spacing:-1.2px;margin:12px 0 5px;font-weight:850}.hero em{font-style:normal;color:#ff4053}.hero p{font-size:13px;color:#d0d0d4;margin:6px 0 24px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:35px;padding:12px 22px;color:#fff;background:var(--red);border-radius:8px;font-weight:650;border:0;transition:background .2s,transform .2s}.primary:hover{background:var(--red-dark);transform:translateY(-2px)}.hero-caption{font-size:10px;color:#aaaeb5;margin-right:18px}.hero-index{position:absolute;z-index:2;bottom:22px;left:40px;display:flex;align-items:center;gap:15px;direction:ltr;font:9px Arial;letter-spacing:2px;color:#fff}.hero-index b{font-size:14px}.hero-index span{width:65px;height:1px;background:#fff8}.finder{scroll-margin-top:10px;min-height:450px}.trail-row{display:flex;justify-content:space-between;align-items:center;min-height:74px;gap:12px}.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--muted)}.breadcrumbs a:hover{color:var(--red)}.breadcrumbs [aria-current]{color:var(--ink);font-weight:650}.crumb-arrow{color:#b6b8bf}.back{border:1px solid var(--line);border-radius:7px;padding:7px 14px;display:flex;gap:20px;font-size:12px}.back:hover:not(:disabled){border-color:var(--red);color:var(--red)}.steps{display:flex;list-style:none;padding:8px 0 24px;margin:0 auto 20px;max-width:810px}.steps li{flex:1;position:relative;text-align:center}.steps li:not(:last-child):after{content:'';position:absolute;height:2px;right:calc(50% + 23px);left:calc(-50% + 23px);top:19px;background:var(--line)}.steps li.done:after{background:var(--red)}.steps button{display:inline-flex;flex-direction:column;align-items:center;gap:9px;font-size:12px;color:#999fa8}.step-num{display:grid;place-items:center;border-radius:50%;width:30px;height:30px;border:1px solid #dfe1e7;background:white;font-size:12px}.steps .active button,.steps .done button{color:var(--ink)}.steps .active .step-num,.steps .done .step-num{background:var(--red);border-color:var(--red);color:white}.steps .active .step-num{box-shadow:0 0 0 5px #dc20330c}.steps .active button{color:var(--red);font-weight:700}.selection{border:1px solid var(--line);border-radius:12px;padding:17px 26px;display:flex;justify-content:center;align-items:center;gap:34px;margin-bottom:32px}.selection[hidden]{display:none}.control-group{display:flex;align-items:center;gap:12px}.control-label{margin-left:8px;font-size:12px;font-weight:600}.control-divider{height:30px;width:1px;background:var(--line)}.pill{border:1px solid var(--line);border-radius:8px;padding:9px 21px;min-width:86px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:12px}.pill img{width:30px;height:22px;object-fit:contain}.pill.selected{border-color:var(--red);color:var(--red);background:#fff6f7}.pill.solid{background:var(--red);color:#fff}.view-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 26px}.view-title h2{font-size:25px;letter-spacing:-.6px;margin:0 0 5px;font-weight:850}.view-title p{color:var(--muted);font-size:12px;margin:0}.section-kicker{display:block;color:var(--red);font-size:10px;letter-spacing:1px;margin:0 0 8px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:40px}.choice{position:relative;border:1px solid var(--line);border-radius:var(--radius);min-height:233px;overflow:hidden;text-align:right;padding:28px;background:linear-gradient(120deg,#f5f6f8,#fff);transition:transform .2s,border-color .2s,box-shadow .2s}.choice:hover{transform:translateY(-4px);border-color:#e37d88;box-shadow:0 14px 35px #24293608}.choice .choice-number{font:11px Arial;letter-spacing:1px;color:#b2b5bc}.choice h3{font-size:25px;margin:15px 0 4px}.choice p{color:var(--muted);font-size:12px;margin:0;max-width:50%}.choice .choice-car{position:absolute;left:20px;bottom:25px;width:50%;height:130px;object-fit:contain;transition:transform .3s}.choice:hover .choice-car{transform:translateX(-8px)}.choice .choice-arrow{display:grid;place-items:center;width:34px;height:34px;background:#fff;color:var(--red);border:1px solid #eedade;border-radius:50%;margin-top:25px}.brand-choice{min-height:206px}.brand-choice .brand-logo{position:absolute;left:45px;top:60px;width:110px;height:65px;object-fit:contain;filter:grayscale(1)}.count{display:inline-block;font-size:11px;font-weight:400;color:var(--muted);margin-right:10px;letter-spacing:0}.tools{display:flex;gap:12px;align-items:center}.search{border:1px solid var(--line);border-radius:8px;padding:10px 14px;width:215px;font-size:12px;background:#fff}.sort{border:1px solid var(--line);border-radius:8px;padding:9px 10px;font-size:12px;background:#fff;max-width:155px}.car-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:28px}.car-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;transition:transform .22s,box-shadow .22s,border-color .22s;animation:card-in .35s ease both}.car-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px #12152209;border-color:#e8c2c7}.car-image{height:215px;background:linear-gradient(#fafbfc,#f5f6f8);position:relative;display:flex;align-items:center;justify-content:center;padding:25px 20px 8px}.car-image img{width:100%;height:100%;object-fit:contain;transition:transform .35s}.car-card:hover .car-image img{transform:scale(1.04)}.category{position:absolute;top:13px;right:14px;font-size:9px;color:#6d737e;background:#fff;border:1px solid #eeeff2;border-radius:5px;padding:3px 8px}.car-body{padding:18px 20px}.car-body h3{font-size:16px;font-weight:750;margin:0 0 5px}.english{font:11px Arial;color:#8a8f98;direction:ltr;text-align:right;min-height:16px}.price-row{border-top:1px solid #eff0f2;margin-top:17px;padding-top:14px;display:flex;justify-content:space-between;align-items:center;gap:10px}.price-label{font-size:10px;color:var(--muted)}.amount{display:flex;align-items:baseline;gap:6px;font-weight:800;font-size:20px}.amount small{font-size:10px;color:var(--muted);font-weight:400}.data-note{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;color:#888e98;margin-bottom:30px}.data-note a{color:var(--red)}.empty{padding:55px 20px;text-align:center;border:1px dashed #dadde3;border-radius:14px;background:#fafbfc;margin-bottom:35px}.empty-icon{font-size:30px;color:var(--red)}.empty h3{font-size:20px;margin:15px 0 8px}.empty p{color:var(--muted);line-height:2;font-size:13px;max-width:550px;margin:0 auto 25px}.source-bar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:17px;padding:25px 0;margin-top:26px}.source-icon{font-size:25px;color:var(--red)}.source-bar strong{font-size:13px}.source-bar p{font-size:11px;color:var(--muted);margin:4px 0 0}.source-bar button{margin-right:auto;color:var(--red);font-size:11px;white-space:nowrap}.source-bar button span{margin-right:15px}.footer{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:114px;font-size:10px;color:var(--muted)}.footer-brand{font-size:14px;color:var(--ink);font-weight:800}.footer-brand span{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:5px}.footer a:hover{color:var(--red)}.skip{position:absolute;top:-100px;z-index:10;background:#fff;padding:15px}.skip:focus{top:8px}dialog{border:1px solid var(--line);border-radius:18px;padding:35px;max-width:530px;width:calc(100% - 32px);box-shadow:0 20px 80px #0002}dialog::backdrop{background:#11182785;backdrop-filter:blur(4px)}dialog .close{position:absolute;top:10px;left:14px;font-size:25px;color:var(--muted)}.dialog-kicker{font-size:11px;color:var(--red)}dialog h2{font-size:23px}dialog p{font-size:13px;line-height:2.2;color:#646b76}dialog a{color:var(--red);text-decoration:underline}.close-bottom{margin-top:15px}.image-error{font-size:12px;color:var(--muted)}@keyframes card-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.hero{height:405px}.hero-photo{background-position:center 52%}.hero h1{font-size:48px}}
@media(max-width:1000px){.wrap{width:calc(100% - 44px)}.main-nav{gap:18px}.identity strong{font-size:17px}.header-action{display:none}.hero h1{font-size:37px}.hero-caption{display:none}.selection{gap:18px;padding:15px}.control-group{gap:8px}.pill{padding:9px 14px;min-width:70px}.car-grid{gap:15px}.car-image{height:180px}.car-body{padding:15px}.car-body h3{font-size:14px}.view-title{align-items:flex-start}.tools{flex-wrap:wrap;justify-content:flex-end}.search{width:170px}.choice p{max-width:55%}.choice .choice-car{left:8px;width:48%}}
@media(max-width:680px){.wrap{width:calc(100% - 32px)}.header{height:auto}.header-inner{min-height:80px;flex-wrap:wrap;gap:0;padding-top:14px}.identity{gap:8px}.identity img{width:36px;height:36px}.identity strong{font-size:18px}.identity small{font-size:8px}.main-nav{width:100%;justify-content:space-between;gap:12px;margin-top:10px}.main-nav a,.main-nav button{font-size:11px;padding:12px 0}.hero{height:365px}.hero-photo{inset:0;background-position:36% center}.hero:after{background:linear-gradient(270deg,rgba(17,18,20,.91),rgba(17,18,20,.65) 50%,rgba(17,18,20,.12))}.hero h1{font-size:34px}.hero p{font-size:11px}.hero-index{left:16px;bottom:16px;font-size:8px}.hero-content{align-items:center}.eyebrow{font-size:10px}.trail-row{min-height:65px}.breadcrumbs{gap:6px;font-size:10px}.back{padding:7px 9px;gap:10px;font-size:10px}.steps{padding-bottom:12px;margin-bottom:22px}.steps button{font-size:10px}.step-num{width:28px;height:28px}.steps li:not(:last-child):after{top:18px}.selection{flex-direction:column;gap:12px;padding:15px 10px;margin-bottom:25px}.control-divider{display:none}.control-label{width:78px;font-size:11px;margin:0}.control-group{width:100%;justify-content:center}.pill{min-width:84px;padding:8px 13px}.view-title{flex-direction:column;gap:17px;margin-bottom:20px}.view-title h2{font-size:23px}.view-title p{font-size:11px}.choice-grid{grid-template-columns:1fr;gap:14px;margin-bottom:28px}.choice{min-height:200px;padding:22px}.choice .choice-car{width:51%;height:110px;left:13px;bottom:24px}.choice h3{font-size:23px;margin-top:12px}.choice p{font-size:11px}.choice .choice-arrow{margin-top:19px}.brand-choice{min-height:170px}.brand-choice .brand-logo{width:90px;left:30px;top:45px}.tools{width:100%;flex-wrap:nowrap}.search{flex:1;width:0;min-width:0}.sort{width:134px}.car-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.car-image{height:140px;padding:24px 8px 5px}.category{font-size:8px;padding:2px 5px;top:8px;right:8px}.car-body{padding:12px 10px}.car-body h3{font-size:12px;min-height:42px;line-height:1.8}.english{font-size:9px;min-height:23px;line-height:1.4}.price-row{align-items:flex-start;flex-direction:column;gap:3px;margin-top:8px;padding-top:10px}.amount{font-size:19px}.price-label{font-size:9px}.data-note{align-items:flex-start;flex-direction:column;font-size:9px;gap:8px}.source-bar{align-items:flex-start;gap:10px;flex-wrap:wrap;padding:20px 0}.source-bar div{flex:1}.source-bar p{font-size:10px;line-height:2}.source-bar button{margin-right:35px}.footer{padding:24px 0;flex-wrap:wrap;gap:14px}.footer p{margin:0}.footer small{width:100%}.empty{padding:35px 16px}.empty h3{font-size:17px}.empty p{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.loading-state{padding:50px 20px;text-align:center;color:var(--muted);font-size:14px}.model-open{display:flex;width:100%;justify-content:space-between;align-items:center;color:var(--red);font-size:12.5px;margin-top:17px;padding:10px 0 0;border-top:1px solid var(--line);text-align:right}.model-open:hover{color:var(--red-dark)}.pending-price{color:#8b6b32;font-size:12px}.catalog-note{font-size:12px;line-height:2;color:var(--muted);margin:18px 0 28px}.model-intro{display:flex;align-items:center;gap:35px;border:1px solid var(--line);border-radius:16px;padding:22px;margin-bottom:25px;background:linear-gradient(120deg,#f7f8fa,#fff)}.model-intro img{object-fit:contain;width:32%;height:170px}.model-intro h2{font-size:28px;margin:7px 0}.model-intro p{font-size:13px;color:var(--muted);line-height:2}.trim-controls{display:flex;gap:16px;align-items:flex-end;padding:18px 0}.trim-controls label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}.trim-controls select,.trim-controls input{padding:11px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);min-width:165px}.trim-search-label{margin-right:auto}.trim-search-label input{width:260px}#trim-status{font-size:12px;color:var(--muted);margin:10px 0 16px}.trim-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:28px}.trim-card{border:1px solid var(--line);border-radius:10px;padding:14px;transition:border-color .2s,box-shadow .2s;background:#fff;display:flex;flex-direction:column}.trim-card:hover{border-color:#e8bec5;box-shadow:0 8px 20px #16192309}.trim-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.market-badge{font-size:11px;color:var(--red);background:#fff3f5;padding:4px 8px;border-radius:4px;font-weight:600}.price-kind{font-size:11px;color:var(--muted)}.trim-card h3{font-family:Vazirmatn,Arial,sans-serif;line-height:1.55;font-size:15px;margin:8px 0 6px;text-align:right;min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.trim-summary{font-size:13px;line-height:1.85;color:#59606d;margin:0 0 10px;text-align:right;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:58px}.trim-price{border-top:1px solid #f1f2f4;padding-top:10px;display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:auto}.trim-price strong{font-size:21px;letter-spacing:-.4px;font-weight:800}.trim-price strong small{font-size:12px;font-weight:400;letter-spacing:0}.trim-price>span{font-size:11px;color:var(--muted)}.original-price{font-size:12px;line-height:1.7;color:var(--muted);margin:4px 0 0}.price-detail{font-size:12px;line-height:1.75;color:#858c97;margin:6px 0;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.trim-source{display:flex;align-items:center;gap:10px;font-size:12px;border-top:1px solid #f1f2f4;padding-top:10px;margin-top:8px}.trim-source a{color:var(--red);font-weight:600}.trim-source small{font-size:11.5px;color:var(--muted);margin-right:auto}.trim-price .unknown-price{font-size:15px;color:#94723b}.coverage-details{margin:25px 0;padding:18px 22px;border:1px solid var(--line);border-radius:10px;font-size:12.5px}.coverage-details summary{cursor:pointer;font-weight:650}.coverage-details p{font-size:12px;line-height:2;color:var(--muted)}.coverage-details a{font-size:12px;color:var(--red)}
@media(max-width:1020px){.trim-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:680px){.steps button{font-size:9px}.model-open{font-size:10px;line-height:1.9;gap:6px;min-height:47px}.pending-price{font-size:10px}.model-intro{flex-direction:column;align-items:stretch;gap:8px;padding:16px}.model-intro img{width:100%;height:160px}.model-intro h2{font-size:24px}.model-intro .english{display:block}.trim-controls{flex-wrap:wrap;gap:10px}.trim-controls label{flex:1;min-width:0}.trim-controls select,.trim-controls input{min-width:0;width:100%;font-size:12px}.trim-controls .trim-search-label{width:100%;flex:auto;margin:0}.trim-grid{grid-template-columns:1fr;gap:14px}.trim-card{padding:14px}.trim-card h3{font-size:14px}.trim-source{flex-wrap:wrap}.trim-price strong{font-size:20px}.catalog-note{font-size:10px}.model-intro p{font-size:11px}}

.trim-photo{margin:0 0 10px;border-radius:7px;overflow:hidden;background:#fff;border:1px solid #edf0f3}.trim-photo img{width:100%;height:138px;object-fit:contain;background:#fff;transition:transform .25s}.trim-card:hover .trim-photo img{transform:scale(1.03)}.trim-photo figcaption{font-size:11px;text-align:center;color:var(--muted);padding:5px 8px;background:#fafafb;border-top:1px solid #f2f3f4;min-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trim-photo figcaption a{color:#66717c}.trim-photo figcaption a:hover{color:var(--red)}
.trim-comparison{margin-top:8px;border-top:1px dashed var(--line);padding-top:8px}
.trim-comparison summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;color:var(--red);padding:6px 10px;background:#fff6f7;border-radius:5px;border:1px solid #f9d8dc;user-select:none;transition:background .2s,border-color .2s}
.trim-comparison summary:hover{background:#ffecee;border-color:#f5bcc3}
.trim-comparison summary .arrow{transition:transform .2s ease;font-size:11px}
.trim-comparison[open] summary .arrow{transform:rotate(180deg)}
.comparison-body{margin-top:8px;padding:12px 14px;background:#fafbfc;border:1px solid #eeeff2;border-radius:6px;font-size:12.5px;line-height:2.1;color:#4b525d;text-align:right;overflow-wrap:anywhere}
.comparison-body p{margin:0 0 8px}
.comparison-body p:last-child{margin-bottom:0}

/* Gallery Button in Model Intro */
.gallery-trigger-btn{display:inline-flex;align-items:center;gap:9px;background:#fff;border:1.5px solid var(--red);color:var(--red);padding:8px 16px;border-radius:8px;font-size:12px;font-weight:750;cursor:pointer;transition:all .2s ease;margin-top:14px}
.gallery-trigger-btn:hover{background:var(--red);color:#fff;transform:translateY(-1px);box-shadow:0 4px 14px rgba(220,32,51,.25)}
.gallery-trigger-btn .gallery-badge{background:rgba(220,32,51,.1);color:var(--red);padding:2px 8px;border-radius:12px;font-size:10px;font-weight:700}
.gallery-trigger-btn:hover .gallery-badge{background:rgba(255,255,255,.25);color:#fff}
.gallery-trigger-btn .cam-icon{font-size:14px}

/* Gallery Modal Overlay */
.gallery-modal-overlay{display:none;position:fixed;inset:0;background:rgba(12,15,20,.85);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);z-index:99999;align-items:center;justify-content:center;padding:20px}
.gallery-modal-overlay.open{display:flex!important}
.gallery-modal-overlay[hidden]{display:none!important}
.gallery-modal-card{background:#fff;border-radius:16px;width:min(1120px,100%);max-height:88vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 25px 90px rgba(0,0,0,.5);animation:modal-in .2s ease-out}
@keyframes modal-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
.gallery-header{padding:16px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#fff;flex-shrink:0}
.gallery-header-info{display:flex;align-items:center;gap:12px}
.gallery-header-info h2{font-size:18px;font-weight:850;margin:0;letter-spacing:-.4px}
.gallery-count-pill{font-size:11px;color:var(--muted);background:var(--soft);padding:3px 10px;border-radius:20px;font-weight:600}
.gallery-close-btn{position:static;font-size:28px;color:var(--muted);cursor:pointer;line-height:1;background:none;border:none;padding:4px 8px;border-radius:6px}
.gallery-close-btn:hover{color:var(--red);background:#fff1f2}
.gallery-tabs-row{padding:12px 24px;background:#fafbfc;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;overflow-x:auto;flex-shrink:0}
.gallery-tab-btn{display:inline-flex;align-items:center;gap:7px;padding:7px 16px;border-radius:20px;border:1px solid var(--line);background:#fff;font-size:12px;font-weight:650;color:#555b66;cursor:pointer;transition:all .18s;white-space:nowrap}
.gallery-tab-btn:hover{border-color:#cfd2d8;color:var(--ink)}
.gallery-tab-btn.active{background:var(--red);color:#fff;border-color:var(--red);box-shadow:0 2px 10px rgba(220,32,51,.25)}
.gallery-tab-btn .tab-count{font-size:10px;opacity:.9;background:rgba(0,0,0,.08);padding:1px 6px;border-radius:10px}
.gallery-tab-btn.active .tab-count{background:rgba(255,255,255,.25)}
.gallery-scroll-body{padding:20px 24px 30px;overflow-y:auto;flex:1;scroll-behavior:smooth}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media(max-width:860px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:520px){.gallery-grid{grid-template-columns:1fr;gap:12px}.gallery-header{padding:12px 16px}.gallery-tabs-row{padding:10px 16px}.gallery-scroll-body{padding:16px}}
.gallery-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}
.gallery-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.08);border-color:#dfb0b6}
.gallery-card-thumb{position:relative;width:100%;aspect-ratio:16/10;background:#f4f5f7;overflow:hidden;cursor:zoom-in}
.gallery-card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease;display:block}
.gallery-card:hover .gallery-card-thumb img{transform:scale(1.05)}
.gallery-badge-cat{position:absolute;top:8px;right:8px;font-size:9.5px;font-weight:700;padding:3px 8px;border-radius:5px;background:rgba(18,20,24,.8);color:#fff;backdrop-filter:blur(4px)}
.gallery-badge-sub{position:absolute;bottom:8px;left:8px;font-size:9px;font-weight:700;padding:2px 7px;border-radius:4px;background:rgba(220,32,51,.9);color:#fff}
.gallery-card-caption{padding:10px 12px;font-size:11.5px;color:var(--ink);font-weight:650;display:flex;align-items:center;justify-content:space-between;background:#fff;border-top:1px solid #f1f2f4}
.gallery-card-caption small{color:var(--muted);font-size:10px;font-weight:400}
.gallery-empty{padding:60px 20px;text-align:center;color:var(--muted);font-size:13px}

/* Fullscreen Lightbox */
.gallery-lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.94);z-index:100000;align-items:center;justify-content:center;padding:20px;cursor:zoom-out}
.gallery-lightbox.open{display:flex!important}
.gallery-lightbox[hidden]{display:none!important}
.gallery-lightbox img{max-width:94vw;max-height:90vh;object-fit:contain;border-radius:8px;box-shadow:0 15px 50px rgba(0,0,0,.7);transition:transform .2s}
.gallery-lightbox-close{position:absolute;top:20px;left:24px;color:#fff;font-size:32px;cursor:pointer;background:rgba(255,255,255,.15);width:46px;height:46px;border-radius:50%;display:grid;place-items:center;border:none;transition:background .2s}
.gallery-lightbox-close:hover{background:var(--red)}



/* ============================================================
   THEME: BLACK - RED - GOLD (تم لوکس: مشکی - قرمز - طلایی)
   بازبینی مرحله اول: خوانایی بالا، قاب‌های یکدست، نور ملایم استودیویی
   ============================================================ */

:root[data-theme="dark-gold"],
html[data-theme="dark-gold"],
body[data-theme="dark-gold"],
[data-theme="dark-gold"] {
  --bg-page: #08090c;
  --bg-header: #0e1117;
  --bg-card: #13161f;
  --bg-card-hover: #191d29;
  --bg-inner: #0b0d13;
  --line: #222735;
  --line-gold: rgba(212, 175, 55, 0.35);
  --line-gold-hover: #e0ba46;
  --red: #e52236;
  --red-dark: #b81425;
  --red-glow: rgba(229, 34, 54, 0.35);
  --gold: #d4af37;
  --gold-warm: #c59b27;
  --gold-light: #f5cf63;
  --gold-dark: #a37c1e;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --ink: #f8fafc;
  --muted: #94a3b8;
  --soft: #161924;
}

html[data-theme="dark-gold"] {
  background: var(--bg-page);
  color-scheme: dark;
}

[data-theme="dark-gold"] body {
  background: var(--bg-page);
  color: var(--ink);
}

[data-theme="dark-gold"] .header {
  background: var(--bg-header);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

[data-theme="dark-gold"] .identity strong {
  background: linear-gradient(135deg, #ffffff 0%, #f5cf63 60%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

[data-theme="dark-gold"] .identity small {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 3px;
}

[data-theme="dark-gold"] .main-nav a,
[data-theme="dark-gold"] .main-nav button {
  color: #cbd5e1;
  font-weight: 600;
}

[data-theme="dark-gold"] .main-nav a:hover,
[data-theme="dark-gold"] .main-nav button:hover {
  color: var(--gold-light);
}

[data-theme="dark-gold"] .nav-home {
  color: var(--gold-light) !important;
}

[data-theme="dark-gold"] .nav-home:after {
  background: var(--gold);
}

[data-theme="dark-gold"] .outline {
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  font-weight: 700;
  transition: all 0.2s;
}

[data-theme="dark-gold"] .outline:hover {
  background: var(--gold);
  color: #08090c;
  box-shadow: 0 0 14px var(--gold-glow);
  transform: translateY(-1px);
}

/* Theme Switcher Button */
.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1.5px solid #d4af37;
  background: #0f1218;
  color: #f5cf63;
  margin-right: 10px;
}
.theme-switch-btn:hover {
  background: #d4af37;
  color: #08090c;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}
.theme-switch-btn .icon {
  font-size: 14px;
}
:root:not([data-theme="dark-gold"]) .theme-switch-btn {
  border: 1.5px solid #c99320;
  background: #fffdf7;
  color: #8c630d;
}
:root:not([data-theme="dark-gold"]) .theme-switch-btn:hover {
  background: #fbf1d5;
  color: #634503;
  box-shadow: 0 2px 8px rgba(201, 147, 32, 0.2);
}

/* Hero Section */
[data-theme="dark-gold"] .hero {
  border-bottom: 1px solid var(--line-gold);
}
[data-theme="dark-gold"] .hero em {
  color: var(--gold-light);
}

[data-theme="dark-gold"] .primary {
  background: linear-gradient(135deg, #e52236 0%, #aa1222 100%);
  border: 1px solid rgba(245, 207, 99, 0.25);
  box-shadow: 0 4px 14px var(--red-glow);
  color: #ffffff;
}

[data-theme="dark-gold"] .primary:hover {
  background: linear-gradient(135deg, #ff2c42 0%, #c41628 100%);
  box-shadow: 0 6px 18px var(--red-glow);
  transform: translateY(-2px);
}

/* Breadcrumbs & Steps */
[data-theme="dark-gold"] .breadcrumbs a {
  color: var(--muted);
}
[data-theme="dark-gold"] .breadcrumbs a:hover {
  color: var(--gold-light);
}
[data-theme="dark-gold"] .breadcrumbs [aria-current] {
  color: var(--gold-light);
}

[data-theme="dark-gold"] .back {
  border-color: var(--line-gold);
  background: var(--bg-card);
  color: #cbd5e1;
}
[data-theme="dark-gold"] .back:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

[data-theme="dark-gold"] .step-num {
  background: #151822;
  border-color: #2b3342;
  color: #8b95a5;
}
[data-theme="dark-gold"] .steps li:not(:last-child):after {
  background: #222836;
}
[data-theme="dark-gold"] .steps li.done:after {
  background: var(--gold);
}
[data-theme="dark-gold"] .steps .active button,
[data-theme="dark-gold"] .steps .done button {
  color: #ffffff;
}
[data-theme="dark-gold"] .steps .active .step-num,
[data-theme="dark-gold"] .steps .done .step-num {
  background: var(--red);
  border-color: var(--gold);
  color: white;
  box-shadow: 0 0 10px rgba(229, 34, 54, 0.4);
}
[data-theme="dark-gold"] .steps .active .step-num {
  box-shadow: 0 0 0 4px var(--gold-glow), 0 0 10px var(--red-glow);
}
[data-theme="dark-gold"] .steps .active button {
  color: var(--gold-light);
}

/* Selection Bar & Brand Badges */
[data-theme="dark-gold"] .selection {
  border-color: var(--line-gold);
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
[data-theme="dark-gold"] .control-label {
  color: var(--gold);
  font-size: 12.5px;
}
[data-theme="dark-gold"] .control-divider {
  background: var(--line-gold);
}
[data-theme="dark-gold"] .pill {
  border-color: #283040;
  background: #181d28;
  color: #cbd5e1;
  font-size: 12.5px;
}
[data-theme="dark-gold"] .pill img {
  background: #ffffff;
  border-radius: 4px;
  padding: 2px 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
[data-theme="dark-gold"] .pill.selected {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}
[data-theme="dark-gold"] .pill.solid {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}

/* Choice Cards (Step 1 & 2) */
[data-theme="dark-gold"] .choice {
  border: 1px solid var(--line-gold);
  background: linear-gradient(135deg, #131620 0%, #191e2b 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
[data-theme="dark-gold"] .choice:hover {
  border-color: var(--gold);
  box-shadow: 0 14px 35px rgba(0,0,0,0.7), 0 0 14px rgba(212, 175, 55, 0.2);
}
[data-theme="dark-gold"] .choice .choice-number {
  color: var(--gold);
  font-weight: 700;
}
[data-theme="dark-gold"] .choice h3 {
  color: #ffffff;
}
[data-theme="dark-gold"] .choice p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.75;
}
[data-theme="dark-gold"] .choice .choice-arrow {
  background: #10131a;
  color: var(--gold-light);
  border: 1px solid var(--line-gold);
}
[data-theme="dark-gold"] .choice:hover .choice-arrow {
  background: var(--gold);
  color: #08090c;
  box-shadow: 0 0 10px var(--gold-glow);
}
[data-theme="dark-gold"] .brand-choice .brand-logo {
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line-gold);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  filter: none;
  object-fit: contain;
}

/* Tools & Inputs */
[data-theme="dark-gold"] .search,
[data-theme="dark-gold"] .sort,
[data-theme="dark-gold"] .trim-controls select,
[data-theme="dark-gold"] .trim-controls input {
  border: 1px solid var(--line-gold);
  background: #12151e;
  color: #f1f5f9;
}
[data-theme="dark-gold"] .search:focus,
[data-theme="dark-gold"] .sort:focus,
[data-theme="dark-gold"] .trim-controls select:focus,
[data-theme="dark-gold"] .trim-controls input:focus {
  border-color: var(--gold);
  outline: 2px solid var(--gold-glow);
}

/* Car Cards (Step 3) */
[data-theme="dark-gold"] .car-card {
  border: 1px solid var(--line-gold);
  background: var(--bg-card);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
[data-theme="dark-gold"] .car-card:hover {
  border-color: var(--gold);
  box-shadow: 0 14px 32px rgba(0,0,0,0.7), 0 0 16px rgba(212, 175, 55, 0.2);
}
[data-theme="dark-gold"] .car-image {
  background: radial-gradient(ellipse at 50% 55%, #3b4458 0%, #232938 48%, #11141c 100%);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark-gold"] .category {
  background: #141822;
  border: 1px solid var(--line-gold);
  color: var(--gold-light);
  font-size: 11px;
}
[data-theme="dark-gold"] .car-body h3 {
  color: #ffffff;
  font-size: 15.5px;
}
[data-theme="dark-gold"] .english {
  color: #94a3b8;
  font-size: 12px;
}
[data-theme="dark-gold"] .price-row {
  border-top: 1px solid var(--line);
}
[data-theme="dark-gold"] .price-label {
  font-size: 11.5px;
  color: var(--muted);
}
[data-theme="dark-gold"] .amount {
  color: var(--gold-light);
  font-size: 21px;
  font-weight: 850;
}
[data-theme="dark-gold"] .amount small {
  color: #cbd5e1;
  font-size: 12px;
}
[data-theme="dark-gold"] .model-open {
  border-top: 1px solid var(--line);
  color: var(--gold-light);
  font-size: 12.5px;
}
[data-theme="dark-gold"] .model-open:hover {
  color: #ffffff;
}
[data-theme="dark-gold"] .data-note {
  font-size: 12px;
  color: var(--muted);
}
[data-theme="dark-gold"] .data-note a {
  color: var(--gold-light);
}

/* Model Intro & Trims (Step 4) */
[data-theme="dark-gold"] .model-intro {
  border: 1px solid var(--line-gold);
  background: linear-gradient(135deg, #131620 0%, #191f2c 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
[data-theme="dark-gold"] .model-intro h2 {
  color: #ffffff;
}
[data-theme="dark-gold"] .model-intro p {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.9;
}
[data-theme="dark-gold"] .section-kicker {
  color: var(--gold);
  font-size: 11px;
}
[data-theme="dark-gold"] .gallery-trigger-btn {
  background: rgba(229, 34, 54, 0.1);
  border: 1.5px solid var(--red);
  color: #ff5264;
  font-size: 12.5px;
}
[data-theme="dark-gold"] .gallery-trigger-btn:hover {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 0 14px var(--red-glow);
}
[data-theme="dark-gold"] .gallery-trigger-btn .gallery-badge {
  background: rgba(245, 207, 99, 0.15);
  color: var(--gold-light);
}

[data-theme="dark-gold"] .trim-card {
  border: 1px solid var(--line-gold);
  background: var(--bg-card);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
[data-theme="dark-gold"] .trim-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(0,0,0,0.6), 0 0 14px rgba(212, 175, 55, 0.2);
}
[data-theme="dark-gold"] .market-badge {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--line-gold);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
}
[data-theme="dark-gold"] .price-kind {
  font-size: 11px;
  color: var(--muted);
}
[data-theme="dark-gold"] .trim-card h3 {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.55;
  margin: 10px 0 6px;
}
[data-theme="dark-gold"] .trim-summary {
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.85;
}
[data-theme="dark-gold"] .trim-price {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
[data-theme="dark-gold"] .trim-price strong {
  color: var(--gold-light);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
}
[data-theme="dark-gold"] .trim-price strong small {
  font-size: 12.5px;
  color: #cbd5e1;
}
[data-theme="dark-gold"] .trim-price > span {
  font-size: 11.5px;
  color: var(--muted);
}
[data-theme="dark-gold"] .original-price {
  font-size: 12.5px;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 5px 0 0;
}
[data-theme="dark-gold"] .price-detail {
  font-size: 12px;
  line-height: 1.75;
  color: #94a3b8;
  margin: 6px 0;
}
[data-theme="dark-gold"] .trim-photo {
  background: #ffffff;
  border: 1.5px solid var(--line-gold);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  margin: 0 0 12px;
  overflow: hidden;
}
[data-theme="dark-gold"] .trim-photo img {
  background: #ffffff;
  border-radius: 5px;
  width: 100%;
  height: 138px;
  object-fit: contain;
}
[data-theme="dark-gold"] .trim-photo figcaption {
  background: #141722;
  color: #94a3b8;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  padding: 6px 8px;
  border-radius: 0 0 6px 6px;
  margin: 6px -6px -6px -6px;
}
[data-theme="dark-gold"] .trim-photo figcaption a {
  color: var(--gold-light);
}
[data-theme="dark-gold"] .trim-photo figcaption a:hover {
  color: #ffffff;
}
[data-theme="dark-gold"] .trim-comparison summary {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--line-gold);
  color: var(--gold-light);
  font-size: 12px;
  padding: 6px 10px;
}
[data-theme="dark-gold"] .trim-comparison summary:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold);
}
[data-theme="dark-gold"] .comparison-body {
  background: #0f121a;
  border: 1px solid var(--line);
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 2.1;
  padding: 12px 14px;
}
[data-theme="dark-gold"] .trim-source {
  border-top: 1px solid var(--line);
  font-size: 12px;
  padding-top: 10px;
  margin-top: 8px;
}
[data-theme="dark-gold"] .trim-source a {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
}
[data-theme="dark-gold"] .trim-source small {
  font-size: 12px;
  color: var(--muted);
}

/* Gallery Modal */
[data-theme="dark-gold"] .gallery-modal-card {
  background: #0f1118;
  border: 1px solid var(--line-gold);
  box-shadow: 0 25px 90px rgba(0,0,0,0.9), 0 0 20px rgba(212, 175, 55, 0.15);
  color: #ffffff;
}
[data-theme="dark-gold"] .gallery-header {
  background: #0f1118;
  border-bottom: 1px solid var(--line);
}
[data-theme="dark-gold"] .gallery-count-pill {
  background: #181d28;
  color: var(--gold-light);
  border: 1px solid var(--line-gold);
  font-size: 11.5px;
}
[data-theme="dark-gold"] .gallery-close-btn {
  color: var(--muted);
}
[data-theme="dark-gold"] .gallery-close-btn:hover {
  color: var(--red);
  background: rgba(229, 34, 54, 0.12);
}
[data-theme="dark-gold"] .gallery-tabs-row {
  background: #131620;
  border-bottom: 1px solid var(--line);
}
[data-theme="dark-gold"] .gallery-tab-btn {
  background: #191e2b;
  border: 1px solid #283040;
  color: #cbd5e1;
  font-size: 12.5px;
}
[data-theme="dark-gold"] .gallery-tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
[data-theme="dark-gold"] .gallery-tab-btn.active {
  background: var(--red);
  border-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--red-glow);
}
[data-theme="dark-gold"] .gallery-card {
  background: #141722;
  border: 1px solid var(--line-gold);
}
[data-theme="dark-gold"] .gallery-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(0,0,0,0.7), 0 0 12px rgba(212, 175, 55, 0.15);
}
[data-theme="dark-gold"] .gallery-card-caption {
  background: #141722;
  color: #e2e8f0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
[data-theme="dark-gold"] .gallery-card-caption small {
  font-size: 11.5px;
  color: var(--muted);
}

/* Source Bar, Details & Footer */
[data-theme="dark-gold"] .source-bar {
  border-color: var(--line-gold);
}
[data-theme="dark-gold"] .source-icon {
  color: var(--gold);
}
[data-theme="dark-gold"] .source-bar strong {
  color: #ffffff;
  font-size: 14.5px;
}
[data-theme="dark-gold"] .source-bar p {
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.9;
}
[data-theme="dark-gold"] .source-bar button {
  color: var(--gold-light);
  font-size: 12.5px;
}
[data-theme="dark-gold"] .coverage-details {
  border-color: var(--line-gold);
  background: #10131c;
}
[data-theme="dark-gold"] .coverage-details summary {
  color: var(--gold);
  font-size: 13px;
}
[data-theme="dark-gold"] .coverage-details p {
  font-size: 12.5px;
  line-height: 2;
  color: #cbd5e1;
}
[data-theme="dark-gold"] .coverage-details a {
  color: var(--gold-light);
  font-size: 12.5px;
}
[data-theme="dark-gold"] .footer {
  border-top: 1px solid var(--line-gold);
  font-size: 12px;
}
[data-theme="dark-gold"] .footer p {
  font-size: 12px;
}
[data-theme="dark-gold"] .footer small {
  font-size: 12px;
  color: var(--muted);
}
[data-theme="dark-gold"] .footer-brand {
  color: var(--gold-light);
  font-size: 15px;
}
[data-theme="dark-gold"] .footer-brand span {
  font-size: 11px;
  color: var(--muted);
}
[data-theme="dark-gold"] .footer a {
  color: var(--gold);
}
[data-theme="dark-gold"] .footer a:hover {
  color: #ffffff;
}
[data-theme="dark-gold"] dialog {
  background: #10131c;
  border: 1px solid var(--line-gold);
  color: #f1f5f9;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.15);
}
[data-theme="dark-gold"] .dialog-kicker {
  color: var(--gold);
  font-size: 12px;
}
[data-theme="dark-gold"] dialog h2 {
  color: #ffffff;
}
[data-theme="dark-gold"] dialog p {
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 2.2;
}
[data-theme="dark-gold"] dialog a {
  color: var(--gold-light);
}
[data-theme="dark-gold"] .empty {
  border-color: #2b3344;
  background: #10131b;
}
[data-theme="dark-gold"] .empty h3 {
  color: #ffffff;
}
[data-theme="dark-gold"] .empty p {
  font-size: 13.5px;
  color: #94a3b8;
}
/* ================= Responsive fixes ================= */

/* ---------- توکن‌ها ---------- */
:root{
  --header-h: 76px;
  --tap: 44px;
}

/* ---------- HEADER: پایه (همهٔ عرض‌ها) ---------- */
.header{
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.25s ease;
}
html{ scroll-padding-top: calc(var(--header-h) + 16px); }

.header-inner{ gap: clamp(12px, 2vw, 24px); }

.identity{ flex: none; min-width: 0; }
.identity small{
  font-family: inherit;          /* Arial ریز را حذف کن */
  font-size: 10px;
  letter-spacing: 2px;
  white-space: nowrap;           /* جلوگیری از شکستن FREE / ZONE */
}

.main-nav{
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 30px);
}
.main-nav a,
.main-nav button{
  white-space: nowrap;           /* مهم‌ترین رفع: دیگر دو خطی نمی‌شود */
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}
.nav-home::after{ bottom: 6px; }

.header-tools{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.theme-switch-btn,
.header-action{
  white-space: nowrap;
  min-height: 40px;
  border-radius: 999px;          /* هماهنگی شکل دو دکمه */
}
.theme-switch-btn{ margin: 0; }

/* ---------- عرض‌های میانی: دکمهٔ تم فقط آیکون ---------- */
@media (max-width: 1199px){
  .theme-switch-btn{
    width: 40px; height: 40px;
    padding: 0;
    justify-content: center;
  }
  .theme-switch-btn .theme-label{  /* پنهان برای چشم، خوانا برای screen reader */
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

/* ---------- موبایل: هدر دو ردیفی جمع‌وجور (حدود ۱۰۰px به جای ۱۴۹px) ---------- */
@media (max-width: 680px){
  .header{
    height: auto;
    position: relative;          /* در موبایل sticky نباشد تا فضای صفحه گرفته نشود */
  }
  html{ scroll-padding-top: 16px; }

  .header-inner{
    display: grid;
    grid-template-columns: 1fr auto;   /* در RTL: ستون ۱ راست، یعنی لوگو؛ ستون ۲ چپ، یعنی ابزارها */
    align-items: center;
    row-gap: 4px;
    min-height: 0;
    padding-top: 10px;
  }
  .identity{ grid-column: 1; grid-row: 1; }
  .identity img{ width: 34px; height: 34px; }
  .identity strong{ font-size: 17px; }
  .identity small{ font-size: 9px; letter-spacing: 1.5px; margin-top: 3px; }

  .header-tools{ grid-column: 2; grid-row: 1; }
  .theme-switch-btn{ width: var(--tap); height: var(--tap); }

  .main-nav{
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    margin: 0 -16px;             /* لبه‌به‌لبه؛ .wrap در این عرض 100% - 32px است */
    padding: 0 16px;
    justify-content: space-between;
    gap: 10px;                   /* با این مقدار در ۳۶۰px بدون اسکرول جا می‌شود */
    overflow-x: auto;            /* در ۳۲۰px به جای شکستن، اسکرول افقی می‌خورد */
    scrollbar-width: none;
    border-top: 1px solid rgba(127,127,127,.15);
  }
  .main-nav::-webkit-scrollbar{ display: none; }
  .main-nav a,
  .main-nav button{ font-size: 13px; }
}

@media (max-width: 359px){
  .identity small{ display: none; }
}

/* ---------- سایه هنگام اسکرول (با JS) ---------- */
.header.is-scrolled{ box-shadow: 0 6px 20px rgba(0,0,0,.12); }
[data-theme="dark-gold"] .header.is-scrolled{ box-shadow: 0 6px 24px rgba(0,0,0,.6); }

/* ---------- HERO ---------- */
.hero{ height: auto; min-height: 360px; }
.hero-content{ min-height: inherit; padding-block: 32px; }

@media (max-width: 680px){
  .hero{ min-height: 440px; }
  /* متن پایین قرار بگیرد و خودرو در نیمهٔ بالا دیده شود */
  .hero-content{ align-items: flex-end; padding-bottom: 56px; }
  .hero-photo{ background-position: 36% 20%; }
  .hero::after{
    background: linear-gradient(0deg,
      rgba(12,13,16,.96) 0%,
      rgba(12,13,16,.80) 42%,
      rgba(12,13,16,.10) 78%);
  }
  .hero h1{ font-size: clamp(28px, 8.5vw, 34px); line-height: 1.5; }
  .hero p{ font-size: 13px; }
  .eyebrow{ font-size: 12px; }
  .hero .primary{ min-height: 48px; }
  .hero-index{ display: none; }  /* شاخص تزئینی بدون اسلایدر */
}

/* ---------- BREADCRUMB / BACK / STEPS ---------- */
@media (max-width: 680px){
  .breadcrumbs{ font-size: 12px; }
  .breadcrumbs a{ padding: 10px 2px; }      /* ناحیهٔ لمس بزرگ‌تر */
  .back{ font-size: 12px; min-height: 40px; align-items: center; }
  .steps button{ font-size: 11px; line-height: 1.5; }
  .section-kicker{ font-size: 12px; }
  .view-title p{ font-size: 13px; }
}

/* ---------- SOURCE BAR («شفاف انتخاب کنید.») ---------- */
@media (max-width: 680px){
  .source-bar{ flex-wrap: wrap; align-items: flex-start; }
  .source-bar > div{ flex: 1 1 calc(100% - 45px); }   /* کنار آیکون، کل عرض را بگیرد */
  .source-bar p{ font-size: 12px; line-height: 1.9; }
  .source-bar button{
    flex-basis: 100%;
    margin-right: 0;
    margin-inline-start: 41px;   /* هم‌تراز با متن، زیر آن */
    text-align: start;
    min-height: var(--tap);
    font-size: 12px;
  }
}

/* ---------- FOOTER ---------- */
.footer{ font-size: 12px; }
.footer-brand span{ font-size: 11px; }
@media (max-width: 680px){
  .footer{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ---------- دسترس‌پذیری ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .theme-switch-btn{ transition: none; }
}

/* ========================================================
   STUDIO COLOR SELECTOR (بخش رنگ‌بندی استودیویی رسمی)
   ======================================================== */
.model-colors-section {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="dark-gold"] .model-colors-section {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.model-colors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.model-colors-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

[data-theme="dark-gold"] .model-colors-title {
  color: var(--gold, #d4af37);
}

.model-colors-title .palette-icon {
  font-size: 14px;
}

.active-color-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  background: rgba(229, 34, 54, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(229, 34, 54, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark-gold"] .active-color-name {
  color: #ffda73;
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
}

.active-color-en {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
  font-family: var(--font-en, sans-serif);
}

.color-swatches-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 0;
}

.color-swatch-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(150, 150, 150, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 0 2px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  padding: 0;
  outline: none;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.color-swatch-btn:hover {
  transform: scale(1.18);
  border-color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.color-swatch-btn.active {
  transform: scale(1.25);
  border-color: var(--gold, #d4af37) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4), 0 4px 10px rgba(0, 0, 0, 0.45);
}

.color-swatch-btn.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.color-swatch-btn[data-is-light="true"].active::after {
  background: #111111;
}

#model-main-img {
  transition: opacity 0.22s ease-in-out, transform 0.22s ease-in-out;
  object-fit: contain;
}

@media (max-width: 680px) {
  .model-colors-section {
    padding: 12px;
    margin-top: 14px;
  }
  .color-swatch-btn {
    width: 32px;
    height: 32px;
  }
  .model-colors-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .active-color-name {
    font-size: 12px;
  }
}
