body{
    background-color:#fffefb;
}
article{
    width:100% !important;
    max-width: 100% !important;
    margin:0 !important;
    padding: 0 !important;
}
.flexy-pills[data-type="thumbs"] ol{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:0; margin:10px 0 0; list-style:none;
}
.flexy-pills[data-type="thumbs"] ol li{
  flex:0 0 auto; 
  width:10px;
  height:10px;
  min-width:10px;
  max-width:10px;
  border-radius:50%;
  background:#F2F0E4;
  padding:0;
  margin:0; overflow:hidden;
  box-sizing:content-box;
  cursor:pointer;
}
.flexy-pills[data-type="thumbs"] ol li.active{
  background:#ccc;
}
.flexy-pills[data-type="thumbs"] ol li span,
.flexy-pills[data-type="thumbs"] ol li img{
  display:none;
}

.product_title{
    margin:0;
}
.tnp-fiber-inline{
    margin-bottom:20px;
}
.tnp-fiber-inline a{
    color:#272726;
}
.tnp-fiber-inline a:hover{
    color:#7EB940;
}
#wc-stripe-express-checkout-element{
    display:none;
}
.hero-section{
    margin-top: 50px;
}
.tnp-grid{
    display:grid !important;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr) !important;
    gap: 150px;
    align-items: start;
    margin:50px 50px 100px 100px;
}
.tnp-col{
    align-self:center;
}
.tnp-grid > * { min-width: 0; }
.tnp-col {
  align-self: auto;
}
.tnp-col--gallery { grid-column: 1; grid-row: 1; }
.tnp-col--summary { grid-column: 2; grid-row: 1; }
.tnp-grid .woocommerce-product-gallery,
.tnp-grid .summary.entry-summary,
.single-product .product .woocommerce-product-gallery,
.single-product .product .summary {
  float: none;
  clear: none;
  width: auto;
  max-width: 100%;
  margin: 0;
  display: block;
  box-sizing: border-box;
}
:root { --sticky-top: 90px; }
.tnp-gallery-stick{
  position: sticky;
  top: var(--sticky-top);
}
.tnp-col--gallery .woocommerce-product-gallery{ width:100%; }
.tnp-col--gallery .woocommerce-product-gallery__image img{
  display:block; max-width:100%; height:auto !important;
}
.tnp-full-description{
    margin-top:20px;
}
.tnp-accordions{
  --tnp-primary: #7EB940;
  --tnp-accent:  #DEDBC7;
  --tnp-bg:      #fff;
  --tnp-text:    #272726; 
  --tnp-muted:   #F2F0E4; 
  --tnp-border:  #F2F0E4;
}

.tnp-acc{
  border:1px solid var(--tnp-border);
  background:var(--tnp-bg);
  border-radius:16px;
  overflow:hidden;
  transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.tnp-acc + .tnp-acc{ margin-top:12px; }

.tnp-acc summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:14px 16px;
  font-weight:600;
  color:var(--tnp-text);
  position:relative;
}
.tnp-acc summary::-webkit-details-marker{ display:none; }

.tnp-acc summary::after{
  content:"";
  margin-left:auto;
  width:10px; height:10px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
  transition:transform .25s ease;
  opacity:.9;
}
.tnp-acc[open] summary::after{
  transform:rotate(135deg);
}

.tnp-acc[open]{
  border-color:var(--tnp-accent);
}

.tnp-acc summary:focus{ outline:none; }
.tnp-acc summary:focus-visible{
  border-radius:12px;
}

.tnp-acc .tnp-acc-body{
  max-height:0;
  overflow:hidden;
  padding:0 16px;
  color:#374151;
  line-height:1.65;
  transition:max-height .3s ease, padding .3s ease;
}
.tnp-acc[open] .tnp-acc-body{
  max-height:1000px;         
  padding:0 16px 16px;
}

.tnp-acc .tnp-acc-body h4{ margin:.75rem 0 .25rem; font-size:1rem; }
.tnp-acc .tnp-acc-body p{ margin:.5rem 0; }
.tnp-acc .tnp-acc-body ul{ margin:.5rem 0 .5rem 1.25rem; }

