/* =========================
   Global reset / stability
   ========================= */
* {
  box-sizing: border-box;
  transform-style: flat;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transition: none !important;
  animation: none !important;
}

/* =========================
   Root / page base
   ========================= */
:root {
  --pst-legal-gap: 6px;
}

html {
  height: 100%;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* =========================
   Home page specific
   ========================= */
body.home-page.index-page {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 0;
}

/* =========================
   Navbar text alignment
   ========================= */
#main-nav,
.main-nav {
  line-height: 1;
}

#main-nav a,
#main-nav button,
.main-nav a,
.main-nav button {
  line-height: 1;
}

/* =========================
   Desktop / laptop layout
   ========================= */

  :root {
    --pst-nav-h: calc(var(--vh, 1vh) * 16);
  }

  nav.main-nav {
    width: 100%;
    height: var(--pst-nav-h);
    min-height: var(--pst-nav-h);
  }




/* يمنع تكبير الخط الغريب على بعض أندرويد */
html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ✅ Fix Android fixed offset */
#pst-auth-shell,
.floating-ui{

  top: calc(var(--vv-top, 0px) + 72px) !important; /* 72px = top الذي تريده فعلياً */
  /* اترك left/transform كما هي عندك */
}


@supports (height: 100dvh){
  .use-dvh{ height: 100dvh; }
}




.is-hidden { 
  display: none !important; 
}




nav.main-nav,
nav.main-nav .nav-container,
nav.main-nav .nav-right,
nav.main-nav .nav-links {
  overflow: visible !important;
}





/* FIX floating search bar */
.floating-search-bar {
  transform: translate(-50%, 0);
}
.floating-search-bar{
  will-change: transform;
}






@media only screen
  and (min-width: 1024px)
  and (max-width: 1919px)
  and (hover: hover)
  and (pointer: fine) {

.floating-search-bar{
  top: 300px !important;   /* جرّب 48 / 56 / 72 حسب navbar */
}
.floating-search-bar{
  left: 48% !important;
}
 
}

/* Wide Desktop */
@media (min-width: 1920px) {

.floating-search-bar{
  top: 48px !important;   /* جرّب 48 / 56 / 72 حسب navbar */
}
.floating-search-bar{
  left: 50% !important;
}
}

/* Mobile Portrait */
@media (orientation: portrait) and (min-width: 368px) and (max-width: 480px) {
.floating-search-bar{
  top: 400px !important;   /* جرّب 48 / 56 / 72 حسب navbar */
}
.floating-search-bar{
  left: 48% !important;
}
  
}
/* Mobile Portrait */
@media (orientation: portrait) and (max-width: 367px) { 
.floating-search-bar{
  top: 450px !important;   /* جرّب 48 / 56 / 72 حسب navbar */
}
.floating-search-bar{
  left: 50% !important;
}
  
}


/* ==========================================
   📲 1. MOBILE LANDSCAPE-1
   ========================================== */
@media (orientation: landscape) and (max-width: 699px) {
.floating-search-bar{
  top: 255px !important;   /* جرّب 48 / 56 / 72 حسب navbar */
}
.floating-search-bar{
  left: 47% !important;
}

}

/* ==========================================
   📲 1. MOBILE LANDSCAPE-2
   ========================================== */
@media (orientation: landscape) and (min-width: 700px) and (max-width: 889px) {

.floating-search-bar{
  top: 200px !important;   /* جرّب 48 / 56 / 72 حسب navbar */
}
.floating-search-bar{
  left: 48% !important;
}

}


/*==========================================
 Tablet Portrait
 =========================================== */
@media (orientation: portrait) and (min-width: 481px) and (max-width: 1249px) {
.floating-search-bar{
  top: 420px !important;   /* جرّب 48 / 56 / 72 حسب navbar */
}
.floating-search-bar{
  left: 50% !important;
}
 
}


/* ==========================================
   💻  TABLET LANDSCAPE
   ========================================== */

@media only screen 
  and (min-device-width: 899px)
  and (max-device-width: 1370px)
  and (orientation: landscape)
  and (-webkit-min-device-pixel-ratio: 2) {

.floating-search-bar{
  top: 320px !important;   /* جرّب 48 / 56 / 72 حسب navbar */
}
.floating-search-bar{
  left: 50% !important;
}

}






/*================================
device info
==================================*/

    .floating-div {

display: none;


      position: fixed;                /* عنصر ثابت */
      bottom: 2px;                   /* المسافة من الأسفل */
      left: 20px;                    /* المسافة من اليمين */
      background-color: rgba(0, 0, 0, 0.7);  /* خلفية شفافة داكنة */
      color: white;
      padding: 15px 20px;
      border-radius: 10px;
      
      z-index: 9999;                  /* على الأعلى دائمًا */
      max-width: 270px;
      backdrop-filter: blur(5px);     /* اختياري: تأثير ضبابي */
    }


    pre {
      white-space: pre-wrap;
      word-wrap: break-word;
      overflow-wrap: break-word;
      margin: 0;
    }


.bg-container {
  z-index: 999999999;
}





/* ==========================================
   💻  TABLET LANDSCAPE
   ========================================== */

@media only screen 
  and (min-device-width: 899px)
  and (max-device-width: 1370px)
  and (orientation: landscape)
  and (-webkit-min-device-pixel-ratio: 2) {

.bg-container {
 

width: 100% !important;


}

}




/*==========================================
 Tablet Portrait
 =========================================== */
@media (orientation: portrait) and (min-width: 481px) and (max-width: 1249px) {

 

.bg-container {
 

width: 100% !important;


}
}





.main {
   flex: 1; /* هذا هو “stretch” */

  
  width: 100% !important;
    list-style: none !important;
     text-decoration: none;
     align-items: center;
   justify-content: center;
 

    display: inline-grid;
   
}



:root {
  --brand-green: #006400;
}



/*-----عداد السلة-----*/


.cart-badge{
  display:inline-block;
 
  width: 14px;
  height: 20px;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  background:#d33;
  color:#fff;
  vertical-align: top;
  margin-left: 0px;
}







/* حماية من التمايل في الشاشات الصغيرة */
@media (orientation: portrait) and (max-width: 480px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}







/* ==========================================
   📲 1. MOBILE LANDSCAPE
   ========================================== */
@media (orientation: landscape) and (max-width: 989px) {
  html, body {
    max-width: 100%;
   
  }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}





/* ==========================================
   Contact Page Styles
   ========================================== */
.contact-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #ebe8e8 !important;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-box, .form-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-box h2, .form-box h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #185a39;
  margin-bottom: 1rem;
}

