*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f7f9fd;color:#12203b;font-family:"Segoe UI",Tahoma,Arial,sans-serif}.container{width:min(1440px,94%);margin:auto}.shop-header{background:#fff;border-bottom:1px solid #e5eaf3;position:sticky;top:0;z-index:20;box-shadow:0 4px 18px rgba(17,39,76,.05)}.shop-top{min-height:104px;display:flex;align-items:center;gap:28px}.shop-logo{margin-right:auto;width:145px;display:block}.shop-logo img{display:block;width:100%;height:86px;object-fit:contain}.shop-top nav{display:flex;align-items:center;gap:25px;flex:1;justify-content:center}.shop-top nav a{color:#10234a;text-decoration:none;font-weight:700;font-size:15px;white-space:nowrap;position:relative;padding:40px 0}.shop-top nav a.active:after{content:"";position:absolute;right:0;left:0;bottom:25px;height:3px;background:#d9282f;border-radius:5px}.shop-actions{display:flex;align-items:center;gap:12px}.service-btn{background:#d9282f;color:#fff;text-decoration:none;padding:14px 22px;border-radius:12px;font-weight:800}.icon-btn{position:relative;border:0;background:#eff4ff;color:#123f96;border-radius:12px;width:48px;height:48px;font-size:20px;cursor:pointer}.icon-btn span{position:absolute;top:-6px;left:-6px;background:#d9282f;color:#fff;width:21px;height:21px;border-radius:50%;font-size:12px;line-height:21px}.search-row{display:grid;grid-template-columns:210px 1fr;gap:14px;padding:12px 0 18px}.category-select select,.search-box{height:48px;border:1px solid #d9e1ef;background:#fff;border-radius:12px}.category-select select{width:100%;padding:0 14px;color:#24375b;font-weight:700}.search-box{display:flex;align-items:center;gap:10px;padding:0 16px;color:#1c4da8;font-size:25px}.search-box input{border:0;outline:0;width:100%;font-size:15px;font-family:inherit}.store{padding:34px 0 70px}.store-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}.eyebrow{color:#d9282f;font-weight:800}.store-heading h1{font-size:34px;margin:5px 0 0}.result-count{color:#71809a}.store-layout{display:grid;grid-template-columns:270px 1fr;gap:24px;direction:ltr}.filters,.products-area{direction:rtl}.filters{background:#fff;border:1px solid #e1e7f1;border-radius:18px;padding:18px;height:max-content;position:sticky;top:160px}.filter-head{display:flex;align-items:center;justify-content:space-between}.filter-head h2{font-size:19px;margin:0}.filter-head button{border:0;background:transparent;color:#d9282f;cursor:pointer;font-weight:700}.filter-section{border-top:1px solid #edf0f5;padding:16px 0}.collapse{width:100%;display:flex;justify-content:space-between;border:0;background:none;font-family:inherit;font-weight:800;color:#1b2c4b;cursor:pointer;padding:0 0 10px}.check-list{display:grid;gap:10px}.check-list label{display:flex;align-items:center;gap:8px;color:#53627c;font-size:14px;cursor:pointer}.check-list input{accent-color:#174ba7}.price-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.price-fields input{width:100%;height:40px;border:1px solid #dbe2ed;border-radius:8px;padding:0 9px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.toolbar select{height:40px;border:1px solid #dbe2ed;border-radius:9px;background:#fff;padding:0 12px;color:#24375b}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{background:#eaf1ff;color:#164ca7;border-radius:999px;padding:6px 11px;font-size:12px;font-weight:700}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{background:#fff;border:1px solid #e0e7f1;border-radius:16px;overflow:hidden;box-shadow:0 5px 18px rgba(25,50,90,.05);transition:.2s;cursor:pointer}.product-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(25,50,90,.11)}.product-img{height:225px;background:#f2f5fa;position:relative;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover}.badge{position:absolute;top:12px;right:12px;background:#d9282f;color:#fff;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800}.product-info{padding:14px}.product-info h3{font-size:17px;margin:0 0 7px}.product-desc{color:#6b7890;font-size:13px;line-height:1.7;min-height:42px}.meta{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.meta span{background:#f1f5fb;color:#53627c;padding:5px 8px;border-radius:7px;font-size:11px}.price{font-size:20px;color:#164ca7;font-weight:900;margin:8px 0 12px}.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.card-actions button{height:42px;border-radius:9px;font-family:inherit;font-weight:800;cursor:pointer}.add{background:#164ca7;color:#fff;border:1px solid #164ca7}.wa{background:#fff;border:1px solid #36a867;color:#25814d}.empty{background:#fff;border:1px dashed #ccd5e5;border-radius:16px;text-align:center;padding:70px;color:#71809a}.hidden{display:none!important}.modal{position:fixed;inset:0;background:rgba(8,22,44,.55);z-index:60;display:grid;place-items:center;padding:20px}.modal-card{background:#fff;border-radius:20px;max-width:900px;width:100%;max-height:90vh;overflow:auto;position:relative;padding:22px}.close{position:absolute;left:18px;top:14px;border:0;background:#eef2f8;border-radius:50%;width:38px;height:38px;font-size:24px;cursor:pointer}.detail{display:grid;grid-template-columns:1fr 1fr;gap:28px}.detail img{width:100%;height:430px;object-fit:cover;border-radius:15px;background:#f3f5f9}.detail h2{font-size:30px;margin:30px 0 10px}.detail .big-price{font-size:28px;color:#164ca7;font-weight:900;margin:18px 0}.detail button{height:48px;border:0;border-radius:10px;background:#164ca7;color:#fff;font-family:inherit;font-weight:800;padding:0 22px;cursor:pointer}.drawer{position:fixed;top:0;left:-420px;width:min(420px,94vw);height:100vh;background:#fff;z-index:80;box-shadow:10px 0 35px rgba(0,0,0,.18);transition:.25s;display:flex;flex-direction:column}.drawer.open{left:0}.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e8edf4}.drawer-head button{border:0;background:none;font-size:28px;cursor:pointer}.cart-row{display:grid;grid-template-columns:70px 1fr auto;gap:10px;padding:14px 18px;border-bottom:1px solid #edf0f5;align-items:center}.cart-row img{width:70px;height:70px;object-fit:cover;border-radius:9px}.qty{display:flex;align-items:center;gap:8px}.qty button{border:1px solid #dbe2ed;background:#fff;border-radius:6px;width:26px;height:26px;cursor:pointer}.cart-footer{margin-top:auto;padding:18px;border-top:1px solid #e8edf4}.cart-footer>div{display:flex;justify-content:space-between;margin-bottom:14px}.whatsapp{width:100%;height:48px;border:0;border-radius:10px;background:#20a764;color:#fff;font-family:inherit;font-weight:800;cursor:pointer}.overlay{position:fixed;inset:0;background:rgba(8,22,44,.45);z-index:70}.overlay.hidden{display:none}@media(max-width:1050px){.shop-top nav{gap:13px}.shop-top nav a{font-size:12px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:780px){.shop-top{min-height:75px}.shop-logo{width:105px}.shop-logo img{height:65px}.shop-top nav{display:none}.shop-actions{margin-right:auto}.search-row{grid-template-columns:1fr}.store-layout{grid-template-columns:1fr}.filters{position:static}.product-grid{grid-template-columns:1fr 1fr}.detail{grid-template-columns:1fr}.detail img{height:300px}}@media(max-width:520px){.product-grid{grid-template-columns:1fr}.store-heading h1{font-size:28px}}

