/** Shopify CDN: Minification failed

Line 199:0 Unexpected "}"

**/
variant-selects {
  display: block;
}

.product--no-media .product-form__input--pill,
.product--no-media .product-form__input--swatch,
.product--no-media .product-form__input--dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.product--no-media .product-form__input.product-form__input--pill,
.product--no-media .product-form__input.product-form__input--swatch {
  flex-wrap: wrap;
  margin: 0 auto 1.2rem auto;
}

.product--no-media .product-form__input--dropdown {
  flex-direction: column;
  max-width: 100%;
}

:is(.product-form__input--pill, .product-form__input--swatch) .form__label {
  margin-bottom: 0.2rem;
}

.product-form__input input[type='radio'] {
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  position: absolute;
  height: 1px;
  width: 1px;
}

.product-form__input input[type='radio']:not(.disabled) + label > .label-unavailable {
  display: none;
}

.product-form__input--dropdown {
  --swatch-input--size: 2rem;
  margin-bottom: 1.6rem;
}


.product-form__input--dropdown .dropdown-swatch + select {
  padding-left: calc(2.4rem + var(--swatch-input--size));
}

.product-form__input--dropdown .dropdown-swatch {
  position: absolute;
  left: 1.6rem;
  top: calc(50% - var(--swatch-input--size) / 2);
  width: var(--swatch-input--size);
  height: var(--swatch-input--size);
  z-index: 1;
}


/* Custom styles for Pill display type */
.product-form__input--pill input[type='radio'] + label {
  border: var(--variant-pills-border-width) solid rgba(var(--color-foreground), var(--variant-pills-border-opacity));
  background-color: rgb(var(--color-background));
  color: rgba(var(--color-foreground));
  border-radius: var(--variant-pills-radius);
  color: rgb(var(--color-foreground));
  display: inline-block;
  margin: 0.7rem 0.5rem 0.2rem 0;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
  line-height: 1;
  text-align: center;
  transition: border var(--duration-short) ease;
  cursor: pointer;
  position: relative;
}

.product-form__input--pill input[type='radio'] + label:before {
  content: '';
  position: absolute;
  top: calc(var(--variant-pills-border-width) * -1);
  right: calc(var(--variant-pills-border-width) * -1);
  bottom: calc(var(--variant-pills-border-width) * -1);
  left: calc(var(--variant-pills-border-width) * -1);
  z-index: -1;
  border-radius: var(--variant-pills-radius);
  box-shadow: var(--variant-pills-shadow-horizontal-offset) var(--variant-pills-shadow-vertical-offset)
    var(--variant-pills-shadow-blur-radius) rgba(var(--color-shadow), var(--variant-pills-shadow-opacity));
}

.product-form__input--pill input[type='radio'] + label:hover {
  border-color: rgb(var(--color-foreground));
}

.product-form__input--pill input[type='radio']:checked + label {
  background-color: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
}

@media screen and (forced-colors: active) {
  .product-form__input--pill input[type='radio']:checked + label {
    text-decoration: underline;
  }

  .product-form__input--pill input[type='radio']:focus-visible + label {
    outline: transparent solid 1px;
    outline-offset: 2px;
  }
}

.product-form__input--pill input[type='radio']:checked + label::selection {
  background-color: rgba(var(--color-background), 0.3);
}

.product-form__input--pill input[type='radio']:disabled + label,
.product-form__input--pill input[type='radio'].disabled + label {
  border-color: rgba(var(--color-foreground), 0.1);
  color: rgba(var(--color-foreground), 0.6);
  text-decoration: line-through;
}

.product-form__input--pill input[type='radio'].disabled:checked + label,
.product-form__input--pill input[type='radio']:disabled:checked + label {
  color: rgba(var(--color-background), 0.6);
}
.product-form__input--pill input[type='radio']:focus-visible + label {
  box-shadow: 0 0 0 0.3rem rgb(var(--color-background)), 0 0 0 0.5rem rgba(var(--color-foreground), 0.55);
}

/* Fallback */
.product-form__input--pill input[type='radio'].focused + label {
  box-shadow: 0 0 0 0.3rem rgb(var(--color-background)), 0 0 0 0.5rem rgba(var(--color-foreground), 0.55);
}

/* No outline when focus-visible is available in the browser */
.no-js .product-form__input--pill input[type='radio']:focus:not(:focus-visible) + label {
  box-shadow: none;
}
/* End custom styles for Pill display type  */

/* Custom styles for Swatch display type */
.product-form__input--swatch {
  display: flex;
  flex-wrap: wrap;
}

.product-form__input--swatch .swatch-input__input + .swatch-input__label {
  margin: 0.7rem 1.2rem 0.2rem 0;
}

