/**
 * Блок «Технологии и особенности» — иконки атрибутов на странице товара
 */

.wc1c-features {
    margin: 1.5em 0 2em;
    clear: both;
}

.wc1c-features__title {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 .9em;
    padding: 0;
    letter-spacing: .01em;
    text-transform: none;
}

/* Grid */
.wc1c-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
}

/* Single tile */
.wc1c-features__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px 12px;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    cursor: default;
    transition: box-shadow .2s, border-color .2s, transform .15s;
}

.wc1c-features__item:hover {
    border-color: #ccc;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

/* Icon */
.wc1c-features__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.wc1c-features__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Placeholder when no icon uploaded */
.wc1c-features__icon--placeholder {
    background: linear-gradient(135deg, #6c1d1d, #a83232);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}

/* Label */
.wc1c-features__label {
    font-size: .82em;
    line-height: 1.3;
    color: #333;
    word-break: break-word;
    hyphens: auto;
}

/* ── Tooltip ── */
.wc1c-features__tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(.92);
    background: #1d1d1d;
    color: #fff;
    font-size: .78em;
    line-height: 1.5;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s, transform .18s;
    z-index: 10;
    text-align: left;
}

.wc1c-features__tooltip p {
    margin: 0 0 .4em;
}

.wc1c-features__tooltip p:last-child {
    margin-bottom: 0;
}

.wc1c-features__item::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1d1d1d;
    opacity: 0;
    transition: opacity .18s;
    z-index: 10;
    pointer-events: none;
}

.wc1c-features__item:hover::before,
.wc1c-features__item:hover .wc1c-features__tooltip {
    opacity: 1;
}

.wc1c-features__item:hover .wc1c-features__tooltip {
    transform: translateX(-50%) scale(1);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .wc1c-features__grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }

    .wc1c-features__item {
        padding: 10px 6px 8px;
    }

    .wc1c-features__icon {
        width: 42px;
        height: 42px;
    }

    .wc1c-features__label {
        font-size: .76em;
    }
}
