/* ===================== */
/*     Pastura Styles    */
/* ===================== */


/* ==========================================
   Global Reset & Base Styles
   ========================================== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background: url('/images/wood-bg3.jpg') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
}




/* 1) استقرار عام */
html {
  box-sizing: border-box;
  scrollbar-gutter: stable both-edges; /* يمنع اختلاف العرض بسبب شريط التمرير */
}


@media (max-width: 768px) {
  /* حماية من التمايل الأفقي بسبب 100vw أو سكروول */
  html, body { max-width: 100%; overflow-x: hidden; }


  /* 4) منع تكبير النص التلقائي على iOS */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

}




@media (orientation: portrait) and (max-width: 480px) {
  .all {
    margin-top: 25vh;
  }

}







/* ==========================================
   📲 1. MOBILE LANDSCAPE
   ========================================== */
@media (orientation: landscape) and (max-width: 889px) {
 .all {
    margin-top: 40vh;
  }


}






/* ==========================================
   Main Navbar – Global Style (Relative Units)
   ========================================== */
/* ===== Desktop (≥768px) ===== */
@media (min-width: 48em) {
 .main-nav {
  display: flex;
  justify-content: space-between;  /* Pastura يسار / USA يمين */
  align-items: center;             /* محاذاة عمودية وسط */
  padding: 1vh 2vw;
  background-color: rgba(179, 201, 185, 0.9);
  height: 80px;                    /* شريط مرن */
  box-shadow: 0 .2vh .8vh rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;
  box-sizing: border-box;
}

  .nav-links ul {
    display: flex;
    gap: 2vw;
    list-style: none;
    margin: 0;
    padding: 0;
  }




.nav-links {
  list-style: none;        /* يلغي ظهور النقطة */
  margin: 0;
  padding: 0;
}

.nav-links li::marker {
  content: none !important; /* يمنع توليد الرمز */
}

























 .main-nav a {
  flex: 0 1 auto;                     /* يسمح لها بالتقلص */
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #fff;
  padding: clamp(0.4rem, 1vh, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
  background: #b8c2b8cc;
 
  white-space: nowrap;                /* ما يتكسر النص */
  max-width: 45%;               /* نصف عرض الشريط تقريبًا */
  overflow: hidden;                   /* يخفي النص الزايد */
  text-overflow: ellipsis;   
   border: 2px solid  #133113cc;
}


  .main-nav a:hover { 

  background: #9fac9fcc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);


   }
}

/* ===== Mobile (≤767px) ===== */
@media (max-width: 47.9em) {
 .main-nav {
  display: flex;
  justify-content: space-between;  /* Pastura يسار / USA يمين */
  align-items: center;             /* محاذاة عمودية وسط */
  padding: 1vh 2vw;
  background-color: #b8c2b8cc;
  height: 80px;                    /* شريط مرن */
  box-shadow: 0 .2vh .8vh rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
   left: 0;
  width: 100%;
  z-index: 99999999999;
  box-sizing: border-box;
}






  .nav-links ul {
    display: flex;
    gap: 4vw; /* فراغ أكبر للموبايل */
    list-style: none;
    margin: 0;
    padding: 0;
  }




.nav-links {
  list-style: none;        /* يلغي ظهور النقطة */
  margin: 0;
  padding: 0;
}

.nav-links li::marker {
  content: none !important; /* يمنع توليد الرمز */
}



 .main-nav a {
  flex: 0 1 auto;                     /* يسمح لها بالتقلص */
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #fff;
  padding: clamp(0.4rem, 1vh, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
  background: #b8c2b8cc;
  border-radius: 0.5rem;
  white-space: nowrap;                /* ما يتكسر النص */
  max-width: 45%;                     /* نصف عرض الشريط تقريبًا */
  overflow: hidden;                   /* يخفي النص الزايد */
  text-overflow: ellipsis; 
   border: 2px solid  #133113cc;
}


  .main-nav a:hover { color: #ffd5d5; }
}




.product-image-wrapper {
  position: relative;
  overflow: hidden;
   border-radius: 14px;
}

.floating-label {
  position: absolute;
 
  left: auto;
  top: 2px;
  right: 8px;
  z-index: 5;
  background: rgba(165, 122, 122, 0.75);
  color: #fff;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: calc(100% - 16px);
}





.product-wrapper1 {
  position: relative;
}



.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}


.nav-center {
 
  transform: translateX(-20px);

  display: flex;
  z-index: 99999999;
  
}




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



.nav-center {
 
  transform: translateX(-1050px);

  display: flex;
  
}
 
}



.nav-dropdown--origin {
  position: relative;
  display: inline-block;
  z-index: 1000;
}

.nav-dropdown--origin .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 80px;
  max-width: 200px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  padding: 12px;
  z-index: 1000;
}

