.custom-product-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
    position: relative;
}
.search-message {
    position: absolute;
    left: 0;
    top: -22px;
    color: #6d241d;
}
#product-search-input {
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-width: 100%;
}

#product-search-input:focus {
    outline: none;
    border-color: #6d241d;
}

#product-search-button,
#clear-search,
.pagination-btn {
    padding: 12px 20px;
    background: #6d241d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

#product-search-button:hover,
#clear-search:hover,
.pagination-btn:hover {
    background: #000;
}

#clear-search {
    background: #6d241d;
}

#clear-search:hover {
    background: #000;
}

.products-grid {
    display: inline-block;
    /*grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));*/
    /*gap: 20px;*/
    width: 100%;
    margin-bottom: 30px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 10px;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #6c757d;
    font-style: italic;
}

.product-info {
    padding: 20px;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.product-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-link {
    display: inline-block;
    padding: 8px 15px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.product-link:hover {
    background: #218838;
}

.product-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination-btn.active {
    background: #000;
    font-weight: bold;
}

#search-loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    padding: 15px 25px;
    background: #eee9e0;
    border-radius: 5px;
    color: #6d243a;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: fit-content;
    margin: 0 auto;
}

.no-products-found {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}
.product-card {
    display: flex;
}

.product-card .product-image {
    height: auto;
    width: 33.33%;
}

.product-card .product-info {
    width: 66%;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}
.historical-batches-gallery {
    display: flex;
}

.historical-batches-gallery a.historical-batch-image {
    background: rgb(109 36 29 / 10%);
    border: solid 4px #eee9e0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 10%;
}
.custom-field {
    background: #EEE9E0;
    float: left;
    width: 50%;
    margin-bottom: 0px;
    padding: 15px 10px;
    border-bottom: solid 1px #ccc;
}

.product-custom-fields {
    background: #EEE9E0;
    display: inline-block;
    width: 100%;
    padding: 20px;
}

.custom-field:last-child {
    /*border: 0;*/
    width: 100%;
}

.custom-field span.field-label {
    color: #6d241d;
    min-width: 120px;
    display: inline-block;
}
.custom-field:last-child span.field-label{
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 16px;
}

.historical-batches-gallery {
    align-items: center;
    justify-content: center;
}

.full_field {
    width: 100% !important;
}
.product-card h3.product-title {
    text-align: center;
    margin: 0 0 10px;
    font-size: 22px;
    margin-bottom: 20px;
}

.custom-field.no_data {
    text-align: center;
    width: 100% !important;
}
.coa_link_hplc a.coa-link {
    text-decoration: underline;
    padding-left: 10px;
}
.custom-field.coa_link_hplc {
    display: flex;
    flex-flow: row;
    border-bottom: solid 0px #ccc;
}

.custom-field:last-child span.field-label {
    margin: 0;
    width: auto;
    text-align: left;
}
/*.custom-field.border-0 {*/
/*    border: 0 !important;*/
/*}*/

.spinner_wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    max-height: 93%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    left: 0;
    right: 0;
}
.spinner_wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgb(0 0 0 / 10%);
    z-index: 0;
    filter: blur(2px);
    cursor: no-drop;
}

.spinner {
    position: relative;
    z-index: 1;
}
.custom-field.border-0 a {
    padding: 10px 10px 0;
    text-decoration: underline;
}
.reaptor-item {
    display: inline-block;
    border-bottom: solid 1px #6d221e;
}

.reaptor-item:last-child {
    border: 0;
}
/********* Responsive **********/
@media (max-width: 992px) {
    .custom-field span.field-label {
        min-width: 100%;
    }
    .custom-field.coa_link_hplc {
    flex-flow: column;
    }
    .coa_link_hplc a.coa-link {
    padding-left: 0px;
    }
}
@media (max-width: 768px) {
    .historical-batches-gallery a.historical-batch-image {
        max-width: 15%;
    }
    #product-search-input {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
    flex-flow: column;
    }
    .product-card .product-image {
        width: 100%;
    }
    .product-card .product-info {
        width: 100%;
    }
}
@media (max-width: 767px) {

    .custom-field {
        width: 100%;
    }
    .historical-batches-gallery a.historical-batch-image {
        max-width: 20%;
    }
    .custom-field.coa_link_hplc {
    flex-flow: column;
    }
    .coa_link_hplc a.coa-link {
    padding-left: 0;
    }
    .spinner_wrapper {
    max-height: 96%;    
    }
    .product-info,
    .product-custom-fields{
        padding: 20px 10px;
    }
    #product-search-input {
    font-size: 14px;
    }
    .spinner_wrapper::after {
    max-width: 90%;
    margin: 0 auto;
        left: 0;
        right: 0;
    }
    .product-card h3.product-title {
    margin: 0 0 10px;
    }
}