/** Shopify CDN: Minification failed

Line 201:0 Unexpected "}"
Line 702:20 Unterminated string token
Line 880:0 Expected "}" to go with "{"

**/
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;
}

.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);
  }
}

/* --- TOGGLES AMB ESTIL MODERN I FUNCIONAL --- */

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

.complement-icon {
  width: 40px;
  height: 40px;
  stroke: #1297DD;
  flex-shrink: 0;
  flex-grow: 0;            /* ✅ NO deixar que creixi */
  object-fit: contain;     /* ✅ Evita distorsions */
}


.complement-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
}

.complement-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.complement-price {
  font-size: 1.3rem;
  color: #000;
  text-align: right;
}

.complement-price s {
  color: #888;
  font-size: 1rem;
  margin-left: 0.25rem;
}

@media (max-width: 600px) {


  .complement-right {
    width: 100%;
    justify-content: flex-end;
  }
}



/* --- TOGGLE STYLING --- */
/* --- TOGGLE SWITCH MODERN AMB COLOR #1297DD --- */
/* Estils per al toggle checkbox */
.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;
  margin-left: 10px;
  vertical-align: middle;
}

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

/* Quan està activat */
.toggle-checkbox:checked + .toggle-switch {
  background-color: #1297DD;
}

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

.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;
}

.low-stock-text strong {
  font-weight: 100';
  color: #1297DD;
}

.toggle-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem;
  border-radius: 10px;
  background-color: #f9f9f9;
}


.toggle-option span {
  flex: 1;
  word-break: break-word;
}


@media (max-width: 600px) {
.complement-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.complement-content {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 0.75rem;
  min-width: 0;
  overflow: hidden; /* Evita que elements massa grans trenquin la línia */
}

.complement-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.complement-name,
.complement-price {
  white-space: nowrap;        /* 🔒 No permet que es trenquin en línies */
  overflow: hidden;
  text-overflow: ellipsis;
}

.complement-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.complement-content {
  max-width: calc(100% - 60px) !important; /* 🔧 Deixa espai pel toggle */
}


/* ===== MÓVIL: icono fijo a la izquierda, texto completo, precio en la misma línea ===== */
@media (max-width: 600px) {
  .complement-option{
    display: grid !important;
    grid-template-columns: 40px minmax(0,1fr) auto auto; /* icon | texto | precio | toggle */
    column-gap: 10px;
    align-items: start;
    width: 100%;
  }

  /* ICONO SIEMPRE A LA IZQUIERDA */
  .complement-icon{
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start;
    align-self: start;
    width: 40px;
    height: 40px;
    flex: 0 0 40px !important;
  }

  /* TEXTO: puede ocupar varias líneas sin cortarse */
  .complement-content{
    grid-column: 2 !important;
    min-width: 0;
    overflow: visible !important;
  }
  .complement-name{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block;
    line-height: 1.25;
  }

  /* PRECIO: misma línea, pegado a la derecha del texto */
  .complement-right,
  .complement-price{
    grid-column: 3 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-width: max-content;
    margin: 0;
  }

  /* TOGGLE: última columna, alineado al centro */
  .complement-toggle{
    grid-column: 4 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  /* Anula reglas previas que forzaban el corte/ellipsis */
  .complement-name,
  .complement-price{
    overflow: visible !important;
    text-overflow: unset !important;
  }
}

@media (max-width: 600px) {
  .complement-option {
    display: grid !important;
    grid-template-columns: 32px 1fr auto auto; /* icono más estrecho */
    column-gap: 6px; /* menos espacio entre icono y texto */
    align-items: center;
    width: 100%;
  }

  /* ICONO: más pequeño y pegado a la izquierda */
  .complement-icon {
    grid-column: 1 !important;
    justify-self: start;
    align-self: center;
    width: 28px;   /* antes 40px */
    height: 28px;
    margin-left: 4px; /* pequeño margen interno */
  }

  /* TEXTO: ocupa todo el ancho disponible */
  .complement-content {
    grid-column: 2 !important;
    min-width: 0;
    flex-grow: 1;
    overflow: visible !important;
  }

  .complement-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block;
    line-height: 1.25;
  }

  /* PRECIO */
  .complement-right,
  .complement-price {
    grid-column: 3 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    margin: 0;
  }

  /* TOGGLE */
  .complement-toggle {
    grid-column: 4 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}
