/* Header Custom Styles - Extracted from header.html */

.search-suggest {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
    margin-top: 8px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
}

.search-results.is-open {
    display: block;
}

.search-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #0f172a;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: #f8fafc;
}

.search-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f1f5f9;
    object-fit: cover;
    flex-shrink: 0;
}

.search-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-name {
    font-weight: 600;
    font-size: 14px;
}

.search-price {
    font-size: 12px;
    color: #475569;
}

.search-empty {
    padding: 12px;
    color: #64748b;
    font-size: 13px;
}

/* Dynamic shop mega-menu columns */
.main-menu ul li .mega-menu ul.mega-menu-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: hidden;
    padding-bottom: 0;
}

.main-menu ul li .mega-menu ul.mega-menu-grid > li {
    float: none;
    width: 0;
    min-width: 0;
    flex: 1 1 0;
}

.main-menu ul li .mega-menu ul.mega-menu-grid > li ul li {
    margin-bottom: 6px;
}

.main-menu ul li .mega-menu ul.mega-menu-grid > li ul li a {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .main-menu ul li .mega-menu ul.mega-menu-grid {
        gap: 6px;
    }

    .main-menu ul li .mega-menu ul.mega-menu-grid > li {
        min-width: 0;
    }

    .main-menu ul li .mega-menu ul.mega-menu-grid > li ul li a {
        font-size: 12px;
    }
}
