/* БЛОК «ОБОРУДОВАНИЕ» — Планета Вкуса v1.1 */

.recipe-tools-section {
    margin: 32px 0;
    padding: 24px;
    background: #FFFCF7;
    border: 1px solid #F0E5D2;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(44, 24, 16, .06);
}

.recipe-tools-section h2 {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fbbf24;
}

.tools-block { min-width: 0; }

.tools-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 16px;
    margin: -4px -4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d4c8b0 #F0E5D2;
}
.tools-scroll::-webkit-scrollbar { height: 6px; }
.tools-scroll::-webkit-scrollbar-track { background: #F0E5D2; border-radius: 3px; }
.tools-scroll::-webkit-scrollbar-thumb { background: #d4c8b0; border-radius: 3px; }

.tool-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #F0E5D2;
    border-radius: 12px;
    overflow: hidden;
    transition: all .2s;
}
.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 24, 16, .1);
    border-color: #fbbf24;
}

.tool-card__image {
    width: 100%;
    height: 140px;
    background: #F5EFE3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.tool-card__image img { width: 100%; height: 100%; object-fit: cover; }
.tool-card__image-placeholder { font-size: 42px; opacity: .35; }

.tool-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.tool-card__name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.tool-card__description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    flex: 1;
}

.tool-card__price {
    font-size: 13px;
    color: #b45309;
    font-weight: 700;
}

/* Кнопки маркетплейсов */
.tool-card__buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .18s;
    min-height: 40px;
    color: #fff;
    background: #64748b;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tool-card__buy:hover { transform: translateY(-1px); filter: brightness(1.1); }

.tool-card__buy--ozon {
    background: linear-gradient(135deg, #005BFF, #0047CC);
}
.tool-card__buy--ozon:hover {
    background: linear-gradient(135deg, #0047CC, #003899);
    box-shadow: 0 4px 12px rgba(0, 91, 255, .4);
}

.tool-card__buy--wb {
    background: linear-gradient(135deg, #CB11AB, #A00E88);
}
.tool-card__buy--wb:hover {
    background: linear-gradient(135deg, #A00E88, #80066C);
    box-shadow: 0 4px 12px rgba(203, 17, 171, .4);
}

.tool-card__buy--yandex {
    background: linear-gradient(135deg, #FFCC00, #FFB800);
    color: #1e293b;
}
.tool-card__buy--yandex:hover {
    background: linear-gradient(135deg, #FFB800, #E6A600);
}

.tool-card__buy--aliexpress {
    background: linear-gradient(135deg, #E62E04, #C42400);
}
.tool-card__buy--aliexpress:hover {
    background: linear-gradient(135deg, #C42400, #A01D00);
    box-shadow: 0 4px 12px rgba(230, 46, 4, .4);
}

.tool-card__buy--other {
    background: linear-gradient(135deg, #64748b, #475569);
}

.tools-affiliate-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(251, 191, 36, .1);
    border-left: 3px solid #fbbf24;
    border-radius: 6px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
}
.tools-affiliate-note strong { color: #92400e; }

@media (max-width: 600px) {
    .recipe-tools-section { padding: 16px; border-radius: 12px; }
    .recipe-tools-section h2 { font-size: 17px; }
    .tool-card { flex: 0 0 160px; }
    .tool-card__image { height: 110px; }
    .tool-card__body { padding: 10px 12px 12px; }
    .tool-card__name { font-size: 13px; }
    .tool-card__buy { padding: 9px 10px; font-size: 12px; min-height: 38px; }
}

/* 🆕 «Скоро можно будет купить» — для инструментов без ссылок */
.tool-card__soon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 12px;
    background: #F5EFE3;
    border: 2px dashed #C9955B;
    color: #92400E;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    min-height: 40px;
    text-align: center;
}

/* 🆕 «Скоро можно будет купить» — для инструментов без ссылок */
.tool-card__soon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 12px;
    background: #F5EFE3;
    border: 2px dashed #C9955B;
    color: #92400E;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    min-height: 40px;
    text-align: center;
}
