/* Search Panel Styles */
.search-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-panel.active {
    pointer-events: all;
    opacity: 1;
}

.search-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-panel.active .search-panel-overlay {
    opacity: 1;
}

.search-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    will-change: transform;
}

.search-panel.active .search-panel-content {
    transform: translateX(0);
}

.search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.search-panel-header h2 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #0c6e31;
    margin: 0;
}

.search-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: #e0e0e0;
    color: #0c6e31;
}

.search-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

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

.search-input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #0c6e31;
    box-shadow: 0 0 0 3px rgba(12, 110, 49, 0.1);
}

/* Search Suggestions */
.search-suggestions {
    margin-bottom: 35px;
}

.search-suggestions h3 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background 0.2s ease, color 0.2s ease;
}

.suggestion-item:hover {
    background: #0c6e31;
    color: #ffffff;
}

.suggestion-item i {
    font-size: 14px;
    opacity: 0.7;
}

/* Recommended Products */
.search-recommended h3 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommended-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.recommended-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease;
}

.recommended-product-card:hover {
    transform: translateY(-2px);
}

.recommended-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.recommended-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    will-change: transform;
}

.recommended-product-card:hover .recommended-product-image img {
    transform: scale(1.03);
}

.new-arrival-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: transparent;
    color: #000000;
    font-size: 11px;
    font-weight: 600;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    z-index: 2;
}

.recommended-product-add {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    z-index: 2;
    will-change: opacity;
}

.recommended-product-card:hover .recommended-product-add {
    opacity: 1;
}

.recommended-product-add:hover {
    background: #000000;
    color: #ffffff;
}

.recommended-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recommended-product-name {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
    .search-panel-content {
        max-width: 100%;
    }
    
    .search-panel-header {
        padding: 20px;
    }
    
    .search-panel-body {
        padding: 20px;
    }
    
    .recommended-products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .recommended-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .recommended-product-name {
        font-size: 13px;
    }
    
    .recommended-product-price {
        font-size: 14px;
    }
    
    .new-arrival-badge {
        font-size: 9px;
        top: 8px;
        left: 8px;
    }
}
