:root{
  --silaa-blue:#0057D9;--silaa-blue-2:#0B73E8;--silaa-orange:#FF8A00;
  --ink:#172033;--muted:#66758a;--surface:#fff;--soft:#F4F7FF;--line:#e4eaf3;
  font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;color:var(--ink);background:var(--soft)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(circle at 10% 0%,#eaf2ff 0,transparent 32%),linear-gradient(180deg,#f8faff 0,#f3f6fb 100%)}
button,input,textarea,select{font:inherit}button{touch-action:manipulation}
header{height:72px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:20;box-shadow:0 4px 22px rgba(23,32,51,.05)}
.brand{display:flex;align-items:center;gap:10px}.logo{width:43px;height:43px;border-radius:13px;object-fit:cover;box-shadow:0 5px 15px rgba(0,87,217,.2)}.brand strong{display:block;letter-spacing:.2px}.brand small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.dots{font-size:30px;border:0;background:none;color:var(--ink);cursor:pointer;width:44px;height:44px;border-radius:12px}.dots:hover{background:#eef4ff;color:var(--silaa-blue)}
.menu{position:absolute;top:66px;left:20px;background:rgba(255,255,255,.98);border:1px solid var(--line);border-radius:18px;padding:8px;box-shadow:0 18px 45px rgba(23,32,51,.14);z-index:30;width:285px}.menu button{display:block;width:100%;text-align:right;background:none;border:0;padding:13px;border-radius:12px;cursor:pointer;color:var(--ink)}.menu button:hover{background:#eef4ff;color:var(--silaa-blue)}.hidden{display:none}
main{max-width:1180px;margin:0 auto;padding:28px 18px 50px}.hero{text-align:center;padding:52px 12px 36px}.hero-brand{display:flex;flex-direction:column;align-items:center;gap:10px}.hero-logo-img{width:105px;height:105px;object-fit:cover;border-radius:29px;box-shadow:0 18px 40px rgba(0,87,217,.22)}.brand-kicker,.eyebrow{font-size:11px;font-weight:900;letter-spacing:1.5px;color:var(--silaa-blue)}.hero h1{max-width:900px;font-size:clamp(30px,5vw,50px);line-height:1.15;margin:18px auto 12px;letter-spacing:-1px}.hero>p{max-width:720px;margin:0 auto;color:var(--muted);font-size:17px;line-height:1.8}
.actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:1050px;margin:34px auto 25px}.card,.panel{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:0 7px 28px rgba(23,32,51,.055)}.action{padding:27px 18px;text-align:center;cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s}.action:hover{transform:translateY(-4px);box-shadow:0 16px 35px rgba(0,87,217,.13);border-color:#cbdcff}.action-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#eaf2ff,#fff4e5);font-size:29px;margin:0 auto 13px}.action b{display:block;font-size:18px;margin-bottom:6px}.action>span:last-child{color:var(--muted);font-size:13px;line-height:1.6}.trust-strip{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.trust-strip span{background:#fff;border:1px solid var(--line);padding:8px 13px;border-radius:999px;color:#536174;font-size:13px}
.auth-shell{max-width:620px;margin:15px auto 40px}.auth-brand{display:flex;justify-content:center;align-items:center;gap:12px;margin:15px 0}.auth-brand img{width:58px;height:58px;border-radius:17px;object-fit:cover;box-shadow:0 10px 25px rgba(0,87,217,.2)}.auth-brand strong{display:block;font-size:18px}.auth-brand small{color:var(--muted)}.auth-panel{padding:28px;box-shadow:0 20px 55px rgba(0,57,130,.10)}.auth-panel h2{margin:5px 0 0;font-size:28px}.form{max-width:620px;margin:20px auto}.form input,.form textarea,.form select,#search{width:100%;padding:13px 14px;border:1px solid #d7dfeb;border-radius:12px;margin:6px 0 13px;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s}.form input:focus,.form textarea:focus,.form select:focus,#search:focus{border-color:#7ba9f3;box-shadow:0 0 0 4px rgba(0,87,217,.08)}.form label{display:block;margin:7px 0;color:#4d5d73;font-size:13px}.form label input{width:auto;margin:0 6px}.button{border:0;border-radius:12px;padding:12px 18px;cursor:pointer;transition:.15s;font-weight:750}.button:hover{transform:translateY(-1px)}.primary{background:linear-gradient(135deg,var(--silaa-blue),var(--silaa-blue-2));color:#fff;box-shadow:0 8px 18px rgba(0,87,217,.18)}.secondary{background:#eef3fa;color:var(--ink)}.danger{background:#fff0f0;color:#b42318}.full{width:100%;margin:5px 0}.row{display:flex;gap:10px;align-items:center;justify-content:space-between}.tabs{display:flex;gap:8px;margin:20px 0 16px;padding:5px;background:#f1f5fa;border-radius:14px}.tabs button{flex:1;border:0;background:transparent;padding:11px 14px;border-radius:10px;cursor:pointer;color:#5c6b7f}.tabs button:hover,.tabs .tab-active{background:#fff;color:var(--silaa-blue);box-shadow:0 2px 10px rgba(23,32,51,.07);font-weight:800}.status{padding:13px 15px;border-radius:12px;margin:15px 0;line-height:1.6}.red{background:#fff0f0;color:#b42318}.green{background:#edf9f1;color:#16794b}.error{color:#b42318;background:#fff4f4;padding:10px;border-radius:10px}.muted{color:var(--muted)}
.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:20px}.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px}.product-icon{font-size:40px}.product h3{margin-bottom:4px}.cartbar{position:sticky;bottom:12px;margin-top:20px;text-align:center}.list-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0f5;padding:14px 0}.list-row span{flex:1}.order{margin:10px 0}.badge{display:inline-block;background:#eef2f7;padding:5px 9px;border-radius:999px;margin:0 8px;font-size:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#172033;color:#fff;padding:12px 18px;border-radius:12px;z-index:50;box-shadow:0 12px 30px rgba(23,32,51,.25)}
@media(max-width:900px){.actions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){header{padding:0 14px}.actions{grid-template-columns:1fr}.hero{padding-top:35px}.hero h1{font-size:31px}.hero>p{font-size:15px}.menu{left:10px;right:10px;width:auto}.auth-panel{padding:21px}}
.test-code{margin:12px 0;padding:12px 14px;border:1px dashed var(--silaa-orange);border-radius:14px;background:#fff7eb;color:#8a4a00;text-align:center}.test-code b{font-size:1.15rem;letter-spacing:.15em}
.header-logo-img{width:42px;height:42px;object-fit:contain;border-radius:12px;display:block}

.password-field{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
}

.password-field input{
  width:100%;
  padding-left:52px !important;
}

.password-toggle{
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  z-index:2;
}

.password-toggle:hover{
  background:rgba(0,87,217,.08);
}

.password-toggle:focus-visible{
  outline:2px solid var(--silaa-blue,#0057D9);
  outline-offset:2px;
}


.product-image-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.product-image-item{border:1px solid #ddd;border-radius:12px;padding:8px;background:#fff}.product-image-item img{width:100%;height:160px;object-fit:cover;border-radius:8px;margin-bottom:6px}.product-media{margin-bottom:12px}.product-main-image{display:block;width:100%;height:210px;object-fit:cover;border-radius:14px;background:#f1f5ff}.product-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:7px}.product-thumbs img{width:100%;height:52px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}.product-icon{height:210px;display:grid;place-items:center;background:#f1f5ff;border-radius:14px;font-size:46px}.success{color:#087443;background:#ecfdf3;border-radius:10px;padding:9px 12px}@media(max-width:600px){.product-image-gallery{grid-template-columns:1fr 1fr}.product-image-item img{height:130px}.product-main-image,.product-icon{height:170px}}
.thumb-button{border:1px solid var(--line);background:#fff;padding:0;border-radius:8px;cursor:pointer;overflow:hidden}
.thumb-button img{display:block;width:100%;height:52px;object-fit:cover}
.thumb-button.active{border:2px solid var(--silaa-blue);box-shadow:0 0 0 2px rgba(0,87,217,.08)}

.cart-item{gap:12px;align-items:center;flex-wrap:wrap}.cart-item-info{display:flex;align-items:center;gap:10px;min-width:220px;flex:1}.cart-item-info img{width:54px;height:54px;object-fit:cover;border-radius:10px}.cart-item-info span{display:flex;flex-direction:column;gap:3px}.cart-item-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.cart-item-actions .button{min-width:38px;padding:8px 10px}

.button:disabled{opacity:.55;cursor:not-allowed;transform:none!important;box-shadow:none}.product p{line-height:1.6}.cart-item-actions{max-width:100%}@media(max-width:650px){.cart-item-info{min-width:100%}.cart-item-actions{width:100%;justify-content:flex-end}.cart-item-actions b{margin-left:auto}.row{align-items:flex-start}.row>.button{flex-shrink:0}}


.qty-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:38px;
  font-size:18px;
  font-weight:700;
  line-height:1;
  color:inherit;
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  box-sizing:border-box;
}

.cart-item-actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.cart-item-actions .button{
  min-width:38px;
  min-height:38px;
  padding:8px 10px;
  box-sizing:border-box;
}
/* هوية المتجر */
.merchant-brand-card{
  display:flex;
  align-items:center;
  gap:20px;
  margin:20px 0;
  padding:20px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:24px;
  background:rgba(255,255,255,.75);
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.merchant-logo-button{
  flex:0 0 auto;
  width:120px;
  height:120px;
  padding:0;
  border:0;
  background:none;
  cursor:pointer;
}

.merchant-logo-placeholder{
  width:120px;
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:24px;
  border:1px solid rgba(0,0,0,.1);
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  font-size:42px;
}

.merchant-logo-placeholder img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:8px;
}

.merchant-brand-info{
  flex:1;
  min-width:0;
}

.merchant-brand-info h3{
  margin:6px 0;
}

.merchant-brand-info .eyebrow{
  font-size:13px;
  opacity:.65;
}

@media (max-width:600px){
  .merchant-brand-card{
    flex-direction:column;
    text-align:center;
  }

  .merchant-brand-info{
    width:100%;
  }
}


#toast{
  z-index:10000 !important;
}

/* =========================================================
   SILAA MARKET — PROFESSIONAL MARKETPLACE UI
   الهوية الأصلية: الأزرق
   ========================================================= */

/* شبكة المنتجات */
.product-grid{
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr));
  gap:18px;
  margin-top:20px;
}

/* بطاقة المنتج */
.product{
  position:relative;
  overflow:hidden;
  padding:16px;
  border-radius:22px;
  border:1px solid #dce6f2;
  background:rgba(255,255,255,.98);
  box-shadow:0 8px 26px rgba(23,32,51,.07);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.product:hover{
  transform:translateY(-5px);
  border-color:#bcd3f5;
  box-shadow:0 18px 38px rgba(0,87,217,.13);
}

/* منطقة صورة المنتج */
.product-media{
  position:relative;
  margin:-1px -1px 15px;
  padding:10px;
  border-radius:17px;
  background:linear-gradient(145deg,#f5f8ff,#edf4ff);
  overflow:hidden;
}

/* الصورة الرئيسية */
.product-main-image{
  display:block;
  width:100%;
  height:235px;
  object-fit:contain;
  border-radius:14px;
  background:transparent;
  transition:transform .25s ease;
}

.product:hover .product-main-image{
  transform:scale(1.035);
}

/* عند عدم وجود صورة */
.product-icon{
  height:235px;
  border-radius:14px;
  background:linear-gradient(145deg,#f1f6ff,#e7f0ff);
  color:var(--silaa-blue);
  font-size:52px;
}

/* الصور المصغرة */
.product-thumbs{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  margin-top:8px;
}

.product-thumbs img,
.thumb-button img{
  height:54px;
  object-fit:cover;
}

.thumb-button{
  border-color:#dbe5f1;
}

.thumb-button.active{
  border:2px solid var(--silaa-blue);
  box-shadow:0 0 0 2px rgba(0,87,217,.09);
}

/* اسم المنتج */
.product h3{
  margin:8px 0 5px;
  color:#142d4d;
  font-size:18px;
  line-height:1.5;
}

/* وصف المنتج */
.product p{
  color:#68788d;
  line-height:1.7;
}

/* السعر */
.product strong,
.product .price{
  color:var(--silaa-blue);
}

/* تحسين أزرار السلة */
.product .primary{
  background:linear-gradient(135deg,#0057D9,#0B73E8);
  color:#fff;
  border-radius:13px;
  box-shadow:0 7px 16px rgba(0,87,217,.18);
}

.product .primary:hover{
  box-shadow:0 10px 22px rgba(0,87,217,.27);
}

/* الكمية */
.qty-number{
  border-color:#d8e2ef;
  color:#173d72;
  background:#fff;
}

/* البحث */
#search{
  border-color:#d5e1ef;
}

#search:focus{
  border-color:#7ba9f3;
  box-shadow:0 0 0 4px rgba(0,87,217,.09);
}

/* الشارات */
.product .badge{
  font-weight:700;
}

/* شريط السلة */
.cartbar{
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  border:1px solid #dbe6f2;
  border-radius:18px;
  padding:10px;
  box-shadow:0 10px 28px rgba(23,32,51,.12);
}

/* حركة بسيطة للبطاقة */
.product h3,
.product p{
  transition:color .18s ease;
}

.product:hover h3{
  color:var(--silaa-blue);
}

/* الكمبيوتر */
@media(max-width:900px){
  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }

  .product-main-image,
  .product-icon{
    height:210px;
  }
}

/* الهاتف */
@media(max-width:600px){
  .product-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .product{
    padding:14px;
    border-radius:19px;
  }

  .product-main-image,
  .product-icon{
    height:250px;
  }

  .product h3{
    font-size:17px;
  }
}