@media screen and (min-width: 750px) {
  .product-form__input--swatch .swatch-input__input + .swatch-input__label {
    --swatch-input--size: 2.8rem;
  }
}

.product-form__input--pill label {
  all: unset;
  display: flex;
}


.product-form__input--pill input[type="radio"]:checked + label {
  border-color: #1297DD;
  background: #f4f4f4;
  box-shadow: 0 0 0 2px #1297DD;
}


/* Badge estilo etiqueta "Más popular", "Mejor oferta", etc. */

/* Subtexto como el precio */
.variant-price {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.price-original {
  text-decoration: line-through;
  color: #7a7a7a;
  font-size: 10px;
}

.price-final {
  color: #1297DD;
  font-weight: 600;
  font-size: 13px;
}

}
/* Color del borde del botón seleccionado */
.product-form__input--pill input[type="radio"]:checked + label {
  border-color: #1297DD !important;
}

/* Color del texto (200 / 500 / 1000) cuando está seleccionado */
.product-form__input--pill input[type="radio"]:checked + label span:first-child {
  color: #1297DD !important;
}
/* Estilo del botón seleccionado */
.js.product-form__input input[type="radio"]:checked + label {
  border: 2px solid #1297DD !important;
  color: #1297DD !important; /* Cambia el color del texto del número */
}

/* Para que sólo el número (inicio del label) cambie de color */
.js.product-form__input input[type="radio"]:checked + label::first-line {
  color: #1297DD !important;
}


.js-product-form__input label:not([data-badge])::after {
  display: none !important;
  content: none !important;
}



/* Estilo del badge correctamente posicionado */
.js.product-form__input label{
  position: relative;
  overflow: visible;
}



.js.product-form__input.product-form__input--pill {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Espaciado entre botones */
}

/* TÍTOL SELECCIONA CANTITAT AMIIBOS */.selector-title {
  display: flex;
  align-items: center;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: #333;
  margin-top: 5px;
  margin-bottom: 0px;
}

.selector-title::before,
.selector-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #333;
  margin: 0 12px;
}

/* Títol secció de complements, estil similar al selector de pack */
.complements-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #333;
  margin-top: 2.5rem;   /* ✅ separació dels packs */
  margin-bottom: 0.6rem;/* ✅ una mica d’aire abans dels toggles */
}

.complements-title::before,
.complements-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #d0d0d0;  /* una mica més suau que el de dalt */
  margin: 0 12px;
}


.product-form__input--pill label:not([data-badge]), 
.product-form__input--pill label[data-badge=""] {
  position: relative;
}

.product-form__input--pill label:not([data-badge])::after,
.product-form__input--pill label[data-badge=""]::after {
  display: none !important;
  content: none !important;
}


.variant-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #dedede;
  border-radius: 2rem;
  padding: 18px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 0 0 1px #eee;
  text-align: left;
  position: relative;
}

.amiibo-qty {
  flex: 1;
  text-align: left;
}

.variant-price {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.price-original {
  text-decoration: line-through;
  color: #7a7a7a;
  font-size: 10px;
}

.price-final {
  color: #1297DD;
  font-weight: 600;
  font-size: 13px;
}

.variant-button:not([data-badge]),
.variant-button[data-badge=""] {
  position: relative;
}

.variant-button:not([data-badge])::after,
.variant-button[data-badge=""]::after {
  display: none !important;
  content: none !important;
}

.product-form__input--pill input[type='radio'] + label.variant-button {
  all: unset;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #dedede;
  border-radius: 2rem;
  padding: 12px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 0 0 1px #eee;
  text-align: left;
  position: relative;
}

input[type="radio"]:checked + label.variant-button {
  transform: scale(1.02);
  transition: transform 0.2s ease;
  z-index: 1; /* Per evitar que es solapi malament amb altres */
}
.variant-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* End custom styles for Swatch display type */

/* NOU AFEGIT DE CODI */

.amiibo-pack-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.amiibo-pack-selector input[type="radio"] {
  display: none;
}

.pack-card {
  flex: 1 1 280px;
  max-width: 300px;
  min-width: 240px;
  border: 2px solid #1297DD;
  border-radius: 1.5rem;
  padding: 18px 14px;
  height: 500px;
  box-sizing: border-box;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 500px;
}
.pack-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(18, 151, 221, 0.2);
  border-color: #1297DD;
}




input[type="radio"]:checked + .pack-card {
  border-color: #1297DD !important;
  box-shadow: 0 0 0 2px rgba(18, 151, 221, 0.3) !important;
}

