/* Price Icons Styling */
.price-icon {
    display: inline-block;
    margin-left: 8px;
    font-weight: 600;
    font-size: 1.1em;
    vertical-align: middle;
    transition: all 0.2s ease;
    opacity: 0.8;
}

/* Arrow icon for pizzas */
.price-arrow {
    font-size: 1.2em;
    transform: translateY(-1px);
}

/* Plus icon for simple products */
.price-plus {
    font-size: 1.3em;
    font-weight: 700;
    transform: translateY(-1px);
}

/* Button styles to ensure proper layout */
.order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hover effects */
.order-button:hover .price-icon {
    opacity: 1;
    transform: translateY(-1px) scale(1.1);
}

.order-button:hover .price-arrow {
    transform: translateY(-1px) translateX(2px);
}

.order-button:hover .price-plus {
    transform: translateY(-1px) rotate(90deg);
}

/* Animation for price changes */
.price-changing .price-icon {
    opacity: 0;
    transform: translateY(-1px) scale(0.8);
}

/* Disabled state */
.order-button.disabled .price-icon {
    display: none;
}

/* === CART COUNT BADGE === */
.cart-count-badge{
    position:absolute;
    top:-6px;
    right:0px;
    background: linear-gradient(135deg, #ff6b35 0%, #ffe1d6 100%);
    color:#fff;
    font-size:12px;
    font-weight:600;
    line-height:16px;
    width: 20px;
    height: 20px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    pointer-events:none;
    z-index: 10;
}

/* === АДАПТИВНЫЕ СТИЛИ ДЛЯ ИКОНОК ЦЕН === */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .price-icon {
        margin-left: 6px;
        font-size: 1em;
    }
    
    .price-arrow {
        font-size: 1.1em;
    }
    
    .price-plus {
        font-size: 1.2em;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .price-icon {
        margin-left: 4px;
        font-size: 1.1em;
    }
    
    .price-arrow {
        font-size: 1em;
    }
    
    .price-plus {
        font-size: 1em;
    }
    
    /* Уменьшенные эффекты на мобильных */
    .order-button:hover .price-icon {
        transform: translateY(-1px) scale(1.05);
    }
    
    .order-button:hover .price-arrow {
        transform: translateY(-1px) translateX(1px);
    }
    
    .order-button:hover .price-plus {
        transform: translateY(-1px) rotate(45deg);
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .price-icon {
        margin-left: 3px;
        font-size: 0.85em;
    }
    
    .price-arrow {
        font-size: 0.9em;
    }
    
    .price-plus {
        font-size: 1em;
    }

    /* Disable plus icon animation on very small screens (<480px) */
    .order-button .price-plus,
    .order-button:hover .price-plus {
        transition: none !important;
        transform: translateY(-1px);
    }

    .cart-count-badge {
        right: -4px;
        font-size: 8px;
        z-index: 10;
        width: 16px;
        height: 16px;
    }
}

/* === Состояние после клика по кнопке === */
.order-button.clicked,
.order-button.clicked:hover {
    background: #ffe1d6; /* исходный фон */
    color: #fe6b35;      /* исходный цвет текста */
}

.order-button.clicked .price-icon,
.order-button.clicked .price-arrow,
.order-button.clicked .price-plus,
.order-button.clicked:hover .price-icon,
.order-button.clicked:hover .price-arrow,
.order-button.clicked:hover .price-plus {
    transform: none;
    opacity: 1;
}
