/* Search Form Styling */
.menu_zone_search{
    position: relative;
    -webkit-transition: height 0.3s;
    -moz-transition: height 0.3s;
	transition: height 0.3s;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;	
	animation: fadein 1s;
	-moz-animation: fadein 1s;
	-webkit-animation: fadein 1s;
	-o-animation: fadein 1s;
}

.header_zone.shrink .menu_zone_search {
    top:-67px;
}
.search-container {
    position:relative; 
    display:none; 
    width:100%; 
    height:100%; 
    border:0px solid; 
    -moz-animation: fadein 1s; 
    -webkit-animation: fadein 1s; 
    -o-animation: fadein 1s;
    background-color:#fff; padding:20px;
}




.search-container.search-active  {
    
    display:inline-block; 
    background-color:#fff; padding:20px;
}
.search-box-menu {
    
    width: 100%;
    margin: 0;
    padding: 15px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
}

.search-container.search-active .search-box-menu {
    display: inline-block;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Input Wrapper */
.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    width: 60%;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    border-radius: 8px!important;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Search Button */
.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    transform: translate(-100%,0);
}

.search-button:hover svg{
    transform: scale(1.8) rotate(16deg);
    stroke: blue;
    fill: azure;
    transition: all 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.search-button svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

/* Search Icon Button */
.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-icon-btn:hover {
    transform: scale(1.15);
}

.search-icon-btn svg {
    width: 24px;
    height: 24px;
    fill: #333;
    transition: fill 0.3s ease;
}

.search-icon-btn:hover svg {
    fill: #666;
}

/* Search Preview */
.search-preview {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    width: 100vw;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-out;
    margin-left:-22px;
    margin-top:1em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.search-preview-content {
    position: relative;
}

.search-results-header {
    padding: 12px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.search-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    z-index: 10;
}

.search-close-btn:hover {
    color: #333;
}

/* Search Results List */
.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.search-result-price {
    font-size: 12px;
    color: #666;
}

.search-result-info .button {
    align-self: flex-start;
    padding: 6px 12px;
    font-size: 12px;
}

.search-result-empty {
    padding: 20px 15px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-error {
    padding: 20px 15px;
    text-align: center;
    color: #d9534f;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-box-menu {
        padding: 10px 0;
    }

    .search-preview {
        max-height: 300px;
    }

    .search-result-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .search-result-image {
        width: 50px;
        height: 50px;
    }
}
