:root{--gold:#c7a64b;--gold2:#e2c875;--black:#111214;--text:#171717;--muted:#777;--line:#e9e4d8;--soft:#faf8f2;--danger:#b42318;--ok:#176b3a;--white:#fff}*{box-sizing:border-box}html{background:#f5f5f5}body{margin:0;font-family:Tahoma,Arial,sans-serif;color:var(--text);background:#f5f5f5}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.shell{max-width:1220px;margin:auto;min-height:100vh;background:#fff}.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:12px;padding:10px 14px;background:#fff;border-bottom:1px solid var(--line)}.brandlogo{width:44px;height:44px;object-fit:contain}.brandtext{flex:1;min-width:0}.brandtext b{display:block;font-size:17px}.brandtext small{color:#876e2a}.iconbtn,.btn{min-height:44px;border-radius:12px;border:1px solid var(--line);background:#fff;padding:0 14px}.btn.gold{background:linear-gradient(135deg,var(--gold2),var(--gold));border-color:#b99435;color:#111;font-weight:800}.btn.dark{background:#111;color:white;border-color:#111}.btn.danger{background:#fff6f5;color:var(--danger);border-color:#f1cbc6}.main{padding-bottom:74px}.screen{display:none}.screen.on{display:block}.hero{padding:16px}.slider{position:relative;overflow:hidden;border-radius:22px;background:#121212;aspect-ratio:16/7}.slide{position:absolute;inset:0;opacity:0;transition:opacity .35s}.slide.on{opacity:1}.slide img{width:100%;height:100%;object-fit:cover}.slideFallback{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#111,#342b15);color:var(--gold2);font-size:28px;font-weight:900}.arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:1px solid #ffffff55;background:#0009;color:#fff}.arrow.r{right:10px}.arrow.l{left:10px}.dots{position:absolute;left:0;right:0;bottom:9px;z-index:4;display:flex;justify-content:center;gap:6px}.dot{width:8px;height:8px;border-radius:99px;background:#ffffff88}.dot.on{width:24px;background:var(--gold2)}.section{padding:4px 16px 20px}.sectionhead{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:14px 0}.sectionhead h2{margin:0;font-size:20px}.sectionhead small{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{border:1px solid var(--line);background:#fff;border-radius:18px;overflow:hidden}.media{aspect-ratio:1.18/1;background:var(--soft);display:grid;place-items:center;overflow:hidden}.media img{width:100%;height:100%;object-fit:cover}.fallback{font-size:40px;color:var(--gold)}.cardbody{padding:12px}.cardbody h3{margin:0 0 6px;font-size:15px}.sub{font-size:12px;color:var(--muted);min-height:18px}.price{font-weight:900;margin-top:8px}.old{font-size:12px;color:#999;text-decoration:line-through;margin-right:5px}.sale{font-size:11px;background:#fff2ca;color:#715600;border:1px solid #ead17d;border-radius:999px;padding:2px 7px}.actions{display:flex;gap:7px;margin-top:10px}.actions button{flex:1;min-height:40px;border-radius:10px;border:1px solid var(--line);background:#fff}.actions .primary{background:#111;color:#fff;border-color:#111}.chiprow{display:flex;gap:8px;overflow:auto;padding-bottom:5px}.chip{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 14px}.chip.on{background:#111;color:white}.companyGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.companyCard{border:1px solid var(--line);border-radius:18px;background:#fff;padding:16px;text-align:center}.companyLogo{height:82px;display:grid;place-items:center;background:var(--soft);border-radius:14px;margin-bottom:10px;overflow:hidden}.companyLogo img{max-width:100%;max-height:100%;object-fit:contain}.backline{display:flex;align-items:center;gap:10px}.bottomnav{position:fixed;left:0;right:0;bottom:0;z-index:25;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);max-width:1220px;margin:auto}.navbtn{min-height:62px;border:0;background:#fff;color:#444}.navbtn.on{color:#8b6b13;font-weight:800}.badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--gold);color:#111;font-size:10px;font-weight:900;vertical-align:top}.sheet{position:fixed;inset:0;z-index:50;background:#0008;display:none;align-items:flex-end}.sheet.on{display:flex}.panel{width:100%;max-width:680px;max-height:92vh;overflow:auto;margin:auto;background:#fff;border-radius:24px 24px 0 0;padding:18px}.close{float:left;width:42px;height:42px;border-radius:50%;border:0;background:#f2f2f2}.field{margin:12px 0}.field label{display:block;margin-bottom:6px;font-weight:700}.field input,.field textarea,.field select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:11px;background:#fff}.field textarea{min-height:90px;resize:vertical}.row{display:flex;gap:10px}.row>*{min-width:0}.row .grow{flex:1}.cartrow{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:start;padding:11px 0;border-bottom:1px solid var(--line)}.cartrow img{width:64px;height:64px;border-radius:12px;object-fit:cover;background:var(--soft)}.qty{display:flex;align-items:center;gap:6px;margin-top:7px}.qty button{width:31px;height:31px;border-radius:8px;border:1px solid var(--line);background:#fff}.totalbox{margin-top:14px;padding:16px;border-radius:16px;background:#111;color:#fff;display:flex;justify-content:space-between;font-size:20px;font-weight:900}.accountHero{margin:16px;border:1px solid var(--line);border-radius:20px;padding:18px;text-align:center}.avatar{width:88px;height:88px;border-radius:50%;overflow:hidden;border:2px solid var(--gold);background:var(--soft);display:grid;place-items:center;margin:auto;font-size:34px}.avatar img{width:100%;height:100%;object-fit:cover}.menu{margin:12px 16px;border:1px solid var(--line);border-radius:18px;overflow:hidden}.menu button{width:100%;min-height:52px;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:right}.menu button:last-child{border-bottom:0}.orderCard{border:1px solid var(--line);border-radius:16px;padding:14px;margin-bottom:10px}.status{display:inline-block;padding:5px 9px;border-radius:999px;background:#fff3cc;color:#725400;font-size:12px;font-weight:800}.empty{text-align:center;color:var(--muted);padding:38px 12px}.toast{position:fixed;z-index:100;left:50%;bottom:86px;transform:translateX(-50%);background:#111;color:#fff;padding:10px 16px;border-radius:999px}.loginWrap{min-height:100vh;background:url('assets/approved-background.jpg') center/cover no-repeat;display:grid;place-items:center;padding:18px}.loginOverlay{position:fixed;inset:0;background:linear-gradient(#0003,#0008);pointer-events:none}.loginCard{position:relative;z-index:2;width:min(430px,100%);background:#ffffffee;border:1px solid #d8bf70;border-radius:26px;padding:22px;box-shadow:0 22px 60px #0007}.loginLogo{width:90px;height:90px;object-fit:contain;display:block;margin:0 auto 8px}.loginCard h1{text-align:center;margin:0;font-size:23px}.loginCard p{text-align:center;color:#6d5a25;margin:8px 0 18px}.otpboxes{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;direction:ltr}.otpboxes input{width:100%;height:50px;text-align:center;font-size:22px;font-weight:900;border:1px solid var(--line);border-radius:10px}.loginStep{display:none}.loginStep.on{display:block}.legal{direction:ltr;text-align:left;line-height:1.7}.legal h2,.legal h3{color:#1a1a1a}.legal p,.legal li{color:#444}.chatbox{border:1px solid var(--line);border-radius:15px;padding:10px;min-height:180px;max-height:360px;overflow:auto;background:#fafafa}.msg{max-width:82%;margin:7px 0;padding:9px 11px;border-radius:14px}.msg.customer{margin-left:auto;background:#111;color:#fff}.msg.admin{margin-right:auto;background:#fff;border:1px solid var(--line)}.switchrow{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.switchrow input{width:20px;height:20px}.detailGallery{display:flex;gap:8px;overflow:auto;margin:10px 0}.detailGallery img{width:84px;height:84px;border-radius:12px;object-fit:cover;border:1px solid var(--line)}@media(min-width:700px){.grid{grid-template-columns:repeat(3,1fr)}.companyGrid{grid-template-columns:repeat(3,1fr)}.hero{padding:22px}.section{padding:5px 22px 24px}.bottomnav{position:sticky;border:1px solid var(--line);border-radius:18px 18px 0 0}.main{padding-bottom:0}}@media(min-width:1000px){.grid{grid-template-columns:repeat(4,1fr)}.companyGrid{grid-template-columns:repeat(4,1fr)}.slider{aspect-ratio:16/5}}@media(max-width:360px){.grid{gap:8px}.cardbody{padding:10px}.actions{flex-direction:column}.otpboxes{gap:4px}.otpboxes input{height:46px}}

/* Product availability ribbon — Al Jabal Store V2.1 */
.media{position:relative}
.productCard .media,.detailMedia{isolation:isolate}
.availabilityRibbon{position:absolute;z-index:6;top:9px;left:8%;right:8%;height:36px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #a97c10;border-radius:12px 12px 17px 17px;background:linear-gradient(110deg,#b88917 0%,#f8dc7b 24%,#c89b2c 48%,#ffe9a0 72%,#b88917 100%);box-shadow:0 6px 14px #0002,0 1px 0 #fff8 inset;color:#111;font-size:12px;font-weight:900;text-align:center;letter-spacing:.1px;padding:0 12px}
.availabilityRibbon:before,.availabilityRibbon:after{content:'';position:absolute;top:6px;width:18px;height:24px;background:#8c6511;z-index:-1;filter:brightness(.9)}
.availabilityRibbon:before{left:-10px;transform:skewY(-28deg)}
.availabilityRibbon:after{right:-10px;transform:skewY(28deg)}
.availabilityRibbon span{position:relative;z-index:2;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.availabilityRibbon::selection{background:#111;color:#f4cf6d}
.availabilityRibbon span:after{content:'';position:absolute;top:-14px;bottom:-14px;width:42px;left:-70px;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,#fff8,transparent);animation:ribbonShine 3.2s ease-in-out infinite}
@keyframes ribbonShine{0%,55%{left:-70px}85%,100%{left:calc(100% + 70px)}}
.detailMedia .availabilityRibbon{top:0;bottom:auto;left:0;right:0;height:26px;font-size:11px;border-radius:16px 16px 0 0;padding:0 8px}
@media(max-width:360px){.availabilityRibbon{left:5%;right:5%;font-size:11px;height:33px;padding:0 8px}}
@media(prefers-reduced-motion:reduce){.availabilityRibbon span:after{animation:none}}

/* V2.2 - Mobile safe header */
@media(max-width:699px){
  .topbar{
    padding-top:calc(30px + env(safe-area-inset-top, 0px));
    padding-right:16px;
    padding-left:16px;
    padding-bottom:12px;
    gap:12px;
  }

  .brandlogo{
    width:50px;
    height:50px;
  }

  .brandtext b{
    font-size:18px;
    line-height:1.25;
  }

  .brandtext small{
    font-size:11px;
  }

  .topbar .iconbtn{
    min-width:50px;
    min-height:50px;
    padding:0 12px;
  }
}


/* V2.2 PRODUCT RATINGS */
.productRating{
  display:flex;
  align-items:center;
  gap:5px;
  width:max-content;
  max-width:100%;
  margin:6px 0 4px;
  direction:ltr;
  font-size:12px;
  color:#777;
}
.ratingStars{
  color:#c7a64b;
  font-size:14px;
  letter-spacing:1px;
  line-height:1;
}
.productRating b{
  color:#171717;
  font-size:12px;
  font-weight:900;
}
.ratingCount{
  color:#777;
  font-size:11px;
}


/* NO VISIBLE URL DIALOGS */
.appDialogOverlay{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.52);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  direction:rtl;
}

.appDialogBox{
  width:min(360px,100%);
  background:#fff;
  border-radius:20px;
  padding:22px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  border:1px solid #e6d8a3;
  text-align:center;
}

.appDialogText{
  font-size:16px;
  font-weight:700;
  line-height:1.8;
  color:#181818;
  margin-bottom:18px;
}

.appDialogActions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.appDialogBox .btn{
  width:100%;
}

.locationSafeStatus{
  padding:12px 14px;
  border:1px solid #e5d8aa;
  background:#fffaf0;
  border-radius:12px;
  color:#5c4b19;
  font-weight:700;
  text-align:center;
}


/* CENTERED CART MODAL */
#sheet.cartModal{
  align-items:center;
  justify-content:center;
  padding:18px;
  backdrop-filter:blur(4px);
  background:rgba(0,0,0,.55);
}

#sheet.cartModal .panel{
  width:min(520px,100%);
  max-width:520px;
  max-height:84vh;
  margin:auto;
  border-radius:24px;
  padding:20px;
  box-shadow:0 24px 70px rgba(0,0,0,.30);
  overflow:auto;
  border:1px solid #eadfb8;
}

#sheet.cartModal .close{
  position:sticky;
  top:0;
  z-index:5;
  float:left;
  background:#f4f4f4;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

#sheet.cartModal #sheetBody h2{
  margin-top:4px;
  padding-left:48px;
}

#sheet.cartModal .cartrow{
  align-items:center;
}

#sheet.cartModal .totalbox{
  margin-top:16px;
}

