/** Shopify CDN: Minification failed

Line 1031:1 Expected "}" to go with "{"

**/
/* Usa il font impostato nel tema Shopify */
.bundle-builder, .product-detail-panel {
  font-family: var(--font-body-family);
}

.bundle-builder {
  max-width: 3500px;
  margin: 0 auto;
  padding: 0px 5px;
  color: #EEECEB;
}

/* Gender Switch */
.gender-switch {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.gender-switch button {
  padding: 8px 16px;
  border: 1px solid #000;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gender-switch button.active {
  background: #000;
  color: #fff;
}

/* Tabs */
.bundle-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
}

.bundle-tabs .tab {
  cursor: pointer;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  color: #555;
}

.bundle-tabs .tab.active {
  border-color: #000;
  color: #000;
}

/* Grid layout */
.bundle-grid {
  display: flex;
  gap: 40px;
  margin-top: 0px;
}

.bundle-grid-left {
  width: 65%;
  padding-left: 20px;
  padding-top: 20px;
}

.bundle-grid-right {
  padding-top: 20px;
  background-color: transparent;
  width: 35%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Grid layout desktop */
@media (min-width: 1024px) {
  .bundle-grid {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-top: 0;
    height: 100vh;
    overflow: hidden;
  }

  .bundle-grid-left {
    width: 65%;
    padding: 20px 20px 100px 20px; /* Aggiunto padding-bottom */
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .bundle-grid-left::-webkit-scrollbar {
    display: none;
  }

  .bundle-grid-right {
    width: 35%;
    padding-top: 20px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
  }
}

/* Step blocks */
.bundle-step {
  display: none;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.bundle-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0px;
}

.product-card {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid transparent;
  transition: border 0.2s ease;
}

.product-card.selected img {
  border: 2px solid #000;
}

/* Right side panel */
.product-detail-panel {
  background: transparent;
  padding: 20px;
  font-size: 14px;
  margin-bottom: 0;
  max-width: 460px;
  width: 100%;
  box-sizing: border-box;
}

.product-detail-panel.hidden {
  display: none;
}

#detail-title {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
  color:var(--color-body, #2c2d2e);
  margin-top:0px;
}

#detail-view-link {
  display: inline-block;
  font-size: 13px;
  color: #111;
  margin-bottom: 16px;
}

#detail-view-link:hover {
  color: var(--color-accent, #404cb7);
  cursor: pointer;
}

#detail-price {
  font-size: 20px;
  font-weight: 500;
  margin: 10px 0;
  color: #111;
}

#stock-status {
  font-size: 13px;
  color: #444;
  margin: 8px 0;
}

/* --- TAGLIE --- */
#variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 12px;
  margin-bottom: 14px;
}

#variant-options button {
  min-width: 42px;
  height: 42px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  margin: 0 6px 6px 0;
  font-size: 13px;
  font-family: var(--font-body-family);
  border: 1px solid var(--color-form-border, #ccc);
  background: #f7f7f7;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

#variant-options button:hover {
  background-color: transparent;
  border-color: black;
}

#variant-options button.active {
  background: var(--color-accent, #4346C4);
  border-color: var(--color-accent, #4346C4);
  color: #fff;
}

.variant-soldout {
  position: relative;
  color: #c0c0c0 !important;
  background-color: #f7f7f7 !important;
  border-color: #dedede !important;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 1; /* importante per mantenere visibilità */
}

.variant-soldout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    transparent 48%,
    #dadce0 49%,
    #dadce0 51%,
    transparent 52%
  );
  z-index: 1;
  pointer-events: none;
}

/* --- SIZE-LABEL --- */
.size-label {
  display: flex;
  align-items: center;
  gap: 30px; /* distanza tra “Size:” e il link */
  font-size: 14px;
}

.size-label a.size-guide-link {
  font-weight: normal;
  text-decoration: none;
}

.size-guide-link .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

#current-size-label,
#current-size-value {
  color: var(--color-body, #2c2d2e);
  display: inline;
  margin: 0;
}

.bundle-builder .form__label strong {
  color: var(--color-body, #2c2d2e);
}

/* --- SELECT BUTTON --- */
#confirm-selection-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent, #404ACB);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-body-family);
  letter-spacing: 0.02em;
  padding: 7px 30px;
  height: 50px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-transform: none;
  appearance: none;
  transition: color 0.25s ease, background-color 0.25s ease;
  width: 100%;
  margin-top: 10px;
}

#confirm-selection-btn:hover {
  background-color: #2f37a2;
}

/* BUNDLE SUMMARY */
.bundle-summary {
  background-color: white;
  padding: 20px;
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 40px;
}

.bundle-summary h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0px;
  color:var(--color-body, #2c2d2e);
  letter-spacing: 0.5px;
  text-transform: none;
}

