/* ================== ROOT VARIABLES ================== */
:root{
  --yellow:#fcce00;
  --mint:#a0d7cf;
  --gray:#808080;
  --bg-light:#f9fafb;
  --font-main:"Cairo", sans-serif;
}

/* ================== RESET ================== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:var(--font-main);
  background:var(--bg-light);
  color:#333;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
}

/* ================== HEADER ================== */
header{
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(0,0,0,0.05);
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
  position:sticky;
  top:0;
  z-index:1000;

  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 40px;

  direction:rtl;
}

/* logo left */
.logo-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  flex-direction:row-reverse;
}

.logo-wrap img{
  width:clamp(26px, 4vw, 38px);
  height:auto;
}

.logo-text{
  font-weight:700;
  font-size:18px;
  color:var(--gray);
}

/* menu right */
nav{
  display:flex;
  gap:24px;
  position:relative; /* ???? ???????? ?? more ?????? ???? */
}


nav a{
  padding:7px 16px;
  color:#333;
  text-decoration:none;
  font-size:16px;
  border-radius:20px;
  transition:.3s;
}

nav a:hover,
nav a.active{
  background:var(--yellow) !important;
  color:#000 !important;
}


/* burger */
.menu-toggle{
  display:none;
  font-size:30px;
  cursor:pointer;
  color:#333;
  margin-right:12px;
}

