/*
 * Boubyan Restaurant - Main Website Stylesheet (FINAL - Brbene Style)
 *
 * Accent Color: #D92344 (Pink/Red from reference image)
 * Text Color: #333333 (Dark Gray)
 * Font: Poppins
*/

/* --- Global & Typography --- */
body {
    /* Poppins is the default font for English (LTR) */
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    /* --- STICKY FOOTER --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
html[dir="rtl"] body {
    font-family: 'Rubik', sans-serif;
}

.container {
    max-width: 960px;
    /* A more compact container */
}

#navbarNav {
    justify-content: end;
}

/* --- Header & Navigation Bar --- */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand .logo {
    height: 60px;
    /* Smaller logo */
    width: auto;
}

.navbar-toggler {
    border: none;
    /* Cleaner hamburger button */
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* --- Main Content Wrapper --- */
/* This adds space at the top so content isn't hidden by the fixed header */
.main-wrapper {
    padding-top: 70px;
    flex-grow: 1;
}

/* --- Menu Section --- */
.menu-section {
    padding: 40px 0;
    background: #478e8b;

}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #FFF;
}

/* --- Category Filters --- */
.category-filters {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-filters {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 5px;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.filter-btn:hover {
    opacity: 1;
}

.filter-icon {
    width: 60px;
    background: white;
    border-radius: 40%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.filter-btn span {
    font-size: 1.2rem;
    font-weight: 500;
    color: #FFF;
}

.filter-btn.active {
    opacity: 1;
}

.filter-btn.active span {
    color: #FFF;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #FFF;
    border-radius: 2px;
}

/* --- Category Title Display --- */
.menu-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFF;
    margin-bottom: 7px;
    padding-bottom: 10px;
}

/* --- Product Card (List Style) --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    /* Tighter gap */
}

.product-card {
    background-color: #d6e6e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 15px;
    border: 1px solid #eee;
}

.product-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-content {
    flex-grow: 1;
    padding: 0;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #32817e;
}

.product-description {
    display: none;
    /* Hide description as per the design */
}

/* --- Footer --- */
.footer {
    background-color: #FFF;
    color: #32817e;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* --- RTL (Right-to-Left) Styles for Arabic --- */
body[dir="rtl"] .navbar-brand {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body[dir="rtl"] .product-content {
    text-align: right;
}

/* --- Language Switcher --- */
.lang-switcher button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-switcher button:hover {
    background-color: #D92344;
    color: #ffffff;
}


/* --- Product Detail Page --- */
.product-detail-section {
    padding: 40px 0;
}

.product-detail-card {
    display: flex;
    gap: 30px;
    background: #d6e6e5;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-detail-image-wrapper {
    flex-basis: 50%;
    flex-shrink: 0;
}

.product-detail-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-detail-info {
    flex-grow: 1;
}

.product-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-detail-category {
    font-size: 1rem;
    color: #888;
    margin-bottom: 20px;
}

.product-detail-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: #32817e;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .product-detail-card {
        flex-direction: column;
    }

    .product-detail-title {
        font-size: 2rem;
    }
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

img.lazy {
    /* Start with the image being slightly transparent */
    opacity: 0;
    /* Define a smooth transition for the opacity change */
    transition: opacity 0.3s ease-in-out;
}

img.lazy.loaded {
    /* Once the real image is loaded, make it fully visible */
    opacity: 1;
}