.info-box p {
  text-align: center;
  font-size: 1rem;
  color: #313131;
}

.info-box a {
  color: #10744a;
  text-decoration: none;
}
.info-box a:hover {
  text-decoration: underline;
}

.form-box form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-box input, .form-box textarea {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}
.form-box textarea {
  min-height: 150px;
  resize: vertical;
}
.form-box button {
  padding: 0.75rem;
  background-color: #28a745;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.form-box button:hover {
  background-color: #218838;
}
#form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}

/* ==========================================
   Auth Forms
   ========================================== */
.auth-container {
  max-width: 450px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.auth-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-box h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 1rem;
}
.auth-box form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-box input {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.auth-box button[type="submit"] {
  padding: 0.75rem;
  background-color: #28a745;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.auth-box button[type="submit"]:hover {
  background-color: #218838;
}
.divider {
  text-align: center;
  color: #888;
  margin: 1rem 0;
}
.switch-btn {
  background: none;
  border: none;
  color: #007bff;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.switch-btn:hover {
  color: #0056b3;
}

/* ==========================================
   Footer + Utilities
   ========================================== */
.main-footer {
  margin-top: 4vh;
  padding: 2vh 0;
  text-align: center;
  color: #241f1f;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.hidden {
  display: none !important;
}










.wrapper-search-bar{
  position: relative !important;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none; /* لا تعيق النقر */
  z-index: 999999999;
}


.floating-search-bar{
  pointer-events: auto;
  position: absolute !important;          /* سنحدد top/left من JS */
  opacity: 1;
  visibility: visible;
  z-index: 9999999 !important;
}




.floating-search-bar {
border: 2px solid  #133113cc;

}

/* ==========================================
   🖥️  LAPTOP / DESKTOP STANDARD
   ========================================== */

@media only screen
  and (min-width: 1024px)
 
  and (hover: hover)
  and (pointer: fine) {

.floating-search-bar {

  z-index: 999999;
  display: flex;
  background-color: #9fac9fcc;
  box-shadow: 0 4px 10px rgba(247, 246, 246, 0.1);
  border-radius: 40px;
  padding: 0.3rem 0.5rem;
  backdrop-filter: blur(5px);
}






.floating-search-bar input {
  color: #f2f3f2;
  border: 1px solid rgba(247, 246, 246, 0.1);
  padding: 0.6rem 1rem;
  border-radius: 30px;
  outline: none;
  font-size: 1rem;
  background: transparent;
  width: 200px;
  height: 2px;
}
 
}

/* Mobile Portrait */
@media (orientation: portrait) and (min-width: 368px) and (max-width: 480px) {

  
.floating-search-bar {
 position: absolute !important;

  z-index: 9999999 !important;
  display: flex;
  background-color: #9fac9fcc;
  box-shadow: 0 4px 10px rgba(247, 246, 246, 0.1);
  border-radius: 40px;
  padding: 0.3rem 0.5rem;
  backdrop-filter: blur(5px);
}

.floating-search-bar input {
  color: #f2f3f2;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  outline: none;
  font-size: 1rem;
  background: transparent;
  width: 190px;
  height: 6px;
}
}
/* Mobile Portrait */
@media (orientation: portrait) and (max-width: 367px) { 

.floating-search-bar {

 

  z-index: 99999999 !important;
  display: flex;
  background-color: #9fac9fcc;
  box-shadow: 0 4px 10px rgba(247, 246, 246, 0.1);
  border-radius: 40px;
  padding: 0.3rem 0.5rem;
  backdrop-filter: blur(5px);
}

.floating-search-bar input {
  color: #f2f3f2;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  outline: none;
  font-size: 1rem;
  background: transparent;
  width: 190px;
  height: 3px;
}
  
}


/* ==========================================
   📲 1. MOBILE LANDSCAPE
   ========================================== */
@media (orientation: landscape) and (max-width: 889px) {

.floating-search-bar {
  position: absolute;
 

  z-index: 9999;
  display: flex;
  background-color: #9fac9fcc;
  box-shadow: 0 4px 10px rgba(247, 246, 246, 0.1);
  border-radius: 40px;
  padding: 0.3rem 0.5rem;
  backdrop-filter: blur(5px);
}

.floating-search-bar input {
  color: #f2f3f2;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  outline: none;
  font-size: 1rem;
  background: transparent;
  width: 200px;
  height: 3px;
}
}

/* Tablet / iPad Portrait */
@media (orientation: portrait) and (min-width: 490px) and (max-width: 1249px) {

.floating-search-bar {
  position: absolute !important;
 


  display: flex;
  background-color: #9fac9fcc;
  box-shadow: 0 4px 10px rgba(247, 246, 246, 0.1);
  border-radius: 40px;
  padding: 0.3rem 0.5rem;
  backdrop-filter: blur(5px);
}

.floating-search-bar input {
  color: #f2f3f2;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  outline: none;
  font-size: 1rem;
  background: transparent;
  width: 250px;
  height: 1vh;
}
}

/* ==========================================
   💻  TABLET LANDSCAPE
   ========================================== */

@media only screen 
  and (min-device-width: 899px)
  and (max-device-width: 1370px)
  and (orientation: landscape)
  and (-webkit-min-device-pixel-ratio: 2) {

.floating-search-bar {
  
 
  z-index: 9999;
  display: flex;
  background-color: #9fac9fcc;
  box-shadow: 0 4px 10px rgba(247, 246, 246, 0.1);
  border-radius: 40px;
  padding: 0.3rem 0.5rem;
  backdrop-filter: blur(5px);
}

.floating-search-bar input {
  color: #f2f3f2;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  outline: none;
  font-size: 1rem;
  background: transparent;
  width: 220px;
  height: 1vh;
}






}



#searchRegion {
  background-color: #9fac9fcc;
  color: #fafdfb;
}




