@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800;900&display=swap");

:root{--navy:#0b2347;--gold:#d9a52e;--ink:#172b28;--muted:#66756f;--line:#e7e9e5;--cream:#f7f7f2;--card:#fff;--shadow:0 18px 50px rgba(11,35,71,.10)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.65 Inter,system-ui,Arial,sans-serif}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button,a,select{-webkit-tap-highlight-color:transparent}
.wrap{width:min(1160px,calc(100% - 36px));margin-inline:auto}
.topbar{background:var(--navy);color:#fff;padding:9px 0;font-size:12px}
.topbar .wrap{display:flex;justify-content:space-between;gap:14px;align-items:center}
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.site-nav{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;min-width:0}
.brand img{display:block;width:218px;max-height:70px;object-fit:contain;object-position:start center}
.header-tools{display:flex;align-items:center;gap:10px}
.language-select{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:10px;padding:9px 34px 9px 12px;font-size:13px;font-weight:750;min-width:122px;cursor:pointer}
.menu-toggle{width:44px;height:44px;display:grid;align-content:center;justify-items:center;gap:5px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}
.menu-toggle span{display:block;width:19px;height:2px;border-radius:2px;background:var(--navy);transition:transform .2s,opacity .2s}
.menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(7px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-7px) rotate(-45deg)}
.drawer-backdrop{position:fixed;inset:0;background:rgba(4,15,34,.45);z-index:40;opacity:0;visibility:hidden;transition:opacity .22s,visibility .22s}
.drawer-backdrop.open{opacity:1;visibility:visible}
.site-drawer{position:fixed;z-index:41;inset-block:0;inset-inline-end:0;width:min(390px,88vw);background:#fff;box-shadow:var(--shadow);padding:22px;overflow:auto;transform:translateX(110%);transition:transform .24s ease}
html[dir="ltr"] .site-drawer{transform:translateX(110%)}
html[dir="rtl"] .site-drawer{transform:translateX(-110%)}
.site-drawer.open{transform:translateX(0)}
.drawer-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.drawer-head img{width:178px;max-height:62px;object-fit:contain;object-position:start}
.drawer-close{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:10px;font-size:24px;cursor:pointer;line-height:1}
.drawer-section{padding:18px 0 5px}
.drawer-label{display:block;margin:0 0 8px;color:#9a7b35;font-size:10px;font-weight:850;letter-spacing:1px;text-transform:uppercase}
.drawer-links{display:grid;gap:4px}
.drawer-links a{padding:10px 11px;border-radius:10px;font-size:14px;font-weight:650}
.drawer-links a:hover{background:#f4f5f0;color:var(--navy)}
.drawer-links .drawer-primary{background:var(--navy);color:#fff}
body.drawer-open{overflow:hidden}
.page-main{min-height:62vh}
.page-hero{padding:52px 0 32px;background:linear-gradient(120deg,#edf1e8,#fff 62%,#f4eddc);border-bottom:1px solid var(--line)}
.breadcrumb{font-size:12px;color:var(--muted);margin-bottom:12px}
.page-hero h1{font-size:clamp(32px,5vw,48px);line-height:1.15;letter-spacing:-1.3px;margin:0 0 12px;color:var(--navy)}
.page-hero p{margin:0;max-width:780px;color:var(--muted);font-size:15px}
.page-content{padding:34px 0 64px}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}
.content-main{display:grid;gap:16px;min-width:0}
.content-aside{position:sticky;top:108px}
.content-card,.aside-card,.form-card,.auth-card,.admin-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 8px 26px rgba(11,35,71,.035)}
.content-card h2{font-size:20px;margin:0 0 10px;color:var(--navy)}
.content-card h3{font-size:15px;margin:18px 0 7px;color:var(--ink)}
.content-card p{margin:8px 0;color:#46564f}
.content-card ul,.content-card ol{padding-inline-start:22px;margin:10px 0;color:#46564f}
.content-card li{margin:7px 0}
.notice{border:1px solid #ead9a8;background:#fff9e9;color:#5d4b1a;border-radius:14px;padding:17px 19px;font-size:13px}
.notice strong{display:block;margin-bottom:5px}
.notice.info{border-color:#d4e2f3;background:#f1f7ff;color:#24456b}
.notice.danger{border-color:#efcbc5;background:#fff5f3;color:#7b3028}
.small-note{font-size:12px;color:var(--muted)}
.page-links{display:grid;gap:8px}
.page-links a{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:10px;background:#f7f8f5;font-size:13px;font-weight:700}
.page-links a:hover{background:#edf1e8}
.site-footer{background:#071a35;color:#fff;padding:34px 0 22px}
.footer-grid{display:grid;grid-template-columns:1.05fr 1fr 1.2fr 1.05fr;gap:24px}
.footer-brand{width:185px;max-height:65px;object-fit:contain;object-position:start}
.site-footer p{color:#c4cedc;font-size:12px;margin:10px 0}
.site-footer h3{font-size:12px;color:#e4c36f;margin:0 0 11px}
.footer-links{display:grid;gap:8px}
.footer-links a{font-size:12px;color:#d5deeb}
.footer-links a:hover{color:#fff;text-decoration:underline}
.footer-bottom{border-top:1px solid #263750;margin-top:24px;padding-top:14px;color:#b8c4d4;font-size:11px;display:flex;justify-content:space-between;gap:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--navy);color:#fff;padding:12px 18px;border:0;border-radius:11px;font-weight:800;font-size:13px;cursor:pointer}
.btn.alt{background:#fff;color:var(--navy);border:1px solid var(--line)}
.btn.gold{background:var(--gold);color:#211a0a}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-field{display:grid;gap:6px}
.form-field.full{grid-column:1/-1}
.form-field label{font-size:12px;font-weight:800;color:var(--navy)}
.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #d9ded8;background:#fff;border-radius:10px;padding:12px 13px;outline:none;color:var(--ink);min-width:0}
.form-field textarea{min-height:120px;resize:vertical}
.form-field input:focus,.form-field textarea:focus,.form-field select:focus{border-color:#7593b9;box-shadow:0 0 0 3px rgba(11,35,71,.08)}
.form-message{display:none;padding:12px 14px;border-radius:10px;background:#f2f7ed;color:#335b31;font-size:13px;margin-top:12px}
.form-message.show{display:block}
.auth-shell{min-height:calc(100vh - 210px);padding:48px 0 64px;background:radial-gradient(circle at 12% 15%,#f2e6c6,transparent 32%),radial-gradient(circle at 88% 72%,#e4eee3,transparent 35%),var(--cream)}
.auth-layout{max-width:980px;margin:auto;display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:20px}
.auth-aside{background:linear-gradient(145deg,#0b2347,#183f70);color:white;border-radius:22px;padding:35px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.auth-aside:after{content:"";position:absolute;width:240px;height:240px;border:1px solid #ffffff30;border-radius:50%;inset-inline-end:-85px;bottom:-95px;box-shadow:0 0 0 30px #ffffff08,0 0 0 60px #ffffff05}
.auth-aside h1{font-size:36px;line-height:1.2;margin:22px 0 10px;position:relative;z-index:1}
.auth-aside p{color:#d6e1f0;font-size:14px;position:relative;z-index:1}
.auth-aside img{width:190px;max-height:74px;object-fit:contain;object-position:start}
.auth-card{padding:30px;animation:card-in .55s ease both}
@keyframes card-in{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
.auth-card h2{margin:0 0 6px;color:var(--navy);font-size:25px}
.auth-tabs{display:flex;gap:6px;background:#f1f3ef;padding:4px;border-radius:11px;margin:18px 0}
.auth-tabs button{flex:1;border:0;background:transparent;padding:10px;border-radius:8px;font-size:12px;font-weight:800;color:var(--muted);cursor:pointer}
.auth-tabs button.active{background:#fff;color:var(--navy);box-shadow:0 2px 8px #0b234710}
.auth-panel[hidden]{display:none}
.auth-links{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin:12px 0}
.admin-shell{background:#f3f5f8;padding:26px 0 55px}
.admin-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px}
.admin-sidebar{background:#0b2347;color:#fff;border-radius:18px;padding:18px;height:max-content}
.admin-sidebar h2{font-size:15px;margin:0 0 15px}
.admin-tabs{display:grid;gap:5px}
.admin-tabs button{border:0;background:transparent;color:#d5deeb;text-align:start;padding:10px;border-radius:9px;font-size:12px;cursor:pointer}
.admin-tabs button.active,.admin-tabs button:hover{background:#ffffff1a;color:#fff}
.admin-main{min-width:0}
.admin-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}
.admin-top h1{margin:0;font-size:25px;color:var(--navy)}
.admin-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}
.kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px}
.kpi small{display:block;color:var(--muted);font-size:11px}
.kpi strong{display:block;font-size:23px;color:var(--navy);margin-top:7px}
.admin-table{width:100%;border-collapse:collapse;font-size:12px}
.admin-table th,.admin-table td{text-align:start;padding:11px 9px;border-bottom:1px solid var(--line)}
.admin-table th{color:var(--muted);font-size:10px}
.admin-panel[hidden]{display:none}
.pill{display:inline-block;border-radius:20px;padding:4px 8px;background:#fff3d9;color:#785517;font-size:10px;font-weight:800}
[dir="rtl"] .admin-table th,[dir="rtl"] .admin-table td{text-align:right}
html[data-site-language="ar"] body,html[dir="rtl"] body{font-family:"Tajawal",Tahoma,"Noto Sans Arabic",Arial,sans-serif}
html[data-site-language="ar"] .page-hero h1{letter-spacing:0}
html[data-site-language="ar"] .eyebrow{letter-spacing:0}
[data-en]{display:none!important}
html[data-site-language="en"] [data-ar]{display:none!important}
html[data-site-language="en"] [data-en]{display:inline!important}
html[data-site-language="ar"] [data-en]{display:none!important}
html[data-site-language="ar"] [data-ar]{display:inline!important}
@media(max-width:820px){
  .content-grid{grid-template-columns:1fr}
  .content-aside{position:static}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-grid>div:first-child{grid-column:1/-1}
  .admin-kpis{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .wrap{width:min(100% - 28px,1160px)}
  .topbar .wrap{justify-content:center;text-align:center;flex-wrap:wrap;gap:1px 12px}
  .site-nav{min-height:68px;gap:9px}
  .brand img{width:160px;max-height:58px}
  .language-select{min-width:106px;padding:8px 28px 8px 9px;font-size:12px}
  .menu-toggle{width:41px;height:41px}
  .site-drawer{padding:18px}
  .page-hero{padding:36px 0 24px}
  .page-hero h1{font-size:34px}
  .page-content{padding:23px 0 45px}
  .content-card,.aside-card,.form-card{padding:18px}
  .form-grid{grid-template-columns:1fr}
  .form-field.full{grid-column:auto}
  .footer-grid{grid-template-columns:1fr 1fr;gap:22px}
  .footer-bottom{display:block}
  .footer-bottom span{display:block;margin-top:5px}
  .auth-layout{grid-template-columns:1fr}
  .auth-aside{padding:25px;min-height:210px}
  .auth-aside h1{font-size:29px}
  .auth-card{padding:22px}
  .admin-layout{grid-template-columns:1fr}
  .admin-sidebar{padding:14px}
  .admin-tabs{display:flex;overflow-x:auto}
  .admin-tabs button{white-space:nowrap}
  .admin-top{align-items:flex-start;flex-direction:column}
  .admin-kpis{gap:8px}
  .kpi{padding:13px}
  .kpi strong{font-size:20px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Layout refinements */
.site-drawer{right:0;left:auto}
html[dir="rtl"] .site-drawer,html[dir="ltr"] .site-drawer{transform:translateX(110%)}
.site-drawer.open{transform:translateX(0)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Fix drawer visibility across Arabic RTL and English LTR */
.site-drawer{
  z-index:1001;
  visibility:hidden;
  pointer-events:none;
  right:0;
  left:auto;
  transform:translateX(110%);
}
html[dir="rtl"] .site-drawer,
html[dir="ltr"] .site-drawer{
  right:0;
  left:auto;
  transform:translateX(110%);
}
html[dir="rtl"] .site-drawer.open,
html[dir="ltr"] .site-drawer.open,
.site-drawer.open{
  transform:translateX(0);
  visibility:visible;
  pointer-events:auto;
}
.drawer-backdrop{z-index:1000}

/* Compact six-link hamburger; detailed help and policy links stay in footer */
.site-drawer{width:min(330px,86vw);padding:20px}
.drawer-section{padding:12px 0 0}
.drawer-label{font-size:10px;margin:0 0 10px}
.drawer-links{gap:3px}
.drawer-links a{display:flex;align-items:center;justify-content:space-between;padding:13px 12px;border-bottom:1px solid #edf0ed;border-radius:9px;font-size:14px}
.drawer-links a.drawer-primary{margin-top:7px;border-bottom:0}
.footer-grid{align-items:start}
.footer-brand-block{max-width:230px}
.site-footer .footer-links a{line-height:1.5}
@media(max-width:820px){
 .footer-grid{grid-template-columns:1fr 1fr}
 .footer-grid>div:first-child{grid-column:1/-1;max-width:none}
}
@media(max-width:620px){
 .footer-grid{grid-template-columns:1fr 1fr;gap:20px 14px}
 .footer-grid>div:first-child{grid-column:1/-1}
 .footer-links{gap:7px}
 .footer-links a{font-size:11px}
}

/* Retail-only default: hide wholesale UI unless the central store flag is enabled */
html:not([data-wholesale-enabled="true"]) [data-feature="wholesale"],
html[data-wholesale-enabled="false"] [data-feature="wholesale"]{display:none!important}
body[data-wholesale-page="true"]:not([data-wholesale-visible="true"]) .page-main{display:none!important}
.status-off{display:inline-flex;border-radius:20px;padding:5px 10px;background:#f0f1f2;color:#4c5661;font-size:11px;font-weight:800}
.status-on{display:inline-flex;border-radius:20px;padding:5px 10px;background:#e6f5e9;color:#23633a;font-size:11px;font-weight:800}

/* Hide every wholesale URL link in retail-only mode, including legacy page markup */
html:not([data-wholesale-enabled="true"]) a[href="/wholesale.html"],
html[data-wholesale-enabled="false"] a[href="/wholesale.html"]{display:none!important}

/* Keep Sign in / Sign up pinned at the bottom of the hamburger drawer */
.site-drawer{
  display:flex;
  flex-direction:column;
  height:100vh;
  height:100dvh;
  box-sizing:border-box;
  overflow-y:auto;
}
.site-drawer .drawer-section{flex:0 0 auto}
.site-drawer .drawer-actions{
  margin-top:auto;
  padding-top:20px;
  padding-bottom:max(8px, env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
  background:#fff;
}
.site-drawer .drawer-actions .drawer-primary{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:50px;
  padding:13px 16px;
  border:0;
  border-radius:12px;
  background:var(--navy);
  color:#fff;
  font-size:14px;
  font-weight:800;
  text-align:center;
}
.site-drawer .drawer-actions .drawer-primary:hover{
  background:#173c6b;
  color:#fff;
}

/* QABBOOD desktop header: centered icon navigation, language switch then account action */
.desktop-nav{display:none}
.desktop-signin{display:none}
@media (min-width:821px){
  .site-nav{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    min-height:88px;
    gap:clamp(10px,1.2vw,20px);
  }
  .brand{justify-self:start;flex:0 0 auto}
  .brand img{width:clamp(155px,16vw,220px);max-height:72px}
  .desktop-nav{
    display:flex;
    align-items:center;
    justify-self:center;
    justify-content:center;
    gap:clamp(8px,1.1vw,17px);
    white-space:nowrap;
    margin:0;
  }
  .desktop-nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:9px 2px;
    color:var(--navy);
    font-size:clamp(11px,.95vw,13px);
    font-weight:800;
    line-height:1.2;
    transition:color .18s ease;
  }
  .desktop-nav a svg,.desktop-signin svg{
    width:17px;height:17px;flex:0 0 17px;
    fill:none;stroke:currentColor;stroke-width:1.8;
    stroke-linecap:round;stroke-linejoin:round;
  }
  .desktop-nav a:hover{color:#b48625}
  .header-tools{
    justify-self:end;
    display:flex;
    align-items:center;
    flex:0 0 auto;
    gap:9px;
  }
  .desktop-signin{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:42px;
    padding:10px 13px;
    border-radius:11px;
    background:var(--navy);
    color:#fff;
    white-space:nowrap;
    font-size:12px;
    font-weight:800;
    box-shadow:0 5px 14px rgba(11,35,71,.12);
    transition:background .18s ease;
  }
  .desktop-signin:hover{background:#173c6b;color:#fff}
  .menu-toggle{display:none!important}
}
@media (max-width:820px){
  .desktop-nav,.desktop-signin{display:none!important}
  .menu-toggle{display:grid!important}
}
@media (min-width:821px) and (max-width:1050px){
  .site-nav{gap:8px}
  .brand img{width:150px}
  .desktop-nav{gap:7px}
  .desktop-nav a{font-size:11px;gap:4px}
  .desktop-nav a svg,.desktop-signin svg{width:15px;height:15px;flex-basis:15px}
  .header-tools{gap:7px}
  .language-select{min-width:96px;font-size:11px}
  .desktop-signin{font-size:11px;padding:9px 10px}
}
@media (prefers-reduced-motion:reduce){
  .desktop-nav a,.desktop-signin{transition:none}
}


/* Footer maintenance credit */
.footer-maintained{color:#c4cedc;font-size:11px;white-space:nowrap}
.footer-maintained a{color:#e4c36f;font-weight:800;text-decoration:underline;text-decoration-color:#e4c36f80;text-underline-offset:3px}
.footer-maintained a:hover{color:#fff;text-decoration-color:#fff}
@media(max-width:820px){.footer-maintained{white-space:normal}}


/* Compact EN / AR picker and colourful header commerce shortcuts */
.language-select{width:55px;min-width:55px;max-width:55px;padding:7px 17px 7px 6px;font-size:10px;text-align:center}
.header-quick-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.header-quick-link{position:relative;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#fff}
.header-quick-link svg{width:19px;height:19px;fill:none;stroke:var(--navy);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.wishlist-quick svg{stroke:#d35b75}.cart-quick svg{stroke:#2f8b74}
.quick-count{position:absolute;top:-6px;inset-inline-end:-6px;min-width:16px;height:16px;padding:0 4px;border-radius:10px;background:var(--gold);color:#211a0a;font-size:9px;font-weight:900;line-height:16px;text-align:center}
@media(min-width:821px){
 .desktop-nav a{gap:7px;padding:10px;border-radius:12px;background:linear-gradient(145deg,#fff,#f7f8f5)}
 .desktop-nav a svg{width:20px;height:20px;flex:0 0 20px;stroke-width:2.1}
 .desktop-nav a:nth-child(1) svg{stroke:#3474b7}.desktop-nav a:nth-child(2) svg{stroke:#2d947a}.desktop-nav a:nth-child(3) svg{stroke:#c28c28}.desktop-nav a:nth-child(4) svg{stroke:#ce6b75}.desktop-nav a:nth-child(5) svg{stroke:#8068b6}
 .desktop-nav a:hover{background:#f2f5ef}.language-select{width:52px;min-width:52px;max-width:52px}
}
@media(max-width:820px){.header-quick-actions{gap:4px}.header-quick-link{width:30px;height:30px;border-radius:9px}.header-quick-link svg{width:17px;height:17px}.language-select{width:48px;min-width:48px;max-width:48px;padding:6px 15px 6px 5px;font-size:10px}}
@media(max-width:380px){.brand img{width:125px}.header-tools{gap:5px}.header-quick-link{width:27px;height:27px}.language-select{width:44px;min-width:44px;max-width:44px}}

/* Product cards and purchase actions */
.shop-products,.commerce-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.product-card{position:relative;display:flex;flex-direction:column;min-width:0}
.product-image{height:155px;position:relative;display:grid;place-items:center;background:#f2f3ec;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:contain;padding:16px}
.product-emoji{font-size:60px;line-height:1}
.wishlist-toggle{position:absolute;top:10px;inset-inline-end:10px;width:36px;height:36px;display:grid;place-items:center;border:1px solid #e5e7e2;border-radius:50%;background:#fff;color:#b0b7b3;cursor:pointer;box-shadow:0 3px 12px #172b2810}
.wishlist-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wishlist-toggle.is-active{color:#d84e70;background:#fff5f7;border-color:#f4c5d0}.wishlist-toggle.is-active svg{fill:#d84e70}
.product-description{min-height:34px;margin:5px 0 8px;color:var(--muted);font-size:11px;line-height:1.45}
.product-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.stock-label{font-size:10px;color:#3b8068;font-weight:750}
.product-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}
.product-actions .btn{min-width:0;padding:10px 7px;font-size:11px;white-space:nowrap}
.product-actions .btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.product-add{display:flex;gap:5px;background:#0b2347}.product-buy{display:flex;gap:5px}
.product-actions button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){.shop-products,.commerce-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-image{height:130px}.product-emoji{font-size:54px}}
@media(max-width:420px){.product-actions{grid-template-columns:1fr}.product-image{height:112px}.product-description{min-height:0}}

/* Cart, wishlist and checkout demo */
.empty-state{text-align:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:36px 20px}
.empty-icon{display:block;font-size:42px;color:#c18d32}.empty-state h2{margin:10px 0 6px;color:var(--navy)}.empty-state p{color:var(--muted);font-size:13px;margin:0 0 18px}
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.cart-items{display:grid;gap:10px}
.cart-row{display:grid;grid-template-columns:76px minmax(0,1fr) auto auto auto;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px}
.cart-thumb{width:76px;height:76px;display:grid;place-items:center;background:#f2f3ec;border-radius:11px;font-size:34px;overflow:hidden}.cart-thumb img{width:100%;height:100%;object-fit:contain;padding:8px}
.cart-product-info h3{font-size:13px;margin:0 0 5px}.cart-product-info .price{font-size:12px}
.qty-control{display:flex;align-items:center;gap:8px}.qty-control button{width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);font-weight:900}
.cart-line-total{font-size:12px;color:var(--navy)}.text-action{border:0;background:none;color:#748078;font-size:11px;font-weight:750;text-decoration:underline;cursor:pointer}.text-action.danger{color:#ba4357}
.cart-summary{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;position:sticky;top:110px}
.cart-summary h2,.checkout-summary h2{font-size:17px;color:var(--navy);margin:0 0 14px}
.summary-line{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid #edf0ed;font-size:12px}
.summary-line strong{white-space:nowrap;color:var(--navy)}.summary-line.total{font-size:14px;font-weight:850;border-bottom:0;margin-top:5px}
.checkout-btn{display:flex;margin-top:15px;text-align:center}.small-note{font-size:11px;color:var(--muted)}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,360px);gap:18px;align-items:start}
.checkout-form{display:grid;gap:14px}.checkout-form .btn{justify-self:start}.checkout-summary{position:sticky;top:110px}
.order-success{max-width:620px;margin:auto;text-align:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px}
.order-success h1{color:var(--navy);font-size:26px}.order-success p{font-size:13px;color:var(--muted)}
.success-mark{width:58px;height:58px;margin:0 auto 15px;border-radius:50%;display:grid;place-items:center;background:#e7f4ed;color:#27805b;font-size:30px;font-weight:900}
@media(max-width:760px){.cart-layout,.checkout-layout{grid-template-columns:1fr}.cart-summary,.checkout-summary{position:static}}
@media(max-width:560px){.cart-row{grid-template-columns:60px minmax(0,1fr) auto;gap:9px}.cart-thumb{width:60px;height:60px}.cart-line-total{grid-column:2}.cart-row .text-action{grid-column:3;grid-row:2}.qty-control{grid-column:3;grid-row:1}.order-success{padding:22px 16px}}

/* Demo product editor in Admin */
.product-admin-form{margin-top:18px;padding:18px;background:#f8f9f6;border:1px solid var(--line);border-radius:15px}
.product-admin-form h3,.admin-product-list-head h3{margin:0 0 13px;color:var(--navy);font-size:16px}
.product-form-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.admin-product-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 10px}
.admin-product-list{display:grid;gap:8px}
.admin-product-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px}
.admin-product-thumb{width:48px;height:48px;display:grid;place-items:center;background:#f1f3ed;border-radius:9px;overflow:hidden;font-size:23px}
.admin-product-thumb img{width:100%;height:100%;object-fit:contain;padding:5px}
.admin-product-copy{min-width:0;display:grid;gap:3px}.admin-product-copy strong{font-size:12px;overflow-wrap:anywhere}.admin-product-copy small{font-size:10px;color:var(--muted)}
.admin-product-buttons{display:flex;align-items:center;gap:6px}.admin-product-buttons .btn{padding:7px 10px;font-size:10px}
@media(max-width:560px){.admin-product-row{grid-template-columns:42px minmax(0,1fr)}.admin-product-thumb{width:42px;height:42px}.admin-product-buttons{grid-column:1/-1;justify-content:flex-end}}


/* Clear, larger, transparent language picker */
.language-select{
  appearance:none;
  -webkit-appearance:none;
  width:86px;
  min-width:86px;
  max-width:86px;
  min-height:44px;
  padding:9px 23px 9px 8px;
  border:1px solid transparent;
  border-radius:12px;
  background-color:transparent;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b2347' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 7px center;
  background-size:13px 13px;
  color:var(--navy);
  font-family:Inter,"Tajawal",Tahoma,Arial,sans-serif;
  font-size:14px;
  font-weight:850;
  letter-spacing:.1px;
  line-height:1.25;
  text-align:center;
  text-align-last:center;
  cursor:pointer;
  box-shadow:none;
  transition:background-color .18s ease,border-color .18s ease;
}
.language-select:hover{
  background-color:rgba(11,35,71,.045);
  border-color:rgba(11,35,71,.10);
}
.language-select:focus-visible{
  outline:2px solid rgba(217,165,46,.85);
  outline-offset:2px;
}
.language-select option{
  background:#fff;
  color:#0b2347;
  font-family:Inter,"Tajawal",Tahoma,Arial,sans-serif;
  font-size:14px;
  font-weight:750;
}
html[lang="ar"] .language-select,
html[dir="rtl"] .language-select{
  font-family:"Tajawal",Tahoma,"Noto Sans Arabic",Arial,sans-serif;
  font-size:16px;
  font-weight:800;
}
@media(min-width:821px){
  .language-select{width:86px;min-width:86px;max-width:86px}
}
@media(max-width:820px){
  .language-select{
    width:76px;
    min-width:76px;
    max-width:76px;
    min-height:42px;
    font-size:13px;
  }
  html[lang="ar"] .language-select,
  html[dir="rtl"] .language-select{font-size:15px}
}
@media(max-width:380px){
  .language-select{
    width:68px;
    min-width:68px;
    max-width:68px;
    min-height:40px;
    padding-inline:5px 20px;
    font-size:12px;
  }
  html[lang="ar"] .language-select,
  html[dir="rtl"] .language-select{font-size:14px}
}


/* Customer authentication, account dashboard and phone-country controls */
.google-signin{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;margin:15px 0;padding:10px 16px;border:1px solid #d8ddd8;border-radius:11px;background:transparent;color:var(--navy);font-size:13px;font-weight:800;transition:background .18s,border-color .18s}
.google-signin:hover{background:rgba(255,255,255,.72);border-color:#b8c5d2}
.google-signin svg{flex:0 0 22px}
.auth-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--muted);font-size:11px}
.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}
.legal-consent{display:flex;align-items:flex-start;gap:9px;margin-top:14px;color:var(--muted);font-size:11px;line-height:1.6}
.legal-consent input{margin-top:3px;flex:0 0 auto}
.legal-consent a{color:var(--navy);text-decoration:underline;font-weight:800}
.account-layout{display:grid;gap:16px;max-width:900px}
.account-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.account-heading h2{margin:0;color:var(--navy)}
.account-list{display:grid;gap:9px}
.account-list-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:13px}
.account-list-item p{font-size:11px;color:var(--muted);margin:4px 0 0}
.checkout-customer-bar{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 12px;margin-bottom:18px;background:#f5f7f3;border-radius:11px;font-size:12px}
.checkout-customer-bar a{color:var(--navy);font-weight:800;text-decoration:underline}
.phone-input-wrap{display:flex;flex-direction:row;align-items:stretch;gap:7px;width:100%;direction:ltr}
.phone-input-wrap input[type="tel"]{flex:1 1 auto;min-width:0;direction:ltr;text-align:left;unicode-bidi:plaintext}
.phone-country-select{flex:0 0 108px;width:108px;min-width:0;border:1px solid #d9ded8;border-radius:10px;padding:10px 6px;background:rgba(255,255,255,.86);color:var(--navy);font-size:11px;font-weight:750;line-height:1.4;direction:ltr;text-align:center}
.phone-country-select:focus{outline:none;border-color:#7593b9;box-shadow:0 0 0 3px rgba(11,35,71,.08)}
.phone-country-admin-list{max-height:460px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:12px}
.phone-country-admin-row{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer}
.phone-country-admin-name{display:grid;gap:2px;min-width:0}
.phone-country-admin-name strong{font-size:12px;color:var(--navy);overflow-wrap:anywhere}
.phone-country-admin-name small{font-size:10px;color:var(--muted)}
.phone-country-admin-toggle{position:relative;display:inline-flex;align-items:center;flex:0 0 auto}
.phone-country-admin-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.phone-switch{position:relative;width:38px;height:22px;border-radius:14px;background:#c8cfca;transition:background .18s}
.phone-switch:after{content:"";position:absolute;width:16px;height:16px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .18s}
.phone-country-admin-toggle input:checked+.phone-switch{background:#23845f}
.phone-country-admin-toggle input:checked+.phone-switch:after{transform:translateX(16px)}
.phone-country-admin-toggle input:disabled+.phone-switch{opacity:.55;cursor:not-allowed}
.phone-country-admin-toggle input:focus-visible+.phone-switch{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:620px){.phone-country-select{flex-basis:122px;width:122px;font-size:11px;padding:9px 5px}.phone-country-admin-list{grid-template-columns:1fr}.account-heading{align-items:flex-start;flex-direction:column}.account-list-item{align-items:flex-start;flex-direction:column}.checkout-customer-bar{align-items:flex-start;flex-direction:column}}


.password-rules{list-style:none;padding:0;margin:8px 0 14px;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.password-rules li{display:flex;align-items:center;gap:7px;margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.password-rules li:before{content:"○";display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font-size:10px}
.password-rules li.is-valid{color:#27734a}
.password-rules li.is-valid:before{content:"✓";border-color:#27734a;font-weight:900}
@media(max-width:480px){.password-rules{grid-template-columns:1fr}}


/* QABBOOD dual-catalogue navigation */
.catalogue-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:20px 0 9px}
.catalogue-tabs{display:flex;gap:7px;flex-wrap:wrap}
.catalogue-tab{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:999px;padding:10px 17px;font-size:12px;font-weight:850;cursor:pointer}
.catalogue-tab:hover,.catalogue-tab.active{background:var(--navy);border-color:var(--navy);color:#fff}
.catalogue-subfilter{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:800;color:var(--muted)}
.catalogue-subfilter select{min-width:190px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--navy);font-size:11px}
.catalogue-note{font-size:11px;color:var(--muted);margin:0 0 16px}
.product-name-link{color:inherit;text-decoration:none}
.product-name-link:hover{color:#987841}
.catalogue-main-card{min-height:160px;align-items:flex-start;justify-content:center}
.catalogue-main-card strong{font-size:17px;color:var(--navy)}
.catalogue-main-card small{font-size:10px;color:var(--muted);line-height:1.55}
.account-invoice-link{display:inline-flex;margin-top:8px;font-size:10px;font-weight:850;color:#96763e;text-decoration:underline;text-underline-offset:3px}
.order-invoice-actions{margin:14px 0}
@media(max-width:620px){.catalogue-controls{align-items:stretch}.catalogue-tabs{display:grid;grid-template-columns:1fr 1fr 1fr}.catalogue-tab{padding:9px 7px;font-size:10px}.catalogue-subfilter{justify-content:space-between}.catalogue-subfilter select{flex:1;min-width:0}.catalogue-main-card{min-height:140px}}