.nav-dropdown--origin.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-note {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}








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





#searchInput {
  width: 97% !important;
}


.floating-search-bar {
border: 4px solid  #687879cc;
border-radius: 10px;
}

























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

.floating-search-bar{

  height: 3vh;
  width: 20vw;
  left: 39vw;
  top: 20vh;
  
}
  }
/* 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: 23vh;
}
.floating-search-bar{
  left: 19vw;
}
  
}
/* Mobile Portrait */
@media (orientation: portrait) and (max-width: 367px) { 
.floating-search-bar{
  top: 23vh;   /* جرّب 48 / 56 / 72 حسب navbar */
}
.floating-search-bar{
  left: 19vw;
}
  
}


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

}

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

.floating-search-bar{
  top: 33vh; 
 left: 30vw;
}

}


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


/* ==========================================
   💻  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: 18vh; 
 left: 35vw;
}

}


























@media (orientation: portrait) and (max-width: 480px) {
  .floating-search-bar {
 
  height: 2.8vh;
  width: 54vw;
  }
}


/* ==========================================
   📲 1. MOBILE LANDSCAPE
   ========================================== */
@media (orientation: landscape) and (max-width: 889px) {
 .floating-search-bar {
 
  height: 6vh;
  width: 30vw;
  }

}






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

  .floating-search-bar {
  
  height: 2.2vh;
  width: 34vw;
  }
}


/* ==========================================
   💻 3. TABLET LANDSCAPE
   ========================================== */
@media (min-width: 890px) and (max-width: 1299px) and (orientation: landscape) {

.floating-search-bar {

  height: 3vh;
  width: 25vw;
  }


}







.no-results-message {
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
  color: #694040;
}

.back-button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #3a7d44;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.back-button:hover {
  background-color: #2a5a33;
}










/* === Product Section Header === */
.product-section h1 {
  font-size: 2rem;
  text-align: center;
  margin: 2rem 0 1rem 0;
  color: #5a2d2d;
  font-weight: bold;
}

/* === Product Container === */
#products-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding-top: 1rem;
  align-items: stretch;
}

/* === Product Card === */

.product-wrapper {
  flex: 0 1 calc(29% - 20px);
  max-width: calc(29% - 20px);
  padding: 1rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 650px;
   
  
  
  height: auto !important;
  min-height: unset !important;
}






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

  max-width: calc(95% - 20px);
}
}
/* Mobile Portrait */
@media (orientation: portrait) and (max-width: 367px) { 
.product-wrapper {

  max-width: calc(95% - 20px);
}
  
}







.product-wrapper1 {
  flex: 0 1 calc(29% - 20px);
  max-width: calc(29% - 20px);
  padding: 1rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  height: fit-content;
 
 
 
}

