/* =========================================================
   0) Imports / base
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/*@charset "UTF-8";
#TEXT2{width:300px}
*/


/* =========================================================
   1) Components nous (producte / botons / vídeos)
   ========================================================= */

/* Preu + botó */
.fila-preu-boto {
  display: flex;
  align-items: center;
  gap: 12px; /* espai entre preu i botó */
  margin-top: 10px;
}

/* Botó comprar */
.boto-comprar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  background-color: #7AA945;
  color: white;
  font-weight: bold;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  padding: 0 12px;
  gap: 6px;
  transition: background-color 0.3s;
  cursor: pointer;
}

.boto-comprar:hover {
  background-color: #567a31;
}

.boto-comprar,
.boto-comprar:visited,
.boto-comprar:hover,
.boto-comprar:active {
  color: white;
  text-decoration: none;
}

/* Vídeos YouTube */
.videos-youtube {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

.videos-youtube iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Opcional: amagar en pantalles petites */
@media (max-width: 768px) {
  .videos-youtube {
    display: none;
  }
}

/* Botó telèfon — sempre visible */
.boto-telefon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: red;
  color: #fff;
  padding: 14px 30px;
  border-radius: 3px;
  font-size: 18px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-decoration: none;
  border: none;
  box-sizing: border-box;
  max-width: 360px;
  margin: 0 auto; /* centra’l dins el seu contenidor */
  transition: background-color 0.3s ease;
}

.boto-telefon:hover {
  background-color: #c9302c;
}

.boto-telefon .phone-icon {
  margin-right: 10px;
}

/* Ajustos menors per a pantalles petites */
@media (max-width: 480px) {
  .boto-telefon {
    font-size: 16px;
    width: 90%;
    padding: 12px 20px;
  }
}


/* =========================================================
   I) CARRETÓ FLOTANT (off-canvas mòbil)
   ========================================================= */

.cart-toggle-icon {
  background-color: rgba(192,0,0,0.8) !important;
}

/* MÒBIL */
@media screen and (max-width: 768px) {
  #cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
  }

  #cart-panel:target {
    transform: translateX(0);
  }

  .cart-toggle-icon {
    display: block !important;
    position: fixed;
    top: 80px !important;
    bottom: auto !important;
    right: 11px;
    width: 40px;
    height: 40px;
    background-color: red !important;
    background-image: url('/ic/carro.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 2100;
    border-radius: 50%;
  }

  .close-cart {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    text-decoration: none;
    color: #333;
    z-index: 2200;
  }
}

/* DESKTOP */
@media screen and (min-width: 769px) {
  .cart-toggle-icon,
  .close-cart {
    display: none !important;
  }

  #cart-panel {
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
  }
}


/* =========================================================
   H) FLOATS (WhatsApp / text)
   ========================================================= */

.whatsapp-float {
  position: fixed;
  bottom: 70px;
  right: 10px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: none;
  background: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.text-float {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: white;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



/* Preu a sobre, botó a sota i centrat */
.card-meta{
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* La teva card real */
.card-producte{
  position: relative;
}

/* Reserva espai a baix perquè el botó no tapi el preu */
.card-info{
  padding-bottom: 56px;
}

/* Ancoratge del botó */
.card-bottom{
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin: 0;
}


/* ==========================================================
   CARRO – MODE ICONA AMB SVG CORPORATIU
   ========================================================== */
/* El botó NO ha de ser absolute aquí */
.boto-carro-ico{
  position: static;   /* o elimina position */
  padding:0;
  width:34px;
  height:34px;
  border-radius:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#7AA945;
  text-decoration:none;
}

/* Icona amb SVG (sense <img>) */
.boto-carro-ico .carro-ico{
  width:28px;
  height:28px;
  display:block;
  background:url("https://www.microgamma.com/ic/carro.svg") no-repeat center center;
  background-size:contain;
  filter:brightness(0) invert(1); /* icona blanca */
}