/* =============================================================================
   NinjaMame Product Switcher
   ============================================================================= */

.nm-switcher__section-title {
  font-size: 20px;
  font-family: var(--akrobat-900);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: var(--headings-color);
}
.nm-switcher__section:not(:last-child) {
  margin-bottom: 24px;
}

/* =============================================================================
   Size buttons
   ============================================================================= */

.nm-switcher__size-buttons {
  display: flex;
  gap: 12px;
}

.nm-switcher__size-btn {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: #1a1a1a;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  flex: 1;
  min-width: 0;
}

.nm-switcher__size-img {
  width: 55px !important;
  height: 55px !important;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px !important;
}

.nm-switcher__size-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nm-switcher__size-btn:hover {
  border-color: var(--primary-color);
  text-decoration: none;
  color: #1a1a1a;
}

.nm-switcher__size-btn--active {
  border-color: var(--primary-color);
}

.nm-switcher__size-btn--active:hover {
  border-color: var(--primary-color);
}

.nm-switcher__badge {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  right: 16px;
  background: var(--primary-color);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
}
.nm-switcher__badge:before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--white-flame-icon);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.nm-switcher__size-label {
  font-size: 16px;
  font-family: var(--akrobat-900);
  color: var(--headings-color);
}

.nm-switcher__size-subtitle {
  font-size: 14px;
  font-family: var(--akrobat-400);
  color: #0e3b47;
  line-height: 1.2em;
}

.nm-switcher__size-price {
  font-size: 16px;
  font-family: var(--akrobat-900);
  color: var(--primary-orange);
}

.nm-switcher__size-price .woocommerce-Price-amount {
  color: inherit;
}

/* =============================================================================
   Flavor buttons
   ============================================================================= */

.nm-switcher__flavor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nm-switcher__flavor-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: #1a1a1a;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.nm-switcher__flavor-btn:hover {
  border-color: var(--primary-color);
  text-decoration: none;
  color: #1a1a1a;
}

.nm-switcher__flavor-btn--active {
  border-color: var(--primary-color);
}

.nm-switcher__flavor-img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  border-radius: 6px !important;
  flex-shrink: 0;
}

.nm-switcher__flavor-name {
  font-size: 16px;
  line-height: 1.2em;
  color: #0e3b47;
  font-family: var(--akrobat-700);
}

.nm-switcher__flavor-note {
  font-size: 12px;
  color: #888;
  font-style: italic;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 480px) {
  .nm-switcher__size-buttons {
    flex-direction: column;
  }
}
