/** Shopify CDN: Minification failed

Line 963:0 Unexpected "}"

**/
/* Variant Wizard Modal - Fully Configurable Professional Design */
.variant-wizard-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wizard-animation-speed) ease,
              visibility var(--wizard-animation-speed) ease;
}

.variant-wizard-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.variant-wizard-modal[hidden] {
  display: none;
}

.variant-wizard-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--wizard-overlay-color);
  opacity: var(--wizard-overlay-opacity);
  animation: fadeIn var(--wizard-animation-speed) ease-out;
}

.variant-wizard-modal__content {
  position: relative;
  background-color: var(--wizard-background-color);
  border-radius: var(--wizard-border-radius);
  width: 95%;
  max-width: var(--wizard-max-width);
  max-height: var(--wizard-max-height);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--wizard-border-color);
  padding: var(--wizard-padding);
  animation: wizardEnter var(--wizard-animation-speed) ease-out forwards;
}

/* Header Styles */
.variant-wizard-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--wizard-option-spacing);
}

.variant-wizard-modal__title {
  margin: 0;
  width: 100%;
}

.variant-wizard-header__content {
  display: flex;
  flex-direction: column;
  gap: var(--wizard-option-spacing);
  width: 100%;
}

.variant-wizard-header__title {
  display: flex;
  align-items: center;
  gap: calc(var(--wizard-option-spacing) * 0.5);
}

.variant-wizard-header__step-icon {
  font-size: calc(var(--wizard-font-size-title) * 0.8);
  line-height: 1;
  opacity: 0.8;
}

.variant-wizard-header__step-title {
  font-size: var(--wizard-font-size-title);
  font-weight: 600;
  color: var(--wizard-text-color);
  margin: 0;
  line-height: 1.2;
}

.variant-wizard-header__progress {
  width: 100%;
}

.variant-wizard-progress {
  display: flex;
  align-items: center;
  gap: calc(var(--wizard-option-spacing) * 0.5);
}

.variant-wizard-progress__bar {
  flex: 1;
  height: 4px;
  background: rgba(var(--wizard-primary-color), 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.variant-wizard-progress__fill {
  height: 100%;
  background: var(--wizard-accent-color);
  border-radius: 2px;
  transition: width var(--wizard-animation-speed) ease;
}

.variant-wizard-progress__text {
  font-size: calc(var(--wizard-font-size-option) * 0.8);
  font-weight: 500;
  color: var(--wizard-secondary-text-color);
  white-space: nowrap;
}

.variant-wizard-modal__close-button {
  background: none;
  border: none;
  font-size: calc(var(--wizard-font-size-title) * 0.6);
  cursor: pointer;
  color: var(--wizard-text-color);
  padding: calc(var(--wizard-option-padding) * 0.5);
  border-radius: 50%;
  transition: all calc(var(--wizard-animation-speed) * 0.5) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--wizard-swatch-size) * 0.5);
  height: calc(var(--wizard-swatch-size) * 0.5);
  flex-shrink: 0;
}

.variant-wizard-modal__close-button:hover {
  background-color: rgba(var(--wizard-primary-color), 0.1);
  transform: scale(1.1);
}

/* Content Area */
.variant-wizard-modal__steps {
  flex: 1;
  overflow-y: auto;
  margin-top: var(--wizard-option-spacing);
}

.variant-wizard-step {
  animation: stepFadeIn var(--wizard-animation-speed) ease-out;
}

.variant-wizard-step__description {
  margin-bottom: var(--wizard-option-spacing);
  text-align: center;
}

.variant-wizard-step__description p {
  margin: 0;
  font-size: calc(var(--wizard-font-size-option) * 0.9);
  color: var(--wizard-secondary-text-color);
  line-height: 1.5;
}

/* Options Grid */
.variant-wizard-step__options {
  display: grid;
  grid-template-columns: repeat(var(--wizard-options-per-row), 1fr);
  gap: var(--wizard-option-spacing);
  margin-top: var(--wizard-option-spacing);
}

