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

415 lines
7.1 KiB
CSS

/* ── Section wrapper ── */
.section {
padding: 80px 20px;
background: #f9faf8;
min-height: 100vh;
}
/* ── Page header ── */
.pageHeader {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
width: 100%;
margin-bottom: 56px;
}
.eyebrow {
display: flex;
width: 100%;
justify-content: center;
align-items: center;
gap: 8px;
font-family: var(--font-cursive), cursive;
font-size: 1.1rem;
color: #d99c43;
margin: 0 auto 10px;
letter-spacing: 0.03em;
}
.pageTitle {
font-family: var(--font-playfair), Georgia, serif;
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 700;
color: #014d33;
line-height: 1.15;
margin: 0 0 14px;
}
.pageTitle em {
font-style: italic;
color: #d99c43;
}
.pageSubtitle {
font-family: var(--font-inter), sans-serif;
font-size: 1rem;
color: #666;
margin: 0;
letter-spacing: 0.04em;
}
/* ── Mobile tab strip ── */
.mobileTabStrip {
display: none;
overflow-x: auto;
gap: 10px;
padding: 0 4px 16px;
margin-bottom: 24px;
scrollbar-width: none;
}
.mobileTabStrip::-webkit-scrollbar { display: none; }
.mobileTab {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 10px 16px;
border-radius: 14px;
border: 2px solid #e0e0e0;
background: #fff;
font-size: 0.78rem;
font-weight: 600;
color: #666;
white-space: nowrap;
flex-shrink: 0;
transition: all 0.2s ease;
}
.mobileTab span:first-child { font-size: 1.3rem; }
.mobileTabActive {
border-color: #014d33;
background: #014d33;
color: #fff;
}
/* ── Main layout ── */
.layout {
display: grid;
grid-template-columns: 280px 1fr;
gap: 32px;
max-width: 1200px;
margin: 0 auto;
}
/* ── Sidebar ── */
.sidebar {
position: sticky;
top: 100px;
align-self: start;
background: #fff;
border-radius: 24px;
padding: 24px 16px;
box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}
.sidebarLabel {
font-family: var(--font-inter), sans-serif;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #999;
margin: 0 0 14px 8px;
}
.tabNav {
display: flex;
flex-direction: column;
gap: 6px;
}
.tabBtn {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 12px 14px;
border-radius: 14px;
border: none;
background: transparent;
text-align: left;
cursor: pointer;
transition: all 0.22s ease;
color: #444;
}
.tabBtn:hover {
background: #f0f7f4;
}
.tabActive {
background: #014d33 !important;
color: #fff;
box-shadow: 0 6px 20px rgba(1,77,51,0.25);
}
.tabEmoji {
font-size: 1.4rem;
flex-shrink: 0;
}
.tabText {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
}
.tabLabel {
font-family: var(--font-inter), sans-serif;
font-size: 0.88rem;
font-weight: 700;
line-height: 1.2;
}
.tabTagline {
font-family: var(--font-inter), sans-serif;
font-size: 0.72rem;
opacity: 0.7;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tabCount {
font-family: var(--font-inter), sans-serif;
font-size: 0.72rem;
font-weight: 700;
background: rgba(255,255,255,0.2);
border-radius: 20px;
padding: 2px 8px;
flex-shrink: 0;
}
.tabBtn:not(.tabActive) .tabCount {
background: #f0f0f0;
color: #666;
}
.sidebarDeco {
text-align: center;
font-size: 2rem;
opacity: 0.3;
margin-top: 20px;
}
/* ── Content area ── */
.content {
display: flex;
flex-direction: column;
gap: 24px;
}
/* ── Category header bar ── */
.catHeader {
display: flex;
align-items: center;
gap: 18px;
padding: 20px 28px;
border-radius: 18px;
border-left: 4px solid #014d33;
}
.catEmoji {
font-size: 2.4rem;
flex-shrink: 0;
}
.catTitle {
font-family: var(--font-playfair), Georgia, serif;
font-size: 1.6rem;
font-weight: 700;
color: #014d33;
margin: 0 0 4px;
line-height: 1.2;
}
.catTagline {
font-family: var(--font-inter), sans-serif;
font-size: 0.88rem;
color: #777;
margin: 0;
}
.catCount {
margin-left: auto;
background: #014d33;
color: #fff;
font-family: var(--font-inter), sans-serif;
font-size: 0.8rem;
font-weight: 700;
padding: 6px 16px;
border-radius: 20px;
flex-shrink: 0;
letter-spacing: 0.04em;
}
/* ── Items grid ── */
.itemsGrid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 65px;
row-gap: 40px;
padding-left: 20px; /* space for overlapping images */
}
.itemCard {
position: relative;
display: flex;
align-items: center;
background: #198754;
border-radius: 16px;
padding: 20px 20px 20px 80px;
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
/* border: 1px solid #3a3a3a; */
transition: all 0.3s ease;
animation: slideUp 0.35s ease both;
min-height: 100px;
}
.itemCard:hover {
transform: translateY(-4px);
box-shadow: 0 12px 28px rgba(0,0,0,0.3);
border-color: #555;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: translateY(0); }
}
.itemImageWrapper {
position: absolute;
left: -35px;
top: -15px;
width: 100px;
height: 100px;
border-radius: 50%;
border: 4px solid #fff;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
background: #fff;
}
.itemImage {
width: 100%;
height: 100%;
object-fit: cover;
}
.itemContent {
display: flex;
flex-direction: column;
gap: 6px;
width: 100%;
}
.itemName {
font-family: var(--font-inter), sans-serif;
font-size: 1.1rem;
font-weight: 700;
color: #fff;
margin: 0;
line-height: 1.2;
}
.itemDescription {
font-family: var(--font-inter), sans-serif;
font-size: 0.85rem;
color: #fff;
margin: 0;
line-height: 1.4;
}
/* ── Veg badge ── */
.vegBadge {
display: flex;
align-items: center;
gap: 10px;
font-family: var(--font-inter), sans-serif;
font-size: 0.85rem;
font-weight: 600;
color: #014d33;
background: #e8f5e9;
border: 1.5px solid #014d33;
border-radius: 30px;
padding: 10px 20px;
width: fit-content;
}
.vegDot {
width: 14px;
height: 14px;
border-radius: 50%;
border: 2px solid #014d33;
background: #4caf50;
flex-shrink: 0;
}
/* ── Fade animations ── */
.fadeIn {
animation: fadeIn 0.25s ease forwards;
}
.fadeOut {
animation: fadeOut 0.2s ease forwards;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
from { opacity: 1; transform: translateY(0); }
to { opacity: 0; transform: translateY(-8px); }
}
/* ── Responsive ── */
@media (max-width: 900px) {
.layout {
grid-template-columns: 1fr;
}
.sidebar {
position: static;
display: none;
}
.mobileTabStrip {
display: flex;
}
}
@media (max-width: 600px) {
.itemsGrid {
grid-template-columns: 1fr;
}
.section {
padding: 80px 16px;
}
.catHeader {
padding: 16px 18px;
flex-wrap: wrap;
gap: 10px;
}
.catCount {
margin-left: 0;
}
}
@media (max-width: 767px) {
.section {
padding: 40px 20px;
}
}
.eyebrowIcon {
font-size: 1.2rem;
font-style: normal;
font-family: var(--font-inter), sans-serif;
}
.title em {
font-style: italic;
color: #d4a017;
}