/* CSS Maquindiana Style */
.woo-search-icon-wrapper {
    display: inline-block;
}

.woo-search-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.woo-search-icon:hover {
    transform: scale(1.1);
    color: #ff6b35;
}

.woo-search-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
}

.woo-search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.woo-search-modal-content {
    background-color: #1a1a1a;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 10px 50px rgba(255, 107, 53, 0.2);
    border: 1px solid #2a2a2a;
}

.woo-search-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.woo-search-close:hover {
    color: #ff6b35;
    transform: rotate(90deg);
}

.woo-search-container {
    padding: 35px;
}

.woo-search-container h2 {
    margin: 0 0 25px 0;
    font-size: 26px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woo-search-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

#woo-search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 16px;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #0f0f0f;
    color: #fff;
}

#woo-search-input:focus {
    outline: none;
    border-color: #ff6b35;
    background-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#woo-search-input::placeholder {
    color: #666;
}

.woo-search-input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

#woo-search-results {
    margin-top: 25px;
}

.woo-search-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.woo-search-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.woo-search-product {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    background-color: #0f0f0f;
}

.woo-search-product:hover {
    background-color: #1a1a1a;
    border-color: #ff6b35;
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}

.woo-search-product-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #2a2a2a;
}

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

.woo-search-product-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.4;
}

.woo-search-product-price {
    font-size: 20px;
    color: #ff6b35;
    font-weight: 700;
    margin-bottom: 6px;
}

.woo-search-product-stock {
    font-size: 13px;
    color: #4caf50;
    font-weight: 500;
}

.woo-search-product-stock.out-of-stock {
    color: #f44336;
}

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

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

@media (max-width: 768px) {
    .woo-search-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .woo-search-container {
        padding: 25px 20px;
    }
    
    .woo-search-container h2 {
        font-size: 22px;
    }
    
    .woo-search-product {
        flex-direction: row;
        gap: 15px;
        padding: 15px;
    }
    
    .woo-search-product-image {
        width: 70px;
        height: 70px;
    }
    
    .woo-search-product-title {
        font-size: 15px;
    }
    
    .woo-search-product-price {
        font-size: 18px;
    }
}