/* Shared catalog details: readable type, clear actions and coherent light/dark surfaces. */
:root{--catalog-accent-wash:rgba(163,255,0,.07);--catalog-image-bg:#080b09}
html[data-theme="light"]{--catalog-accent-wash:#edf5ef}
html[data-theme] body .vehicle-configurator{border-color:var(--line);border-radius:22px;gap:0;background:var(--surface);box-shadow:0 12px 40px #00000008}
html[data-theme] body .configurator-main{padding:clamp(22px,3vw,40px);background:var(--surface)}
html[data-theme] body .configurator-main header h2{font-size:clamp(26px,2.5vw,36px);line-height:1.3;letter-spacing:-.035em;margin:10px 0}
html.locale-ar body .configurator-main header h2{font-family:var(--font-ar);font-size:clamp(27px,2.6vw,37px);line-height:1.45;letter-spacing:0}
html[data-theme] body .configurator-main header p{font-size:15px;line-height:1.75;color:var(--muted);margin:0}
html[data-theme] body .config-tabs{padding:5px;gap:5px;border:1px solid var(--line);border-radius:12px;background:var(--catalog-accent-wash);margin:22px 0}
html[data-theme] body .config-tabs button{height:40px;border:1px solid transparent;border-radius:8px;font-size:12px;letter-spacing:.03em}
html[data-theme] body .config-tabs button.active{background:var(--surface);border-color:var(--line);color:var(--green);box-shadow:0 2px 5px #00000006}
html.locale-ar body .config-tabs button{font-family:var(--font-ar);font-size:15px;letter-spacing:0}
html[data-theme] body .config-pane label>span{color:var(--muted);font-size:12px;line-height:1.6;letter-spacing:.025em;margin-bottom:7px}
html.locale-ar body .config-pane label>span{font-family:var(--font-ar);font-size:14px;letter-spacing:0}
html[data-theme] body .config-pane :is(select,input){min-height:48px;font-size:14px;border-color:var(--line);background-color:var(--black)}
html.locale-ar body .config-pane :is(select,input){font-family:var(--font-ar);font-size:16px}
html[data-theme] body .config-pane output{font-size:12px;line-height:1.7;letter-spacing:0;color:var(--muted);margin-top:10px}
html.locale-ar body .config-pane output{font-family:var(--font-ar);font-size:14px}
html[data-theme] body .config-submit{min-height:46px;font-size:13px;letter-spacing:.02em}
html.locale-ar body .config-submit{font-family:var(--font-ar);font-size:16px;letter-spacing:0}
/* Keep the photograph on a dark canvas instead of fading it into the white form. */
html[data-theme] body .configurator-visual{display:grid;grid-template-rows:minmax(220px,1fr) auto;position:relative;min-height:360px;background:var(--catalog-image-bg);border-radius:0;isolation:isolate}
html[data-theme] body .configurator-visual::after,html[data-theme] body .configurator-visual>i,html[data-theme] body .configurator-visual>div::after{display:none}
html[data-theme] body .configurator-visual img{position:relative;inset:auto;grid-row:1;grid-column:1;width:100%;height:100%;min-height:0;align-self:stretch;object-fit:contain;object-position:center;padding:12px 0 0;transform:none;opacity:1;filter:none;mask-image:none;-webkit-mask-image:none;transition:opacity 180ms ease,transform 280ms ease}
html[data-theme] body .configurator-visual.is-changing img{transform:scale(.98);opacity:.35}
html[data-theme] body .configurator-visual>div{position:relative;inset:auto;grid-row:2;grid-column:1;display:grid;gap:5px;min-height:104px;padding:18px 24px;background:#101812;border-top:1px solid #2b392d;box-shadow:none;color:#eaf4e9;text-align:start}
html[data-theme] body .configurator-visual>div>span{font-family:Inter,Arial,sans-serif;font-size:11px;line-height:1.5;font-weight:600;letter-spacing:.1em;color:#b7d7a8}
html[data-theme] body .configurator-visual strong{font-family:Sora,Inter,Arial,sans-serif;font-size:26px;line-height:1.25;font-weight:700;letter-spacing:-.03em;color:#f5faf2}
html[data-theme] body .configurator-visual small{font-size:13px;line-height:1.6;color:#bdc9bd}
html.locale-ar body .configurator-visual :is(span,small){font-family:var(--font-ar);font-size:14px;letter-spacing:0}
/* Vehicle context stays legible in both themes, with distinct navigation actions. */
html[data-theme] body .catalog-context{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:12px 16px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--text);box-shadow:inset 3px 0 var(--green)}
html[dir="rtl"] body .catalog-context{box-shadow:inset -3px 0 var(--green)}
html[data-theme] body .catalog-context>div{gap:12px;margin:0;margin-inline-end:auto;min-width:170px}
html[data-theme] body .catalog-context small{font-family:Inter,Arial,sans-serif;font-size:11px;line-height:1.5;letter-spacing:.06em;color:var(--muted);margin-bottom:3px}
html[data-theme] body .catalog-context strong{font-family:Inter,Arial,sans-serif;font-size:15px;font-weight:600;line-height:1.5;color:var(--text)}
html[data-theme] body .catalog-context>a{font-family:Inter,Arial,sans-serif;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:var(--catalog-accent-wash);font-size:12px;font-weight:600;letter-spacing:0;color:var(--green)}
html.locale-ar body .catalog-context :is(small,a){font-family:var(--font-ar);font-size:14px;letter-spacing:0}
html[data-theme] body .status-dot{width:8px;height:8px;flex:none;border-radius:50%;box-shadow:0 0 0 5px var(--catalog-accent-wash)}
/* Compact, recognizable action rows rather than tiny detached labels. */
html[data-theme] body .category-card{gap:6px;border-color:var(--line);padding:15px;background:var(--surface)}
html[data-theme] body .category-card>b{align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;min-width:29px;min-height:25px;padding:3px 7px;border:1px solid var(--line);border-radius:7px;background:var(--catalog-accent-wash);font:600 11px/1.3 Inter,Arial,sans-serif;letter-spacing:.02em}
html[data-theme] body .category-card h3{font-size:16px;line-height:1.4;margin:7px 0 2px;letter-spacing:-.02em}
html.locale-ar[data-theme] body .category-card h3{font-family:var(--font-ar);font-size:17px;line-height:1.5;letter-spacing:0}
html[data-theme] body .category-card p{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 9px}
html.locale-ar[data-theme] body .category-card p{font-family:var(--font-ar);font-size:13px}
html[data-theme] body .category-card>.category-action{justify-content:space-between;font-family:Inter,Arial,sans-serif;font-size:13px;font-weight:600;line-height:1.6;min-height:38px;padding-top:9px;color:var(--green)}
html[data-theme] body .category-action svg{width:26px;height:26px;padding:5px;border-radius:50%;background:var(--catalog-accent-wash)}
html.locale-ar body .category-card>.category-action{font-family:var(--font-ar);font-size:15px;letter-spacing:0}
html[data-theme] body .subcategory-card>i{font-family:Inter,Arial,sans-serif;font-size:13px;font-style:normal;font-weight:600;letter-spacing:0;padding-top:10px;margin-top:12px;border-top:1px solid var(--line);color:var(--green)}
html[data-theme] body .part-showcase-card{border-color:var(--line);padding:12px;border-radius:16px;background:var(--surface)}
html[data-theme] body .part-showcase-card>strong{font-size:16px;line-height:1.45;letter-spacing:-.02em}
html[data-theme] body .part-showcase-card>i{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;margin:14px 0 0;border:1px solid var(--line);border-radius:9px;background:var(--catalog-accent-wash);color:var(--green);font:700 15px/1.5 Inter,Arial,sans-serif;letter-spacing:0;text-align:center}
html.locale-ar body :is(.part-showcase-card>i,.subcategory-card>i){font-family:var(--font-ar);font-size:15px;letter-spacing:0}
html.locale-ar[data-theme] body .part-showcase-card>i{font:700 15px/1.5 Tajawal,Tahoma,Arial,sans-serif;letter-spacing:0}
html[data-theme="light"] body .part-showcase-card>i{color:#195329;background:#edf5ef;border-color:#b8cebe}
html[data-theme="dark"] body .part-showcase-card>i{color:#d4f7b2;background:#1b291b;border-color:#536849}
/* One photographic treatment and one clean information panel in either theme. */
html[data-theme] body .garage-grid>.garage-card.has-image{display:flex;flex-direction:column;min-height:0;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:17px;text-align:start;transition:border-color 180ms ease,transform 220ms ease}
html[data-theme] body .garage-card.has-image::before,html[data-theme] body .garage-card.has-image::after,html[data-theme] body .garage-card.has-image picture::after{display:none}
html[data-theme] body .garage-card.has-image picture{position:relative;inset:auto;display:block;flex:none;width:100%;aspect-ratio:2/1;overflow:hidden;background:var(--catalog-image-bg)}
html[data-theme] body .garage-card.has-image img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:0;filter:none;transition:transform 400ms ease}
html[data-theme] body .garage-card.has-image .garage-overlay{position:relative;inset:auto;display:flex;flex-direction:column;gap:7px;flex:1;width:100%;padding:18px 20px;background:var(--surface);transform:none;text-align:start}
html[data-theme] body .garage-overlay>span{align-self:flex-start;color:var(--green);font:600 10px/1.5 Inter,Arial,sans-serif;letter-spacing:.06em}
html[data-theme] body .garage-card.has-image .garage-overlay h3{margin:0;color:var(--text)!important;-webkit-text-fill-color:var(--text);font:700 24px/1.2 Sora,Inter,Arial,sans-serif;letter-spacing:-.04em}
html[data-theme] body .garage-card.has-image .garage-overlay p{font-size:13px;line-height:1.65;color:var(--muted);max-width:none;margin:0 0 4px}
html[data-theme] body .garage-overlay b{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;margin-top:auto;border-top:1px solid var(--line);padding-top:11px;color:var(--green);font:600 12px/1.5 Inter,Arial,sans-serif;letter-spacing:0}
html[data-theme] body .garage-overlay b svg{width:24px;height:24px;flex:none;padding:4px;border-radius:50%;background:var(--catalog-accent-wash);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[dir="rtl"] body .garage-overlay b svg{transform:rotate(180deg)}
html.locale-ar body .garage-overlay :is(p,b,span){font-family:var(--font-ar);font-size:14px;letter-spacing:0}
html.locale-ar body .garage-overlay>span{font-size:12px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 html[data-theme] body .garage-grid>.garage-card.has-image:hover{transform:translateY(-3px);border-color:var(--green)}
 html[data-theme] body .garage-card.has-image:hover img{transform:scale(1.035);filter:none}
 html[data-theme] body .category-card:hover .category-action,html[data-theme] body .part-showcase-card:hover>i{color:var(--green)}
 html[data-theme] body .catalog-context>a:hover{border-color:var(--green)}
}
@media(max-width:820px){
 html[data-theme] body .vehicle-configurator{border-radius:17px}
 html[data-theme] body .configurator-visual{min-height:0;grid-template-rows:210px auto}
 html[data-theme] body .configurator-visual>div{min-height:90px;padding:15px 20px}
 html[data-theme] body .configurator-main{padding:22px}
 html[data-theme] body .catalog-context{padding:12px;gap:10px}
 html[data-theme] body .catalog-context>div{width:100%;margin:0}
 html[data-theme] body .catalog-context>a{flex:1;font-size:12px}
 html[data-theme] body .garage-card.has-image .garage-overlay{padding:16px 18px}
}
@media(prefers-reduced-motion:reduce){html[data-theme] body .garage-card.has-image,html[data-theme] body .garage-card.has-image img,html[data-theme] body .configurator-visual img{transition:none;transform:none}}
