.bato-variation-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 5;
    transition: all 0.3s ease;
}

section[data-variations]:hover .bato-variation-toggle {
    opacity: 1;
    pointer-events: all;
}

.bato-variation-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.bato-variation-toggle svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.bato-variations-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bato-variations-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.bato-variations-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.bato-variations-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.bato-variations-modal.active .bato-variations-modal__content {
    transform: scale(1);
}

.bato-variations-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 1;
}

.bato-variations-modal__close:hover {
    transform: rotate(90deg);
}

.bato-variations-modal__close svg {
    width: 24px;
    height: 24px;
    color: #333;
}

.bato-variations-modal__header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.bato-variations-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.bato-variations-modal__body {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.bato-variations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bato-variation-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bato-variation-item:hover {
    border-color: #333;
    background: #f9f9f9;
}

.bato-variation-item.active {
    border-color: #000;
    background: #f5f5f5;
}

.bato-variation-item__radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.bato-variation-item.active .bato-variation-item__radio {
    border-color: #000;
}

.bato-variation-item.active .bato-variation-item__radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
}

.bato-variation-item__label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.bato-variations-modal__footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.bato-variations-modal__save {
    padding: 12px 30px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bato-variations-modal__save:hover {
    background: #333;
}

.bato-variations-modal__save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

section[data-variations] {
    position: relative;
}
