/* Search Overlay Styles - Minimalist Black & White */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.is-active {
    display: block;
    opacity: 1;
}

.search-overlay__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.search-overlay__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.is-active .search-overlay__content {
    transform: translateY(0);
}

/* Header with Close Button */
.search-overlay__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.search-overlay__close {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.search-overlay__close:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

.search-overlay__close-icon {
    width: 24px;
    height: 24px;
}

/* Search Form */
.search-overlay__form-wrapper {
    margin-bottom: 40px;
}

.search-overlay__form {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
}

.search-overlay__input {
    flex: 1;
    background: none;
    border: none;
    color: #fff !important; 
    font-size: 32px;
    font-weight: 300;
    padding: 10px 0;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-overlay__submit {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-left: 10px;
    transition: opacity 0.2s ease;
}

.search-overlay__submit:hover {
    opacity: 0.7;
}

.search-overlay__submit-icon {
    width: 24px;
    height: 24px;
}

/* Search Results */
.search-overlay__results {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 30px;
}

.search-overlay__results::-webkit-scrollbar {
    width: 6px;
}

.search-overlay__results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.search-overlay__results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.search-overlay__results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Loading State */
.search-overlay__loading {
    color: #fff;
    text-align: center;
    padding: 40px;
    font-size: 16px;
    opacity: 0.7;
}

/* No Results */
.search-overlay__no-results {
    color: #fff;
    text-align: center;
    padding: 40px;
    font-size: 18px;
}

/* Product Results */
.search-overlay__product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.search-overlay__product {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: background 0.2s ease;
    text-decoration: none;
    color: #fff;
}

.search-overlay__product:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-overlay__product-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.search-overlay__product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-overlay__product-title {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
}

.search-overlay__product-price {
    font-size: 32px;
    opacity: 0.8;
}

/* Акционная цена - черный текст на желтом фоне */
.search-overlay__product-price ins {
    text-decoration: none;
}

.search-overlay__product-price ins .woocommerce-Price-amount,
.search-overlay__product-price ins bdi {
    color: #000 !important;
}

.search-overlay__product-price ins .woocommerce-Price-currencySymbol {
    color: #000 !important;
}

/* Старая цена - зачеркнутая белая */
.search-overlay__product-price del {
    opacity: 0.5;
    margin-right: 10px;
}

/* Tablet & Mobile */
@media (max-width: 768px) {
    .search-overlay__content {
        padding: 40px 20px;
    }

    .search-overlay__input {
        font-size: 24px;
    }

    .search-overlay__product {
        flex-direction: column;
        gap: 15px;
    }

    .search-overlay__product-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .search-overlay__header {
        margin-bottom: 30px;
    }

    .search-overlay__input {
        font-size: 20px;
    }
}

.search-overlay__show-all {
    text-align: center;
    padding: 14px 0 4px;
}

.search-overlay__show-all-link {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.search-overlay__show-all-link:hover {
    opacity: 1;
}
