/* ---------------------------------------------------
 * Modern Design V2 - By Gemini
 * A fresh, clean, and professional UI enhancement
 * --------------------------------------------------- */

/* ===== General Layout & Body ===== */
body {
    background-color: var(--bg-primary);
}

/* ===== Menu Item Card Redesign ===== */
.menu-item-card {
    background: var(--bg-card);
    border-radius: 24px; /* Softer, more modern corners */
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 10px 30px rgba(0,0,0,0.08); /* Softer, layered shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 15px 40px rgba(0,0,0,0.1);
}

.item-image-container {
    height: 200px; /* Taller image */
}

.item-content {
    padding: 1.25rem; /* More spacious content area */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 700; /* Bolder name */
    color: var(--text-primary);
    line-height: 1.3;
}

.item-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    flex-grow: 1; /* Pushes the footer down */
}

.item-footer {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-main {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.add-to-cart-btn {
    border-radius: 16px; /* Match the softer corners */
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
}


/* ===== Categories Pills Redesign ===== */
.categories-section {
    box-shadow: none; /* Remove shadow for a flatter look */
    border-bottom: 1px solid var(--border);
}

.category-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.category-pill.active {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    transform: scale(1); /* Remove the scaling effect */
}

.category-pill:not(.active):hover {
    background: var(--bg-card);
}

/* ===== Responsive Grid ===== */
@media (min-width: 640px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------------------------------------------------
 * Template-Specific Styles
 * --------------------------------------------------- */

/* ===== Uber Eats Style ===== */
.template-uber-eats .menu-item-card {
    /* No changes to the card itself, it's already a clean design */
}

.template-uber-eats .add-to-cart-btn {
    /* Uber Eats uses a simple, flat button */
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: none;
    font-weight: 600;
}

.template-uber-eats .add-to-cart-btn:hover {
    background: var(--primary);
    color: white;
}


/* ===== Talabat Style ===== */
.template-talabat .menu-item-card {
    border-radius: 12px;
}

.template-talabat .item-image-container {
    height: 160px;
    border-radius: 12px 12px 0 0;
}

.template-talabat .add-to-cart-btn {
    border-radius: 999px; /* Fully rounded pill shape */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: var(--primary);
    color: white;
}

.template-talabat .category-pill.active {
    border-radius: 999px;
    color: white;
    background: var(--primary);
}
