/* 分类按钮骨架屏 */
.category-btn--skeleton {
    background: #f3f3f3 !important;
    border-radius: 12px;
    min-width: 100px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px;
    border: none;
    animation: skeleton-loading 1.2s infinite ease-in-out;
}

.category-btn--skeleton .skeleton {
    background: #e0e0e0;
    border-radius: 8px;
    display: inline-block;
}

.category-btn--skeleton .category-btn__label.skeleton {
    width: 60px;
    height: 16px;
}

.category-btn--skeleton .category-btn__icon.skeleton {
    width: 32px;
    height: 32px;
}

@keyframes skeleton-loading {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* ===== 商品卡片样式 ===== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.product-card__image-container {
    background: rgba(0, 0, 0, 0.02);
    width: 100%;
    height: 264px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

[data-theme="dark"] .product-card__image-container {
    background: rgba(255, 255, 255, 0.03);
}

.product-card__mask{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover .product-card__mask {
    opacity: 1;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.1);
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0dc46c;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'Satoshi Variable', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    z-index: 2;
}

/* 卡片按钮组 */
.product-card__actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    width: 100%;
    justify-content: center;
}

.product-card:hover .product-card__actions {
    opacity: 1;
}

.product-card__btn {
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.product-card__btn--primary {
    background: var(--primary-color);
    color: #ffffff;
}

.product-card__btn--primary:hover {
    background: var(--primary-color-hover);
}

.product-card__btn--primary:active {
    background-color: var(--primary-color-active);
    transform: scale(0.95);
}

.product-card__btn--icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-tertiary-alt);
}

.product-card__btn--icon:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product-card__btn--icon:active {
    border-color: var(--primary-color-active);
    color: var(--primary-color-active);
    transform: scale(0.95);
}

.product-card__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    flex: 1;
}

.product-card__title {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 19px;
    height: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card:hover .product-card__title{
    text-decoration: underline;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}

.product-card__price-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    line-height: normal;
}

.product-card__price {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: var(--primary-color);
}

.product-card__original-price,
.product-card__price--old {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.product-card__sold {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
}
