/* ============================================
   BUNDLE CONFIGURATOR MODERN - STYLES
   ============================================ */

:root {
  /* Color Tokens */
  --bc-primary: #000000;
  --bc-primary-light: #f3f3f3;
  --bc-accent: #121212;
  --bc-accent-hover: #2b2b2b;
  --bc-border: #e5e5e5;
  --bc-text: #000000;
  --bc-text-light: #707070;
  --bc-success: #2e8b57;
  --bc-error: #d72c0d;
  --bc-progress-bg: #e5e5e5;
  --bc-progress-fill: #000000;
  --bc-progress-border: #e5e5e5;
  --bc-header-bg: #ffffff;
  --bc-warning: #ffab4c;

  /* Button Colors */
  --bc-button-bg: #000000;
  --bc-button-text: #ffffff;
  --bc-button-border: #000000;
  --bc-button-hover-bg: #2b2b2b;
  --bc-button-hover-text: #ffffff;
  --bc-button-hover-border: #2b2b2b;
  --bc-button-radius: 6px;
  --bc-reset-button-bg: #ffffff;
  --bc-reset-button-text: #000000;
  --bc-reset-button-border: #e5e5e5;
  --bc-reset-button-hover-bg: #f3f3f3;
  --bc-reset-button-hover-text: #000000;
  --bc-reset-button-hover-border: #000000;
  --bc-random-button-bg: #f3f3f3;
  --bc-random-button-text: #000000;
  --bc-random-button-border: #e5e5e5;
  --bc-random-button-hover-bg: #e5e5e5;
  --bc-random-button-hover-text: #000000;
  --bc-random-button-hover-border: #000000;

  /* Layout */
  --bc-card-border-radius: 8px;
  --bc-card-shadow-blur: 8px;
  --bc-card-shadow-color: #00000015;
  --bc-card-hover-border-color: #121212;
  --bc-card-hover-shadow-blur: 24px;
  --bc-card-hover-shadow-color: #2d2d2d14;

  /* Spacing */
  --bc-space-xs: 0.5rem;
  --bc-space-sm: 1rem;
  --bc-space-md: 1.5rem;
  --bc-space-lg: 2rem;
  --bc-space-xl: 3rem;

  /* Typography */
  --bc-font-family: inherit;
  --bc-font-size-sm: inherit;
  --bc-font-size-base: inherit;
  --bc-font-size-lg: 3rem;
  --bc-font-size-xl: inherit;

  /* Transitions */
  --bc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bundle-configurator-modern {
  font-family: var(--bc-font-family);
  color: var(--bc-text);
  margin-bottom: 20px;
  max-width: 100%;
  overflow-x: clip;
}

/* ============================================
   HERO SECTION - STANDARD SHOPIFY LAYOUT
   ============================================ */

.bundle-hero {
  display: grid;
  /* grid-template-columns: 1fr 0.54fr; */
  grid-template-columns: 1fr 1fr;
  gap: var(--bc-space-xl);
  margin-bottom: var(--bc-space-xl);
  align-items: start;
}

.bundle-hero__image {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.bundle-hero__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.bundle-hero__no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 400px;
  background: var(--bc-border);
  border-radius: 8px;
  color: var(--bc-text-light);
  font-size: var(--bc-font-size-sm);
}

.bundle-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-md);
}

.bundle-hero__title {
  color: var(--bc-primary);
  margin: 0 0 var(--bc-space-sm) 0;
}

.bundle-hero__product-description {
  color: var(--bc-text);
  margin: 0 0 var(--bc-space-sm) 0;
}

.bundle-hero__description {
  font-size: var(--bc-font-size-base);
  line-height: 1.6;
  color: var(--bc-text-light);
  margin: 0 0 var(--bc-space-md) 0;
}

.bundle-hero__info {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-xs);
  margin: var(--bc-space-md) 0;
  padding: var(--bc-space-md);
  border: 2px solid var(--bc-border);
  border-radius: var(--bc-card-border-radius);
  background: var(--bc-primary-light);
}

