.sb-listing-thumb{
    display: block;
    height: 175px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
}
.sb-listing-thumb img{
    max-height: 175px;
    vertical-align: middle;
    /*width: 175px;*/
    /*height: 175px;*/
    margin: 0 auto;
    /*display: block;*/
}
.sb-listing-item {
    height: 365px;
}
.sb-listing-item h3 {
    white-space: wrap;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.1em;
    max-height: 2.2em;
    height: 2.2em;
    display: block;
    display: -webkit-box;
    margin: 0 auto;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-item-buy-container {
    position: absolute;
    bottom: 0;
}

#sb-listing-header > div:last-child {
    text-align: right;
}

#sb-listing-footer {
    margin-top: 10px;
}

.pager-label{
    text-align:center;
    line-height: 32px;
    padding:0 5px;
}
.pager-next .btn,.pager-prev .btn{color:#686868;}
@media (max-width: 768px) {
    .pager-next,.pager-prev{
        font-size:12px;
    }
    .pager-prev{padding-right:0;}
    .pager-next{padding-left:0;}
    .pager-tools {
        display: table;
        width: 100%;
        table-layout: fixed;
        border-collapse: separate;
    }
    .pager-tools > .btn-group {
        float: none;
        display: table-cell;
        width: 1%;
    }
    .pager-tools>.btn-group .btn {
        width: 100%;
    }
}
@media (min-width: 768px) {
    .pager-label{
        /*line-height: 24px;*/
        /*line-height: 1em;*/
        text-align:left;
        padding:0 15px 5px 15px;
    }
    .pager-tools {
        float:right;
    }
    /*.pager-row .btn{
        
        font-size: 18px;
        
    }*/
    .pager-prev{padding-right: 0;}
    .pager-prev .btn{border-right:0 none;/*padding: 10px 16px;line-height: 26px;*/}
    .pager-next{padding-left: 0;}
    /*.pager-next .btn{padding: 10px 16px;line-height: 26px;}*/
}

.price {
    font-size: 1.5em;
    color: forestgreen;
}

.old-price {
    text-decoration: line-through;
}

#searchPhrase {
    width: 100%;
}

.sb-listing-showall {
    cursor: pointer;
}

.product-item-sale-section {
    height: 34px;
}
 


.product-image-and-title {
    margin-top: auto !important;
}

.path-con {
    height: 80px;
}

.path-con a {
  text-decoration: none;
  color: #383634;
  font-family: Inter;
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
}

.intro-section h1 {
  font-family: var(--primary-font);
  font-weight: 600;
  line-height: 120%;
  font-size: 2rem !important;
  letter-spacing: .33rem;
  text-transform: uppercase;
  text-align: center;
}

.intro-section p {
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.show-more-intro-text-btn,
.show-less-intro-text-btn {
  color: gray;
  display: none;
}

.filter-btn {
  width: 11.875rem;
  border: .063rem solid #949494;
  border-radius: .25rem;
  padding: .156rem 1rem;
  background-color: transparent !important;
}

.sort-btn {
  width: 15.5vw;
  border-radius: 10px;
  border: 1px solid #000;
}

.filter-section {
  width: 23.5rem;
  border: none;
}

.filter-section .accordion-header {
  margin: 0 !important;
  padding: 1rem 0 !important;
}

.filter-section .accordion-item {
  border: none !important;
  border-top: .063rem solid #CCCCCC !important;
}

.filter-section .accordion-item:last-of-type {
  border-bottom: .063rem solid #CCCCCC !important;
}

.filter-section .accordion-button {
  background-color: transparent !important;
  color: #000 !important;
  font-family: "Work Sans", sans-serif;
  font-size: 1.125rem !important;
  line-height: 1.8rem;
  font-weight: 400;
  line-height: 24px;
  padding: 0 0 !important;
}

.filter-section .accordion-button::after {
  display: block !important;
}

#categoryFilterAccordion .accordion-item {
  border-bottom: none !important;
}

.filter-section .filter {
  width: fit-content;
  margin: 0 !important;
}

.filter-section .accordion-body {
  padding: 0 0 1rem !important;
}

