
    /* 1. БАЗОВЫЕ ЭФФЕКТЫ КАРТОЧКИ */
    .transition-hover {
        transition: all 0.3s ease;
    }
    .transition-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
    }
    .card-text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 2. БЛОК ОТОБРАЖЕНИЯ ЦЕНЫ */
    .price-display {
        background: #f8f9fa;
        border: 1px dashed #dee2e6;
        border-radius: 0.5rem;
    }

    /* 3. КНОПКИ ПАРАМЕТРОВ (BASE И FACTOR) */
    .base-price-btn, .factor-btn {
        min-width: 60px;
        white-space: nowrap;
        overflow: hidden;
        border-width: 1px;
        transition: all 0.2s ease-in-out;
    }

    /* Анимация расширения только для базы */
    .base-price-btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ЕДИНЫЙ ЭФФЕКТ НАВЕДЕНИЯ (HOVER) */
    .base-price-btn:hover,
    .factor-btn:hover {
        background-color: #6c757d !important;
        color: #fff !important;
        border-color: #6c757d !important;
    }

    /* СОСТОЯНИЕ ACTIVE (ВЫБРАНО) */
    .base-price-btn.active,
    .factor-btn.active {
        background-color: #6c757d !important;
        color: #fff !important;
        border-color: #6c757d !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* 4. ГЛАВНЫЕ КНОПКИ (В КОРЗИНУ / ПЕРЕХОД) */
    .btn-primary, .btn-success {
        background-color: #198754;
        border-color: #198754;
        transition: all 0.2s ease;
    }
    .btn-primary:hover, .btn-success:hover {
        background-color: #157347 !important;
        border-color: #146c43 !important;
    }

    /* СТИЛИ СТРОКИ ПОИСКА */
    .search-container .input-group {
        border: 2px solid #dee2e6;
        transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }
    .search-container .input-group:focus-within {
        border-color: #198754;
        box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
    }
    .search-container .form-control:focus {
        box-shadow: none;
    }

    /* Принудительный сброс двух колонок на смартфонах */
    @media (max-width: 576px) {
        .row-cols-1,
        .row.row-cols-1 {
            display: flex !important;
            flex-direction: column !important;
        }

        .order-item-container {
            flex: 0 0 100% !important;
            max-width: 100% !important;
            width: 100% !important;
            margin-bottom: 16px !important;
        }

        .order-item-container .card-img-top,
        .order-item-container .bg-light[style*="height: 220px"] {
            height: 180px !important;
        }

        .order-item-container .add-to-cart-btn {
            padding: 12px !important;
            font-size: 1.1rem !important;
        }
    }

    @keyframes pulse-animation {
        0% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.03); opacity: 0.95; }
        100% { transform: scale(1); opacity: 1; }
    }
    .animate-pulse {
        animation: pulse-animation 2s infinite ease-in-out;
    }