.bundle-hero__info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--bc-font-size-base);
}

.bundle-hero__info-label {
  font-weight: 500;
  color: var(--bc-text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bundle-hero__info-label--weight {
  color: var(--bc-primary);
  font-weight: 600;
}

.bundle-hero__info-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

.bundle-hero__weight-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.bundle-hero__info-value {
  font-weight: 600;
  color: var(--bc-primary);
  font-size: var(--bc-font-size-base);
}

.bundle-hero__info-value--weight {
  font-size: 1.1rem;
  color: var(--bc-accent);
  font-weight: 700;
}

.bundle-hero__price-group {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-xs);
  margin-top: var(--bc-space-sm);
}

.bundle-hero__price-compare {
  font-size: 2rem;
  color: var(--bc-text-light) !important;
  text-decoration: line-through;
  opacity: 0.7;
}

.bundle-hero__price-sale,
.bundle-hero__price {
  font-size: 2.5rem;
  color: var(--bc-primary);
}

.bundle-hero__price-savings {
  display: block;
  font-size: 2rem;
  color: var(--bc-success, #2e8b57);
}

/* ============================================
   HERO ACTIONS (formerly footer actions, now in hero)
   ============================================ */

.bundle-hero__actions {
  display: flex;
  gap: var(--bc-space-sm);
  align-items: stretch;
  flex-direction: column;
  margin-top: var(--bc-space-lg);
}

@media (min-width: 768px) {
  .bundle-hero__actions {
    gap: var(--bc-space-sm);
  }
}

/* ============================================
   CONFIGURATION SECTION
   ============================================ */

.bundle-config {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-lg);
  position: relative;
  overflow: visible;
}

.bundle-config__header {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-md);
  padding: 1.5rem;
  padding-bottom: var(--bc-space-lg);
  /* border-bottom: 2px solid var(--bc-border); */
  align-items: flex-start;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bc-header-bg, #ffffff);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  margin-bottom: var(--bc-space-md);
}

.bundle-config__header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--bc-space-md);
  width: 100%;
}

.bundle-config__header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--bc-space-md);
  flex: 1;
  min-width: 0;
}

.bundle-config__header-right {
  flex-shrink: 0;
}

.bundle-config__price-summary {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-xs);
  text-align: right;
}

.bundle-config__price-item,
.bundle-config__discount-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bundle-config__price-label,
.bundle-config__discount-label {
  font-size: 1.2rem;
  color: var(--bc-text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.bundle-config__price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bc-primary);
}

.bundle-config__discount-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bc-success);
}

.bundle-config__title {
  font-size: var(--bc-font-size-lg);
  font-weight: 600;
  color: var(--bc-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--bc-space-md);
}

.bundle-config__weight-scale-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.bundle-config__title:hover .bundle-config__weight-scale-icon {
  transform: translateY(-2px);
}

.bundle-config__progress-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--bc-font-size-base);
  color: var(--bc-text-light);
}

.bundle-config__progress-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.bundle-config__progress-text {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bundle-config__progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-sm);
  width: 100%;
  align-items: flex-start;
}

.bundle-config__weight-display-badge {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 700;
  margin-bottom: 0.5rem;
  width: 100%;
  align-self: stretch;
}

.bundle-config__weight-current {
  font-size: 2.5rem;
  color: var(--bc-progress-fill);
  font-weight: 800;
  line-height: 1;
  transition: all 0.3s ease;
}

.bundle-config__weight-separator {
  font-size: 2rem;
  color: var(--bc-text-light);
  font-weight: 400;
}

.bundle-config__weight-capacity {
  font-size: 2rem;
  color: var(--bc-text);
  font-weight: 600;
  line-height: 1;
}

