
.nav-bar {
    background: #f8f8ff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 5px 20px;
    height: 60px; 
}

.nav-bar.scrolled {
    background: rgba(248, 248, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 100%;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: relative;
    height: 100%;
    justify-content: center;
}

.nav-logo img {
    height: 30px; 
    width: auto;
    transition: transform 0.3s ease;
    margin-bottom: 2px;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.slogan {
    font-size: 10px;
    color: #4b8c91;
    font-weight: 500;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    padding-left: 2px; 
    letter-spacing: 0.5px;
}

.nav-elements {
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}


.nav-list {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-list ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0 12px;
    position: relative;
}

.nav-list a {
    color: #2c2a4a;
    font-weight: 500;
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.nav-list a:hover {
    color: #4b8c91;
}

.nav-list li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #4b8c91;
    transition: width 0.3s ease;
}

.nav-list li:hover::after {
    width: 100%;
}

.nav-list li.active a {
    color: #4b8c91;
    font-weight: 600;
}

.nav-list li.active::after {
    width: 100%;
    background-color: #4b8c91;
}

/* Cart Icon Styles */
.cart-icon {
    position: relative;
    font-size: 20px;
    color: #2c2a4a;
    cursor: pointer;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: #4b8c91;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    display: none;
}


/* cart dropdown */

.cart-dropdown {
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 380px;
    max-height: 70vh;
    padding: 0;
    z-index: 1000;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-dropdown.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cart-dropdown h3 {
    margin: 0;
    padding: 20px;
    color: #2c2a4a;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-dropdown h3 .close-cart {
    color: #888;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s ease;
}

.cart-dropdown h3 .close-cart:hover {
    color: #2c2a4a;
}

.cart-items-container {
    padding: 0 20px;
    max-height: calc(70vh - 160px);
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}


.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
    padding-right: 15px;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c2a4a;
    font-size: 15px;
}

.cart-item-type {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: #4b8c91;
    font-size: 15px;
    margin-right: 10px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-item-remove:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

.cart-summary {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    color: #2c2a4a;
    font-size: 16px;
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.cart-actions button {
    flex: 1;
    padding: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-cart {
    background-color: #f8f8ff;
    border: 1px solid #ddd;
    color: #2c2a4a;
}

.view-cart:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.checkout {
    background-color: #4b8c91;
    color: white;
    border: 1px solid #4b8c91;
}

.checkout:hover {
    background-color: #3c7074;
    border-color: #3c7074;
}

.cart-actions button:hover {
    opacity: 0.9;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
}

.cart-empty i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ddd;
}

.cart-empty p {
    margin: 0;
    font-size: 14px;
}


.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.mobile-actions {
    display: none;
}

.mobile-nav {
    display: none;
    align-items: center;
}

.desktop-nav {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

.mobile-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 60px);
    background: rgba(248, 248, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-list ul {
    flex-direction: column;
}

.mobile-menu .nav-list li {
    margin: 8px 0;
}

.mobile-menu .nav-button {
    margin-top: 20px;
    width: 100%;
}

.mobile-menu .nav-button button {
    width: 100%;
    padding: 10px 0;
}

@media (max-width: 480px) {
    .cart-dropdown {
        width: 90vw;
        right: 5vw;
        top: 65px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
}


@media (max-width: 768px) {
    .nav-list li.active a {
        color: #4b8c91;
        font-weight: 600;
        padding-left: 10px;
        border-left: 2px solid #4b8c91;
    }
    
    .nav-list li.active::after {
        display: none;
    }
/* 
    .cart-dropdown {
        width: 300px;
        right: 20px;
      }     */
}

.nav-button {
    margin-left: auto; /* Pushes button to far right */
}

.nav-button button {
    background: #4b8c91;
    color: white;
    border: none;
    padding: 6px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

.nav-button button:hover {
    background: #3c7074;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    z-index: 1001;
}

.hamburger-box {
    width: 26px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 2px;
    background-color: #2c2a4a;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #2c2a4a;
    position: absolute;
    left: 0;
    transition: transform 0.2s ease;
}

.hamburger-inner::before {
    top: -6px;
}

.hamburger-inner::after {
    top: 6px;
}

/* Active state for hamburger */
.hamburger.active .hamburger-inner {
    background-color: transparent;
}

.hamburger.active .hamburger-inner::before {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active .hamburger-inner::after {
    transform: translateY(-6px) rotate(-45deg);
}


@media (max-width: 992px) {
    .nav-list li {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .nav-elements {
        position: fixed;
        top: 60px;
        right: -100%; 
        left: auto;
        width: 250px;
        height: calc(100vh - 60px);
        background: rgba(248, 248, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        max-height: none;
        overflow-y: auto;
        opacity: 1;
        transition: right 0.4s ease;
    }

    
    .nav-elements.active {
        right: 0; /* Slide in from right */
    }
    
    .nav-list {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .nav-list ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .nav-list li {
        margin: 8px 0;
        width: 100%;
        text-align: left;
    }
    
    .nav-list a {
        display: block;
        padding: 8px 0;
    }
    
    .nav-button {
        margin: 10px 0 0;
        width: 100%;
    }
    
    .nav-button button {
        width: 100%;
        padding: 8px 0;
    }
    
    .hamburger {
        display: inline-block;
    }
    
    .slogan {
        display: block;
    }

    .nav-actions {
        display: none;
    }
    
    .mobile-actions {
        display: flex;
        align-items: center;
    }
    
    .nav-elements {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background: rgba(248, 248, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }
    
    .cart-icon {
        margin-right: 20px;
        font-size: 22px;
    }



    .nav-elements.active {
        right: 0;
        display: flex;
    }
    
    .nav-list {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .nav-list ul {
        flex-direction: column;
    }
    
    .nav-list li {
        margin: 8px 0;
        width: 100%;
    }
    
    .nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
    }
    
    .nav-button {
        margin: 20px 0 0;
        width: 100%;
    }
    
    .nav-button button {
        width: 100%;
        padding: 10px 0;
    }
    
    .cart-icon {
        margin-right: 20px;
        font-size: 20px;
    }

    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }

}

@media (max-width: 480px) {
    .nav-logo img {
        height: 28px;
    }
    
    .nav-bar {
        padding: 5px 15px;
    }
    
    .slogan {
        font-size: 9px;
    }
}