/* Swatch-based Options */
.variant-wizard-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--wizard-option-spacing) * 0.5);
  padding: var(--wizard-option-padding);
  border: 2px solid var(--wizard-border-color);
  border-radius: var(--wizard-option-border-radius);
  background: var(--wizard-background-color);
  cursor: pointer;
  transition: all calc(var(--wizard-animation-speed) * 0.5) ease;
  opacity: 0;
  transform: translateY(20px);
  animation: optionFadeIn var(--wizard-animation-speed) ease-out forwards;
  animation-delay: calc(var(--index, 0) * 0.1s);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.variant-wizard-option:focus-visible {
  outline: 2px solid var(--wizard-accent-color);
  outline-offset: 2px;
}

.variant-wizard-option:hover:not(.unavailable) {
  border-color: var(--wizard-primary-color);
  background: rgba(var(--wizard-primary-color), 0.05);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(var(--wizard-primary-color), 0.15);
}

.variant-wizard-option.selected {
  border-color: var(--wizard-accent-color);
  background: rgba(var(--wizard-accent-color), 0.08);
  box-shadow: 0 4px 20px rgba(var(--wizard-accent-color), 0.25);
}

.variant-wizard-option.selected::after {
  content: '✓';
  position: absolute;
  top: calc(var(--wizard-option-padding) * 0.5);
  right: calc(var(--wizard-option-padding) * 0.5);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wizard-accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(var(--wizard-accent-color), 0.3);
}

.variant-wizard-option.unavailable {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(var(--wizard-primary-color), 0.03);
  border-color: rgba(var(--wizard-primary-color), 0.1);
}

.variant-wizard-option.unavailable:hover {
  transform: none;
  box-shadow: none;
}

.variant-wizard-option__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--wizard-swatch-size);
  height: var(--wizard-swatch-size);
  border-radius: 50%;
  background: rgba(var(--wizard-primary-color), 0.1);
  flex-shrink: 0;
  overflow: hidden;
}

.variant-wizard-option__icon {
  font-size: calc(var(--wizard-swatch-size) * 0.5);
  line-height: 1;
  opacity: 0.7;
}

.variant-wizard-option__label {
  font-size: var(--wizard-font-size-option);
  font-weight: 600;
  color: var(--wizard-text-color);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

/* Footer Styles */
.variant-wizard-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--wizard-option-spacing);
  padding-top: var(--wizard-option-spacing);
  border-top: 1px solid var(--wizard-border-color);
}

.variant-wizard-modal__prev-button,
.variant-wizard-modal__next-button {
  padding: calc(var(--wizard-option-padding) * 0.75) calc(var(--wizard-option-padding) * 1.5);
  border-radius: calc(var(--wizard-option-border-radius) * 0.8);
  font-weight: 600;
  font-size: var(--wizard-font-size-option);
  transition: all calc(var(--wizard-animation-speed) * 0.5) ease;
  min-width: 120px;
  border: 2px solid transparent;
}

.variant-wizard-modal__prev-button {
  background: rgba(var(--wizard-primary-color), 0.1);
  border-color: var(--wizard-border-color);
  color: var(--wizard-text-color);
}

.variant-wizard-modal__prev-button:hover:not(:disabled) {
  background: rgba(var(--wizard-primary-color), 0.15);
  transform: translateY(-2px);
}

.variant-wizard-modal__next-button {
  background: var(--wizard-primary-color);
  color: white;
}

.variant-wizard-modal__next-button:hover:not(:disabled) {
  background: var(--wizard-accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--wizard-primary-color), 0.4);
}