/* FINAL BRAND HEADER — preserve the exact Al-Ahoud logo scale from the approved homepage */
.shop-header{height:auto;background:#fff;border-bottom:1px solid #e3e8ef;position:relative;z-index:20;box-shadow:none}
.shop-top{height:238px;min-height:238px;display:flex;align-items:center;gap:30px}
.shop-logo{width:225px;height:225px;flex:0 0 225px;display:flex;align-items:center;justify-content:center;margin-right:0;order:0}
.shop-logo img{display:block;width:100%;height:100%;object-fit:contain}
.shop-top nav{display:flex;align-items:center;justify-content:center;gap:34px;flex:1;margin:0 auto}
.shop-top nav a{color:#142744;text-decoration:none;font-weight:800;font-size:16px;white-space:nowrap;position:relative;padding:8px 0}
.shop-top nav a.active:after{content:"";position:absolute;right:0;left:0;bottom:-14px;height:3px;background:#d6252d;border-radius:3px}
.shop-actions{display:flex;align-items:center;gap:12px;order:2}
.service-btn{min-width:195px;height:76px;display:inline-flex;align-items:center;justify-content:center;background:#d6252d;color:#fff;text-decoration:none;padding:0 28px;border-radius:14px;font-weight:800;font-size:18px}
.icon-btn{position:relative;border:0;background:#eff4ff;color:#123f96;border-radius:12px;width:52px;height:52px;font-size:20px;cursor:pointer}
.search-row{display:grid;grid-template-columns:210px 1fr;gap:14px;padding:12px 0 18px}
@media(max-width:1200px){
  .shop-top{gap:20px}
  .shop-logo{width:190px;height:190px;flex-basis:190px}
  .shop-top nav{gap:18px}
  .shop-top nav a{font-size:14px}
  .service-btn{min-width:150px;height:64px;font-size:16px}
}
@media(max-width:900px){
  .shop-top{height:132px;min-height:132px;padding:10px 0}
  .shop-logo{width:150px;height:112px;flex-basis:150px}
  .shop-top nav{display:none}
  .shop-actions{margin-right:auto}
  .service-btn{display:none}
  .search-row{padding-top:12px}
}
@media(max-width:560px){
  .shop-top{height:122px;min-height:122px}
  .shop-logo{width:145px;height:108px;flex-basis:145px}
  .shop-actions{gap:8px}
  .icon-btn{width:48px;height:48px}
}

.modal input,.modal textarea{width:100%;box-sizing:border-box}
.modal .whatsapp{border:0;cursor:pointer;background:#25D366;color:#fff;padding:13px 18px;border-radius:10px;font:inherit;font-weight:800;justify-content:center}

/* ================================
   AL-AHOUD Quantity Modal
   ================================ */

#quantityModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  direction: rtl;
}

#quantityModal .quantity-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 31, 55, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#quantityModal .quantity-box {
  position: relative;
  width: min(440px, 94vw);
  background: #ffffff;
  border-radius: 22px;
  padding: 30px 28px 26px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(30, 86, 170, 0.12);
  text-align: center;
  animation: ahoudQuantityIn .18s ease-out;
}

@keyframes ahoudQuantityIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#quantityModal .quantity-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f8;
  color: #607086;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition: .2s;
}

#quantityModal .quantity-close:hover {
  background: #e8edf4;
  color: #173f7a;
}

#quantityModal .quantity-title {
  margin-top: 4px;
  margin-bottom: 12px;
  color: #123f82;
  font-size: 25px;
  font-weight: 800;
}

#quantityModal .quantity-product-name {
  color: #26364d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 8px;
}

