/* Desktop / modal popular chips (Digikala-like) */
.desktop-search-popular {
    padding: 8px 4px 12px;
}

.desktop-search-popular__title {
    display: block;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    color: #0c0c0c;
}

.desktop-search-popular__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.desktop-search-popular__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e2;
    border-radius: 16px;
    background: #fff;
    color: #0c0c0c;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.desktop-search-popular__chip:hover {
    background: #fafafa;
    border-color: #c0c2c5;
}

.desktop-search-popular__chip-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #424750;
}

.desktop-search-popular__chip-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.desktop-search-popular__chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-empty {
    padding: 1.5rem 1rem;
    font-size: 0.875rem;
    color: #6d6e71;
}

.sm-section-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding-bottom: 1rem;
}

.sm-section-head span {
    display: flex;
    font-size: 0.875rem;
    font-weight: 600;
    color: #101010;
}

.sm-section-head svg {
    flex-shrink: 0;
}

.sm-section-head--accent {
    margin-bottom: 0;
    padding-bottom: 0;
}

.sm-section-head--accent span {
    padding-right: 4px;
}

.sm-queries {
    padding: 0.5rem 1rem 0;
}

.sm-query-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #101010;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
}

.sm-query-link:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.sm-query-arrow {
    display: flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sm-query-arrow svg {
    width: 100%;
    height: 100%;
}

.sm-products {
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.sm-products .sm-section-head {
    padding: 0 1rem 1rem;
}

.sm-products-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 1rem 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.sm-products-row::-webkit-scrollbar {
    display: none;
}

.sm-product-card {
    display: flex;
    width: 220px;
    flex: 0 0 220px;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.sm-product-img {
    position: relative;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    background: #f8f8f8;
}

.sm-product-img img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 6px;
}

.sm-product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(111, 115, 119, 0.07);
    pointer-events: none;
}

.sm-results > .sm-products:first-child {
    border-top: none;
    padding-top: 0;
}

.sm-product-title {
    flex: 1 1 60%;
    margin: 0 0.5rem 0 0;
    padding: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-product-divider {
    display: block;
    width: 0;
    height: 12px;
    border-left: 1px solid #ddd;
    flex-shrink: 0;
    align-self: center;
}

.sm-cats {
    padding: 0.5rem 1rem;
}

.sm-cat-link {
    display: flex;
    margin-top: 1rem;
    font-size: 0.75rem;
    text-decoration: none;
    color: inherit;
    line-height: 1.6;
}

.sm-cat-q {
    color: #878a8d;
}

.sm-cat-name {
    font-weight: 600;
    color: #101010;
    margin-right: 1ch;
}

/* Compact Digikala-like type in desktop search overlay */
.desktop-search-panel .sm-empty {
    font-size: 12px;
    padding: 1rem 0.25rem;
}

.desktop-search-panel .sm-section-head {
    padding-bottom: 8px;
}

.desktop-search-panel .sm-section-head span {
    font-size: 12px;
    font-weight: 600;
    line-height: 2.17;
}

.desktop-search-panel .sm-section-head svg {
    width: 16px;
    height: 16px;
}

.desktop-search-panel .sm-queries {
    padding: 0;
}

.desktop-search-panel .sm-query-link {
    margin-bottom: 0;
    padding: 8px 0;
    border-bottom: none;
    font-size: 12px;
    font-weight: 400;
    line-height: 2.17;
    color: #0c0c0c;
}

.desktop-search-panel .sm-query-arrow {
    width: 16px;
    height: 16px;
}

.desktop-search-panel .sm-products {
    border-top: 1px solid #f0f0f1;
    padding-top: 8px;
    margin-top: 4px;
}

.desktop-search-panel .sm-products .sm-section-head {
    padding: 0 0 8px;
}

.desktop-search-panel .sm-products-row {
    gap: 8px;
    padding: 0 0 4px;
}

.desktop-search-panel .sm-product-card {
    width: 180px;
    flex-basis: 180px;
}

.desktop-search-panel .sm-product-img,
.desktop-search-panel .sm-product-img img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
}

.desktop-search-panel .sm-product-title {
    font-size: 12px;
    line-height: 1.8;
    padding: 4px;
    margin: 0;
}

.desktop-search-panel .sm-cats {
    padding: 4px 0;
}

.desktop-search-panel .sm-cat-link {
    margin-top: 8px;
    font-size: 12px;
    line-height: 2.17;
}

.desktop-search-panel .sm-cat-name {
    font-weight: 500;
}
