/*================ RESET / BASE ================*/
*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}
.navbar-logo-wrap {
    height: 60px;
    width: 160px;
    overflow: hidden;      /* crops away anything outside this box */
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .logo a {
    color: #d4af37 !important;
    font-size: 24px;
    font-family: 'Yellowtail', cursive;
}
.navbar .logo img.navbar-logo {
    height: 65px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
}
.logo-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}
.wishlist-link {
    position: relative;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wishlist-link:hover {
    color: #f5c451; /* gold accent, matches your logo */
}

.wishlist-link #wishlistCount {
    font-size: 12px;
    font-weight: bold;
    background: #d94b4b;
    color: #fff;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
}
.navbar-logo{
    height: 60px;   /* Adjust if needed */
    width: auto;
}
.logo-text{
    font-size: 10px;           /* Smaller text */
    font-weight: 500;
    color: #FFD700;            /* Gold */
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: -2px;
    margin-left: 38px;         /* Adjust to align under VIMAL */
    align-self: flex-start;
}
@media (max-width: 768px) {
    .logo-text {
        font-size: 16px;
    }
}
.navbar{
    position:fixed;
    top:0;
    overflow:visible;
    left:0;
    width:100%;
    height:100px;
    padding:10px 20px;
    background:#081b3c;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap: nowrap;
    z-index:9999;
    box-shadow:0 5px 20px rgba(0,0,0,.2);
}
.search-box{
    display:flex;
    align-items:center;
    flex:1 1 420px;
    max-width:420px;
    min-width:180px;
}
.search-box input{
    flex:1;
    min-width:0;
    height:45px;
    padding:0 15px;
    border:none;
    outline:none;
    border-radius:25px 0 0 25px;
    font-size:15px;
}
.search-box button{
    flex-shrink:0;
    height:45px;
    width:55px;
    border:none;
    background:#00b4d8;
    color:#fff;
    border-radius:0 25px 25px 0;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
}
.nav-links{
    display:flex;
    align-items:stretch;
    gap:25px;
    list-style:none;
    flex-shrink:1;
    min-width:0;        /* ADD THIS — allows real shrinking */
    white-space:nowrap;
}
.user-actions{
    display:flex;
    align-items:center;
    gap:20px;
    flex-shrink:0;
    margin-left: auto; 
}
.login-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 22px;
    background:#00b4d8;
    color:#fff;
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
    white-space:nowrap;
    flex-shrink:0;
}
/*================ NAVBAR ================*/
.logo img{
    height:48px;
}
.nav-links li{
    position:relative;
}
.nav-links a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
}

.mobile-menu-btn,
.mobile-login,
.mobile-menu{
    display:none;
}

/*================ HERO ================*/
.hero-content h1{
    font-size:2.75rem;
    font-weight:700;
    margin-bottom:12px;
    line-height:1.2;
    text-shadow:0 2px 10px rgba(0,0,0,.5);
}
.hero-content p{
    font-size:1.1rem;
    color:#e6edf5;
    margin-bottom:0;
    text-shadow:0 1px 6px rgba(0,0,0,.4);
}
.hero-content .shop-btn{
    display:inline-block;
    padding:12px 28px;
    background:#00b4d8;
    color:#fff;
    text-decoration:none;
    border-radius:30px;
    font-weight:600;
    font-size:1rem;
    transition:.3s;
    margin-bottom:6px;
}
.hero-content .shop-btn:hover{
    background:#0096c7;
}