#sheet.cartModal #checkoutBtn{
  position:sticky;
  bottom:0;
  z-index:4;
  box-shadow:0 -8px 18px rgba(255,255,255,.95);
}

@media(max-width:560px){
  #sheet.cartModal{
    padding:14px;
  }

  #sheet.cartModal .panel{
    width:100%;
    max-height:82vh;
    border-radius:22px;
    padding:17px;
  }
}


/* CART SIDE DRAWER */
#sheet.cartDrawer{
  align-items:stretch !important;
  justify-content:flex-start !important;
  padding:0 !important;
  background:rgba(0,0,0,.52) !important;
  backdrop-filter:blur(2px);
}

#sheet.cartDrawer .panel{
  width:min(440px,88vw) !important;
  max-width:88vw !important;
  height:100vh !important;
  max-height:100vh !important;
  margin:0 auto 0 0 !important;
  border-radius:0 24px 24px 0 !important;
  padding:20px !important;
  overflow-y:auto !important;
  box-shadow:18px 0 50px rgba(0,0,0,.28);
  border-left:0;
  border-right:1px solid #e8d9a4;
  animation:cartDrawerIn .28s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes cartDrawerIn{
  from{
    transform:translateX(-105%);
    opacity:.7;
  }
  to{
    transform:translateX(0);
    opacity:1;
  }
}

