/* Mobile-only padding-top: 29px for header left block */
@media (max-width: 991.98px) {
    .mobile-pt-29 {
        padding-top: 29px !important;
    }
}

/* Search Overlay */
.qanun-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.qanun-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qanun-search-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-20px);
    transition: transform 0.25s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.qanun-search-overlay.active .qanun-search-container {
    transform: translateY(0);
}

.qanun-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
}

.qanun-search-header svg {
    flex-shrink: 0;
    color: #138483;
}

.qanun-search-header input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    background: transparent;
}

.qanun-search-header input::placeholder {
    color: #aaa;
}

.qanun-search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #888;
    transition: color 0.15s;
}

.qanun-search-close:hover {
    color: #333;
}

.qanun-search-results {
    overflow-y: auto;
    max-height: calc(80vh - 70px);
    padding: 0;
}

.qanun-search-results:empty {
    display: none;
}

.qanun-search-status {
    text-align: center;
    padding: 32px 24px;
    color: #888;
    font-size: 0.95rem;
}

.qanun-search-status svg {
    display: block;
    margin: 0 auto 12px;
}

.qanun-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.qanun-result-item:hover {
    background: #f0fafa;
    color: #333;
    text-decoration: none;
}

.qanun-result-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.qanun-result-info {
    flex: 1;
    min-width: 0;
}

.qanun-result-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qanun-result-desc {
    font-size: 0.8rem;
    color: #888;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qanun-result-price {
    font-weight: 600;
    font-size: 0.9rem;
    color: #138483;
    flex-shrink: 0;
    white-space: nowrap;
}

.qanun-result-price del {
    color: #bbb;
    font-weight: 400;
    font-size: 0.8rem;
    margin-left: 4px;
}

.qanun-search-footer {
    padding: 10px 24px;
    text-align: center;
    border-top: 1px solid #eee;
}

.qanun-search-footer a {
    color: #138483;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}

.qanun-search-footer a:hover {
    text-decoration: underline;
}

.qanun-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #484848;
    transition: color 0.15s;
    display: flex;
    align-items: center;
}

.qanun-search-btn:hover {
    color: #138483;
}

@media (max-width: 991.98px) {
    .qanun-search-header {
        padding: 12px 16px;
    }

    .qanun-result-item {
        padding: 10px 16px;
    }
}
