@font-face{font-family:Noto Arabic;src:url('./assets/NotoSansArabic-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Noto Arabic;src:url('./assets/NotoSansArabic-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--ink:#251724;--muted:#675565;--plum:#231223;--gold:#ead19b;--paper:#f8f4ef;--line:#ded3cd;--frame:min(1440px,calc(100% - 112px));color:var(--ink);background:var(--paper);font-family:"Noto Arabic",Tahoma,Arial,sans-serif;font-size:16px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;line-height:1.65}
[hidden]{display:none!important}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer}
img{display:block;max-width:100%}
:focus-visible{outline:3px solid #a96c29;outline-offset:4px}
.frame{width:var(--frame);margin-inline:auto}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;z-index:9;background:white;padding:12px;inset:8px auto auto 8px}
.topbar{background:#201020;color:#fff3e1;border-bottom:1px solid #50374a}
.header-inner,.foot{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:73px}
.brand{display:inline-flex;align-items:center;gap:11px;direction:ltr;color:var(--gold)}
.brand img{object-fit:contain;border-radius:5px}
.brand span{font:1.2rem Georgia,serif;letter-spacing:.15em}
.brand small{font:600 .59rem Arial,sans-serif;letter-spacing:.28em;display:block;text-align:center;margin-top:3px}
nav{display:flex;gap:clamp(15px,4vw,42px);font-size:.94rem}
nav a:hover,.foot a:hover{text-decoration:underline;text-underline-offset:5px}
.hero{min-height:460px;display:grid;align-items:center;color:#fff6ea;background:#230f21 url('./assets/hero.webp') 50% 54%/cover no-repeat;position:relative;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,#221021 0%,#221021ed 26%,#22102180 51%,transparent 77%)}
.hero-content{padding-block:64px 74px}
.wordmark{color:var(--gold);font:600 .88rem Arial,sans-serif;letter-spacing:.24em;margin:0 0 16px;text-align:right}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(3rem,7vw,6rem);letter-spacing:-.065em;line-height:1.17;margin-bottom:25px}
.hero p:not(.wordmark){max-width:390px;color:#f6e9e7;line-height:1.95;margin-bottom:27px}
.cta,.outline{padding:10px 22px;border-radius:6px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.cta{background:var(--gold);color:#261822}
.cta:hover{background:#fae3b4}
.catalog{padding-block:50px 74px;scroll-margin-top:12px}
.section-title{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;border-bottom:1px solid var(--line);padding-bottom:21px;margin-bottom:23px}
.section-title h2{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.3;margin-bottom:5px}
#result-count{margin:0;color:var(--muted);font-size:.95rem}
.controls{display:flex;gap:9px}
.search,.sort{display:flex;align-items:center;background:white;border:1px solid var(--line);border-radius:6px;min-height:47px;color:var(--muted)}
.search{gap:8px;padding-inline:12px}
.search input,.sort select{background:transparent;color:var(--ink);border:0;height:100%;min-height:45px}
.search input{width:clamp(126px,16vw,235px)}
.sort{position:relative}
.sort::after{content:"";position:absolute;left:13px;width:7px;height:7px;border:solid var(--ink);border-width:0 0 1px 1px;transform:rotate(-45deg);pointer-events:none;margin-top:-4px}
.sort select{appearance:none;padding-inline:12px 30px;cursor:pointer}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.card{min-width:0;background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.photo{display:block;width:100%;background:#231222;padding:0;border:0;overflow:hidden}
.photo:focus-visible{outline-offset:-4px}
.photo img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;transition:transform .24s ease}
.photo img[src$="-ibraq.webp"],.photo img[src$="-afnan.webp"]{object-fit:contain}
.photo:hover img{transform:scale(1.025)}
.card-meta{padding:12px 14px 15px}
h3{font-size:1rem;line-height:1.6;margin:0 0 4px;text-align:start;overflow-wrap:anywhere}
.price{color:#6d3445;font-weight:700;margin:0}
.outline{background:transparent;border:1px solid #a98e95;color:var(--plum)}
.outline:hover{background:#efe3e7}
.more{display:flex;margin:32px auto 0}
.empty{padding:38px 0;text-align:center}
footer{background:#211121;color:#f9eddc}
.foot span{font:1.15rem Georgia,serif;color:var(--gold)}
.foot a{font-size:.9rem}
dialog{border:1px solid var(--line);border-radius:12px;padding:0;background:var(--paper);color:var(--ink);width:min(760px,calc(100% - 28px));max-height:calc(100dvh - 30px)}
dialog::backdrop{background:#1c1020ce}
.detail-layout{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center}
.detail-layout img{width:100%;height:auto}
.detail-meta{padding:26px}
.detail-meta h2{line-height:1.4;margin-bottom:12px}
.detail-meta .price{margin-bottom:20px}
.close{position:absolute;left:13px;top:13px;border-radius:50%;width:41px;height:41px;border:1px solid var(--line);background:white;color:var(--ink);font:1.7rem Arial}
@media(max-width:1000px){:root{--frame:calc(100% - 60px)}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(max-width:670px){:root{--frame:calc(100% - 30px)}.header-inner{min-height:65px}.brand img{width:39px;height:38px}.brand{gap:6px}.brand span{font-size:1rem}nav{gap:13px}.hero{min-height:431px;background-position:39% center}.hero::before{background:linear-gradient(270deg,#221021f5 1%,#221021ad 56%,#22102130 100%)}.hero-content{padding-block:83px 67px}.hero p:not(.wordmark){max-width:245px}.catalog{padding-block:33px 50px}.section-title{display:block}.controls{margin-top:13px}.search{flex:1;min-width:0}.search input{width:100%;min-width:0}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.card-meta{padding:9px}.detail-layout{display:block}.detail-layout img{width:auto;height:min(54dvh,500px);margin:auto}.detail-meta{padding:15px 20px 21px}.foot{min-height:67px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.purchase-actions{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:6px;margin-top:8px}
.order-trigger,.buy-trigger{min-height:44px;padding:5px 7px;border:1px solid #886170;border-radius:6px;background:#fff;color:var(--plum);font-weight:700;line-height:1.35;text-wrap:balance}
.buy-trigger{background:var(--plum);color:#fff4e1;border-color:var(--plum)}
.buy-trigger:hover{background:#442743}
.order-trigger:hover{background:#f3e6ea}
.order-layout .cta{border:0}
#order{max-width:500px}
.order-layout{position:relative;padding:26px}
.order-layout h2{line-height:1.4;margin:0 0 14px;padding-inline-end:54px}
.order-summary{background:#f0e6e8;border-radius:7px;padding:10px 13px;margin-bottom:14px}
.order-summary p{margin:0;overflow-wrap:anywhere}
#order-name{font-weight:700}
#order-form label{display:block;margin:10px 0 3px;font-size:.95rem;font-weight:700}
#order-form input:not([type="hidden"]),#order-form textarea{width:100%;padding:8px 11px;border:1px solid #b8a5b0;border-radius:6px;background:white;color:var(--ink);min-height:43px}
#order-form textarea{resize:vertical}
.order-note{margin:10px 0 15px;color:var(--muted);font-size:.88rem}
#order-form .cta{width:100%;background:var(--plum);color:#fff4e1}
#order-form .cta:hover{background:#442743}
#order-form .cta:disabled{opacity:.65;cursor:wait}
.confirmation{margin-block:12vh;max-width:540px;background:white;border:1px solid var(--line);border-radius:12px;padding:30px}
.confirmation img{border-radius:8px;margin-bottom:22px}
.confirmation h1{font-size:2rem;letter-spacing:normal;line-height:1.35;margin-bottom:14px}
.order-feedback{background:#fff5ed;border:1px solid #e5c6b3;border-radius:7px;padding:10px 13px;margin:0 0 12px;color:#723725;font-size:.9rem}
.order-feedback p{margin:0 0 3px}
.order-feedback a{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.order-success{background:#edf6ee;border:1px solid #b9d5c0;border-radius:8px;padding:16px;color:#23472f}
.order-success h3{font-size:1.2rem}
.order-success p{margin:7px 0 12px}
.order-success .cta{margin-top:3px}
.order-submit.is-sending{gap:9px}
.order-submit.is-sending::before{content:"";width:14px;height:14px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:order-spin .8s linear infinite}
@keyframes order-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.order-submit.is-sending::before{animation:none}}
.order-costs{margin:7px 0 0}
.order-costs>div{display:flex;justify-content:space-between;gap:8px}
.order-costs dd{margin:0;font-weight:700;white-space:nowrap}
.order-costs .order-total-row{margin-top:5px;padding-top:5px;border-top:1px solid #d5c2c9;color:#6d3445;font-weight:700}
.topbar{position:sticky;top:0;z-index:2}
.header-inner nav{align-items:center}
.cart-button{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:5px 10px;border:1px solid #8d637b;border-radius:6px;background:#382338;color:#fff3e1;font-weight:700;white-space:nowrap}
.cart-button:hover{background:#53364f}
.cart-button svg{flex:none;color:var(--gold)}
#cart-count{min-width:1.3em;text-align:center;border-radius:20px;background:#ead19b;color:#211121;padding-inline:4px;font-size:.82rem}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("./assets/NotoKufiArabic-Offers.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
.offers {
  background: #301e2d;
  color: #fbf1e1;
  border-block: 1px solid #604855;
}
.offers-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  width: min(680px, calc(100% - 16px));
  padding-block: 10px;
}
.offers p {
  display: grid;
  justify-items: center;
  row-gap: 2px;
  margin: 0;
  padding-inline: 3px;
  text-align: center;
}
.offers p + p { border-inline-start: 1px solid #765c65; }
.offers strong {
  font-family: "Noto Kufi Arabic", "Noto Arabic", Tahoma, sans-serif;
  font-size: clamp(.8125rem, 3.6vw, 1rem);
  line-height: 1.6;
}
.offers span {
  color: #e5cfd5;
  font-size: .8125rem;
  line-height: 1.4;
}
.offers p:last-child strong { color: var(--gold); }
.cart-notice{position:fixed;z-index:3;bottom:20px;inset-inline:16px;width:max-content;max-width:calc(100% - 32px);margin-inline:auto;background:#382338;color:white;border-radius:8px;padding:9px 17px;box-shadow:0 5px 20px #26182245}
.cart-items{margin:0 0 14px;padding:0;list-style:none}
.cart-item{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:start;gap:10px;border-bottom:1px solid var(--line);padding-block:10px}
.cart-item img{border-radius:5px}
.cart-item h3,.cart-unit{margin:0 0 4px}
.cart-unit{font-size:.87rem;color:var(--muted)}
.cart-line-price{font-size:.9rem;white-space:nowrap}
.cart-quantity{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.cart-quantity button{min-width:37px;min-height:37px;border:1px solid #b8a5b0;background:white;color:var(--ink);border-radius:5px;padding:0 6px}
.cart-quantity button:hover{background:#efe3e7}
.cart-quantity button:disabled{opacity:.47;cursor:default}
.cart-item-count{min-width:1.8em;text-align:center}
.cart-quantity .cart-remove{font-size:.82rem;border-color:transparent;color:#722f44;background:transparent}
.cart-offer{font-weight:700;color:#345841}
.cart-empty{margin:0;padding-block:10px 20px;color:var(--muted)}
.catalog{scroll-margin-top:94px}
@media(max-width:680px){.header-inner nav>a:last-of-type{display:none}.cart-button{gap:5px;padding-inline:8px}.cart-button svg{width:16px;height:16px}.order-trigger,.buy-trigger{padding-inline:4px;font-size:.82rem}.order-layout{padding:20px 16px}}

.brand-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px 20px;padding:0 0 24px;border-bottom:1px solid var(--line)}
.brand-picker{display:grid;gap:5px;font-weight:700}
.brand-picker select{min-width:min(240px,100%);min-height:46px;padding:5px 12px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink)}
.brand-shortcuts{display:flex;flex-wrap:wrap;gap:7px}
.brand-shortcuts button{min-height:44px;padding:5px 15px;border:1px solid #d1bbb7;border-radius:24px;background:#fff;color:var(--plum);font-weight:700}
.brand-shortcuts button:hover{background:#f3e9e8}
.brand-shortcuts button[aria-pressed=true]{border-color:var(--plum);background:var(--plum);color:#fff3e1}
.brand-section{padding-block:24px 32px;border-bottom:1px solid var(--line)}
.brand-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}
.brand-heading h3{font-size:clamp(1.3rem,2.8vw,1.9rem);margin:0}
.brand-heading span{font-size:.9rem;color:var(--muted);white-space:nowrap}
.card-meta h4{font-size:1rem;line-height:1.6;margin:0 0 4px;overflow-wrap:anywhere}
.brand-section .more{margin-top:18px}
#products>.grid{margin-top:24px}
@media (max-width: 380px) {
  .header-inner { gap: 8px; }
  .header-inner nav { gap: 8px; }
  .cart-button { padding-inline: 6px; }
}
@media(max-width:480px){.controls{flex-wrap:wrap}.controls .search{flex:1 0 100%}.brand-picker{width:100%}.brand-picker select{width:100%}.brand-shortcuts button{padding-inline:12px}}

.hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.install-button{color:#fff6ea;border-color:#ead19b}
.install-button:hover{background:#fff6ea;color:var(--plum)}
#app-install-guide{width:min(440px,calc(100% - 28px))}
#app-install-guide form{padding:24px}
#app-install-guide .app-download{width:100%;text-align:center}
#app-install-guide .iphone-install{margin-top:20px}
#app-install-guide .outline{display:flex;margin-inline-start:auto}

.price{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.65rem;row-gap:.1rem}
.price strong,.previous-price{white-space:nowrap}
.previous-price{color:var(--muted);font-size:.875rem;font-weight:400}
.photo img.photo-with-price-footer,.detail-layout img.photo-with-price-footer{aspect-ratio:810/760;object-fit:cover;object-position:top}
.cart-item img.photo-with-price-footer{height:auto;aspect-ratio:810/760;object-fit:cover;object-position:top}
@media(max-width:670px){
  .detail-layout img.photo-with-price-footer{width:min(100%,56dvh);height:auto}
}
.price-saving{padding-inline:.45rem;border-radius:4px;background:#eaf2e9;color:#275138;font-size:.8125rem;white-space:nowrap}
