* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
--primary-text-color-light: #222429;
--primary-text-color-dark: #f5f3f1;

--primary-background-color-light: #f5f3f1;
--primary-background-color-dark: #222429;

--primary-blue: #0870d8;
--primary-green: #51ad87;

--secondary-blue: #0870d8d7;
--secondary-green: #51ad87cb;

--secondary-text-color-light: #282c34;
--secondary-text-color-dark: #ffffff;

--secondary-background-color-light: #ffffff;
--secondary-background-color-dark: #282c34;

--header-height: 100px
}
body,
html {
  font-family: Roboto, Helvetica, sans-serif;
}


/* Chrome, Edge, Safari */
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: var(--primary-text-color-dark); /* your track color */
}
body::-webkit-scrollbar-thumb {
  background-color: var(--primary-green); /* your thumb color */
  border-radius: 10px;
}

/* Firefox */
/* body {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-green) var(--primary-text-color-dark);
}
 
/* All the color must be defined here */
@media (prefers-color-scheme: dark) {
  .App,
  a{
    color: var(--primary-text-color-dark);
  }
  main{
    background-color: var(--secondary-background-color-dark);
    color: var(--secondary-text-color-dark);
  }
  .product-tile {
    background: var(--secondary-background-color-light, #fff);
  }
  .product-tile div{
    color: var(--secondary-text-color-light, #000);
  }
  .product-modal-content {
    background-color: var(--secondary-background-color-light, #fff);
    color: var(--secondary-text-color-light, #000);
  }
}
@media (prefers-color-scheme: light) {
  .App,
  a{
    color: var(--primary-text-color-light);
  }
  main{
    background-color: var(--secondary-background-color-light);
    color: var(--secondary-text-color-light);
  }
  .product-tile {
    background: var(--secondary-background-color-light, #fff);
  }
  .product-tile div{
    color: var(--secondary-text-color-light, #000);
  }
  .product-modal-content {
    background-color: var(--secondary-background-color-light, #fff);
    color: var(--secondary-text-color-light, #000);
  }
}

.App {
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main{
  flex-grow: 1;
  width: 100%;
}
.main-section{
  flex-grow: 1;
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
}

.catalogo-iframe{
  width: 100%;
  height: calc(100vh - 150px);
  border: none;
}

.main-section{
  padding: 2rem 0;
}

/* .main-section p{
  margin: 2rem 0;
} */

/* Start Products styles */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 340px));
  justify-content: center;
  gap: 26px;
  width: 100%;
  max-width: 1440px; /* constrain container */
  margin: 0 auto;    /* center the container */
}
.product-tile {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}
.product-tile:hover {
  box-shadow: 5px 5px 15px var(--primary-green);
}
.product-tile img {
  max-width: 100%;
  max-height: 250px;
  margin-bottom: 1rem;
  border-radius: 8px;
  object-fit: contain;
}
.product-tile .product-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.product-tile .product-collection {
  font-size: 0.9rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}
.product-tile .product-shortdesc {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.product-tile .product-cost {
  align-self: start;
  font-weight: 700;
}

/* End product styles */
/* Start Modal styles */
.product-modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-modal-content {
  border-radius: 12px;
  max-width: 1440px;
  margin: 0 5%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 0.5rem 1.5rem 0.5rem;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.product-modal-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  z-index: 10;
}
.product-modal-close:hover {
  color: var(--primary-green);
}
.product-modal-body img {
  max-width: 100%;
  max-height: 275px;
  margin: 0.5rem;
  border-radius: 8px;
  object-fit: contain;
  display: inline-block;
}
.product-modal-body .swiper-slide img {
  max-height: 350px;
}
.product-modal-body {
  text-align: center;
  font-size: 0.75rem;
}
.product-modal-body .product-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 1rem 0 0.5rem 0;
}
.product-modal-body .product-description,
.product-modal-body .product-typeText,
.product-modal-body .product-use,
.product-modal-body .product-usemode,
.product-modal-body .product-cost  {
  margin: 0.5rem 0;
  text-align: left;
}
.product-modal-body .product-cost {
  margin: 0.5rem 0;
  text-align: right;
  font-weight: 700;
}
/* End modal styles */


/* Start home styles */
.home-main-container h2{
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1rem 0 1.5rem 0;
  text-align: left;
  width: 90%;
  max-width: 1440px; /* constrain container */
  margin-left: auto;    /* center the container */
  margin-right: auto;    /* center the container */
}
.expl-section{
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}
.expl-section .expl-section-highlight {
  width: 100%;
  margin-bottom: 2rem;
}
.expl-section-carousel.swiper{
  width: 100%;
  position: relative;
  margin-right: 0;
}
.expl-section-highlight img,
.swiper-slide--card,
.swiper-slide--card div,
.swiper-slide--card div img{
  max-width: 100%;
}
.swiper-button-next:hover,
.swiper-button-prev:hover{
  color: var(--primary-green);
}
.home-more-info-section{
  display: flex;
  flex-direction: column;
}
.home-more-info-section div{
  width: 100%;
}
.home-more-info-section h2{
  text-align: center;
  max-width: 100%;
}
.home-more-info-section img{
  max-width: 100%
}

/* End home styles */

@media (min-width: 500px) {
  .product-modal-content {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
  .home-more-info-section > div{
    align-self: center;
    width: 80%;
  }
}
@media (min-width: 769px) {
  /* Start Modal styles */
  .product-modal-body{
    font-size: 1rem;
  }
  .product-modal-body .product-title {
    font-size: 1.3rem;
  }
  .product-modal-body .product-description,
  .product-modal-body .product-typeText,
  .product-modal-body .product-use,
  .product-modal-body .product-usemode,
  .product-modal-body .product-cost {
    margin: 0.5rem 5%;
  }
  /* End modal styles *//* Start home styles */
  .expl-section{
    max-width: 80%;
  }
  /* End home styles */
}

@media (min-width: 900px) {
  /* Start home styles */
  .expl-section{
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    max-width: 100%;
  }
  .expl-section .expl-section-highlight {
    width: 30%;
    margin-bottom: 0;
  }
  .expl-section-carousel.swiper{
    width: 67%;
  }
  .home-more-info-section{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
  }
  .home-more-info-section > div{
    width: 30%;
  }
  /* End home styles */
}