/* ==========================================
   🖥️  LAPTOP / DESKTOP STANDARD
   ========================================== */

@media only screen
  and (min-width: 1024px)
  
  and (hover: hover)
  and (pointer: fine) {


.floating-search-bar{
            /* داخل التدفق */
  width: min(52%, 300px);
 
  z-index: 9999999;                  /* فوق الخلفيات */
}

}


/* Mobile Portrait */
@media (orientation: portrait) and (max-width: 367px) { 

.floating-search-bar{
       
  width: min(52%, 300px);
 
             }

}


/* Mobile Portrait */
@media (orientation: portrait) and (min-width: 368px) and (max-width: 480px) {

.floating-search-bar{

  width: min(52%, 300px);
 
}


}


@media (orientation: landscape) and (max-width: 699px) {

.floating-search-bar{
  position: absolute !important; 
  display: flex; 
  align-items: center; 
  justify-content: center;       /* داخل التدفق */
  width: min(42%, 200px);
  height: 4.5vh;
  z-index: 2;                  /* فوق الخلفيات */
}

  }


/* ==========================================
   📲 1. MOBILE LANDSCAPE
   ========================================== */
@media (orientation: landscape) and (min-width: 700px) and (max-width: 889px) {

.wrapper-search-bar {
  position: relative !important;
}
  

.floating-search-bar{
  position: absolute !important;          /* داخل التدفق */
  width: min(52%, 220px);
  height: 20px;
 
  z-index: 2;                  /* فوق الخلفيات */
}

  }

/* Tablet / iPad Portrait */
@media (orientation: portrait) and (min-width: 490px) and (max-width: 1249px) {

  
.floating-search-bar{
  position: absolute !important;          /* داخل التدفق */
  width: min(52%, 300px);
          
}

}

/* ==========================================
   💻  TABLET LANDSCAPE
   ========================================== */

@media only screen 
  and (min-device-width: 899px)
  and (max-device-width: 1370px)
  and (orientation: landscape)
  and (-webkit-min-device-pixel-ratio: 2) {

.floating-search-bar{
  position: fixed;          /* داخل التدفق */
  width: min(52%, 300px);
            
}

}






