/* GOYA 1.5.3. Card-only promo visibility; badge styles never alter prices or layout. */
body.goya-card-promos-hidden li.product .goya-card-voucher,
body.goya-card-promos-hidden li.product .goya-card-campaign,
body.goya-card-promos-hidden li.product .goya-loop-offers,
body.goya-card-promos-hidden article.goya-product-card .goya-card-voucher,
body.goya-card-promos-hidden article.goya-product-card .goya-card-campaign,
body.goya-card-promos-hidden article.goya-product-card .goya-loop-offers {
  display: none !important;
}

body.goya-sale-percent-ui .goya-sale-badge.onsale,
body.goya-sale-percent-ui .goya-product-card .goya-sale-badge.goya-product-badge {
  --gsb-inset: 10px;
  align-items: center !important;
  justify-content: center;
  display: inline-flex !important;
  flex-wrap: nowrap;
  gap: 3px;
  position: absolute !important;
  top: var(--gsb-inset) !important;
  right: var(--gsb-inset) !important;
  bottom: auto !important;
  left: auto !important;
  margin: 0 !important;
  min-height: 32px !important;
  min-width: 0 !important;
  width: max-content !important;
  max-width: calc(100% - 2 * var(--gsb-inset));
  box-sizing: border-box;
  padding: 7px 11px !important;
  border: 1px solid rgba(255,255,255,.65) !important;
  border-radius: 11px 11px 11px 3px !important;
  background: linear-gradient(125deg, #ed1428 0%, var(--goya-red, #d9000d) 55%, #a30819 100%) !important;
  color: #fff !important;
  font-family: var(--goya-font-sans, inherit) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.15 !important;
  letter-spacing: -.15px;
  white-space: nowrap !important;
  text-transform: none !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 3px 9px rgba(151,0,12,.19), inset 0 1px rgba(255,255,255,.22) !important;
  overflow: hidden;
  isolation: isolate;
  z-index: 8;
  pointer-events: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
body.goya-sale-percent-ui .goya-sale-badge .gsb-value,
body.goya-sale-percent-ui .goya-sale-badge .gsb-prefix {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
body.goya-sale-percent-ui .goya-sale-badge .gsb-value { font-weight: 900; }
body.goya-sale-percent-ui .goya-sale-badge .gsb-prefix { font-weight: 650; font-size: .82em; }
body.goya-sale-percent-ui .goya-sale-badge::after {
  content: "";
  position: absolute;
  inset: -20% -70%;
  border: 0 !important;
  border-radius: 0;
  background: linear-gradient(112deg, transparent 42%, rgba(255,255,255,.32) 50%, transparent 58%);
  transform: translateX(-85%);
  pointer-events: none;
  animation: goya-sale-shine 1150ms ease-out 180ms 1 both;
}
@keyframes goya-sale-shine {
  0% { transform: translateX(-85%); }
  100% { transform: translateX(85%); }
}
@media (hover:hover) and (pointer:fine) {
  body.goya-sale-percent-ui li.product:hover .goya-sale-badge,
  body.goya-sale-percent-ui .goya-product-card:hover .goya-sale-badge { transform: translateY(-2px); }
}
@media (max-width:767px) {
  body.goya-sale-percent-ui .goya-sale-badge.onsale,
  body.goya-sale-percent-ui .goya-product-card .goya-sale-badge.goya-product-badge {
    --gsb-inset: 7px;
    min-height: 29px !important;
    padding: 6px 9px !important;
    font-size: 12px !important;
    border-radius: 9px 9px 9px 3px !important;
  }
}
@media (max-width:359px) {
  body.goya-sale-percent-ui .goya-sale-badge.onsale,
  body.goya-sale-percent-ui .goya-product-card .goya-sale-badge.goya-product-badge {
    --gsb-inset: 5px;
    font-size: 11px !important;
    padding: 5px 7px !important;
    min-height: 27px !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.goya-sale-percent-ui .goya-sale-badge { transition: none !important; transform: none !important; }
  body.goya-sale-percent-ui .goya-sale-badge::after { animation: none !important; display: none !important; }
}
