/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
}

/* Header */
.main-header {
    background-color: #000000;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo-text small {
    font-size: 9px;
    color: #888888;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Legacy support for pages without logo-text wrapper */
.logo-placeholder span {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo-placeholder small {
    font-size: 9px;
    color: #888888;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    display: block;
    padding: 20px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #c4ff0d;
    color: #000000;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #2a2a2a;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #c4ff0d;
    color: #000000;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #c4ff0d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.cart-icon:hover {
    background-color: rgba(196, 255, 13, 0.1);
    transform: scale(1.05);
}

.cart-icon svg {
    width: 28px;
    height: 28px;
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #c4ff0d;
    color: #000000;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(196, 255, 13, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification svg {
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #000000;
    border-bottom: 1px solid #1a1a1a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #1a1a1a;
}

.mobile-nav-link {
    display: block;
    padding: 16px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #1a1a1a;
    color: #c4ff0d;
}

/* Mobile Dropdown */
.mobile-has-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.mobile-dropdown-toggle:hover {
    background-color: #1a1a1a;
    color: #c4ff0d;
}

.mobile-dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.mobile-dropdown-toggle.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #0a0a0a;
}

.mobile-dropdown-menu.active {
    max-height: 300px;
}

.mobile-dropdown-menu li {
    border-bottom: 1px solid #1a1a1a;
}

.mobile-dropdown-menu .mobile-nav-link {
    padding-left: 40px;
    font-size: 13px;
    color: #cccccc;
}

.mobile-dropdown-menu .mobile-nav-link:hover {
    color: #c4ff0d;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-link {
        padding: 20px 14px;
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 0;
    }
    
    .nav-link {
        padding: 20px 10px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .header-container {
        justify-content: space-between;
        padding: 0 15px;
        height: 60px;
    }

    .logo-placeholder span,
    .logo-text span {
        font-size: 18px;
    }

    .logo-placeholder small,
    .logo-text small {
        font-size: 8px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .cart-icon {
        width: 35px;
        height: 35px;
    }

    .cart-icon svg {
        width: 20px;
        height: 20px;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: -4px;
        right: -4px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .main-header {
        height: 56px;
    }

    .header-container {
        padding: 0 12px;
        height: 56px;
    }

    .logo-placeholder span,
    .logo-text span {
        font-size: 16px;
    }

    .logo-placeholder small,
    .logo-text small {
        font-size: 7px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .cart-icon {
        width: 32px;
        height: 32px;
    }

    .cart-icon svg {
        width: 18px;
        height: 18px;
    }

    .cart-count {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .mobile-menu-toggle {
        width: 32px;
        height: 32px;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        width: 20px;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .main-header {
        height: 52px;
    }

    .header-container {
        padding: 0 10px;
        height: 52px;
    }

    .logo-placeholder span,
    .logo-text span {
        font-size: 14px;
    }

    .logo-placeholder small,
    .logo-text small {
        font-size: 6px;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .cart-icon {
        width: 28px;
        height: 28px;
    }

    .cart-icon svg {
        width: 16px;
        height: 16px;
    }

    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        width: 18px;
    }
}