.variant-wizard-modal__prev-button:disabled,
.variant-wizard-modal__next-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes wizardEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .variant-wizard-modal__content {
    width: 98%;
    max-width: none;
    max-height: calc(var(--wizard-max-height) * 0.9);
    border-radius: calc(var(--wizard-border-radius) * 0.8);
    margin: 0 8px;
  }

  .variant-wizard-modal__steps {
    margin-top: calc(var(--wizard-option-spacing) * 0.8);
  }

  .variant-wizard-step__options {
    grid-template-columns: repeat(var(--wizard-options-per-row-tablet), 1fr);
    gap: calc(var(--wizard-option-spacing) * 0.8);
  }

  .variant-wizard-header__content {
    gap: calc(var(--wizard-option-spacing) * 0.8);
  }

  .variant-wizard-header__step-title {
    font-size: calc(var(--wizard-font-size-title) * 0.9);
  }

  .variant-wizard-option {
    padding: calc(var(--wizard-option-padding) * 0.8);
  }

  .variant-wizard-modal__footer {
    margin-top: calc(var(--wizard-option-spacing) * 0.8);
    padding-top: calc(var(--wizard-option-spacing) * 0.8);
  }
}

@media (max-width: 480px) {
  .variant-wizard-modal__content {
    width: 100%;
    margin: 0;
    border-radius: calc(var(--wizard-border-radius) * 0.6) calc(var(--wizard-border-radius) * 0.6) 0 0;
    max-height: calc(var(--wizard-max-height) * 0.95);
  }

  .variant-wizard-modal__steps {
    margin-top: calc(var(--wizard-option-spacing) * 0.6);
  }

  .variant-wizard-step__options {
    grid-template-columns: repeat(var(--wizard-options-per-row-mobile), 1fr);
    gap: calc(var(--wizard-option-spacing) * 0.6);
  }

  .variant-wizard-header__content {
    gap: calc(var(--wizard-option-spacing) * 0.6);
  }

  .variant-wizard-header__step-title {
    font-size: calc(var(--wizard-font-size-title) * 0.85);
  }

  .variant-wizard-option {
    padding: calc(var(--wizard-option-padding) * 0.6);
    gap: calc(var(--wizard-option-spacing) * 0.4);
  }

  .variant-wizard-option__visual {
    width: calc(var(--wizard-swatch-size) * 0.8);
    height: calc(var(--wizard-swatch-size) * 0.8);
  }

  .variant-wizard-option__label {
    font-size: calc(var(--wizard-font-size-option) * 0.9);
  }

  .variant-wizard-modal__footer {
    margin-top: calc(var(--wizard-option-spacing) * 0.6);
    padding-top: calc(var(--wizard-option-spacing) * 0.6);
    flex-direction: column;
    gap: calc(var(--wizard-option-spacing) * 0.5);
  }

  .variant-wizard-modal__prev-button,
  .variant-wizard-modal__next-button {
    width: 100%;
    min-width: auto;
  }
}

