body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
    position: relative; /* add this line */
}
 
  /* ---------- HERO ---------- */
.hero {
position: relative;
margin: 24px;
border-radius: 24px;
overflow: hidden;
height: 480px;
background-image: url('https://images.ajc.com/resizer/v2/A4DV5WGDKRELJJLSWCMPPCOOI4.JPG?auth=78b8eac136bd1866ee22c3f17e3e45ae30e792b12c589487629b04ab92e9ad9b&width=3840&height=2160&smart=true');
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}

.hero::before {
content: "";
position: absolute;
inset: 0;
background:
  radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
position: relative;
z-index: 1;
color: #fff;
padding: 0 24px;
max-width: 640px;
}

.hero-content h1 {
font-size: 3rem;
font-weight: 800;
margin: 0 0 16px;
text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content p {
font-size: 1.05rem;
line-height: 1.6;
margin: 0 0 28px;
text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-btn {
background: #fff;
color: #d92c2c;
border: none;
border-radius: 999px;
padding: 16px 48px;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.hero-btn:focus-visible {
outline: 3px solid #fff;
outline-offset: 3px;
}

.menu-section {
margin: 0 auto 60px;
padding: 0 24px;
}

.menu-section h2 {
color: #1a1a1a;
font-size: 2rem;
font-weight: 800;
margin: 0 0 20px;
}

/* ---------- SEARCH BAR (improved) ---------- */
.search-input-wrap {
    position: relative;
    max-width: 420px;
    margin-bottom: 24px;
}

.search-input {
    display: block;
    width: 100%;
    padding: 14px 20px 14px 46px;
    border: 1.5px solid #e5e5e5;
    border-radius: 999px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: #d92c2c;
    box-shadow: 0 2px 14px rgba(217, 44, 44, 0.15);
}

.search-input::placeholder {
    color: #aaa;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 0.95rem;
}

/* ---------- CATEGORY FILTERS ---------- */
.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-pill {
    background: #fff;
    border: 1.5px solid #e5e5e5;
    color: #555;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: #d92c2c;
    color: #d92c2c;
}

.filter-pill.active {
    background: #d92c2c;
    border-color: #d92c2c;
    color: #fff;
}

.menu-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 20px;
width: 100%;
max-width: 1400px;
margin: 0 auto;
padding: 20px;
box-sizing: border-box;
}

.card {
background: #fff;
border-radius: 20px;
padding: 14px;
width: 100%;
box-sizing: border-box;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card img {
width: 100%;
aspect-ratio: 1 / 1;
height: auto;
object-fit: cover;
border-radius: 14px;
display: block;
}

.card h3 {
color: #7a1f1f;
font-size: 1.05rem;
font-weight: 700;
margin: 16px 4px 12px;

overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.card-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
background: #f4f4f4;
border-radius: 999px;
padding: 6px 6px 6px 12px;
}

.price {
font-weight: 700;
color: #c0392b;
font-size: 0.95rem;
white-space: nowrap;
}

.add-btn {
background: #d92c2c;
color: #fff;
border: none;
border-radius: 999px;
padding: 10px 14px;
font-weight: 700;
font-size: 0.85rem;
cursor: pointer;
transition: background 0.2s ease;
white-space: nowrap;
}

.add-btn:hover {
background: #b81f1f;
}

.add-btn:focus-visible {
outline: 3px solid #7a1f1f;
outline-offset: 2px;
}


/* 💻 Smaller desktops / laptops */
@media (max-width: 1100px) {
.menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
}


/* 📱 Tablets */
@media (max-width: 768px) {
.menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 15px;
}

.card {
    padding: 10px;
    border-radius: 16px;
}

.card img {
    border-radius: 12px;
}

.card h3 {
    font-size: 0.95rem;
    margin: 12px 3px 10px;
}

.card-footer {
    padding: 5px 5px 5px 10px;
}

.price {
    font-size: 0.85rem;
}

.add-btn {
    padding: 9px 12px;
    font-size: 0.75rem;
    }
}

.cart-fab {
    position: fixed;
    bottom: 40px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d92c2c;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration-line: none;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

.cart-fab:hover {
    background: #b81f1f;
    transform: translateY(-3px);
}


/* 📱 Phones */
@media (max-width: 500px) {
.menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
}

.card {
    padding: 8px;
    border-radius: 14px;
}

.card img {
    border-radius: 10px;
}

.card h3 {
    font-size: 0.8rem;
    margin: 8px 2px;
}

.card-footer {
    padding: 4px 4px 4px 7px;
    gap: 4px;
}

.price {
    font-size: 0.7rem;
}

.add-btn {
    padding: 7px 8px;
    font-size: 0.65rem;
    }

.filter-pill {
    padding: 7px 14px;
    font-size: 0.8rem;
}
}