/* ========================================
    CART ICON & BADGE
   ======================================== */
.wv-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
}

.wv-cart-icon a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--menu-text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.header-outer.transparent:not(.sticky) .wv-cart-icon a {
    color:  white;
}

.header-outer .wv-cart-icon a:hover {
    color: var(--accent, #ff6b35);
}

.wv-cart-badge {
	position: absolute;
	top: 0;
	right: -1px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--accent, #ff6b35);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ========================================
    SEARCH BUTTON
   ======================================== */
.wv-search-btn {
    background: none;
    border: none;
    padding: 8px;
    margin-left: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: var(--menu-text-primary);
    transition: color 0.2s;
}

.header-outer.transparent:not(.sticky) .wv-search-btn {
    color:  white;
}

.header-outer .wv-search-btn:hover {
    color: var(--accent, #ff6b35);
}

/* ========================================
    SEARCH OVERLAY POPUP
   ======================================== */
.wv-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    backdrop-filter: blur(4px);
}

.wv-search-overlay[hidden] {
    display: none;
}

.wv-search-modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: searchSlideDown 0.3s ease-out;
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wv-search-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.wv-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    padding: 8px;
    color: #333;
}

.wv-search-input::placeholder {
    color: #999;
}

.wv-search-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    transition: color 0.2s;
}

.wv-search-close:hover {
    color: #000;
}

.wv-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    max-height: calc(80vh - 120px);
}

.wv-search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.wv-search-result-item:hover {
    background: #f5f5f5;
}

.wv-search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-inline-end: 16px;
    flex-shrink: 0;
}

.wv-search-result-info {
    flex: 1;
}

.wv-search-result-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.wv-search-result-price {
    font-size: 14px;
    color: #666;
}

.wv-search-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

.wv-search-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 15px;
}

/* Dark mode support for search
@media (prefers-color-scheme: dark) {
    .wv-search-modal {
        background: #1a1a1a;
        color: #fff;
    }
    
    .wv-search-header {
        border-bottom-color: #333;
    }
    
    .wv-search-input {
        color: #fff;
        background: transparent;
    }
    
    .wv-search-input::placeholder {
        color: #666;
    }
    
    .wv-search-result-item:hover {
        background: #2a2a2a;
    }
    
    .wv-search-result-title {
        color: #fff;
    }
    
    .wv-search-result-price {
        color: #999;
    }
} */

/* Mobile responsive */
@media (max-width: 768px) {
    .wv-search-overlay {
        padding-top: 20px;
    }
    
    .wv-search-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .wv-search-input {
        font-size: 16px;
    }
}