.bundle-config__weight-unit-badge {
  font-size: 1.6rem;
  color: var(--bc-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bundle-config__progress-info {
  display: flex;
  align-items: center;
  gap: var(--bc-space-xs);
  font-size: var(--bc-font-size-sm);
  color: var(--bc-text-light);
  flex-shrink: 0;
}

.bundle-config__count-highlight {
  font-weight: 600;
  color: var(--bc-accent);
  font-size: var(--bc-font-size-base);
}

.bundle-config__capacity-total {
  font-weight: 600;
  color: var(--bc-primary);
}

.bundle-config__progress-label {
  font-weight: 500;
  color: var(--bc-text-light);
}

.bundle-config__progress-bar-container {
  width: 100%;
  height: 20px;
  background: var(--bc-progress-bg);
  border-radius: 10px;
  overflow: visible;
  position: relative;
  border: 2px solid var(--bc-progress-border);
  display: block;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bundle-config__progress-bar {
  display: block !important;
  height: 100%;
  background: var(--bc-progress-fill) !important;
  border-radius: 8px;
  transition: width 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.bundle-config__progress-segments {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 2;
  pointer-events: none;
}

.bundle-config__progress-segment {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 3;
}

.bundle-config__progress-marker {
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--bc-text-light);
  white-space: nowrap;
  background: white;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--bc-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BUNDLE CONFIG ACTIONS (Below Progress Bar)
   ============================================ */

.bundle-config__actions {
  display: flex;
  gap: var(--bc-space-sm);
  align-items: stretch;
  margin-top: var(--bc-space-lg);
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

/* Mobile: Stack buttons vertically */
@media (max-width: 767px) {
  .bundle-config__actions {
    gap: var(--bc-space-sm);
    flex-direction: column;
  }

  .bundle-config__actions .bundle-config__btn {
    box-sizing: border-box;
    width: 30%;
  }

  .bundle-config__actions .bundle-config__btn--primary {
    width: 70% !important;
    max-width: 70% !important;
  }

  .bundle-config__actions .bundle-config__btn--icon {
    width: 30%;
    max-width: 30%;
  }

  .bundle-config__title {
    font-size: 2rem;
  }
}

/* Tablet and Desktop: Horizontal layout */
@media (min-width: 768px) {
  .bundle-config__actions {
    flex-direction: row;
    gap: var(--bc-space-sm);
  }

  .bundle-config__actions .bundle-config__btn--primary {
    flex: 0 0 70%;
    min-width: 0;
  }

  .bundle-config__actions .bundle-config__btn--secondary,
  .bundle-config__actions .bundle-config__btn--tertiary {
    flex: 1;
    min-width: 0;
  }
}

/* Large Desktop: More generous spacing */
@media (min-width: 1024px) {
  .bundle-config__actions {
    gap: var(--bc-space-md);
  }
}

/* ============================================
   BUTTON ICONS
   ============================================ */

.bundle-config__btn--icon {
  min-width: 48px;
  height: 48px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bundle-config__btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .bundle-config__btn--icon {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .bundle-config__btn--icon {
    flex: 1;
  }
}

.bundle-config__message {
  display: block;
  color: var(--bc-success, #2e8b57);
  margin-top: 12px;
  text-align: center;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 2px 5px 14px lightgray;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.bundle-products-grid {
  display: grid;
  grid-template-columns: repeat(var(--bc-products-per-row, 3), 1fr);
  gap: var(--bc-space-lg);
  margin: var(--bc-space-lg) 0;
}

.bundle-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-md);
  padding: var(--bc-space-sm);
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-card-border-radius, 8px);
  box-shadow: 0 2px var(--bc-card-shadow-blur, 8px)
    var(--bc-card-shadow-color, rgba(0, 0, 0, 0.08));
  transition: var(--bc-transition);
  cursor: pointer;
}

.bundle-product-card:hover {
  border-color: var(--bc-card-hover-border-color, var(--bc-accent));
  box-shadow: 0 8px var(--bc-card-hover-shadow-blur, 24px)
    var(--bc-card-hover-shadow-color, rgba(45, 45, 45, 0.08));
  transform: translateY(-2px);
}

.bundle-product--unavailable {
  opacity: 0.5;
}

.bundle-product-card__image-info-wrapper {
  display: flex;
  gap: var(--bc-space-sm);
}

.bundle-product-card__media {
  width: 100%;
}

.bundle-product-card__image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bc-primary-light);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bundle-product-card__image-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.bundle-product-card__image-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.bundle-product-card__image-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.bundle-product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

.bundle-product-card__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.bundle-product-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, background 0.2s ease;
}

.bundle-product-card__dot.is-active {
  background: var(--bc-accent, #121212);
  transform: scale(1.2);
  box-shadow: none;
}

.bundle-product-card__no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bc-border);
  color: var(--bc-text-light);
  font-size: var(--bc-font-size-sm);
}

.bundle-product-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-sm);
}

