.search-wrapper {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 24px auto;
    z-index: 50;
}


.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 99px;
    padding: 6px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.search-box:focus-within {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border-color: var(--primary);
}

#search-input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: #0f172a;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-clear {
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex; align-items: center; justify-content: center;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
}
.search-clear:hover { background: #cbd5e1; color: #000; }

.search-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-section-title {
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.search-cats-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: #fff;
}

.search-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 14px 6px 6px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.search-cat-item:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.search-cat-img {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}

.search-cat-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.search-products-list {
    padding: 8px 0;
}

.search-prod-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
}
.search-prod-item:last-child { border-bottom: none; }
.search-prod-item:hover { background: #f8fafc; }

.search-prod-img {
    width: 48px; height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

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

.search-prod-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}

.search-prod-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.search-empty {
    padding: 30px;
    text-align: center;
    color: #64748b;
}

.search-paw-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.7) opacity(0.5);
    flex-shrink: 0;
}