.pack-card::after {
  content: attr(data-badge);
  display: inline-block;
  position: absolute;
  bottom: -10px !important;
  right: 34px;
  background: #1297DD;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  z-index: 2;
}

.pack-card[data-badge=""]::after,
.pack-card:not([data-badge])::after {
  display: none;
}

.pack-header {
  position: absolute;
  top: -22px;
  left: 50%;
  line-height: 1.4;
  transform: translateX(-50%);
  background-color: #1297DD;
  color: white;
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 1rem;
  z-index: 1;
}

.amiibo-qty {
  text-align: center; 
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  transition: color 0.2s ease;
}

.sagas {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: #555;
  font-size: 1.2rem;
}

.sagas li {
  margin: 0.2rem 0;
}

.pack-card .price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
}

.price-original {
  text-decoration: line-through;
  color: #888;
  font-size: 1rem;
}

.price-final {
  font-weight: bold;
  color: #1297DD;
  font-size: 1.3rem;
}

input[type="radio"]:checked + .pack-card .amiibo-qty {
  color: #1297DD;
}


.variant-options-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 2rem;
  padding: 0 10px;
}

@media screen and (min-width: 769px) {
  .amiibo-pack-selector {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .amiibo-pack-selector {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .pack-card {
    flex-direction: column; /* Clau per layout vertical */
    align-items: flex-start;
    text-align: left;
    position: relative;
    padding-top: 2.5rem; /* Espai per al header */
    height: 420px;           /* Abans 500px */
    padding: 14px 14px;      /* Reduït de 18px */
  }


  .pack-header {
    position: absolute;
    top: -12px;
    left: 16px;
    transform: none;
    margin: 0;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    background-color: #1297DD;
    color: white;
    font-weight: bold;
    z-index: 2;
  }


   .sagas {
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap; /* Si hi ha moltes sagues, fa una nova línia */
  justify-content: center;
  gap: 0rem; /* Espai entre sagues */
  margin: 0.2rem 0;
  padding-top: 0.5rem;
  margin-bottom: 0px;
  padding: 0;
  list-style: none;
   }

  .sagas li {
  padding: 0.2rem 0.2rem;
  font-size: 1rem;
  padding-top: 0.5rem;
  white-space: nowrap;
   }

  .amiibo-qty {
    font-size: 1.1rem;
    margin: 0;
    color: #1297DD;
   }

  .pack-card .price {
    flex-direction: column;
    align-items: flex-end;
    margin-top: -1.5rem;   /* abans podia ser més gran */
    margin-bottom: 0;     /* redueix espai inferior */
    align-self: flex-end; /* manté a la dreta inferior */
   }

  .pack-card::after {
    bottom: 12px;
    right: 12px;
    transform: rotate(-5deg);
  }
}

/* ===== COMPLEMENTOS (icono + texto + precio + toggle) ===== */

/* ===== Títol secció complements ===== */
.complements-title {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
}

/* ===== COMPLEMENTS (icono + text + preu + toggle) ===== */

.complements-list {
  margin: 0.5rem 0 1.5rem;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;              /* ✅ més espai entre les dues opcions */
}

/* Fila de cada complement */
.complement-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

/* Icona senzilla */
.complement-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Icona + text */
.complement-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

/* Text i preu (mateixa línia) */
.complement-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.complement-name {
  font-size: 1.3rem;    /* abans més petit */
  font-weight: 500;
  line-height: 1.4;
  color: #333;
}

.complement-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

.complement-price s {
  font-size: 0.95rem;
  color: #888;
}


/* Toggle a la dreta, sense tocar la seva posició */
.complement-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* TOGGLE (ja el tenies, el deixem igual) */
.toggle-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.3s;
}

.toggle-switch::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-checkbox:checked + .toggle-switch {
  background-color: #1297DD;
}

.toggle-checkbox:checked + .toggle-switch::before {
  transform: translateX(18px);
}

/* Responsive mòbil: mantenim posició però donem una mica d'aire */
@media (max-width: 600px) {
  .complement-option {
    gap: 0.75rem;
  }

  .complement-text {
    flex-direction: column;
    align-items: flex-start;
  }

  .complement-price {
    align-self: flex-start;
  }
}

.low-stock-message {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000;
  font-weight: 500;
  font-size: 14px;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.low-stock-dot {
  font-size: 18px;
  color: #1297DD;
  display: inline-block;
  animation: low-stock-blink 1s infinite ease-in-out;
}

/* Parpadeo / pulso del punto azul */
@keyframes low-stock-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.6);
  }
}

.low-stock-text strong {
  font-weight: 700;   /* o 600 si lo quieres menos bruto */
  color: #1297DD;
}