.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1002;
}

.search-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 92%;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
    z-index: 1003;
    display: flex;
    flex-direction: column;
}

.search-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px 14px;
    border-bottom: 1px solid #e5e5e5;
}

.search-drawer-header h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.search-drawer-close {
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}

.search-drawer-input-wrap {
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
}

.search-drawer-input {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #1a1a1a;
    border-radius: 15px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.search-drawer-input:focus {
    border-color: #000;
}

.search-drawer-results {
    flex: 1;
    overflow-y: auto;
    padding: 12px 18px 24px;
}

.search-hint {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results-list li {
    border-bottom: 1px solid #eee;
}

.search-results-list li:last-child {
    border-bottom: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.search-result-item:hover {
    opacity: 0.75;
}

.search-result-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-img-placeholder {
    display: block;
    background: #f0f0f0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.search-result-price {
    font-size: 13px;
    color: #555;
}

body.search-open .search-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.search-open .search-drawer {
    transform: translateX(0);
}

body.search-open.search-open .search-drawer {
    z-index: 1003;
}
