/* Main Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.back-link {
    color: #1e88e5;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-link:hover {
    gap: 12px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.logo i {
    background: linear-gradient(135deg, #ff4081 0%, #f50057 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #1e88e5;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4081;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.nav-menu-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
}

.nav-menu-mobile.active {
    display: block;
}

.nav-menu-mobile a {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.nav-menu-mobile a:last-child {
    border-bottom: none;
}

.nav-menu-mobile a:hover {
    background: #f8f9fa;
    color: #1e88e5;
    padding-left: 20px;
}

/* Mobile Responsive */
@media (max-width: 1100px) {
    .top-header {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 18px;
    }

    .back-link span {
        display: none;
    }

    .header-left {
        gap: 15px;
    }

    .main-header-container {
        flex-wrap: wrap;
    }
}

/* Top Header Nav adjustments */
.top-header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}
.top-header-left .nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-left: auto;
}
.top-header-left .nav-menu a, .top-header-left .nav-menu button {
    color: white !important;
    font-size: 14px !important;
}

/* Adjust search bar to be wider */
.search-bar {
    flex: 1;
    max-width: 100%;
    width: 100%;
    margin-left: 20px;
}
