/* ===== VALORI NUTRIZIONALI ===== */
.maidea-valori-nutrizionali {
  background-color: #ffffff;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  font-family: "AzoSans", Sans-serif;
  font-size: clamp(0.9rem, 1vw + 0.2rem, 1.1rem);
  color: #000000;
}

.maidea-lista-nutrizionale {
  margin: 0;
  padding: 0;
}

.maidea-lista-nutrizionale dt,
.maidea-lista-nutrizionale dd {
  margin: 0;
  padding: 10px 0;
}

.maidea-lista-nutrizionale div {    
  border-bottom: 1px solid #B2B2B2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.maidea-lista-nutrizionale div.double-row {
  border-bottom: none;
}

.maidea-lista-nutrizionale div.double-row dt,
.maidea-lista-nutrizionale div.double-row dd {
  padding-bottom: 0;
  margin-bottom: -10px;
}

.maidea-lista-nutrizionale div:last-of-type {
  border-bottom: none;
}

.maidea-lista-nutrizionale dt {
  font-weight: normal;
}

.maidea-lista-nutrizionale dd {
  font-weight: normal;
  text-align: right;
}

.maidea-lista-nutrizionale dt.testata,
.maidea-lista-nutrizionale dd.testata {
  font-weight: bold;   
  padding: 0 0 10px 0;
}

/* ===== FILTRI ===== */
.maidea-filtri {
  font-family: "AzoSans", Sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.maidea-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ANIMAZIONI */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* DESKTOP - 768px e oltre */
@media (min-width: 768px) {
  .maidea-filtri {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .maidea-filters {
    flex: 0 1 auto;
    display: flex;
    margin-bottom: 2rem;
  }

  .icona-filtri {
    display: none;
  }

  .maidea-select-wrap,
  #maidea-reset {
    display: flex !important;
  }
}

/* MOBILE - fino a 767px */
@media (max-width: 767px) {
  .maidea-filtri {
    flex-direction: column;
    align-items: stretch;
  }

  .icona-filtri {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 12px 0;
    margin-bottom: 1rem;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
  }

  .icona-filtri img {
    width: 22px;
    height: 22px;
  }

  .maidea-filters {
    display: none;
    margin-bottom: 0;
    opacity: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .maidea-filtri.active .maidea-filters {
    display: flex;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease forwards;
  }

  .maidea-select-wrap {
    flex: 1;
    min-width: 120px;
  }

  .maidea-select-wrap,
  #maidea-reset {
    display: none;
    opacity: 0;
  }

  .maidea-filtri.active .maidea-select-wrap,
  .maidea-filtri.active #maidea-reset {
    display: flex !important;
    animation: fadeIn 0.3s ease forwards;
  }

  .maidea-select {
    width: 100%;
    padding: 8px 30px 8px 14px;
    font-size: 14px;
  }

  .maidea-reset-btn {
    width: 100%;
    padding: 8px 14px;
  }
}

/* ===== SELECT STYLING ===== */
.maidea-select-wrap {
  position: relative;
  display: inline-block;
}

.maidea-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 5px 40px 5px 14px;
  font-size: 16px;
  border: 1px solid #C69C48;
  border-radius: 15px;
  background: #C69C48;
  cursor: pointer;
  color: #fff;
}

.maidea-select-wrap::after {
  content: "▼";
  font-size: 12px;
  color: #fff;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.maidea-reset-btn,
.maidea-reset-btn:focus {
  padding: 5px 14px;
  border: 1px solid #C69C48;
  background: #fff;
  color: #C69C48;
  cursor: pointer;
  border-radius: 15px;
}

.maidea-reset-btn:hover {
  border: 1px solid #C69C48;
  background: #C69C48;
  color: #fff;
}

/* ===== CATEGORIE HEADER ===== */
.maidea-cat-header {
  font-family: "NeutrafaceCondensed", Sans-serif;
  font-size: clamp(1.5rem, 2rem + 1vw, 3rem);
  font-weight: 300;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 2rem 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #CF9F54;
}

.maidea-cat-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .maidea-cat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .maidea-cat-icon {
    width: 40px;
    height: 40px;
  }

  .maidea-cat-title {
    font-size: clamp(1.2rem, 1.8rem + 1vw, 2rem);
    line-height: 1.4;
  }
}

/* ===== GRID PRODOTTI ===== */
.maidea-prodotti-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
}

@media (max-width: 1024px) {
  .maidea-prodotti-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .maidea-prodotti-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }
}

.maidea-cat-block {
  padding-bottom: 50px;
}

/* ===== SINGOLO PRODOTTO ===== */
.maidea-prodotto {
  text-align: center;
  font-family: "NeutrafaceCondensed", Sans-serif;  
  font-weight: 300;
  text-transform: uppercase;
  padding-bottom: 20px;
  position: relative;
}

