.dgfc-loopitem {
  height: 100%;
}

.dgfc-card,
.dgfc-card *,
.dgfc-card *::before,
.dgfc-card *::after {
  box-sizing: border-box;
}

.dgfc-card {
  font-family: var(--dgfc-font);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 11px 11px 11px;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: calc(var(--dgfc-radius) + 6px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.dgfc-card:hover {
  transform: translateY(-2px);
  border-color: var(--dgfc-border);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.dgfc-card__topbar {
  min-height: 26px;
  margin-bottom: 6px;
}

.dgfc-card__topbadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0642c;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dgfc-card__imagewrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 235px;
  padding: 10px 8px 4px;
  text-decoration: none;
}

.dgfc-card__img {
  width: auto;
  max-width: 100%;
  max-height: 215px;
  height: auto !important;
  object-fit: contain;
}

.dgfc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 4px;
  padding-top: 2px;
}

.dgfc-card__label {
  color: #58709a;
  min-height: 11px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.dgfc-card__title,
.dgfc-card__title a {
  margin: 0;
  color: var(--dgfc-title);
  text-decoration: none;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.25 !important;
}

.dgfc-card__title {
  min-height: 92px;
}

.dgfc-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dgfc-card__brandrow {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 22px;
  margin-top: 0;
}

.dgfc-card__brandpill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 22px;
  padding: 3px 8px;
  background: #eff4ff;
  border: 1px solid #d9e6ff;
  border-radius: 999px;
  color: #6a80a7;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.dgfc-card__brandpill::before {
  content: "+";
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #7f96c7;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 13px;
}

.dgfc-card__subbadge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #dce9ff;
  border-radius: 999px;
  background: #f7fbff;
  color: #0d63d7;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.dgfc-card__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 34px;
  margin-top: 2px;
  margin-bottom: 10px;
}

