/* Main Header Container */
.wc-nsmh-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.wc-nsmh-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

/* Logo */
.wc-nsmh-logo img {
    height: 24px;
    /* Nike style is usually small/iconic */
    display: block;
    width: auto;
}

.wc-nsmh-logo-text {
    font-weight: bold;
    font-size: 20px;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
}

/* Right Icons */
.wc-nsmh-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wc-nsmh-icon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.wc-nsmh-icon svg {
    stroke-width: 1.5px;
}

.wc-nsmh-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #111;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Search Overlay */
.wc-nsmh-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.wc-nsmh-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wc-nsmh-search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wc-nsmh-cancel-btn {
    background: none;
    border: none;
    color: #111;
    font-size: 16px;
    padding: 0 5px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
}

.wc-nsmh-search-form input[type="search"] {
    width: 100%;
    border: none;
    background: #f5f5f5;
    padding: 12px 20px;
    /* Slightly reduced vertical padding */
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    /* margin-top: 40px; Removed since we are wrapping it */
}

/* Search History */
.wc-nsmh-search-history {
    margin-top: 20px;
    padding: 0 10px;
}

.wc-nsmh-history-title {
    font-size: 14px;
    color: #757575;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.wc-nsmh-history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wc-nsmh-history-tag {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #111;
    cursor: pointer;
    transition: background 0.2s;
}

.wc-nsmh-history-tag:hover {
    background: #e5e5e5;
}


/* ... existing code ... */

/* Spacing fix for body */
@media (max-width: 768px) {
    body.wc-nsmh-active {
        padding-top: 60px;
        /* Removed !important to allow theme handling if needed */
        /* Prevent content overlap */
    }
}

/* Drawer Styles */
.wc-nsmh-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 80%;
    height: 100%;
    background: #fdfbf7;
    /* Beige tone from screenshot */
    z-index: 10002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.wc-nsmh-menu-drawer.active {
    transform: translateX(0);
}

.wc-nsmh-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.wc-nsmh-menu-drawer.active~.wc-nsmh-drawer-backdrop,
/* Since we moved it out, we need to toggle class on it or rely on JS. 
   JS in script.js line 20 adds .active to .wc-nsmh-menu-drawer. 
   Does it add to backdrop? 
   No, script.js: $('.wc-nsmh-menu-drawer').addClass('active');
   We need to update JS or use sibling selector if HTML allows.
   We moved backdrop AFTER drawer. So .wc-nsmh-menu-drawer.active + .wc-nsmh-drawer-backdrop works.
*/
.wc-nsmh-menu-drawer.active+.wc-nsmh-drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

.wc-nsmh-drawer-header {
    background: #001f3f;
    /* Dark blue from screenshot */
    padding: 15px;
    display: flex;
    justify-content: flex-start;
    /* Close button on left in screenshot */
}

.wc-nsmh-close-drawer {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.wc-nsmh-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.wc-nsmh-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc-nsmh-nav li {
    margin-bottom: 20px;
    border-bottom: none;
}

.wc-nsmh-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    display: block;
}

/* Submenu toggle styles if needed */
.wc-nsmh-nav .sub-menu {
    display: none;
    padding-left: 15px;
    margin-top: 10px;
}

.wc-nsmh-nav li.open>.sub-menu {
    display: block;
}

.wc-nsmh-drawer-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

@media (min-width: 769px) {

    .wc-nsmh-header,
    .wc-nsmh-search-overlay,
    .wc-nsmh-menu-drawer,
    .wc-nsmh-drawer-backdrop {
        display: none !important;
    }
}