/* Search UI - extracted from style.css */

/* ==========================================================================
   Search Section - סרגל חיפוש
   ========================================================================== */

.search-section {
    background: #ffffff;
    padding: 0 16px 16px;
}

.search-container {
    max-width: 100%;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
}

.search-input-wrapper:focus-within {
    border-color: #e0e0e0;
    outline: none;
}

.search-icon {
    color: #999;
    font-size: 0.9rem;
    margin-left: 8px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.95rem;
    color: #333;
    outline: none !important;
    box-shadow: none !important;
    text-align: right;
    -webkit-appearance: none;
}

.search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.search-input::placeholder {
    color: #999;
}

.search-clear-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 6px;
    margin-right: -6px;
}

.search-clear-btn:hover {
    color: #666;
}

/* Header Search Button */
.header-search-btn {
    display: flex;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.3rem;
    width: auto;
    padding: 8px;
}

.header-search-btn:hover {
    background: transparent;
    color: var(--primary-dark);
}

/* Header Sliding Search Panel */
.header-search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 12px 16px;
    padding-top: 68px; /* גובה ההדר + padding */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999; /* מתחת להדר */
}

.header-search-panel.open {
    transform: translateY(0);
}

.header-search-panel-inner {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
}

.header-search-panel-icon {
    color: #999;
    font-size: 0.9rem;
    margin-left: 8px;
}

.header-search-panel-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.95rem;
    color: #333;
    outline: none !important;
    box-shadow: none !important;
    text-align: right;
    -webkit-appearance: none;
}

.header-search-panel-input::placeholder {
    color: #999;
}

.header-search-panel-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.header-search-panel-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
    font-size: 1rem;
}

.header-search-panel-close:hover {
    color: #666;
}

/* Header Search Results */
.header-search-results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
}

.header-search-results:empty {
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    border: 1px solid #f0f0f0;
    margin-bottom: 6px;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
    transition: background 0.15s;
}

.search-results-header:hover {
    background: #f8f9fa;
}

.search-results-header-action {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.search-results-header-action i {
    margin-right: 4px;
}

/* ==========================================================================
   Sticky Top Bar - סרגל עליון סטיקי
   ========================================================================== */

.sticky-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    z-index: 999;
    transition: all 0.3s ease;
}

.sticky-top-bar.clickable {
    cursor: pointer;
    border-bottom: 1px solid #1a1a2e;
}
}

/* Sticky bar is always visible */

.sticky-top-bar-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-top-bar-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-top-bar-contact-text {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.sticky-top-bar-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sticky-top-bar-whatsapp:hover {
    background: #1fb855;
    transform: scale(1.1);
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    animation: taglineSlide 0.8s ease-out 0.3s both;
}

.hero-tagline .heart-icon {
    color: #ef4444;
    font-size: 0.85rem;
    margin: 0 4px;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

@keyframes taglineSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Sticky Search Bar - פס חיפוש סטיקי
   ========================================================================== */

.sticky-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 12px 16px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sticky-search-bar.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-search-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

/* Gift Icon & Text */
.sticky-search-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sticky-gift-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-gift-icon i {
    font-size: 20px;
    color: white;
}

.sticky-search-text {
    text-align: right;
    display: none;
}

.sticky-search-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.sticky-search-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Controls */
.sticky-search-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 500px;
}

.sticky-search-select {
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    min-width: 100px;
    outline: none;
}

.sticky-search-input-wrap {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 0 14px;
    height: 40px;
    gap: 6px;
    flex: 1;
    min-width: 100px;
}

.sticky-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    width: 100%;
    text-align: center;
}

.sticky-search-input::placeholder {
    color: #9ca3af;
}

.sticky-search-currency {
    color: #3b82f6;
    font-weight: 700;
    font-size: 14px;
}

.sticky-search-btn {
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 20px;
    background: #3b82f6;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sticky-search-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.sticky-search-btn:active {
    transform: scale(0.98);
}

/* Responsive */
@media (min-width: 600px) {
    .sticky-search-text {
        display: block;
    }
}

@media (max-width: 500px) {
    .sticky-search-bar {
        padding: 10px 12px;
    }
    
    .sticky-search-inner {
        gap: 8px;
    }
    
    .sticky-gift-icon {
        width: 36px;
        height: 36px;
    }
    
    .sticky-gift-icon i {
        font-size: 16px;
    }
    
    .sticky-search-select {
        height: 36px;
        min-width: 80px;
        font-size: 12px;
        padding: 0 10px;
    }
    
    .sticky-search-input-wrap {
        height: 36px;
        min-width: 80px;
        padding: 0 10px;
    }
    
    .sticky-search-input {
        font-size: 12px;
    }
    
    .sticky-search-btn {
        height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }
    
    .sticky-search-btn span {
        display: none;
    }
}
