
/* 店铺列表样式 */
.shop-list {
    padding: 20px 0;
}

.shop-item {
    margin-bottom: 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: none;
    border: none;
}

.shop-header {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.shop-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.shop-icon {
    color: #ff4400;
    margin-right: 8px;
    font-size: 14px;
    width: 16px;
}

.enter-btn {
    padding: 0px 8px;
    /* background-color: #ff4400; */
    color: #f94244;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    border: 1px solid #f94244;
    margin-left: 15px;
}


.enter-btn:hover {
    background-color: #ff6600;
    border-color: #ff6600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.product-item {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-img {
    position: relative;
    margin-bottom: 10px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

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

.hot-tag {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 2px 6px;
    background-color: #db1701;
    color: #fff;
    font-size: 10px;
    border-radius: 4px;
    /* font-weight: bold; */
    transform: rotate(0deg);
    z-index: 10;
}

.product-info {
    text-align: left;
}

.product-name {
    font-size: 12px;
    margin-bottom: 3px;
    color: #333;
    line-height: 1.3;
}

.product-name span{
    width: 160px;
}

.text-ellipsis {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-spec {
    font-size: 11px;
    margin-bottom: 2px;
    color: #666;
    line-height: 1.2;
}

.product-origin {
    font-size: 11px;
    margin-bottom: 5px;
    color: #666;
    line-height: 1.2;
}

.product-min-order {
    margin-bottom: 5px;
}

.tag {
    display: inline-block;
    padding: 1px 6px;
    background-color: #e8f4f8;
    color: #333;
    font-size: 10px;
    border-radius: 8px;
}

.product-price {
    font-size: 12px;
    color: #333;
    line-height: 1.2;
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.unit-price {
    font-weight: 600;
    color: #ff4400;
    /*margin-right: 15px;*/
    min-width: 60px;
}

.min-order {
    font-size: 11px;
    color: #666;
    flex: 1;
}

.case-order {
    font-size: 11px;
    color: #666;
    display: block;
}

.product-sales-cart {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sales {
    font-size: 11px;
    color: #666;
}

.cart-icon-only {
    font-size: 16px;
    color: #fff;
    background-color: #00ffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cart-icon-only>img{
    width: 60%!important;
}

.cart-icon-only:hover {
    transform: scale(1.1);
    background-color: #00f3d8;
}

.case-price {
    font-size: 10px;
    color: #666;
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top-left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-top-right {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .search-input {
        width: 250px;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-list li {
        margin-right: 15px;
        margin-bottom: 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}