/* Template 3 category cards: retain the existing carousel and cart handler. */
body.catalog-template--template_3 #catalogo .tpl1-item-card {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: visible !important;
}
body.catalog-template--template_3 #catalogo .tpl1-item-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  align-items: stretch !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  overflow: visible !important;
}
body.catalog-template--template_3 #catalogo .tpl1-item-top {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
}
body.catalog-template--template_3 #catalogo .tpl1-item-top > div { min-width: 0 !important; width: 100% !important; }
body.catalog-template--template_3 #catalogo .tpl1-item-top h4 {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  white-space: normal !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
}
body.catalog-template--template_3 #catalogo .tpl1-item-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: auto;
}
body.catalog-template--template_3 #catalogo .tpl1-item-actions .tpl1-price { min-width: 0; margin: 0 !important; }
body.catalog-template--template_3 #catalogo .tpl1-item-actions .tpl1-category-add {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  overflow: visible !important;
}
body.catalog-template--template_3 #catalogo .tpl1-category-add::before { content: none !important; }
body.catalog-template--template_3 #catalogo .tpl1-category-add::after {
  content: '+' !important;
  position: absolute;
  inset: 8px;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: var(--t3-category-add-bg, #df890d);
  color: var(--t3-category-add-color, #fff);
  font: 700 20px/1 Arial, sans-serif;
  pointer-events: none;
}
body.catalog-template--template_3 #catalogo .tpl1-category-add.is-added::after { content: '✓' !important; }
body.catalog-template--template_3 #catalogo .tpl1-category-add:hover::after { filter: brightness(1.12); }
body.catalog-template--template_3 #catalogo .tpl1-category-add:active::after { transform: scale(.92); }
body.catalog-template--template_3 #catalogo .tpl1-category-add:focus-visible { outline: 3px solid currentColor !important; outline-color: var(--t3-category-add-bg, #a45600) !important; outline-offset: 2px; }
body.catalog-template--template_3 #catalogo .tpl1-category-add:disabled { cursor: not-allowed; opacity: .5; }
body.catalog-template--template_3 #catalogo .tpl1-category-reveal__content .tpl1-item-grid {
  grid-auto-rows: max-content !important;
  grid-template-rows: none !important;
  align-content: start !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.tpl3-options-dialog {
  width: min(32rem, calc(100vw - 2rem));
  max-height: min(80vh, 44rem);
  overflow: auto;
  border: 0;
  border-radius: 1rem;
  padding: 1.5rem;
  color: #241b17;
  background: #fffaf6;
  box-shadow: 0 1rem 3rem #0006;
}
.tpl3-options-dialog::backdrop { background: #000a; }
.tpl3-options-dialog h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.tpl3-options-dialog fieldset { border: 1px solid #d6c5bb; border-radius: .5rem; margin: 0 0 1rem; padding: .75rem; }
.tpl3-options-dialog label { display: block; padding: .55rem .25rem; cursor: pointer; }
.tpl3-options-dialog input { width: 1.2rem; height: 1.2rem; vertical-align: middle; accent-color: #674433; }
.tpl3-options-dialog button { min-height: 44px; padding: .6rem 1rem; margin: .25rem .5rem .25rem 0; border: 1px solid #674433; border-radius: .5rem; cursor: pointer; }
.tpl3-options-dialog button[type=submit] { background: #674433; color: white; }
.tpl3-options-dialog [role=alert] { color: #a02020; }
.tpl1-cart__item small { display: block; }