.dgfc-card__price-regular,
.dgfc-card__price-regular .woocommerce-Price-amount {
  color: #8691a5;
  min-height: 14px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.dgfc-card__price-current,
.dgfc-card__price-current .woocommerce-Price-amount,
.dgfc-card__price-sale,
.dgfc-card__price-sale .woocommerce-Price-amount {
  color: var(--dgfc-sale);
  min-height: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.dgfc-card__price-current ins,
.dgfc-card__price-sale ins,
.dgfc-card__price-current del,
.dgfc-card__price-sale del {
  text-decoration: none;
}

.dgfc-card__price-regular--empty {
  visibility: hidden;
}

.dgfc-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.dgfc-card__btn,
.dgfc-card__btn:visited,
.dgfc-card__btn:hover,
.dgfc-card__btn:focus {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: auto;
  min-height: 36px;
  margin: 0 !important;
  padding: 8px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--dgfc-btn) !important;
  color: var(--dgfc-btn-tx) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800 !important;
  line-height: 1.15;
}

.dgfc-card__btn:hover,
.dgfc-card__btn:focus {
  filter: brightness(0.96);
}

.dgfc-card__sideaction,
.dgfc-card__sideaction:visited,
.dgfc-card__sideaction:hover,
.dgfc-card__sideaction:focus {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  background: #eef6f2;
  border: 1px solid #e1ebe6;
  color: var(--dgfc-btn);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

.dgfc-card__sideaction:hover,
.dgfc-card__sideaction:focus {
  background: #e6f2eb;
}

.dgfc-card .added_to_cart {
  display: none !important;
}

ul.products li.product .dgfc-card .price,
ul.products li.product .dgfc-card .button,
ul.products li.product .dgfc-card h2 {
  all: unset;
}

ul.products li.product .dgfc-card a.button {
  all: unset;
}

@media (max-width: 767px) {
  .dgfc-card {
    padding: 12px 12px 14px;
    border-radius: 22px;
  }

  .dgfc-card__imagewrap {
    min-height: 235px;
    padding-top: 6px;
  }

  .dgfc-card__img {
    max-height: 215px;
  }

  .dgfc-card__title,
  .dgfc-card__title a {
    font-size: 16px;
  }

  .dgfc-card__price-current,
  .dgfc-card__price-current .woocommerce-Price-amount,
  .dgfc-card__price-sale,
  .dgfc-card__price-sale .woocommerce-Price-amount {
    font-size: 22px;
  }

  .dgfc-card__footer {
    gap: 8px;
  }

  .dgfc-card__btn,
  .dgfc-card__btn:visited,
  .dgfc-card__btn:hover,
  .dgfc-card__btn:focus {
    min-height: 48px;
    font-size: 14px;
    padding: 12px 16px !important;
  }

  .dgfc-card__sideaction,
  .dgfc-card__sideaction:visited,
  .dgfc-card__sideaction:hover,
  .dgfc-card__sideaction:focus {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .dgfc-card {
    padding: 10px;
  }
  .dgfc-card__imagewrap {
    min-height: 235px;
  }
  .dgfc-card__img {
    max-height: 215px;
  }
  .dgfc-card__title,
  .dgfc-card__title a {
    font-size: 12px;
  }
  .dgfc-card__price-current,
  .dgfc-card__price-current .woocommerce-Price-amount,
  .dgfc-card__price-sale,
  .dgfc-card__price-sale .woocommerce-Price-amount {
    font-size: 13px;
  }
  .dgfc-card__btn,
  .dgfc-card__btn:visited,
  .dgfc-card__btn:hover,
  .dgfc-card__btn:focus {
    min-height: 36px;
    font-size: 10.5px;
    padding: 8px 11px !important;
  }
  .dgfc-card__sideaction,
  .dgfc-card__sideaction:visited,
  .dgfc-card__sideaction:hover,
  .dgfc-card__sideaction:focus {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* ===== FIX TITULO 3 LINEAS + COMPACTO ===== */
.dgfc-card__title,
.dgfc-card__title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 54px !important;
  margin-bottom: 4px !important;
}

/* quitar espacio con marca */
.dgfc-brand {
  margin-top: 0 !important;
}

/* layout vertical correcto */
.dgfc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dgfc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dgfc-pricing {
  margin-top: auto;
}

/* ===== DGFC v0.3.3 button behavior ===== */
.dgfc-card__footer {
  margin-top: 14px;
}
.dgfc-card__btn {
  font-size: 13px !important;
  font-weight: 600 !important;
  min-height: 48px !important;
  padding: 0 18px !important;
}
.dgfc-card__sideaction {
  display: none !important;
}

.dgfc-card__actions {
  width: 100%;
}
.dgfc-card__qty {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d7dde8;
  border-radius: 999px;
  padding: 5px 8px;
  min-height: 48px;
  background: #fff;
}
.dgfc-card__actions.is-in-cart .dgfc-js-add {
  display: none;
}
.dgfc-card__actions.is-in-cart .dgfc-card__qty {
  display: flex;
}
.dgfc-card__qtybtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #15396b;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dgfc-card__qtynum {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #15396b;
}
.dgfc-card__trash {
  font-size: 18px;
  line-height: 1;
}

/* ===== DGFC v0.3.4 qty redesign ===== */
.dgfc-card__footer {
  margin-top: 14px;
  width: 100%;
}
.dgfc-card__actions {
  width: 100%;
}
.dgfc-card__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 50px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
}
.dgfc-card__btn--link {
  border-radius: 4px !important;
}
.dgfc-card__qty {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  min-height: 50px;
  border: 1px solid #d9dfeb;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.dgfc-card__actions.is-in-cart .dgfc-js-add {
  display: none !important;
}
.dgfc-card__actions.is-in-cart .dgfc-card__qty {
  display: flex !important;
}
.dgfc-card__qtybtn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #15396b;
  font-size: 25px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
}
.dgfc-card__qtynum {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #15396b;
}
.dgfc-card__trash {
  font-family:
    "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.dgfc-card__actions.is-single .dgfc-card__qtybtn--minus {
  display: none;
}
.dgfc-card__actions.is-single .dgfc-card__qtybtn--trash {
  display: inline-flex;
}
.dgfc-card__actions.is-multi .dgfc-card__qtybtn--trash {
  display: none;
}
.dgfc-card__actions.is-multi .dgfc-card__qtybtn--minus {
  display: inline-flex;
}

/* ===== DGFC v0.3.5 visual polish ===== */
.dgfc-card__footer {
  width: 100%;
  margin-top: 16px;
}

.dgfc-card__btn,
.dgfc-card__btn:hover,
.dgfc-card__btn:focus {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: all 0.18s ease !important;
}

.dgfc-card__qty,
.dgfc-card__qty:hover,
.dgfc-card__qty:focus-within {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}

.dgfc-card__qtybtn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0;
  color: #173a6c;
  font-size: 26px;
  font-weight: 500;
}

