/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Inter', sans-serif; background: #fafafa; }
body { display: flex; flex-direction: column; min-height: 100vh; }

:root {
    --header-height: 65px; /* used for sticky offset */
}

/* ============ INDEX PAGE (LANG SELECTION) ============ */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.logo img {
    width: 160px;
    height: 160px;
    border-radius: 30%;
    object-fit: cover;
    /* margin-bottom: 25px; */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    /* border: 4px solid #fff; */
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* Language Buttons → premium glossy design */
.lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 320px;
}

.lang-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* glossy shine effect */
.lang-buttons a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80px;
    width: 60px;
    height: 100%;
    background: rgba(255,255,255,0.4);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.lang-buttons a:hover::after {
    left: 120%;
}

/* individual colors */
.lang-en {
    background: linear-gradient(135deg, var(--color1), var(--color2));
}
.lang-ar {
    background: linear-gradient(135deg, var(--color1), var(--color2));
}
.lang-ku {
    background: linear-gradient(135deg, var(--color1), var(--color2));
}

/* hover animation */
.lang-buttons a:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.lang-buttons a:active {
    transform: scale(0.96);
}

/* ============ MENU PAGE ============ */
.main-content { flex: 1; display: flex; flex-direction: column; }

/* ----------- HEADER ----------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1100; /* higher so dropdown isn’t hidden */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    transition: box-shadow .2s ease;
}

/* Logo + Text */
header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
header .logo img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #fff;
}
header .logo div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
header .logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}
header .logo p {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    margin: 0;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}
.lang-btn {
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--color1), var(--color2));
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    transition: 0.3s;
}
.lang-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--color2), var(--color1));
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 115%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: fadeIn 0.25s ease;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-menu ul { list-style: none; margin: 0; padding: 0; }
.lang-menu li { padding: 10px 14px; }
.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}
.lang-menu li:hover { background: #f7f7f7; }

/* Small animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------- SLIDESHOW ----------- */
.slideshow-container {
    position: relative; width: 100%; overflow: hidden;
    aspect-ratio: 16/9; border-radius: 14px; 
}
.slides { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px;
}
.dot {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%; cursor: pointer;
}
.dot.active { background: #fff; }

/* ----------- CATEGORY TABS (Horizontal Scroll, Hidden Scrollbar) ----------- */
.category-tabs-wrapper {
    /* margin: 7px 0; */
    /* position: sticky; */
    top: var(--header-height, 0);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    padding: 0 5px;
    border-bottom: 1px solid #eee;
    z-index: 1050;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    white-space: nowrap;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}
.category-tabs {
    scrollbar-width: none; /* Firefox */
}

.category-tab {
    padding: 8px 18px;
    border-radius: 20px;
    background: #f4f4f4;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s;
}

.category-tab.active,
.category-tab:hover {
    background: linear-gradient(135deg, var(--color1), var(--color2));
    color: #fff;
}

.tab-arrow {
    background: rgba(255,255,255,0.9);
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    padding: 5px 10px;
    margin: 7px 5px 7px 5px;
    z-index: 10;
    color: var(--color1);
}

.tab-arrow:hover {
    background: linear-gradient(135deg, var(--color1), var(--color2));
    color: #fff;
    border-color: transparent;
}

.tab-arrow.active {
    background: linear-gradient(135deg, var(--color1), var(--color2));
    color: #fff;
    border-color: transparent;
}

/* ----------- SEARCH BAR ----------- */
.search-container {
    max-width: 460px;
    margin: 25px auto 40px auto;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    border-radius: 40px;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    padding: 6px 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: box-shadow 0.3s;
}
.search-box:focus-within {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 40px;
    background: transparent;
    color: #333;
}

.search-box button {
    border: none;
    background: linear-gradient(135deg, var(--color1), var(--color2));
    color: #fff;
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.search-box button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* ----------- ITEMS GRID ----------- */
/* Default: auto responsive */
.items-grid {
    padding: 16px; 
    gap: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    scroll-margin-top: calc(var(--header-height) + 10px);
}

/* iPad Pro (landscape ~1024px and up) → 3 columns */
@media (min-width: 1024px) and (max-width: 1366px) {
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iPad Mini / tablets (~768px up to 1023px) → 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones (<768px) → keep auto-fill (your current rules still apply) */

.item-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.item-card:hover { transform: translateY(-4px); }
.item-img { 
    width: 100%; 
    height: 180px;   /* was 130px → bigger */
    object-fit: cover; 
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
/* iPad Mini & medium tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .item-img { 
        height: 200px; 
    }
}

/* Small phones (<600px) */
@media (max-width: 600px) {
    .item-img { 
        height: 140px;   /* slightly smaller so it fits */
    }
}
.item-content { padding: 12px; text-align: center; }
.item-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: #333; }
.item-description { font-size: 13px; color: #777; margin-bottom: 6px; }
.item-price { font-weight: bold; color: var(--color1); }

.custom-food-modal .modal-dialog {
    transform: scale(0.8);
    transition: all 0.3s ease-in-out;
}

.custom-food-modal.show .modal-dialog {
    transform: scale(1);
}

.gourmet-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: none;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border-radius: 50%;
    color: var(--color1);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.food-img-wrapper {
    display: inline-block;
    padding: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.food-img {
    max-width: 200px;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.food-img:hover {
    transform: scale(1.05);
}

.food-title {
    font-weight: 700;
    color: #333;
}

.food-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #28a745;
}

.food-desc {
    color: #666;
    font-size: 0.95rem;
}

/* ----------- FOOTER ----------- */
footer.main-footer {
    background: linear-gradient(135deg, var(--color1), var(--color2)); color: #ecf0f1; text-align: center;
    padding: 18px; margin-top: auto;
}
.footer-dev a { color: #f1c40f; font-weight: 600; text-decoration: none; }
.footer-dev a:hover { color: #e67e22; }
.social-links { margin-top: 10px; display: flex; gap: 20px; justify-content: center; }
.social-links a { font-size: 20px; color: #fff; transition: 0.3s; }
.social-links a:hover { transform: scale(1.2); color: #f1c40f; }

/* ----------- RESPONSIVE ----------- */
@media(max-width: 600px){
    /* .item-img { height: 110px; } */
    .item-name { font-size: 14px; }
}