@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Logo inside navbar */
.site-logo {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    opacity: 0;
    animation: fadeInLogo 1s ease-out 0.5s forwards;
    transition: all 0.3s ease;
}

.site-logo img {
    height: 70px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.top-navbar.scrolled .site-logo img {
    height: 50px;
}

.site-logo:hover img {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    transform: scale(1.05);
}

@keyframes fadeInLogo {
    to {
        opacity: 1;
    }
}

/* Transparent Navbar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px 30px 150px;
    z-index: 1000;
    opacity: 0;
    animation: fadeInLogo 1s ease-out 0.5s forwards;
    background: transparent;
    transition: all 0.3s ease;
    min-height: 100px;
}

.top-navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 15px 50px 15px 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-height: 70px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    margin-right: auto;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e10000;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #e10000;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.language-switcher a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e10000;
}

.language-switcher a.active {
    background: #e10000;
    color: #ffffff;
}

/* Header Icons (Login, Cart, Menu Dots) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 25px;
    opacity: 0;
    animation: fadeInLogo 1s ease-out 0.5s forwards;
}

.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-icon:hover {
    background: rgba(225, 0, 0, 0.4);
    border-color: #e10000;
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(225, 0, 0, 0.5);
}

.header-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff !important;
    fill: none;
    color: #ffffff !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* Hamburger Menu Button */
.menu-dots-btn {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10000002;
    opacity: 0;
    animation: fadeInLogo 1s ease-out 0.5s forwards;
    position: relative;
}

.menu-dots-btn .line {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-dots-btn:hover .line {
    background: #e10000;
}

/* Sidebar Menu */
.sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 10000000 !important;
    pointer-events: none !important;
}

.sidebar-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.sidebar-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 300px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: #1a1a1a !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3) !important;
    z-index: 10000001 !important;
    overflow-y: auto !important;
    transition: right 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.sidebar-menu.active {
    right: 0 !important;
    transform: translateX(0) !important;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
    height: 50px;
    width: auto;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    color: #e10000;
    transform: rotate(90deg);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav a {
    display: block;
    padding: 18px 20px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background: rgba(248, 150, 40, 0.1);
    color: #f89628;
    padding-left: 30px;
}

.sidebar-language {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-language p {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-lang-buttons {
    display: flex;
    gap: 10px;
}

.sidebar-lang-buttons a {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sidebar-lang-buttons a:hover {
    background: rgba(248, 150, 40, 0.2);
    color: #f89628;
}

.sidebar-lang-buttons a.active {
    background: #e10000;
    color: #ffffff;
}

/* Sidebar Actions Section */
.sidebar-actions {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(248, 150, 40, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
}

.sidebar-user-info svg {
    color: #f89628;
    flex-shrink: 0;
}

.sidebar-user-info div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.sidebar-user-info strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info span {
    color: #888;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-action-btn:hover {
    background: rgba(248, 150, 40, 0.15);
    color: #f89628;
    padding-left: 20px;
}

.sidebar-action-btn svg {
    flex-shrink: 0;
}

.sidebar-cart-badge {
    margin-left: auto;
    background: #e10000;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: none;
    /* Hidden by default, shown by JS when cart has items */
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.sidebar-logout:hover {
    background: rgba(225, 0, 0, 0.1);
    color: #e10000;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e10000;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    pointer-events: none;
    line-height: 1;
}

/* Instagram Icon */
.instagram-icon svg {
    transition: all 0.3s ease;
}

.instagram-icon:hover svg {
    transform: scale(1.15) rotate(5deg);
}

.instagram-icon:hover {
    background: linear-gradient(45deg, rgba(225, 48, 108, 0.15), rgba(193, 53, 132, 0.15), rgba(131, 58, 180, 0.15));
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    overflow: hidden;
}

.profile-dropdown:hover .profile-dropdown-menu,
.profile-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-user-info {
    padding: 20px;
    background: linear-gradient(135deg, #e10000 0%, #c90000 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-user-info strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-user-info span {
    display: block;
    font-size: 13px;
    opacity: 0.9;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.profile-menu-item:hover {
    background: #f5f5f5;
    color: #e10000;
}

.profile-menu-item svg {
    flex-shrink: 0;
}

.profile-menu-item:last-child {
    border-top: 1px solid #f0f0f0;
    color: #e10000;
}

.profile-menu-item:last-child:hover {
    background: #fff5f5;
}

/* Mobile Responsive */
@media (max-width: 968px) {

    /* Hide desktop menu */
    .nav-menu {
        display: none !important;
    }

    /* Show hamburger button */
    .menu-dots-btn {
        display: flex !important;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 10000002 !important;
    }

    /* Adjust navbar layout for mobile */
    .top-navbar {
        padding: 15px 20px;
        min-height: 70px;
        justify-content: flex-start;
    }

    .top-navbar.scrolled {
        padding: 10px 20px;
        min-height: 60px;
    }

    /* Logo positioning */
    .site-logo {
        left: 20px;
        position: fixed;
        z-index: 10000001;
    }

    .site-logo img {
        height: 50px;
    }

    .top-navbar.scrolled .site-logo img {
        height: 45px;
    }

    /* Header icons for mobile */
    .header-icons {
        position: fixed;
        right: 75px;
        top: 18px;
        gap: 8px;
        margin-left: 0;
        z-index: 10000001;
    }

    .top-navbar.scrolled .header-icons {
        top: 13px;
    }

    /* Hide profile dropdown on mobile */
    .profile-dropdown {
        display: none !important;
    }

    /* Hide Instagram icon on very small screens */
    .instagram-icon {
        display: none;
    }

    /* Make remaining icons smaller */
    .header-icon {
        width: 38px;
        height: 38px;
    }

    .header-icon svg {
        width: 19px;
        height: 19px;
    }

    .cart-badge {
        font-size: 11px;
        width: 20px;
        height: 20px;
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 480px) {

    /* Extra small screens adjustments */
    .top-navbar {
        padding: 10px 15px;
        min-height: 60px;
    }

    .top-navbar.scrolled {
        min-height: 55px;
    }

    .site-logo {
        left: 15px;
    }

    .site-logo img {
        height: 42px;
    }

    .top-navbar.scrolled .site-logo img {
        height: 38px;
    }

    .menu-dots-btn {
        right: 15px;
        top: 15px;
        width: 40px;
        height: 40px;
    }

    .menu-dots-btn .line {
        width: 22px;
    }

    .header-icons {
        right: 65px;
        top: 15px;
        gap: 6px;
    }

    .top-navbar.scrolled .header-icons {
        top: 12px;
    }

    .header-icon {
        width: 35px;
        height: 35px;
    }

    .header-icon svg {
        width: 17px;
        height: 17px;
    }

    .cart-badge {
        font-size: 10px;
        width: 18px;
        height: 18px;
        top: -5px;
        right: -5px;
    }

    /* Hide login icon on extra small screens to save space */
    .login-icon {
        display: none !important;
    }
}