/* Search Results Page styles — loaded only on the search page (php_self === 'search') via th_elasticsearch::hookHeader(). */
body.search #columns{
    margin-bottom: 96px;
}

@media (max-width: 1440px) {
    body.search #columns{
        margin-bottom: 20px;
    }
}

.thsrp_heading{
    color: #890A0A;
    font-family: Exo;
    font-size: 26px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 10px;
}

.thsrp_heading.thsrp_products_heading{
    margin-top: 20px;
    margin-bottom: 20px;
}

/*Categ pills section start*/
.thsrp_pills_section{
    padding-bottom: 20px;
}
.thsrp_pills_section .thsrp_pills{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
}
.thsrp_pills_section .thsrp_pills .thsrp_pill{
    color: #890A0A;
    text-align: center;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    height: 30px;
    padding: 5px 10px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    background: #FFF;
    transition: all 0s;
}
.thsrp_pills_section .thsrp_pills .thsrp_pill:hover{
    color: #fff;
    background: linear-gradient(89deg, #800000 0%, #D78A23 100%);
}
    /*Categ pills section finish*/

/* ===== SEARCH SUMMARY BAR — START ===== */
.content_sortPagiBar {
    width: 100%;
    min-height: 51px;
    box-sizing: border-box;
    margin: 12px 0 20px;
    padding: 13px 20px;
    border: 1px solid #DDD0B8;
    border-radius: 8px;
    background: #FFFFFF;
}

#search.search #center_column .content_sortPagiBar .sortPagiBar.block,
#search.search #old_center_column .content_sortPagiBar .sortPagiBar.block {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.content_sortPagiBar .sortPagiBar .thsrp_summary_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 24px;
    margin: 0;
}

.content_sortPagiBar .sortPagiBar .thsrp_summary_row > div {
    float: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

.content_sortPagiBar .inner.pull-right {
    float: none;
}

#search #center_column .content_sortPagiBar .header-count-result h1,
#search #old_center_column .content_sortPagiBar .header-count-result h1 {
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: #3A2A1E !important;
    font-family: Roboto, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
}

#search #center_column .content_sortPagiBar .header-count-result span,
#search #old_center_column .content_sortPagiBar .header-count-result span {
    display: inline-block;
    margin: 0 !important;
    padding: 0 !important;
    color: #78674E !important;
    font-family: Roboto, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 100% !important;
}

#search #center_column .content_sortPagiBar .header-count-result .thsrp_count_number,
#search #old_center_column .content_sortPagiBar .header-count-result .thsrp_count_number {
    color: #3A2A1E !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.content_sortPagiBar .sortPagiBar .thsrp_summary_row > .pull-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.content_sortPagiBar .sortPagiBar .thsrp_summary_row > .pull-right .inner {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.content_sortPagiBar .categorySearchSortForm {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    float: none;
}

.content_sortPagiBar .categorySearchSortForm .select {
    margin: 0;
    padding: 0;
}

.content_sortPagiBar .thsrp_sort_label {
    margin: 0;
    padding: 0;
    color: #756756;
    font-family: Roboto, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    white-space: nowrap;
}

.content_sortPagiBar #categorySearchFormSelectSort {
    width: 200px;
    height: 34px;
    max-height: 36px;
    box-sizing: border-box;
    padding: 0 44px 0 24px;
    border: 1px solid #DDD0B8;
    border-radius: 8px;
    outline: none;
    background-color: #FAF6EF;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L7 6.5L12.5 1.5' stroke='%234A3020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 8px;
    color: #4A3020;
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 34px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.content_sortPagiBar #categorySearchFormSelectSort:hover,
.content_sortPagiBar #categorySearchFormSelectSort:focus {
    border-color: #CDBD9F;
    background-color: #F4EDE2;
}
/* ===== SEARCH SUMMARY BAR — END ===== */


