/* ── Сценарий 1: активная категория ───────────────────────────── */
.category-link {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.category-link:hover {
    color: #ff6b35;
}

.category-link.active {
    color: #ff6b35;
    font-weight: bold;
}

/* ── Сценарий 2: уведомление корзины ──────────────────────────── */
.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2ecc71;
    color: white;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    max-width: 300px;
}

.cart-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-toast-error {
    background: #e74c3c;
}

/* ── Сценарий 3: подсказки поиска ─────────────────────────────── */
.catalog-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #fff5f0;
    color: #ff6b35;
}

/* ── Сценарий 4: кнопка избранного ────────────────────────────── */
.heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform 0.15s;
    z-index: 1;
    color: #aaa;
}

.heart-btn:hover {
    transform: scale(1.15);
}

.heart-btn.heart-active {
    color: #e74c3c;
}

.product-card {
    position: relative;
}

/* Карточка без фото */
.product-card.no-image::before {
    content: 'Нет фото';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: #f4f6f8;
    color: #bbb;
    font-size: 14px;
    border-radius: 6px 6px 0 0;
}
