/* 首頁最新商品展示樣式 */
.latest-products {
    margin: 30px 0;
}

.latest-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.latest-products .product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-products .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.latest-products .product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.latest-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-products .product-item:hover .product-image img {
    transform: scale(1.05);
}

.latest-products .product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.latest-products .badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
    margin-bottom: 5px;
}

.latest-products .badge.featured {
    background: #ff6b6b;
    color: white;
}

.latest-products .badge.new {
    background: #4ecdc4;
    color: white;
}

.latest-products .badge.bestseller {
    background: #45b7d1;
    color: white;
}

.latest-products .product-info {
    padding: 20px;
}

.latest-products .product-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.latest-products .product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-products .product-name a:hover {
    color: #007bff;
}

.latest-products .product-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.latest-products .product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.latest-products .product-actions {
    text-align: center;
}

.latest-products .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.latest-products .btn-primary {
    background: #007bff;
    color: white;
}

.latest-products .btn-primary:hover {
    background: #0056b3;
    color: white;
}

.latest-products .view-all-products {
    text-align: center;
    margin-top: 30px;
}

.latest-products .btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
}

.latest-products .btn-secondary:hover {
    background: #545b62;
    color: white;
}

.latest-products .no-products {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .latest-products .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .latest-products .product-image {
        height: 150px;
    }
    
    .latest-products .product-info {
        padding: 15px;
    }
    
    .latest-products .product-name {
        font-size: 16px;
    }
}
