/**
 * Gimsh Homepage Fabric Guide Section & Category Cards Styles
 * Migrated from Impreza Custom CSS
 */

/*button swith*/ 


.w-tabs.style_radio3>.w-tabs-list:not(.align_justify) .w-tabs-list-h{
	gap: 20px !important;
}

.w-tabs-item i{
	color: #c8a078 !important;
}


.w-tabs.style_radio3.layout_hor>.w-tabs-list .w-tabs-item {
    align-items: center !important;
	background: #fffdf9 !important;
    padding: 14px 22px !important;
	border: 1px solid #e5dccd !important;
	gap: 16px !important;
    text-align: start !important;
    border-radius: 12px !important;
    color: #384028 !important;
}

.w-tabs.style_radio3>.w-tabs-list .w-tabs-item.active {
    background: #384028 !important;
    border-color: #384028 !important;
	color: #fff !important;
    box-shadow: 0 .3em 1em rgba(0, 0, 0, .2) !important;
}

.w-tabs.style_radio3>.w-tabs-list .w-tabs-item:not(.active):focus-visible, .no-touch .w-tabs.style_radio3>.w-tabs-list .w-tabs-item:not(.active):hover {
    color: #384028 !important;
}


.w-tabs.style_radio3>.w-tabs-list .w-tabs-list-h {
	background : none !important;
}

@media (max-width: 600px) {
    body .fabric-guide-section .w-tabs.layout_hor.style_radio3>.w-tabs-list .w-tabs-item {

        text-align: center !important;
   
    }
}

/* Fabric guide interactions: scoped to draft page 12346 */
body.page-id-12346 .fabric-category-card{cursor:pointer}
body.page-id-12346 .fabric-category-card.is-selected,
body.page-id-12346 .fabric-category-card.is-selected>.vc_column-inner,
body.page-id-12346 .fabric-category-card.is-selected .vc_column-inner{
  border:2px solid #c99564!important;
  box-shadow:0 12px 28px rgba(52,61,41,.10)!important;
}
body.page-id-12346 .fabric-products-panel:not([data-open="true"]):not(.is-open){display:none!important}
body.page-id-12346 .fabric-products-panel.is-open,
body.page-id-12346 .fabric-products-panel[data-open="true"]{display:block!important}