/* === Product Image === */
.product-image,
.product-image-wrapper {
  
  width: 100%;
  background-color: #f0f0f0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

/* === Product Info === */
.product-info {
  width: 100%;
  padding: 0.75rem;
  margin: 0;
  background-color: #f9f9f9;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex-grow: 1;
  height: auto;
}

.product-info iframe {
  display: block !important;
  max-width: 100% !important;
  max-height: 450px !important;
  min-height: 350px !important;
  overflow: hidden !important;
  border: none !important;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 1rem;
  margin-bottom: 1rem;
  flex: unset;
  text-align: center;
}

/* === Extra Info (Price, Button) === */
.product-extra {
  margin-top: 10px;
}

.custom-price {
  display: block;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
  margin-bottom: 8px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row .view-product-button,
.button-row .buy-now-button {
  padding: 8px 16px;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex: 1; /* لجعل الزرين يتمددان حسب المساحة */
  text-align: center;
}

.view-product-button {
 
  background-color: #737473cc;
  color: white;
  text-decoration: none;
  margin: 1rem;
   font-size: 1.1rem;
    padding: 4px 8px;
     
 
  border: none;
  border-radius: 24px;
  cursor: pointer;
  white-space: nowrap;
  flex: 1; /* لجعل الزرين يتمددان حسب المساحة */
  text-align: center;
}

html.is-mobile.mobile-landscape .view-product-button {
   font-size: 1rem;
}

html.is-ipad.ipad-landscape .view-product-button {
   font-size: 1rem;
}

.buy-now-button {
  background-color: #007b57;
  color: white;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap; /* 🚫 ممنوع الالتفاف */
  justify-content: space-between;
}





.buy-now-button {
  background-color: #007b57;
  color: white;
  margin: 1rem;
   font-size: 1.3rem;
    padding: 8px 16px;

  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex: 1; /* لجعل الزرين يتمددان حسب المساحة */
  text-align: center;
}

/* === Shopify Buy Button Adjustments === */
.shopify-buy__btn {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  font-size: 14px !important;
  padding: 10px 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.shopify-buy-frame {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* === Category Navigation === */
.category-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 5.5rem auto;
  top: 5vh;
}

.category-button {
  margin-top: 40px;
  padding: 0.5rem 1rem;
  border: none;
  background-color: #9fac9fcc;
  color: rgb(53, 41, 41);
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.category-button:hover,
.category-button.active {
  background-color: #aa131b;
}

button.active {
  background-color: #6d0808;
  color: white;
  font-weight: bold;
  border: 1px solid #6d0808;
}

.browse-btn {
  background-color: #694040;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.browse-btn:hover {
  background-color: #8a5c5c;
}


@media (max-width: 600px) {
  body.product-page {
    padding-top: 1rem;
    margin-top: 0;
  }

  #products-container {
    flex-direction: column;
    padding-top: 1rem;
    padding: 0 1rem !important;
    margin-left: 7vw;
  }

  .product-section h1 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
    padding: 0 1rem;
    line-height: 1.4;
  }

    
  .product-wrapper1 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 90% !important;
    flex: 1 1 100% !important;
    margin: 0 auto 1.5rem auto !important;
    box-sizing: border-box !important;
    min-height: 230px !important; /* يمكنك تعديل هذا الرقم حسب الحاجة */
    height: fit-content !important;
    padding-bottom: 1rem !important;
    }
 

   .product-info {
    padding: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .product-title {
    margin-top: 0;
    font-size: 1.25rem !important;
    text-align: center !important;
  }

  .product-description {
    flex: unset !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }

  .product-info > div:empty {
    display: none !important;
  }

  .product-image-wrapper {
    justify-content: center !important;
    border: none !important;
    height: fit-content;
   
  }


  iframe[name^="frame-product"] {
    max-width: 100% !important;
    width: 100% !important;
    height: 400px !important;
    min-height: 300px !important;
    border: none !important;
    display: block !important;
    margin: 0 auto !important;
  }
}


@media (orientation: landscape) and (max-width: 900px) {
 
  .product-wrapper1 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 90% !important;
    flex: 1 1 100% !important;
    margin: 0 auto 1.5rem auto !important;
    box-sizing: border-box !important;
    min-height: 330px !important; /* يمكنك تعديل هذا الرقم حسب الحاجة */
    height: auto !important;
    padding-bottom: 1rem !important;
    }

  }

.active-page {
  background-color: #694040;
  color: white;
  font-weight: bold;
  border: 1px solid #694040;
}

#pagination-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

#pagination-controls button {
  padding: 8px 14px;
  background-color: #f5f5f5;
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#pagination-controls button:hover {
  background-color: #ddd;
}