.bundle-product-card__content {
  display: flex;
  flex-direction: column;
  /* gap: var(--bc-space-sm); */
  flex: 1;
}

.bundle-product-card__title {
  font-size: var(--bc-font-size-base);
  font-weight: 600;
  color: var(--bc-primary);
  margin: 0;
  line-height: 1.4;
}

.bundle-product-card__description-wrapper {
  position: relative;
  margin: 8px 0;
}

.bundle-product-card__description {
  font-size: 1.5rem;
  color: var(--bc-text-light);
  line-height: 1.5;
  margin: 0;
  display: block;
}

.bundle-product-card__description-toggle.is-expanded svg {
  transform: rotate(180deg);
}

.bundle-product-card__price {
  font-size: var(--bc-font-size-base);
  color: var(--bc-accent);
  margin-bottom: 8px;
}

/* ============================================
   STOCK STATUS BADGES
   ============================================ */

.bundle-product-card__stock-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  margin-bottom: 4px;
}

.bundle-product-card__stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bundle-product-card__stock-badge--out-of-stock {
  background-color: rgba(217, 44, 13, 0.1);
  color: var(--bc-error, #d72c0d);
  border: 1px solid rgba(217, 44, 13, 0.3);
}

.bundle-product-card__stock-badge--low-stock {
  background-color: rgba(255, 171, 76, 0.1);
  color: #c97d00;
  border: 1px solid rgba(255, 171, 76, 0.3);
}

.bundle-product-card__stock-remaining {
  font-weight: 700;
}

/* Out of Stock Product Card Styling */
.bundle-product-card--out-of-stock {
  opacity: 0.6;
  position: relative;
}

.bundle-product-card--out-of-stock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--bc-card-border-radius, 8px);
  pointer-events: none;
  z-index: 1;
}

/* Only disable the plus button for out-of-stock products, not the minus button */
.bundle-product-card--out-of-stock .bundle-product-card__btn--plus {
  pointer-events: none;
}

.bundle-product-card--out-of-stock .bundle-product-card__image {
  filter: grayscale(50%);
}

/* Low Stock Product Card Styling */
.bundle-product-card--low-stock {
  border-color: rgba(255, 171, 76, 0.4);
}

.bundle-product-card--low-stock:hover {
  border-color: rgba(255, 171, 76, 0.6);
}

.bundle-product-card__constraints {
  display: flex;
  gap: var(--bc-space-xs);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bundle-product-card__constraint {
  font-size: 12px;
  background: transparent;
  color: var(--bc-error);
  text-transform: lowercase;
}

.bundle-product-card--needs-minimum {
  border-color: var(--bc-error);
  background-color: rgba(217, 122, 111, 0.05);
}

.bundle-product-card--needs-minimum .bundle-product-card__constraint {
  /* background: var(--bc-error); */
  animation: pulse-minimum 2s ease-in-out infinite;
}

@keyframes pulse-minimum {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.bundle-product-card__quantity-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--bc-space-sm);
  margin: 0;
  /* position: relative;
  bottom: auto;
  right: auto; */
}

.bundle-product-card__quantity-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bc-progress-fill, #000000);
  border-radius: 100%;
}

.bundle-product-card__quantity-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bc-text-light);
  text-transform: uppercase;
}