#quantityModal .quantity-stock {
  color: #71809a;
  font-size: 14px;
  margin-bottom: 24px;
}

#quantityModal .quantity-stock b {
  color: #1b5db5;
  font-size: 16px;
}

#quantityModal .quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 26px;
}

#quantityModal .quantity-control button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #eef4ff;
  color: #1455a3;
  font-size: 27px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

#quantityModal .quantity-control button:hover {
  background: #dceaff;
  transform: translateY(-1px);
}

#quantityModal #quantityInput {
  width: 105px;
  height: 52px;
  border: 2px solid #d8e2ef;
  border-radius: 13px;
  outline: none;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #123f82;
  background: #fff;
  box-sizing: border-box;
}

#quantityModal #quantityInput:focus {
  border-color: #1b5db5;
  box-shadow: 0 0 0 4px rgba(27, 93, 181, .10);
}

#quantityModal .quantity-actions {
  display: flex;
  gap: 12px;
}

#quantityModal .quantity-actions button {
  flex: 1;
  min-height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}

#quantityModal #quantityCancel {
  border: 1px solid #d7e0eb;
  background: #fff;
  color: #65758b;
}

#quantityModal #quantityCancel:hover {
  background: #f6f8fb;
}

#quantityModal #quantityConfirm {
  border: 0;
  background: linear-gradient(135deg, #1455a3, #1d68c9);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 85, 163, .22);
}

#quantityModal #quantityConfirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 85, 163, .30);
}

@media (max-width: 520px) {
  #quantityModal .quantity-box {
    width: 94vw;
    padding: 26px 18px 20px;
    border-radius: 18px;
  }

  #quantityModal .quantity-title {
    font-size: 22px;
  }

  #quantityModal .quantity-product-name {
    font-size: 15px;
  }

  #quantityModal .quantity-control button {
    width: 44px;
    height: 44px;
  }

  #quantityModal #quantityInput {
    width: 90px;
    height: 48px;
  }
}
