/* Luxo Circular Search Styles */

.luxo-search-icon-wrapper {
    display: inline-block;
    cursor: pointer;
}

.luxo-search-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.luxo-search-icon:hover {
    opacity: 0.7;
}

/* Modal */
.luxo-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.luxo-search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.luxo-search-modal-content {
    background: white;
    width: 90%;
    max-width: 1200px;
    border-radius: 8px;
    padding: 40px;
    position: relative;
    animation: slideDown 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.luxo-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.3s ease;
}

.luxo-search-close:hover {
    color: #333;
}

/* Search Container */
.luxo-search-container {
    display: flex;
    align-items: center;
    border: 1px solid #cccccc;
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 20px;
}

#luxoSearchInput {
    border: none!important;
}

.luxo-search-close img {
    width: 20px;
    height: 20px;
    display: block;
    padding: 4px!important;
}

.luxo-search-button svg:hover {
    color: white;
}
   
.luxo-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    padding: 12px;
    color: #333;
}

.luxo-search-button:hover {
    color: #3c3c3c;
    background-color: #e2e2e2;
    -webkit-transition: all 200ms 
ease;
    -moz-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms 
ease;
    border-radius: 100px;
    height: 35px;
}

.luxo-search-input::placeholder {
    color: #ccc;
}

.luxo-search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

#luxoSearchClose {
    border-radius: 100px !important;
    background-color: #e2e2e2;
    margin-top: -11px;
    right: 7px;
}

#luxoSearchClose:hover {
    border-radius: 100px !important;
    background-color: #d1d1d1;
    margin-top: -11px;
    right: 7px;
}

.luxo-search-button:hover {
    color: #333;
}

/* Popular Searches */
.luxo-popular-searches {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.luxo-popular-searches span {
    margin-right: 10px;
}

.luxo-popular-searches a {
    color: #333;
    text-decoration: underline;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.luxo-popular-searches a:hover {
    color: #000;
}

/* Search Results */
.luxo-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.luxo-product-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.luxo-product-item:hover {
    transform: translateY(-5px);
}

.luxo-product-image-wrapper {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 100%;
}

.luxo-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.luxo-product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.luxo-product-sku {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.luxo-product-price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.luxo-product-price del {
    color: #999;
    font-weight: normal;
    margin-right: 8px;
    font-size: 14px;
}

.luxo-product-price ins {
    text-decoration: none;
    color: #155035;
}

/* Loading */
.luxo-search-loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.luxo-search-loading.active {
    display: block;
}

.luxo-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* More Results Button */
.luxo-more-results {
    text-align: center;
    margin-top: 30px;
}

.luxo-more-results button {
    background: #1a5f3f;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.luxo-more-results button:hover {
    background: #144a32;
}

/* Responsive */
@media (max-width: 768px) {
    .luxo-search-modal-content {
        padding: 20px;
        width: 95%;
        margin-top: 20px;
    }
    
    .luxo-search-results {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .luxo-search-input {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .luxo-search-results {
        grid-template-columns: repeat(2, 1fr);
    }
}