  html {
  direction: rtl;
  scroll-behavior: smooth;
}

  body {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #e9f7ef;
}

a {
  display: inline-block;
  text-decoration: none;
  color: black; 
}
  
  /* התפריט */
  .menu {
    display: flex;           
    justify-content: center;
    background-color: transparent;
    transition: background-color 0.3s ease;
    margin: 2rem;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .menu.scrolled {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 1.25rem;
  }

  .menu a {
    padding: 0.625em 1.75em;
    font-size: 1.4rem;
    cursor: pointer;
    border: 0.0625em solid transparent;
    background-color: transparent;
    transition: background-color 0.3s;
    white-space: nowrap;
  }

  .menu a:hover {
    background-color: #ddd;
  }

.menu a.buy_kit{
  background-color: #28a745;
  color: white;
  border-radius: 0.9375em;
  font-weight: bold;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.menu a.buy_kit:hover,
.menu a.buy_kit:focus {
  background-color: #218838;
  box-shadow: 0 0 8px rgba(33, 136, 56, 0.6);
  outline: none;
  cursor: pointer;
}

/* כפתור תפריט למובייל */
.mobile_menu {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 0.5rem;
    right: 1.25rem;
}

.mobile_menu i {
    font-size: 2rem;
    color: #28a745;
}

@media screen and (max-width: 768px) {

  .menu a {
      display: none;
    }
    
  .mobile_menu {
      display: block;
      z-index: 1000;
    }

  .menu.open a {
      display: block;
      text-align: right;
    }

    .menu.open {
        display: flex;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.9);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 2rem;
        gap: 1rem;
        z-index: 9999;
    }

    .card-actions {
        flex-direction: column;
    }

    .buy_now_button1 {
        order: 1;
    }

    .out_of_stock_text {
        order: 2;
        position: static !important;
    }
}

/* הטקסט הראשון */
.first_text {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
}

.first_text .text_block {
  flex: 1 1 50%;
  min-width: 300px;
}

.first_text h2 {
  font-size: 1.125rem;
  font-weight: bold;
  text-decoration: underline;
  text-align: right;
}

.first_text h1 {
  font-weight: bold;
  height: auto;
  text-align: right;
}

.first_text p {
  font-size: larger;
  font-weight: bold;
  line-height: 1.8;
  text-align: right;
}

.first_text ul {
  font-size: 1.125rem;
  line-height: 1.5;
  height: auto;
  text-align: right;
}

.first_text a.products {
   background-color: rgb(5, 125, 31);
   border: none;
   color: white;
   padding: 0.75rem 1.25rem;
   font-weight: bold;
   font-size: 1rem;
   border-radius: 0.9375rem;
   transition: background-color 0.3s ease;
   text-align: right;
   margin-top: 1rem;
   display: inline-flex;
}

.first_text a.products:hover,
.first_text a.products:focus {
  background-color: #218838;
  box-shadow: 0 0 8px rgba(33, 136, 56, 0.6);
  outline: none;
  cursor: pointer;
}

.first_text a.about_mimake {
  background-color: white;
  border: 0.125rem solid grey;
  color: rgb(86, 84, 84);
  padding: 0.6875rem 1.25rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 0.9375rem;
  transition: background-color 0.3s ease;
  cursor: pointer;
  text-align: right;
  margin-top: 1rem;
  display: inline-flex;
}


[id] {
  scroll-margin-top: 6.25rem;
}


.first_text img {
  flex: 1 1 40%;
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

/* MIMAKE על */
.about_mimake {
  gap: 0.5rem;
  padding: 2rem;
}

.about_mimake section {
  font-size: 20px;
}

.about_mimake section img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    border-radius: 15px;
    padding-top: 2rem;
}

/* מוצרים */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 2rem;
}

.products header {
  width: 100%;
}

.rectangle {
  background-color: #fff;
  width: 100%;
  max-width: 500px;
  height: auto;
  border: 1px solid rgb(200, 197, 197);          
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.image_of_product {
  width: 120px;
  height: 80px;
  border-radius: 10px;
}

.rectangle h3 {
  font-weight: bold;
  margin: 0;
}

.rectangle h4 {
  font-weight: 100;
  margin: 0 0 1rem 0;
}

.rectangle ul {
  font-size: 16px;
  font-weight: 100;
  line-height: 1.5;
  padding-right: 1rem;
  margin: 0 0 1rem 0;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.out_of_stock_image {
  position: absolute;
  top: 1%;
  left: 1%;
  width: 11em;
  height: auto;
}

.out_of_stock_text {
  color: red;
  font-size: 1.3em;
  position: absolute;
  top: 72%;
  right: 48%;
  padding: 0.01em;
}

.out_of_stock_text a {
  color: blue;
  text-decoration: underline;
}

button.buy_now_link {
   background-color: grey;
   border: none;
   color: white;
   padding: 12px 20px;
   font-weight: bold;
   font-size: 16px;
   border-radius: 15px;
   transition: background-color 0.3s ease;
}

a.common_questions_link {
  border: none;
  background-color: white;
  color: rgb(92, 90, 90);
  font-weight: bold;
  font-size: medium;
  cursor: pointer;
}

/* שאלות לפני רכישה */
.questions_before_purchasing {
  margin: 2rem;
  padding: 1rem;
  width: 100%;
  max-width: 67.5rem;
  background-color: #001F3F;      
  color: white;   
  border-radius: 30px;
  box-sizing: border-box;
  margin-top: 2rem;
  gap: 1rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.questions_before_purchasing h5 {
  font-weight: lighter;
  font-size: medium;
}

.questions_before_purchasing a.mail_us {
  padding: 0.9375rem 1.5625rem;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
}

.questions_before_purchasing a.mail_us:hover {
  opacity: 0.8;
}

.questions_before_purchasing a.buy_kit {
  padding: 0.9375rem 1.5625rem;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: white;
  color: #001F3F;
  border: none;
  border-radius: 15px;
  cursor: pointer;
}

.questions_before_purchasing a.buy_kit:hover {
  opacity: 0.8;
}