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


*{
  -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* strat root  */

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(5, 95%, 58%);
  --first-color-alt: hsl(5, 90%, 50%);
  --title-color: hsl(5, 15%, 15%);
  --text-color: hsl(5, 8%, 35%);
  
  --body-color: hsl(5, 100%, 98%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-normal: 1;
  --z-modal: 1000;
}

/* end Root */

svg {
  height: 45px;
  width: 35px;
}

/* all header */
.sbfix {
  position: fixed;
  margin-top: 19px;
  margin-bottom: 40px;
  display: flex;
  width: 60%;
  height: 40px;
 
  z-index: 9;
  top: 0;
}


.modal__button_ {
  flex-grow: 1;
  outline: none;
  border: none;
  background-color:#cfcfcf ;
  padding-block: 0.5rem;
  color: rgb(2, 11, 19);
  font: var(--font-semi-bold) var(--normal-font-size) var(--body-font);
  cursor: pointer;
  transition: background-color 0.4s;
}


.modal__button-ghost_ {
  background-color: #cfcfcf;
  color:#1e272e;


}

.modal__button-ghost_:hover {
  background-color: #1e272e;
  color:#cfcfcf;
}


/* Nav */


nav {
  background-color: #1e272e;
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  height: 100%;
  max-width: 515px;
  width: 100%;
  padding: 100px 40px 60px 40px;
  overflow-y: auto;
  -webkit-transform: translateX(100%);
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  -o-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: transform 0.55s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  -moz-transition: transform 0.55s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  -o-transition: transform 0.55s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  transition: transform 0.55s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  z-index: 11; 
}
nav.show {
  -webkit-transform: translateX(0px);
  -moz-transform: translateX(0px);
  -ms-transform: translateX(0px);
  -o-transform: translateX(0px);
  transform: translateX(0px);
}
nav.show ul.main li {
  -webkit-transform: translateX(0px);
  -moz-transform: translateX(0px);
  -ms-transform: translateX(0px);
  -o-transform: translateX(0px);
  transform: translateX(0px);
  opacity: 1;
}
.search1:nth-child(1) {
  transition-delay: 0.1s;
}
nav.show ul.main li:nth-child(1) {
  transition-delay: 0.15s;
}
nav.show ul.main li:nth-child(2) {
  transition-delay: 0.3s;
}
nav.show ul.main li:nth-child(3) {
  transition-delay: 0.45s;
}
nav.show ul.main li:nth-child(4) {
  transition-delay: 0.6s;
}
nav.show ul.main li:nth-child(5) {
  transition-delay: 0.75s;
}
nav.show ul.main li:nth-child(6) {
  transition-delay: 0.9s;
}
nav.show ul.main li:nth-child(7) {
  transition-delay: 1.05s;
}
nav.show ul.main li:nth-child(8) {
  transition-delay: 1.2s;
}
nav.show ul.main li:nth-child(9) {
  transition-delay: 1.35s;
}
nav.show .about,
nav.show .social,
nav.show ul.sub {
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  -o-transform: translateY(0px);
  transform: translateY(0px);
  opacity: 1;
  transition-delay: 0.85s;
}
/* @media (max-width: 666px) {
  nav {
  
    padding: 80px 20px 40px 20px;
width: 65%;
max-width: 65%;
    
  }

  nav ul.main li a {
    font-size: 1rem;
  }
} */


/* Small devices (phones, 600px and below) */
@media (max-width: 600px) { 
   nav {
  
    padding: 80px 20px 40px 20px;
width: 65%;
max-width: 65%;
    
  }

  nav ul.main li a {
    font-size: 1rem;
  }
 }

 /* Medium devices (tablets, 600px to 768px)  */
@media (min-width: 600px) and (max-width: 990px) { 
   nav {
  
   
width: 40%;
max-width: 40%;
    
  }
 }

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 
   nav {
  
   
width: 40%;
max-width: 40%;
    
  }
 }

