
body{
  display: flex;
  flex-direction: column;
}


h1 {
  font-size: clamp(1.3rem, 5vw, 2rem); /* Between 32px and 48px */
}

nav{
  padding: .25em 1em;
  padding-right: 2em;
  box-shadow: 5px 5px 10px var(--light-grey);
}

nav ul{
  list-style: none;
}

nav ul li{
  margin-inline: .1em;
  text-transform: capitalize;
  /* center text */
  display: flex;
  align-items: center;
}

/* === DID THIS SO THAT MAIN WILL ALWAYS PUSH FOOTER
       TO THE BOTTOM OF THE PAGE SO IT WILL STICK TO THE BOTTTOM 
       AT LARGER SCREEN SIZES 
       HINT: BODY WAS SET TO FLEX AND DIRECTION CCOLUMN TO ACHIEVE THIS  */
main{
  flex: 1;
  flex-direction: column;
}

img{
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
   transition: all 250ms ease;
}

a{
  display: block;
  padding: .7em .8em;
}

.nav-logo-container{
  transform: scale(.1);
  border: 2px solid red;
}



/* ==== UTILITY CLASSES */
.bd-radius{
  border-radius: inherit;
}
.BB{border-bottom: 1px solid var(--light-grey);} /* BB ==== border bottom */


.d-block{display: block;}
.d-flex{display: flex;}
.space-btw{justify-content: space-between;}
.space-around{justify-content: space-around;}
.f-d-column{flex-direction: column; }
.j-c-end{justify-content: end;}
.j-c-start{justify-content: start;}
.j-c-center{justify-content: center;}
.align-center{align-items: center;}
.align-end{align-items: end;}

/* FONTN-UTILITIES */
.FWB{font-weight: bold;}
.text-center{text-align: center;}

/* ======= OTHER UTILITIES ========= */
/* for tags that have icons in then to center properly */
.text-icon-container{
  display: flex;
  align-items: center;
  gap: .5em;
}

/* container above nav that contains links to become and open carrt agent */
.agent-links-continer a{
     color: var(--light-grey);
}
.agent-links-continer a:hover{
  color: var(--light-blue);
}
.agent-links-continer .opay:hover{
  color: var(--emerald-green);
}

.search-input-btn-container{
  display: flex;
  flex: 1;
  max-width: 600px;
  margin-right: 1em;
}
.search-input-btn-container input{
  width: 100%;
  margin-inline: .5em;
}

#search-btn{
 transform: scale(.8);
}

.hi{
  height: 50px;
}

.dropdown-menu {
  display: flex;
  position: absolute;
  background: white;
  padding: 0.5em;
  border: 1px solid #ddd;
  white-space: nowrap;
  top: 100%; /* places it below the parent li */
  right: 0;
  margin: .5em 1.5em;
  z-index: 10;
  flex-direction: column;

    /* Animation styles */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    transition: all 450ms ease;
}

.dropdown-menu ul a{
  width: 100%;
}

.dropdown-menu button{
  margin-top: 1em;
}

.dropdown{
  position: relative;
    z-index: 2; 
    margin: 0 .5em;
}

.dropdown:focus-within .dropdown-menu,
.dropdown:focus .dropdown-menu
 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);/* shows it in one horizontal row */
}



.product-category-section{
  margin: .3em auto;
  padding: .5em;
  overflow: visible;
  position: relative;
}

.product-category-container {
 align-items: start;
 justify-content: start;
 position: relative;
 flex-direction: row;
}

.js-filter-btn{
  position: relative;
  z-index: 12;/*higher than the two drop downs ul*/
}


.product-category-list-container{
  display: flex;
  flex-direction: row;
  box-shadow:  none;
  z-index: 10;
  transition: all .3s ease-in-out;
  flex-wrap: wrap;
  pointer-events: none;
  visibility: visible;
  opacity: 0; 
  transform: translateY(-20px);
}

.product-category-list-container li{
  margin: .1em .2em;
  border: 1px solid rgb(188, 189, 189);
  border-radius: .5rem;

}

