.elementor-4849 .elementor-element.elementor-element-015f7a2{--display:flex;}/* Start custom CSS for shortcode, class: .elementor-element-835806a *//* =========================================================
   AA WC CATALOG – FIX PRODOTTI + DRAWER MOBILE (STABILE)
========================================================= */

.aa-wc-catalog{
  --aa-accent: #ada800;
  --aa-accent-rgb: 173,168,0;
  --aa-text: #000;
  --aa-muted: rgba(0,0,0,.65);
  --aa-border: rgba(0,0,0,.12);

  --aa-radius-lg: 18px;
  --aa-radius-sm: 12px;

  --aa-shadow-sm: 0 8px 20px rgba(0,0,0,.08);
  --aa-shadow-md: 0 16px 42px rgba(0,0,0,.12);

  --aa-trans: 220ms cubic-bezier(.2,.8,.2,1);

  font-family: Lato, sans-serif;
  color: var(--aa-text);
}

/* =========================================================
   LAYOUT DESKTOP
========================================================= */

.aa-wc-catalog__layout{
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1025px){
  .aa-wc-catalog__sidebar{
    position: sticky;
    top: 110px;
  }
}

/* =========================================================
   FILTRI (desktop/tablet)
========================================================= */

.aa-wc-catalog__bar{
  background: #fff;
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius-lg);
  padding: 18px;
  box-shadow: var(--aa-shadow-sm);
}

.aa-wc-catalog__filters{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.aa-wc-catalog__field{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius-sm);
  background: rgba(255,255,255,.96);
}

.aa-wc-catalog__label{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--aa-muted);
}

.aa-wc-catalog__field select,
.aa-wc-catalog__field input[type="number"]{
  border: none !important;
  outline: none !important;
  background: #fff !important;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
  font-family: Lato, sans-serif;
}

/* Prezzo min sopra / max sotto */
.aa-wc-catalog__price{ display:flex; flex-direction:column; gap:10px; }
.aa-wc-catalog__price span{ display:none; }