#pagination-controls .active-page {
  background-color: #694040;
  color: white;
  border-color: #694040;
  font-weight: bold;
}
.floating-cart {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 55px;
  height: 55px;
  background-color: #694040;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.3s ease;
}

.floating-cart:hover {
  transform: scale(1.05);
}

.floating-cart i {
  font-size: 1.3rem;
}

#usa-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #cc0000;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: bold;
}

.cart-label {
  position: absolute;
  left: 65px;
  top: 50%;
  transform: translateY(-50%);
  background: #694040;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.75rem;
  white-space: nowrap;
}




@media (min-width: 48em) {   /* Desktop ≥768px */
  
  .logo-btn {
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;

  background-color: #533939;
  color: #f7f2f2;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  text-decoration: none;
  border: 1px solid #533939;
  border-radius: 0.5rem;
  padding: clamp(0.4rem, 1vh, 0.6rem) clamp(0.9rem, 2.5vw, 1.2rem);
  transition: background-color 0.3s ease, transform 0.2s ease;

  white-space: nowrap;
  cursor: pointer;
}





  /* Pastura */
  .logo-btn.logo3 {
    inset-inline-start: clamp(3vw, 5vw, 6vw) !important;
    inset-block-start: 2vh !important;
     margin-right: auto;
  }

  /* USA Section */
  .logo-btn.logo4 {
    inset-inline-end: clamp(3vw, 5vw, 6vw) !important;
    inset-block-start: 2vh !important;
     margin-left: auto;
  }

/* تأثير hover */
.logo-btn:hover {
  background: linear-gradient(90deg, #8B0000, #006400);
  color: #fff;
  transform: translateY(-2px);
}
}
@media (max-width: 47.9em) {   /* Mobile ≤767px */

  .nav-links, 
  .nav-links ul, 
  .nav-links li {
    list-style: none;   /* إلغاء النقطة */
    margin: 0;
    padding: 0;
  }

  .logo-btn {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    background-color: #533939;
    color: #f7f2f2;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-decoration: none !important;
    border: 1px solid #533939;
    border-radius: 0.5rem;
    padding: clamp(0.4rem, 1vh, 0.6rem) clamp(0.9rem, 2.5vw, 1.2rem);
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
  }

  .logo-btn.logo3 {
    inset-inline-start: clamp(2vw, 5vw, 8vw) !important;
    inset-block-start: 2vh !important;
    margin-right: auto;
  }

  .logo-btn.logo4 {
    inset-inline-end: clamp(2vw, 5vw, 8vw) !important;
    inset-block-start: 2vh !important;
    margin-left: auto;
  }

  .logo-btn:hover {
    background-color: #eee;
    color: #000;
  }
}
.reset {
  position: absolute;
  top: 180px;
  left: 45%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  margin: 0;
}

#resetView {
  position: static;
  margin-top: 20px;
  
}




/* =========================
   Add to Cart (Primary)
   ========================= */
