/* ============================================================================
   PELETTO — Dostępne opcje (Variations) — компактная версия
   ============================================================================ */

.product-options {
    background: #0f1115;
    border-left: 5px solid #e05100;
    padding: 10px 12px 12px;   /* ← компактно, как просил */
    margin-bottom: 20px;
    font-family: Montserrat, sans-serif;
    border-radius: 2px;
}

/* Заголовок + лид — вместе, компактно */
.product-options__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.product-options__title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.product-options__lead {
    font-size: 11.5px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}

/* Список опций — плотнее */
.product-options__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-option__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0;
    cursor: pointer;
    line-height: 1.3;
}

.product-option__field {
    position: relative;
}

.product-option__field select {
    width: 100%;
    height: 38px;              /* ← компактнее */
    padding: 0 40px 0 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #0f1115;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color .15s, box-shadow .15s;
}

.product-option__field select:hover {
    border-color: #e05100;
}

.product-option__field select:focus {
    border-color: #e05100;
    box-shadow: 0 0 0 3px rgba(224, 81, 0, .25);
}

/* Стрелка селекта */
.product-option__field::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 7px;
    margin-top: -3px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23e05100' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
    pointer-events: none;
    transition: transform .25s;
}

.product-option__field:focus-within::after {
    transform: rotate(180deg);
}

/* Кнопка "Wyczyść" (если вернётся) */
.reset_variations {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    color: #9ca3af;
    text-decoration: underline;
}

.reset_variations:hover {
    color: #e05100;
}

.product-options .stock.out-of-stock {
    color: #fca5a5;
    font-size: 13px;
    padding: 8px 0;
    margin: 0;
}

/* ============================================================================
   Цена выбранной вариации + её название
   ============================================================================ */

/* Нативная цена WooCommerce дублирует ту, что JS пишет в .prices__price_big,
   поэтому скрываем её (в DOM остаётся — нужна JS WooCommerce). */
.woocommerce-variation-price,
.woocommerce-variation.single_variation .woocommerce-variation-price {
    display: none !important;
}

/* Название выбранной вариации под ценой */
.prices__wrapper {
    display: flex;
    flex-direction: column;
}

.prices__variation-name {
    margin: 2px 0 0;
    font-family: Montserrat, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.35;
}

.prices__variation-name:empty {
    display: none;
}

/* Скрываем пустые блоки вариации */
.woocommerce-variation.single_variation:empty,
.woocommerce-variation.single_variation > div:empty {
    display: none;
}

/* ============================================================================
   Адаптив
   ============================================================================ */
@media (max-width: 768px) {
    .product-options {
        padding: 10px 10px 10px;
        border-left-width: 4px;
        margin-bottom: 14px;
    }
    .product-options__title { font-size: 13.5px; }
    .product-options__lead  { font-size: 11px; }
    .product-option__field select {
        height: 36px;
        padding: 0 36px 0 11px;
        font-size: 13px;
    }
    .product-option__field::after {
        right: 12px;
        width: 9px;
        height: 6px;
    }
    .woocommerce-variation-price .price,
    .woocommerce-variation-price .amount {
        font-size: 20px;
    }
}