/*
Theme Name: Samara Parts
Theme URI: https://samara.sm4host.net
Author: Samara
Description: قالب عربي مخصص لعرض قطع سيارات كراج باسل سمارة.
Version: 1.0.0
Text Domain: samara-parts
*/

:root{--bg:#05080d;--panel:#0c121b;--panel2:#111a27;--text:#f4f7fb;--muted:#9caabd;--blue:#0787ff;--cyan:#48c7ff;--line:rgba(91,180,255,.18);--red:#e32d3f}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:"Tajawal","Segoe UI",Tahoma,sans-serif;line-height:1.7}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.wrap{width:min(1180px,calc(100% - 32px));margin:auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(5,8,13,.86);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}.nav{height:82px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;gap:12px;font-weight:900}.brand img{width:58px;height:58px;object-fit:contain}.brand-text{line-height:1.15}.brand-text small{display:block;color:var(--cyan);font-size:12px;letter-spacing:.08em}.menu{display:flex;gap:30px;font-weight:700;font-size:15px}.menu a{color:#cbd5e1;transition:.2s}.menu a:hover{color:var(--cyan)}.cta,.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:11px 20px;font-weight:800;transition:.2s;border:1px solid transparent}.cta,.btn-primary{background:linear-gradient(135deg,var(--blue),#0658d8);box-shadow:0 10px 30px rgba(0,116,255,.25)}.cta:hover,.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 38px rgba(0,116,255,.38)}.mobile-toggle{display:none;background:none;border:0;color:#fff;font-size:28px}
.hero{min-height:680px;position:relative;display:flex;align-items:flex-end;background:#05080d url('assets/hero.png') center 18%/cover no-repeat;overflow:hidden}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,7,13,.96) 0%,rgba(3,7,13,.68) 44%,rgba(3,7,13,.08) 75%),linear-gradient(0deg,#05080d 0%,transparent 45%)}.hero-copy{position:relative;z-index:2;max-width:620px;padding:150px 0 86px}.eyebrow{display:inline-flex;gap:8px;align-items:center;color:var(--cyan);font-weight:800;font-size:14px;letter-spacing:.04em}.eyebrow:before{content:"";width:28px;height:2px;background:var(--cyan)}h1{font-size:clamp(42px,6vw,78px);line-height:1.08;margin:18px 0 20px;letter-spacing:-.04em}.hero p{font-size:19px;color:#c3cedd;max-width:570px;margin:0 0 30px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.btn-ghost{border-color:rgba(255,255,255,.22);background:rgba(10,18,29,.55)}.btn-ghost:hover{border-color:var(--cyan);color:var(--cyan)}
.stats{position:relative;z-index:3;margin-top:-32px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:18px;overflow:hidden;background:rgba(10,16,25,.92);box-shadow:0 18px 70px rgba(0,0,0,.4);backdrop-filter:blur(14px)}.stat{text-align:center;padding:25px 12px;border-left:1px solid var(--line)}.stat:last-child{border-left:0}.stat strong{display:block;font-size:24px;color:var(--cyan)}.stat span{font-size:13px;color:var(--muted)}
.section{padding:100px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:38px}.section-head h2{font-size:clamp(30px,4vw,48px);line-height:1.15;margin:8px 0 0}.section-head p{max-width:530px;color:var(--muted);margin:0}.brands{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.brand-card{position:relative;padding:30px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,var(--panel2),var(--panel));min-height:190px;overflow:hidden;cursor:pointer;transition:.25s}.brand-card:after{content:"";position:absolute;width:130px;height:130px;border:1px solid rgba(65,190,255,.18);border-radius:50%;left:-45px;bottom:-60px;box-shadow:0 0 35px rgba(0,140,255,.1)}.brand-card:hover,.brand-card.active{transform:translateY(-5px);border-color:rgba(68,193,255,.6);box-shadow:0 20px 50px rgba(0,93,190,.16)}.brand-card .number{font-size:12px;color:var(--cyan);font-weight:800}.brand-card h3{font-size:25px;margin:33px 0 0}.brand-card span{color:var(--muted);font-size:13px}
.products-section{background:linear-gradient(180deg,#070b12,#09101a)}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px}.filter-btn{font-family:inherit;border:1px solid var(--line);background:var(--panel);color:#cbd5e1;padding:10px 17px;border-radius:99px;font-weight:800;cursor:pointer}.filter-btn.active,.filter-btn:hover{background:var(--blue);border-color:var(--blue);color:#fff}.products{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.product-card{border:1px solid var(--line);border-radius:18px;background:var(--panel);overflow:hidden;transition:.25s}.product-card:hover{transform:translateY(-5px);border-color:rgba(72,199,255,.5)}.product-visual{height:190px;background:radial-gradient(circle at 50% 35%,rgba(0,139,255,.23),transparent 55%),linear-gradient(145deg,#121c29,#080d14);display:grid;place-items:center;position:relative}.product-visual span{font-size:66px;filter:grayscale(1);opacity:.82}.product-badge{position:absolute;right:14px;top:14px;background:rgba(4,10,17,.8);border:1px solid var(--line);color:var(--cyan);font-size:12px;font-weight:800;padding:5px 10px;border-radius:99px}.product-body{padding:22px}.product-body h3{margin:0 0 8px;font-size:21px}.product-body p{color:var(--muted);font-size:14px;margin:0 0 18px;min-height:48px}.product-link{color:var(--cyan);font-weight:800;font-size:14px}.empty-products{grid-column:1/-1;padding:40px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:18px}
.why-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:center}.garage-visual{min-height:440px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(0deg,rgba(2,8,14,.45),rgba(2,8,14,.25)),url('assets/hero.png') center/cover;position:relative;box-shadow:22px 22px 0 rgba(0,122,255,.06)}.garage-visual img{position:absolute;width:110px;left:24px;bottom:24px;filter:drop-shadow(0 8px 20px #000)}.features{display:grid;gap:13px;margin-top:30px}.feature{display:grid;grid-template-columns:46px 1fr;gap:14px;align-items:start;padding:16px;border:1px solid var(--line);background:var(--panel);border-radius:14px}.feature-icon{width:46px;height:46px;border-radius:12px;background:rgba(0,135,255,.12);display:grid;place-items:center;color:var(--cyan);font-weight:900}.feature h3{margin:0 0 3px;font-size:18px}.feature p{margin:0;color:var(--muted);font-size:14px}
.contact-strip{padding:48px 0;background:linear-gradient(120deg,#063f88,#087fdc 55%,#0cbcf0);color:#fff}.contact-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}.contact-inner h2{margin:0;font-size:34px}.contact-inner p{margin:4px 0 0;color:rgba(255,255,255,.8)}.contact-inner .btn{background:#fff;color:#0759a9}.site-footer{padding:42px 0;border-top:1px solid var(--line)}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:14px}.footer-logo{display:flex;align-items:center;gap:12px;color:#fff;font-weight:900}.footer-logo img{width:48px}.hidden{display:none!important}
@media(max-width:900px){.menu{display:none;position:absolute;top:82px;right:0;left:0;background:#080e16;padding:22px 24px;flex-direction:column;border-bottom:1px solid var(--line)}.menu.open{display:flex}.nav>.cta{display:none}.mobile-toggle{display:block}.hero{min-height:620px;background-position:62% center}.hero:before{background:linear-gradient(0deg,#05080d 3%,rgba(3,7,13,.72) 62%,rgba(3,7,13,.25))}.hero-copy{padding-bottom:78px}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat:nth-child(2){border-left:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.brands{grid-template-columns:repeat(2,1fr)}.products{grid-template-columns:repeat(2,1fr)}.why-grid{grid-template-columns:1fr;gap:38px}.garage-visual{min-height:360px}}
@media(max-width:620px){.wrap{width:min(100% - 22px,1180px)}.nav{height:72px}.brand img{width:48px;height:48px}.brand-text{font-size:14px}.brand-text small{font-size:10px}.menu{top:72px}.hero{min-height:610px}.hero-copy{padding-top:130px}.hero p{font-size:16px}.section{padding:72px 0}.section-head{display:block}.section-head p{margin-top:14px}.brands,.products{grid-template-columns:1fr}.brand-card{min-height:150px}.brand-card h3{margin-top:20px}.contact-inner,.footer-inner{display:block}.contact-inner .btn{margin-top:18px}.footer-logo{margin-bottom:18px}.garage-visual{min-height:290px}}

/* Rich category and product imagery */
.category-step,#parts-status,.subcategory-filters,#cars,#products{scroll-margin-top:100px}
@media(max-width:620px){
  .brands{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .brands .brand-card{min-height:0;padding:12px}
  .brands .brand-parts{height:90px;margin:14px auto 6px}
  .brands .brand-card .number{font-size:10px;top:8px;right:10px}
  .brands .category-heading{font-size:17px;gap:7px;margin:0}
  .brands .category-heading img{width:23px;height:23px}
  .brands .brand-card-copy>span{font-size:11px}
  .category-step .part-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .part-categories .category-photo{height:82px;object-fit:cover}
  .part-categories .category-caption{padding:10px 5px;font-size:14px;text-align:center;line-height:1.5}
  .part-categories small{display:none}
  .part-categories button{font-size:14px;padding:12px 5px}
  .category-step{margin:20px 0}.category-step h3{font-size:21px;margin:10px 0 16px}
  #products .section-head h2{font-size:30px}
  #products .section-head p{font-size:14px}
  .products-rail .product-card{flex-basis:76%}
  .products-rail .product-visual{height:155px}
  .products-rail .product-body{padding:16px}
  .products-rail .product-body h3{font-size:18px}
  .products-rail .product-body p{font-size:13px;min-height:0;margin-bottom:12px}
  .category-step,#parts-status,.subcategory-filters{scroll-margin-top:88px}
}
.part-gallery{display:flex;gap:15px;flex-wrap:wrap;margin:25px 0}.part-gallery img{width:180px;height:150px;object-fit:contain;border:1px solid var(--line);border-radius:12px}.product-body p.fitment{color:var(--cyan);min-height:0}.subcategory-filters{margin-top:20px}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.showcase{position:relative;height:600px;background:#080d15;overflow:hidden}.showcase-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .7s ease,visibility .7s}.showcase-slide.is-active{opacity:1;visibility:visible;z-index:1}.showcase-slide>img{width:100%;height:100%;object-fit:cover;object-position:center 58%}.showcase-shade{position:absolute;inset:0;background:linear-gradient(270deg,rgba(3,8,15,.94),rgba(3,8,15,.65) 35%,rgba(3,8,15,.05) 75%),linear-gradient(0deg,rgba(3,8,15,.8),transparent 40%)}.showcase-copy{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-bottom:50px}.showcase-copy h2{font-size:clamp(36px,4.5vw,66px);line-height:1.2;max-width:600px;margin:15px 0}.showcase-copy p{max-width:460px;color:#d3dce8;font-size:19px;margin:0 0 25px}.showcase-controls{position:absolute;bottom:28px;left:0;right:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:20px}.showcase-arrows,.showcase-dots{display:flex;gap:9px}.showcase-arrows button{width:42px;height:42px;border:1px solid #ffffff40;border-radius:50%;background:#07101bbf;color:#fff;font-size:21px;cursor:pointer}.showcase-dots button{width:9px;height:9px;padding:0;border:0;border-radius:99px;background:#ffffff60;cursor:pointer;transition:.25s}.showcase-dots button[aria-pressed=true]{width:30px;background:var(--cyan)}.showcase-counter{font-size:13px;color:#d0dfef;letter-spacing:2px}.showcase button:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}@media(max-width:620px){.showcase{height:560px}.showcase-slide>img{height:60%;object-fit:contain}.showcase-shade{background:linear-gradient(0deg,#050a12 5%,#050a12ee 28%,transparent 80%)}.showcase-copy{justify-content:flex-end;padding:0 12px 100px}.showcase-copy h2{font-size:33px;margin:10px 0}.showcase-copy p{font-size:15px;margin-bottom:16px}.showcase-controls{bottom:20px;gap:12px}.showcase-arrows button{width:35px;height:35px}.showcase-dots{gap:6px}.showcase-counter{display:none}}@media(prefers-reduced-motion:reduce){.showcase-slide{transition:none}}
.contact-actions .contact-icon{width:60px;height:60px;padding:16px;border-radius:15px;margin-top:0}.contact-icon svg{display:block;width:28px;height:28px}.contact-actions .contact-icon:hover{transform:translateY(-3px)}
.part-categories button:has(.category-photo){padding:0;overflow:hidden}.category-photo{display:block;width:100%;height:190px;object-fit:cover;transition:transform .25s}.category-caption{display:block;padding:18px 22px}.part-categories button:hover .category-photo{transform:scale(1.04)}
.category-step{margin:30px 0}.category-step h3{font-size:25px}.category-step h3 span{color:var(--cyan)}.part-categories{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.part-categories button{font:inherit;font-size:22px;font-weight:800;text-align:right;color:var(--text);background:var(--panel2);border:1px solid var(--line);border-radius:16px;padding:25px;cursor:pointer}.part-categories small{display:block;font-size:14px;font-weight:400;color:var(--muted)}.part-categories button:hover,.part-categories button.active{border-color:var(--cyan);background:#0b2842}#parts-status{color:var(--muted)}@media(max-width:620px){.part-categories{grid-template-columns:1fr}}
.product-visual .product-badge{display:none}
.stat-heading,.category-heading{display:flex;align-items:center;justify-content:center;gap:12px}.stat-heading img{width:34px;height:34px;object-fit:contain}.category-heading{justify-content:flex-start}.category-heading img{width:32px;height:32px;object-fit:contain}.brand-card>.brand-logo{display:none}.stat:hover{background:rgba(0,135,255,.1)}
.products.products-rail{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:2px;padding:8px 2px 24px;scrollbar-color:var(--blue) var(--panel);scrollbar-width:thin}
.products-rail .product-card{flex:0 0 calc((100% - 60px)/4);min-width:245px;scroll-snap-align:start}
.filter-btn{display:inline-flex;gap:9px;align-items:center}.filter-btn img{width:25px;height:25px;object-fit:contain}
.part-brand{display:flex;align-items:center;gap:9px;color:var(--cyan);font-size:13px;font-weight:800;margin-bottom:14px}.part-brand img{width:30px;height:30px;object-fit:contain}
.rail-controls{display:flex;gap:8px;margin-top:15px}.rail-controls button{background:var(--panel2);border:1px solid var(--line);color:var(--cyan);width:43px;height:43px;border-radius:50%;cursor:pointer;font-size:23px}.rail-controls button:hover{background:var(--blue);color:#fff}
@media(max-width:900px){.products-rail .product-card{flex-basis:calc((100% - 20px)/2)}}
@media(max-width:620px){.products-rail .product-card{flex-basis:84%;min-width:0}}
.contact-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;max-width:550px}
.contact-inner .contact-phone{background:rgba(0,25,65,.25);color:#fff;border-color:rgba(255,255,255,.35)}
.whatsapp-float{position:fixed;left:22px;bottom:22px;z-index:90;display:flex;gap:12px;align-items:center;padding:12px 21px;border-radius:99px;background:#168c46;color:#fff;font-weight:800;box-shadow:0 8px 30px #0007;border:1px solid #ffffff30}
.whatsapp-float:hover{background:#1aa653;transform:translateY(-2px)}
@media(max-width:620px){.contact-actions{justify-content:flex-start;margin-top:20px}.contact-inner .contact-actions .btn{margin-top:0}.whatsapp-float{left:14px;bottom:14px}}
.brand-card{padding:22px;min-height:330px}
.brand-card .number{position:absolute;top:18px;right:18px}
.brand-logo{position:absolute;top:17px;left:18px;width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(44,172,255,.35))}
.brand-parts{width:100%;height:190px;object-fit:contain;margin:35px auto 2px;filter:drop-shadow(0 15px 20px rgba(0,0,0,.55));transition:.25s}
.brand-card:hover .brand-parts{transform:scale(1.05)}
.brand-card-copy{position:relative;z-index:2}.brand-card h3{margin:4px 0 0}
.product-visual{height:230px;overflow:hidden}
.product-visual>span:not(.product-badge){font-size:66px;filter:grayscale(1);opacity:.82}
.generated-part,.product-visual>img{width:88%;height:88%;object-fit:contain;filter:drop-shadow(0 14px 22px rgba(0,0,0,.55));transition:.25s}
.product-card:hover .generated-part{transform:scale(1.05)}
.product-badge{z-index:2}
@media(max-width:620px){.brand-card{min-height:300px}.brand-card h3{margin-top:4px}}
