

/* File: ep-shop.css */
main#brandArchiveWrapper {margin: 20px auto;}
.full-shop-wrapper {
    display: flex;
    align-items: flex-start;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 0;
    box-sizing: border-box;
    gap: 30px;
}
.main-productcat-wrapper {max-width: 1280px; margin: 0 auto; width: 94%;}
.main-productcat-wrapper .full-shop-wrapper {width: 100%;}
.filter-block {
    margin-bottom: 20px;
}
div#discount-filter span {font-size: 16px; display: block; text-align: center; margin-top: 20px;}
div#price-filter span {font-size: 16px; display: block; text-align: center; margin-top: 20px;}
.slider-values span {font-size: 16px; display: block; text-align: center; margin-top: 20px;}

.term-list {
    padding: 10px 10px 0;
    border-radius: 4px;
    border: none !important; margin: 0 !important;
    overflow-x: hidden !important; overflow-y: auto !important; max-height: 400px;
}
.term-list label {
    font-size: 14px; margin-bottom: 3px; width: 100%;
}
.term-item.selected label {margin-bottom: 0;}
.shop-item h3 {font-size: 16px !important;
        font-weight: 500 !important;
        color: #54595f !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        min-height: 68px; margin-bottom: 20px; word-break:break-word; text-align: left;
    }

    .shop-item h2 {font-size: 16px !important;
        font-weight: 500 !important;
        color: #54595f !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        min-height: 68px; margin-bottom: 20px; word-break:break-word; text-align: left;
    }

    .price{
            font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: .5em !important;
    display: block;
    color: #000;
    }

.search-box {
    margin-bottom: 10px;
    padding: 5px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.button-reset {
    margin-top: 20px;
    background-image: linear-gradient(-180deg,#fff,#f5f5fa) !important;
    padding: 8px 15px;
    font-family: Josefin Sans, sans-serif !important;
    font-size: 14px;
    color: #000 !important;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 100%; 
    font-weight: 600;
}
button.open-more-filters {width: calc(100% - 20px) !important; margin-left: 10px; margin-bottom: 10px;}
.button-reset:hover {color: #000 !important;}

.ep-product-content {
    flex: 1;
    min-height: auto;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.shop-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 15px;
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none; position: relative; max-width: 270px;
}
.shop-item:hover {
        box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, .5);
}
.filter-block input.search-box {position: relative;}
.filter-block input.search-box:befor {
        background: rgba(0, 0, 0, 0) url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235a5e9a%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228%22%3E%3C%2Fcircle%3E%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2216.65%22%20y2%3D%2216.65%22%3E%3C%2Fline%3E%3C%2Fsvg%3E) repeat scroll 0% 0%;
    content: "";
    height: 16px;
    left: .5rem;
    margin-top: -.5rem;
    position: absolute;
    top: 50%;
    width: 16px;
}
div#ep-search-live-wrapper {
        position: fixed;
    overflow: visible;
    background: white;
    z-index: 999;
    top: 168px;
    width: 100%; padding: 0 20px;
    height: calc(100vh - 168px); overflow: hidden; overflow-y: auto;
}
.container-image-and-badge {position: static;}
.shop-item img {
    width: auto;
    height: 90px; margin-bottom: 18px;
}
.yith-wcbm-badge.yith-wcbm-badge-text.yith-wcbm-badge-15157 {
    left: 0px !important;
    position: absolute;
    top: 0px !important;
    background: #f7931d !important;
    color: #fff !important;
    padding: 5px 7px 5px !important;
    font-size: 13px;
    border-radius: 15px 0px 0px 0px !important;
}
span.discount-badge {
    right: 0px !important;
    position: absolute;
    top: 0px !important;
    background: #f7931d;
    color: #fff;
    padding: 0px 10px 0px !important;
    font-size: 12px !important; height: 30px; line-height: 30px;
    border-radius: 0px 15px 0px 0px !important;
}
.yith-wcbm-badge-text span {color: #fff !important;}
span#ep-discount-value {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 24px;
    font-size: 16px;
}
span#ep-price-value {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 24px;
    font-size: 16px;
}

