* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-color: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
}

.title {
  text-align: center;
  color: #ff6b82;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
}

.title::before,
.title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: #ddd;
}

.title::before {
  left: 0;
}

.title::after {
  right: 0;
}

.option {
  border: 2px solid #e0e0e0;
  padding: 20px;
  margin-bottom: 30px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.option:hover {
  border-color: #ff6b82;
}

.option.selected {
  border-color: #ff6b82;
  border-width: 2px;
}

.option.popular {
  border-color: #ff6b82;
  border-width: 2px;
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 8px;
  background: #ff6b82;
  color: white;
  padding: 10px 24px;
  /* border-radius: 0 6px 0 20px; */
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}
.popular-badge::before {
  content: " ";
  width: 0px;
  height: 0px;
  border-bottom: 10px solid #d7445b;
  border-left: 10px solid transparent;
  position: absolute;
  top: 0px;
  left: -10px;
}
.popular-badge::after {
  content: " ";
  width: 0px;
  height: 0px;
  border-bottom: 10px solid #d7445b;
  border-right: 10px solid transparent;
  position: absolute;
  top: 0px;
  right: -10px;
}

.option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.radio {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.option.selected .radio {
  border-color: #ff6b82;
}

.option.selected .radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #ff6b82;
  border-radius: 50%;
}

.option-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unit-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.discount-badge {
  background: #ff6b82;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.price-section {
  text-align: right;
}

.current-price {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-top: 2px;
}

.subtitle {
  color: #666;
  font-size: 14px;
  margin-left: 35px;
}

.variant-section {
  margin-top: 20px;
  margin-left: 35px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease;
}

.option.selected .variant-section {
  max-height: 200px;
  opacity: 1;
  margin-top: 20px;
}

.variant-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.variant-label {
  font-size: 14px;
  color: #333;
  min-width: 30px;
}

.select-wrapper {
  position: relative;
  flex: 1;
  max-width: 120px;
}

select {
  width: 100%;
  padding: 8px 30px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  appearance: none;
  color: #333;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  pointer-events: none;
  color: #666;
}

.label-group {
  display: flex;
  gap: 30px;
}

.label-item {
  flex: 1;
}

.label-text {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.footer {
  margin-top: 30px;
}

.delivery-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 16px;
}

.free-delivery {
  color: #ff6b82;
  font-weight: 600;
}

.total {
  font-weight: 700;
  color: #333;
}

.add-to-cart {
  width: 100%;
  background: #ff6b82;
  color: white;
  border: none;
  padding: 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.3s;
}

.add-to-cart:hover {
  background: #ff5a8d;
}

.powered-by {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-top: 15px;
  font-style: italic;
}
