/**
 * Variant Selector Styles
 * ANFISA-inspired design with warm, earthy tones
 */

/* Variant Selector Container */
.variant-selector {
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #e8e6e1;
  border-bottom: 1px solid #e8e6e1;
}

.variant-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b5d4f;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Color Swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background-clip: padding-box;
  padding: 0;
}

.color-swatch:hover:not(:disabled) {
  border-color: #9ca3af;
  transform: scale(1.1);
}

.color-swatch.selected {
  border-color: #2c2520;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2c2520;
  transform: scale(1.1);
}

.color-swatch:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.color-swatch .swatch-slash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 2px;
  background: #ef4444;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.selected-variant-name {
  font-size: 0.9375rem;
  color: #6b5d4f;
  margin: 0.75rem 0 0 0;
  font-weight: 500;
  font-style: italic;
}

/* Package Options */
.package-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.package-option {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border: 2px solid #e8e6e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafaf8;
}

.package-option:hover:not(.disabled) {
  border-color: #c4a57b;
  background: #fff;
}

.package-option input[type="radio"] {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2c2520;
}

.package-option:has(input:checked) {
  border-color: #2c2520;
  background: #fff;
  box-shadow: 0 1px 3px rgba(44, 37, 32, 0.1);
}

.package-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f3f4f6;
}

.package-details {
  flex: 1;
}

.package-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2520;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}

.package-volume {
  font-size: 0.875rem;
  color: #9b8a7a;
  margin: 0 0 0.5rem 0;
}

.package-pricing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.package-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.package-compare-price {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.package-savings {
  font-size: 0.875rem;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.package-unavailable {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  background: #fee2e2;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Size Selector */
.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-button {
  min-width: 60px;
  padding: 0.75rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.size-button:hover:not(:disabled) {
  border-color: #9ca3af;
  background: #f9fafb;
}

.size-button.selected {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.size-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Beauty Product Information */
.product-benefits,
.product-key-ingredients,
.product-skin-type,
.product-badges {
  margin: 1.5rem 0;
}

.product-benefits h3,
.product-key-ingredients h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Benefit Badges */
.benefit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.benefit-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
}

/* Ingredients List */
.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredients-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  color: #6b7280;
  font-size: 0.875rem;
}

.ingredients-list li:last-child {
  border-bottom: none;
}

/* Skin Type Tags */
.product-skin-type h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.skin-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skin-type-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
}

/* Product Badges (Cruelty-free, Vegan) */
.product-badges {
  display: flex;
  gap: 0.75rem;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: #059669;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-badge::before {
  content: "✓";
  font-size: 1rem;
  font-weight: bold;
}

/* Collapsible Sections */
.product-how-to-use,
.product-ingredients {
  margin: 1.5rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.product-how-to-use summary,
.product-ingredients summary {
  padding: 1rem;
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-how-to-use summary::after,
.product-ingredients summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform 0.2s;
}

.product-how-to-use[open] summary::after,
.product-ingredients[open] summary::after {
  transform: rotate(45deg);
}

.product-how-to-use p,
.ingredients-content {
  padding: 1rem;
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .package-option {
    padding: 0.875rem;
  }

  .package-title {
    font-size: 0.9375rem;
  }

  .color-swatch {
    width: 40px;
    height: 40px;
  }

  .size-button {
    min-width: 55px;
    padding: 0.625rem 1rem;
  }
}