.product-category-list-container button{
  padding: .3em .5em;
  background-color: var(--white);
}


.product-category-container ul > li >button{
width: 100%;
border-radius: inherit;
/*  */
color: var(--black);
box-shadow: none;
}

.product-category-container >*{
  display: flex;
  margin: 0 .5em;
}
.product-sub-price{
  font-weight: 700;
  color: var(--tomato-red);
  margin-left: 1em;
}

.product-category-container ul{
  list-style: none;
}
.category-wrapper{
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.category-value-container{
  display: flex;
  flex-wrap: wrap;
  box-shadow:  none;
  z-index: 10;
  transition: all .3s ease-in-out;

  pointer-events: none;
  visibility: visible;
  opacity: 0; 
  transform: translateY(-40px);
}

.category-value-container button{
 background-color: var(--white);
}

.category-value-container button:active{
 opacity: 1;
}


.product-category-list-container.show {
   transform: translateY(0px);
   opacity: 1;
   pointer-events:visible;
   visibility: visible;
}
.category-value-container.show{
   transform: translateY(0px);
  opacity: 1;
  pointer-events:visible;
  visibility: visible;
  cursor: pointer;
}

.category-value-container,
.product-category-list-container {
  max-height: 0;
  overflow: hidden;
}

.category-value-container.show,
.product-category-list-container.show {
  max-height: 500px; /* Large enough to fit contents */
  opacity: 1;
}



.product-category-list-container button:hover,
.product-category-list-container button:focus,
.category-value-container button:hover,
.category-value-container button:focus{
  background-color: rgb(219, 233, 255);
}


.refresh-product-btn{
  position: absolute;
  left: 10em;
  z-index: 0;
  transition: all 250ms ease;
}

.product-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1em;
  padding: 2em;
  max-width: 1200px;
  align-items: stretch;
  margin-inline: auto;
}

.product-container >*{
  background-color: var(--soft-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: .5em .7em;
  border-radius: .5rem;
  transition: all 250ms ease;
  overflow: hidden;
  min-height: 300px;
}



.product-media-contaner:hover img{
  transform: scale(1.1);
}
.product-media-contaner:hover{
  cursor: pointer;
}

.view-btn{
  width: fit-content;
  padding: 0;
  display: inline-block;
  display: flex;
  padding: .2em .3em;
  background-color: transparent;
  color: var(--teal-green);
  font-weight: bold;
  box-shadow: none;
   font-family: 'Inter'; 
}

.view-btn:hover{
  background-color: #dddddd80;
}

.product-container > *:hover{
  transform: scale(1.02);
  box-shadow: 5px 5px 10px var(--light-grey);
  background-color: var(--white);
}

.product-container p{
  margin: 0;
}

.product-name{
  line-height: 1.2;
}

.product-price {
  margin: .5em 0;
}

.product-popup-features {
  list-style-type: disc !important; 
  margin-left: 1.2em;  /* ensure space for bullets */
  padding-left: 1.2em; 
}

.user-not-signed-in-popup{
  position: relative;
}

.user-not-signed-in-popup a{
  background-color: var(--primary-blue);
  color: var(--white);
  width: 100%;
  border-radius: .5rem;
}

.not-logged-in-close-btn{
  background-color: transparent;
  position: absolute;
  right: 0;
  top: 0;
  box-shadow: none;
}
.not-logged-in-close-btn svg{
  color: var(--black);
}

.product-media-contaner{
  width: 100%;
  background-color: var(--dark-blue);
   height: 250px;
      overflow: hidden;
      margin-bottom:.5em ;
      position: relative;
}

.save-btn{
  /* position: absolute; */
  top: 0;
  z-index: 1;
  right: 0;
  background-color: transparent;
  box-shadow: none;
  padding: .3em;
}

.save-btn svg{

  width: 35px;
}

.save-btn-icon.saved{
  fill: var(--crimson-red);
  stroke: var(--crimson-red);
  transform: scale(1.05);
}



.save-btn:hover{
    background-color: transparent;
  
}

.save-delete-btn-container{

  z-index: 1;
  position: absolute;
  top: 0em;
  right: 0;
  width: fit-content;
  height: auto;
  display: flex;
  flex-direction: column;
}

.delete-listing-btn{
  background-color: transparent;
  box-shadow: none;
  padding: .3em;
  color: var(--crimson-red);
}
.delete-listing-btn:hover{
  background-color: transparent;
}
.delete-listing-btn svg{
  width: 35px;
}

.success-icon{
 width: 48px;
  height: 48px;
  stroke-width: 3; 
  fill: var(--white);
  stroke: var(--teal-green);
  transform: scale(2);
}


.product-name{
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: capitalize;
}

.product-media-contaner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.listing-play-vid-btn{
  position: absolute;
  top:40%;
  left: 43%;
  transform: scale(1.5);
  background-color: transparent;
  padding: .5em;
  margin: 0;
  box-shadow: none;
  z-index: 20;
  display: grid;
  place-items: center;
}

.listing-play-vid-icon{
  color: var(--dark-blue);
}

.product-price{
  font-weight: 700;
  margin-left: .5em;
  color: var(--teal-green);
}

.sellers-img-container{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: .4rem;
  margin-right:1em;
  color: white;
}

.seller-container{
  display: flex;
  align-items: center;
  margin-bottom: .5em;
}

.sellars-name{
  font-weight: bold;
  font-size: .9rem;
}



/* product popupstyles */
.product-popup-box {
border-radius: 1rem;
padding: .5em;
width:  100%;
max-width: 800px;
background-color: var(--stone-white);
display: flex;
min-width: 300px;
box-shadow: 5px 5px  8px  rgb(121, 121, 121);
position: relative;
animation: slideUp 0.4s ease forwards;
}


/* Animation Keyframes */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(50px);
    opacity: 0;
  }
}




