html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
html, body {
    height: 100%;
    margin: 0;
}

footer {
    margin-top: auto;
}


body {
    background-color: #f8f9fa;
    padding-top: 100px !important; /* navbar + category nav */
    margin: 0 !important;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #FA0494;
    backdrop-filter: blur(12px);
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: bold;
    letter-spacing: .5px;
}

.nav-link {
    /*color: #ffffffcc !important;*/
    color: white !important;
    transition: .3s ease;
}

    .nav-link:hover {
        color: #aee8ff !important;
        text-shadow: 0 0 8px rgba(174,232,255,.7);
    }

.search-container {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 5px;
    max-width: 550px;
    width: 100%;
    position: relative;
}

/* .search-category {
            padding: 6px 10px;
            font-size: 14px;
            cursor: pointer;
            white-space: nowrap;
            user-select: none;
            border-right: 1px solid #ddd;
        } */

.search-input {
    flex: 1;
    border: none;
    font-size: 15px;
    padding: 6px 10px;
    outline: none;
}

.search-button {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 10px;
}

/* Suggestion box */
.suggestion-box {
    width: 100%;
    z-index: 1000;
    top: 100%;
}

.suggestion-item {
    padding: 6px 10px;
    cursor: pointer;
}

    .suggestion-item.active,
    .suggestion-item:hover {
        background-color: #f2f2f2;
    }

    .suggestion-item strong {
        font-weight: 600;
    }


/* ----------- MOBILE RESPONSIVENESS ----------- */

@media (max-width: 768px) {
    /* Make search full width on mobile */
    .search-container {
        width: 100%;
        max-width: none;
        border-radius: 6px;
        padding: 4px;
        margin: 0 !important;
    }
    /* Hide category picker on mobile */
    /* .search-category {
                display: none;
            } */
    /* Make input slightly larger */
    . /* search-input {
                font-size: 14px;
                padding: 8px;
            } */
    .search-button {
        font-size: 18px;
        padding: 4px 8px;
    }

    .category-nav {
        top: 92px !important;
    }
}

@media (max-width: 480px) {
    .search-container {
        width: 85%;
        max-width: none;
        border-radius: 6px;
        padding: 4px;
        margin: 0 !important;
    }
    /* .search-input {
                font-size: 13px;
                padding: 7px;
            } */

    .search-button {
        font-size: 17px;
    }

    .gap-4 {
        gap: .5rem !important;
    }

    .secondary-nav {
        font-size: 11px;
    }
}


/* ---------------- CATEGORY NAV ---------------- */
.category-nav {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: #611439;
    z-index: 1040;
    transition: transform 0.25s ease;
    margin: 0 !important;
    padding: 0 0 !important;
}

    .category-nav.hide {
        transform: translateY(-100%);
    }

/* ---------------- TRENDING BAR ---------------- */
#trendingBar {
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 !important;
    width: 100%;
}

    #trendingBar::-webkit-scrollbar {
        display: none;
    }

.trend-chip {
    display: inline-block;
    background: #fff;
    color: #0284c7;
    padding: 6px 16px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: .9rem;
    cursor: pointer;
    transition: .2s;
}

    .trend-chip:hover {
        background: #e8e8e8;
        transform: scale(1.05);
    }

/* ---------------- LEFT SIDE MENU ---------------- */
#sideMenuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 2000;
}

#sideMenu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: left .25s ease;
    overflow-y: auto;
    box-shadow: 3px 0 6px rgba(0,0,0,.3);
}

    #sideMenu.open {
        left: 0;
    }

.side-header {
    background: #611439;
    color: white;
    padding: 18px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
}

.side-item {
    display: block;
    padding: 10px 20px;
    color: #111;
    text-decoration: none;
}

    .side-item:hover {
        background: #f2f2f2;
    }

/* -------- FULL WIDTH MAIN AREA -------- */
main {
    width: 100% !important;
    max-width: 100% !important;

    @media (max-width: 768px) {
        margin-top: 53px;
    }

    @media (max-width: 480px) {
        margin-top: 53px;
    }
}

footer {
    width: 100%;
    margin: 0 !important;
    padding: 30px 0;
}

.search-categoryt {
    height: 100%;
    border: none; /* container owns the border */
    background: transparent;
    font-size: 14px;
    color: #111;
    line-height: 1;
    appearance: none;
    cursor: pointer;
    outline: none;
    min-width: 80px;
}

/* Custom arrow */
.search-categoryt {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
}

/* Optional subtle separator */
.search-categoryt {
    border-right: 1px solid #e0e0e0;
    margin-right: 8px;
}

.footerStyle {
    --bs-bg-opacity: 1;
    background-color: rgb(127 41 95) !important;
    color: wheat;
}

.footerStyle {
    background-color: rgb(127 41 95);
    color: wheat;
    padding: 20px 15px;
    font-size: 14px;
}

.footer-grid {
    max-width: 600px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    text-align: center;
}

    .footer-grid a,
    .footer-copy {
        color: wheat;
        text-decoration: none;
        font-size: 13px;
        white-space: nowrap;
    }

        .footer-grid a:hover {
            text-decoration: underline;
        }
/* loader */
.loader {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    margin: 15px auto;
    position: relative;
    color: #FFF;
    box-sizing: border-box;
    animation: animloader 1s linear infinite alternate;
}

@keyframes animloader {
    0% {
        box-shadow: -38px -12px, -14px 0, 14px 0, 38px 0;
    }

    33% {
        box-shadow: -38px 0px, -14px -12px, 14px 0, 38px 0;
    }

    66% {
        box-shadow: -38px 0px, -14px 0, 14px -12px, 38px 0;
    }

    100% {
        box-shadow: -38px 0, -14px 0, 14px 0, 38px -12px;
    }
}

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
