/* 1. ГЛАВНОЕ: Убиваем стрелку и сам блок выпадающего списка */
.t-product__option-select, 
.t-product__option-select::after,  /* Сама стрелка */
.t-product__option-select .t-select__arrow,
select.t-product__option-input,
.t-store__prod-popup__info select {
    display: none !important;
    opacity: 0 !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
    content: none !important; /* Убираем контент псевдоэлемента */
}

/* 2. КОНТЕЙНЕР КНОПОК (добавил отступ сверху) */
.t-product__option-variants {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important; 
    margin-top: 15px !important; /* <--- ВОТ ОТСТУП ОТ СЛОВА "РАЗМЕР" */
}

/* 3. ДИЗАЙН КНОПКИ-КВАДРАТА */
.t-product__option-item {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    
    width: 45px !important;
    height: 45px !important;
    border-radius: 5px !important;
    
    background-color: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #000000 !important; /* Черная обводка */
    
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box !important;
}

/* 4. ЛОГИКА КЛИКА (Прозрачный инпут поверх кнопки) */
.t-product__option-item input[type="radio"],
.t-product__option-item .t-product__option-input {
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    z-index: 10;
    cursor: pointer;
    margin: 0 !important;
}

/* Скрываем старый мусор (стандартные кружки) */
.t-product__option-indicator,
.t-product__option-icon,
.t-product__option-item::before,
.t-product__option-item::after {
    display: none !important;
    content: none !important;
}

/* 5. ТЕКСТ (M, L, XL) */
.t-product__option-title {
    position: relative;
    z-index: 5;
    font-size: 14px !important;
    color: #000000 !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    padding: 0 !important;
}

/* 6. АКТИВНОЕ СОСТОЯНИЕ */
.t-product__option-item.t-active,
.t-product__option-item:has(input:checked) {
    background-color: #000000 !important;
}

.t-product__option-item.t-active .t-product__option-title,
.t-product__option-item:has(input:checked) .t-product__option-title {
    color: #ffffff !important;
}

/* 7. ХОВЕР */
.t-product__option-item:hover {
    background-color: rgba(0, 0, 0, 0.2) !important;
}
.t-product__option-item.t-active:hover {
    background-color: #000000 !important;
}

.js-product .t-product__option-variants:after {
    opacity: 0;
}