.tnp-acc .tnp-term h4{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.25rem .5rem; border-radius:999px;
  background:var(--tnp-muted); color:var(--tnp-primary) !important;
  font-weight:600;
}
textarea:focus{
    border:1px solid #F2F0E4;
}
.form-submit button{
    background-color: #7EB940;
    color: white;
    border: none;
    transition: background 0.3s ease;
}
.form-submit button:hover{
    background-color: #65A833;
}
.tnp-accordions{ margin-top:18px; }

.tnp-related{
        margin:50px 50px 150px;
        padding:50px;
        background-color:#F2F0E4;
        background-image:url('/wp-content/themes/blocksy-child/assets/sfondo-prodotti-interessati.webp');
        border-radius:25px;
        background-position:center;
        background-size:cover;
    }
    .related.products{
        display:flex;
        align-items:center;
        position:relative;
        z-index: 10;
        gap:20px;
    }
    .tnp-related__title{
        color:#7EB940;
        font-size:2.5rem;
        font-weight:800;
    }
    .tnp-related .product {
        background: #fff;
        border-radius: 28px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        margin: 0;
    }
    .product .entry-meta{
        display:none;
    }
    .product figure{
        margin:0;
    }
    .product a img {
        width: 100%;
        min-height: 100% !important;
        object-fit: cover;
        border-radius:25px 25px 0 0;
    }
    .product h2 {
        font-size: 1.5rem;
        color: #65a833;
        font-weight: 700;
        margin: 0 0 10px;
    }
    .product h2 a:hover{
        color:#67942f;
    }
    .product .ct-woo-card-actions{
        margin-left:auto;
    }
    .product .ct-woo-card-actions a{
        background-color:#7EB940;
        text-transform:capitalize;
        border-radius:999px;
    }
    .product .ct-woo-card-actions a:hover{
        background-color:#67942f;
    }
    .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: #7EB940;
        font-weight: 700;
        margin: 10px 0;
    }
    .carousel-product-item .price {
        font-size: 1.5rem;
        color: #272726;
        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;
    }
    .correlati-img{
        position:absolute;
        z-index: -1;
        bottom:-200px;left:-50px;
        width:80%;
    }
    .ct-breadcrumbs{
      margin: auto 50px;
    }

    .metodi-di-pagamento{
      display: flex;
    }
    .metodi-di-pagamento img{
      max-width: 60px;
    }

    .single_add_to_cart_button,.added_to_cart{
      border-radius: 999px !important;
    }

    @media screen and (max-width: 1250px) {
      .tnp-col--summary{
        width: 100%;
      }
      .related.products{
        flex-direction:column;
      }
      .tnp-grid{
        display:grid !important;
        grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr) !important;
        gap: 50px;
        align-items: start;
        margin:50px 50px 100px 50px;
      }
      .correlati-img{
        bottom:-200px;left:-0px;
      }
    }
    


.product-entry-wrapper.is-width-constrained {
    display: contents !important;
    overflow: visible !important;
}
.product .price{
  font-size:1.5rem !important;
  font-weight:light !important;
}
.custom-product-info{
  padding:0 20px 20px;
  border-radius: 28px;
}
.custom-info-bottom{
  display:flex;
}
.woocommerce-product-gallery .flexy-view{
  aspect-ratio: 4 / 5;
}

@media (max-width: 991px){
      .tnp-grid{
        display:flex !important;
        flex-direction:column;
        gap: 24px; margin:50px 30px;
      }
      .tnp-col--gallery, .tnp-col--summary{ grid-column: 1 !important; }
      .tnp-gallery-stick{ position: static; top: auto; min-width: 100% !important;}
      .tnp-gallery-stick img{
        min-width: 100% !important;
      }
      .tnp-related{
        margin:50px 20px 100px;
        padding: 20px;
      }
      .correlati-img{
        display: none;
      }
    }
    @media screen and (max-width: 767px) {
      .tnp-grid{
        margin:50px 20px;
      }
    }


.tnp-crm__btn{
  margin-top:.5rem; background:none; border:0; padding:0;
  cursor:pointer; text-decoration:underline; font-weight:600;
  color: var(--link-color, #7EB940);
}