.dgfc-card__qtybtn:hover,
.dgfc-card__qtybtn:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #173a6c;
}

.dgfc-card__trash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #173a6c;
}

.dgfc-card__trash svg {
  display: block;
  width: 18px;
  height: 18px;
}

.dgfc-card__qtynum {
  font-size: 15px;
  font-weight: 500;
  color: #173a6c;
}

.dgfc-card__actions.is-in-cart .dgfc-card__qtybtn--trash,
.dgfc-card__actions.is-in-cart .dgfc-card__qtybtn--minus,
.dgfc-card__actions.is-in-cart .dgfc-card__qtybtn--plus {
  border: none !important;
  box-shadow: none !important;
}

/* kill old hover styles from theme/plugin that distort default state */
.dgfc-card__btn:not(.dgfc-card__btn--link):hover {
  opacity: 1 !important;
}

/* ===== DGFC v0.3.6 color system ===== */

/* botón agregar */
.dgfc-card__btn:not(.dgfc-card__btn--link) {
  background: #2ca6ff !important;
  border-color: #2ca6ff !important;
  color: #fff !important;
}
.dgfc-card__btn:not(.dgfc-card__btn--link):hover {
  background: #2ca6ff !important;
  border-color: #2ca6ff !important;
  color: #fff !important;
  opacity: 0.92;
}

/* botón + */
.dgfc-card__qtybtn--plus {
  color: #2ca6ff !important;
}
.dgfc-card__qtybtn--plus:hover {
  color: #2ca6ff !important;
  background: rgba(44, 166, 255, 0.08) !important;
}

/* botón - */
.dgfc-card__qtybtn--minus {
  color: #2ca6ff !important;
}
.dgfc-card__qtybtn--minus:hover {
  color: #2ca6ff !important;
  background: rgba(44, 166, 255, 0.08) !important;
}

/* tachito */
.dgfc-card__qtybtn--trash {
  color: #6b7a90 !important;
}
.dgfc-card__qtybtn--trash:hover {
  color: #2ca6ff !important;
  background: rgba(44, 166, 255, 0.08) !important;
}

/* ===== DGFC v0.3.7 border + trash color fix ===== */

/* borde del control qty */
.dgfc-card__qty {
  border: 1px solid #2ca6ff !important;
}

/* tachito en azul */
.dgfc-card__qtybtn--trash {
  color: #2ca6ff !important;
}

/* hover tachito más fuerte */
.dgfc-card__qtybtn--trash:hover {
  color: #2ca6ff !important;
  background: rgba(44, 166, 255, 0.12) !important;
}

/* ===== DGFC v0.3.8 hover shape fix ===== */

/* quitar sombra cuadrada y hacer hover redondo */
.dgfc-card__qtybtn {
  position: relative;
  overflow: hidden;
}

.dgfc-card__qtybtn:hover {
  background: rgba(44, 166, 255, 0.12) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
}

/* centrar dentro del contenedor */
.dgfc-card__qtybtn svg,
.dgfc-card__qtybtn span {
  pointer-events: none;
}

/* ===== DGFC v0.3.9 no-stretch fix ===== */
.dgfc-card__footer {
  height: 60px !important;
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
}
.dgfc-card__btn,
.dgfc-card__qty {
  box-sizing: border-box !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
}
.dgfc-card__btn {
  padding: 0 16px !important;
}
.dgfc-card__qty {
  padding: 0 6px !important;
}
.dgfc-card__btn,
.dgfc-card__qty,
.dgfc-card__actions,
.dgfc-card__footer {
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease !important;
}
.dgfc-card__btn:hover,
.dgfc-card__btn:focus,
.dgfc-card__qty:hover,
.dgfc-card__qty:focus-within {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
}
.dgfc-card__qtybtn {
  flex: 0 0 42px !important;
}
.dgfc-card__qtybtn:hover {
  width: 36px !important;
  height: 36px !important;
}

