@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  body {
    background-color: #e5e5e9;
  }

  .radio-hidden {
    @apply hidden;
  }

  .radio-label::before {
    content: "";
    @apply w-8 h-8 rounded-full border-2 border-gray-700 bg-white transition-colors duration-300;
  }

  .radio-label::after {
    content: "";
    @apply w-2 h-2 rounded-full bg-[#39D151] absolute top-1/2 left-[16px] transform -translate-x-1/2 -translate-y-1/2 opacity-0 transition-opacity duration-300;
  }

  .radio-hidden:checked + .radio-label::before {
    @apply bg-[#09080B] border-[#09080B];
  }

  .radio-hidden:checked + .radio-label::after {
    @apply opacity-100;
  }

  .radio-label span {
    @apply text-[#474749];
    transition: color 0.3s;
  }

  .radio-hidden:checked + .radio-label span {
    @apply text-[#09080B];
  }

  .font-manrope {
    font-family: "Manrope", sans-serif;
  }
}

body {
  font-family: "Manrope";
}

::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

::-webkit-scrollbar-track {
  background-color: #474749;
}

::-webkit-scrollbar-thumb {
  background-color: #474749;
  background: linear-gradient(#fdc031, #fdc031);
  /* border-radius: 1px; */
}

.ar {
  direction: rtl;
}

.active .overlay {
  opacity: 0;
}

.panel {
  display: none;

  overflow: hidden;
}

.panel.show {
  display: block;
}

.size-button {
  transition: background-color 0.3s, color 0.3s;
}

.size-button.active {
  background-color: #09080b;
  color: #fff;
}

.size-button span {
  transition: color 0.3s;
}

.size-button.active span {
  color: #fff;
}
@media (max-width: 1024px) {
  .image-gallery {
    grid-template-columns: repeat(5, calc(100% / 3));
  }
}
.image-h{
    height: 350px;
}
@media (max-width: 600px) {
  .image-h {
        height: 172px;
    
  }
  
}
@media (max-width: 600px) {
  .image-gallery {
           
    grid-template-columns: repeat(5, calc(100% / 2));
  }
  
}

.dropdown-new {
  position: relative;
  display: inline-block;
  /*margin-right: 20px;*/
}

@media (max-width: 600px) {
  .dropdown-new {
    display: flex;
  }
}

.dropdown-content-new {
  display: none;
  position: absolute;
  margin-top: 10px;
  background-color: #474749;
  /* Dark background */
  min-width: 210px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 8px;
  font-family: Manrope;
}

@media (max-width: 600px) {
  .dropdown-content-new {
    margin-top: 40px;
  }
}

.custom-dropdown-content{
  margin-top: 10px;

}
@media (max-width: 600px) {
  .custom-dropdown-content {
     margin-top: 40px;
  }
}
.dropdown-content-new label {
  color: white;
  /* White text color */
  font-family: Manrope;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.dropdown-content-new label:hover {
  background-color: #474749;
  color: white;
  border-radius: 8px;
  font-family: Manrope;
  /* Slightly lighter background on hover */
}

.dropdown-btn-new {
  height: 33px;
  color: #09080b;
  font-family: Manrope;
  padding: 0 8px;
  font-size: 18px;
  border: none;
  cursor: pointer;
}

.dropdown-btn-new:hover,
.dropdown-btn-new:focus {
  background-color: #474749;
  font-family: Manrope;
  /* Slightly lighter background on hover */
  color: white;
  height: 33px;
  padding: 0 8px;
  border-radius: 8px;
}

.show-new {
  display: block;
}

/* Custom checkbox styles */
input[type="checkbox"] {
  -webkit-appearance: none;
  font-family: Manrope;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 3px;
  background-color: #474749;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background-color: #474749;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  font-size: 14px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: Manrope;
}

input[type="checkbox"]:focus {
  outline: none;
  font-family: Manrope;
  box-shadow: 0 0 2px 2px #fff;
}

/* Selected dropdown button styles */
.selected-new {
  background-color: #474749;
  color: white;
  height: 33px;
  font-family: Manrope;
  padding: 0 8px;
  border-radius: 8px;
  /* Darker background for selected state */
}

.dropdown-content-new label {
  display: flex;
  align-items: center;
  font-family: Manrope;
  gap: 4px;
}
.product {
  display: none;
}

.product.active {
  display: block;
}

.category.active {
  color: #09080b;
  /* text-red-600 */
  text-decoration-line: underline;
  /* border-b-2 border-red-600 */
}
.active .overlay {
  opacity: 0;
}

.panel {
  display: none;

  overflow: hidden;
}

.panel.show {
  display: block;
}

.size-button {
  transition: background-color 0.3s, color 0.3s;
}

.size-button.active {
  background-color: #09080b;
  color: #fff;
}

.size-button span {
  transition: color 0.3s;
}

.size-button.active span {
  color: #fff;
}
.ar {
  direction: rtl;
}
.active .overlay {
  opacity: 0;
}

.panel {
  display: none;

  overflow: hidden;
}

.panel.show {
  display: block;
}

.size-button {
  transition: background-color 0.3s, color 0.3s;
}

.size-button.active {
  background-color: #09080b;
  color: #fff;
}

.size-button span {
  transition: color 0.3s;
}

.size-button.active span {
  color: #fff;
}

@media (max-width: 767px) {
  .am {
    flex-direction: row !important;
  }
  
}
   .image-h{
    height: 350px;
}
@media (max-width: 600px) {
  .image-h {
        height: 172px;
    
  }
  
}

.mbtwo{
        margin: 0 0 15px 0;
}
    .image-h{
    height: 350px;
}
@media (max-width: 600px) {
  .image-h {
        height: 172px;
    
  }
}
  .element {
    height: 365px;
}

@media (min-width: 768px) {
    .element {
        height: 520px;
    }
}

@media (min-width: 1024px) {
    .element {
        height: 855px;
    }
}

@media (min-width: 1200px) {
    .element {
        height: 855px;
    }
}
media (min-width: 1280px) {
    .element {
        height: 890PX;
    }
}
.etwo {
    height: 172px; /* الارتفاع الافتراضي */
}

@media (min-width: 768px) {
    .etwo {
        height: 220px; /* الارتفاع للشاشات المتوسطة */
    }
}

@media (min-width: 1024px) {
    .etwo {
        height: 385px; /* الارتفاع للشاشات الكبيرة */
    }
}
@media (min-width: 1280px) {
    .etwo {
        height: 400px; /* الارتفاع للشاشات الكبيرة */
    }
}
  
.etthree {
    width: 100%;
    height: 172px;
}

@media (min-width: 640px) {
    .etthree {
        width: 172px; 
    }
}

@media (min-width: 768px) {
    .etthree {
        width: 100%; 
        height: 365px;
    }
}

    .image-h{
    height: 350px;
}
@media (max-width: 600px) {
  .image-h {
        height: 172px;
    
  }
}
  .element {
    height: 365px;
}

@media (min-width: 768px) {
    .element {
        height: 550px;
    }
}

@media (min-width: 1024px) {
    .element {
        height: 855px;
    }
}

.etwo {
    height: 172px; /* الارتفاع الافتراضي */
}

@media (min-width: 768px) {
    .etwo {
        height: 220px; /* الارتفاع للشاشات المتوسطة */
    }
}

@media (min-width: 1024px) {
    .etwo {
        height: 385px; /* الارتفاع للشاشات الكبيرة */
    }
}

.mbtwo{
        margin: 0 0 15px 0;
}
    .image-h{
    height: 350px;
}
@media (max-width: 600px) {
  .image-h {
        height: 172px;
    
  }
}
  .element {
    height: 365px;
}

@media (min-width: 768px) {
    .element {
        height: 550px;
    }
}

@media (min-width: 1024px) {
    .element {
        height: 855px;
    }
}

@media (min-width: 1200px) {
    .element {
        height: 855px;
    }
}

/*.img-app {*/
    width: 100%; /* العرض الافتراضي */
    height: auto; /* الارتفاع الافتراضي */
/*}*/

/*@media (min-width: 768px) {*/
/*    .img-app {*/
        height: 600px; /* الارتفاع للشاشات المتوسطة وما فوق */
/*    }*/
/*}*/

/* .img-w-prodct{*/
/*         overflow: hidden;*/
/* }*/
/*@media (min-width: 1280px) {*/
/*    .img-w-prodct {*/
/*        width: 20%;*/
/*    }*/
/*}*/
/*.img-w-p-one {*/
/*    position: relative;*/
    height: 90px; /* الارتفاع الافتراضي */
    width: 90px; /* العرض الافتراضي */
/*    cursor: pointer;*/
/*    overflow: hidden;*/
/*}*/

/*@media (min-width: 640px) {*/
/*    .img-w-p-one {*/
        height: 157px; /* الارتفاع للشاشات الصغيرة */
        width: 157px; /* العرض للشاشات الصغيرة */
/*    }*/
/*}*/

/*@media (min-width: 1024px) {*/
/*    .img-w-p-one {*/
        height: 220px; /* الارتفاع للشاشات الكبيرة */
        width: 220px; /* العرض للشاشات الكبيرة */
/*    }*/
/*}*/

/*@media (min-width: 1280px) {*/
/*    .img-w-p-one {*/
        height: 300px; /* الارتفاع للشاشات الكبيرة جدًا */
        width: 300px; /* العرض للشاشات الكبيرة جدًا */
/*    }*/
/*}*/
/*.img-w-p-two {*/
    height: 100%; /* الارتفاع الافتراضي */
    width: 100%; /* العرض الافتراضي */
/*     margin: 0 15px ;*/
/*}*/

/*@media (min-width: 640px) {*/
/*    .img-w-p-two {*/
        height: 157px; /* الارتفاع للشاشات الصغيرة */
        width: 157px; /* العرض للشاشات الصغيرة */
/*          margin: 0 0 ;*/
/*    }*/
/*}*/

/*.mbtwo{*/
/*        margin: 0 0 15px 0;*/
/*}*/
/*    .image-h{*/
/*    height: 350px;*/
/*}*/
/*@media (max-width: 600px) {*/
/*  .image-h {*/
/*        height: 172px;*/
    
/*  }*/
/*}*/
  .element {
    height: 365px;
}

@media (min-width: 768px) {
    .element {
        height: 550px;
    }
}

@media (min-width: 1024px) {
    .element {
        height: 855px;
    }
}

@media (min-width: 1200px) {
    .element {
        height: 855px;
    }
}
media (min-width: 1280px) {
    .element {
        height: 890PX;
    }
}
.etwo {
    height: 172px; /* الارتفاع الافتراضي */
}

@media (min-width: 768px) {
    .etwo {
        height: 220px; /* الارتفاع للشاشات المتوسطة */
    }
}

@media (min-width: 1024px) {
    .etwo {
        height: 385px; /* الارتفاع للشاشات الكبيرة */
    }
}
@media (min-width: 1280px) {
    .etwo {
        height: 400px; /* الارتفاع للشاشات الكبيرة */
    }
}
  
.etthree {
    width: 100%;
    height: 172px;
}

@media (min-width: 640px) {
    .etthree {
        width: 172px; 
    }
}

@media (min-width: 768px) {
    .etthree {
        width: 100%; 
        height: 365px;
    }
}

.mbtwo{
        margin: 0 0 15px 0;
}
    .image-h{
    height: 350px;
}
@media (max-width: 600px) {
  .image-h {
        height: 172px;
    
  }
}
  .element {
    height: 365px;
}

@media (min-width: 768px) {
    .element {
        height: 520px;
    }
}

@media (min-width: 1024px) {
    .element {
        height: 855px;
    }
}

@media (min-width: 1200px) {
    .element {
        height: 855px;
    }
}
media (min-width: 1280px) {
    .element {
        height: 890PX;
    }
}
.etwo {
    height: 172px; /* الارتفاع الافتراضي */
}

@media (min-width: 768px) {
    .etwo {
        height: 220px; /* الارتفاع للشاشات المتوسطة */
    }
}

@media (min-width: 1024px) {
    .etwo {
        height: 385px; /* الارتفاع للشاشات الكبيرة */
    }
}
@media (min-width: 1280px) {
    .etwo {
        height: 400px; /* الارتفاع للشاشات الكبيرة */
    }
}
  
.etthree {
    width: 100%;
    height: 172px;
}

@media (min-width: 640px) {
    .etthree {
        width: 172px; 
    }
}

@media (min-width: 768px) {
    .etthree {
        width: 100%; 
        height: 365px;
    }
}

 
.img-app {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .img-app {
      height: 600px; 
      object-fit: cover;
  }
}

.img-w-prodct{
       overflow: hidden;
}
@media (min-width: 1280px) {
  .img-w-prodct {
      width: 20%;
  }
}
.img-w-p-one {
  position: relative;
  height: 90px;
  width: 90px;
  cursor: pointer;
  overflow: hidden;
}

@media (min-width: 640px) {
  .img-w-p-one {
      height: 157px;
      width: 157px; 
  }
}

@media (min-width: 1024px) {
  .img-w-p-one {
      height: 220px;
      width: 220px; 
  }
}

@media (min-width: 1280px) {
  .img-w-p-one {
      height: 300px; 
      width: 300px;
  }
}
.img-w-p-two {
  height: 100%;
  width: 100%; 
   margin: 10px 0 10px 0  ;
}

@media (min-width: 640px) {
  .img-w-p-two {
      height: 157px; 
      width: 157px; 
        margin: 0 0 ;
  }
}

.mbtwo{
      margin: 0 0 15px 0;
}
  .image-h{
  height: 350px;
}
@media (max-width: 600px) {
.image-h {
      height: 172px;
  
}
}
.am {
display: flex !important;
gap: 20px !important ;
flex-direction: column;
}
@media (max-width: 600px) {
.am {
  flex-direction: row !important;
  margin: 16px 0 0 0;
}
}
.img-o-e-n {
  position: relative;
  height: 90px; 
  width: 90px;
  cursor: pointer;
  overflow: hidden;
}

@media (min-width: 640px) {
  .img-o-e-n {
      height: 157px; 
      width: 157px;
  }
}
.img-t-w-o {
  height: 100%; 
  width: 100%;
}

@media (min-width: 640px) {
  .img-t-w-o {
      height: 157px;
      width: 157px; /* العرض للشاشات الصغيرة */
  }
}
.overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 157px; /* الارتفاع */
  width: 157px; /* العرض */
  /*background-color: black;*/
  opacity: 50%;
  transition: opacity 0.3s ease; /* لضبط الانتقال في الشفافية */
}

.custom-dropdown-content input[type="radio"]:checked+.custom-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 2px;
}

.custom-radio {
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 3px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3a3a3acc;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner div {
  width: 15px; /* عرض العنصر */
  height:15px;
  aspect-ratio: 1; /* الحفاظ على النسبة بين العرض والارتفاع */
  border-radius: 50%; /* جعل العنصر دائري الشكل */
  animation: l5 1s infinite linear alternate; /* تطبيق التحريك */
}

@keyframes l5 {
  0%  {
    box-shadow: 20px 0 #000, -20px 0 #0002; /* الظل يبدأ على الجانبين باللون الأسود */
    background: #000; /* خلفية سوداء */
  }
  33% {
    box-shadow: 20px 0 #000, -20px 0 #0002; /* الظل يستمر على الجانبين باللون الأسود */
    background: #0002; /* تغيير لون الخلفية */
  }
  66% {
    box-shadow: 20px 0 #0002, -20px 0 #000; /* الظل يتغير بين الجانبين */
    background: #0002; /* تغيير لون الخلفية */
  }
  100% {
    box-shadow: 20px 0 #0002, -20px 0 #000; /* الظل يتغير بين الجانبين */
    background: #000; /* خلفية سوداء */
  }
}