.filter-section p {
  font-family: "Work Sans", sans-serif;
  font-size: 1.125rem !important;
  line-height: 1.8rem;
  font-weight: 400;
  line-height: 24px;
}

.filter-section ul li {
  margin-top: 0 !important;
}

.filter-section ul li, a {
  font-size: 1.125rem;
  line-height: 1.8rem;
  font-weight: 400;
  line-height: 24px;
  color: #383634;
}

.outerList li img {
  width: 20px;
  transform: rotate(45deg);
}

.filter-section button {
  width: 20vw;
  border-radius: 10px;
  border: 1px solid #383634;
}

.all-filter-btns button {
  width: 6vw;
}

.view-more-section-div  button { 
  width: 17.5vw;
  border-radius: 10px;
  border: 1px solid #000;
}

.description-section {
  width: 70%;  
  margin: 0 auto !important;
}

/* Filter Checkboxes Section */
#collapse-colour .all-filter-btns ul {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

#collapse-colour .all-filter-btns ul li {
  grid-column: span 3;
}

#collapse-size .outerList li:nth-child(n+7) {
  display: none;
}

#collapse-size.expanded .outerList li {
  display: list-item;
}

.show-more-btn,
.show-less-btn {
    line-height: 165%;
    color: var(--brand-accent);
    text-decoration: underline;
}

/*
.description-section p:nth-child(1),
p:nth-child(3),
p:nth-child(4),
p:nth-child(6),
p:nth-child(9) {
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}
*/

.description-section p:nth-child(2),
p:nth-child(5),
p:nth-child(8) {
  /*
      font-size: 2.7vw;
  font-family: Oswald;
  font-size: 40px;
  line-height: 56px;
  */
  font-weight: 500;
}

.description-section p:nth-child(7) {
  /*
      font-size: 3.75vw;
  line-height: 59px;
  font-family: Oswald;
  font-size: 54px;
  */
  font-weight: 500;
}

.filtered-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: 3.75rem;
  column-gap: 1.88rem;
}

.filtered-cards .card {
  grid-column: span 3;
  border: none !important;
}

/* cards when open filter btn clicked */

@media (min-width: 992px) and (max-width: 1199px) {
  
  .filtered-cards .card{
    grid-column: span 4;
  }
}

@media (min-width: 768px) and (max-width: 992px) {

    .filtered-cards .card {
      grid-column: span 6;
    }
}

@media (min-width: 576px) and (max-width: 768px) {

  .filtered-cards .card {
    grid-column: span 6;
  }
  
  .filter-section .all-filter-btns button {
    width: 16vw;
    margin: 0;
  }

  .intro-section p {
    width: 100%;
   }
}

@media screen and (max-width: 576px) {

  .filtered-cards .card {
    grid-column: span 6;
  }

  .filtered-cards .card .product-image-and-title h5 a {
      font-size: 16px !important;
  }

  .view-more-section-div  button { 
    width: 100vw;
  }

  .intro-section h3 {
    font-size: 10vw;
  }

  .filter-btn {
    width: 25vw;
  }
  
  .sort-btn {
    width: 65vw;
  }

  .intro-section p {
    width: 100%;
  }

  .description-section {
    width: 95vw;
  }

  .filter-section button {
    width: 80vw;
    margin: 0 auto;
  }

  .filter-section .all-filter-btns button {
    width: 16vw;
    margin: 0;
  }

    .pager-next,
    .pager-prev {
        width: 30%;
    }

}

.depth1 {
    padding: 0 20px;
}

.depth2 {
    padding: 0 40px;
}

.filtered-cards {
    height: fit-content;
}

.filtered-cards .card .product-image-and-title a {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #f3f3f1;
}

.filtered-cards .card .product-image-and-title h5 {
    align-self: flex-start;
    font-size: 20px;
    font-weight: 500;
    line-height: 21px;
    height: 42px;
}

.filtered-cards .card .product-image-and-title h5 a {
    align-self: flex-start;
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    background-color: #fff !important;
}

/* .filtered-cards .card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: none !important;
} */

