/* ============================================================
   MOBILESHOP HEADER — header.css
   ============================================================ */

/* ── Hide Native Theme Header ──────────────────────────────── */
.site-header, #masthead, #header, .elementor-location-header, .main-header, .header-main, nav.navbar, .navbar {
    display: none !important;
}

/* ── Top Bar (Announcements) ──────────────────────────────── */
#ms-topbar {
    background: var(--primary);
    color: var(--white);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-family: var(--font-family);
    font-size: var(--fs-13);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ms-topbar__slides {
    overflow: hidden;
    width: 100%;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}

.ms-topbar__track {
    display: flex;
    width: max-content;
    animation: ms-topbar-scroll 20s linear infinite;
}

.ms-topbar__slide {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    padding: 0 48px;
}

@keyframes ms-topbar-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Main Header ──────────────────────────────────────────── */
#ms-header {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 999;
    background: var(--white);
    display: flex;
    align-items: center;
    font-family: var(--font-family);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

#ms-header.ms-header--solid {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.ms-header__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

/* Hamburger */
.ms-header__hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    color: var(--text);
}

.ms-header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: all 0.2s ease;
}

/* Logo */
.ms-header__logo {
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ms-header__logo-img {
    height: 72px;
    width: auto;
    display: block;
}

.ms-header__logo-text {
    font-size: var(--fs-28);
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--logo-dot-color);
    border-radius: 50%;
    margin: 0 2px;
    box-shadow: inset 0 0 0 4px #000;
}

/* ── Left Section ──────────────────────────────────────────── */
.ms-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ── Center Navigation ────────────────────────────────────── */
.ms-header__nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 24px;
}

.ms-header__nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ms-header__nav li {
    margin: 0;
    padding: 0;
}

.ms-header__nav a {
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-family);
    font-size: var(--fs-15);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
}

.ms-header__nav a:hover {
    color: var(--primary);
}

/* ── Contact Us Button ──────────────────────────────────────── */
.ms-header__contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-family: var(--font-family);
    font-size: var(--fs-14);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ms-header__contact-btn:hover {
    opacity: 0.9;
    color: var(--white);
}

/* ── Right Actions ────────────────────────────────────────── */
.ms-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ms-header__icon-btn {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.ms-header__icon-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ms-cart-btn .ms-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ── Sidebar Overlay ──────────────────────────────────────── */
#ms-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ms-sidebar-overlay--visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ── Sidebar ──────────────────────────────────────────────── */
#ms-sidebar {
    position: fixed;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: 420px;
    max-width: 90vw;
    background: var(--white);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    transform: translateX(calc(-100% - 20px));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

#ms-sidebar.ms-sidebar--open {
    transform: translateX(0);
}

.ms-sidebar__head {
    padding: 24px 32px 10px 32px;
    display: flex;
    align-items: center;
}

.ms-sidebar__close {
    background: transparent;
    border: 1px solid #eee;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text);
    transition: background 0.2s;
}

.ms-sidebar__close:hover {
    background: #f5f5f5;
}

.ms-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 32px;
}

.ms-sidebar__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ms-sidebar__nav li {
    margin: 0;
    padding: 0;
}

.ms-sidebar__nav::-webkit-scrollbar {
    width: 6px;
}
.ms-sidebar__nav::-webkit-scrollbar-track {
    background: transparent;
}
.ms-sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
}

.ms-sidebar__nav a {
    display: block;
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 400;
    color: var(--text);
    font-size: var(--fs-26);
    line-height: 34px;
    padding: 10px 0;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ms-sidebar__nav a:hover {
    opacity: 0.6;
}

.ms-sidebar__foot {
    padding: 10px 32px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ms-sidebar__social {
    display: flex;
    gap: 16px;
}

.ms-sidebar__social a {
    color: var(--text);
    transition: opacity 0.2s;
}

.ms-sidebar__social a:hover {
    opacity: 0.6;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 992px) {
    .ms-header__desktop-only { display: none !important; }

    .ms-header__nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #ms-topbar { font-size: 8px; height: 30px; }

    #ms-header {
        height: 60px;
    }

    .ms-header__inner {
        padding: 0 12px;
        gap: 0;
        justify-content: space-between;
    }

    .ms-header__hamburger {
        display: flex;
        padding: 6px;
        flex-shrink: 0;
    }

    .ms-header__logo-img {
        height: 50px;
    }

    .ms-header__logo-text {
        font-size: 20px;
        flex-shrink: 0;
    }

    .logo-dot {
        width: 14px;
        height: 14px;
    }

    .ms-header__icon-btn svg {
        width: 20px;
        height: 20px;
    }

    #ms-sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        border-radius: 0;
        transform: translateX(-100%);
    }

    .ms-sidebar__head, .ms-sidebar__nav, .ms-sidebar__foot {
        padding-left: 24px;
        padding-right: 24px;
    }

    .ms-sidebar__nav a {
        font-size: var(--fs-22);
        line-height: 30px;
    }
}

@media (max-width: 480px) {
    .ms-header__hamburger {
        display: flex;
    }

    .ms-header__logo-img {
        height: 42px;
    }

    .ms-header__logo-text {
        font-size: 18px;
    }
}
