my-dosa-place/src/components/FavoritesSection.module.css
2026-06-10 19:11:59 +05:30

176 lines
2.8 KiB
CSS

.section {
padding: 80px 0;
background: #fff;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
}
/* Header */
.sectionHeader {
text-align: center;
margin-bottom: 3.5rem;
}
.sectionTag {
font-family: var(--font-sans);
font-size: 0.85rem;
font-weight: 600;
color: var(--color-secondary);
letter-spacing: 1.5px;
text-transform: uppercase;
margin-bottom: 0.5rem;
}
.sectionTitle {
font-family: var(--font-serif);
font-size: 2.5rem;
color: var(--color-primary);
}
/* Grid */
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
/* padding-top: 3.5rem; */
}
/* Card */
.card {
position: relative;
border-radius: 20px;
overflow: visible;
margin-top: 50px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-8px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
/* Theme Colors */
.green {
background-color: var(--color-primary);
}
.yellow {
background-color: var(--color-secondary);
}
/* Image */
.imageWrap {
position: relative;
width: 100%;
height: 180px;
margin-top: -50px;
display: flex;
justify-content: center;
margin-bottom: 0.5rem;
}
.image {
width: auto;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.35));
transition: transform 0.4s ease;
}
.card:hover .image {
transform: scale(1.06) rotate(2deg);
}
/* Card Body */
.cardBody {
padding: 0.5rem 1.8rem 2rem;
}
/* Label row: subtitle tag + price side by side */
.labelRow {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.subtitleTag {
font-family: var(--font-serif);
font-size: 1rem;
font-style: italic;
color: rgba(255, 255, 255, 0.85);
font-weight: 400;
letter-spacing: 0.5px;
}
.price {
font-family: var(--font-sans);
font-size: 1.2rem;
font-weight: 800;
color: #fff;
}
.cardTitle {
font-family: var(--font-serif);
font-size: 2rem;
font-weight: 700;
color: #fff;
line-height: 1.15;
margin-bottom: 1rem;
}
.description {
font-size: 0.9rem;
line-height: 1.6;
color: rgba(255, 255, 255, 0.82);
}
@media (max-width: 1024px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 767px) {
.section {
padding: 80px 0;
}
.grid {
grid-template-columns: 1fr;
max-width: 400px;
margin: 0 auto;
}
}
@media (max-width: 767px) {
.section {
padding: 40px 0;
}
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 8px;
font-family: var(--font-cursive), cursive;
font-size: 1.15rem;
color: #d4a017;
margin-bottom: 14px;
}
.eyebrowIcon {
font-size: 1.2rem;
font-style: normal;
font-family: var(--font-inter), sans-serif;
}
.sectionTitle em {
font-style: italic;
color: #d4a017;
}