/*============== MOBILE ==============*/
@media(max-width:768px){
    body {
    padding-top: 0 !important;
}
    .navbar{
        display:grid;
        grid-template-columns:50px 1fr 50px;
        grid-template-rows:auto auto;
        padding:10px 15px;
        height:auto;
    }
    .mobile-menu-btn{
        display:flex;
        align-items:center;
        justify-content:flex-start;
        font-size:30px;
        color:#fff;
        cursor:pointer;
    }
    .logo{
        display:flex;
        justify-content:center;
    }
    .logo span{
        font-size:24px;
    }
    .logo img{
        height:40px;
    }
    .mobile-login{
        display:flex;
        justify-content:flex-end;
        align-items:center;
        font-size:26px;
        color:#fff;
        text-decoration:none;
    }
    .search-box{
        grid-column:1/4;
        width:100%;
        margin-top:10px;
    }
    .nav-links,
    .user-actions{
        display:none;
    }
    .mobile-menu{
        display:flex;
        flex-direction:column;
        position:fixed;
        top:0;
        left:-280px;
        width:260px;
        height:100vh;
        background:#081b3c;
        padding:20px;
        transition:.35s;
        z-index:10000;
    }
    .mobile-menu.active{
        left:0;
    }
    .mobile-menu a{
        color:#fff;
        text-decoration:none;
        padding:15px 0;
        border-bottom:1px solid rgba(255,255,255,.1);
    }
    .close-menu{
        font-size:34px;
        color:#fff;
        text-align:right;
        cursor:pointer;
        margin-bottom:20px;
    }
     .hero {
        height: auto;        /* was: 75vh — let it grow to fit content instead of clipping it */
        min-height: 75vh;    /* keeps it reasonably tall on mobile */
        padding: 100px 20px 40px;  /* room so content isn't jammed against the top edge */
    }

    .hero-content {
        padding: 25px 20px;  /* slightly tighter than desktop so it fits better on small screens */
    }

    .hero-content h1 {
        font-size: 28px;     /* your current 34px is a bit large + causes the box to grow taller than 75vh */
    }

    .hero-content p {
        font-size: 15px;
    }
}
@media (max-width: 1150px) {
    .nav-links{
        gap: 14px;
        font-size: 14px;
    }
    .search-box{
        max-width: 260px;
    }
}
@media (max-width: 1300px) {
    .nav-links{
        gap: 10px;
        font-size: 13px;
    }
    .search-box{
        max-width: 200px;
        min-width: 120px;
    }
    .login-link{
        padding: 8px 14px;
        font-size: 14px;
    }
}
@media (max-width: 1300px) {
    .navbar-logo-wrap{
        width: 120px;
    }
}
.dropdown-content{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:#081b3c;
    min-width:180px;
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,.3);
    padding:8px 0;
    z-index:10000;
}
.dropdown-content a{
    display:block;
    padding:10px 16px;
    white-space:nowrap;
}
.dropdown-content a:hover{
    background:rgba(255,255,255,.08);
}
.dropdown-content.show{
    display:block;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown {
    position: relative;
}
/* ================= TOY CATEGORY SECTION (homepage) ================= */

.toy-categories {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.toy-category {
    background: #fff;
    border-radius: 12px;
    padding: 17px 14px;
    text-align: center;
    border: 1px solid #e5eaf0;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    transition: .25s ease;
    scroll-margin-top: 110px;
}

.toy-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.toy-category span {
    display: block;
    font-size: 30px;
    margin-bottom: 7px;
}

.toy-category h3 {
    font-size: 16px;
    color: #081b3c;
    margin-bottom: 6px;
}

.toy-category p {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}

@media (max-width: 900px) {
    .toy-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .toy-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    .toy-category {
        padding: 14px 9px;
    }
}

/* ================= SHOP MEGA MENU ================= */

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    width: 980px;
    max-width: 92vw;

    background: #081b3c;
    padding: 20px 22px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    z-index: 10000;

    grid-template-columns: 170px 180px 190px 1fr;
    gap: 24px;

    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.mega-menu.show {
    display: grid;
}

.mega-menu > .menu-column {
    min-width: 0;
}

.mega-menu > .menu-column > h4 {
    color: #f5c451;
    font-size: 16px;
    font-weight: 700;

    margin: 0 0 12px;
    padding: 0 0 10px;

    border-bottom: 1px solid rgba(255,255,255,.18);
    line-height: 1.2;
}

.mega-menu > .menu-column > a {
    display: block;
    color: #ffffff;
    text-decoration: none;

    font-size: 13px;
    line-height: 1.4;

    padding: 6px 7px;
    border-radius: 5px;

    transition: .2s ease;
}

.mega-menu > .menu-column > a:hover {
    color: #00d9ff;
    background: rgba(0,217,255,.10);
    padding-left: 11px;
}

.mega-menu::-webkit-scrollbar {
    width: 5px;
}
.mega-menu::-webkit-scrollbar-track {
    background: transparent;
}
.mega-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.25);
    border-radius: 10px;
}

/* ================= NAVBAR SPACING FIX ================= */

@media (min-width:769px){
    .navbar {
        justify-content: flex-start;
        gap: 22px;
    }
}
/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
    .mega-menu {
        grid-template-columns: 150px 160px 170px 1fr;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        display: none !important;
    }
    .navbar {
        gap: 10px;
    }
}
.mega-menu {
    width: min(1150px, 95vw);
    grid-template-columns: 170px 180px 1fr;
}
.toys-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    column-gap: 22px;
    row-gap: 16px;
}
.toys-menu > h4 { grid-column: 1 / -1; }
.toy-group { min-width: 0; }
.toy-group h5 {
    color: #00d9ff;
    font-size: 12.5px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}
.toys-menu a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.4;
    padding: 3px 6px;
    border-radius: 4px;
    transition: .15s ease;
}
.toys-menu a:hover {
    color: #00d9ff;
    background: rgba(0,217,255,.10);
}
@media (max-width: 1100px) {
    .mega-menu { width: 94vw; grid-template-columns: 150px 160px 1fr; }
    .toys-menu { grid-template-columns: repeat(3, 1fr); }
}
/* ================= MOBILE NAVBAR FINAL FIX ================= */

@media (max-width: 768px) {

    body {
        padding-top: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 100px !important;

        display: grid !important;
        grid-template-columns: 50px 1fr 50px !important;
        grid-template-rows: 55px 45px !important;

        padding: 5px 12px !important;
        gap: 0 !important;

        background: #081b3c !important;
        z-index: 9999 !important;

        overflow: visible !important;
    }

    /* Hamburger */
    .mobile-menu-btn {
        grid-column: 1 !important;
        grid-row: 1 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        font-size: 30px !important;
        color: white !important;
    }

    /* Logo */
    .navbar .logo {
        grid-column: 2 !important;
        grid-row: 1 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        height: 55px !important;
    }

    .navbar .logo-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .navbar .logo img.navbar-logo {
        height: 52px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    /* Login icon */
    .mobile-login {
        grid-column: 3 !important;
        grid-row: 1 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        font-size: 25px !important;
        color: white !important;
    }

    /* Search */
    .search-box {
        grid-column: 1 / 4 !important;
        grid-row: 2 !important;

        display: flex !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        height: 40px !important;
        margin: 0 !important;
    }

    .search-box input {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;

        font-size: 14px !important;
        padding: 0 14px !important;
    }

    .search-box button {
        width: 50px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }

    /* Hide desktop navigation */
    .nav-links,
    .user-actions {
        display: none !important;
    }

    /* Hero starts immediately below navbar */
    .hero {
        margin-top: 100px !important;
        height: calc(100vh - 100px) !important;
        min-height: 600px !important;
    }
}
