/* E-commerce Header - Search bar, category dropdown */

.header-search {
    max-width: 600px;
    width: 100%;
    justify-self: center;
}

.search-bar {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    background: #fff;
}

.search-bar:focus-within {
    border-color: #c73e3a;
}

.search-category {
    display: none;
    border: none;
    padding: 8px 12px;
    background: #f5f5f5;
    font-size: 0.85rem;
    color: #333;
    border-right: 1px solid #ddd;
    cursor: pointer;
    min-width: 140px;
}

.search-category:focus {
    outline: none;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #333;
    min-width: 0;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: #c73e3a;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-button:hover {
    background: #a03230;
}

.search-button svg {
    display: block;
}

/* Show category dropdown on larger screens */
@media (min-width: 768px) {
    .search-category {
        display: block;
    }
}

/* Hero search form */
.hero-search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-search-input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 1rem;
    color: #333;
}

.hero-search-input:focus {
    outline: none;
}

.hero-search-input::placeholder {
    color: #999;
}

.hero-search-button {
    background: #c73e3a;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-search-button:hover {
    background: #a03230;
}
