@font-face {
    font-family: ams_mahabharat;
    src: url('../fonts/ams_mahabharat.ttf');
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
}

/* Main Navigation */
.main-nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;

}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    flex-shrink: 0;
}

.logo span {
    color: var(--primary-color);
}



.logo-wrap {
    display: flex;
    text-align: center;
    justify-content: center;
}

.logo-wrap img {
    width: 150px;
    /* height: fit-content; */
}

.logo-wrap p {
    font-family: ams_mahabharat;
    font-size: 30px;
    font-weight: 100;
    margin: 20px 0 0 0;
    padding: 0;
    color: rgb(248, 179, 4);
    text-shadow: 1px 1px 5px rgba(112, 91, 3, 0.3);

}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;

}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-bar form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.search-bar form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background-color: var(--accent-color);
}

.mobile-nav-wrap {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0 0 0;
    margin-top: 10px;
    border-top: #eee 1px solid;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile Search Bar */
.mobile-search-bar {

    margin: 0px;
    width: 80%;
}

.mobile-search-bar form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.mobile-search-bar form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.mobile-search-bar input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.mobile-search-bar button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-search-bar button:hover {
    background-color: var(--accent-color);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    gap: 15px;
}

.nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--secondary-color);
    text-decoration: none;
    background-color: var(--light-color);
    transition: var(--transition);
}

.nav-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    height: 24px;
    width: 30px;
    position: relative;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Main Menu */
.nav-menu {
    border-top: 1px solid #eee;
}

.main-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    margin-bottom: 0;
}

.menu-item-c {
    position: relative;
    text-transform: uppercase;
}

.menu-item-c a {
    display: block;
    text-decoration: none;
    color: var(--secondary-color);
    padding: 15px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.menu-item-c.active a {
    color: var(--primary-color);
}

.menu-item-c a:hover {
    color: var(--primary-color);
}

.menu-item-c.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Dropdown Menu */
.has-dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu-c {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    max-height: 400px;
    overflow-y: scroll;
}

.has-dropdown:hover .dropdown-menu-c {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeIn 0.3s ease;
}

.dropdown-menu-c li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu-c li:last-child {
    border-bottom: none;
}

.dropdown-menu-c a {
    padding: 12px 20px;
    transition: var(--transition);
}

.dropdown-menu-c a:hover {
    background-color: var(--light-color);
    padding-left: 25px;
}

.btn-close-nav-wrap{
    display: none;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .search-bar {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        height: 70px;
    }

    .search-bar {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        max-width: 100%;
        margin: 0;
        padding: 10px 15px;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .search-bar.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .mobile-nav-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        position: sticky;
        top: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-menu {
        /* position: fixed;
        top: 0px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        border-top: none;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-top: 50px;
        z-index: 1001; */
        /* width: 300px */
        position: fixed;
        top: 0px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #1010107a;
        border-top: none;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-top: 50px;
        z-index: 1001;
        /* width: 300px;*/

    }
    .btn-close-nav-wrap{
        display: flex;
    }

    .close-nav-btn{
        /* background-color: #f9f5cd;
        width: 50px;
        height: 50px;
        border: 1px solid #e0e0e0;
        padding: 10px;
        border-radius: 50%; */

        background-color: #fff;
        width: 50px;
        height: 50px;
        border: none;
        padding: 10px;
        border-radius: 50%;
    }
    .close-nav-btn i{
        color: #786c02;
        font-size: 25px;
    }


    .nav-menu.active {
        transform: translateX(0);
    }


    .main-menu {
        flex-direction: column;
        padding: 20px 0;
    }

    .menu-item-c.active::after {
        display: none;
    }

    .dropdown-menu-c {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-menu-c li {
        /* padding-left: 10px; */
    }

    .has-dropdown.active .dropdown-menu-c {
        max-height: 300px;
        overflow-y: auto;
    }

    .has-dropdown>a {
        justify-content: space-between;
    }

    .has-dropdown>a i {
        transition: var(--transition);
    }

    .has-dropdown.active>a i {
        transform: rotate(180deg);
    }

   
/* Mobile side nav */
    /* .main-nav .container:has(.nav-menu.active) .nav-wrapper {
        z-index: 1020;
        top: 15px;
        position: fixed;
      }

      @supports (selector(:has(*))) {
        article:has(img) {
          border: 1px solid red;
        }
      } */

      /*end : Mobile side nav */
}

@media (max-width: 380px) {

    .logo-wrap img {
    width: 120px;

}

}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
