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

:root{
  --navy:#082e56;
  --navy-2:#0c4174;
  --navy-3:#123c67;
  --gold:#e3aa37;
  --gold-2:#f8d17b;
  --green:#20a953;
  --green-2:#25D366;
  --ink:#0e2c50;
  --muted:#748294;
  --bg:#f7f9fb;
  --card:#ffffff;
  --line:#e4e8ed;
  --soft:#f4f7fa;
  --danger:#cf5151;
  --shadow:0 10px 28px rgba(8,46,86,.10);
  --shadow-lg:0 18px 45px rgba(8,46,86,.15);
  --r-lg:28px;
  --r-md:18px;
  --r-sm:13px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:linear-gradient(180deg,#fff 0%,#f7f9fb 55%,#f5f8fb 100%);
  color:var(--ink);
  font-family:"Cairo",Tahoma,Arial,sans-serif;
  line-height:1.65;
  padding-bottom:86px;
}
body.no-bottom{padding-bottom:0}
a{text-decoration:none;color:inherit}
button,input,textarea{font-family:inherit}
button{cursor:pointer}
.container{width:min(1180px,calc(100% - 28px));margin:auto}

/* ticker */
.ticker{
  position:relative;z-index:70;
  background:linear-gradient(90deg,#05294d,#0a3763,#05294d);
  color:#fff;overflow:hidden;white-space:nowrap;
}
.ticker-track{
  display:inline-block;
  padding:8px 0;
  animation:marquee 31s linear infinite;
  font-size:12px;font-weight:800;
}
.ticker-track span{display:inline-block;margin:0 24px}
.ticker-track i{color:var(--gold);font-style:normal;margin-left:8px}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* header */

.brand-logo-img{
  width:58px;height:58px;border-radius:18px;object-fit:cover;
  border:2px solid rgba(227,170,55,.75);
  box-shadow:0 10px 22px rgba(8,46,86,.20);
  flex:0 0 auto;
}
@media(max-width:860px){
  .brand-logo-img{width:52px;height:52px;border-radius:16px}
}
@media(max-width:540px){
  .brand-logo-img{width:45px;height:45px;border-radius:14px}
}

.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(228,232,237,.95);
}
.header-inner{
  min-height:86px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
  width:58px;height:58px;border-radius:19px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--navy),#0f568e);color:#fff;
  box-shadow:0 10px 22px rgba(8,46,86,.19);position:relative;flex:0 0 auto
}
.brand-mark:after{
  content:"";position:absolute;left:-5px;bottom:-5px;width:17px;height:17px;border-radius:50%;
  background:var(--gold);border:3px solid #fff
}
.brand-mark svg{width:34px;height:34px}
.brand h1{margin:0;color:var(--navy);font-size:22px;line-height:1.15;font-weight:900}
.brand p{margin:5px 0 0;color:#bc8a30;font-size:13px;font-weight:800}
.header-actions{display:flex;gap:9px;align-items:center}
.square-action{
  min-width:74px;padding:9px 10px;border-radius:17px;border:1px solid var(--line);
  display:grid;place-items:center;gap:3px;background:#fff;font-size:10px;font-weight:900;color:var(--navy);
  box-shadow:0 5px 14px rgba(8,46,86,.06)
}
.square-action.dark{background:var(--navy);color:#fff;border-color:var(--navy)}
.square-action.green{color:#168c46}
.square-action b{font-size:22px;line-height:1}
.menu-btn{
  width:48px;height:48px;border:0;background:transparent;color:var(--navy);
  font-size:32px;line-height:1;display:grid;place-items:center
}

/* hero */
.hero-wrap{padding:24px 0 8px}
.slider{
  position:relative;overflow:hidden;border-radius:30px;min-height:400px;
  background:linear-gradient(135deg,#062d57 0%,#082e56 55%,#104b84 100%);
  box-shadow:var(--shadow-lg)
}
.slide{
  position:absolute;inset:0;opacity:0;pointer-events:none;
  transform:scale(1.02);
  transition:opacity .55s ease,transform .55s ease;
  display:grid;grid-template-columns:1.12fr .88fr;align-items:center;gap:8px;
  padding:34px 42px;color:#fff
}
.slide.active{opacity:1;pointer-events:auto;transform:scale(1)}
.slide:before,.slide:after{
  content:"";position:absolute;border-radius:50%;border:1px solid rgba(227,170,55,.22)
}
.slide:before{width:420px;height:420px;right:-160px;top:-170px}
.slide:after{width:290px;height:290px;left:-120px;bottom:-120px}
.slide-copy{position:relative;z-index:2}
.pill{
  width:max-content;padding:7px 18px;border-radius:999px;
  background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#113359;
  font-size:13px;font-weight:900;margin-bottom:14px
}
.slide h2{margin:0 0 8px;font-size:46px;line-height:1.2;font-weight:900}
.slide h2 em{display:block;font-style:normal;color:var(--gold-2)}
.slide p{margin:0 0 18px;color:#e6eff8;font-size:16px;max-width:560px}
.cta-row{display:flex;gap:8px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  border:0;border-radius:999px;padding:11px 17px;font-size:12px;font-weight:900
}
.btn.gold{background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#0f3054}
.btn.green{background:var(--green);color:white}
.btn.navy{background:var(--navy);color:#fff}
.btn.outline{background:#fff;border:1px solid #dbe3e9;color:var(--navy)}
.btn.glass{background:rgba(255,255,255,.12);color:white;border:1px solid rgba(255,255,255,.2)}
.hero-visual{
  position:relative;z-index:2;min-height:275px;display:grid;place-items:center
}
.laptop{
  width:310px;height:185px;border:8px solid #cfd6df;border-bottom-width:18px;
  background:#f7fbff;border-radius:12px;position:relative;box-shadow:0 16px 24px rgba(0,0,0,.20)
}
.laptop:after{
  content:"";position:absolute;left:-32px;right:-32px;bottom:-36px;height:22px;
  background:linear-gradient(#e5e9ef,#aab6c2);border-radius:4px 4px 18px 18px
}
.screen-row{height:10px;border-radius:8px;background:#dce5ee;margin:15px}
.screen-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px}
.screen-grid span{height:34px;border-radius:5px;background:#e3ebf3;border-right:8px solid #173e70}
.cap{position:absolute;top:-24px;right:15px;font-size:76px;filter:drop-shadow(0 10px 12px rgba(0,0,0,.22))}
.clip{position:absolute;bottom:-2px;left:5px;font-size:80px;filter:drop-shadow(0 10px 10px rgba(0,0,0,.18))}
.slider-controls{position:absolute;inset-inline:22px;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;z-index:4;pointer-events:none}
.slider-arrow{pointer-events:auto;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(0,0,0,.12);color:#fff;font-size:28px}
.slider-dots{position:absolute;bottom:18px;left:0;right:0;z-index:5;display:flex;gap:8px;justify-content:center}
.dot{width:11px;height:11px;border:0;border-radius:50%;background:#fff;opacity:.9;padding:0}
.dot.active{background:var(--gold)}

/* section */
.section{padding:30px 0}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.section-title{display:flex;align-items:center;gap:9px;margin:0;font-size:28px;color:var(--navy);font-weight:900}
.section-title:before{content:"";width:10px;height:10px;background:var(--gold);border-radius:50%}
.section-hint{font-size:12px;color:var(--muted);font-weight:800}

/* service cards */
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.service-card{
  background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px 14px;
  text-align:center;box-shadow:0 7px 18px rgba(8,46,86,.06);transition:.2s ease
}
.service-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.service-icon{font-size:52px;line-height:1;margin-bottom:11px}
.service-card h3{margin:0;color:var(--navy);font-size:15px}
.service-card p{margin:5px 0 9px;color:var(--muted);font-size:11px}
.service-card button{border:0;background:#eff6fb;color:var(--navy);border-radius:999px;padding:6px 10px;font-size:10px;font-weight:900}

/* category cards */
.categories-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.category-card{
  background:#fff;border:1px solid #efdfbd;border-radius:22px;padding:20px 15px;
  text-align:center;box-shadow:0 7px 18px rgba(8,46,86,.05);transition:.2s ease
}
.category-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.category-visual{font-size:64px;line-height:1;margin-bottom:10px}
.category-card h3{margin:0;color:var(--navy);font-size:18px}
.category-card p{margin:5px 0 0;color:var(--muted);font-size:11px}
.category-card .open{display:inline-flex;align-items:center;gap:6px;margin-top:8px;color:var(--navy);font-size:11px;font-weight:900}

/* simple promo */
.promo-strip{
  margin:14px 0 0;padding:16px 18px;border-radius:20px;
  background:linear-gradient(135deg,#fff7e4,#fffdf8);border:1px solid #efdcb1;
  display:flex;align-items:center;justify-content:space-between;gap:10px
}
.promo-strip strong{color:var(--navy);font-size:15px}
.promo-strip span{color:#887143;font-size:11px}


.service-icon-img{
  width:78px;height:78px;object-fit:contain;display:block;margin:0 auto 11px;
}
.category-icon-img{
  width:92px;height:92px;object-fit:contain;display:block;margin:0 auto 10px;
}
@media(max-width:540px){
  .service-icon-img{width:66px;height:66px;margin-bottom:9px}
  .category-icon-img{width:78px;height:78px;margin-bottom:8px}
}

/* footer */
footer{padding:28px 0 108px;text-align:center;color:var(--muted);font-size:11px}
footer strong{display:block;color:var(--navy);font-size:14px;margin-bottom:3px}

/* bottom nav */
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:80;
  display:grid;grid-template-columns:repeat(4,1fr);
  background:linear-gradient(90deg,#062d57,#0b3d70);
  box-shadow:0 -8px 24px rgba(8,46,86,.14)
}
.bottom-nav a{
  min-height:72px;display:grid;place-items:center;align-content:center;gap:2px;
  color:#fff;font-size:11px;font-weight:800
}
.bottom-nav a.active{color:var(--gold-2);background:rgba(255,255,255,.04)}
.bottom-nav b{font-size:23px;line-height:1}
.nav-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--gold);color:#fff;font-size:10px;position:absolute;margin-right:17px;margin-top:-13px}

/* modal */
.modal-backdrop{
  display:none;position:fixed;inset:0;z-index:100;background:rgba(0,24,50,.56);padding:18px;
  align-items:center;justify-content:center
}
.modal-backdrop.show{display:flex}
.modal{
  width:min(620px,100%);max-height:84vh;overflow:auto;background:#fff;border-radius:24px;padding:18px;
  box-shadow:0 22px 60px rgba(0,0,0,.22)
}
.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:10px;border-bottom:1px solid var(--line)}
.modal h3{margin:0;color:var(--navy);font-size:20px}
.close-modal{width:34px;height:34px;border:0;border-radius:50%;background:#eff6fb;color:var(--navy);font-size:18px;font-weight:900}
.requirements{display:grid;gap:8px;margin:13px 0}
.req{display:flex;gap:8px;align-items:flex-start;padding:10px;background:#f8fbfd;border:1px solid #e8eef3;border-radius:13px;font-size:12px;font-weight:800}
.req span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e6f4fb;color:var(--navy);font-size:11px;flex:0 0 auto}

/* category page */
.page-top{padding:20px 0 4px}
.back-btn{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:10px 14px;color:var(--navy);font-size:12px;font-weight:900;box-shadow:0 5px 14px rgba(8,46,86,.05)}
.page-title-row{display:flex;justify-content:space-between;gap:14px;align-items:end;margin:20px 0 12px}
.page-title-row h2{margin:0;color:var(--navy);font-size:32px;font-weight:900}
.page-title-row p{margin:4px 0 0;color:var(--muted);font-size:13px}
.cart-link{display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:var(--navy);color:white;padding:10px 14px;font-size:11px;font-weight:900}
.cart-link .count{display:grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border-radius:50%;background:var(--gold)}

/* product grid */
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.product-card{
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;
  box-shadow:0 7px 18px rgba(8,46,86,.06)
}
.product-visual{
  height:132px;border-radius:15px;display:grid;place-items:center;
  background:linear-gradient(135deg,#fbfdff,#f1f6fa);font-size:65px;margin-bottom:10px
}
.product-card h3{margin:0;color:var(--navy);font-size:15px}
.product-card p{margin:3px 0;color:var(--muted);font-size:10px}
.product-price{margin-top:auto;color:#be8423;font-size:16px;font-weight:900}
.product-price small{display:block;color:var(--muted);font-size:9px}
.qty-control{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0}
.qty-control button{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--navy);font-size:22px;line-height:1}
.qty-control span{font-size:16px;color:var(--navy);font-weight:900}
.add-btn{width:100%;border:0;background:var(--navy);color:#fff;border-radius:12px;padding:10px;font-size:11px;font-weight:900}
.add-btn:active{transform:scale(.99)}
.sticky-invoice{
  position:sticky;bottom:82px;z-index:25;margin-top:18px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:linear-gradient(90deg,#062d57,#0b3d70);color:#fff;border-radius:999px;padding:13px 18px;
  box-shadow:0 12px 24px rgba(8,46,86,.18)
}
.sticky-invoice strong{display:block;font-size:13px}
.sticky-invoice span{display:block;color:var(--gold-2);font-size:11px}
.sticky-invoice b{font-size:24px}

/* invoice */
.invoice-card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}
.invoice-head,.invoice-row{display:grid;grid-template-columns:1.6fr .8fr .9fr .9fr auto;gap:8px;align-items:center;padding:13px}
.invoice-head{background:#f6f9fb;color:var(--navy);font-size:11px;font-weight:900;border-bottom:1px solid var(--line)}
.invoice-row{border-bottom:1px solid #edf0f3}
.invoice-row:last-child{border-bottom:0}
.item-name{display:flex;align-items:center;gap:8px}
.item-name b{font-size:30px}
.item-name strong{display:block;color:var(--navy);font-size:12px}
.item-name small{display:block;color:var(--muted);font-size:9px}
.invoice-row .mini-qty{display:flex;align-items:center;gap:6px}
.invoice-row .mini-qty button{width:26px;height:26px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--navy);font-size:15px}
.invoice-row .mini-qty span{min-width:18px;text-align:center;font-size:12px;font-weight:900}
.money{font-size:12px;color:var(--navy);font-weight:900}
.remove{border:0;background:#fff0f0;color:var(--danger);border-radius:999px;padding:6px 9px;font-size:9px;font-weight:900}
.empty{padding:28px;text-align:center;color:var(--muted);font-size:13px}

.summary-box{
  margin-top:15px;background:linear-gradient(135deg,#062d57,#0b3d70);color:#fff;
  border-radius:20px;padding:17px;box-shadow:var(--shadow)
}
.summary-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:13px;border-bottom:1px dashed rgba(255,255,255,.25)}
.summary-row:last-child{border-bottom:0;font-size:18px;color:var(--gold-2);font-weight:900}
.form-card{margin-top:15px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:15px;box-shadow:var(--shadow)}
.field{display:grid;gap:6px;margin-bottom:11px}
.field label{font-size:12px;font-weight:900;color:var(--navy)}
.field input,.field textarea{border:1px solid var(--line);border-radius:13px;padding:12px 13px;background:#fcfdff;font-size:12px;outline:none}
.field textarea{min-height:90px;resize:vertical}
.stack{display:grid;gap:8px}
.wide{width:100%}

/* responsive */
@media(max-width:860px){
  .header-inner{min-height:78px}
  .brand h1{font-size:18px}.brand p{font-size:11px}
  .brand-mark{width:52px;height:52px}
  .square-action{min-width:62px;padding:8px;font-size:9px}
  .square-action b{font-size:20px}
  .menu-btn{display:none}
  .slide{grid-template-columns:1fr;padding:24px 20px}
  .slide h2{font-size:36px}
  .slide p{font-size:14px}
  .hero-visual{display:none}
  .slider{min-height:300px}
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .categories-grid{grid-template-columns:repeat(2,1fr)}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .page-title-row h2{font-size:27px}
}
@media(max-width:540px){
  body{padding-bottom:76px}
  .container{width:min(100% - 22px,1180px)}
  .ticker-track{font-size:10px;padding:7px 0}
  .header-inner{min-height:71px;gap:6px}
  .brand{gap:8px}.brand-mark{width:45px;height:45px;border-radius:15px}.brand-mark svg{width:27px;height:27px}
  .brand h1{font-size:15px}.brand p{font-size:9px;margin-top:3px}
  .header-actions{gap:5px}
  .square-action{min-width:53px;padding:7px 6px;border-radius:13px;font-size:8px}
  .square-action b{font-size:18px}
  .hero-wrap{padding-top:14px}
  .slider{min-height:270px;border-radius:21px}
  .slide{padding:20px 18px}
  .slide h2{font-size:30px}
  .slide p{font-size:12px}
  .pill{font-size:10px;padding:6px 12px}
  .slider-controls{inset-inline:10px}.slider-arrow{width:38px;height:38px;font-size:22px}
  .section{padding:22px 0}
  .section-title{font-size:22px}.section-hint{font-size:10px}
  .services-grid{gap:9px}
  .service-card{padding:13px 8px;border-radius:17px}
  .service-icon{font-size:42px}.service-card h3{font-size:12px}.service-card p{font-size:9px}
  .categories-grid{gap:9px}
  .category-card{padding:15px 8px;border-radius:17px}
  .category-visual{font-size:50px}.category-card h3{font-size:13px}.category-card p,.category-card .open{font-size:9px}
  .promo-strip{padding:12px}.promo-strip strong{font-size:12px}.promo-strip span{font-size:9px}
  .bottom-nav a{min-height:64px;font-size:9px}.bottom-nav b{font-size:21px}
  footer{padding-bottom:88px}
  .page-top{padding-top:14px}
  .back-btn{font-size:10px;padding:8px 11px}
  .page-title-row{margin-top:16px;align-items:flex-start;flex-direction:column}
  .page-title-row h2{font-size:24px}.page-title-row p{font-size:11px}
  .product-grid{gap:9px}
  .product-card{padding:10px;border-radius:16px}
  .product-visual{height:100px;font-size:50px;border-radius:12px}
  .product-card h3{font-size:12px}.product-card p{font-size:9px}
  .product-price{font-size:13px}
  .qty-control{margin:7px 0}.qty-control button{width:30px;height:30px}.qty-control span{font-size:14px}
  .add-btn{font-size:9px;padding:9px 5px}
  .sticky-invoice{bottom:70px;padding:11px 14px}.sticky-invoice strong{font-size:11px}.sticky-invoice span{font-size:9px}
  .invoice-head{display:none}
  .invoice-row{grid-template-columns:1fr;gap:7px;padding:11px}
  .invoice-row .mini-qty{justify-content:flex-start}
  .money:before{content:"الإجمالي: ";color:var(--muted);font-weight:800}
  .unit:before{content:"سعر الوحدة: ";color:var(--muted);font-weight:800}
}


/* Detailed mobile invoice layout */
.invoice-title-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.invoice-title-icon{
  width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
  background:#fff9e9;border:1px solid #eedaaa;color:var(--gold);
  font-size:22px;box-shadow:0 5px 14px rgba(8,46,86,.06)
}
.invoice-card{overflow-x:auto}
.invoice-head,.invoice-row{
  min-width:690px;
  grid-template-columns:2.15fr 1fr 1fr 1fr auto;
}
.invoice-head{
  display:grid!important;
  padding:13px 15px;
}
.invoice-row{
  position:relative;
  padding:15px;
}
.invoice-row .item-name b{
  width:62px;height:62px;border-radius:12px;display:grid;place-items:center;
  background:#f7fafc;font-size:35px
}
.invoice-row .mini-qty{
  justify-content:center;
}
.invoice-row .mini-qty button{
  width:29px;height:29px;
}
.invoice-row .money{
  font-size:13px;
}
.remove{
  align-self:center;
}
.summary-box{
  background:linear-gradient(135deg,#072f59,#0d477d);
}
.form-card .btn.green{
  font-size:13px;padding:12px 14px;
}
.form-card .btn.outline{
  font-size:12px;padding:11px 14px;
}
@media(max-width:540px){
  .invoice-card{
    border-radius:17px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .invoice-head,.invoice-row{
    min-width:640px;
    grid-template-columns:2.05fr .95fr .95fr .95fr auto;
  }
  .invoice-head{display:grid!important;font-size:10px;padding:11px}
  .invoice-row{grid-template-columns:2.05fr .95fr .95fr .95fr auto!important;gap:7px;padding:11px}
  .invoice-row .money:before{content:""!important}
  .invoice-row .unit:before{content:""!important}
  .invoice-row .item-name b{
    width:50px;height:50px;font-size:29px;border-radius:10px
  }
  .invoice-row .item-name strong{font-size:11px}
  .invoice-row .item-name small{font-size:8px}
  .invoice-row .mini-qty button{width:24px;height:24px;font-size:13px}
  .invoice-row .mini-qty span{font-size:11px}
  .invoice-row .money{font-size:11px}
  .remove{font-size:8px;padding:5px 7px}
}