/* Swatch Integration */
.variant-wizard-option .swatch {
  --swatch--size: var(--wizard-swatch-size);
  border-radius: var(--wizard-option-border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.variant-wizard-option:hover .swatch {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.variant-wizard-option.selected .swatch {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: #000;
}

.variant-wizard-option .swatch.has-image {
  border-width: 2px;
  border-style: solid;
  border-color: #000;
}

.variant-wizard-option .swatch.has-color {
  border-width: 2px;
  border-style: solid;
  border-color: #e5e5e5;
}

.variant-wizard-option .swatch.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Tooltip for wizard swatches */
.variant-wizard-option .swatch-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  margin-bottom: 8px;
  z-index: 1000;
}

.variant-wizard-option:hover .swatch-tooltip {
  opacity: 1;
}

.variant-wizard-option .swatch-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
}

/* ===========================================
   SWATCH SYSTEM PREMIUM STYLES
   =========================================== */

 /* Stili base del sistema esistente per compatibilità */
.swatch {
  --swatch-focal-point: center;
  background: var(--swatch--background, transparent) var(--swatch-focal-point) / cover no-repeat;
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.swatch--square {
  border-radius: 4px;
}

.swatch--unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.swatch--unavailable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 2px;
  background: #ff0000;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Stili per gli swatch del product picker (wizard) */
.swatch-input__label {
  --swatch-focal-point: center;
  background: var(--swatch--background, transparent) var(--swatch-focal-point) / cover no-repeat;
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.swatch-input__label:hover {
  border-color: #007bff;
  transform: scale(1.05);
}

 /* Swatch Container */
.swatch-container,
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}

/* Swatch Base Styles */
.swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  user-select: none;
  will-change: transform, border-color, box-shadow;
}

.swatch:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Swatch Shapes */
.swatch-circle {
  border-radius: 50%;
}

.swatch-square {
  border-radius: 4px;
}

/* Swatch Styles */
.swatch-style-1 {
  border: 2px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.swatch-style-2 {
  border: 1px solid #ccc;
  background: transparent;
}

.swatch-style-2 .swatch-bg {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Swatch Background */
.swatch-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  transition: all 0.3s ease;
}

/* Swatch States */
.swatch:hover {
  transform: scale(1.1);
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.swatch-selected {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
  transform: scale(1.05);
}

.swatch-unavailable {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
}

.swatch-unavailable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 2px;
  background: #ff0000;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

/* Swatch Images */
.swatch .swatch-bg {
  transition: all 0.3s ease;
}

.swatch.has-configured-image {
  border-color: #28a745;
}

.swatch.has-variant-image {
  border-color: #17a2b8;
}

.swatch.has-configured-color {
  border-color: #ffc107;
}

/* Swatch Zoom Effect */
.swatch-zoom-enabled:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* Swatch Labels */
.swatch-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #666;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.swatch:hover .swatch-label {
  opacity: 1;
}

/* Swatch Hidden State */
.swatch-hidden {
  display: none !important;
}

/* Swatch Count */
.swatch-count {
  display: inline-block;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 12px;
  color: #495057;
  font-weight: 500;
  margin-left: 8px;
}

/* Swatch More Button */
.swatch-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 8px;
  position: relative;
}

.swatch-more-button:hover {
  background: #0056b3;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.swatch-more-button:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Swatch Tooltip */
.swatch[data-tooltip] {
  position: relative;
}

.swatch[data-tooltip]:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 1;
  z-index: 1000;
  margin-bottom: 8px;
}

.swatch[data-tooltip]:hover::after {
  content: '';
  position: absolute;
  bottom: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

/* Swatch Processing State */
.swatch-processing {
  position: relative;
  overflow: hidden;
}

.swatch-processing::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Responsive Swatch Styles */
@media (max-width: 768px) {
  .swatch-container,
  .variant-options {
    gap: 6px;
  }

  .swatch {
    width: 28px;
    height: 28px;
  }

  .swatch-more-button {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .swatch-container,
  .variant-options {
    gap: 4px;
  }

  .swatch {
    width: 24px;
    height: 24px;
  }

  .swatch-more-button {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .swatch-label {
    font-size: 9px;
    bottom: -18px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .swatch,
  .swatch-bg,
  .swatch-more-button {
    transition: none;
  }

  .swatch:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .swatch {
    border-width: 3px;
  }

  .swatch-selected {
    border-color: #000;
    box-shadow: 0 0 0 4px #000;
  }
}

/* Product Card Swatches */
.product-swatches {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.product-swatches .swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.product-swatches .swatch:hover {
  transform: scale(1.2);
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.product-swatches .swatch.swatch--unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-swatches .swatch.swatch--unavailable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 1px;
  background: #ff0000;
  transform: translate(-50%, -50%) rotate(45deg);
}

.product-swatches .swatch-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

/* Print Styles */
@media print {
  .swatch-container,
  .variant-options,
  .product-swatches {
    display: none;
  }
}
}