.bundle-product-card__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-space-sm);
  /* background: var(--bc-primary-light); */
  background: none;
  border-radius: 6px;
  margin-top: auto;
}

.bundle-product-card__controls-container {
  display: flex;
  gap: 1px;
}

.bundle-product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  cursor: pointer;
  color: var(--bc-accent);
  transition: var(--bc-transition);
  flex-shrink: 0;
}

.bundle-product-card__btn:hover:not(:disabled) {
  background: var(--bc-accent);
  color: #fff;
  border-color: var(--bc-accent);
}

.bundle-product-card__btn:focus:not(:disabled),
.bundle-product-card__btn:focus-visible:not(:disabled),
.bundle-product-card__btn:active:not(:disabled) {
  background: var(--bc-accent);
  color: #fff;
  border-color: var(--bc-accent);
  outline: none;
  box-shadow: none;
}

.bundle-product-card__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bundle-product-card__icon {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.bundle-product-card__quantity {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: #ffffff;
  background: transparent;
  border: none;
  padding: 5px;
  width: 25px;
  height: 25px;
  border-radius: 100%;
}

.bundle-product-card__quantity::-webkit-inner-spin-button,
.bundle-product-card__quantity::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bundle-product-card__quantity:focus {
  outline: none;
}

/* ============================================
   FOOTER / ACTIONS
   ============================================ */

.bundle-config__footer {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-md);
  padding-top: var(--bc-space-lg);
  border-top: 1px solid var(--bc-border);
}

.bundle-config__actions {
  display: flex;
  gap: var(--bc-space-sm);
  align-items: stretch;
  flex-direction: row;
  width: 100%;
}

@media (min-width: 768px) {
  .bundle-product-card__image-info-wrapper {
    flex-direction: column;
  }

  .weight-product-card__quantity-display {
    flex-direction: row;
  }

  .bundle-product-card__constraints {
    justify-content: center;
    margin-bottom: 5px;
  }
}

.bundle-config__btn {
  padding: var(--bc-space-md) var(--bc-space-lg);
  font-size: var(--bc-font-size-base);
  cursor: pointer;
  transition: var(--bc-transition);
  letter-spacing: 0.5px;
}

.bundle-config__btn--primary {
  background: var(--bc-button-bg) !important;
  color: var(--bc-button-text) !important;
  border: 1px solid var(--bc-button-border) !important;
  border-radius: var(--bc-button-radius) !important;
  outline: none !important;
  outline-offset: 0 !important;
}

.bundle-config__btn--primary:hover:not(:disabled) {
  background: var(--bc-button-hover-bg) !important;
  color: var(--bc-button-hover-text) !important;
  border-color: var(--bc-button-hover-border) !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
  outline-offset: 0 !important;
}

@media (min-width: 768px) {
  .bundle-config__btn--primary {
    flex: 1;
  }

  .bundle-config__btn--secondary,
  .bundle-config__btn--tertiary {
    flex: 1;
  }

  .bundle-config__header-left {
    align-items: center;
    flex-direction: row;
  }
}