/* ================== MOBILE NAV ================== */
@media(max-width:900px){

  .menu-toggle{
    display:block;
  }

  nav{
    position:absolute;
    top:70px;
    right:0;
    width:100%;
    flex-direction:column;
    background:#fff;
    text-align:center;

    transform:translateY(-200%);
    opacity:0;
    pointer-events:none;

    transition:.4s ease;
    box-shadow:0 6px 12px rgba(0,0,0,0.1);
  }

  nav.active{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  nav a{
    width:100%;
    padding:14px 0;
    border-bottom:1px solid #eee;
    border-radius:0;
  }
}

/* ================== DETAIL PAGE ================== */
.details-container{
  max-width:950px;
  margin:auto;
  padding:25px 20px;
}

.product-title{
  font-size:30px;
  font-weight:800;
  color:#444;
  margin-bottom:20px;
  text-align:right;
}

/* ================== GALLERY ================== */
.gallery-box{
  display:flex;
  gap:20px;
  margin-bottom:25px;
  align-items:flex-start;
}

.gallery-main{
  flex:1;
  min-width:0;
}

.gallery-main img{
  width:100%;
  height:380px; /* ثابت */
  object-fit:cover;
  border-radius:16px;
  box-shadow:0 4px 15px rgba(0,0,0,0.12);
}

/* الصور المصغّرة على اليمين */
.gallery-thumbs{
  width:120px;
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:380px; /* مهم!! حتى تبقى نفس ارتفاع الصورة الرئيسية */
  overflow-y:auto;
}

.gallery-thumbs img{
  width:100%;
  height:80px;
  object-fit:cover;
  border-radius:10px;
  cursor:pointer;
  opacity:0.8;
  transition:.3s;
}

.gallery-thumbs img:hover{
  opacity:1;
  transform:scale(1.05);
}

/* للجوال */
@media(max-width:850px){

  .gallery-box{
    flex-direction:column;
    gap:15px;
  }

  .gallery-main img{
    height:260px;
  }

  .gallery-thumbs{
    flex-direction:row;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    max-height:none;
    gap:10px;
    padding-bottom:10px;
  }

  .gallery-thumbs img{
    width:110px;
    height:75px;
    flex-shrink:0;
  }
}


/* ================== DESCRIPTION ================== */
.product-desc{
  margin-top:10px;
  font-size:18px;
  line-height:1.9;
  color:#444;
  background:#fff;
  padding:25px;
  border-radius:16px;
  box-shadow:0 4px 15px rgba(0,0,0,0.06);
}

/* ================== BUTTONS ================== */
.buttons-area{
  margin-top:25px;
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.order-btn{
  background:#25d366;
  color:white;
  padding:12px 25px;
  border-radius:25px;
  text-decoration:none;
  font-size:18px;
  font-weight:700;
  transition:.3s;
}

.order-btn:hover{
  background:#17b956;
}

.contact-btn{
  background:var(--mint);
  color:black;
  padding:12px 25px;
  border-radius:25px;
  text-decoration:none;
  font-size:18px;
  font-weight:700;
}

.contact-btn:hover{
  background:#7cc5ba;
}

.back-btn{
  background:#ddd;
  color:#000;
  padding:12px 25px;
  border-radius:25px;
  text-decoration:none;
  font-weight:700;
  font-size:17px;
}

.back-btn:hover{
  background:#cfcfcf;
}

/* ================== FOOTER ================== */
footer{
  background:#111;
  color:#eee;
  padding:25px 40px;
  border-top:1px solid rgba(255,255,255,0.08);
 margin-top: auto; 
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
}

.footer-content{
  width:100%;
  max-width:1200px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  direction:rtl;
}

.footer-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-direction:row-reverse;
}

.footer-logo{
  width:38px;
}

.footer-brand{
  font-weight:bold;
  font-size:16px;
  color:#ccc;
}

.footer-right{
  text-align:left;
  font-size:14px;
  color:#999;
  line-height:1.6;
}

.footer-right .tagline{
  color:var(--yellow);
  font-weight:500;
}

@media(max-width:768px){
  .footer-content{
    flex-direction:column;
    text-align:center;
    gap:12px;
  }
  .footer-right{
    text-align:center;
    font-size:13px;
  }
}
/*----------------------------------*/

.page-title{
  text-align:center;
  font-size:32px;
  font-weight:800;
  color:#444;
  margin-top:25px;
  margin-bottom:10px;
}

.page-sub{
  text-align:center;
  font-size:18px;
  color:#666;
  margin-bottom:25px;
}
/*----------------------------------*/
main{
  flex:1;
  width:100%;
}
/*----------------------------------*/
.download-count{
  font-size:14px;
  color:#666;
  margin-bottom:12px;
  
  text-align: left;
  align-items:center;
  gap:6px;
}

.download-count svg{
  width:16px;
  height:16px;
  fill:var(--yellow);
  opacity:0.9;
}

/*----------------------------------*/
.service-icon {
  width:32px;
  height:32px;
}
/*----------------------------------*/

/* English Font */
html[lang="en"] body{
    height:100%;
    font-family: 'Roboto', sans-serif;
}


.lang-switch a{
    background: var(--yellow);
    color:#000;
    padding:6px 12px;
    border-radius:12px;
    font-weight:700;
    text-decoration:none;
    margin-left:10px;
    transition:.3s;
}
.lang-switch a:hover{
    background:#000;
    color:#fff;
}
.footer-lang a{
    color:var(--yellow);
    font-weight:700;
    text-decoration:none;
    margin-top:10px;
    display:inline-block;
}
html[lang="en"] body{
    font-family: 'Roboto', sans-serif !important;
}

/* ================== MORE MENU ================== */

.more-menu{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.more-btn{
  padding:7px 16px;
  background:#eee;
  border-radius:20px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  user-select:none;
}

.more-dropdown{
  position:absolute;
  top:110%;
  right:0;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,0.1);
  border-radius:12px;
  min-width:170px;
  padding:8px 0;
  display:none;
  z-index:9999;
}

.more-menu.open .more-dropdown{
  display:block;
}

.more-dropdown a{
  display:block;
  padding:10px 16px;
  text-align:right;
  font-size:14px;
  border-radius:0;
  border-bottom:1px solid #eee;
}

.more-dropdown a:last-child{
  border-bottom:none;
}

/* ??????: ???? ??????? ???? more ???? ?????? ????? ?? ??????? ???????? ???????? */
@media(max-width:900px){
  .more-menu{
    width:100%;
  }
  .more-btn{
    display:none; /* ???? ?? More ?? ?????? */
  }
  .more-dropdown{
    position:static;
    box-shadow:none;
    display:block !important;
    padding:0;
    width:100%;
  }
  .more-dropdown a{
    width:100%;
    padding:14px 0;
    border-radius:0;
    border-bottom:1px solid #eee;
  }
}


  .my-link {
    text-decoration: none ; /* ?????? ???? ???? ??? */
    color: black;          /* ?????? ????? (????? ??? ?? ??? ??? #333) */
  }