/* ============ Packs ============ */
.card-caja { position: relative; }

.radio-caja {
  position: absolute;
  top: -15px;
  right: 12px;
  width: 26px;
  height: 18px;
}

/* PACK seleccionado */
.amnu-pack-card.is-selected{
  outline: 3px solid #B75729;
  border-radius: 16px;
}
.amnu-pack-card .radio-caja{ opacity: 0; }
.amnu-pack-card.is-selected .radio-caja{ opacity: 1; }

/* ============ Card sabor ============ */
.card-sabor{
  background: #FFFBEE;
  border-radius: 16px;
  padding: 18px 16px;
  border: 1px solid #E0CDD3;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  height: 100%;
  box-sizing: border-box;
  position: relative; /* para tag */
}

.card-sabor:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.card-sabor img{
  width: 100%;
  max-width: 170px;
  height: auto;
  display: block;
  margin: 0 auto 14px auto;
}

.card-sabor p,
.card-sabor h6,
.card-sabor figure{ margin: 0; }

.card-sabor h6{
  color: #521526;
  margin: 0 0 12px 0;
  font-family: "Chivo", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Botón */
.card-sabor .wp-block-button{ margin: 0; }

.card-sabor .wp-block-button__link{
  background-color: #B75729;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1;
  display: inline-block;
}

/* Tags */
.tag-sabor{
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "Chivo", sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.tag-gluten{ background:#EADAB3; color:#521526; }
.tag-azucar{ background:#EADAB3; color:#521526; }
.tag-pistacho{ background:#93A35C; color:#FFFFFF; }

/* Agregar vs qty */
.card-sabor .qty-control{ display:none; }
.card-sabor .btn-agregar{ display:inline-block; }

.card-sabor.is-selected .btn-agregar{ display:none; }
.card-sabor.is-selected .qty-control{
  display:flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.qty-control .qty-btn .wp-block-button__link{
  background: #FDF7E5;
  color: #521526;
  border: 1px solid #E0CDD3;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  min-width: 44px;
}
.qty-control .qty-plus .wp-block-button__link{
  background: #B75729;
  color: #fff;
  border-color: #B75729;
}
.qty-control .qty-count{
  margin: 0;
  font-family: "Chivo", sans-serif;
  font-weight: 700;
  color:#521526;
}

/* Estado seleccionada */
.card-sabor.is-selected{
  background: #F4E1D2;
  border: 2px solid #B75729;
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

/* ============ Progress ============ */
.amnu-progress-wrapper{
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-family: "Chivo", sans-serif;
}
.amnu-progress-text{
  text-align: right;
  font-weight: 700;
  color: #521526;
  margin-bottom: 8px;
}
.amnu-progress-bar{
  width: 100%;
  height: 10px;
  background: #F4E1D2;
  border-radius: 999px;
  overflow: hidden;
}
.amnu-progress-fill{
  height: 100%;
  width: 0%;
  background: #B75729;
  transition: width 0.3s ease;
}

/* ============ Resumen (lista) ============ */
.amnu-summary-list { display: flex; flex-direction: column; gap: 18px; }
.amnu-summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}
.amnu-summary-left{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
.amnu-summary-img{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
}
.amnu-summary-name{ font-weight:700; }
.amnu-summary-sub{ opacity:.85; }
.amnu-summary-right{ font-weight:700; }

.amnu-summary-total{
  text-align: right;
  width: 100%;
  font-weight: 800;
  font-size: 24px;
  margin-left: auto;
}

/* ============ Resumen (card caja) ============ */
.resumen-caja{
  width: min(720px, 92%);
  margin: 24px auto 0 auto;
  padding: 26px 28px;
  background: #FFFBEE;
  border: 1px solid #E0CDD3;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.resumen-caja.wp-block-group,
.resumen-caja.wp-block{ max-width: 720px !important; }

.resumen-caja hr,
.resumen-caja .wp-block-separator{
  border: 0;
  border-top: 1px solid rgba(82,21,38,0.18);
  margin: 14px 0;
}

.resumen-caja .fila-item,
.resumen-caja .wp-block-columns{
  margin: 12px 0 !important;
}

.resumen-caja .wp-block-column{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resumen-caja .item-img img{
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(82,21,38,0.18);
}

.resumen-caja,
.resumen-caja p,
.resumen-caja h1,
.resumen-caja h2,
.resumen-caja h3,
.resumen-caja h4{
  font-family: "Chivo", sans-serif;
  color: #521526;
}

.resumen-caja .titulo-pack,
.resumen-caja .precio-pack{
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.resumen-caja .precio-pack{ text-align: right; }

.resumen-caja .tu-seleccion{
  font-size: 16px;
  opacity: 0.9;
  margin-top: 6px;
}

.resumen-caja .qty-right{
  text-align: right;
  font-weight: 700;
  font-size: 18px;
}

.resumen-caja .fila-total{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}
.resumen-caja .fila-total .label{ font-size: 16px; }
.resumen-caja .fila-total .value{
  font-size: 18px;
  font-weight: 700;
}
.resumen-caja .extra-value{ color: #B75729; }

.resumen-caja .total-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(82,21,38,0.18);
}
.resumen-caja .total-row .label,
.resumen-caja .total-row .value{
  font-size: 34px;
  font-weight: 800;
}

.resumen-caja .wp-block-button{
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.resumen-caja .wp-block-button__link{
  background-color: #B75729 !important;
  color: #FFFBEE !important;
  border-radius: 30px !important;
  padding: 12px 22px !important;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* ============ Mix & Match: ocultar UI del plugin ============ */
.amnu-mnm { display:none; }
.amnu-mnm.is-active { display:block; }

.amnu-mnm.is-active .product_title,
.amnu-mnm.is-active .woocommerce-product-details__short-description,
.amnu-mnm.is-active .price,
.amnu-mnm.is-active .summary > *:not(form),
.amnu-mnm.is-active .woocommerce-tabs,
.amnu-mnm.is-active .related,
.amnu-mnm.is-active .up-sells{
  display:none !important;
}

.amnu-mnm.is-active .mnm_form .mnm_contents{ display:none !important; }
.amnu-mnm.is-active .mnm_form{ display:none !important; }

.amnu-mnm.is-active table,
.amnu-mnm.is-active .mnm_contents,
.amnu-mnm.is-active .woocommerce-grouped-product-list,
.amnu-mnm.is-active .product_title,
.amnu-mnm.is-active .price{
  display:none !important;
}

.amnu-mnm .woocommerce-product-gallery,
.amnu-mnm .woocommerce-product-gallery__wrapper,
.amnu-mnm .wp-post-image,
.amnu-mnm .woocommerce div.product div.images,
.amnu-mnm .woocommerce div.product div.summary{
  display:none !important;
}