/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container */
.container {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #ff6b9d;
    font-size: 28px;
    font-weight: 600;
}

.header::before,
.header::after {
    content: '';
    display: inline-block;
    width: 80px;
    height: 1px;
    background: #e0e0e0;
    vertical-align: middle;
    margin: 0 15px;
}

/* Options Container */
.options-container {
    border: 3px solid #ff6b9d;
    border-radius: 8px;
    overflow: hidden;
}

/* Option Styles */
.option {
    border-bottom: 3px solid #ff6b9d;
    background: white;
    transition: all 0.3s ease;
}

.option:last-child {
    border-bottom: none;
}

.option-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.option-header:hover {
    background: #fff5f8;
}

/* Radio Button */
.radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ff6b9d;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option.selected .radio {
    border-color: #ff6b9d;
}

.option.selected .radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #ff6b9d;
    border-radius: 50%;
}

/* Option Info */
.option-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-text-wrapper {
    flex: 1;
}

.option-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.unit-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    font-weight: 400;
}

/* Badges */
.discount-badge {
    background: #ff6b9d;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ff6b9d;
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Price Info */
.price-info {
    text-align: right;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* Option Details */
.option-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.option.expanded .option-details {
    max-height: 300px;
}

.details-content {
    padding: 0 25px 20px 60px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 14px;
    color: #666;
    min-width: 60px;
}

/* Select Styles */
.select-wrapper {
    position: relative;
    flex: 1;
}

select {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s ease;
}

select:hover,
select:focus {
    border-color: #ff6b9d;
    outline: none;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #666;
    pointer-events: none;
}

/* Footer */
.footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px 20px;
}

.free-delivery {
    color: #ff6b9d;
    font-size: 16px;
    font-weight: 500;
}

.total {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* Add to Cart Button */
.add-to-cart {
    width: 100%;
    padding: 16px;
    background: #ff6b9d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    background: #ff5088;
}

.add-to-cart:active {
    transform: scale(0.98);
}

/* Powered By */
.powered-by {
    text-align: right;
    margin-top: 15px;
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 24px;
    }

    .option-header {
        padding: 15px 20px;
    }

    .details-content {
        padding: 0 20px 15px 50px;
    }

    .detail-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}