/* GDmats Complete Search Styles - v2.0 */
.gdmats-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gdmats-search-box {
    position: relative;
    margin-bottom: 30px;
}

#gdmats-search-input {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#gdmats-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), 0 4px 12px rgba(0,0,0,0.15);
}

#gdmats-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 600px;
    background: white;
    border: 1px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.gdmats-autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s;
}

.gdmats-autocomplete-item:hover {
    background-color: #f8f9fa;
}

.gdmats-search-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.gdmats-search-header h2 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.gdmats-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gdmats-product-card {
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gdmats-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.gdmats-product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.gdmats-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gdmats-product-info {
    padding: 20px;
}

.gdmats-product-name {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.gdmats-btn-primary {
    width: 100%;
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gdmats-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.gdmats-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.gdmats-stock-badge.in-stock {
    background: #28a745;
    color: white;
}

.gdmats-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffc107;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .gdmats-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}