.woo-search-widget-container-2de965cf {
    display: inline-block;
}

.woo-search-trigger {
    background: transparent;
    border: none;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

.woo-search-trigger:hover {
    transform: scale(1.1);
}

.woo-search-trigger:active {
    transform: scale(0.95);
}

.woo-search-trigger:focus {
    outline: none;
}

/* Fullscreen Overlay Styling */
.woo-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(18, 18, 22, 0.98) 0%, rgba(10, 10, 12, 0.99) 100%);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.admin-bar .woo-search-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .woo-search-overlay {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.woo-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Close Button */
.woo-search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
    z-index: 1000000;
}

.woo-search-close:hover {
    background: rgba(255, 50, 50, 0.15);
    border-color: rgba(255, 50, 50, 0.3);
    transform: rotate(90deg);
}

.woo-search-close svg {
    width: 22px;
    height: 22px;
}

/* Inner Container */
.woo-search-inner {
    width: 90%;
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.woo-search-overlay.is-active .woo-search-inner {
    transform: translateY(0);
}

/* Search input wrapper */
.woo-search-input-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.woo-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 38px;
    font-weight: 300;
    padding: 20px 0;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

.woo-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.woo-search-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff3366, #ff9933);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.woo-search-input:focus ~ .woo-search-line {
    width: 100%;
    left: 0;
}

/* Search Results Grid */
.woo-search-results-container {
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
    padding-right: 10px;
}

/* Custom Scrollbar for Results */
.woo-search-results-container::-webkit-scrollbar {
    width: 6px;
}
.woo-search-results-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.woo-search-results-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.woo-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.woo-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

.woo-search-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    color: #ffffff;
}

.woo-search-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
}

.woo-search-item-info {
    flex-grow: 1;
    min-width: 0;
}

.woo-search-item-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.woo-search-item-price {
    font-size: 14px;
    color: #2ecc71;
    font-weight: 600;
}

.woo-search-item-price del {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-right: 5px;
    font-weight: normal;
}

.woo-search-item-price ins {
    text-decoration: none;
}

/* Spinner Modern styling */
.woo-search-spinner {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 40px auto;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0.0); }
    50% { transform: scale(1.0); }
}

@media screen and (max-width: 600px) {
    .woo-search-input {
        font-size: 24px;
    }
    .woo-search-results {
        grid-template-columns: 1fr;
    }
    .woo-search-close {
        top: 20px;
        right: 20px;
    }
}
