.homepage-products-section {
padding: 4rem 0;
background: var(--color-white);
}
.section-header {
text-align: center;
margin-bottom: 3rem;
}
.section-title {
font-family: 'Playfair Display', serif;
font-size: 2.5rem;
color: var(--color-text);
margin-bottom: 1rem;
}
.section-subtitle {
font-size: 1.1rem;
color: var(--color-text-muted);
max-width: 600px;
margin: 0 auto;
} .homepage-products-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
max-width: 1400px;
margin-left: auto;
margin-right: auto;
padding: 0 1rem;
} .homepage-product-card {
background: var(--color-white);
border-radius: 16px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
overflow: hidden;
transition: all 0.3s ease;
}
.homepage-product-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
} .product-image-container {
position: relative;
width: 100%;
aspect-ratio: 1 / 1;
overflow: hidden;
background: #f5f5f5;
}
.product-image-container img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.homepage-product-card:hover .product-image-container img {
transform: scale(1.05);
}
.product-name-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(transparent, rgba(0,0,0,0.7));
padding: 1rem;
}
.chinese-name {
color: white;
font-size: 1.1rem;
font-weight: 600;
margin: 0;
text-align: center;
} .product-card-info {
padding: 1.5rem;
}
.product-meta {
margin-bottom: 0.5rem;
}
.product-meta .origin {
font-size: 0.85rem;
color: var(--color-text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.product-title {
font-size: 1.1rem;
font-weight: 600;
margin: 0.5rem 0;
line-height: 1.4;
}
.product-title a {
color: var(--color-text);
text-decoration: none;
transition: color 0.2s ease;
}
.product-title a:hover {
color: var(--color-accent);
}
.product-price {
font-size: 1.2rem;
font-weight: 700;
color: var(--color-accent);
margin: 1rem 0;
} .product-actions {
display: flex;
gap: 0.75rem;
margin-top: 1rem;
}
.product-actions .button,
.product-actions .add_to_cart_button,
.product-actions .ajax_add_to_cart {
flex: 1;
padding: 0.75rem 1rem;
background: var(--color-accent, #B85450);
color: white !important;
border: none;
border-radius: 8px;
font-weight: 600;
font-size: 0.9rem;
text-align: center;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
display: inline-block;
}
.product-actions .button:hover,
.product-actions .add_to_cart_button:hover,
.product-actions .ajax_add_to_cart:hover {
background: #A04A46;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(184, 84, 80, 0.3);
}
.product-actions .btn-voir-details {
flex: 1;
padding: 0.75rem 1rem;
background: white;
color: var(--color-accent, #B85450) !important;
border: 2px solid var(--color-accent, #B85450);
border-radius: 8px;
font-weight: 600;
font-size: 0.9rem;
text-align: center;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
display: inline-block;
}
.product-actions .btn-voir-details:hover {
background: var(--color-accent, #B85450);
color: white !important;
}
.out-of-stock-badge {
flex: 1;
padding: 0.75rem 1rem;
background: #E0E0E0;
color: #666;
border-radius: 8px;
font-weight: 600;
font-size: 0.9rem;
text-align: center;
display: inline-block;
} .section-footer {
text-align: center;
margin-top: 3rem;
}
.btn-voir-tous {
display: inline-block;
padding: 1rem 2.5rem;
background: var(--color-accent, #B85450);
color: white !important;
border-radius: 50px;
font-weight: 600;
font-size: 1.1rem;
text-decoration: none;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(184, 84, 80, 0.2);
}
.btn-voir-tous:hover {
background: #A04A46;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(184, 84, 80, 0.3);
} @media (max-width: 768px) {
.homepage-products-grid {
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1.5rem;
}
.section-title {
font-size: 2rem;
}
.product-actions {
flex-direction: column;
}
}