/* Category cards carousel on the fabric guide draft */
body.page-id-12346 .fabric-carousel-wrap{position:relative;width:100%;overflow:visible}
body.page-id-12346 .fabric-category-carousel{
  display:flex!important;
  flex-wrap:nowrap!important;
  grid-template-columns:none!important;
  gap:1rem!important;
  width:100%;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
body.page-id-12346 .fabric-category-carousel::-webkit-scrollbar{display:none}
body.page-id-12346 .fabric-category-carousel>.fabric-category-card{
  flex:0 0 40%!important;
  width:40%!important;
  max-width:40%!important;
  scroll-snap-align:start;
}
body.page-id-12346 .fabric-carousel-controls{
  position:absolute;
  inset:0 -0.75rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
  z-index:5;
}
body.page-id-12346 .fabric-carousel-controls button{
  pointer-events:auto;
  width:2.8rem;
  height:2.8rem;
  border:1px solid #d6b995;
  border-radius:50%;
  background:#343d29;
  color:#fffdfa;
  font-size:1.5rem;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(52,61,41,.2);
}
body.page-id-12346 .fabric-carousel-controls button:hover{background:#c99564;color:#fff}
@media(max-width:900px){
  body.page-id-12346 .fabric-category-carousel>.fabric-category-card{
    flex-basis:48%!important;width:48%!important;max-width:48%!important;
  }
}
@media(max-width:600px){
  body.page-id-12346 .fabric-category-carousel>.fabric-category-card{
    flex-basis:86%!important;width:86%!important;max-width:86%!important;
  }
  body.page-id-12346 .fabric-carousel-controls{inset-inline:-0.4rem}
}

/* Keep the two season tabs side by side on mobile */
@media(max-width:600px){
  body.page-id-12346 .w-tabs.layout_hor.style_radio3>.w-tabs-list .w-tabs-list-h{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.page-id-12346 .w-tabs.layout_hor.style_radio3>.w-tabs-list .w-tabs-item{
    min-width:0;
    justify-content:center;
    padding:10px 7px!important;
    gap:6px!important;
    font-size:.82rem;
    white-space:nowrap;
  }
}

/* Show one complete category card per mobile carousel slide */
@media(max-width:600px){
  body.page-id-12346 .fabric-category-carousel>.fabric-category-card{
    flex:0 0 100%!important;
    width:100%!important;
    max-width:100%!important;
  }
  body.page-id-12346 .fabric-carousel-wrap{
    padding-bottom:3.2rem;
  }
  body.page-id-12346 .fabric-carousel-controls{
    inset:auto 0 0;
    height:2.6rem;
    justify-content:center;
    gap:.75rem;
  }
  body.page-id-12346 .fabric-carousel-controls button{
    width:2.35rem;
    height:2.35rem;
  }
}

/* Mobile carousel: one main card with a preview of the next */
@media(max-width:600px){
  body.page-id-12346 .fabric-category-carousel>.fabric-category-card{
    flex:0 0 78%!important;
    width:78%!important;
    max-width:78%!important;
  }
}

/* Match the supplied mobile carousel reference */
body.page-id-12346 .fabric-carousel-controls{display:none!important}
body.page-id-12346 .fabric-carousel-wrap{padding-bottom:0!important}
@media(max-width:600px){
  body.page-id-12346 .fabric-category-carousel{gap:12px!important}
  body.page-id-12346 .fabric-category-carousel>.fabric-category-card{
    flex:0 0 78%!important;
    width:78%!important;
    max-width:78%!important;
  }
  body.page-id-12346 .fabric-category-card .w-image{
    aspect-ratio:2.85/1!important;
  }
  body.page-id-12346 .fabric-category-card .w-image img{
    height:100%;
    object-fit:cover;
  }
}

/* Desktop category layout: three complete cards in one row */
@media(min-width:901px){
  body.page-id-12346 .fabric-category-carousel{
    gap:1rem!important;
    overflow-x:hidden!important;
    scroll-snap-type:none;
  }
  body.page-id-12346 .fabric-category-carousel>.fabric-category-card{
    flex:0 0 calc((100% - 2rem)/3)!important;
    width:calc((100% - 2rem)/3)!important;
    max-width:calc((100% - 2rem)/3)!important;
  }
  body.page-id-12346 .fabric-category-card .w-image{
    aspect-ratio:2.75/1!important;
  }
  body.page-id-12346 .fabric-category-card .w-grid-item .w-image{
    aspect-ratio:1.7/1!important;
  }
}

/* Fabric guide component styles: work on the draft and when copied to the homepage */
body .fabric-guide-section .fabric-category-carousel{
  display:flex!important;
  flex-wrap:nowrap!important;
  grid-template-columns:none!important;
  gap:1rem!important;
  width:100%;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
body .fabric-guide-section .fabric-category-carousel::-webkit-scrollbar{display:none}
body .fabric-guide-section .fabric-category-carousel>.fabric-category-card{
  flex:0 0 calc((100% - 2rem)/3)!important;
  width:calc((100% - 2rem)/3)!important;
  max-width:calc((100% - 2rem)/3)!important;
  scroll-snap-align:start;
}
body .fabric-guide-section .fabric-carousel-wrap{position:relative;width:100%;overflow:visible;padding-bottom:0!important}
body .fabric-guide-section .fabric-carousel-controls{display:none!important}
body .fabric-guide-section .fabric-category-card{cursor:pointer}
body .fabric-guide-section .fabric-category-card.is-selected,
body .fabric-guide-section .fabric-category-card.is-selected>.vc_column-inner,
body .fabric-guide-section .fabric-category-card.is-selected .vc_column-inner{
  border:2px solid #c99564!important;
  box-shadow:0 12px 28px rgba(52,61,41,.10)!important;
}
body .fabric-guide-section .fabric-products-panel:not([data-open="true"]):not(.is-open){display:none!important}
body .fabric-guide-section .fabric-products-panel.is-open,
body .fabric-guide-section .fabric-products-panel[data-open="true"]{display:block!important}
body .fabric-guide-section .fabric-category-card .w-image{aspect-ratio:2.75/1!important}
body .fabric-guide-section .fabric-category-card .w-grid-item .w-image{aspect-ratio:1.7/1!important}
@media(max-width:900px){
  body .fabric-guide-section .fabric-category-carousel>.fabric-category-card{
    flex:0 0 48%!important;width:48%!important;max-width:48%!important;
  }
}
@media(max-width:600px){
  body .fabric-guide-section .fabric-category-carousel{gap:12px!important}
  body .fabric-guide-section .fabric-category-carousel>.fabric-category-card{
    flex:0 0 78%!important;width:78%!important;max-width:78%!important;
  }
  body .fabric-guide-section .fabric-category-card .w-image{aspect-ratio:2.85/1!important}
  body .fabric-guide-section .fabric-category-card .w-image img{height:100%;object-fit:cover}
  body .fabric-guide-section .w-tabs.layout_hor.style_radio3>.w-tabs-list .w-tabs-list-h{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  }
  body .fabric-guide-section .w-tabs.layout_hor.style_radio3>.w-tabs-list .w-tabs-item{
    min-width:0;justify-content:center;padding:10px 7px!important;gap:6px!important;font-size:.82rem;white-space:nowrap;
  }
}

/* Dynamic category product filter */
body .fabric-guide-section .fabric-category-controller{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
body .fabric-guide-section .fabric-products-panel:not([data-open="true"]):not(.is-open){display:none!important}
body .fabric-guide-section .fabric-products-panel.is-open,
body .fabric-guide-section .fabric-products-panel[data-open="true"]{display:block!important}

/* Show only the selected category's Impreza product query */
body .fabric-guide-section .fabric-category-products{display:none!important}
body .fabric-guide-section .fabric-category-products.is-active{display:block!important}

/* Dynamic Impreza category cards */
body .fabric-guide-section .fabric-category-list{width:100%}
body .fabric-guide-section .fabric-category-list .w-grid-list{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:1rem!important;width:100%;overflow:visible!important;
}
body .fabric-guide-section .fabric-category-list .w-grid-item{width:auto!important;max-width:none!important;cursor:pointer}
body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected,
body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected .w-grid-item-h{
  border:2px solid #c99564!important;box-shadow:0 12px 28px rgba(52,61,41,.10)!important;
}
body .fabric-guide-section .fabric-category-list .fabric-category-109 .w-post-elm.post_title:before,
body .fabric-guide-section .fabric-category-list .fabric-category-110 .w-post-elm.post_title:before{content:"☀ ";color:#d2a276}
body .fabric-guide-section .fabric-category-list .fabric-category-111 .w-post-elm.post_title:before,
body .fabric-guide-section .fabric-category-list .fabric-category-271 .w-post-elm.post_title:before{content:"☆ ";color:#d2a276}
body .fabric-guide-section .fabric-category-list .fabric-category-268 .w-post-elm.post_title:before,
body .fabric-guide-section .fabric-category-list .fabric-category-270 .w-post-elm.post_title:before{content:"❄ ";color:#d2a276}
@media(max-width:900px){
  body .fabric-guide-section .fabric-category-list .w-grid-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
  body .fabric-guide-section .fabric-category-list .w-grid-list{
          display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 46%);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        scrollbar-width: thin;
        scrollbar-color: #c8a078 #f1e8da;
    
  }
}

/* Category card product previews use the prototype's desktop and mobile sizes */
.fabric-mini-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:calc(100% - 16px);margin:2px 8px 0;direction:rtl}
.fabric-mini-product{display:grid;grid-template-rows:64px auto auto;gap:0;min-width:0;color:inherit;text-decoration:none;text-align:right}
.fabric-mini-product-image{display:block;width:100%;height:64px;object-fit:cover;border-radius:7px}
.fabric-mini-product-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:6px;font-size:11.5px;line-height:1.25;overflow-wrap:anywhere}
.fabric-mini-product-price{margin-top:3px;font-size:11px;line-height:1.3;color:#746f65;direction:ltr;unicode-bidi:isolate;text-align:right}
@media(max-width:600px){
  body .fabric-guide-section .fabric-category-list .w-grid-item{
    flex:0 0 min(78%,215px)!important;
    width:min(78%,215px)!important;
    max-width:min(78%,215px)!important;
    height:auto!important;
    min-height:281px!important;
    max-height:none!important;
    box-sizing:border-box!important;
    overflow:visible!important;
    scroll-snap-align:start;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item-h{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  body .fabric-guide-section .fabric-category-list .w-vwrapper{
    display:flex!important;
    flex-direction:column!important;
    gap:1px!important;
    height:auto!important;
    min-height:279px!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #e5dccd!important;
    border-radius:14px!important;
    background:#fffdf9!important;
    box-shadow:0 6px 18px rgba(52,61,41,.05)!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_image{
    flex:none!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    margin:0!important;
    aspect-ratio:2.9/1!important;
    overflow:hidden!important;
    border-radius:13px 13px 0 0!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_image img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_title{
    padding:0 12px!important;
    font-size:14px!important;
    line-height:1.3!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_content{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    padding:0 12px!important;
    font-size:10.5px!important;
    line-height:1.3!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    width:auto!important;
    margin:0 8px!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product{
    grid-template-rows:46px auto auto!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-image{
    height:46px!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-name{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    margin-top:5px!important;
    font-size:10px!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow:hidden!important;
    overflow-wrap:anywhere!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-price{
    margin-top:3px!important;
    font-size:9.5px!important;
    line-height:1.2!important;
    direction:ltr!important;
    unicode-bidi:isolate!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-btn{
    width:calc(100% - 24px)!important;
    min-height:34px!important;
    margin:auto 12px 12px!important;
    padding:8px 10px!important;
    font-size:12.5px!important;
    line-height:1.2!important;
  }
}
/* Align desktop category preview rows and action buttons */
@media(min-width:601px){
  body .fabric-guide-section .fabric-category-list .w-grid-item-h{
    height:100%!important;
  }
  body .fabric-guide-section .fabric-category-list .w-vwrapper{
    display:flex!important;
    flex-direction:column!important;
    height:100%!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-products{
    box-sizing:border-box!important;
    height:116px!important;
    min-height:116px!important;
    grid-template-rows:116px!important;
    align-items:start!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product{
    grid-template-rows:64px 29px 14px!important;
    align-content:start!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-name{
    box-sizing:border-box!important;
    height:29px!important;
    margin:6px 0 0!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-price{
    box-sizing:border-box!important;
    height:14px!important;
    margin:3px 0 0!important;
  }
  body .fabric-guide-section .fabric-category-list .w-vwrapper > .w-btn,
  body .fabric-guide-section .fabric-category-list .w-vwrapper > .w-btn-wrapper{
    margin-top:auto!important;
  }
  body .fabric-guide-section .fabric-category-list .w-vwrapper .w-btn{
    margin-top:auto!important;
  }
}
/* Align cards in the shared dynamic product list */
body .fabric-guide-section .fabric-category-products-shared .w-grid-list{
  align-items:stretch!important;
}
body .fabric-guide-section .fabric-category-products-shared .w-grid-item{
  height:100%!important;
}
body .fabric-guide-section .fabric-category-products-shared .w-grid-item-h{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}
body .fabric-guide-section .fabric-category-products-shared .w-grid-item-h > .w-post-elm.post_title{
  min-height:2.6em!important;
}
body .fabric-guide-section .fabric-category-products-shared .w-grid-item-h > .price,
body .fabric-guide-section .fabric-category-products-shared .w-grid-item-h > .product_price{
  margin-top:auto!important;
}
/* Keep desktop category preview rows on the same baseline */
@media(min-width:601px){
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_title{
    min-height:1.3em!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_content{
    min-height:3em!important;
  }
}
/* Equal-height desktop description slot keeps each category's previews aligned */
@media(min-width:601px){
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_content{
    display:block!important;
    box-sizing:border-box!important;
    flex:0 0 44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    overflow:hidden!important;
  }
}
/* Anchor each desktop preview row above the shared bottom button */
@media(min-width:601px){
  body .fabric-guide-section .fabric-category-list .fabric-mini-products{
    margin-top:auto!important;
  }
  body .fabric-guide-section .fabric-category-list .w-vwrapper > .w-btn,
  body .fabric-guide-section .fabric-category-list .w-vwrapper > .w-btn-wrapper{
    margin-top:0!important;
  }
  body .fabric-guide-section .fabric-category-list .w-vwrapper .w-btn{
    margin-top:0!important;
  }
}
/* Keep full category descriptions while previews stay anchored above the buttons */
@media(min-width:601px){
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_content{
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
}
/* Slightly narrower centered category cards on desktop */
@media(min-width:901px){
  body .fabric-guide-section .fabric-category-list .w-grid-list{
    width:90%!important;
    margin-inline:auto!important;
  }
}
/* Square main category images on desktop */
@media(min-width:901px){
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_image{
    aspect-ratio:1/1!important;
    height:auto!important;
    overflow:hidden!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_image img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
}
/* Keep category cover images wide; make the three product previews square on desktop */
@media(min-width:901px){
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_image{
    aspect-ratio:2.75/1!important;
    height:auto!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-products{
    height:auto!important;
    min-height:0!important;
    grid-template-rows:auto!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product{
    grid-template-rows:auto 29px 14px!important;
    align-content:start!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-image{
    width:100%!important;
    height:auto!important;
    aspect-ratio:1/1!important;
    object-fit:cover!important;
  }
}
/* Match the supplied landscape product-preview thumbnails */
@media(min-width:901px){
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-image{
    width:100%!important;
    height:auto!important;
    aspect-ratio:1.75/1!important;
    object-fit:cover!important;
  }
}
/* Slightly larger mobile cards and product preview thumbnails */
@media(max-width:600px){
  body .fabric-guide-section .fabric-category-list .w-grid-item{
    flex-basis:min(78%,240px)!important;
    width:min(78%,240px)!important;
    max-width:min(78%,240px)!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-products{
    gap:5px!important;
    margin-inline:6px!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-image{
    width:100%!important;
    height:54px!important;
    aspect-ratio:auto!important;
  }
}
/* Taller mobile product thumbnails */
@media(max-width:600px){
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-image{
    height:64px!important;
  }
}
/* Single clear highlight around the selected category card */
body .fabric-guide-section .fabric-category-list .w-grid-item{
  box-sizing:border-box!important;
  border:2px solid transparent!important;
  border-radius:16px!important;
  transition:border-color .18s ease,box-shadow .18s ease;
}
body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected{
  border-color:#c99564!important;
  box-shadow:0 10px 24px rgba(52,61,41,.12)!important;
}
body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected .w-grid-item-h{
  border:0!important;
  box-shadow:none!important;
}
body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected .w-vwrapper{
  border-color:transparent!important;
}
@media(max-width:600px){
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-image{
    height:46px!important;
  }
}
/* Make the selected outline wrap the full card, including the taller mobile previews */
body .fabric-guide-section .fabric-category-list .w-grid-item,
body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected,
body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected .w-grid-item-h{
  border:0!important;
  box-shadow:none!important;
}
body .fabric-guide-section .fabric-category-list .w-grid-item .w-vwrapper{
  box-sizing:border-box!important;
  height:auto!important;
  min-height:100%;
  border-radius:14px!important;
}
body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected .w-vwrapper{
  border:2px solid #c99564!important;
  box-shadow:0 10px 24px rgba(52,61,41,.12)!important;
}
/* Refine selected-card highlight without changing card dimensions */
body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected .w-vwrapper{
  box-sizing:border-box!important;
  border:1px solid #e5dccd!important;
  outline:2px solid #c99564!important;
  outline-offset:0!important;
  border-radius:14px!important;
  box-shadow:0 8px 20px rgba(52,61,41,.10)!important;
}
/* Mobile: keep the selected category highlight inside the rounded card */
@media(max-width:600px){
  body .fabric-guide-section .fabric-category-list .w-grid-item,
  body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected,
  body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected .w-grid-item-h{
    outline:none!important;
    border:0!important;
    box-shadow:none!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-vwrapper{
    box-sizing:border-box!important;
    border:1px solid #e5dccd!important;
    border-radius:14px!important;
    overflow:hidden!important;
    outline:none!important;
    box-shadow:none!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected .w-vwrapper{
    border-color:#e5dccd!important;
    box-shadow:inset 0 0 0 2px #c99564, 0 5px 14px rgba(52,61,41,.10)!important;
  }
}

/* Shared product-card sale rules */
.w-grid-item:has(.meter-price-sale) .meter-price-regular,
.meter-price-regular:has(+ .meter-price-sale) {
  text-decoration: line-through !important;
  text-decoration-thickness: 1.5px !important;
  color: #89867f !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.w-grid-item .meter-price-regular,
.w-grid-item .meter-price-sale {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}
.w-grid-item:has(.meter-price-sale) .meter-price-regular {
  text-align: right !important;
}

/* Product card color strip: show five swatches, then a live +N remainder. */
.fabric-card-colors {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 0.25rem !important;
}
.fabric-card-colors > b { display: none !important; }

/* Shared fabric product card: color swatches as bordered circles */
.fabric-card-colors a:not(.term-more-colors-count) .w-color-swatch {
  display: inline-block !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) !important;
  border: none !important;
  box-sizing: border-box !important;
  overflow: hidden;
  vertical-align: middle;
}
.fabric-card-colors a.term-more-colors-count .w-color-swatch {
  display: none !important;
}
.fabric-card-colors a.term-more-colors-count > span:not(.w-color-swatch) {
  display: inline-block !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #3b432c !important;
  line-height: 1 !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
}
.fabric-card-colors a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.fabric-card-colors .w-color-swatch::before,
.fabric-card-colors .w-color-swatch::after { border-radius: inherit; }


/* Prevent legacy fixed-width rules from shrinking later mobile category cards */
@media (max-width:600px){
  body.page-id-12203 .fabric-guide-section .fabric-category-list .w-grid-item,
  body.page-id-12542 .fabric-guide-section .fabric-category-list .w-grid-item{
    width:100%!important;
    min-width:260px!important;
    max-width:none!important;
    flex:none!important;
    box-sizing:border-box!important;
  }
  body.page-id-12203 .fabric-guide-section .fabric-category-list .w-grid-item-h,
  body.page-id-12542 .fabric-guide-section .fabric-category-list .w-grid-item-h{
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
}


/* Mobile category rail: override the legacy three-column grid */
@media (max-width:600px){
  body .fabric-guide-section .fabric-category-list .w-grid-list{
    display:grid!important;
    grid-template-columns:none!important;
    grid-auto-flow:column!important;
    grid-auto-columns:minmax(260px,46%)!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    padding-bottom:10px!important;
    scrollbar-width:thin!important;
    scrollbar-color:var(--gold,#c8a078) var(--sand,#f1e8da)!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x pan-y!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-list>.w-grid-item{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
    scroll-snap-align:start!important;
  }
}


/* Category grid scrollbar colors */
body .fabric-guide-section .fabric-category-list .w-grid-list{
  scrollbar-color:#c8a078 #f1e8da!important;
}


/* Active category-card border for the class used by the click handler */
body .fabric-guide-section .fabric-category-list .w-grid-item.fabric-category-active .w-vwrapper,
body .fabric-guide-section .fabric-category-list .w-grid-item.is-selected .w-vwrapper{
  border:2px solid #c8a078!important;
  box-shadow:0 8px 26px #38402826!important;
  box-sizing:border-box!important;
}


/* Wider mobile category cards with spacing sized to the 78% track */
@media (max-width:600px){
  body .fabric-guide-section .fabric-category-list .w-grid-list{
    grid-auto-columns:78%!important;
    gap:12px!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-list>.w-grid-item{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item-h{
    width:100%!important;
    min-width:0!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  body .fabric-guide-section .fabric-category-list .w-vwrapper{
    gap:5px!important;
    padding:0 0 10px!important;
    min-height:0!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_title{
    padding:4px 12px 0!important;
    font-size:14px!important;
    line-height:1.3!important;
    min-height:0!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_content{
    padding:0 12px!important;
    font-size:11px!important;
    line-height:1.4!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    width:auto!important;
    margin:0 10px!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product{
    min-width:0!important;
    grid-template-rows:64px auto auto!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-image{
    width:100%!important;
    height:64px!important;
    aspect-ratio:auto!important;
    object-fit:cover!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-name{
    font-size:10px!important;
    line-height:1.25!important;
    overflow-wrap:anywhere!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-price{
    font-size:9.5px!important;
    white-space:normal!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-btn{
    width:calc(100% - 24px)!important;
    min-height:36px!important;
    margin:6px 12px 0!important;
    box-sizing:border-box!important;
  }
}


/* Align all mobile category-card sections and anchor buttons to a shared baseline */
@media (max-width:600px){
  body .fabric-guide-section .fabric-category-list .w-grid-item-h,
  body .fabric-guide-section .fabric-category-list .w-vwrapper{
    height:100%!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    box-sizing:border-box!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_title{
    display:flex!important;
    align-items:center!important;
    min-height:42px!important;
    height:42px!important;
    box-sizing:border-box!important;
  }
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_content{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    min-height:38px!important;
    height:38px!important;
    max-height:38px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-products{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:start!important;
    height:104px!important;
    min-height:104px!important;
    margin-top:6px!important;
    box-sizing:border-box!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product{
    display:grid!important;
    grid-template-rows:64px 26px 14px!important;
    align-content:start!important;
    height:104px!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-image{
    width:100%!important;
    height:64px!important;
    aspect-ratio:auto!important;
    object-fit:cover!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-name{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    height:26px!important;
    margin:4px 0 0!important;
    line-height:1.2!important;
    overflow:hidden!important;
  }
  body .fabric-guide-section .fabric-category-list .fabric-mini-product-price{
    height:14px!important;
    margin:2px 0 0!important;
    line-height:12px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }
  body .fabric-guide-section .fabric-category-list .w-vwrapper>.w-btn-wrapper,
  body .fabric-guide-section .fabric-category-list .w-vwrapper>.w-btn{
    margin-top:auto!important;
  }
  body .fabric-guide-section .fabric-category-list .w-vwrapper .w-btn{
    width:calc(100% - 24px)!important;
    min-height:36px!important;
    height:36px!important;
    margin-inline:12px!important;
    margin-bottom:12px!important;
    box-sizing:border-box!important;
  }
}


/* Mobile product-preview gap */
@media (max-width:600px){
  body .fabric-guide-section .fabric-category-list .fabric-mini-products{
    gap:5px!important;
  }
}


/* Mobile vertical-wrapper spacing */
@media (max-width:600px){
  body .fabric-guide-section .fabric-category-list .w-vwrapper{
    --vwrapper-gap:5px!important;
  }
}


/* Mobile vertical-wrapper spacing override */
@media (max-width:600px){
  body .fabric-guide-section .fabric-category-list .w-vwrapper{
    --vwrapper-gap:3.5px!important;
    gap:3.5px!important;
  }
}


/* Grid column spacing */
.g-cols.via_grid.type_default{
  gap:1rem!important;
}


/* Compact mobile product-card information area */
@media (max-width:600px){
  body .fabric-guide-section .fabric-category-products-shared .w-grid-item-h > .w-vwrapper{
    display:flex!important;
    flex-direction:column!important;
    gap:3px!important;
    min-height:5.5rem!important;
    height:auto!important;
    padding:0.45rem!important;
    box-sizing:border-box!important;
  }
  body .fabric-guide-section .fabric-category-products-shared .w-grid-item-h > .w-post-elm.post_title{
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    font-size:0.85rem!important;
    line-height:1.25!important;
  }
  body .fabric-guide-section .fabric-category-products-shared .meter-price-regular,
  body .fabric-guide-section .fabric-category-products-shared .meter-price-sale{
    margin:0!important;
    line-height:1.25!important;
  }
  body .fabric-guide-section .fabric-category-products-shared .fabric-card-colors{
    margin:0!important;
    line-height:1!important;
  }
}


/* Scope the compact information styling to the white details wrapper only */
@media (max-width:600px){
  body .fabric-guide-section .fabric-category-products-shared .w-grid-item-h > .w-vwrapper:last-child{
    gap:3px!important;
    min-height:5.5rem!important;
    height:auto!important;
    padding:0.45rem!important;
    box-sizing:border-box!important;
  }
  body .fabric-guide-section .fabric-category-products-shared .w-grid-item-h > .w-vwrapper:not(:last-child){
    gap:0!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
  }
}


/* Keep the selected-category product list consistent with the shared 6px spacing */
@media (max-width:600px){
  body .fabric-guide-section .fabric-category-products-shared .w-grid-item-h > .w-vwrapper:last-child{
    gap:6px!important;
  }
}


/* 5px breathing room above archive variation image swatches */
body.home .wvs-archive-product-wrapper .wvs-archive-variations-wrapper{
  margin-top:5px!important;
}
body .fabric-guide-section .fabric-category-products-shared .fabric-card-colors{
  margin-top:5px!important;
}

/* Product cards: follow the page language direction instead of centering */
.fabric-card-colors{
  justify-content:flex-start!important;
  text-align:start!important;
  direction:inherit!important;
}
body.home article.wvs-archive-product-wrapper .w-grid-item-h > .w-vwrapper.usg_vwrapper_1,
body.home article.wvs-archive-product-wrapper .w-grid-item-h > .w-vwrapper.usg_vwrapper_1 .post_title,
body.home article.wvs-archive-product-wrapper .w-grid-item-h > .w-vwrapper.usg_vwrapper_1 .product_field.price,
body.home article.wvs-archive-product-wrapper .wvs-archive-variations-wrapper{
  text-align:start!important;
  direction:inherit!important;
}
body.home article.wvs-archive-product-wrapper .wvs-archive-variations-wrapper ul.variable-items-wrapper{
  justify-content:flex-start!important;
  direction:inherit!important;
}
body .fabric-category-products-shared .meter-price-regular,
body .fabric-category-products-shared .meter-price-sale,
body .fabric-category-products-shared .post_title{
  text-align:start!important;
  direction:inherit!important;
}

/* Close button inside the expanded Fabric Products Panel */
body .fabric-guide-section .fabric-products-panel .vc_column-inner {
  position: relative !important;
}

.gimsh-panel-close-btn {
  position: absolute !important;
  top: 18px !important;
  left: 20px !important;
  z-index: 10 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  min-height: 36px !important;
  background-color: transparent !important;
  border: 1px solid #9e9689 !important;
  border-radius: 10px !important;
  color: #2b3323 !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

html[lang^="en"] .gimsh-panel-close-btn {
  left: auto !important;
  right: 20px !important;
}

.gimsh-panel-close-btn:hover {
  background-color: rgba(56, 64, 40, 0.08) !important;
  border-color: #384028 !important;
  color: #384028 !important;
}

.gimsh-panel-close-btn .gimsh-close-icon {
  font-size: 1.15rem !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  display: inline-block !important;
}

@media (max-width: 600px) {
  .gimsh-panel-close-btn {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-self: flex-start !important;
    margin: 8px 0 12px 0 !important;
    padding: 5px 12px !important;
    min-height: 32px !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
  }
  html[lang^="en"] .gimsh-panel-close-btn {
    left: auto !important;
    right: auto !important;
  }
  body .fabric-guide-section .fabric-products-panel h3,
  body .fabric-guide-section .fabric-products-panel h2 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ==========================================================================
   Category Card Baseline Alignment (Desktop & Mobile) & Mobile Overflow Fix
   ========================================================================== */

/* Desktop & Mobile: Make category card wrappers stretch to equal height in the grid */
body .fabric-guide-section .fabric-category-list .w-grid-list {
  align-items: stretch !important;
}

body .fabric-guide-section .fabric-category-list .w-grid-item,
body .fabric-guide-section .fabric-category-list .w-grid-item-h {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Override Impreza's .w-vwrapper.align_right { align-items: flex-end } so children don't overflow left! */
body .fabric-guide-section .fabric-category-list .w-grid-item .w-vwrapper {
  flex: 1 1 auto !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

/* Post content is a sibling BEFORE .gimsh-term-mini-products-row inside .w-vwrapper */
body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Push .gimsh-term-mini-products-row to the bottom above .w-btn so all 3 cards align horizontally */
body .fabric-guide-section .fabric-category-list .w-grid-item .gimsh-term-mini-products-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  margin-top: auto !important;
  padding-top: 10px !important;
  margin-bottom: 8px !important;
}

body .fabric-guide-section .fabric-category-list .w-grid-item .gimsh-term-mini-item {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body .fabric-guide-section .fabric-category-list .w-grid-item .w-vwrapper > .w-btn,
body .fabric-guide-section .fabric-category-list .w-grid-item .w-vwrapper > .w-btn-wrapper {
  margin-top: 0 !important;
  flex-shrink: 0 !important;
}

/* Mobile-specific card containment & mini-product sizing so nothing overflows the card */
@media (max-width: 600px) {
  body .fabric-guide-section .fabric-category-list .w-grid-item .w-post-elm.post_content {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    padding: 0 12px !important;
    min-height: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    flex: 0 0 36px !important;
  }

  body .fabric-guide-section .fabric-category-list .w-grid-item .gimsh-term-mini-products-row {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: auto 12px 6px 12px !important;
    padding: 4px 0 0 0 !important;
    gap: 6px !important;
  }

  body .fabric-guide-section .fabric-category-list .w-grid-item .gimsh-term-mini-thumb {
    aspect-ratio: 16 / 10 !important;
    border-radius: 6px !important;
    margin-bottom: 4px !important;
  }

  body .fabric-guide-section .fabric-category-list .w-grid-item .gimsh-term-mini-title {
    font-size: 10px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
  }

  body .fabric-guide-section .fabric-category-list .w-grid-item .gimsh-term-mini-pricing-row {
    gap: 2px !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .fabric-guide-section .fabric-category-list .w-grid-item .gimsh-term-mini-price {
    font-size: 9px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body .fabric-guide-section .fabric-category-list .w-grid-item .gimsh-term-mini-flag {
    padding: 1px 2px !important;
    flex-shrink: 0 !important;
  }

  body .fabric-guide-section .fabric-category-list .w-grid-item .gimsh-term-mini-flag .gimsh-flag-svg,
  body .fabric-guide-section .fabric-category-list .w-grid-item .gimsh-term-mini-flag .gimsh-flag-img {
    width: 11px !important;
    height: 7.5px !important;
  }
}




/* Ensure [hidden] items in subcategory-filtered grids are strictly hidden */
.fabric-category-products-shared .w-grid-item[hidden],
.fabric-guide-section .w-grid-item[hidden] {
    display: none !important;
}