.maidea-prodotto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(207, 159, 84, 0);
  transition: background-color 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.maidea-prodotto:hover::before {
  background-color: rgba(207, 159, 84, 0.25);
}

.maidea-prodotto-thumb {
  margin-bottom: 0;
}

.maidea-prodotto-thumb img {
  max-width: 100%;
  height: auto;
}

.maidea-prodotto-title {
  font-size: clamp(1.2rem, 1.2vw + 0.5rem, 1.3rem);
  margin: 0.5rem 0;
  line-height: 1.3;
}

.maidea-prodotto-price {
  font-weight: 700;
  font-size: clamp(1.3rem, 0.8vw + 0.9rem, 1.5rem);
}

/* ===== FOOTER PRODOTTO E CARRELLO ===== */
.maidea-prodotto-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  gap: 1rem;
}

.woocommerce div.product .add-to-cart-loop form.cart {
  margin-bottom: 0 !important;
}

.add-to-cart-loop .maidea-custom-cart {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* DESKTOP */
@media (min-width: 768px) {
  .maidea-prodotto-footer {
    flex-direction: row;
    justify-content: center;
  }

  .add-to-cart-loop {
    display: flex;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .maidea-prodotto-footer {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 0 10px;
  }

  .maidea-prodotto-price {
    text-align: center;
    padding-bottom: 0.5rem;
    order: 1;
  }

  .add-to-cart-loop {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    order: 2;
  }

  .maidea-custom-cart {
    flex-direction: row;
    gap: 0.8rem;
  }

  .maidea-qty-wrapper {
    order: 1;
    width: 100%;
  }

  .single_add_to_cart_button {
    order: 2;
    width: 100% !important;
  }
}

/* Pulsanti + e - */
.add-to-cart-loop .maidea-qty-btn {    
  font-family: 'AzoSans';
  font-size: 24px;
  width: 32px;
  height: 32px;
  line-height: 0;
  text-align: center;
  background: none;
  border: none;
  padding: 0 0 7px 0;
  cursor: pointer;
  font-weight: 400;
  color: #000 !important;
  transition: transform 0.2s ease;
}

.add-to-cart-loop .maidea-qty-btn:hover {
  transform: scale(1.1);
}

/* Input quantità */
.add-to-cart-loop .maidea-qty-wrapper input.qty {
  width: 30px;
  text-align: center;
  font-family: 'AzoSans' !important;
  font-weight: 300;
  font-size: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 32px;
  border: 0 !important;
  background: transparent;
  color: #000 !important;
}

/* Contenitore quantità */
.add-to-cart-loop .maidea-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

/* Pulsante carrello */
.add-to-cart-loop .single_add_to_cart_button {    
  width: 42px;
  height: 32px;
  background: #C69C48;
  padding: 3px 10px 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.add-to-cart-loop .single_add_to_cart_button:hover {
  background: #B08A36;
}

/* SVG dentro il pulsante */
.add-to-cart-loop .single_add_to_cart_button svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  transition: fill 0.3s ease;
}

.add-to-cart-loop .single_add_to_cart_button:hover svg {
  fill: #fff;
}

/* ===== MENU MAIDEA ===== */
.maidea-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.maidea-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.maidea-menu li {
  display: flex;
  flex-direction: column;
}

.maidea-menu a {
  text-decoration: none;
  color: #fff;
  font-family: "NeutrafaceCondensed", Sans-serif;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2em;
  transition: color 0.3s ease;
}

.maidea-menu a span.menu-title {
  color: #fff;
  font-size: clamp(25px, 3.5vw, 50px);
  line-height: 0.5;
  transition: color 0.3s ease;
}

.maidea-menu a span.menu-desc {
  color: #CF9F54;
  font-size: clamp(12px, 1.8vw, 24px);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.maidea-menu a:hover span.menu-title {
  color: #CF9F54;
}

.maidea-menu a:hover span.menu-desc {
  color: #fff;
}

/* ===== GRID PRODOTTI CATEGORIA ===== */
.prodotti-categoria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

.prodotto-item {
  text-align: center;
}

.prodotto-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.prodotto-titolo {
  margin: 10px 0 5px;
  font-size: clamp(18px, 25vw, 30px);
  font-family: "NeutrafaceCondensed", Sans-serif;
  font-weight: 300;
  transition: color 0.3s ease;
}

.prezzo {
  font-weight: bold;
}

.tema-light .prodotto-titolo {
  color: #000;
}

.tema-dark .prodotto-titolo {
  color: #fff;
}

.prodotto-item:hover .prodotto-titolo {
  color: #CF9F54;
}

@media (max-width: 1024px) {
  .prodotti-categoria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .prodotti-categoria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}