.hidroplus-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hidroplus-search-modal.active {
    display: flex;
}

.hsm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.hsm-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: hsm-slide-down 0.3s ease-out;
}

@keyframes hsm-slide-down {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hsm-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hsm-close {
    background: none !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer;
    padding: 8px !important;
    display: flex;
    transition: all 0.2s;
    border-radius: 50%;
}

.hsm-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
}

.hsm-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 15px;
    transition: all 0.2s;
    flex-grow: 1;
}

.hsm-input-wrapper:focus-within {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

.hsm-icon-search {
    color: #64748b;
    margin-right: 12px;
    display: flex;
}

#hsm-input {
    width: 100%;
    border: none;
    padding: 15px 0;
    font-size: 18px;
    outline: none;
    color: #1e293b;
    background: transparent;
}

#hsm-input::placeholder {
    color: #94a3b8;
}

.hsm-clear {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer;
    padding: 5px !important;
    display: flex;
    transition: color 0.2s !important;
}

.hsm-clear:hover {
    color: #64748b !important;
}

.hsm-body {
    min-height: 200px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 30px;
}

/* Scrollbar */
.hsm-body::-webkit-scrollbar {
    width: 6px;
}

.hsm-body::-webkit-scrollbar-track {
    background: transparent;
}

.hsm-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.hsm-initial-state {
    text-align: center;
    padding: 40px 20px;
}

.hsm-big-icon {
    margin-bottom: 20px;
}

.hsm-initial-state h3 {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 500;
}

.hsm-initial-state p {
    color: #64748b;
    font-size: 16px;
}

.hsm-results-count {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.hsm-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hsm-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.hsm-item:hover {
    background: #f8fafc;
}

.hsm-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background: #f1f5f9;
}

.hsm-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsm-item-info {
    flex-grow: 1;
}

.hsm-item-title {
    display: block;
    font-size: 16px;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 4px;
}

.hsm-item-cats {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.hsm-item-price {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
    margin-left: 15px;
}

.hsm-item-price ins {
    text-decoration: none;
}

.hsm-item-price del {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
    margin-right: 5px;
}

/* Loading Spinner */
.hsm-loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.hsm-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid #0f172a;
    border-radius: 50%;
    animation: hsm-spin 0.8s linear infinite;
}

@keyframes hsm-spin {
    to {
        transform: rotate(360deg);
    }
}