@import "/public/css/home-global.css";

@import "/public/components/home-components/whatsapp-chat-modal/WhatsAppChatModal.css";
@import "/public/components/home-components/site-header/SiteHeader.css";
@import "/public/components/home-components/site-footer/SiteFooter.css";
@import "/public/components/global-components/paginator/Paginator.css";

@import "/public/components/home-components/featured-products/FeaturedProducts.css";
@import "/public/components/home-components/banner-swiper/BannerSwiper.css";
@import "/public/components/home-components/product-modal/ProductModal.css";
@import "/public/components/home-components/sign-in-modal/SignInModal.css";
@import "/public/components/home-components/contact-form/ContactForm.css";

#site-main > #banner {
  padding: 0;
}

#banner .swiper-slide {
  background: no-repeat no-repeat center center;
  background-size: cover;
}

#banner .slide-1 {
  background-image: url("/public/multimedia/images/foto-slide-1.png");
}

#banner .slide-2 {
  background-image: url("/public/multimedia/images/foto-slide-2.png");
}

#banner .slide-3 {
  background-image: url("/public/multimedia/images/foto-slide-3.png");
}

@media (max-width: 500px) {
  #banner .slide-3 {
    background-image: url("/public/multimedia/images/SLIDE_3.png");
  }
  #banner .slide-2 {
    background-image: url("/public/multimedia/images/SLIDE_2.png");
  }
  #banner .slide-1 {
    background-image: url("/public/multimedia/images/SLIDE_1.png");
  }
}

/*****************************/

#categories {
  background: #232323;
}

#site-main > #categories {
  padding: 0 1rem;
}

#categories .category {
  position: relative;
  background: no-repeat no-repeat center center;
  background-size: cover;
  height: 700px;
  transition: transform 0.5s ease;
  overflow: hidden;
}

#categories .category:hover .category-button {
  color: #cca45e;
  border-color: #cca45e;
}


#categories .category-button {
  padding: 0.5rem 0;
  position: absolute;
  text-decoration: none;
  color: #d1c2a8;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  display: flex;
  flex-direction: column;
  border-radius: 5rem;
  background-color: rgba(16, 16, 16, 0.8);
  align-items: center;
  border: solid #d1c2a8 1px;
  font-size: 1.5rem;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid #d1c2a8;
}

.category-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}

.category:hover .category-bg {
  transform: scale(1.1);
}

.category-button {
  position: relative;
  z-index: 2;
}

#categories .category-button:hover {
  color: #cca45e;
  border-color: #cca45e;
}

#categories .category-button span {
  position: absolute;
  top: -168px;
  font-size: 160px;
}

#categories .category-watches .category-button {
  top: 20%;
}

#categories .category-devices .category-button {
  bottom: 20%;
}

#categories .category-e-cigarettes .category-button {
  bottom: 10%;
  background-color: black;
}

#categories .category-fragancias .category-button {
  top: 10%;
}

/*****************************/

#featured-products {
}

#featured-products .title {
  border: solid #d1c2a8 3px;
  margin: auto auto 4rem;
  padding: 1rem 2.5rem;
  max-width: max-content;
  font-size: 2.5rem;
  position: relative;
}

#featured-products .title span {
  position: relative;
  z-index: 2;
}

#featured-products .title span span {
  color: #b1907c;
}

#featured-products .title:before {
  content: "";
  position: absolute;
  height: 40px;
  background-color: #ffffff;
  width: 110%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*****************************/

#about-us {
  background: #f1f1f1;
}

#about-us h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

#about-us p {
  font-size: 1.2rem;
  margin: auto 0 0;
  max-width: 400px;
}

#about-us img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center center;
}

/*****************************/

#contact h2 {
  color: #b3927f;
}

#contact .image-wrapper img {
  width: 100%;
}

#contact .info-wrapper {
  background: #b3927f;
  padding: 3rem;
  color: white;
}

#contact .info-wrapper p {
  font-weight: normal;
  font-size: 1.3rem;
}

#contact .info-wrapper a {
  color: white;
  text-decoration: none;
}

.category-50 {
  height: 350px !important;
}

@media (min-width: 768px) {

  .slide-fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideFadeInLeft .5s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 25% cover 50%;

  }
  
  .slide-fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideFadeInRight .5s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 25% cover 50%;

  }
  
  .fade-in {
    opacity: 0;
    animation: fadeIn .1s ease forwards;
    animation-timeline:view();
    animation-range: entry 25% cover 50%;

  }
}




@keyframes slideFadeInLeft {
  from {
      opacity: 0;
      transform: translateX(-150px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes slideFadeInRight {
  from {
      opacity: 0;
      transform: translateX(150px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}
/*****************************/
@media (max-width: 400px) {
  #categories .wrapper-categories div {
    background-image: url("/public/multimedia/images/SLIDE\ 3.png");
  }
}