.pastura-buy-btn{
  border: 1px solid rgba(159, 172, 159, 0.55);
  background: linear-gradient(180deg, rgba(159, 172, 159, 0.34), rgba(159, 172, 159, 0.18));
  color: var(--pst-white);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

/* Hover + focus */
.pastura-buy-btn:hover{
  border-color: rgba(159, 172, 159, 0.85);
  background: linear-gradient(180deg, rgba(159, 172, 159, 0.44), rgba(159, 172, 159, 0.22));
  box-shadow: var(--pst-shadow);
  transform: translateY(-1px);
}
.pastura-buy-btn:active{
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.pastura-buy-btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(159, 172, 159, 0.28), var(--pst-shadow);
}

/* Disabled state if you ever use it */
.pastura-buy-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

/* =========================
   View Product (Secondary Glass)
   ========================= */
.view-product-btn a{
  border: 1px solid var(--pst-border);
  background: rgba(247, 246, 246, 0.08);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Hover + focus */
.view-product-btn a:hover{
  background: rgba(247, 246, 246, 0.14);
  border-color: rgba(247, 246, 246, 0.30);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transform: translateY(-1px);
}
.view-product-btn a:active{
  transform: translateY(0px) scale(0.99);
}
.view-product-btn a:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(247, 246, 246, 0.20), 0 10px 24px rgba(0,0,0,.18);
}




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

.pastura-legal-banner {
  position: fixed;
  top: 1vh; /* ارتفاع الـ navbar، عدّل حسب ارتفاعك */
  right: 5vw;
  width: 26%;
  height: 28px;
  white-space: nowrap;

  background: #f6f7f6; /* أخضر Pastura أو عدّله */
  color: #070505;
  font-size: 13px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;



  box-shadow: 0 1px 4px rgb(253, 252, 252);
}
}
 
/* Mobile Portrait */
@media (orientation: portrait) and (min-width: 368px) and (max-width: 480px) {

.pastura-legal-banner {
  position: fixed;
  top: 1vh; /* ارتفاع الـ navbar، عدّل حسب ارتفاعك */
  right: 0vw;
  width: 100%;
  height: 28px;
  white-space: nowrap;

  background: #f6f7f6; /* أخضر Pastura أو عدّله */
  color: #070505;
  font-size: 13px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;



  box-shadow: 0 1px 4px rgb(253, 252, 252);
}
}




/* ==========================================
   📲 1. MOBILE LANDSCAPE
   ========================================== */
@media (orientation: landscape) and (max-width: 889px) {
  
.pastura-legal-banner {
  position: fixed;
  top: 1vh; /* ارتفاع الـ navbar، عدّل حسب ارتفاعك */
  right: 5vw;
  width: 26%;
  height: 28px;
  white-space: nowrap;

  background: #f6f7f6; /* أخضر Pastura أو عدّله */
  color: #070505;
  font-size: 13px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;



  box-shadow: 0 1px 4px rgb(253, 252, 252);
}
}



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

  
.pastura-legal-banner {
  position: fixed;
  top: 1vh; /* ارتفاع الـ navbar، عدّل حسب ارتفاعك */
  right: 5vw;
  width: 26%;
  height: 28px;
  white-space: nowrap;

  background: #f6f7f6; /* أخضر Pastura أو عدّله */
  color: #070505;
  font-size: 13px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;


  box-shadow: 0 1px 4px rgb(253, 252, 252);
}
}



/* ==========================================
   💻 3. TABLET LANDSCAPE
   ========================================== */
@media (min-width: 890px) and (max-width: 1299px) and (orientation: landscape) {

  
  
.pastura-legal-banner {
  position: fixed;
  top: 1vh; /* ارتفاع الـ navbar، عدّل حسب ارتفاعك */
  right: 5vw;
  width: 26%;
  height: 28px;
  white-space: nowrap;

  background: #f6f7f6; /* أخضر Pastura أو عدّله */
  color: #070505;
  font-size: 13px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;



  box-shadow: 0 1px 4px rgb(253, 252, 252);
}
}


/* Wide Desktop */
@media (min-width: 1920px) {
  
.pastura-legal-banner {
  position: fixed;
  top: 1vh; /* ارتفاع الـ navbar، عدّل حسب ارتفاعك */
  right: 5vw;
  width: 26%;
  height: 28px;
  white-space: nowrap;

  background: #f6f7f6; /* أخضر Pastura أو عدّله */
  color: #070505;
  font-size: 13px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;

 

  box-shadow: 0 1px 4px rgb(253, 252, 252);
}
}