.product-popup-details-container{
  padding: 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.product-popup-details-container ul{
  list-style: none;
}

.product-popup-details-container h2{
   font-size: clamp(1.2rem, 4.5vw, 1.9rem);
   line-height: 1;
}



.product-popup-images {
  width: 60%;
}

.product-popup-main-img {
   height: 400px;
   border-radius: .5rem;
   margin-bottom: .5em;
   /* overflow: hidden; */
  position: relative;
}
.product-popup-main-img video{
  height: 100%;
}

.product-popup-thumbnails {
     display: flex;
     justify-content: center;
}


.product-popup-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

.product-popup-thumb.zoomed {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vw;
  height: auto;
  max-height: 90vh;
  z-index: 2000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: zoom-out;
}


.pop-up-complete-purchse-btn{
  margin: 0em;
  margin-top: 2em;
  width: 100%;
}

.close-popup-btn{
  width: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  right: 1em;
  box-shadow: none;
}
.close-popup-btn svg{
  fill: white;
}

video{
  border-radius: 1rem;
    object-fit: cover;
}

.delete-listing-card{
animation: deleting 3s ease-in-out infinite;}

@keyframes deleting {
  0%{
    opacity: 1;
  }
  25% {
     background-color: var( --light-crimson-red);
     opacity: .8;
  }
  50%{
     background-color: var( --white);
     opacity: .6;
  }
  75%{
     background-color: var( --light-crimson-red);
     opacity: .8;
  }
  100%{
    opacity: .5;
    background-color: var( --crimson-red);
  }
}

@media(max-width: 1000px){
  .product-popup-box{
    flex-direction: column;
    transform: scale(.9);
 
  }
  .product-popup-images{
    width: 100%;
  }
  .product-popup-main-img {
    height: 380px;
  }
}



.book-now-pop-up-card{
  background-color: var(--white);
  padding: .5em 1.5em;
  border-radius: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 1em;
  animation: slideUp 0.4s ease forwards;
}

.book-now-pop-up-card ul{
  font-weight: 700;
  padding: 0 1.5em;
  line-height: 1.4;
}
.book-now-pop-up-card h4{
  line-height: 1;
}
.book-now-pop-up-card>*{
  margin-top: 2em;
  flex-wrap: wrap;
}

.book-now-pop-up-card button{
  margin: .5em 0 ;
}

.slide-up {
  animation: slideUp 0.4s ease forwards;
}

.slide-down {
  animation: slideDown 0.3s ease forwards;
}


                  /* ============ ADD LISTINGS STYLES ============== */
.add-listing-btn{
  position: fixed ;
  z-index: 20;
  bottom: 2em;
  right: 5em;
  box-shadow: none;
  border-radius: 50%;
  padding: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.add-listing-btn svg{
  fill: var(--white);
}

#add-listing-form{
   background-color: var(--white);
   padding: 1em 1.5em;
   margin: 1.5em;
   border-radius: .5rem;
   width: 100%;
   max-width: 500px;
}

#add-listing-form figure{
  width: 50px;
  margin: 1em auto;
}

