/* ==========================================
   Artimano WP Advanced Interactivity Stylesheet
   ========================================== */

/* AJAX Live Search Results dropdown */
.artimano-ajax-search-container {
    position: relative;
    width: 100%;
}

.artimano-ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0b0f19;
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.5rem;
    display: none;
}

.artimano-ajax-search-results.active {
    display: block;
}

/* Modals: Quick View & Compare */
.artimano-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.artimano-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.artimano-modal-content {
    background-color: #0b0f19;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    max-width: 900px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.artimano-modal.active .artimano-modal-content {
    transform: scale(1);
}

/* Slide panels: Wishlist & Compare Quick-look */
.artimano-slide-panel {
    position: fixed;
    top: 0;
    right: -400px;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background-color: #0b0f19;
    border-left: 1px solid #1e293b;
    box-shadow: -25px 0 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
}

.artimano-slide-panel.active {
    right: 0;
}

/* Quick utility helpers */
.wishlist-btn.active svg,
.compare-btn.active svg {
    fill: #f59e0b;
    stroke: #f59e0b;
}

.compare-matrix-table th,
.compare-matrix-table td {
    border-color: #1e293b !important;
}