#ep-search-live-results {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}
.live-results .search-item {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}
.live-results .search-item:last-child {
    border-bottom: none;
}
.live-results .search-item a {
    font-weight: 500;
    text-decoration: none;
    color: #333;
}
.live-results .search-item span {
    color: #888;
}
mark {
    background: yellow;
    color: black;
    padding: 0 2px;
    border-radius: 3px;
}
h3.ep-search-panel__heading {cursor:pointer !important;}
h3.ep-search-panel__heading:hover {background-color: #F79420; color: #fff !important; cursor:pointer !important;}
button.ep-search-panel__button.ep-search-reset-button.ep-search-icon-button:hover {color: #fff !important; cursor:pointer !important;}
.ep-search-panel__content {padding-top: 10px;}
.page-numbers.current {
    font-weight: bold;
    background: #F79420;
    color: #fff !important;
    border-radius: 4px;
    padding: 5px 10px;
}

a.pagination-link.current {
    font-weight: bold;
    background: #F79420;
    color: #fff !important;
    border-radius: 4px;
    padding: 5px 10px;
}

.skeleton {
    width: 100%;
    height: 300px;
    background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.noUi-horizontal .noUi-handle {
        background-color: #fff;
    background-image: linear-gradient(-180deg, #fff, #fcfcfd);
    border: 1px solid #d6d6e7;
    border-radius: 2px;
    box-shadow: 0 1px 0 0 rgba(35, 38, 59, .05);
    height: 24px;
    margin-left: -6px;
    top: -11px; right: -2px !important;
    width: 12px !important;
}
.noUi-horizontal {
    background-color: #3c4fe0 !important;
    border-radius: 3px !important;
    height: 4px !important;
    max-width: 100%;
    top: 10px;
}
button#clear-search-btn {
            position: absolute;
    right: 0px;
    top: 1px;
    z-index: 10;
    border-radius: 0px 10px 10px 0px;
    background-color: #84ba86 !important;
    color: #fff !important;
    font-size: 28px;
    height: 38px;
    padding: 0;
    width: 48px; padding-bottom: 3px;
    line-height: 28px;
}
button#clear-search-btn:hover {background-color: #f7931d !important;}
.noUi-connect {background-color: #3c4fe0 !important; top: -6px !important; right: -6px !important;}
.noUi-origin {top: -8px !important;}

.filter-block input.search-box {font-family: Josefin Sans, sans-serif !important;}
.noUi-handle:after { left: 4px !important;}
.noUi-handle:before {left: 7px !important;}
.noUi-target {box-shadow: none !important;}
.ep-search-wrapper.ep-stickyheader {top:84px !important; height: calc(100vh - 84px) !important; padding-top: 10px;}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.pagination {
    margin-top: 30px;
    text-align: center; justify-content:center;
}

.pagination a,
.pagination-link {
    display: inline-block;
    margin: 0 3px;
font-size:14px;
    padding: 8px 13px !important;
    background-image: linear-gradient(-180deg,#fff,#fcfcfd);
    color: #333;
border: 1px solid #d6d6e7 !important;
    border-radius: 0px;
    text-decoration: none;
box-shadow:0 1px 0 0 rgba(35,38,59,.05) !important;

}
.pagination a:hover,
.pagination-link:hover {
    background-color: #84ba85 !important; color:#fff; background-image:none;
}


.pagination a.active,
.pagination-link.active {
    background-color: #f59823; color:#fff; background-image:none;
}

/* — Sidebar layout & sticky header */
.ep-filter-sidebar {
  
  top: 20px;
  width: 280px;
  background: #fff;
  padding: 0px 10px 0 0;
  border-radius: 8px;
  overflow: visible;
}
.ep-filter-sidebar h4 {
    color: #f79420 !important; font-size:17px;
}
.thumb-wrapper {position: static !important;}
button.show-more-button, button.open-more-filters {
        background-color: #f59823 !important;
    padding: 6px 25px !important;
    border: none;
    height: auto;
    border-radius: 7px;
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    background-image: none !important; margin-top: 15px;
}
button.show-more-button:hover, button.open-more-filters:hover {
    background-color: #84ba85 !important;
}

button.show-more-terms {
        background-color: #f59823 !important;
    padding: 6px 25px !important;
    border: none;
    height: auto;
    border-radius: 7px;
    font-size: 14px;
    color: #fff; font-family: Josefin Sans, sans-serif !important;
    line-height: 1.5;
    background-image: none !important; margin-top: 15px;
}
button.show-more-terms:hover {
    background-color: #84ba85 !important;
}

button#reset-filters {}
.filter-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding-bottom: 10px;
}

/* — Skeleton loader */
.shop-grid .shop-item.loading div {
  animation: pulse 1.2s infinite ease-in-out;
  background: #f0f0f0;
}

.sticky-buttons-new {display: none;}


.ep-search-range-slider__track-1 {background-color: #f59823 !important;}
.ep-search-range-slider__track {height: 7px !important;}
.ep-search-range-slider__thumb {background-color: #f59823 !important; box-shadow: inset 0 0 0 calc(var(--ep-search-range-thumb-size)/10) #f59823,inset 0 0 0 calc((var(--ep-search-range-thumb-size) - var(--ep-search-range-track-size))/2) var(--ep-c-white) !important;}
.ep-search-price-facet__values {font-size: 18px; text-align: center;}

ul.ep-search-options-list.ep-search-options-list__sub-menu {margin-bottom: 4px;}

/* Term list should scroll; button stays visible at bottom */
.term-list {
  max-height: 400px;
  position: relative;
}
.term-list .show-more-wrap {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, #fff, rgba(255,255,255,.9) 60%, rgba(255,255,255,0));
  padding-top: 8px;
  z-index: 1;
}
.term-list .show-more-button { width: 100%; }
/* Selected item keeps pretty label + count */
.term-item .count { opacity:.7; font-size:.9em; margin-left:.25em; }
.no-terms { padding:6px 2px; opacity:.75; font-style:italic; font-size: 16px;}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* — Show gap after selected filters */
.term-list .term-item.selected + .term-item {
  margin-top: 0px;
}




.desktop-only { display: block; }
.mobile-only { display: none; }

/* — Responsive grid */

@media (max-width: 1140px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 838px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  div#ep-search-live-wrapper {top: 202px;}
  button#clear-search-btn {top: 0; height: 45px; line-height: 40px;}
  .shop-item {min-width: 200px;} 
}
@media (min-width: 769px) {
    .mobile-only-toggle-button {
        display: none;
    }
     #mobile-filter-panel {
        display: none !important;
    }
}
@media (max-width: 768px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr);}
  .full-shop-wrapper {flex-direction: column;}
  .term-list {max-height: inherit;}
  .desktop-only { display: none; }
    .mobile-only {
        text-decoration: none;
    font-weight: 600; text-transform: uppercase;
    background-color: #f79420; border-radius: 10px;
    padding: 12px 30px;
    width: 100%;
    display: inline-block;
    fill: #000;
    text-align: center;
    transition: all .3s; margin-top: 20px;
    color: #fff; border: none;
    }
    .mobile-only:hover {background-color: #f79420 !important; color: #fff !important;}
    .mobile-filter-panel {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        padding: 20px 20px 0;
    }

    .mobile-filter-panel.open { transform: translateY(0); }
    .mobile-filter-close {
        font-size: 45px;
        position: absolute;
        top: 0px;
        right: 10px; font-weight: 300;
        cursor: pointer;
    }
  #primaryBoxes nav.woocommerce-breadcrumb {margin-top: 60px !important;}
  #primaryBoxes .woocommerce-breadcrumb {margin-bottom: 10px !important;}
  .main-productcat-wrapper .full-shop-wrapper {padding-top: 0 !important;}
  .main-productcat-wrapper .full-shop-wrapper .mobile-only {margin-top: 0;}

   .ep-filter-sidebar {
        display: none;
        z-index: 99999;
        top: 30px;
        left: 0;
        width: 100%;width: 100%;
        height: 100%;
        overflow-y: scroll;
        background: #fff; border-radius: 0;
        padding: 20px; position: fixed;
    }
    .ep-filter-sidebar.active {
        display: block;
    }
    /* .mobile-only-toggle-button {
    text-decoration: none;
    font-weight: 800;
    background-color: #fecc47;
    padding: 10px 30px;
    width: 100%; border: 1px solid #000;
    display: inline-block;
    fill: #fff;
    text-align: center; text-transform: uppercase;
    transition: all .3s;
    color: #000;
    font-family: Josefin Sans, sans-serif !important; outline: none !important;
} */
.mobile-only-toggle-button {
        left: 50%;
        transform: translateX(-50%);
        position: fixed;
        bottom: 65px;
        z-index: 999;
        box-shadow: 0px 6px 20px rgba(49, 36, 133, .15);
        background-color: #84ba86 !important;
        border-color: #84ba86;
        color: white !important;
        border-radius: 50rem; font-family: Josefin Sans, sans-serif !important; outline: none !important;
    }
    .mobile-only-toggle-button svg {color: #fff !important; fill: #fff !important;}
    
.mobile-only-toggle-button:hover {background-color: #fecc47; color: #000;}
.mobile-only-toggle-button:focus {background-color: #fecc47; color: #000;}

.ep-search-wrapper.ep-stickyheader {top: 115px !important; height: calc(100vh - 115px) !important;}

.sticky-buttons-new
        {
            background: linear-gradient(180deg, transparent 0, #fff 40px, #fff);
            margin-bottom: -12px;
            padding-bottom: max(env(safe-area-inset-bottom), 32px);
            padding-top: 40px;
            bottom: 0;
            display: flex !important;
            gap: 16px;
            margin-top: auto;
            position: sticky;
            z-index: 4;
        }
        .mobile-filter-button {
            padding: 8px 5px !important;
            background-color: #fff !important;
            color: #000 !important;
            font-size: 16px !important;
            font-family: Josefin Sans, sans-serif !important;
            align-items: center;
        border-radius: 10px;
        display: flex;
        flex: 1 0 0;
        justify-content: center;
        border-color: black;
        }
}
@media (max-width: 767px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .top-banner-section {display: none;}
   .full-shop-wrapper { flex-direction: column; }
  .mobile-only {margin-top: 30px;}
  #primaryBoxes nav.woocommerce-breadcrumb {margin-top: 60px !important;}
  #primaryBoxes .woocommerce-breadcrumb {margin-bottom: 10px !important;}
  .main-productcat-wrapper .full-shop-wrapper {padding-top: 0 !important;}
  .main-productcat-wrapper .full-shop-wrapper .mobile-only {margin-top: 0;}


  div#ep-search-live-wrapper {top: 202px; padding-bottom: 20px;}
  .shop-item {min-width: 155px;}
  .ep-search-pagination__count {font-size: 15px;}
  
}
@media (max-width: 520px) {
    div#ep-search-live-wrapper {top: 192px;}
}

@media (max-width: 480px) {
    body {overflow: visible !important;}
  .full-shop-wrapper { flex-direction: column; }
  .mobile-only {margin-top: 30px;}
  #primaryBoxes nav.woocommerce-breadcrumb {margin-top: 60px !important;}
  #primaryBoxes .woocommerce-breadcrumb {margin-bottom: 10px !important;}
  .main-productcat-wrapper .full-shop-wrapper {padding-top: 0 !important;}
  .main-productcat-wrapper .full-shop-wrapper .mobile-only {margin-top: 0;}
  .shop-item {min-width: 165px;}
  .overflow-visible-important {overflow: visible !important;}

  .pagination a, .pagination-link {padding: 5px 10px !important;}
}

.filter-drawer {
    position: fixed;
    top: 0;
    left: -320px; /* drawer starts hidden on the left */
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: left 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
}

.filter-drawer.open {
    left: 0;
    opacity: 1;
    pointer-events: auto;
}

.drawer-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 9998;
}
.drawer-overlay.show { display: block; }
.drawer-close {
    cursor: pointer;
    font-size: 45px; margin-top: -45px; font-weight: 300 !important;
    float: right;
}
.drawer-close:hover {color: #f79420;}
.open-more-filters {
    margin-top: 20px;
    background: #eee;
    padding: 10px;
    cursor: pointer;
}


.drawer {
    position: fixed;
    left: -320px;
    top: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: left 0.3s ease-in-out;
}

.drawer.open {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
}

.drawer-overlay.visible {
    display: block;
}