/* Volume Pills - Основные стили */
.volume-pills-container {
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.vp-current-selection {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007cba;
}

.vp-current-selection .vp-price {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.vp-current-selection .vp-volume {
    font-size: 14px;
    color: #6b7280;
    margin-left: 8px;
}

.vp-pills-wrapper {
    position: relative;
    min-height: 40px;
}

.vp-loading {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 15px;
}

.vp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #007cba;
    animation: vp-dot-pulse 1.4s infinite ease-in-out both;
}

.vp-dot:nth-child(1) { animation-delay: -0.32s; }
.vp-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes vp-dot-pulse {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.vp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vp-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.vp-pill:hover {
    border-color: #007cba;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.vp-pill.active {
    background: linear-gradient(135deg, #007cba, #00a8ff);
    color: white;
    border-color: #007cba;
    box-shadow: 0 2px 10px rgba(0, 124, 186, 0.2);
}

.vp-pill.active::after {
    content: '✓';
    margin-left: 6px;
    font-weight: bold;
    font-size: 12px;
}

.vp-pill.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.vp-pill.out-of-stock:hover {
    transform: none;
    border-color: #e5e7eb;
    background: white;
    box-shadow: none;
}

/* Анимация обновления цены */
.vp-price-updating {
    animation: vp-price-update 0.3s ease;
}

@keyframes vp-price-update {
    0% { opacity: 0.5; transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Для каталога товаров */
.vp-catalog-price {
    margin-top: 10px;
}

.vp-catalog-price .volume-pills-container {
    margin: 10px 0;
}

.vp-catalog-price .vp-current-selection {
    padding: 6px 10px;
    margin-bottom: 8px;
}

.vp-catalog-price .vp-current-selection .vp-price {
    font-size: 16px;
}

/* Карточка товара */
.vp-product-card {
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vp-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Кнопка добавления в корзину в паттернах */
.vp-add-to-cart .wp-block-button__link {
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.vp-add-to-cart .wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

.vp-add-to-cart .wp-block-button__link.added {
    background: #46b450 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .vp-pill {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 50px;
    }
    
    .vp-current-selection .vp-price {
        font-size: 16px;
    }
    
    .vp-pills {
        justify-content: center;
    }
}