.outerList {
    padding-left: 0 !important;
}

    .outerList .checkbox {
       display: flex;
       align-items: center;
    }
    .outerList .checkbox input[type=checkbox] {
        width: 25px;
        height: 25px;
        accent-color: #383634;
    }

.selected-category {
    color: #383634;
    font-weight:bold;
}

/* .list-pagination {
    display: flex;
    align-items: center;
} */

.pager-prev a {
    padding: 27px 0;
    border-radius: 16px;
    color: #000 !important;
    border: 1px solid #383634 !important;
    background-color: transparent !important;
}

.pager-next a {
    padding: 27px 0;
    background-color: #383634;
    color: #F2F0EA !important;
    border-radius: 16px;
    margin-left: 8px !important;
}

.pager-next a:hover {
    color: #000 !important;
}
    
/**/
.custom-pagination {
    justify-content: center;
    margin-top: 20px;
    font-weight: 500;
    font-size: 1rem;
}

.arrow-icon {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.next-page-arrow:hover .arrow-icon {
    transform: translateX(3px);
}

.sort-and-filters-mobile {
  display: none;
}

.sort-and-filters-mobile .filter-btn-mobile {
  border: .063rem solid #949494;
  background-color: #fff;
  height: 2.25rem;
  padding: .156rem 1rem;
  font-size: .875rem;
  font-family: Work Sans, sans-serif;
  font-weight: 400;
  line-height: 125%;
  width: 10.9375rem;
}

@media screen and (max-width: 768px) {

    .mobile-filter-controller {
      display: block !important;
    }

    .filter-section {
      width: 100%;
      position: fixed;
      right: 0;
      top: 0;
      z-index: 100000 !important;
      width: 90%;
    }

    .mobile-filter-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 999;
    }

    .sort-and-filters-desktop {
      display: none !important;
    }

    .sort-and-filters-mobile {
      display: block;
    }

    .filter-section button {
      width: 90% !important;
    }

    .filter-section .accordion-body {
      width: 90% !important;
      margin: 0 auto !important;
    }

    .filtered-cards {
      row-gap: 2.5rem !important;
      column-gap: 1rem !important;
    }

    .intro-section h1 {
      font-size: 2rem !important;
    }

    .SortingDropdownMobile {
      width: 100% !important;
    }

    .filter-section .filter {
      width: 100% !important;
    }

}

/* Variant slider arrows */

.variant-slider {
    display: flex;
    align-items: center;
    gap: 4px;
}

.variant-slider .has-variant-div {
    flex: 1;
    min-width: 0;
    scroll-behavior: smooth;
}

.variant-slider-btn {
    display: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #383634;
    border-radius: 0.25rem;
    background: #fff;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #383634;
    transition: color 0.2s, border-color 0.2s;
}

.variant-slider-btn:hover {
    color: #383634;
    border-color: #383634;
    background-color: #f3f3f1;
}

/* Skeleton image placeholder */
.img-skeleton {
    position: relative;
    background-color: #e8e8e8;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    margin-bottom: 1rem !important;
}