/* ==========================================
   🖥️ LAPTOP / DESKTOP STANDARD
   ========================================== */
@media (min-width: 1300px) and (max-width: 1919px) {
   
.pastura-legal-banner {
  position: fixed;
  top: 1vh; /* ارتفاع الـ navbar، عدّل حسب ارتفاعك */
  left: 15vw;
  width: 26%;
  height: 28px;
  white-space: nowrap;

  background: #f6f7f6; /* أخضر Pastura أو عدّله */
  color: #070505;
  font-size: 13px;
  font-weight: 500;

  display: flex;
  align-items: center;
  justify-content: center;



  box-shadow: 0 1px 4px rgb(253, 252, 252);
}
}






.pastura-focus{
  outline: 2px solid rgba(47,107,79,.35);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(47,107,79,.12);
  transition: box-shadow .2s ease;
}




.external-media { width:100%; }
.external-product-image{
  width:100%;
  max-width: 320px;
  height: auto;
  display:block;
  border-radius: 10px;
}






:root{
  --pst-accent:#9fac9fcc;
  --pst-white:#363333;
  --pst-glass:rgba(247,246,246,.10);
  --pst-glass2:rgba(247,246,246,.14);
  --pst-border:rgba(247,246,246,.22);
  --pst-text:rgba(65, 58, 58, 0.92);
  --pst-muted:rgba(75, 69, 69, 0.72);
  --pst-shadow:0 14px 40px rgba(0,0,0,.30);
  --pst-radius:16px;
}

/* CARD */
.product-card{
  width:100%;
  max-width:420px;
  
 
  border-radius:var(--pst-radius);
  border:1px solid var(--pst-border);
  background: linear-gradient(180deg, rgba(247,246,246,.08), rgba(247,246,246,.05));
  box-shadow: var(--pst-shadow);
  color: var(--pst-text);

  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:hidden;
}

/* INFO */
.product-info{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.product-title{
  margin:0;
  font-size:15px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.2px;
  color: var(--pst-white);
}

.product-description{
  margin:0;
  font-size:13px;
  line-height:1.45;
  color: var(--pst-muted);

  /* يمنع الوصف من تخريب الكرت */
  max-height: 4.4em; /* ~3 lines */
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  line-clamp:3;
  -webkit-box-orient:vertical;
}

/* لو الوصف يحتوي HTML/صور (مثلاً منتجات خارجية) */
.product-description img{
  max-width:100%;
  height:auto;
  border-radius:12px;
  display:block;
  margin:8px 0;
}

.product-price{
  margin:0;
  font-size:15px;
  font-weight:900;
  background: #c0bcbc;
  color: rgba(68, 65, 65, 0.95);
  padding: 4px 8px;
  border-radius:8px;
  display:inline-block;
}

/* DISPLAY AREA */
.product-display-flex{
 
  display:flex;
  flex-direction:column;
  gap:10px;
}


.product-image-wrapper{
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;

  background: rgba(0,0,0,.18); /* خلفية للفراغات */
  display:flex;
  align-items:center;
  justify-content:center;
}

.product-image{
  width: 100%;
  height: 100%;
  object-fit: contain;    /* ✅ بدون قصّ */
  object-position: center;
  display:block;
}





/* SHOPIFY MOUNT */
.shopify-mount[data-requires-shopify="true"]{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(247,246,246,.14);
  background: rgba(0,0,0,.12);
  padding:8px;
  overflow:hidden;
}

/* BUTTONS */
.custom-button-wrapper{
  display:flex;
 
  flex-wrap:wrap;

  margin-bottom: 0px;
}















@media only screen
  and (min-width: 1024px)
  and (max-width: 1919px)
  and (hover: hover)
  and (pointer: fine) {
.custom-button-wrapper{
  gap:80px !important;
  }
}

 


/* Wide Desktop */
@media (min-width: 1920px) {
.custom-button-wrapper{
  gap:80px;
  }

}

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

  .custom-button-wrapper{
  gap:12px;
  }
}
/* Mobile Portrait */
@media (orientation: portrait) and (max-width: 367px) { 

  .custom-button-wrapper{
  gap:12px;
  }
}


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

