/* 商品卡片 hover 触发区域 */
.wd-product,
.product-grid-item,
li.product {
    position: relative;
}

/* 中文名 + 属性整体区域 */
.hy-wd-acf-wrap {
    display: block !important;
    width: 100%;
    margin-top: 6px;
    text-align: center;
}

/* 中文产品名称 */
.hy-wd-acf-text {
    display: block !important;
    margin-top: 6px;
    margin-bottom: 0 !important;
    font-size: 14px;
    line-height: 1.5;
    color: #777;
    text-align: center;
}

/* 属性默认隐藏，但保留在正常文档流里，不再做浮层 */
.hy-wd-product-attrs {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin-top: 8px !important;
    padding: 0 12px !important;
    background: transparent !important;
    box-shadow: none !important;

    max-height: 0;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    transform: translateY(-4px);

    transition:
        max-height .25s ease,
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}

/* hover 时展开 */
.wd-product:hover .hy-wd-product-attrs,
.product-grid-item:hover .hy-wd-product-attrs,
li.product:hover .hy-wd-product-attrs {
    max-height: 120px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

/* 属性行 */
.hy-wd-product-attr-row {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    line-height: 1.4;
}

/* 第一行也保留分割线，视觉更像 Additional information */
.hy-wd-product-attr-name {
    flex: 0 0 auto;
    color: #222;
    font-weight: 600;
    text-align: left;
}

.hy-wd-product-attr-value {
    flex: 1;
    color: #777;
    text-align: right;
}

/* 移动端不做 hover */
@media (max-width: 768px) {
    .hy-wd-product-attrs {
        display: none !important;
    }
}
.products a[href*="/product/"],
.wd-products a[href*="/product/"],
.product-grid-item a[href*="/product/"] {
    cursor: default !important;
}