.bundle-config__btn:disabled {
  background: var(--bc-border);
  color: var(--bc-text-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.bundle-config__btn--secondary {
  background: var(--bc-reset-button-bg) !important;
  color: var(--bc-reset-button-text) !important;
  border: 1px solid var(--bc-reset-button-border) !important;
  border-radius: var(--bc-button-radius) !important;
  outline: none !important;
  outline-offset: 0 !important;
}

.bundle-config__btn--secondary:hover:not(:disabled) {
  background: var(--bc-reset-button-hover-bg) !important;
  color: var(--bc-reset-button-hover-text) !important;
  border-color: var(--bc-reset-button-hover-border) !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
  outline-offset: 0 !important;
}

.bundle-config__btn--tertiary {
  background: var(--bc-random-button-bg) !important;
  color: var(--bc-random-button-text) !important;
  border: 1px solid var(--bc-random-button-border) !important;
  border-radius: var(--bc-button-radius) !important;
  outline: none !important;
  outline-offset: 0 !important;
}

.bundle-config__btn--tertiary:hover:not(:disabled) {
  background: var(--bc-random-button-hover-bg) !important;
  color: var(--bc-random-button-hover-text) !important;
  border-color: var(--bc-random-button-hover-border) !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
  outline-offset: 0 !important;
}

.bundle-config__error {
  padding: var(--bc-space-md);
  background: rgba(217, 122, 111, 0.1);
  color: var(--bc-error);
  border-radius: 6px;
  font-size: var(--bc-font-size-sm);
  margin: 0;
  border: 1px solid rgba(217, 122, 111, 0.2);
}

/* ============================================
   NOTICES & PLACEHOLDERS
   ============================================ */

.bundle-configurator__notice {
  padding: var(--bc-space-lg);
  background: var(--bc-primary-light);
  border-radius: 8px;
  text-align: center;
  color: var(--bc-text-light);
}

.bundle-configurator__notice p {
  margin: 0;
  font-size: var(--bc-font-size-base);
}

.bundle-configurator__placeholder {
  padding: var(--bc-space-xl);
  background: var(--bc-primary-light);
  border-radius: 8px;
  text-align: center;
  border: 2px dashed var(--bc-border);
  color: var(--bc-text-light);
}

.bundle-configurator__placeholder p {
  margin: 0;
  font-size: var(--bc-font-size-base);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .bundle-hero {
    grid-template-columns: 1fr;
    gap: var(--bc-space-lg);
  }

  .bundle-hero__image {
    order: -1;
  }

  .bundle-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bc-space-md);
  }

  .bundle-config__header {
    padding: 0.75rem;
    padding-bottom: 0.75rem;
    top: 0;
    z-index: 100;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }

  .bundle-config__header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bundle-config__header-right {
    width: 100%;
  }

  .bundle-config__price-summary {
    text-align: left;
    flex-direction: row;
    gap: 0.75rem;
  }

  .bundle-config__price-item,
  .bundle-config__discount-item {
    flex: 1;
  }

  .bundle-config__discount-item {
    align-items: flex-end;
  }

  .bundle-config__title {
    font-size: 1.75rem;
  }

  .bundle-config__price-label,
  .bundle-config__discount-label {
    font-size: 1rem;
  }

  .bundle-config__price-value,
  .bundle-config__discount-value {
    font-size: 1.6rem;
  }

  .bundle-config__progress-wrapper {
    gap: 0.5rem;
  }

  .bundle-config__weight-display-badge {
    padding: 0.7rem 1rem;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    border-radius: 10px;
  }

  .bundle-config__weight-current {
    font-size: 2rem;
  }

  .bundle-config__weight-separator,
  .bundle-config__weight-capacity {
    font-size: 1.55rem;
  }

  .bundle-config__weight-unit-badge {
    font-size: 1.15rem;
    letter-spacing: 0.3px;
  }

  .bundle-config__progress-bar-container {
    height: 14px;
    border-width: 1px;
  }

  .bundle-config__actions {
    margin-top: 0.75rem;
    gap: 0.5rem;
  }

  .bundle-config__btn {
    padding: 0.85rem 1rem;
    font-size: 1.4rem;
  }

  .bundle-config__btn--icon {
    min-width: 42px;
    height: 42px;
    padding: 10px;
  }

  .bundle-config__btn-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .bundle-hero__price-sale,
  .bundle-hero__price {
    font-size: 1.5rem;
  }

  .bundle-products-grid {
    grid-template-columns: 1fr;
    gap: var(--bc-space-md);
  }

  .bundle-config__progress-info {
    align-items: center;
  }

  .bundle-config__footer {
    gap: var(--bc-space-md);
  }

  .bundle-config__header {
    padding: 0.65rem;
  }

  .bundle-config__title {
    font-size: 1.6rem;
  }

  .bundle-config__price-summary {
    gap: 0.5rem;
  }

  .bundle-config__price-label,
  .bundle-config__discount-label {
    font-size: 0.95rem;
  }

  .bundle-config__price-value,
  .bundle-config__discount-value {
    font-size: 1.45rem;
  }

  .bundle-config__weight-display-badge {
    padding: 0.6rem 0.85rem;
  }

  .bundle-config__weight-current {
    font-size: 1.8rem;
  }

  .bundle-config__weight-separator,
  .bundle-config__weight-capacity {
    font-size: 1.4rem;
  }

  .bundle-config__weight-unit-badge {
    font-size: 1rem;
  }

  .bundle-config__progress-bar-container {
    height: 12px;
  }

  .bundle-config__actions .bundle-config__btn {
    width: 28%;
  }

  .bundle-config__actions .bundle-config__btn--primary {
    width: 72% !important;
    max-width: 72% !important;
  }

  .bundle-config__btn {
    padding: 0.75rem 0.85rem;
    font-size: 1.3rem;
  }

  .bundle-config__btn--icon {
    min-width: 40px;
    height: 40px;
    padding: 9px;
  }
}

