/**
 * Products Archive - Modern Card Layout
 * 产品归档页 - 现代卡片布局
 * 
 * Design: 3-column grid with large images and clean cards
 * Version: 1.0.0
 */

/* ============================================================================
   Products Count
   ============================================================================ */

.products-count {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* ============================================================================
   Grid Layout - 3 Column
   ============================================================================ */

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 0 40px 0;
}

/* ============================================================================
   Product Card
   ============================================================================ */

.product-card-modern {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* ============================================================================
   Image Section
   ============================================================================ */

.product-image-modern {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image-modern a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-modern:hover .product-image-modern img {
    transform: scale(1.05);
}

.product-image-placeholder-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.product-image-placeholder-modern .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

/* ============================================================================
   Content Section
   ============================================================================ */

.product-content-modern {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title-modern {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title-modern a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title-modern a:hover {
    color: #1e88e5;
}

/* Purity Badge */
.product-purity-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.product-excerpt-modern {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* ============================================================================
   Features List
   ============================================================================ */

.product-features-modern {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.product-features-modern li {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.product-features-modern li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1e88e5;
    font-weight: bold;
}

/* ============================================================================
   Tags
   ============================================================================ */

.product-tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px 0;
}

.product-tag {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* ============================================================================
   View Details Link
   ============================================================================ */

.product-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1e88e5;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.product-link-modern:hover {
    gap: 10px;
}

.product-link-modern svg {
    transition: transform 0.2s ease;
}

.product-link-modern:hover svg {
    transform: translateX(2px);
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    .products-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-modern {
        height: 200px;
    }
    
    .product-content-modern {
        padding: 20px;
    }
    
    .product-title-modern {
        font-size: 16px;
    }
}
