/* ===================== GLOBAL ===================== */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #333;
    transition: 0.3s;
}

body.dark {
    background: #121212;
    color: #f1f1f1;
}


/* ===================== TOP BAR ===================== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d47a1;
    color: #fff;
    /* THIS CONTROLS HEADER HEIGHT */
    padding: 8px 20px;
}


/* ===== LOGO (FIXED & GUARANTEED) ===== */

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}


/* FORCE LOGO IMAGE SIZE */

.logo img {
    width: 20px;
    height: 20px;
    min-width: 14px;
    min-height: 14px;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
    display: block;
}


/* ===================== TOP ACTIONS ===================== */

.top-actions {
    display: flex;
    gap: 10px;
}

.login-btn {
    background: #ffc107;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}


/* ===================== CONTAINER ===================== */

.container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
    padding: 30px 0;
}


/* ===================== FILTER BUTTONS ===================== */

.filter-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.filter-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    margin: 5px;
    cursor: pointer;
}


/* ===================== CATEGORY TITLE ===================== */

h2.category-title {
    margin: 30px 0 15px;
    color: #0d47a1;
    border-bottom: 3px solid #0d47a1;
}


/* ===================== MENU WRAPPER ===================== */

.menu-wrapper {
    position: relative;
    margin-bottom: 40px;
}


/* ===================== MENU ===================== */

.menu {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    height: 320px;
    scrollbar-width: none;
}

.menu::-webkit-scrollbar {
    display: none;
}


/* ===================== CARD ===================== */

.card.item {
    min-width: 260px;
    max-width: 260px;
    background: #fff;
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .card.item {
    background: #1e1e1e;
}

.card.item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.card.item h3 {
    color: #0d47a1;
    margin: 10px 0 5px;
}

.card.item strong {
    display: block;
    margin-bottom: 8px;
}

.card.item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}


/* ===================== EXPANDED MODE ===================== */

.menu.expanded {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    overflow: visible;
    height: auto;
    gap: 20px;
}


/* ===================== SCROLL BUTTONS ===================== */

.scroll-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

.scroll-btn.left {
    left: -10px;
}

.scroll-btn.right {
    right: -10px;
}


/* ---------- CUTE SEARCH ---------- */

.search-wrapper {
    position: relative;
    max-width: 400px;
    margin: 20px auto;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border-radius: 25px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-wrapper input:focus {
    border-color: #0d47a1;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.search-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
}

body.dark .search-wrapper input {
    background: #1e1e1e;
    border-color: #333;
    color: #eee;
}

body.dark .search-wrapper i {
    color: #bbb;
}


/* ===================== load ===================== */

#loader {
    color: #555;
    font-size: 14px;
}

body.dark #loader {
    color: #ccc;
}

#loader {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

body.dark #loader {
    color: #ccc;
}


/* ===================== SHOW MORE ===================== */

.show-more {
    margin: 15px auto 40px;
    display: block;
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}


/* ---------- STICKY TOP BAR ---------- */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #6105f6;
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.container {
    padding-top: 80px;
    /* adjust only if header height changes */
}

.top-bar.scrolled {
    padding: 8px 20px;
    background: rgba(17, 17, 17, 0.95);
    transition: all 0.3s ease;
}


/* Dark mode support */

body.dark .top-bar {
    background: #0f0f0f;
}


/* ===================== FOOTER ===================== */

.site-footer {
    background: #0d47a1;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}


/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
    .logo {
        font-size: 14px;
    }
    .logo img {
        width: 12px;
        height: 12px;
    }
}