/* ============================================
   WEIGHT BUNDLE SPECIFIC STYLES
   ============================================ */

.weight-bundle-configurator .bundle-config__weight-unit {
  font-weight: 600;
  color: var(--bc-primary);
}

.weight-product-card__badge {
  position: absolute;
  top: -8px;
  right: 0px;
  background: var(--bc-accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.weight-product-card__badge--enhanced {
  background-color: #999;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.weight-product-card__badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.weight-product-card__badge-text {
  display: inline-block;
  line-height: 1;
}

.bundle-product-card:hover .weight-product-card__badge--enhanced {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.weight-product-card__quantity-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 6px;
  margin-bottom: var(--bc-space-sm);
}

.weight-product-card__quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bc-progress-fill, #000000);
  border-radius: 100%;
}

.weight-product-card__quantity-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bc-text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.weight-product-card__weight-info {
  font-size: var(--bc-font-size-xs);
  color: var(--bc-text-light);
}

.weight-product-card__total-weight {
  font-weight: 600;
  color: var(--bc-accent);
}

/* Weight Bundle Responsive Adjustments */
@media (max-width: 768px) {
  .weight-product-card__badge {
    font-size: 12px;
    padding: 3px 6px;
    top: 0;
    right: 0;
  }

  /* Layout a lista per mobile - stile "Buy More, Save More" */
  .weight-bundle-configurator .bundle-product-card {
    flex-direction: row;
    gap: 0;
    padding: var(--bc-space-sm);
    align-items: stretch;
  }

  .weight-bundle-configurator .bundle-product-card__image-wrapper {
    width: 80px;
    min-width: 80px;
    height: 80px;
    aspect-ratio: 1;
    flex-shrink: 0;
    position: relative;
  }

  .weight-bundle-configurator .bundle-product-card__content {
    flex: 1;
    min-width: 0;
  }

  .weight-bundle-configurator .bundle-product-card__title {
    font-size: 1.4rem;
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .weight-bundle-configurator .bundle-product-card__description {
    display: none; /* Nasconde la descrizione su mobile */
  }

  .weight-bundle-configurator .bundle-product-card__price {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .weight-bundle-configurator .weight-product-card__badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  .weight-bundle-configurator .weight-product-card__badge--enhanced {
    padding: 6px 8px;
    font-size: 12px;
  }

  .weight-bundle-configurator .weight-product-card__badge-icon {
    width: 12px;
    height: 12px;
  }

  .bundle-config__weight-scale-icon {
    width: 24px;
    height: 24px;
  }

  .bundle-hero__info-icon {
    width: 16px;
    height: 16px;
  }

  .bundle-hero__weight-icon {
    width: 18px;
    height: 18px;
  }

  .weight-bundle-configurator .weight-product-card__quantity-display {
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    flex-direction: row;
  }

  .weight-bundle-configurator .weight-product-card__quantity-wrapper {
    gap: 4px;
  }

  .weight-bundle-configurator .weight-product-card__quantity-label {
    font-size: 1rem;
  }

  .weight-bundle-configurator .bundle-product-card__quantity {
    font-size: 1.2rem;
  }

  .weight-bundle-configurator .weight-product-card__weight-info {
    font-size: 1rem;
  }

  .weight-bundle-configurator .bundle-product-card__controls {
    gap: 8px;
    padding: 6px;
  }

  .weight-bundle-configurator .bundle-product-card__btn {
    width: 28px;
    height: 28px;
  }

  .weight-bundle-configurator .bundle-product-card__icon {
    width: 14px;
    height: 14px;
  }

  /* Layout a lista per mobile - stile "Buy More, Save More" per quantity configurator */
  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    padding: var(--bc-space-sm);
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__image-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: start;
    width: 100%;
    min-width: 0;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__media {
    width: 100%;
    min-width: 0;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__image-wrapper {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1;
    position: relative;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__content {
    width: 100%;
    min-width: 0;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__title {
    font-size: 1.25rem;
    margin-bottom: 0;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__info {
    gap: 6px;
    min-width: 0;
    width: 100%;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__description {
    display: none; /* Nasconde la descrizione su mobile */
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__price {
    font-size: 1.3rem;
    margin-bottom: 8px;
    text-align: center;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__constraints {
    justify-content: center;
    margin-bottom: 8px;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__constraint {
    font-size: 1rem;
    padding: 2px 6px;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__stock-badges {
    gap: 8px;
    margin: 0;
    justify-content: center;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__stock-badge {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    text-align: left;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__quantity-display {
    flex-wrap: nowrap;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    grid-column: 2;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__quantity-wrapper {
    gap: 4px;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__quantity-label {
    font-size: 1rem;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__quantity {
    font-size: 1.3rem;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__controls {
    display: grid;
    grid-template-columns: 28px 32px 28px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    width: 100%;
    margin-left: 0;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__btn--minus {
    grid-column: 1;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__btn--plus {
    grid-column: 3;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__btn {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-color: rgba(18, 18, 18, 0.18);
    box-shadow: 0 1px 2px rgba(18, 18, 18, 0.08);
    opacity: 1;
    position: relative;
    z-index: 1;
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__btn:disabled {
    opacity: 0.75;
    background: #f5f5f5;
    color: rgba(18, 18, 18, 0.55);
    border-color: rgba(18, 18, 18, 0.12);
  }

  .bundle-configurator-modern:not(.weight-bundle-configurator)
    .bundle-product-card__icon {
    width: 14px;
    height: 14px;
    display: block;
  }
}

@media (max-width: 480px) {
  .weight-product-card__quantity-display {
    gap: 1px;
  }

  .weight-product-card__weight-info {
    font-size: var(--bc-font-size-sm);
  }
}

/* Responsive styles for weight display badge and progress markers */
@media (max-width: 768px) {
  .bundle-config__weight-display-badge {
    padding: 0.8rem 1.2rem;
  }

  .bundle-config__weight-current {
    font-size: 2.2rem;
  }

  .bundle-config__weight-capacity {
    font-size: 1.8rem;
  }

  .bundle-config__progress-marker {
    font-size: 10.5px;
    top: -26px;
  }
}

@media (max-width: 480px) {
  .bundle-config__weight-display-badge {
    padding: 0.75rem 1rem;
    gap: 0.35rem;
  }

  .bundle-config__weight-current {
    font-size: 2rem;
  }

  .bundle-config__weight-separator {
    font-size: 1.6rem;
  }

  .bundle-config__weight-capacity {
    font-size: 1.6rem;
  }

  .bundle-config__weight-unit-badge {
    font-size: 1.3rem;
  }

  .bundle-config__progress-bar-container {
    height: 16px;
  }

  .bundle-config__progress-marker {
    font-size: 10px;
    padding: 1px 4px;
    top: -24px;
  }
}