fieldset {
  display: flex;
  gap: .2em; /* spacing between items */
  flex-wrap: wrap;
  padding: .2em;
}

fieldset input{
  width: fit-content;
  margin: 0;
}

fieldset label {
  display: flex;
  align-items: center;
  line-height: 1;
  margin: .3em;
}

.post-btn{
  width: 100%;
  margin: .5em 0;
}

.listing-warning-popup{
  padding: 1em 1.5em;
  background-color: var(--white);
  margin: 1em;
}

/* reset my background */
.gear-spiner-container{
  background-color: transparent;
  display: grid;
  place-items: center;
  z-index: 400;
  padding: 1.5em;
  justify-self: center;
}

.gear-spiner-container:hover{
  background-color: transparent;
 
}

.gear-spiner-container svg{
  fill: var(--white);
  stroke: var(--primary-blue);
  animation: spin 1s linear infinite;
  transform: scale(3.5);
  animation: spinAndPulse 1.5s linear infinite;
  transform-origin: center;
}

@keyframes spinAndPulse {
  0% {
    transform: rotate(0deg) scale(3.5);
  }
  25% {
    transform: rotate(90deg) scale(4);
  }
  50% {
    transform: rotate(180deg) scale(3.5);
  }
  75% {
    transform: rotate(270deg) scale(4);
  }
  100% {
    transform: rotate(360deg) scale(3.5);
  }
}


@media(max-width: 1000px){
  .agent-links-continer{
  display: none;
 } 

 nav{
  position: relative;
 }

 .sidebar{
         position: fixed;
     top: 0;
     right: 0;
     flex-direction: column;
     justify-content: space-around;
     z-index: 499;
     background-color: var(--white);
    /* Good fallback + best fit */
        height: 100vh;       /* Fallback for older browsers */
        height: 100dvh;      /* Dynamic height: accounts for browser chrome resizing */ 
     width: 80%;
     align-items: center;
     padding: 2em 1em;
     padding-top: 5em;
     transition: all 350ms ease;
     transform: translateX(110%); 
     overflow-y: scroll;
     overflow-x: hidden;
 }

 .sidebar.show{
  transform: translateX(0%);
}


   nav ul li{
     width: 100%;
     margin: 1em 0;
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     justify-content: space-between;
  }

  nav ul li.dropdown{
   height: fit-content;
  }


  .sidebar-btn{
    display: flex;
    z-index:  500;
  }


.dropdown-menu {
  display: flex;
  position: relative;
  padding: 0.5em;
  top: 0; /* places it below the parent li */
  right: 0;
  margin: .5em 1.5em;
  z-index: 10;
  flex-direction: column;

    /* Animation styles */
    opacity: 1;
    visibility: visible;
    transform: translateY(0%);
    transition: all 450ms ease;
    width: 100%;
    margin: 0;
    height: fit-content;
    border: none;
    overflow: hidden;
}

.dropdown-menu li{
  margin: 0;
}

.dropdown-menu button{
  width: 100%;
}

.dropdown{
  position: relative;
}


}