nav ul.main {
  list-style-type: none;
}
nav ul.main li {
  
  -webkit-transform: translateX(40px);
  -moz-transform: translateX(40px);
  -ms-transform: translateX(40px);
  -o-transform: translateX(40px);
  transform: translateX(40px);
  opacity: 0;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
nav ul.main li:last-of-type {
  margin-bottom: 0px;
}
nav ul.main li a {
  color: #ffffff;
 
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1rem;
  display: block;
  letter-spacing: 5px;
  font-weight: 600;
  padding: 10px 0;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
nav ul.main li a span {
  color: #77BEF0;
}
nav ul.main li a:hover {
  color: #77BEF0;
}
nav .about {
  margin-top: 40px;
  -webkit-transform: translateY(30px);
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -o-transform: translateY(30px);
  transform: translateY(30px);
  opacity: 0;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
nav .about p {
  color: #ffffff;
  font-family: "Spectral", serif;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  line-height: 170%;
}
nav .social {
  margin-top: 40px;
  position: relative;
  padding-bottom: 30px;
  -webkit-transform: translateY(30px);
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -o-transform: translateY(30px);
  transform: translateY(30px);
  opacity: 0;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
nav .social:after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: #b7ac7f;
  position: absolute;
  bottom: 0;
  left: 0;
}
nav .social a {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 25px;
}
nav .social a:last-of-type {
  margin-right: 0px;
}
nav .social a:hover svg path,
nav .social a:hover svg circle {
  fill: #b7ac7f;
}
nav .social a svg {
  width: 100%;
  height: 100%;
}
nav .social a svg path,
nav .social a svg circle {
  fill: #ffffff;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
nav ul.sub {
  list-style-type: none;
  margin-top: 40px;
  -webkit-transform: translateY(30px);
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -o-transform: translateY(30px);
  transform: translateY(30px);
  opacity: 0;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
nav ul.sub li {
  margin-bottom: 10px;
}
nav ul.sub li:last-of-type {
  margin-bottom: 0px;
}
nav ul.sub li a {
  color: #ffffff;
  font-family: "Raleway", sans-serif;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
nav ul.sub li a:hover {
  color: #77BEF0;
}

/* Cards */

/* Small devices (phones, 600px and below) */
@media (max-width: 600px) { 
  .cmt{
    margin-top: 13%;
  }
 }

 /* Medium devices (tablets, 600px to 768px)  */
@media (min-width: 600px) and (max-width: 990px) { 
  .cmt{
    margin-top: 7%;
  }
 }

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 
  .cmt{
    margin-top: 4%;
  }
 }

.card {
  border: none;
  background-color: rgb(2, 11, 19);
}
.card img {
  border: 2px solid bisque;

  border-radius: 15px;
}

.card-title {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: aliceblue;
}
.card-text {
  font-size: 0.6rem;
  text-align: center;
  color: #ccc;
}

/* popup css style */

/*=============== POPUP MODAL ===============*/
/* .modal {
  position: fixed;
  inset: 0;
  background-color: hsla(5, 90%, 4%, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(24px);
  display: grid;
  place-items: center;
  padding: 1rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: var(--z-modal);
  transition: opacity 0.4s, visibility 0.4s;
} */



/* New modal */

.modal {
  position: fixed;
  inset: 0;
  background-color: hsla(5, 90%, 4%, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(24px);
  display: grid;
  place-items: center;
  padding: 1rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: var(--z-modal);
  transition: opacity 0.4s, visibility 0.4s;
  overflow: hidden; /* Prevents modal container from expanding */
}


/* .modal__card {
  position: relative;
  background-color: #ccc;
  padding: 2rem 1.25rem 2rem;
  display: grid;
  row-gap: 1rem;
  text-align: center;
  transform: rotateX(90deg);
  transition: transform 0.9s;
  border-radius: 15px;
  height: 100%;
} */

.modal__card {
  position: relative;
  background-color: #ccc;
  padding: 2rem 1.25rem 2rem;
  display: grid;
  row-gap: 0.5rem;
  text-align: center;
  transform: rotateX(90deg);
  transition: transform 0.9s;
  border-radius: 15px;
  max-height: 95%; /* Ensures the modal fits within the viewport */
  width: 100%; /* Adjust to make the modal responsive */
  overflow-y: auto; /* Enables scrolling for overflowing content */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional styling */
}


.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
  transition: 1.5s;
  z-index: 10; /* Make sure it's above all content */
}

.modal__close:hover {
  transform: rotate(-720deg);
}
.modal__img-wrapper {
  margin-top: 1rem; /* Push the image downward */
  display: flex;
  justify-content: center;
}
.modal__img {
  border-radius: 5px;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px hsla(5, 90%, 4%, 0.2));
}


.modal__name {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 0.5rem;
}

.modal__info2 {
  align-content: center;
}

.modal__info {
 display: block;
  width: 100%;
  margin: 0;
  padding-inline: 5px; /* Logical padding works for both RTL and LTR */
  box-sizing: border-box;
}

.modal__buttons {
  display: flex;
 gap: 0.5rem;
  border-radius: 15px;
}
.modal__button{
  border-radius: 15px;
}
.modal__button {
  display: flex; /* Enables flexbox layout */
  justify-content: center; /* Centers content horizontally */
  align-items: center; /* Centers content vertically */
  border-radius: 15px;
  outline: none;
  border: none;
  background-color: #cfcfcf;
  padding-block: 0.5rem;
  color: rgb(2, 11, 19);
  font: var(--font-semi-bold) var(--normal-font-size) var(--body-font);
  cursor: pointer;
  transition: background-color 0.4s;
}

.modal__button:hover {
  background-color: #1e272e;
  color: #cfcfcf;
}

.modal__button-ghost {
  display: flex; /* Ensures flexbox is applied to this variation */
  justify-content: center;
  align-items: center;
  background-color: #cfcfcf;
  color: #1e272e;
}

.modal__button-ghost:hover {
  background-color: #1e272e;
  color: #cfcfcf;
}

/* end of the new modal */

/* .modal {
  position: fixed;
  inset: 0;
  background-color: hsla(5, 90%, 4%, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(24px);
 
  place-items: right;
  padding: 1rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: var(--z-modal);
  transition: opacity 0.4s, visibility 0.4s;
  overflow: hidden; 

  display: -webkit-flex;
    display: flex;
     
} */


/* .modal__card {
  position: relative;
  background-color: #ccc;
  padding: 2rem 1.25rem 2rem;
  display: grid;
  row-gap: 1rem;
  text-align: center;
  transform: rotateX(90deg);
  transition: transform 0.9s;
  border-radius: 15px;
  height: 100%;
} */
/* .modal__card {
  position: relative;
  background-color: #ccc;
  margin: 0;
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
  align-items: center; 
  row-gap: 0.25rem;
  text-align: center;
  transform: rotateX(90deg);
  transition: transform 0.9s;
  border-radius: 15px;
  max-height: 95vh;
  width: 100%;
  overflow-y: auto;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);

      -webkit-transform: rotateX(90deg);
    transform: rotateX(90deg);
    -webkit-transition: -webkit-transform 0.9s;
    transition: transform 0.9s;
} */

/* .modal__close {
  position: absolute;
  top: 1rem;
  right: 0.25rem;
  font-size: 1.5rem;
  color: rgb(2, 11, 19);
  cursor: pointer;
  transition: 1.5s;
  z-index: 1000;
}

.modal__close:hover {
  transform: rotate(-720deg);
}

.modal__img-wrapper {
  
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  padding: 0;
  margin: 0;

 
}

.modal__img {
  border-radius: 5px;
  filter: drop-shadow(0 8px 16px hsla(5, 90%, 4%, 0.2));
  max-width: 50%;      
  max-height: 30vh;    
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  display: block;

   max-height: -webkit-fill-available;
       image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.modal__name {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 0.5rem;
}

.modal__info {
  margin-bottom: 1rem;
  text-align: right;
  margin-right: 5px;
}

.modal__buttons {
  display: flex;
 gap: 0.5rem;
  border-radius: 15px;
}
.modal__button{
  border-radius: 15px;
}
.modal__button {
  display: flex; 
  justify-content: center;
  align-items: center; 
  border-radius: 15px;
  outline: none;
  border: none;
  background-color: #cfcfcf;
  padding-block: 0.5rem;
  color: rgb(2, 11, 19);
  font: var(--font-semi-bold) var(--normal-font-size) var(--body-font);
  cursor: pointer;
  transition: background-color 0.4s;
}

.modal__button:hover {
  background-color: #1e272e;
  color: #cfcfcf;
}

.modal__button-ghost {
  display: flex; 
  justify-content: center;
  align-items: center;
  background-color: #cfcfcf;
  color: #1e272e;
}

.modal__button-ghost:hover {
  background-color: #1e272e;
  color: #cfcfcf;
} */


/* Active modal */
.active-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: initial;
}

.active-modal .modal__card {
  transform: rotateX(0);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
/* @media screen and (max-width: 300px) {
  .modal {
    padding-inline: 1rem;
  }
  .modal__buttons {
    flex-direction: column;
  }
} */

@media screen and (max-width: 540px) {
  .modal__card {
    max-height: 80%; /* Reduce height to fit smaller screens */
    padding: 1rem; /* Adjust padding */
  }
  
}


/* For medium devices */
@media screen and (min-width: 540px) {
  .modal__card {
    max-width: 450px;
    height: 600px; /* Adjust height as desired */
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .card__product {
    border: none;
  }
  .modal__card {
    max-width: 376px;
  }
  .modal__img {
    width: 250px;
  }
  .modal__name {
    font-size: 20px;
  }
  .modal__buttons {
    column-gap: 1rem;
  }
}

/* Dropdown base styles */
.dropdown {
  position: relative;
}
.dropdown-menu {
  max-height: 0; /* Initially hidden */
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  background-color: #1e272e;
  list-style: none;
  padding: 0; /* No padding when closed */
  margin: 0;
  border-radius: 4px;
}
.dropdown-menu li {
  padding: 0 20px;
}
.dropdown-menu li a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}
.dropdown-menu li a:hover {
  background-color: #1e272e;
 
}

/* Show dropdown menu smoothly */
.dropdown.open .dropdown-menu {
  max-height: 300px; /* Adjust as needed */
  padding: 10px 0; /* Add padding when open */
}

/* Shift only items after dropdown */
.dropdown.open ~ li {
  transform: translateY(100px); /* Move down by 100px */
  transition: transform 0.5s ease; /* Smooth transition */
}


