/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.lb-search-container {
    max-width: 1270px;
    margin: 0 auto;
}

.lb-search-content {
    padding: 0 1rem;
    margin: 4rem 0;
}

.lb-search-form {
    margin-bottom: 3rem;
}

.lb-search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.lb-search-input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

#lb-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    position: relative;
    animation: borderGlow 3s linear infinite;
    margin-bottom: 0;
}

@keyframes borderGlow {
    0% {
        border-color: #C5B6E0;
        box-shadow: 0 0 10px rgba(197, 182, 224, 0.5);
    }

    25% {
        border-color: #E7B0C9;
        box-shadow: 0 0 10px rgba(231, 176, 201, 0.5);
    }

    50% {
        border-color: #B6D1E0;
        box-shadow: 0 0 10px rgba(182, 209, 224, 0.5);
    }

    75% {
        border-color: #F5C4B0;
        box-shadow: 0 0 10px rgba(245, 196, 176, 0.5);
    }

    100% {
        border-color: #C5B6E0;
        box-shadow: 0 0 10px rgba(197, 182, 224, 0.5);
    }
}

#lb-search-input:focus {
    outline: none;
    animation: none;
    border-color: #5C685B;
    box-shadow: 0 0 15px rgba(92, 104, 91, 0.3);
}

#lb-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    background: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    background: #f7f7f7;
    color: black;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

#lb-search-button:hover {
    background: #e9e9e9;
    color: black;
}

.lb-search-examples {
    margin-top: 3rem;
}

.lb-search-examples h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.lb-search-example {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.lb-search-example:hover {
    background: #e9ecef;
    border-color: #4a5449;
    transform: translateY(-2px);
}

.lb-search-results {
    margin-top: 20px;
    width: 100%;
}

.lb-search-results h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.lb-search-section {
    position: relative;
    background: #fff;
    padding: 20px 50px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.lb-search-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.75rem;
    font-weight: 500;
}

.lb-search-nav-button {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    height: auto;
    background: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    margin: 0;
}

.lb-search-nav-button.prev {
    left: 0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.lb-search-nav-button.next {
    right: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.lb-search-nav-button svg {
    width: 20px;
    height: 20px;
    fill: #666;
    overflow: visible !important;
}

.lb-search-nav-button:disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

.lb-search-results-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.lb-search-results-container {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    width: max-content;
}

.lb-search-result-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 450px;
}

.lb-search-result-item:hover {
    transform: translateY(-5px);
}

.lb-search-result-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.lb-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-search-result-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.lb-search-result-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lb-search-result-title {
    color: #333;
    margin: 0 0 12px 0;
    font-size: 20px !important;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.lb-search-result-description {
    color: #3C3C3C;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.lb-search-result-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #5C685B;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: center;
}

.lb-search-result-button span {
    color: white !important;
}

.lb-search-result-button:hover {
    background-color: #4a5449;
}

/* Skeleton Loading Styles */
.lb-search-skeleton {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    width: max-content;
}

.lb-search-skeleton-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 450px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-description {
    height: 60px;
    width: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 20px;
    border-radius: 4px;
}

.skeleton-button {
    height: 36px;
    width: calc(100% - 40px);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    border-radius: 6px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.lb-search-error-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.lb-error-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lb-error-card:hover {
    transform: translateY(-5px);
}

.lb-error-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.lb-error-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-error-card-content {
    padding: 2rem;
    text-align: center;
}

.lb-error-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.lb-error-card-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #5C685B;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.lb-error-card-button:hover {
    background-color: #4a5449;
}

.lb-search-no-results {
    text-align: center;
    padding: 2rem 0;
}

.lb-search-no-results-hint {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lb-search-no-results h3 {
    color: #1a1a1a;
    font-size: 1.75rem;
    padding: 0 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.lb-search-no-results p {
    padding: 0 1rem;
}

.lb-search-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
}

.lb-search-product-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lb-search-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.lb-search-product-image {
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.lb-search-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-search-product-content {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
}

.lb-search-product-content h4 {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.lb-search-product-content p {
    color: #666;
    font-size: 0.95rem;
    padding: 0;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.lb-search-char-count {
    width: 100%;
    text-align: left;
    color: #666;
    font-size: 0.85rem;
    padding-left: 1.5rem;
}

.lb-search-results-title {
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .lb-search-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .lb-search-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .lb-search-error-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .lb-search-skeleton-item {
        width: 280px;
        height: 420px;
    }

    .skeleton-image {
        height: 180px;
    }

    .lb-search-nav-button {
        display: none;
    }

    .lb-search-section {
        padding: 20px 10px;
    }
}

@media (max-width: 576px) {
    .lb-search-products-grid {
        grid-template-columns: 1fr;
    }

    .lb-search-content {
        padding: 0;
    }

    .lb-search-form {
        padding: 0 1rem;
    }

    .lb-search-results-title {
        padding: 0 1rem;
    }
}