#sheet.cartDrawer .close{
  position:sticky;
  top:0;
  z-index:10;
  float:left;
  background:#f4f4f4;
}

#sheet.cartDrawer #sheetBody h2{
  margin-top:5px;
  padding-left:48px;
}

#sheet.cartDrawer .cartrow{
  align-items:center;
}

#sheet.cartDrawer .totalbox{
  margin-top:16px;
}

#sheet.cartDrawer #checkoutBtn{
  position:sticky;
  bottom:0;
  z-index:8;
  margin-bottom:4px;
  box-shadow:0 -12px 20px rgba(255,255,255,.96);
}

@media(max-width:560px){
  #sheet.cartDrawer .panel{
    width:88vw !important;
    max-width:88vw !important;
  }
}


/* PRODUCT GALLERY SWIPE */
.productGalleryMain{
  position:relative;
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
  cursor:grab;
}

.productGalleryMain:active{
  cursor:grabbing;
}

.productGalleryMain #detailMainImage{
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
  -webkit-user-drag:none;
}

.detailGallery{
  display:flex;
  gap:8px;
  overflow-x:auto;
  margin:10px 0;
  padding:2px 1px 5px;
  scroll-behavior:smooth;
}

.galleryThumb{
  flex:0 0 84px;
  width:84px;
  height:84px;
  padding:0;
  border:2px solid transparent;
  border-radius:13px;
  background:#fff;
  overflow:hidden;
}

.galleryThumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border:0;
  border-radius:10px;
}

.galleryThumb.on{
  border-color:var(--gold);
  box-shadow:0 0 0 2px #c7a64b22;
}

.detailGalleryArrow{
  position:absolute;
  z-index:8;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border:1px solid #ffffff66;
  border-radius:50%;
  background:#0009;
  color:#fff;
  font-size:27px;
  line-height:1;
  display:grid;
  place-items:center;
}

.detailGalleryArrow.next{
  right:10px;
}

.detailGalleryArrow.prev{
  left:10px;
}

.detailGalleryDots{
  position:absolute;
  z-index:8;
  left:0;
  right:0;
  bottom:10px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  pointer-events:none;
}

.galleryDot{
  pointer-events:auto;
  width:8px;
  height:8px;
  min-width:8px;
  padding:0;
  border:0;
  border-radius:99px;
  background:#ffffff99;
  transition:.2s ease;
}

.galleryDot.on{
  width:24px;
  background:var(--gold2);
}

@media(max-width:560px){
  .detailGalleryArrow{
    width:36px;
    height:36px;
    font-size:24px;
  }

  .galleryThumb{
    flex-basis:74px;
    width:74px;
    height:74px;
  }
}

/* HIDE PRODUCT GALLERY ARROWS - SWIPE ONLY */
.detailGalleryArrow{
  display:none !important;
}


