/* Ofertas — light palette aligned with the rest of the site */

.sale-flyer {
  --sf-ink: var(--ink, #1e1838);
  --sf-muted: var(--muted, #6f6b79);
  --sf-pink: var(--pink, #ff3f75);
  --sf-pink-dark: var(--pink-dark, #ef2d66);
  --sf-yellow: var(--yellow, #ffc22e);
  --sf-blue: var(--blue, #18a9e7);
  --sf-purple: var(--purple, #8759dd);
  --sf-cream: var(--cream, #fffaf4);
  --sf-line: var(--line, #eee8e2);
  --sf-card: #ffffff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 194, 46, 0.22), transparent 34%),
    radial-gradient(circle at 6% 18%, rgba(255, 63, 117, 0.12), transparent 32%),
    radial-gradient(circle at 78% 72%, rgba(24, 169, 231, 0.1), transparent 28%),
    linear-gradient(180deg, #fff6ee 0 240px, var(--sf-cream) 240px);
}

.sf-banner {
  color: var(--sf-ink);
  padding: 40px 0 34px;
  background:
    linear-gradient(135deg, #fffdf9 0%, #fff3ea 42%, #ffeef6 72%, #eef8ff 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--sf-line);
}

.sf-banner::before {
  content: "OFERTA";
  position: absolute;
  right: -2%;
  top: 18%;
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 63, 117, 0.08);
  transform: rotate(-8deg);
  pointer-events: none;
  line-height: 1;
}

.sf-banner-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
  gap: 24px 36px;
  align-items: end;
}

.sf-stamp {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 10px;
  border: 2px solid var(--sf-pink);
  color: var(--sf-pink);
  background: rgba(255, 63, 117, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  border-radius: 99px;
}

.sf-title {
  margin: 0 0 10px;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--sf-ink);
}

.sf-lead {
  margin: 0;
  max-width: 32rem;
  color: var(--sf-muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.sf-banner-side {
  display: grid;
  gap: 12px;
}

.sf-ticket {
  background: linear-gradient(135deg, #ffe9a8, var(--sf-yellow));
  color: var(--sf-ink);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  box-shadow: 0 10px 22px rgba(255, 194, 46, 0.28);
}

.sf-ticket-label {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sf-ticket-count {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
}

.sf-ticket-unit {
  align-self: end;
  font-size: 0.9rem;
  font-weight: 800;
  padding-bottom: 4px;
}

.sf-search {
  display: flex;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--sf-line);
  box-shadow: 0 8px 20px rgba(65, 44, 28, 0.06);
}

.sf-search input {
  flex: 1;
  border: 0;
  min-height: 46px;
  padding: 0 14px;
  font-weight: 700;
  color: var(--sf-ink);
  outline: none;
  background: #fff;
}

.sf-search button {
  border: 0;
  min-width: 48px;
  background: var(--sf-pink);
  color: #fff;
  font-size: 1.05rem;
}

.sf-search button:hover {
  background: var(--sf-pink-dark);
}

.sf-shell {
  margin-top: 18px;
}

.sf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--sf-card);
  border: 1px solid var(--sf-line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(50, 36, 26, 0.05);
}

.sf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-width: 100%;
}

.sf-tabs a {
  position: relative;
  color: var(--sf-muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  padding: 4px 0;
}

.sf-tabs a:hover {
  color: var(--sf-pink);
}

.sf-tabs a.is-active {
  color: var(--sf-pink);
}

.sf-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--sf-pink);
  border-radius: 99px;
}

.sf-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-sort label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-muted);
}

.sf-sort select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 170px;
  min-height: 40px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231e1838' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5 8 12l6.5-6.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--sf-ink);
}

.sf-deals {
  display: grid;
  gap: 14px;
}

.sf-deal {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  background: var(--sf-card);
  border: 1px solid var(--sf-line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(50, 36, 26, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sf-deal:hover {
  border-color: #f2c8c0;
  box-shadow: 0 16px 30px rgba(50, 36, 26, 0.1);
  transform: translateY(-2px);
}

.sf-deal-media {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff 0%, #fff6dc 100%);
  flex-shrink: 0;
}

.sf-deal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
}

.sf-deal-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--sf-pink);
}

.sf-deal-cut {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 54px;
  padding: 7px 8px;
  background: var(--sf-pink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  border-radius: 99px;
  box-shadow: 0 8px 16px rgba(255, 63, 117, 0.28);
}

.sf-deal-cut-soft {
  background: var(--sf-purple);
  color: #fff;
}

.sf-deal-body {
  min-width: 0;
}

.sf-deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.sf-deal-meta span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--sf-muted);
  background: #fff0f8;
  padding: 4px 8px;
  border-radius: 99px;
}

.sf-deal-body h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--sf-ink);
  line-height: 1.25;
}

.sf-deal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--sf-yellow);
  font-size: 0.82rem;
}

.sf-deal-rating span {
  color: var(--sf-muted);
  font-weight: 700;
  font-size: 0.78rem;
}

.sf-deal-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.sf-deal-price del {
  color: #aaa;
  font-size: 0.95rem;
  font-weight: 700;
}

.sf-deal-price strong {
  color: var(--sf-pink);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sf-deal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-btn-cart,
.sf-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
}

.sf-btn-cart {
  background: linear-gradient(135deg, #ff5a86, #ff366d);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 63, 117, 0.22);
}

.sf-btn-cart:hover {
  background: var(--sf-pink-dark);
  color: #fff;
}

.sf-btn-wa {
  background: #effbe8;
  border-color: #d7efc8;
  color: #69b83a;
}

.sf-btn-wa:hover {
  background: #e4f8d8;
  color: #4f9a28;
}

.sf-empty {
  text-align: center;
  padding: 56px 20px;
  border: 1px dashed var(--sf-line);
  background: var(--sf-card);
  color: var(--sf-muted);
  border-radius: 18px;
}

.sf-empty .bi {
  display: block;
  font-size: 2rem;
  color: var(--sf-pink);
  margin-bottom: 8px;
}

.sf-empty p {
  margin: 0 0 10px;
  font-weight: 700;
}

.sf-empty a {
  font-weight: 900;
  color: var(--sf-pink);
}

.sale-flyer .store-pagination {
  margin-top: 1.4rem;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px dashed var(--sf-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sale-flyer .store-pager-list a,
.sale-flyer .store-pager-list span {
  border-radius: 12px;
  border-color: var(--sf-line);
  background: #fff;
}

.sale-flyer .store-pager-list a:hover {
  border-color: #f2c8c0;
  color: var(--sf-pink);
  background: #fff7f4;
}

.sale-flyer .store-pager-list .is-active span {
  background: var(--sf-pink);
  border-color: var(--sf-pink);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .sf-banner-grid {
    grid-template-columns: 1fr;
  }

  .sf-deal {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .sf-deal-media {
    width: 140px;
    height: 140px;
  }

  .sf-deal-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .sf-btn-cart,
  .sf-btn-wa {
    flex: 1;
  }
}

@media (max-width: 575.98px) {
  .sale-flyer {
    background: linear-gradient(180deg, #fff6ee 0 200px, var(--sf-cream) 200px);
  }

  .sf-deal {
    grid-template-columns: 1fr;
  }

  .sf-deal-media {
    width: 100%;
    height: 220px;
  }

  .sf-toolbar {
    align-items: stretch;
  }

  .sf-sort {
    width: 100%;
    justify-content: space-between;
  }

  .sf-sort select {
    flex: 1;
  }
}