/*Load more start*/
#product_list .infinitescroll-load-more{
    margin-bottom: 10px;
}
p.infinitescroll-bottom-message .a_button__span{
    width: 230px;
    color: #B95410;
    font-family: "Exo";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: capitalize;
    border-radius: 4px;
    border: 1px solid #B95410;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.25);
    background: transparent;
    padding: 7px 0;
}
p.infinitescroll-bottom-message .a_button__span:hover{
    color: #fff;
    background: var(--Fiery-Flame, linear-gradient(95deg, #800000 -10.47%, #D78A23 97.39%));
    /*border: 1px solid transparent;*/
    border: unset;
    padding: 8px 1px;
}
p.infinitescroll-bottom-message .a_button__span i{
    display: none !important;
}
/*Load more finish*/


/*Popular stores widgets start*/
/* Adapted from CCM .ccm_widget* (categorycontentmanager/views/css/ccm_header.css).
   Per-widget gradients come from CSS custom properties set inline in the markup:
   --thsrp_bg_from/--thsrp_bg_to (card bg), --thsrp_btn_from/--thsrp_btn_to (button). */
body#search div#product_list .product-list-container{
    overflow: visible;
}
.thsrp_popular_stores {
    /* --thsrp_vw = documentElement.clientWidth (srp_swiper.js): true visible width,
       unlike 100vw which includes the scrollbar and overshoots the edges */
    width: var(--thsrp_vw, 100vw) !important;
    min-width: var(--thsrp_vw, 100vw) !important;
    max-width: var(--thsrp_vw, 100vw) !important;
    margin-left: calc((var(--thsrp_vw, 100vw) - 100%) / -2);
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #190206 0%, rgba(134, 17, 4, 0.00) 100%), linear-gradient(90deg, #CF8422 0%, #871105 100%);
}
@media (min-width: 492px) {
    .thsrp_popular_stores_inner {
        max-width: 750px;
    }
}
@media (min-width: 992px) {
    .thsrp_popular_stores_inner {
        max-width: 970px;
    }
}
@media (min-width: 1200px) {
    .thsrp_popular_stores_inner {
        max-width: 1060px !important;
    }
}
.thsrp_popular_stores_inner {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}


.thsrp_popular_heading {
    color: var(--thsrp_highlight, #800000) !important;
    margin-bottom: 20px;
}

/* Positioning box for the slider: arrows are siblings of .swiper (outside its overflow clip). */
.thsrp_slider {
    position: relative;
    width: 100%;
}

/* swiper.min.css (runtime-injected, loads after this file) sets .swiper{padding:0;margin:auto} -> 0,2,0
   specificity so our box wins. Padding widens the overflow clip so hover-scaled overlays aren't cut;
   negative margins cancel the layout shift (content-box keeps width:100% = slide area).
   Lateral 20px < 24px spaceBetween -> neighboring slides stay hidden at rest. */
.thsrp_slider .thsrp_widgets_wrapper {
    box-sizing: content-box;
    width: 100%;
    /* left stays 0: overlays overhang right-only, and a left clip strip would reveal
       the hidden previous slide's overhang when slid */
    padding: 32px 20px 0 0;
    margin: -32px -20px 0 0;
}

/* Swiper owns widths/spacing (slidesPerView + spaceBetween). 0,2,0 specificity so the
   card height beats swiper.min.css .swiper-slide{height:100%} (injected at runtime, after this file). */
.thsrp_widgets_wrapper .thsrp_widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-end;
    align-items: flex-start;
    height: 160px;
}

.thsrp_widget .thsrp_widget_bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--thsrp_bg_from), var(--thsrp_bg_to));
}

.thsrp_widget .thsrp_widget_overlay {
    position: absolute;
    bottom: 5%;
    right: -5%;
    max-width: 100%;
    height: auto;
    max-height: 109%;
    width: auto;
    z-index: 1;
    transition: transform 0s;
    transform: scale(1);
    transform-origin: bottom center;
    pointer-events: none;
}

