/* =================================== */
/* FONT AND BODY SETUP               */
/* =================================== */
body {
    font-family: 'Alexandria', sans-serif; 
    background-color: #3d3b20;
    margin: 0;
    direction: rtl;
}
.page-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 15px;
    background-color: #3d3b20;
    color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
/* =================================== */
/* HEADER AND STORY                  */
/* =================================== */
.menu-header { 
    text-align: center; 
    margin-bottom: 30px; 
    margin-top: 30px;
}
.logo { 
    max-width: 250px;
    height: auto; 
    display: block; 
    margin: 0 auto 15px auto; 
}
.menu-header p { 
    color: #ffffff; 
    margin: 0;
    text-align: justify;
}
/* =================================== */
/* SOCIAL ICONS                      */
/* =================================== */
.social-icons { 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    text-align: center; 
    width: 100%; 
    padding: 0; 
    margin-top: 75px;
}
.icon-container { 
    display: inline-block; 
    margin: 0 15px;
    width: 90px; /* UPDATED: Gives each icon a fixed width for perfect alignment */
}
.icon-container a { display: inline-block; color: #ffffff; font-size: 2.2em; text-decoration: none; transition: transform 0.2s ease-in-out; }
.icon-container a:hover { transform: scale(1.15); }
.icon-container span { display: block; color: #ffffff; font-size: 0.8em; margin-top: 8px; }
/* =================================== */
/* CATEGORY FILTERS                  */
/* =================================== */
.filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; font-size:14px; }
.filters a { text-decoration: none; color: #ffffff; background-color: transparent; padding: 8px 25px; border-radius: 50px; border: 1px solid #ffffff; font-weight: bold; transition: all 0.2s ease-in-out; font-size: 14px; text-align: center; }
.filters a.active { background-color: #ffffff; color: #3d3b20; border-color: #ffffff; }
/* =================================== */
/* MENU GRID AND CARDS               */
/* =================================== */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.menu-card { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.4); text-decoration: none; color: white; display: block; }
.menu-card img { width: 100%; height: 125px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.menu-card:hover img { transform: scale(1.05); }
.card-title { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); padding: 30px 15px 15px 15px; font-size: 1.5em; font-weight: bold; text-align: center; }
.final-item-card { background-color: #ffffff; color: #333; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.final-item-card img {
    width: 100%;
height: 400px;
object-fit: cover;
display: block; 
    
}
.final-item-card h3 { margin: 15px 10px 10px 10px; font-size: 1.4em; color: #333; }
.final-item-card .price { font-weight: bold; color: #c0392b; font-size: 1.5em; display: block; margin: 15px 0; }
/* =================================== */
/* CONTEXT HEADER (BACK BUTTON & TITLE) */
/* =================================== */
.context-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; margin-bottom: 20px; border-bottom: 2px solid #5a6331; }
.header-placeholder { width: 45px; }
.subcategory-title { margin: 0; font-size: 1.8em; color: #ffffff; }
.back-btn { display: flex; justify-content: center; align-items: center; text-decoration: none; color: #3d3b20; background-color: #ffffff; width: 45px; height: 45px; border-radius: 50%; font-size: 1.2em; transition: all 0.2s ease-in-out; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.back-btn:hover { background-color: #ccc; }
/* =================================== */
/* SPLASH PAGE STYLES (for index.php)  */
/* =================================== */
.splash-page-body {
    padding-top: 5vh;
}
.splash-page-body .page-container {
    background-color: transparent;
    box-shadow: none;
}
.menu-button-container { 
    text-align: center; 
    margin-top: 75px;
}
.menu-button { display: inline-block; text-decoration: none; font-family: 'Alexandria', sans-serif; font-weight: bold; font-size: 1.2em; color: #3d3b20; background-color: #ffffff; padding: 12px 40px; border-radius: 50px; transition: all 0.2s ease-in-out; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.menu-button:hover { background-color: #ccc; transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
/* =================================== */
/* MOBILE STYLES                     */
/* =================================== */
@media (max-width: 600px) {
    .menu-grid { grid-template-columns: 1fr; gap: 15px; }
    .page-container { padding: 0 10px; margin: 10px auto; }
    .menu-header p { font-size: 0.9em; line-height: 1.5; }
    .icon-container span { font-size: 0.7em; }
    .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
    .filters a { padding: 6px 15px; font-size: 0.8em; } 
    .filters::-webkit-scrollbar { display: none; }
    .final-item-card h3 { font-size: 1.2em; }
}
/* =================================== */
/* SPLASH PAGE STYLES (for index.php)  */
/* =================================== */
.splash-page-body {
    padding-top: 5vh;
}
.splash-page-body .page-container {
    background-color: transparent;
    box-shadow: none;
}
.menu-button-container { 
    text-align: center; 
    margin-top: 75px;
}
.menu-button { /* ... */ }
.menu-button:hover { /* ... */ }

/* ADD THIS NEW RULE FOR THE MENU PAGE */
.menu-page-body .page-container {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}