/* PRODUCT WARRANTY BADGE */
.productTitleWarranty{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:10px;
  direction:rtl;
  margin-top:18px;
}

.productTitleWarranty h2{
  margin:0;
}

.warrantyBadge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 12px;
  border:1px solid #d8b64c;
  border-radius:999px;
  background:#fff8dc;
  color:#725600;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}


/* PRODUCT DETAILS V3 APPROVED */

.productDetailWrap{
  direction:rtl;
}

.productGalleryMain{
  position:relative;
  margin-top:48px;
  border-radius:16px;
  overflow:hidden;
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
  cursor:grab;
}

.productGalleryMain:active{
  cursor:grabbing;
}

.productGalleryMain #detailMainImage{
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
  -webkit-user-drag:none;
}

/* Golden availability ribbon: bottom, edge-to-edge, compact */
.detailMedia .availabilityRibbon{
  top:auto !important;
  bottom:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  height:30px !important;
  min-height:30px !important;
  padding:0 10px !important;
  border-radius:0 !important;
  font-size:12px !important;
  z-index:9 !important;
  box-shadow:none !important;
}

.detailMedia .availabilityRibbon span{
  white-space:nowrap;
}

/* no visible arrows */
.detailGalleryArrow{
  display:none !important;
}

.detailGalleryDots{
  position:absolute;
  z-index:10;
  left:0;
  right:0;
  bottom:36px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  pointer-events:none;
}

.galleryDot{
  pointer-events:auto;
  width:8px;
  height:8px;
  min-width:8px;
  padding:0;
  border:0;
  border-radius:99px;
  background:#ffffffaa;
  transition:.2s ease;
}

.galleryDot.on{
  width:24px;
  background:var(--gold2);
}

.detailGallery{
  display:flex;
  justify-content:flex-start;
  gap:9px;
  overflow-x:auto;
  margin:12px 0 18px;
  padding:2px 1px 5px;
  scroll-behavior:smooth;
}

.galleryThumb{
  flex:0 0 82px;
  width:82px;
  height:82px;
  padding:0;
  border:2px solid transparent;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}

.galleryThumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border:0 !important;
  border-radius:11px;
}

.galleryThumb.on{
  border-color:var(--gold);
  box-shadow:0 0 0 2px #c7a64b22;
}

.productTitleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:6px;
}

.productTitleRow h2{
  margin:0;
  font-size:27px;
  line-height:1.35;
}

.warrantyBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 16px;
  border:1px solid #d7b84f;
  border-radius:999px;
  background:#fff9e6;
  color:#735713;
  font-weight:800;
  white-space:nowrap;
}

.productBrandLine{
  color:var(--muted);
  margin-top:8px;
  font-size:14px;
}

.productPriceLine{
  margin-top:8px;
}

.detailPrice{
  font-size:23px;
}

.productDescription{
  line-height:1.9;
  color:var(--muted);
  margin:18px 0;
  font-size:16px;
}

.productCodeBox{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 15px;
  margin:14px 0 18px;
  border:1px solid #dfbd51;
  border-radius:13px;
  background:#fffaf0;
}

.productCodeBox b{
  white-space:nowrap;
}

.productCodeBox span{
  direction:ltr;
  text-align:left;
  font-weight:700;
  overflow-wrap:anywhere;
}

.specsSection{
  margin-top:18px;
}

.specsSection h3{
  margin:0 0 10px;
  font-size:19px;
}

.specsTable{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.specRow{
  display:grid;
  grid-template-columns:minmax(110px,34%) 1fr;
  align-items:center;
  min-height:48px;
  border-bottom:1px solid var(--line);
}

.specRow:last-child{
  border-bottom:0;
}

.specRow b,
.specRow span{
  padding:12px 14px;
}

.specRow b{
  background:#faf9f6;
}

.specRow span{
  overflow-wrap:anywhere;
}

.specSingle{
  display:block;
}

.specSingle span{
  display:block;
}

.detailAddBtn{
  width:100%;
  margin-top:18px;
}

@media(max-width:560px){
  .productTitleRow h2{
    font-size:24px;
  }

  .warrantyBadge{
    min-height:38px;
    padding:7px 13px;
    font-size:14px;
  }

  .galleryThumb{
    flex-basis:74px;
    width:74px;
    height:74px;
  }

  .specRow{
    grid-template-columns:38% 62%;
  }
}
