/* ========================================
   QUANTITY OPTIONS STYLES
   ======================================== */

.quantity-options-selector {
  margin-bottom: 1rem;
}

.quantity-options-selector > label {
  display: none; /* Hide label to save space */
}

.quantity-options-selector label i {
  color: var(--primary-color);
  font-size: 1rem;
}

.quantity-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quantity-option-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 70px;
  min-height: auto;
}

.quantity-option-btn:hover {
  border-color: var(--primary-color);
  background: #f0f9f4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.quantity-option-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quantity-option-btn input[type="radio"]:checked + .option-label {
  color: var(--primary-color);
  font-weight: 700;
}

.quantity-option-btn input[type="radio"]:checked ~ .option-label::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
}

.quantity-option-btn input[type="radio"]:checked ~ * {
  color: var(--primary-color);
}

.quantity-option-btn:has(input[type="radio"]:checked) {
  border-color: var(--primary-color);
  background: #f0f9f4;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.option-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.option-price {
  font-size: 0.6875rem;
  color: #666;
  margin-top: 0.125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .quantity-options-grid {
    gap: 0.375rem;
  }
  
  .quantity-option-btn {
    padding: 0.375rem 0.75rem;
    min-width: 60px;
    border-radius: 16px;
  }
  
  .option-label {
    font-size: 0.75rem;
  }
  
  .option-price {
    font-size: 0.625rem;
  }
}

/* Animation for selection */
@keyframes optionSelect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.quantity-option-btn:has(input[type="radio"]:checked) {
  animation: optionSelect 0.3s ease;
}

/* Accessibility */
.quantity-option-btn:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Disabled state */
.quantity-option-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.quantity-option-btn.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: #e0e0e0;
  background: white;
}
