@charset "utf-8";
/**{
  border: 1px dotted red;
}*/
/*Productes*/
section.producto {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin-top: 2rem;
}
section.producto>img{
  object-fit: cover;
  display: block;
  box-shadow: 1px 2px 3px 2px rgba(0, 0, 0, 0.7);
}
section.producto>div.contaje{
  display: flex;
  flex-direction:row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-weight: bold;
  padding: 1rem 1rem;
}
section.producto>div.contaje>*{
  width: 50%;
}
section.producto>div.contaje>span:nth-child(2){
  color: #47815c;
}
div.contaje > span:nth-of-type(2),
div.contaje > span:nth-of-type(3){
    text-align: end;
  }



/*Botons y controls*/
div.controls {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
  gap: 1rem;
}
div.controls i.fa-square-minus {
  padding: 0 0.17rem;
  color: gray;
  background-color: var(--color-verde-oscuro);
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
section.albaricoques>div.contaje>div.controls>i.fa-square-minus {
  color: var(--color-rojo-claro);
}
div.controls i.fa-square-minus:hover {
  transform: scale(1.03);
}
div.controls i.fa-square-plus {
  padding: 0 0.17rem;
  background-color: var(--color-verde-oscuro);
  border-radius: 0.4rem;
  color: #81d6a0;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
div.controls i.fa-square-plus:hover {
  transform: scale(1.05);
  box-shadow: 0 0 2px 2px rgba(182, 230, 157, 0.5);
}

div.papelera{
  padding: 0.4rem 0.7rem;
  background-color: lightgray;
  border-radius: 0.4rem;
  border: 2px solid var(--color-verde-oscuro);
  transition: all 0.3s ease-in-out;
}
div.papelera:hover {
  transform: scale(1.03);
  cursor: pointer;
}
div.controls>div.papelera>i.fa-trash-can {
  background: linear-gradient(180deg, var(--color-rojo-claro) 0%, var(--color-rojo-oscuro) 50%, var(--color-rojo-claro) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 1px 1px rgba(36, 4, 7, 0.9));
  transition: all 0.3s ease-in-out;
}

input.quantitat {
  width: 2rem;
  text-align: center;
  margin: 0 0.3rem;
}

button.afegir {
  margin-left: 2rem;
  border-radius: 0.2rem;
  padding: 0.2rem 1rem;
  color: white;
  background: linear-gradient(90deg, var(--color-rojo-oscuro) 0%, var(--color-rojo-claro) 100%)!important;/*Altra cosa del w3,,,*/
  border: 1px solid var(--color-verde-oscuro);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
button.afegir:hover {
  transform: scale(1.03);
  box-shadow: 0 0 2px 1px rgba(203, 34, 50, 0.5);
}
/*Total de la compra*/
section.total{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  
}
section.total>h1{
  font-family: 'Noto Serif', serif;
  font-weight: bold;
}
section.total>p{
  display: flex;
  justify-content: space-between;
  width: 100%;
}
section.total>p:nth-child(5){
  font-weight: bold;
}
section.total>button{
  width: 95%;
  margin-bottom: 1.5rem;
  color: white;
  background-color: #47815c;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
section.total>button:hover{
  transform: scale(1.01);
}
section.nueces{
  box-shadow: 0 6px 8px -3px rgba(0, 0, 0, 0.9);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}
/*****************/
/****VERSIÓ PC****/
@media (width >= 992px) {
  hr{
    display: none;
  }
  .contenedor_flex{
    align-items: flex-start;
  }
  /*Secció productos + main*/
  section.productos {
    width: 65%;
    display: flex;
    flex-direction: column;
  }
  section.total {
    width: calc(35% - (35% * 0.05));
    margin: 3.1rem 1.5rem;
    height: fit-content;
    position: relative;
    background-color: #e9f3edd2;
    border: 1px solid var(--color-verde-oscuro);
  }
  section.producto {
    font-size: 1rem;
    flex-direction: row;
    justify-content: center;
  }
  div.contaje {
    justify-content: space-between;
    background-color: #e9f3edd2;
    margin-bottom: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--color-verde-oscuro);
  }
  
  section.producto>img {
    width: 35%;
    height: 90%;
    z-index: 10;
  }
  section.nueces {
    box-shadow: none; /* Elimina la sombra en versión PC */
    
  }
  
}