#add-bundle-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent, #404ACB);
  color: #fff;
  font-size: 0.9375rem; /* come nel tuo screen */
  font-weight: 500;
  font-family: var(--font-body-family);
  letter-spacing: 0.02em;
  padding: 7px 30px;
  height: 50px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-transform: none;
  appearance: none;
  transition: color 0.25s ease, background-color 0.25s ease;
  width: 100%;
}

#add-bundle-to-cart:hover {
  background-color: #2f37a2; /* puoi regolare il colore hover se serve */
}

#add-bundle-to-cart:disabled {
  background-color: #f2f2f2;
  color: #aaa;
  cursor: not-allowed;
}

/* BUNDLE PRICE SUMMARY */
#bundle-price-summary {
  margin-top: 6px;
  margin-bottom: 6px;
}

#original-price {
  text-decoration: line-through;
  margin-right: 10px;
  color: #888;
}

#discounted-price {
  font-weight: bold;
  color:var(--color-body, #2c2d2e);
}

.bundle-missing-msg {
  font-size: 13px;
  color: #444;
  margin-top: 4px;
}


/* BUNDLE PREVIEW ITEMS */
.preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.preview-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px; /* opzionale per rendere più morbido */
}

.preview-item span {
  flex: 1;
}

/* REMOVE ICON BUTTON */
.remove-item-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  color: #ED2C2C;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

/* TOOLBAR CONTAINER */
.bundle-toolbar {
  display: flex;
  background-color: transparent;
  padding: 15px 20px 2px 20px;
  gap: 40px;
}

.toolbar-left {
  width: 65%;
}

.toolbar-right {
  width: 35%;
}

/* Tabs container che include anche gender */
.bundle-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tabs-left {
  display: flex;
  gap: 10px;
}

.gender-buttons {
  display: flex;
  gap: 12px;
}

/* Estetica moderna dei bottoni */
.gender-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  height: 31px;
  font-size: 13px;
  font-family: var(--font-heading-family, "Eurostile Next", sans-serif);
  font-weight: 600;
  letter-spacing: 0.25px;
  line-height: 1;
  background-color: #f3f3f3;
  color: #333;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.gender-buttons button:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.gender-buttons button.active {
  background-color: var(--color-accent);
  color: #fff;
}

/* TABS + GENDER WRAPPER */
.bundle-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
}

/* TABS STYLE */
.tabs-left {
  display: flex;
  gap: 30px;
}

/* OPTIONAL: TITLE */
.bundle-title {
  font-size: 1.2rem;
  padding: 16px 54px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
}

.preview-item span {
  color: #111; /* oppure #000, come preferisci */
}


/* ANIMATION JERSEYS>BIBS>SOCKS */
.bundle-step.fading-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PREZZO PRODOTTO SCONTATO CON IL BUNDLE */
.bundle-price-final {
  font-weight: bold;
  font-size: 20px;
  margin-right: 8px;
  color:red;
}

.bundle-price-original {
  font-size: 14px;
  color:var(--color-body, #2c2d2e);
  font-style: italic;
  display: inline;
  
}

#stock-status {
  display: none !important;
}

/* ANIMAZIONE UOMO - DONNA */
.products-grid {
  transition: opacity 0.3s ease;
  opacity: 1;
}

.products-grid.fading-out {
  opacity: 0;
}

/* FLICKITY PAE DOTS */
#detail-gallery .flickity-page-dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 0;
  list-style: none;
  text-align: center;
  line-height: 0;
  position: static; /* 👈 non absolute né relative */
  border: 0;
  padding: 0;
  z-index: 5;
}

#detail-gallery .flickity-page-dots .dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  opacity: 0.2;
  border-radius: 50%; /* 👈 cerchio base */
  margin: 0 6px;
  background: var(--color-body, #2c2d2e);
  cursor: pointer;
  transform: scale(1, 1);
  transition: all 0.3s ease;
}

#detail-gallery .flickity-page-dots .dot.is-selected {
  width: 30px; /* 👈 allungamento */
  border-radius: 999px; /* 👈 pill effetto */
  opacity: 1;
}

.gallery-cell img {
border-radius: 20px;
} 


