body{
  font-family: system-ui;
  background-color: #fbfbfb;
}
header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #000000;
    padding: 0.5rem 1rem;
    margin: 0;
    border-radius: 5px;
    animation: fade-in 2s ease-in-out;
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
header{
  position: fixed;
  top: 0;
  left: 0;
  background-color: #f1f1f1;
  padding-top: 18px;
  padding-bottom: 18px;
  box-shadow: 0 7px 8px -3px grey;
  width: 100%;
  margin-top: -10px;
  z-index: 1000;
}
.container{
  max-width: 1200px;
  text-align: center;
  margin: auto;
}
.header-section{
  display: flex;
  justify-content: space-between;
  margin: auto;
  align-items: center;
  position: relative;
}
.header-section div{
  position: relative;
}
.header-section p{
  position: absolute;
  top: -24px;
  right: -8px;
  background-color: #fff;
  padding: 1px 6px;
  border-radius: 50%;
  color: red;
  font-weight: 700;
  font-family: system-ui;
  line-height: 18px;
}
.logo{
  width: 164px;
  height: 84px;
  cursor: pointer;
}
.logo-container {
  position: absolute;
  top: 0%;
  left: 0%;
}
.cart{
  width: 39px;
  height: 38px;
}
.cart-products{
  position: absolute!important;
  top: 82px;
  right: -18px;
  background-color: #fff;
  padding: 0 18px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
  display: none;
  min-width: 290px;
}

.cart:hover{
  margin-bottom: 16px;
  transition-duration: .5s;
}
/*end header*/
.products{
  padding-top: 170px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.carts{
  max-width: 250px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
  padding-bottom: 34px;
  margin-bottom: 40px;
}
.carts img{
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  transition: all .5s;
}
.carts:hover img{
  transform: scale(1.2);
}
.carts figure{
  overflow: hidden;
}
.carts{
  border-radius: 10px;
}
.carts:hover{
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
}
.carts p{
  font-family: system-ui;
  font-weight: 500;
  padding: 0 20px;
  margin-bottom: 24px;
}
.carts div p{
  position: absolute;
  top: 0;
  right: 0px;
  background-color: rgb(0, 235, 129);
  color: #fff;
  padding: 2px 7px 4px 21px;
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 25% 100%, 0% 50%);
}
.carts div{
  position: relative;
}
.carts a{
  font-family: system-ui;
  text-decoration: none;
  background: red;
  padding: 9px 23px;
  color: #fff;
  font-size: 17px;
  text-transform: uppercase;
  font-weight: 700;
}

.carts a:hover{
  background: #fff;
  color: red;
  border: solid 2px red;
  transition-duration: .3s;
}

/*float cart*/
.cart-products .item img{
  width: 115px;
}

.cart-products .item{
  display: flex;
  align-items: center;
  border-bottom: solid 2px red;
}
.cart-products .item .item-content{
  margin: 0 19px;
  width: 201px;
}
.cart-products .item .item-content h5{
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  font-family: system-ui;
}
.cart-products .item .item-content h6{
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  font-family: system-ui;
}
.cart-products .item span{
  background-color: red;
  padding: 0px 5px;
  border-radius: 50%;
  color: #fff;
  font-family: system-ui;
  cursor: pointer;
}
.cart-products h3{
  margin-bottom: 0;
}
.cart-products .item .item-content h5.cart-price{
  font-weight: 700;
}


p.close-btn{
  top: -4px;
  right: 6px;
  cursor: pointer;
  color: #000;
}
p.author {
  display: flex;
  justify-content: center;
  FONT-VARIANT: JIS04;
  margin-top: 3%;
  gap: 7px;
}
p.author a {
  text-decoration: none;
  font-weight: 700;
  color: #000;
}

@keyframes ondeo {
  0% {
      box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
  }
  50% {
      box-shadow: 0 0 20px 10px rgba(255, 102, 0, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
  }
}

.btn-pagar {
  background-color: #ff6600;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.btn-pagar:hover {
  background-color: #e65c00;
}

.btn-pagar:focus {
  animation: ondeo 1s ease-out;
}

.espacio-blanco {
  margin-bottom: 10px;
}

/* Media Queries para moviles */
@media (max-width: 768px) {
   header h1 {
       font-size: 2rem;
       padding: 0.25rem 0.5rem;
   }

   .container {
       padding: 0 10px;
   }

   .products {
       display: block;
       padding-top: 120px;
   }

   .carts {
       max-width: 100%;
       margin-bottom: 20px;
   }

   .carts img {
       height: auto;
   }

   .carts a {
       font-size: 14px;
       padding: 7px 15px;
   }

   .cart-products {
       right: 10px;
       width: 90%;
   }

   .header-section {
       flex-direction: row; 
       justify-content: space-between;
       padding: 0 10px;
   }

   .logo {
       width: 120px; 
       height: auto;
   }

   .cart {
       margin-top: 0;
   }
}
