/* Container Layout */
.nsh-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nsh-logo img { max-height: 50px; display: block; }

/* Desktop Search */
.nsh-search-desktop { flex: 1; max-width: 500px; margin: 0 40px; position: relative; }
.nsh-search-box { position: relative; width: 100%; }
.nsh-search-input {
    width: 100%; padding: 12px 20px; border-radius: 25px;
    border: 1px solid #e2e8f0; background: #f8fafc;
    transition: all 0.3s ease; outline: none;
}
.nsh-search-input:focus { border-color: #cbd5e1; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* Search Results */
.nsh-search-results {
    position: absolute; top: 110%; left: 0; width: 100%;
    background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px; z-index: 999; display: none; overflow: hidden;
}
.nsh-search-item {
    display: flex; align-items: center; padding: 12px;
    text-decoration: none; color: #333; border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}
.nsh-search-item:hover { background: #f8fafc; }
.nsh-search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; margin-right: 12px; }
.nsh-item-title { font-size: 14px; font-weight: 500; display: block; }
.nsh-item-price { font-size: 13px; color: #64748b; }

/* Icons */
.nsh-actions { display: flex; align-items: center; gap: 20px; }
.nsh-icon { cursor: pointer; position: relative; display: flex; align-items: center; transition: transform 0.2s; }
.nsh-icon:hover { transform: translateY(-2px); }
.nsh-icon svg { fill: #1e293b; }
.nsh-cart-count {
    position: absolute; top: -8px; right: -10px; background: #ef4444; color: #fff;
    font-size: 11px; font-weight: bold; width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
}

/* Slide Cart */
.nsh-side-cart {
    position: fixed; top: 0; right: -400px; width: 350px; height: 100vh;
    background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 9999; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column;
}
.nsh-side-cart.open { right: 0; }
.nsh-cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 9998; opacity: 0;
    pointer-events: none; transition: opacity 0.3s;
}
.nsh-cart-overlay.show { opacity: 1; pointer-events: all; }
.nsh-side-cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #f1f5f9; }
.nsh-close-cart { font-size: 24px; cursor: pointer; }
.nsh-side-cart-body { padding: 20px; overflow-y: auto; flex: 1; }

/* Mobile View Elements */
.nsh-mobile-search-trigger { display: none; }
.nsh-mobile-search-popup {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #fff;
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 20px;
}
.nsh-mobile-search-popup.active { opacity: 1; pointer-events: all; }
.nsh-close-search { position: absolute; top: 20px; right: 20px; font-size: 30px; cursor: pointer; }

/* Responsive Overrides */
@media (max-width: 768px) {
    .nsh-search-desktop { display: none; }
    .nsh-mobile-search-trigger { display: flex; }
    .nsh-side-cart { width: 100%; right: -100%; }
}