/* Switch inline */
.aa-wc-catalog__switch{
  width: calc(50% - 6px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.aa-wc-catalog__switch input{ accent-color: var(--aa-accent); }
.aa-wc-catalog__switchText{ font-weight: 800; }

/* Actions */
.aa-wc-catalog__actions{
  width: 100%;
  display: flex;
  gap: 10px;
}

.aa-wc-catalog__btn{
  flex: 1;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  cursor: pointer;
  transition: transform var(--aa-trans), box-shadow var(--aa-trans);
}
.aa-wc-catalog__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}
.aa-wc-catalog__btn--primary{ background: var(--aa-accent); }

.aa-wc-catalog__meta{
  margin-top: 14px;
  text-align: center;
  color: var(--aa-muted);
  font-weight: 600;
}

/* =========================================================
   PRODOTTI – FIX width + typography + cards premium
   (qui ripristiniamo “si vedono bene”)
========================================================= */

/* Forziamo la griglia correttamente anche se il tema mette width strane */
.aa-wc-catalog .products{
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(var(--aa-cols, 3), minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Se il tema mette float/width sui li */
.aa-wc-catalog .products li.product{
  width: 100% !important;
  float: none !important;
  list-style: none !important;
  margin: 0 !important;

  background: #fff;
  border-radius: var(--aa-radius-lg);
  border: 1px solid rgba(0,0,0,.12);
  overflow: hidden;
  position: relative;

  box-shadow: var(--aa-shadow-sm);
  transition: transform var(--aa-trans), box-shadow var(--aa-trans), border-color var(--aa-trans);
}
.aa-wc-catalog .products li.product:hover{
  transform: translateY(-4px);
  box-shadow: var(--aa-shadow-md);
  border-color: rgba(var(--aa-accent-rgb), .28);
}

/* Immagine uniforme */
.aa-wc-catalog .products li.product a img{
  width: 100% !important;
  height: 255px !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}
.aa-wc-catalog .products li.product:hover a img{
  transform: scale(1.04);
}

/* Padding contenuti */
.aa-wc-catalog .products li.product > *{
  padding-left: 16px;
  padding-right: 16px;
}

/* Titolo e prezzo centrati */
.aa-wc-catalog .woocommerce-loop-product__title{
  font-family: Lato, sans-serif !important;
  text-align: center !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  margin: 14px 0 6px !important;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.aa-wc-catalog .price{
  display: flex !important;
  justify-content: center !important;
  align-items: baseline !important;
  gap: 8px !important;

  text-align: center !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  margin: 0 0 12px !important;
  color: #000 !important;
}

/* sale badge */
.aa-wc-catalog span.onsale{
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  background: rgba(var(--aa-accent-rgb), .92) !important;
  color: #000 !important;
  font-weight: 900 !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
  z-index: 2;
}

/* featured badge (se presente dal PHP/JS hook) */
.aa-wc-catalog .aa-featured-badge{
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(var(--aa-accent-rgb), .45);
  color: #000;
  font-weight: 900;
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  z-index: 2;
}

/* CTA */
.aa-wc-catalog .button,
.aa-wc-catalog .add_to_cart_button{
  margin: 10px auto 18px !important;
  width: calc(100% - 32px) !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0,0,0,.14) !important;
  background: #fff !important;
  color: #000 !important;
  font-weight: 900 !important;
  padding: 13px 14px !important;
  text-align: center !important;

  transition: transform var(--aa-trans), box-shadow var(--aa-trans), background var(--aa-trans), border-color var(--aa-trans);
}

.aa-wc-catalog .products li.product:hover .button,
.aa-wc-catalog .products li.product:hover .add_to_cart_button{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
  border-color: rgba(var(--aa-accent-rgb), .45) !important;
  background: rgba(var(--aa-accent-rgb), .16) !important;
}

/* Pagination wrapper */
.aa-wc-catalog__pagination{
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* =========================================================
   RESPONSIVE PRODUCTS
========================================================= */

@media (max-width: 1024px){
  .aa-wc-catalog__layout{ grid-template-columns: 1fr; }
  .aa-wc-catalog__sidebar{ position: static; }

  .aa-wc-catalog .products{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
  .aa-wc-catalog .products li.product a img{ height: 230px !important; }
}

@media (max-width: 680px){
  .aa-wc-catalog .products{
    grid-template-columns: 1fr !important;
  }
  .aa-wc-catalog .products li.product a img{ height: 210px !important; }
  .aa-wc-catalog__switch{ width: 100%; }
}

/* =========================================================
   MOBILE DRAWER OVERLAY – full/near-full width + close button
   (UNICA versione, niente display:none)
========================================================= */

.aa-wc-catalog__mobileFiltersBtn,
.aa-wc-catalog__filtersOverlay,
.aa-wc-catalog__drawerClose{
  display: none;
}

@media (max-width: 680px){

  /* Bottone Filtri (creato dal JS) */
  .aa-wc-catalog__mobileFiltersBtn{
    display: flex;
    width: 100%;
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
    color: #000;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .aa-wc-catalog__mobileFiltersBtn:before{
    content: "☰";
    font-size: 16px;
    opacity: .9;
  }

  /* Overlay */
  .aa-wc-catalog__filtersOverlay{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9998;
  }

  /* Drawer: più grande (quasi full screen) */
  .aa-wc-catalog__sidebar{
    position: fixed !important;
    top: 0;
    left: 0;

    width: min(92vw, 420px);
    height: 100vh;

    background: #fff;
    overflow-y: auto;

    padding: 16px;
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.25,.8,.25,1);

    z-index: 9999;
    box-shadow: 18px 0 50px rgba(0,0,0,.20);
  }

  /* Header drawer + close */
  .aa-wc-catalog__drawerHeader{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .aa-wc-catalog__drawerTitle{
    font-weight: 900;
    font-size: 16px;
  }
  .aa-wc-catalog__drawerClose{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
    cursor: pointer;
    font-weight: 900;
  }

  /* Aperto */
  .aa-wc-catalog.is-filters-open .aa-wc-catalog__sidebar{
    transform: translateX(0);
  }

  .aa-wc-catalog.is-filters-open .aa-wc-catalog__filtersOverlay{
    opacity: 1;
    pointer-events: auto;
  }

  body.aa-wc-lock{ overflow: hidden; }
}

@media (max-width: 680px){

  .aa-wc-catalog__filtersOverlay{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease;
    z-index:9998;
  }

  .aa-wc-catalog__sidebar{
    position:fixed !important;
    top:0;
    left:0;
    width:min(92vw, 420px);
    height:100vh;
    background:#fff;
    overflow-y:auto;
    padding:16px;
    transform:translateX(-102%);
    transition:transform .28s cubic-bezier(.25,.8,.25,1);
    z-index:9999;
    box-shadow:18px 0 50px rgba(0,0,0,.20);
  }

  .aa-wc-catalog.is-filters-open .aa-wc-catalog__sidebar{
    transform:translateX(0);
  }

  .aa-wc-catalog.is-filters-open .aa-wc-catalog__filtersOverlay{
    opacity:1;
    pointer-events:auto;
  }

  body.aa-wc-lock{ overflow:hidden; }

  /* Header drawer + close */
  .aa-wc-catalog__drawerHeader{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(0,0,0,.08);
  }
  .aa-wc-catalog__drawerTitle{
    font-weight:900;
    font-size:16px;
  }
  .aa-wc-catalog__drawerClose{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:999px;
    border:1px solid rgba(0,0,0,.14);
    background:#fff;
    cursor:pointer;
    font-weight:900;
  }
}/* End custom CSS */