/**
 * Elementor Search Widget Styles
 * Modern and responsive search widget design
 */

/* Base Widget Styles */
.novoshop-elementor-search-box {
    width: 100%;
}

.novoshop-elementor-search-box .novoshop-search-form {
    position: relative;
}

.novoshop-elementor-search-box .novoshop-search-wrapper {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: all 0.3s ease;
}

.novoshop-elementor-search-box .novoshop-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.novoshop-elementor-search-box .novoshop-search-category {
    padding: 15px 20px;
    border: none;
    font-size: 14px;
    outline: none;
    background: #f5f5f5;
    cursor: pointer;
    min-width: 150px;
}

.novoshop-elementor-search-box .novoshop-search-button {
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.novoshop-elementor-search-box .novoshop-search-button i {
    font-size: 18px;
}

/* Style 1 - Classic */
.novoshop-elementor-search-box.style1 .novoshop-search-wrapper {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.novoshop-elementor-search-box.style1 .novoshop-search-input {
    background: transparent;
}

.novoshop-elementor-search-box.style1 .novoshop-search-button {
    background: var(--primary-color, #ff6600);
    color: #fff;
}

.novoshop-elementor-search-box.style1 .novoshop-search-button:hover {
    background: var(--primary-dark, #e55a00);
}

.novoshop-elementor-search-box.style1:focus-within .novoshop-search-wrapper {
    border-color: var(--primary-color, #ff6600);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Style 2 - Modern */
.novoshop-elementor-search-box.style2 .novoshop-search-wrapper {
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.novoshop-elementor-search-box.style2 .novoshop-search-input {
    background: transparent;
    padding: 18px 30px;
}

.novoshop-elementor-search-box.style2 .novoshop-search-button {
    background: linear-gradient(135deg, var(--primary-color, #ff6600), var(--primary-dark, #e55a00));
    color: #fff;
    border-radius: 50px;
    padding: 18px 40px;
}

.novoshop-elementor-search-box.style2 .novoshop-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.3);
}

.novoshop-elementor-search-box.style2:focus-within .novoshop-search-wrapper {
    box-shadow: 0 6px 30px rgba(255, 102, 0, 0.15);
    transform: translateY(-2px);
}

/* Style 3 - Minimal */
.novoshop-elementor-search-box.style3 .novoshop-search-wrapper {
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    background: transparent;
}

.novoshop-elementor-search-box.style3 .novoshop-search-input {
    background: transparent;
    padding: 15px 10px;
}

.novoshop-elementor-search-box.style3 .novoshop-search-button {
    background: transparent;
    color: var(--primary-color, #ff6600);
    padding: 15px 20px;
}

.novoshop-elementor-search-box.style3 .novoshop-search-button:hover {
    color: var(--primary-dark, #e55a00);
}

.novoshop-elementor-search-box.style3:focus-within .novoshop-search-wrapper {
    border-bottom-color: var(--primary-color, #ff6600);
}

/* Style 4 - Gradient */
.novoshop-elementor-search-box.style4 .novoshop-search-wrapper {
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3px;
}

.novoshop-elementor-search-box.style4 .novoshop-search-input {
    background: #fff;
    border-radius: 12px 0 0 12px;
}

.novoshop-elementor-search-box.style4 .novoshop-search-button {
    background: transparent;
    color: #fff;
    font-weight: 700;
}

.novoshop-elementor-search-box.style4 .novoshop-search-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.novoshop-elementor-search-box.style4:focus-within .novoshop-search-wrapper {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Live Search Dropdown */
.novoshop-elementor-search-box .search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.novoshop-elementor-search-box .search-suggestions-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.novoshop-elementor-search-box .suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s ease;
}

.novoshop-elementor-search-box .suggestion-item:hover {
    background: #f8f9fa;
}

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

.novoshop-elementor-search-box .suggestion-item.loading,
.novoshop-elementor-search-box .suggestion-item.no-results,
.novoshop-elementor-search-box .suggestion-item.error {
    justify-content: center;
    padding: 30px 20px;
}

.novoshop-elementor-search-box .suggestion-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.novoshop-elementor-search-box .suggestion-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.novoshop-elementor-search-box .suggestion-content {
    flex: 1;
}

.novoshop-elementor-search-box .suggestion-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.novoshop-elementor-search-box .suggestion-price {
    font-size: 14px;
    color: var(--primary-color, #ff6600);
    font-weight: 700;
}

.novoshop-elementor-search-box .suggestion-type {
    font-size: 12px;
    color: #999;
}

.novoshop-elementor-search-box .view-all-results {
    display: block;
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    color: var(--primary-color, #ff6600);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    border-radius: 0 0 12px 12px;
}

.novoshop-elementor-search-box .view-all-results:hover {
    background: #e8e8e8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .novoshop-elementor-search-box .novoshop-search-category {
        min-width: 100px;
        font-size: 13px;
        padding: 15px 10px;
    }

    .novoshop-elementor-search-box .novoshop-search-input {
        padding: 15px;
        font-size: 14px;
    }

    .novoshop-elementor-search-box .novoshop-search-button {
        padding: 15px 20px;
    }

    .novoshop-elementor-search-box .novoshop-search-button span {
        display: none;
    }

    .novoshop-elementor-search-box.style2 .novoshop-search-button {
        padding: 18px 25px;
    }
}

@media (max-width: 480px) {
    .novoshop-elementor-search-box .novoshop-search-wrapper {
        flex-wrap: wrap;
    }

    .novoshop-elementor-search-box .novoshop-search-category {
        width: 100%;
        border-radius: 8px 8px 0 0;
    }

    .novoshop-elementor-search-box .novoshop-search-input {
        border-radius: 0;
    }

    .novoshop-elementor-search-box .novoshop-search-button {
        border-radius: 0 0 8px 8px;
    }

    .novoshop-elementor-search-box.style2 .novoshop-search-wrapper {
        border-radius: 15px;
    }
}

/* Loading Animation */
.novoshop-elementor-search-box .suggestion-item.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color, #ff6600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RTL Support */
[dir="rtl"] .novoshop-elementor-search-box .novoshop-search-button {
    flex-direction: row-reverse;
}

[dir="rtl"] .novoshop-elementor-search-box .suggestion-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .novoshop-elementor-search-box .suggestion-item.loading::after {
    margin-right: 0;
    margin-left: 10px;
}