.img-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.img-skeleton img {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.img-skeleton.img-loaded {
    background: none;
}

.img-skeleton.img-loaded::after {
    display: none;
}

.img-skeleton.img-loaded img {
    opacity: 1;
}

/* ------------------------------------------------------------------
   Listing cards: tiled grid
   Edge-to-edge tiles split by hairlines, a square image panel,
   a corner sale badge and a centred title and price row.
   Layout only: the card markup and contents are unchanged, and the
   image mix-blend-mode stays as set in home.css.
   ------------------------------------------------------------------ */

.filtered-cards {
    row-gap: 0;
    column-gap: 0;
    border-top: 1px solid #e4e4e4;
    border-left: 1px solid #e4e4e4;
}

.filtered-cards .card {
    border-radius: 0;
    border-right: 1px solid #e4e4e4 !important;
    border-bottom: 1px solid #e4e4e4 !important;
    background-color: #fff;
    overflow: hidden;
}

.filtered-cards .card .product-image-and-title {
    margin-top: 0 !important;
}

/* Square image panel, flush with the tile edges */
.filtered-cards .card .img-skeleton {
    margin-bottom: 0 !important;
    border-radius: 0;
    background-color: #f3f3f1;
}

.filtered-cards .card .img-skeleton a {
    height: 100%;
    align-items: center;
}

.filtered-cards .card .img-skeleton img {
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.filtered-cards .card:hover .img-skeleton.img-loaded img {
    transform: scale(1.04);
}

/* Sale badge: top-left corner tag */
.filtered-cards .card .discount {
    top: 12px;
    left: 12px;
    right: auto;
    width: auto;
    height: auto;
    padding: 5px 9px;
    border-radius: 0;
    background-color: var(--brand-accent);
    align-items: center;
    gap: 6px;
}

.filtered-cards .card .discount img {
    padding: 0;
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.filtered-cards .card .discount p {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: var(--secondary-font), sans-serif;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

/* Colour variants: centred strip under the image */
.filtered-cards .card .variant-slider,
.filtered-cards .card .variant-empty-div {
    margin: 12px 16px 0;
}

.filtered-cards .card .has-variant-div {
    justify-content: center;
}

.filtered-cards .card .variant-empty-div {
    min-height: 40px;
}

/* Title: centred, two lines max */
.filtered-cards .card .product-image-and-title h5 {
    align-self: stretch;
    height: auto;
    min-height: 42px;
    margin: 0 16px 0;
    text-align: center;
}

.filtered-cards .card .product-image-and-title h5 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    justify-content: initial;
    font-family: var(--secondary-font), sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 21px;
    color: var(--primary-color) !important;
    transition: color 0.2s ease;
}

.filtered-cards .card:hover .product-image-and-title h5 a {
    color: var(--brand-accent) !important;
}

/* Price row: current price, then the struck-through original */
.filtered-cards .card .card-bottom-section {
    height: auto !important;
    justify-content: center !important;
    padding: 6px 16px 18px !important;
}

.filtered-cards .card .card-bottom-section > .div {
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.filtered-cards .card .price-now {
    font-family: var(--secondary-font), sans-serif;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}

.filtered-cards .card .price-now span {
    font-family: var(--secondary-font), sans-serif;
    font-size: 12px !important;
    font-weight: 600;
    color: #7E7F81;
}

.filtered-cards .card .discouted-price {
    font-family: var(--secondary-font), sans-serif;
    font-size: 14px !important;
    color: var(--brand-accent);
}

.filtered-cards .card .discouted-price:empty {
    display: none;
}

.filtered-cards .card .sb-auth-cta {
    font-size: 14px !important;
}

@media screen and (max-width: 576px) {
    .filtered-cards .card .discount {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
    }

    .filtered-cards .card .variant-slider,
    .filtered-cards .card .variant-empty-div,
    .filtered-cards .card .product-image-and-title h5 {
        margin-left: 10px;
        margin-right: 10px;
    }

    .filtered-cards .card .card-bottom-section {
        padding: 6px 10px 14px !important;
    }
}
/* .product-option-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

    .product-option-container .sb-listing-thumb {
        margin-top: 0;
    } */

    /* .product-option-container:hover .product-option-overlay {
        height: 30%;
    } */

.sb-listing-item > a {
    position: relative;
}
.product-option-overlay-container {
    position: absolute;
    height: 100%;
    width: 100%;
    bottom: 0;
    left: 0;
}
.product-option-overlay-container:hover .product-option-overlay {
    height: 27%;
}
.product-option-overlay {
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(12, 79, 127, 0.5);
    overflow: hidden;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    height: 0;
    transition: .5s ease;
    scrollbar-color: rgba(0,0,0,1) rgba(0,0,0,.6);
    scrollbar-width: thin;
}

    .product-option-overlay::-webkit-scrollbar {
        height: .5vw;
    }

    .product-option-overlay::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,1);
        box-shadow: inset 0 0 6px rgba(0,0,0,1);
    }

    .product-option-overlay::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,1);
    }

.product-option-overlay-container p {
    color: white;
    font-weight: bold;
    font-size: 15px;
    padding-top: 15px;
}
.sb-quickview-modal > .modal-dialog {
    width: 80% !important;
}
