/* AutoPal's existing navy/gold identity; native CSS, local Arabic type.
   Layer order: page 0, sticky header 20, menus 30. */
:root{color-scheme:light;--ap-canvas:#f1f4f8;--ap-surface:#fff;--ap-soft:#f6f8fc;--ap-ink:#17233c;--ap-muted:#586780;--ap-line:#dce3ef;--ap-blue:#2e59bb;--ap-blue-soft:#edf3ff;--ap-navy:#14213e;--ap-gold:#f4c85d;--home-ease:cubic-bezier(.2,.8,.2,1)}
html[data-ap-theme="dark"]{color-scheme:dark;--ap-canvas:#0f1727;--ap-surface:#162238;--ap-soft:#1d2a40;--ap-ink:#edf2fb;--ap-muted:#b2bfd4;--ap-line:#334157;--ap-blue:#9bb8ff;--ap-blue-soft:#253d66;--ap-navy:#e8eef8}
html{scroll-behavior:smooth;scroll-padding-top:96px}
.ap-home{margin:0;background:var(--ap-canvas);color:var(--ap-ink);font-family:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;font-size:14px;line-height:1.85;overflow-x:clip}
.ap-home *,.ap-home *::before,.ap-home *::after{box-sizing:border-box}
.ap-home [hidden]{display:none!important}
.ap-home :is(button,input,select){font:inherit}
.ap-home button,.ap-home a{-webkit-tap-highlight-color:transparent}
.ap-home a{color:inherit;text-decoration:none}
.ap-home :is(a,button,summary,input,select):focus-visible{outline:3px solid var(--ap-blue);outline-offset:4px}
.ap-home h1,.ap-home h2,.ap-home h3,.ap-home p{margin:0}
.ap-home h1,.ap-home h2,.ap-home h3{font-weight:600;text-wrap:balance;line-height:1.55}
.ap-home p{text-wrap:pretty}
.ap-home-container{width:min(1360px,calc(100% - 64px));margin-inline:auto}
.ap-home-icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ap-home-skip{position:fixed;inset:10px auto auto 16px;z-index:30;padding:10px 16px;border-radius:10px;background:var(--ap-gold);color:#14213e;transform:translateY(-150%)}
.ap-home-skip:focus-visible{transform:none}
.ap-home-header{position:sticky;top:0;z-index:20;border-bottom:1px solid var(--ap-line);background:var(--ap-surface)}
.ap-home-header-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;width:min(1440px,calc(100% - 64px));height:76px;margin-inline:auto}
.ap-home-brand{display:inline-flex;align-items:center;gap:10px;width:fit-content}
.ap-home-brand-mark{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:13px;background:var(--ap-gold);color:#14213e;font:700 26px/1 Arial,sans-serif}
.ap-home-brand strong{display:block;font:700 23px/1.2 Arial,sans-serif;color:var(--ap-ink);letter-spacing:-.7px}
.ap-home-brand small{display:block;margin-top:3px;color:var(--ap-muted);font-size:10px;line-height:1.5}
.ap-home-nav{display:flex;align-items:center;gap:22px;white-space:nowrap}
.ap-home-nav a{padding-block:10px;color:var(--ap-muted);font-size:12px;font-weight:500;transition:color .15s}
.ap-home-nav a:hover,.ap-home-nav a[aria-current="location"]{color:var(--ap-ink)}
.ap-home-header-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.ap-home-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:11px 20px;border:1px solid var(--ap-line);border-radius:11px;white-space:nowrap;background:var(--ap-surface);color:var(--ap-ink);font-size:13px;font-weight:600;cursor:pointer;transition:background .18s,transform .18s,border-color .18s}
.ap-home-btn--primary{background:var(--ap-gold);border-color:var(--ap-gold);color:#14213e!important}
.ap-home-btn:hover{transform:translateY(-2px);border-color:var(--ap-gold)}
.ap-home-btn--primary:hover{background:#f8d782;border-color:#f8d782}
.ap-home-btn:active{transform:translateY(0)}
.ap-home-btn:disabled{opacity:.6;cursor:wait;transform:none}
.ap-home-header-start{min-height:40px;padding:8px 13px;font-size:11px}
.ap-home-text-link{display:inline-flex;align-items:center;gap:10px;width:fit-content;padding:7px 0;border:0;background:transparent;color:var(--ap-ink);font-size:13px;font-weight:600;cursor:pointer;line-height:1.6}
.ap-home-text-link:hover{color:var(--ap-blue)}
.ap-home-icon-btn{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--ap-line);border-radius:10px;background:var(--ap-surface);color:var(--ap-ink);cursor:pointer}
.ap-home-icon-btn:hover{background:var(--ap-soft)}
.ap-home-account{min-width:80px;text-align:center}
.ap-home-account-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 10px;font-size:11px;font-weight:500;white-space:nowrap}
.ap-home-account-menu{position:relative;text-align:start}
.ap-home-account-menu summary{display:flex;align-items:center;gap:5px;min-height:40px;padding:7px 9px;border:1px solid var(--ap-line);border-radius:10px;list-style:none;cursor:pointer;font-size:11px;font-weight:500;white-space:nowrap}
.ap-home-account-menu summary::-webkit-details-marker{display:none}
.ap-home-account-menu .ap-home-account-glyph{display:none}
.ap-home-account-menu[open] summary{background:var(--ap-soft)}
.ap-home-account-dropdown{position:absolute;top:calc(100% + 10px);inset-inline-end:0;z-index:30;width:220px;padding:12px;border:1px solid var(--ap-line);border-radius:13px;background:var(--ap-surface);box-shadow:0 14px 44px #14213e16}
.ap-home-account-dropdown p{padding:4px 8px 9px;color:var(--ap-muted);font-size:12px;overflow-wrap:anywhere}
.ap-home-account-dropdown a{display:block;padding:9px;border-radius:8px;font-size:12px}
.ap-home-account-dropdown a:hover{background:var(--ap-soft)}
.ap-home-hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center;gap:64px;padding-block:52px 58px}
.ap-home-eyebrow{color:var(--ap-muted);font-size:12px;font-weight:500;margin-bottom:18px!important}
.ap-home-hero h1{max-width:560px;font-size:clamp(38px,3.7vw,56px);line-height:1.45;letter-spacing:-1.2px}
.ap-home-lead{max-width:470px;margin-top:22px!important;color:var(--ap-muted);font-size:15px;line-height:1.9}
.ap-home-hero-actions{display:flex;align-items:center;gap:24px;margin-top:30px}
.ap-home-hero-media{min-width:0}
.ap-home-product-tabs{display:flex;gap:6px;width:fit-content;margin-bottom:13px;padding:4px;border:1px solid var(--ap-line);border-radius:12px;background:var(--ap-surface)}
.ap-home-product-tabs button,.ap-home-demo-switch button{min-width:90px;min-height:36px;padding:7px 17px;border:0;border-radius:8px;background:transparent;color:var(--ap-muted);font-size:12px;font-weight:500;cursor:pointer;transition:background .18s,color .18s}
.ap-home-product-tabs button[aria-selected="true"],.ap-home-demo-switch button[aria-pressed="true"]{color:#14213e;background:var(--ap-gold)}
.ap-home-hero-shot{margin:0}
.ap-home-hero-shot picture{display:block;aspect-ratio:3/2;border-radius:20px;overflow:hidden;background:var(--ap-soft)}
.ap-home-hero-shot img{display:block;width:100%;height:100%;object-fit:cover}
.ap-home-hero-shot figcaption{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:13px;color:var(--ap-muted);font-size:11px}
.ap-home-hero-shot figcaption a{display:flex;align-items:center;gap:8px;color:var(--ap-ink);font-size:12px;font-weight:500}
.ap-home-section{padding-block:60px}
.ap-home-section-heading{max-width:670px;margin-bottom:28px}
.ap-home-section h2{font-size:clamp(25px,2.4vw,36px);letter-spacing:-.5px}
.ap-home-section-heading p{max-width:640px;margin-top:12px;color:var(--ap-muted);font-size:14px}
.ap-home-demo{padding:22px;border:1px solid var(--ap-line);border-radius:22px;background:var(--ap-surface)}
.ap-home-demo-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.ap-home-demo-switch{display:flex;gap:3px;padding:4px;border:1px solid var(--ap-line);border-radius:12px;background:var(--ap-soft)}
.ap-home-demo-label{color:var(--ap-muted);font-size:11px}
.ap-home-demo-viewer{min-height:330px}
.ap-home-demo-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:330px;padding:28px;text-align:center;border-radius:15px;background:var(--ap-soft)}
.ap-home-demo-cube{width:66px;height:66px;fill:none;stroke:var(--ap-muted);stroke-width:1.1;stroke-linejoin:round;stroke-linecap:round}
.ap-home-demo-placeholder h3{font-size:23px}
.ap-home-demo-placeholder p{max-width:440px;font-size:12px;color:var(--ap-muted)}
.ap-home-demo-placeholder .ap-home-btn{margin-top:5px}
.ap-home-demo-placeholder.is-loading{opacity:.7}
.ap-home-demo-note{max-width:820px;margin-top:16px!important;color:var(--ap-muted);font-size:10px;line-height:1.8}
.ap-home-demo-viewer .ap3d-stage{max-height:560px}
.ap-home-feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 70px;margin-top:38px}
.ap-home-feature-list article{display:flex;gap:16px;align-items:flex-start}
.ap-home-feature-list article>.ap-home-icon{width:26px;height:26px;margin-top:4px;color:var(--ap-muted)}
.ap-home-feature-list h3{font-size:16px;line-height:1.7}
.ap-home-feature-list p{max-width:460px;margin-top:5px;font-size:12px;color:var(--ap-muted)}
.ap-home-showroom{display:grid;grid-template-columns:7fr 5fr;gap:26px;align-items:start}
.ap-home-product{overflow:hidden;border-radius:18px;background:var(--ap-surface)}
.ap-home-product-image{display:block;aspect-ratio:3/2;overflow:hidden;background:var(--ap-soft)}
.ap-home-product--washbasin .ap-home-product-image{aspect-ratio:1.22}
.ap-home-product img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s var(--home-ease)}
@media(hover:hover){.ap-home-product-image:hover img{transform:scale(1.025)}}
.ap-home-product-copy{padding:22px 24px}
.ap-home-product-copy h3{font-size:24px}
.ap-home-product-copy p{margin-top:7px;color:var(--ap-muted);font-size:12px}
.ap-home-layouts{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 10px;padding:0;list-style:none}
.ap-home-layouts li{padding:5px 9px;border-radius:6px;background:var(--ap-soft);color:var(--ap-muted);font-size:10px}
.ap-home-journey{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:32px 0 0;padding:0;list-style:none}
.ap-home-journey li{padding-top:20px;border-top:1px solid var(--ap-line)}
.ap-home-journey li>span{display:grid;place-items:center;width:36px;height:36px;margin-bottom:16px;border-radius:10px;background:var(--ap-surface);color:var(--ap-muted);font-size:12px;font-variant-numeric:tabular-nums}
.ap-home-journey h3{font-size:15px}
.ap-home-journey p{margin-top:8px;color:var(--ap-muted);font-size:12px}
.ap-home-materials{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:64px;padding-block:22px}
.ap-home-materials>div:first-child p{max-width:530px;margin-top:13px;color:var(--ap-muted);font-size:13px}
.ap-home-material-samples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ap-home-material-samples figure{margin:0}
.ap-home-material-sample{height:160px;border-radius:14px;background-size:600% 600%;background-repeat:no-repeat;box-shadow:inset 0 0 0 1px #17233c10}
.ap-home-material-sample--stone{background-image:url('../img/home/kitchen-v3-640.webp');background-position:30% 55%}
.ap-home-material-sample--wood{background-image:url('../img/home/washbasin-v3-640.webp');background-position:42% 70%}
.ap-home-material-sample--matte{background-image:url('../img/home/kitchen-v3-640.webp');background-position:80% 70%}
.ap-home-material-samples figcaption{margin-top:9px;text-align:center;font-size:11px;color:var(--ap-muted)}
.ap-home-account-section{display:grid;grid-template-columns:1.3fr 1fr;gap:64px;align-items:center;padding:42px;border:1px solid var(--ap-line);border-radius:20px;background:var(--ap-surface)}
.ap-home-account-section h2{font-size:32px}
.ap-home-account-section>div:first-child>p{max-width:520px;margin-block:14px 18px;color:var(--ap-muted);font-size:13px}
.ap-home-account-benefit{padding:24px;border-radius:14px;background:var(--ap-soft)}
.ap-home-account-benefit>.ap-home-icon{width:28px;height:28px;color:var(--ap-muted);margin-bottom:12px}
.ap-home-account-benefit>p:not(.ap-home-auth-status){margin-bottom:18px;font-size:13px;color:var(--ap-muted)}
.ap-home-auth-status{margin-top:12px!important;color:var(--ap-muted);font-size:11px}
.ap-home-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:30px 40px;border-top:1px solid var(--ap-line)}
.ap-home-footer .ap-home-brand strong{font-size:20px}
.ap-home-footer .ap-home-brand-mark{width:34px;height:34px;border-radius:10px;font-size:22px}
.ap-home-footer p{color:var(--ap-muted);font-size:11px}
.ap-home-footer nav{display:flex;flex-wrap:wrap;gap:20px;font-size:11px;color:var(--ap-muted)}
.ap-home-footer a:hover{color:var(--ap-blue)}
.ap-home-noscript{padding:10px 0 30px;color:var(--ap-muted);font-size:12px}
.ap-home-noscript a{text-decoration:underline}
@media(prefers-reduced-motion:no-preference){.ap-home-ready [data-home-reveal].is-entering{animation:homeContentIn .5s var(--home-ease)}@keyframes homeContentIn{from{opacity:.2;transform:translateY(16px)}to{opacity:1;transform:none}}.ap-home-hero-shot:not([hidden]) picture{animation:homePhotoIn .32s var(--home-ease)}@keyframes homePhotoIn{from{opacity:.6}to{opacity:1}}}
@media(max-width:1240px){.ap-home-header-inner{gap:15px;grid-template-columns:auto 1fr auto}.ap-home-nav{justify-content:center;gap:15px}.ap-home-hero{gap:36px}.ap-home-hero h1{font-size:44px}.ap-home-header-start{display:none}}
@media(max-width:980px){.ap-home-container,.ap-home-header-inner{width:calc(100% - 48px)}.ap-home-header-inner{grid-template-columns:1fr auto;height:72px}.ap-home-nav{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:12px;border:1px solid var(--ap-line);border-radius:14px;background:var(--ap-surface)}.ap-home-ready .ap-home-nav{position:absolute;inset:calc(100% + 8px) 24px auto;display:none}.ap-home-ready .ap-home-nav.is-open{display:grid}.ap-home-nav a{padding:10px;border-radius:8px;text-align:center}.ap-home-nav a:hover{background:var(--ap-soft)}.ap-home-ready .ap-home-header:has(.ap-home-nav:not(.is-open)){height:73px}.ap-home-header-start{display:inline-flex}.ap-home-hero{grid-template-columns:1fr;gap:32px;padding-block:36px}.ap-home-hero-copy{max-width:650px}.ap-home-hero h1{font-size:42px;max-width:620px}.ap-home-hero-media{max-width:740px;width:100%;justify-self:center}.ap-home-section{padding-block:40px}.ap-home-materials,.ap-home-account-section{gap:30px}.ap-home-account-section{padding:30px}.ap-home-account-section h2{font-size:28px}.ap-home-journey{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-home-showroom{gap:18px}.ap-home-feature-list{gap:24px 32px}.ap-home-material-sample{height:135px}}
@media(max-width:640px){.ap-home-container,.ap-home-header-inner{width:calc(100% - 32px)}.ap-home-header-inner{gap:8px}.ap-home-header-actions{gap:5px}.ap-home-brand{gap:8px}.ap-home-brand-mark{width:36px;height:36px;border-radius:11px;font-size:23px}.ap-home-brand strong{font-size:20px}.ap-home-brand small{font-size:9px}.ap-home-header-start{display:none}.ap-home-account{min-width:0}.ap-home-account-link{padding:7px 6px;font-size:11px}.ap-home-account-menu summary{width:40px;padding:8px;justify-content:center}.ap-home-account-menu summary>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ap-home-account-menu summary>.ap-home-icon:last-child{display:none}.ap-home-account-menu .ap-home-account-glyph{display:block}.ap-home-account-dropdown{inset-inline-end:-86px;width:230px}.ap-home-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-home-ready .ap-home-nav{inset-inline:16px}.ap-home-hero{padding-block:30px 18px;gap:26px}.ap-home-eyebrow{margin-bottom:12px!important;font-size:11px}.ap-home-hero h1{font-size:clamp(31px,8vw,41px);letter-spacing:-.5px}.ap-home-lead{margin-top:16px!important;font-size:13px;line-height:1.95}.ap-home-hero-actions{gap:18px;margin-top:22px}.ap-home-btn{min-height:44px;padding:10px 16px;font-size:12px}.ap-home-text-link{font-size:12px}.ap-home-hero-shot picture{border-radius:15px}.ap-home-hero-shot figcaption{font-size:10px;gap:7px}.ap-home-hero-shot figcaption a{font-size:11px;gap:5px}.ap-home-hero-shot figcaption .ap-home-icon{width:16px;height:16px}.ap-home-section{padding-block:30px}.ap-home-section-heading{margin-bottom:20px}.ap-home-section h2{font-size:25px}.ap-home-section-heading p{font-size:12px}.ap-home-demo{padding:13px;border-radius:17px}.ap-home-demo-top{flex-wrap:wrap;gap:9px;margin-bottom:13px}.ap-home-demo-label{font-size:10px}.ap-home-demo-switch button{min-width:66px;padding:6px 10px;font-size:11px}.ap-home-demo-placeholder{min-height:280px;padding:20px}.ap-home-demo-placeholder h3{font-size:20px}.ap-home-demo-placeholder p{font-size:11px}.ap-home-demo-viewer{min-height:280px}.ap-home-demo-note{font-size:9px}.ap-home-feature-list{grid-template-columns:1fr;gap:23px;margin-top:28px}.ap-home-feature-list h3{font-size:15px}.ap-home-feature-list p{font-size:11px}.ap-home-showroom{grid-template-columns:1fr;gap:20px}.ap-home-product--washbasin .ap-home-product-image{aspect-ratio:3/2}.ap-home-product-copy{padding:18px}.ap-home-product-copy h3{font-size:22px}.ap-home-journey{gap:24px 16px;margin-top:22px}.ap-home-journey h3{font-size:13px}.ap-home-journey p{font-size:11px}.ap-home-materials,.ap-home-account-section{grid-template-columns:1fr;gap:24px}.ap-home-materials{padding-block:0}.ap-home-material-sample{height:110px;border-radius:11px}.ap-home-account-section{padding:23px;border-radius:17px}.ap-home-account-section h2{font-size:25px}.ap-home-account-section>div:first-child>p{font-size:12px}.ap-home-account-benefit{padding:20px}.ap-home-footer{flex-wrap:wrap;gap:16px;padding-block:24px 30px}.ap-home-footer p{display:none}.ap-home-footer nav{gap:14px;font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ap-home *{animation:none!important;transition:none!important}}

.ap-home-partner-footer{display:inline-flex;flex-wrap:wrap;gap:20px}

@media(max-width:980px){html:not(.ap-home-ready) .ap-home-header-inner{height:auto;min-height:72px;padding-block:12px}html:not(.ap-home-ready) .ap-home-header{height:auto}}

.ap-home-hero-shot>figure{margin:0}

/* «متاجر مختارة» on the homepage */
.ap-home-stores{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}
.ap-home-store{display:grid;background:var(--ap-surface);border:1px solid var(--ap-line);border-radius:22px;overflow:hidden;text-decoration:none;color:var(--ap-ink);transition:transform .25s var(--home-ease),box-shadow .25s var(--home-ease)}
.ap-home-store:hover,.ap-home-store:focus-visible{transform:translateY(-3px);box-shadow:0 20px 40px rgba(20,33,62,.12)}
.ap-home-store__cover{display:block;height:128px;background:linear-gradient(135deg,var(--store-color),var(--ap-blue-soft))}.ap-home-store__cover img{width:100%;height:100%;object-fit:cover;display:block}
.ap-home-store__body{display:grid;gap:.35rem;padding:0 1.1rem 1.1rem}
.ap-home-store__logo{width:54px;height:54px;margin-top:-27px;border-radius:16px;background:var(--ap-surface);border:3px solid var(--ap-surface);box-shadow:0 6px 16px rgba(20,33,62,.14);display:grid;place-items:center;overflow:hidden;font-weight:800;font-size:1.3rem;color:var(--store-color)}
.ap-home-store__logo img{width:100%;height:100%;object-fit:cover}
.ap-home-store strong{font-size:1.08rem}.ap-home-store__text{color:var(--ap-muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ap-home-store__meta{color:var(--ap-muted);font-size:.86rem}.ap-home-store__go{color:var(--ap-blue);font-weight:700;font-size:.9rem;margin-top:.2rem}
.ap-home-stores__more{display:flex;justify-content:center;margin-top:1.4rem}
.ap-home-stores__all{display:inline-flex;align-items:center;padding:.8rem 1.4rem;border-radius:999px;background:var(--ap-navy);color:#fff;text-decoration:none;font-weight:700}
.ap-home-stores__all:hover,.ap-home-stores__all:focus-visible{background:var(--ap-blue)}
[data-ap-theme="dark"] .ap-home-stores__all{background:var(--ap-blue)}
/* The button text must win over the homepage's general link colours. */
.ap-home-stores__more a.ap-home-stores__all,.ap-home-stores__more a.ap-home-stores__all:visited,.ap-home-stores__more a.ap-home-stores__all:hover{color:#fff}
.ap-home-store,.ap-home-store:visited{color:var(--ap-ink)}
[data-ap-theme="dark"] .ap-home-stores__more a.ap-home-stores__all,[data-ap-theme="dark"] .ap-home-stores__more a.ap-home-stores__all:visited{color:#0d1526}