.custom-button-wrapper{
  gap:80px;
  }
}

/* ==========================================
   📲 1. MOBILE LANDSCAPE-2
   ========================================== */
@media (orientation: landscape) and (min-width: 700px) and (max-width: 889px) {
.custom-button-wrapper{
  gap:80px;
  }


}




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

 .custom-button-wrapper{
  gap:12px !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) {

.custom-button-wrapper{
  gap:12px;
  }

}


.pastura-buy-btn{
   margin-left: 0px;
  background: rgba(124, 120, 120, 0.08);
  color: rgba(255,255,255,.92);
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:10px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.2px;
  text-decoration:none;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}












.view-product-link{
  margin-left: 0px;
  background: rgba(124, 120, 120, 0.08);
  color: rgba(255,255,255,.92);
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:10px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.2px;
  text-decoration:none;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

/* Add to Cart (primary) */
.pastura-buy-btn{
  border:1px solid rgba(159,172,159,.60);
  background: linear-gradient(180deg, rgba(159,172,159,.36), rgba(159,172,159,.18));
  color: var(--pst-white);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.pastura-buy-btn:hover{
  border-color: rgba(159,172,159,.90);
  background: linear-gradient(180deg, rgba(159,172,159,.48), rgba(159,172,159,.22));
  box-shadow: var(--pst-shadow);
  transform: translateY(-1px);
}
.pastura-buy-btn:active{ transform: translateY(0) scale(.99); }
.pastura-buy-btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(159,172,159,.28), var(--pst-shadow);
}

/* View Product (secondary glass) */
.view-product-link{
  border:1px solid rgba(159,172,159,.60);
  background: linear-gradient(180deg, rgba(159,172,159,.36), rgba(159,172,159,.18));
  color: var(--pst-white);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.view-product-link:hover{
   border-color: rgba(159,172,159,.90);
  background: linear-gradient(180deg, rgba(159,172,159,.48), rgba(159,172,159,.22));
  box-shadow: var(--pst-shadow);
  transform: translateY(-1px);
}
.view-product-link:active{ transform: translateY(0) scale(.99); }
.view-product-link:focus-visible{
 outline:none;
  box-shadow: 0 0 0 3px rgba(159,172,159,.28), var(--pst-shadow);
}

/* MOBILE: make buttons full width */
@media (max-width: 520px){
  .product-card{ max-width:100%; margin:10px 0; border-radius:14px; }
  .product-image-wrapper{ min-height:200px; }
 
  .pastura-buy-btn, .view-product-link{ width:100%; }
}

/* FORCE buttons side-by-side */
.product-wrapper1 .custom-button-wrapper{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;  /* يمنع النزول تحت */
}

.product-wrapper1 .custom-button-wrapper > .pastura-buy-btn,
.product-wrapper1 .custom-button-wrapper > .view-product-link{
  display: inline-flex !important;
  width: auto !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}





.shipping-hint{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  background:#fafafa;
  font-size:14px;
  color:#333;
}











/* التحكم بالرؤية حسب auth */
html[data-auth="false"] .pastura-cart{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-auth="true"] .pastura-cart{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}




.for-radius {
  position: absolute;
  top: 100px;   /* المسافة من الأسفل */
  right: 30px;    /* المسافة من اليمين */
  z-index: 9999;  /* ليبقى فوق باقي العناصر */
}

.pastura-cart {
  background: #000;
  color: white;
  padding: 12px 15px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
}

.cart-badge {
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  position: absolute;
  top: -5px;
  right: -5px;
}



 