body{
    background-color:#fffefb !important;
    --accent: #7EB940;   
    --ink: #272726;
    --bar: #f2f0e4;
    --bg: #fffefb;
    --hov: #65A833;
}

.hero-section,.woo-listing-top{
  display: none !important;
}

ul.products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 50px;
}

.shop-sidebar{
    background-image:url('/wp-content/themes/blocksy-child/assets/sfondo-contatti.webp');
    background-position:center;
    background-size:cover;
    position: relative;
}

.shop-sidebar .filter-group h3 {
  font-size: 18px;
  cursor: pointer;
  margin-top:20px;
}

.shop-sidebar .filter-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  pointer-events: none;
}

.shop-sidebar .filter-options.active {
  max-height: 500px;
  pointer-events: auto;
}

.shop-sidebar label {
  display: block;
}
.immagine-filtri{
    width:120px;
    position: absolute;
    bottom:-20px;
    right:-20px;
}

.shop-page {
  font-family: 'Montserrat', sans-serif;
}
.shop-top{
    margin-top:30px;
    padding:60px 0;
    background-image:url('/wp-content/themes/blocksy-child/assets/sfondo-shop.webp');
    background-size:100%;
    background-repeat:no-repeat;
    background-position:bottom;
}

.shop-title {
  text-align: center;
  font-size: 90px;
  color: var(--accent);
  margin-bottom: 0px;
  font-weight: 1000;
}

.shop-categories {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.shop-categories a {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.shop-categories a.active,
.shop-categories a:hover {
  color: #4c8f2b;
  text-decoration: underline;
}

.shop-sidebar {
  flex: 1 1 250px;
  background-color: var(--bar);
  padding: 30px;
  border-radius: 28px;
}

.shop-products {
  flex: 10;
  margin:50px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.products > li {
  width: 100%;
}

.shop-bottom-banner {
    background-image:url('/wp-content/themes/blocksy-child/assets/sfondo-3.webp');
    background-position:bottom left;
    background-repeat:no-repeat;
  display: flex;
  flex-direction:row !important;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 50px;
}

.shop-bottom-banner .banner-box {
  background-color: var(--bar);
  border-radius: 28px;
  position: relative;
  display: flex;
}
.punti-vendita{
    padding:40px;
    position:relative;
    background-image:url('/wp-content/themes/blocksy-child/assets/punti-vendita.webp');
    background-position:center;
    background-size:cover;
}
.box-banner-box{
    flex:1;
    padding-bottom:40px;
}
.acquista-calze{
    flex:2;
    background-image:url('/wp-content/themes/blocksy-child/assets/acquista.webp');
    background-position:center;
    background-size:cover;
}
.acquista-calze .banner-content{
    padding:40px;
}
.punti-vendita .illustrazione-punti{
    position:absolute;
    width:25%;
    bottom:-50px;
    right:30px;
}
.banner-content-title{
    display:flex;
    align-items:start;
    gap:20px;
}

.shop-bottom-banner .banner-content h3 {
  font-size: 40px;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.1;
}

.shop-bottom-banner .banner-content p {
  font-size: 18px;
  color: #333;
  margin-bottom: 30px;
}

.banner-button {
  background-color: var(--accent);
  padding: 15px 30px;
  border-radius: 16px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.banner-button:hover {
  background-color: #65a833;
  color:#fff;
}
.banner-box h3{
    font-weight:1000;
}

.banner-box .bottom-deco {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 100px;
}

.banner-box .icon {
  width: 60px;
  height: auto;
  margin-bottom: 20px;
}
.acquista-calze{
    display:flex;
}
.acquista-calze div{
    flex:1;
}
.img-box{
    background-image:url('/wp-content/themes/blocksy-child/assets/acquista-le-calze.webp');
    background-position:center;
    border-radius:0 28px 28px 0;
}

.product {
  background: var(--bar);
  border-radius: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}
.product .entry-meta{
  display:none;
}
.product figure{
  margin:0;
}
.product h2 {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 10px;
}
.product h2 a:hover{
  color:var(--hov);
}
.product .ct-woo-card-actions{
  margin-left:auto;
}
.product .ct-woo-card-actions a{
  background-color:var(--accent);
  text-transform:capitalize;
  border-radius:999px;
}
.product .ct-woo-card-actions a:hover{
  background-color:var(--hov);
}
.product .price{
  font-size:1.5rem !important;
  font-weight:light !important;
}
.custom-product-info{
  padding:0 20px 20px;
}
.custom-info-bottom{
  display:flex;
}

.carousel-product-item .product-image img {
  width: 100%;
  height: auto;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.carousel-product-item .product-info {
  padding: 0 20px;
}

.carousel-product-item .woocommerce-loop-product__title {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  margin: 10px 0;
}

.carousel-product-item .price {
  font-size: 1.5rem;
  color: var(--ink);
  display: inline-block;
  margin-right: auto;
  font-weight: 250;
}

.carousel-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 20px;
}

.carousel-add-to-cart .button {
  background-color: #65a833;
  color: white;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
  border: none;
  transition: background 0.3s ease;
  margin-left: auto;
}

.carousel-add-to-cart .button svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.shop-controls {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 15px 50px;
    flex-wrap: wrap;
}
.shop-filters, .shop-ordering {
    display: flex;
    align-items: center;
}
.dropdown-wrapper .search-field-container {
    display: none !important;
}

.ct-pagination{
  display:none !important; 
}
#csf-load-more{
  border-radius: 999px;
  background-color:#7EB940;
  display: block;
  margin: 40px auto 0;   
  width: fit-content; 
}
#csf-load-more:hover{
  background-color:#65A833;
}


.product-attr--filato {
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--ink);            
  line-height: 1.3;
}
.product-attr--filato a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;   
}