.thsrp_widget .thsrp_widget_content {
    width: 100%;
    padding: 5px 10px 10px 10px;
    background: linear-gradient(90deg, #190206 0%, rgba(25, 2, 6, 0.00) 100%);
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-end;
    row-gap: 5px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    z-index: 2;
}

.thsrp_widget .thsrp_widget_title {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    column-gap: 5px;
    max-width: 100%;
}

.thsrp_widget .thsrp_widget_title .thsrp_widget_icon {
    width: 24px;
    height: auto;
    max-width: 24px;
    max-height: 24px;
}

.thsrp_widget .thsrp_widget_title .thsrp_widget_text {
    color: #FFF;
    font-family: Exo, Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thsrp_widget .thsrp_widget_button {
    color: #FFF;
    font-family: Exo, Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    width: 100%;
    border-radius: 4px;
    padding: 6px 24px;
    min-height: 34px;
    transition: background-position 0s ease;
    background: linear-gradient(89deg, var(--thsrp_btn_from), var(--thsrp_btn_to), var(--thsrp_btn_from));
    background-size: 200% 100%;
    background-position: 0% 0%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    text-align: center;
}

.thsrp_widget:hover .thsrp_widget_button {
    background-position: 100% 0%;
}

.thsrp_widget:hover .thsrp_widget_overlay {
    transform: scale(1.04);
}

/* Slider arrows — Figma "Polygon" 8x20 triangle, #F0E4CE @ 50%. Same border-triangle
   technique as the homepage hero slider (themes css components/hero). Buttons sit in
   the screen-edge gap, OUTSIDE the slide area (prev left of it, next right of it). */
.thsrp_slider .swiper-button-prev,
.thsrp_slider .swiper-button-next {
    width: 30px;
}

.thsrp_slider .swiper-button-prev {
    left: auto;
    right: 100%;
}

.thsrp_slider .swiper-button-next {
    right: auto;
    left: 100%;
}

/* Figma arrow recreated in CSS: 4px round-cap stroke chevron (#F0E4CE @50%, ~12x24).
   Two round-capped bars (the only CSS shape with true round caps) rotated ±51.3deg,
   cap centers meeting at the tip. Opacity sits on the BUTTON so the bars composite
   as a group — the elbow overlap can't double up. */
.thsrp_slider .swiper-button-prev,
.thsrp_slider .swiper-button-next {
    opacity: 0.5;
}

.thsrp_slider .swiper-button-prev.swiper-button-disabled,
.thsrp_slider .swiper-button-next.swiper-button-disabled {
    opacity: 0.2;
}

.thsrp_slider .swiper-button-prev::before,
.thsrp_slider .swiper-button-prev::after,
.thsrp_slider .swiper-button-next::before,
.thsrp_slider .swiper-button-next::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 16.5px;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    background: #F0E4CE;
}

.thsrp_slider .swiper-button-prev::before,
.thsrp_slider .swiper-button-prev::after {
    left: calc(50% - 6px);
    transform-origin: 1px 50%;
}

.thsrp_slider .swiper-button-prev::before {
    transform: rotate(-51.3deg);
}

.thsrp_slider .swiper-button-prev::after {
    transform: rotate(51.3deg);
}

.thsrp_slider .swiper-button-next::before,
.thsrp_slider .swiper-button-next::after {
    right: calc(50% - 6px);
    transform-origin: calc(100% - 1px) 50%;
}

.thsrp_slider .swiper-button-next::before {
    transform: rotate(51.3deg);
}

.thsrp_slider .swiper-button-next::after {
    transform: rotate(-51.3deg);
}
/*Popular stores widgets finish*/
.trustpilot-widget {
    background: #fff;
    padding: 18px 32px;
    margin-bottom: 20px;
    margin-top: 10px;
}

/* ============================================================
   RESPONSIVE — media queries only. Group rules by section inside.
   ============================================================ */
@media (max-width: 1199px) {
    /* Popular Stores block */
    .thsrp_widgets_wrapper .thsrp_widget {
        height: 150px;
    }
}

@media (max-width: 991px) {
    /* Popular Stores block */
    .thsrp_popular_heading {
        font-size: 32px;
    }
}

@media (max-width: 900px) {
    /* Popular Stores block — 30px screen-edge spacing (3- and 2-slide brackets);
       kill the col-xs-12 gutter so the inner padding is the whole edge gap */
    .thsrp_popular_stores {
        padding-left: 0;
        padding-right: 0;
    }
    .thsrp_popular_stores_inner {
        max-width: none;
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    /* Search summary bar */
    .content_sortPagiBar {
        margin: 10px 0 18px;
        padding: 13px 16px;
    }

    .content_sortPagiBar .sortPagiBar .thsrp_summary_row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
    }

    .content_sortPagiBar .sortPagiBar .thsrp_summary_row > .pull-right {
        width: 100%;
        justify-content: space-between;
        margin-left: 0 !important;
    }

    #search #center_column .content_sortPagiBar .sortPagiBar .thsrp_summary_row > .pull-right .inner.pull-right{
        margin-left: 0 !important;
    }

    .content_sortPagiBar .categorySearchSortForm {
        width: 100%;
        justify-content: space-between;
    }

    .content_sortPagiBar #categorySearchFormSelectSort {
        width: 100%;
        max-width: 260px;
    }

    /* Popular Stores block */
    .thsrp_widget .thsrp_widget_button {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 480px) {
    /* Popular Stores block */
    .thsrp_widget .thsrp_widget_overlay {
        top: -10%;
        bottom: unset;
        max-width: 100%;
        height: auto;
        max-height: 100%;
    }
}

@media (max-width: 419px) {
    /* Popular Stores block — 48px screen-edge spacing (1-slide bracket); arrows fill the gap */
    .thsrp_popular_stores_inner {
        padding-left: 48px;
        padding-right: 48px;
    }

    .thsrp_slider .swiper-button-prev,
    .thsrp_slider .swiper-button-next {
        width: 48px;
    }
}