/* ===== DGFC v0.4.0 toast ===== */
.dgfc-toast {
  position: fixed;
  left: 20px;
  bottom: 40px;
  z-index: 9999;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 320px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.dgfc-toast.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.dgfc-toast__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.dgfc-toast__text {
  flex: 1;
  font-size: 13px;
  color: #2b3a55;
}
.dgfc-toast__btn {
  border: none;
  background: none;
  color: #2ca6ff;
  font-weight: 600;
  cursor: pointer;
}

/* ===== DGFC v0.4.1 toast polish ===== */
.dgfc-toast {
  left: 24px !important;
  bottom: 34px !important;
  min-width: 320px !important;
  max-width: 380px !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1) !important;
  gap: 14px !important;
  border-top: 4px solid #2ca6ff !important;
}
.dgfc-toast__icon {
  width: 34px !important;
  height: 34px !important;
  background: #2ca6ff !important;
  font-size: 18px !important;
  flex: 0 0 34px !important;
}
.dgfc-toast__text {
  font-size: 14px !important;
  line-height: 1.35 !important;
  color: #2b3a55 !important;
}
.dgfc-toast__btn {
  color: #2ca6ff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 4px 2px !important;
}
@media (max-width: 767px) {
  .dgfc-toast {
    left: 14px !important;
    right: 14px !important;
    bottom: 20px !important;
    min-width: auto !important;
    max-width: none !important;
    width: auto !important;
  }
}

/* ===== DGFC v0.4.2 toast button hover fix ===== */
.dgfc-toast__btn {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.dgfc-toast__btn:hover {
  background: rgba(44, 166, 255, 0.08) !important;
  color: #2ca6ff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 6px;
}

/* ===== DGFC v0.4.3 toast añadido ===== */
.dgfc-toast-added {
  position: fixed;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.dgfc-toast-added__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #17345d;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 40, 75, 0.15);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.dgfc-toast-added__icon {
  color: #2ca6ff;
  font-weight: 700;
}
.dgfc-toast-added__text {
  white-space: nowrap;
}
.dgfc-toast-added.is-loop {
  left: 50%;
  bottom: 102px;
  transform: translateX(-50%) translateY(10px);
}
.dgfc-toast-added.is-single {
  top: 90px;
  right: 20px;
  transform: translateY(10px);
}
.dgfc-toast-added.is-visible {
  opacity: 1;
}
.dgfc-toast-added.is-loop.is-visible {
  transform: translateX(-50%) translateY(0);
}
.dgfc-toast-added.is-single.is-visible {
  transform: translateY(0);
}
.dgfc-toast-added.is-hide {
  opacity: 0;
}
.dgfc-card__stock-out {
  font-size: 14px;
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
  border-style: solid;
  border-width: 1px;
  padding: 3px 10px;
  border-radius: 5px;
  text-align: center;
}
@media (max-width: 767px) {
  .dgfc-toast-added.is-loop {
    bottom: 96px;
    left: 14px;
    right: 14px;
    transform: translateY(10px);
  }
  .dgfc-toast-added.is-loop .dgfc-toast-added__inner {
    justify-content: center;
  }
  .dgfc-toast-added.is-loop.is-visible {
    transform: translateY(0);
  }
  .dgfc-toast-added.is-single {
    top: 78px;
    left: 14px;
    right: 14px;
    transform: translateY(10px);
  }
  .dgfc-toast-added.is-single .dgfc-toast-added__inner {
    justify-content: center;
  }
  .dgfc-toast-added.is-single.is-visible {
    transform: translateY(0);
  }
}

/* ===== DGFC MOBILE POLISH v0.4.7 ===== */
@media (max-width: 767px) {
  /* Card padding */
  .dgfc-card {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  /* Botón agregar */
  .dgfc-card__btn {
    height: 48px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  /* Controles cantidad */
  .dgfc-card__qty {
    height: 48px !important;
    border-radius: 12px !important;
  }

  .dgfc-card__qtybtn {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
  }

  .dgfc-card__qtynum {
    font-size: 16px !important;
    min-width: 28px !important;
  }

  /* Botón eliminar */
  .dgfc-card__remove {
    font-size: 13px !important;
    padding: 6px 4px !important;
  }

  /* Espaciado interno */
  .dgfc-card__actions {
    gap: 6px !important;
  }

  /* Toast ajuste mobile */
  .dgfc-toast-added__inner {
    font-size: 13px !important;
    padding: 10px 14px !important;
  }
}