@media screen and (max-width: 768px) {
  .bundle-tabs {
    position: relative;
    overflow: hidden;
  }

  .tabs-left {
    max-width: 45%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  .tabs-left::-webkit-scrollbar {
    display: none;
  }

  .tabs-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, #f6f6f8, transparent);
    pointer-events: none;
    z-index: 1;
    opacity: var(--fade-right-opacity, 1);
    transition: opacity 0.3s;
  }

  .tabs-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, #f6f6f8, transparent);
    pointer-events: none;
    z-index: 1;
    opacity: var(--fade-left-opacity, 0);
    transition: opacity 0.3s;
  }

  .bundle-builder {
    padding: 0 6px;
  }

  .bundle-toolbar {
    padding: 15px 0 2px 0;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    padding: 0;
  }

  .toolbar-right {
    display: none !important;
  }

  .bundle-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .bundle-grid-left,
  .bundle-grid-right {
    width: 100%;
    padding: 0;
  }

  .bundle-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
    margin-bottom: 16px;
    box-sizing: border-box;
    width: 100%;
  }

  .tabs-left {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    white-space: nowrap;
    justify-content: flex-start;
  }

  .tabs-left .tab {
    flex: 0 0 auto;
  }

  .gender-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    justify-content: flex-end;
  }

  .product-detail-panel,
  .bundle-summary {
    max-width: 100%;
    border-radius: 20px;
  }

  .bundle-step {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 👇 Wrapper swipeabile a larghezza dinamica */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 90px);
    grid-auto-rows: 90px;
    grid-auto-flow: column;
    gap: 10px;
    width: max-content;
    padding: 20px 0 10px;
    scroll-snap-align: start;
  }

  .product-card {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .preview-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .preview-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
  }

  .preview-item span {
    flex: 1;
  }

  .remove-item-btn {
    align-self: center;
  }

/* 👇 SLIDER TRACK GRAFICO SOTTO LA GRIGLIA */
.slider-track {
  height: 2px;
  background-color: #D1D1D1;
  width: 100%;
  position: relative;
  margin: 6px auto 0;
  overflow: hidden; /* 👈 aggiunto per sicurezza: evita problemi se il thumb esce */
}

.slider-thumb {
  height: 2px;
  width: 30%; /* 👈 larghezza fissa oppure la puoi adattare dinamicamente */
  background-color: #555;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.2s linear; /* 👈 corretto: usiamo transform, non left */
  will-change: transform; /* 👈 ottimizzazione performance per animazioni */
}

.products-slider-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.products-slider-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.products-slider-wrapper.dragging {
  cursor: grabbing;
  user-select: none;
}

.product-card img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.products-slider-wrapper {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

#detail-gallery {
  position: relative;
  width: 100%;
  overflow: visible;
}
#detail-gallery .bundle-gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
}

  /* PULSANTI NAVIGAZIONE BUNDLE GALLERY */
.bundle-gallery-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: white;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.gallery-flickity {
  width: 100%;
  overflow: hidden;
}

.gallery-cell {
  width: 100%;
  margin-right: 10px;
}

.gallery-cell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Viewport immagini */
#detail-gallery .flickity-viewport {
  border-radius: 20px;
  overflow: hidden;
}

/* Pulsanti frecce Flickity */
#detail-gallery .flickity-button {
  background: var(--color-drawer-bg, #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  z-index: 30;
  opacity: 1;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
  border: none;
}

/* Nasconde icona Flickity default */
.flickity-button-icon {
  display: none !important;
}

/* SVG stile */
#detail-gallery .flickity-button svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
  transition: transform 0.3s ease;
}

/* Effetto hover zoom */
#detail-gallery .flickity-button:hover svg {
  transform: scale(1.2);
}

/* Posizioni */
#detail-gallery .flickity-button.previous {
  left: -21px;
}

#detail-gallery .flickity-button.next {
  right: -21px;
}

#detail-gallery .flickity-button svg {
  transform: scale(0.65);
  transform-origin: center;
  pointer-events: none;
  transition: transform 0.3s ease;
}

#detail-gallery .flickity-button:hover svg {
  transform: scale(0.75); /* 👈 invece di 1.2 */
}

/* Stile custom page dots di Flickity */
#detail-gallery .flickity-page-dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  list-style: none;
  text-align: center;
  line-height: 0;
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 100%;
  border: 0;
  padding: 0;
  z-index: 20;
}

#detail-gallery .flickity-page-dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto 0 auto; /* spazio sopra il titolo */
  list-style: none;
  text-align: center;
  line-height: 0;
  position: relative; /* non più absolute! */
  border: 0;
  padding: 0;
  z-index: 5;
}

#detail-gallery .flickity-page-dots .dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  opacity: 0.2;
  border-radius: 4px;
  margin: 0 6px;
  background: var(--color-body, #2c2d2e);
  cursor: pointer;
  position: relative;
  transform: scale(1, 1);
  transition: all 0.3s ease;
}

#detail-gallery .flickity-page-dots .dot.is-selected {
  width: 32px;
  opacity: 1;
  border-radius: 999px;
}

@media (hover: hover) {
  #detail-gallery .flickity-page-dots .dot:hover {
    opacity: 1;
  }
}

.bundle-error-msg {
  color: red;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
}