@media (max-width: 2000px) {
    ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1150px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    ul.products {
        grid-template-columns: 1fr;
    }
}

.product figure{
  margin: 0 !important;
}
.custom-product-info{
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  background: #F2F0E4;
  padding: 20px;
  gap: 10px;
}
.price{
  font-weight: 500 !important;
}
.price span{
  font-size: 20px !important;
}
.guida-taglie {
  position: relative;      
  padding-bottom: 150px;   
}
.guida-taglie-container{
    display:flex;
    gap:50px;
    padding:0 50px 0 350px;
}
.guida-taglie-container div{
    position:relative;
    z-index: 1;
    background-color: #F2F0E4;
    background-image:url('/wp-content/themes/blocksy-child/assets/guida-taglie.webp');
    background-size:cover;
    border-radius:28px;
    padding:50px;
}
.guida-taglie .back-img{
    position: absolute;
    left:150px;
    bottom: -20px;            
    height:400px;
    width: 80%;
    max-width: none;
    opacity: 1;          
    pointer-events: none;
    z-index: 0;
}
.guida-taglie p{
  margin-bottom: 50px !important;
}
.guida-taglie .bottone{
    background-color:#7EB940;
    color:#fff;
    padding:15px 30px;
    border-radius:28px;
}
.guida-taglie .bottone:hover{
    background-color:#60922C;
    color:#fff;
}

@media (max-width: 1224px){
  .guida-taglie-container{
    display:flex;
    gap:50px;
    padding:0 50px;
  }
}

@media (max-width: 1024px){
  .shop-bottom-banner,.acquista-calze{
    flex-direction: column !important;
  }
  .img-box{
    width: 100%;
    min-height: 340px !important;
    border-radius: 0 0 28px 28px !important;
    background-position: center !important;
  }
  .acquista-calze{
    margin-bottom: 50px !important;
  }
  .shop-bottom-banner{
    padding: 20px !important;
  }
  /*.shop-products{
    margin-left: 20px;
    margin-right: 20px;
  }*/
}

@media (max-width: 900px){
  .shop-controls {
    margin: 15px 30px;
  }
  .guida-taglie .back-img{
    display: none;
  }
  .guida-taglie-container{
    display:flex;
    gap:50px;
    padding:0 20px;
  }
  .csf-panel{
    position: fixed !important;         
    top: 0; left: 0; right: 0 !important;
    width: 100vw !important; max-width: 100vw !important; min-width: 0;
    margin: 0;              
    border-radius: 0 0 12px 12px !important;
    padding: 16px clamp(12px, 4vw, 24px) !important;
    box-sizing: border-box;
    max-height: 90vh !important;     
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
  }
  .csf-columns{
    flex-direction: column;
    max-height: unset;
    gap: 16px;
  }
  .csf-left{
    min-width: 0;        
    max-height: none;
    border-right: 0;
  }
  .csf-right{
    width: 100%;
    position: static; top: auto;
    height: auto;
    padding-top: 0;
  }
  .csf-price-filter .noUi-target{ width: 100%; }
}

@media (max-width: 768px){
  .img-box{
    width: 100%;
    min-height: 240px !important;
    border-radius: 0 0 28px 28px !important;
    background-position: center !important;
  }
  .guida-taglie-container{
    flex-direction: column-reverse !important;
  }
  .shop-controls {
    margin: 15px 20px;
  }
}

@media (max-width: 480px){
  .csf-toggle{ width: 100%; justify-content: space-between; }
  .csf-panel{ padding: 14px max(12px, env(safe-area-inset-left)) 16px max(12px, env(safe-area-inset-right)); }
}

.csf-close{
  display: none !important;
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer !important;
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background-color: #7EB940;
  color: #fff;
}

@media (max-width: 900px){
  .csf-close{ display: inline-flex !important; }
  .guida-taglie{
    padding-bottom: 50px;
  }
}

.csf-price-slider{
  max-width: 90% !important;
}
.csf-attribute .csf-attr-toggle,
.csf-terms .csf-term span,
.csf-terms .csf-swatch-label + span,
.csf-toggle {
  color: #474a51;
}
.csf-terms .csf-term input[type="checkbox"]{
  accent-color: #7EB940;
}
.csf-terms .csf-term input[type="checkbox"]{
  width: 18px;
  height: 18px;
}
.csf-terms .csf-term input[type="checkbox"]:checked + span{
  color: #7EB940;
  font-weight: 600;
}
