/* Header */
.site-header {
    background: var(--header-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile header */
@media (max-width: 480px) {
    .site-header {
        padding: 8px 0;
    }
}

/* Keep header fixed on mobile/tablet while scrolling */
@media (max-width: 1024px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1400;
    }

    body {
        padding-top: var(--mobile-header-height);
    }

    .mobile-overlay {
        z-index: 1390;
    }

    .mobile-drawer {
        top: var(--mobile-header-height);
        bottom: 0;
        height: auto;
        max-height: none;
        z-index: 1410;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

/* Mobile logo adjustments */
@media (max-width: 480px) {
    .logo-link {
        gap: 10px;
    }
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile logo size */
@media (max-width: 480px) {
    .logo-img {
        height: 40px;
        width: 40px;
    }
}

.site-brand {
    font-family: 'Ruslan Display', cursive;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Mobile brand text */
@media (max-width: 480px) {
    .site-brand {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Mobile logo img */
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: bold;
}

/* Mobile header right */
@media (max-width: 480px) {
    .header-right {
        gap: 10px;
    }
}

.lang-switcher {
    font-size: 0.9rem;
    color: var(--text-color);
}

.lang-switcher a {
    color: var(--light-gray);
    text-decoration: none;
    padding: 0 5px;
}

.lang-switcher a.active {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

.lang-switcher a:hover {
    color: var(--primary-color);
}

.mobile-lang {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-lang {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-right: 15px;
    }
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    flex-wrap: wrap;
}

.support-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.support-link:hover {
    background-color: rgba(153, 189, 3, 0.1);
    transform: scale(1.1);
}

.support-link:active {
    transform: scale(0.95);
}

/* Make cart display more compact on small screens */
@media (max-width: 768px) {
    .cart-info {
        font-size: 1rem;
        gap: 5px;
    }

    .cart-total {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .mobile-lang {
        margin-right: 10px;
        gap: 6px;
        font-size: 0.85rem;
    }

    .mobile-lang a {
        padding: 0 3px;
    }
}

/* For very small screens, stack cart items */
@media (max-width: 480px) {
    .mobile-lang {
        margin-right: 8px;
        gap: 4px;
        font-size: 0.8rem;
    }
    
    .cart-info {
        font-size: 0.9rem;
    }

    .cart-count {
        font-size: 0.8rem;
        padding: 1px 5px;
    }
}

.cart-count {
    background-color: var(--primary-color);
    color: white;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
    display: none;
}

/* Show mobile menu button on tablets and phones */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex;
    }
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 999;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100dvh;
    background: #2b2b2b;
    color: #e6e6e6;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.55);
    transition: right 0.25s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 20px;
    overflow: hidden;
}

.mobile-drawer-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: 8px;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #3a3a3a;
    padding-bottom: 12px;
    margin-bottom: 10px;
}

.mobile-drawer-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f5f5f5;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #f5f5f5;
}

.mobile-drawer-links {
    display: grid;
    gap: 14px;
    padding: 10px 0 16px;
    border-bottom: 1px solid #3a3a3a;
}

.drawer-link {
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s;
}

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

.drawer-link::after {
    content: "+";
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-drawer-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #3a3a3a;
    font-weight: 600;
    color: #f5f5f5;
}

.mobile-drawer-lang .lang-switcher {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.mobile-drawer-lang .lang-switcher a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-drawer-lang .lang-switcher a.active {
    background: var(--primary-color);
    color: #1a1a1a;
}

.mobile-drawer-lang .lang-switcher .divider {
    color: #666;
}

.mobile-drawer-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #444;
    background: #1f1f1f;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 16px;
}

.mobile-drawer-search input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    background: transparent;
    color: #e6e6e6;
}

.mobile-drawer-search i {
    color: #bdbdbd;
}

.mobile-drawer-support {
    padding: 14px 0;
    border-top: 1px solid #3a3a3a;
    margin-bottom: 10px;
}

.mobile-drawer-support .drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(153, 189, 3, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-drawer-support .drawer-link:hover {
    background: rgba(153, 189, 3, 0.2);
}

.mobile-drawer-support .drawer-link::after {
    content: none;
}

.mobile-drawer-cart {
    padding: 14px 0;
    border-top: 1px solid #3a3a3a;
    margin-top: auto;
}

.mobile-drawer-cart .drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(153, 189, 3, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-drawer-cart .drawer-link:hover {
    background: rgba(153, 189, 3, 0.2);
}

.mobile-drawer-cart .drawer-link::after {
    content: none;
}

body.menu-open .mobile-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .mobile-drawer {
    right: 0;
}

/* Nav (desktop links removed) */
.site-nav {
    display: none;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none;
}

.mobile-nav {
    display: none;
    background: var(--header-bg);
    border-top: 1px solid #333;
    padding: 12px 15px 16px;
}

.mobile-nav-links {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

