Geizkragen/assets/css/compcard.css
2026-01-28 16:22:27 +01:00

114 lines
2.0 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* =============================== */
/* PRODUCT GRID */
/* =============================== */
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 2rem;
padding: 2rem;
}
/* =============================== */
/* PRODUCT CARD Apple Style */
/* =============================== */
.product-card {
background-color: #ffffff;
border-radius: 18px;
overflow: hidden;
box-shadow:
0 10px 30px rgba(0, 0, 0, 0.08);
transition:
transform 0.25s ease,
box-shadow 0.25s ease;
}
/* Hover Apple-like Lift */
.product-card:hover {
transform: translateY(-6px);
box-shadow:
0 20px 50px rgba(0, 0, 0, 0.12);
}
/* Bild */
.product-card img {
width: 100%;
height: 180px;
object-fit: cover;
display: block;
}
/* Content */
.product-card__content {
padding: 1.25rem 1.5rem;
}
/* Titel */
.product-card__content h3 {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.4rem;
color: #1d1d1f; /* Apple Schwarz */
}
/* Beschreibung */
.product-card__content p {
font-size: 0.85rem;
color: #6e6e73;
margin-bottom: 0.75rem;
}
/* Preis */
.product-card__content .price {
font-size: 0.95rem;
font-weight: 600;
color: #0071e3; /* Apple Blau */
}
/* =============================== */
/* PRODUCT SECTIONS (Vertical) */
/* =============================== */
.product-section {
padding: 1.5rem 0;
}
/* Überschrift */
.product-section h2 {
margin-left: 2rem;
margin-bottom: 0.75rem;
font-size: 1.2rem;
font-weight: 600;
color: #d8d8ee;
}
/* =============================== */
/* HORIZONTAL PRODUCT SCROLL */
/* =============================== */
.product-scroll {
display: flex;
gap: 1.5rem;
padding: 0 2rem 1.5rem;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar {
display: none;
}