/* Custom Search Results Styles */
.custom-search-results-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.custom-search-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .custom-search-results {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .custom-search-results {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.search-result-item {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.search-result-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-result-link:hover {
    text-decoration: none !important;
}

.search-result-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.search-result-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.search-result-content {
    padding: 0 10px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.search-result-type {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.search-result-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #333;
}

.search-result-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.search-result-price {
    font-weight: 700;
    color: #000;
    font-size: 16px;
}

.search-result-price .msrp-label {
    font-weight: 400;
    color: #666;
}

.search-result-age,
.search-result-weight {
    color: #666;
    font-size: 11px;
    line-height: 1.4;
}

.search-result-age .small,
.search-result-weight .small {
    font-size: 10px;
}

.search-result-colors {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.color-swatch {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    max-width: 14px;
    min-height: 14px;
    max-height: 14px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
    background-size: cover;
    background-position: center;
    display: inline-block;
}

.color-swatch:hover {
    border-color: #999;
}

.color-swatch.active {
    border-color: #000;
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px #000;
}

.search-load-more {
    text-align: center;
    margin-top: 40px;
}

.search-load-more-btn {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.search-load-more-btn:hover {
    background: #333;
}

.search-load-more-btn:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.custom-search-no-results,
.custom-search-no-query {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

.search-result-item.hidden {
    display: none;
}