/* Search Modal Styles */

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.search-modal.search-modal--open {
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.search-modal__content {
    width: 1110px;
    height: 60px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.search-modal__rectangle {
    background: #ffffff;
    border-radius: 30px;
    width: 1110px;
    height: 60px;
    position: absolute;
    left: 0px;
    top: 0px;
}

.search-modal__input-wrapper {
    width: calc(100% - 90px);
    height: 60px;
    position: absolute;
    left: 26.38px;
    top: 0px;
}

.search-modal__input {
    color: #8c8f96;
    text-align: left;
    font-family: "Inter-Regular", sans-serif;
    font-size: 24px;
    line-height: 36px;
    letter-spacing: -0.03em;
    font-weight: 400;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    max-width: 1000px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
}

.search-modal__input::placeholder {
    color: #8c8f96;
}

.search-modal__close-icon {
    width: 28.01px;
    height: 31px;
    position: absolute;
    right: 26px;
    top: 14px;
    overflow: visible;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.search-modal__close-icon:hover {
    opacity: 0.7;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    max-width: 1110px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10001;
    display: none;
}

.search-suggestion-item {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #F0F0F0;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: #F6F6F7;
}

.search-suggestion-item svg {
    flex-shrink: 0;
    color: #8C8F96;
}

.search-suggestion-item span {
    font-size: 16px;
    color: #000;
}

.search-suggestion-item--product {
    align-items: center;
    gap: 16px;
}

.search-suggestion__image-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F6F6F7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.search-suggestion__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.search-suggestion__name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.search-suggestion__article {
    font-size: 14px;
    color: #8C8F96;
}

.search-suggestion__price {
    font-size: 16px;
    font-weight: 600;
    color: #0FC998;
}

.search-suggestion-item--all {
    font-weight: 600;
    color: #0FC998;
    gap: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-modal__content {
        width: 90%;
        max-width: 393px;
    }
    
    .search-modal__rectangle {
        width: 100%;
        height: 48px;
        border-radius: 24px;
    }
    
    .search-modal__input-wrapper {
        width: calc(100% - 60px);
        height: 48px;
        left: 20px;
    }
    
    .search-modal__input {
        font-size: 16px;
        line-height: 24px;
        height: 48px;
    }
    
    .search-modal__close-icon {
        width: 20px;
        height: 20px;
        right: 15px;
        top: 14px;
    }
    
    .search-suggestions {
        max-width: 100%;
        top: 58px;
        border-radius: 16px;
        max-height: 300px;
    }
    
    .search-suggestion-item {
        padding: 12px 16px;
        font-size: 14px;
    }

    .search-suggestion__image-wrapper {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .search-suggestion__name {
        font-size: 14px;
    }

    .search-suggestion__article {
        font-size: 12px;
    }

    .search-suggestion__price {
        font-size: 14px;
    }
}

