.layui-card {
    margin-bottom: 15px;
    border-radius: 2px;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.layui-card-header2 {
    background: #393D49 !important;
    height: 42px;
    line-height: 42px;
    color: #FFF;
    border-radius: 2px 2px 0 0;
    font-size: 16px;
    display: block;
}

.layui-card-body {
    line-height: 24px;
}

.layui-card-body a {
    text-decoration: none;
}

.goodsdetail-mobile {
    background: #fff;
    border-bottom: 1px dotted #e2e2e2;
    padding: 15px 10px;
    position: relative;
    display: flex;
    align-items: center;
}

.goodsdetail-mobile-img {
    position: relative;
    margin-right: 10px;
}

.goodsdetail-mobile-img img {
    width: 120px;
    height: 90px;
    display: block;
    border: none;
}

.goodsdetail-mobile-text {
    flex: 1;
    text-align: left;
    overflow: hidden;
}

.goodsdetail-mobile-text .title {
    line-height: 22px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    color: #4b566a;
}

.layui-badge {
    position: relative;
    display: inline-block;
    padding: 0 6px;
    font-size: 12px;
    text-align: center;
    background-color: #FF5722;
    color: #fff;
    border-radius: 2px;
}

.layui-bg-green {
    background-color: #009688 !important;
}

.layui-bg-blue {
    background-color: rgb(31 153 30) !important;
}

.layui-bg-orange {
    background-color: #ffb800!important;
}

    .layui-card {
        margin-bottom: 10px;
    }

    .row + br {
        display: none;
    }

    .category-menu .btn {
        padding: .15rem .15rem;
    }

.hidden {
    display: none !important;
}

.group-section {
    display: block;
}

.category-menu .toggle-category {
    margin-bottom: 5px;
}

.home-card {
    transition: background-color 0.3s ease;
}

.home-card:hover {
    background-color: #777676;
}

.home-card:hover .name {
    color: #FFFFFF;
}

img.lazy {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img.loaded {
    opacity: 1;
}

.row.g-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
}


.col-md-custom {
    flex: 0 0 calc((100% - 1 * 5px) / 2);
    max-width: calc((100% - 1 * 5px) / 2);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .col-md-custom {
        flex: 0 0 calc((100% - 2 * 5px) / 3);
        max-width: calc((100% - 2 * 5px) / 3);
    }
}

@media (min-width: 1200px) {
    .col-md-custom {
        flex: 0 0 calc((100% - 4 * 5px) / 5);
        max-width: calc((100% - 4 * 5px) / 5);
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #393d49;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    z-index: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-grow: 1; 
}

.product-card:hover {
    transform: scale(1.02);
    background-color: #f5f5f5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.product-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.product-title {
    background: #fff;
    padding: 5px;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    min-height: 60px;
    color: #081ddf;
}

.product-footer {
    background: #393d49;
    text-align: center;
    margin-top: auto;
     min-height: 80px;
    padding: 8px;
    flex-direction: column;
    justify-content: space-between;
}

.product-footer .layui-badge {
    margin: 0 3px 3px 0;
    font-size: 14px;
    height: 25px;
    line-height: 25px;
    padding: 0 14px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    border-radius: 4px;
}

.product-meta {
    text-align: center;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.stock-value {
    color: white;
  /*  font-weight: bold; */
    font-size: 14px;
}

.stock-count {
    font-size: 20px;
    font-weight: bold; 
}
.stock-Unlimited {
    font-size: 18px;
}
.price-symbol {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.price-value {
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.price-divider {
    color: white;
}

.hover-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 6px;
}

.product-card:hover .hover-mask {
    opacity: 1;
}

    .price-symbol {
        font-size: 12px;
    }

    .product-title {
        font-size: 16px;
        text-align: center;
    }
    .hyper-wrapper {
        display: block;
     }
        
        
/* ✅ 移动端样式 */
@media (max-width: 767.98px) {
    .price-symbol {
        font-size: 12px;
    }
    .price-value {
        font-size: 18px;
    }
    .stock-value {
        font-size: 12px;
    }
    .product-footer .layui-badge {
        font-size: 12px;
        height: 20px;
        line-height: 20px;
    }
     .product-title {
            font-size: 14px;

    }

    .product-footer {
        min-height: 80px;
    }
    .stock-Unlimited {
    font-size: 14px;
    }
    .row.g-3 {
    gap: 5px;
}
}
