:root {
    --primary-color: #7835a8;
    --light-bg-color: #F3F4F6;
    --border-color: #D1D5DB;
    --text-color: #111827;
    --secondary-text: #6B7280;
    --white: #FFFFFF;
    --border-radius: 6px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: #fff;
}

.header-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title::before,
.header-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
    margin: 0 10px;
}

.bundle-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bundle-box {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    position: relative;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.bundle-box.selected {
    border: 2px solid var(--primary-color);
    background: var(--light-bg-color);
    padding: 14px 19px;
}

/* Most Popular Badge */
.most-popular-badge {
    position: absolute;
    top: 8px;
    right: 20px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0;
    display: block;
}

.box-content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.radio-section {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.bundle-box.selected .radio-circle {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.bundle-box.selected .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2px;
}

.pair-count {
    font-weight: 600;
    font-size: 1rem;
}

.price {
    font-weight: 600;
    font-size: 0.8rem;
}

.bottom-row {
    display: flex;
    justify-content: flex-end;
}

/* Adjustment for Info Section Layout */
.info-section {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    width: 100%;
}

.top-row {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
}

.bottom-row {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.pair-count {
    font-size: 0.95rem;
    color: var(--text-color);
}

.price {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 2px;
}

.old-price {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 0.75rem;
    margin-right: 5px;
    font-weight: 500;
}

.bundle-box[data-id="2"] .bottom-row {
    flex-direction: row;
    align-items: center;
}

.discount-tag {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Options Container */
.options-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, margin-top var(--transition-speed) ease;
    width: 100%;
    margin-top: 0;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.2s ease, margin-top 0.2s ease;
}

.bundle-box.selected .options-container {
    max-height: 200px;
    margin-top: 15px;
    opacity: 1;
    overflow: visible;
}

.option-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding-left: 0;
    font-size: 0.75rem;
    font-weight: 500;
}

.option-header label:first-child {
    margin-left: 30px;
    width: 70px;
    margin-right: 10px;
}

.option-header label:last-child {
    flex: 1;
}

.selector-row,
.option-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.row-label {
    width: 30px;
    font-size: 0.8rem;
    color: var(--text-color);
}

.size-select,
.color-select {
    padding: 6px 8px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-right: 10px;
    cursor: pointer;
}

.size-select {
    width: 70px;
}

.color-select {
    flex: 1;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer & Buttons */
.footer-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.free-shipping {
    color: var(--primary-color);
    font-weight: 600;
}

.total-price {
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #5b2880;
    /* Darker shade of new primary */
}

.powered-by {
    text-align: right;
    font-size: 0.7rem;
    color: #9CA3AF;
    font-style: italic;
    margin-top: 10px;
}