/* SWEATS sale countdown (sf-sale.js): header sale banner + Sale countdown sections */
.sf-salebar, .sf-sale-sec { --sale-accent: var(--red, #e42020); }

/* ---------------- header sale banner ---------------- */
.sf-salebar { position: relative; z-index: 31; background: var(--sale-accent); color: #ffffff; font-family: var(--sans, Arial, sans-serif); }
.sf-salebar-in { max-width: 1280px; margin: 0 auto; padding: 9px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; font-size: 14px; font-weight: 700; }
.sf-salebar-msg { display: inline-flex; align-items: center; gap: 9px; }
.sf-salebar-msg i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: sfSalePulse 2s ease-in-out infinite; }
@keyframes sfSalePulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.sf-salebar-clock { display: inline-flex; gap: 5px; font-variant-numeric: tabular-nums; }
.sf-salebar-clock > span { padding: 3px 7px; border-radius: 7px; background: rgba(0,0,0,.22); }
.sf-salebar-code b { letter-spacing: .06em; }
.sf-salebar-cta { min-height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: #ffffff; color: #111111 !important; font-size: 13px; font-weight: 800; text-decoration: none; }
.sf-salebar-cta:hover { filter: brightness(.94); }
@media (max-width: 700px) {
  .sf-salebar-in { gap: 6px 12px; padding: 8px 12px; font-size: 12.5px; }
  .sf-salebar-code { display: none; }
  .sf-salebar-cta { min-height: 30px; padding: 0 12px; font-size: 12px; }
}

/* ---------------- sections ---------------- */
.sf-sale-sec { width: calc(100% * var(--sf-w, 1)); max-width: 100%; margin: 28px auto; box-sizing: border-box; color: #f7f7f7; font-family: var(--sans, Arial, sans-serif); }
.sf-sale-sec b, .sf-sale-sec h2 { color: inherit; }
.sf-sale-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding: clamp(24px, 4vw, 56px); border-radius: 24px; background: #121212; border: 1px solid #262626; }
.sf-sale-bg { position: absolute; inset: -60px; z-index: -2; background-size: cover; background-position: center; filter: blur(30px) saturate(1.2); opacity: .5; }
.sf-sale-panel.is-feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,13,13,.95) 0%, rgba(13,13,13,.78) 60%, rgba(13,13,13,.6) 100%); }
.sf-sale-copy { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sf-sale-badge { padding: 6px 12px; border-radius: 999px; background: var(--sale-accent); color: #ffffff; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sf-sale-copy h2 { margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.sf-sale-copy h2 em { font-style: normal; color: var(--sale-accent); }
.sf-sale-copy p { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.5; font-weight: 500; color: #bbbbbb; }
.sf-sale-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.sf-sale-cta { min-height: 46px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 999px; background: var(--sale-accent); color: #ffffff !important; font-size: 15px; font-weight: 800; text-decoration: none; }
.sf-sale-cta:hover { filter: brightness(1.08); }
.sf-sale-code { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; box-sizing: border-box; padding: 0 16px; border-radius: 999px; border: 1px dashed #555555; font-size: 14px; color: #cccccc; }
.sf-sale-code b { color: #f7f7f7; letter-spacing: .08em; }
.sf-sale-timer { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.sf-sale-timer > small { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9a9a9a; }
.sf-sale-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sf-sale-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 4px 12px; border-radius: 16px; background: rgba(28,28,28,.9); border: 1px solid #2f2f2f; }
.sf-sale-unit b { font-size: clamp(30px, 3.6vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sf-sale-unit small { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8a8a8a; }
.sf-sale-when { font-size: 13px; font-weight: 500; color: #9a9a9a; }
.sf-sale-timer.is-inline { flex: none; width: 100%; max-width: 420px; }
.sf-sale-timer.is-inline .sf-sale-unit { padding: 10px 4px 8px; }
.sf-sale-timer.is-inline .sf-sale-unit b { font-size: 30px; }
.sf-sale-ended { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 16px; background: rgba(28,28,28,.9); border: 1px solid #2f2f2f; }
.sf-sale-ended b { font-size: 24px; letter-spacing: -.02em; }
.sf-sale-ended span { font-size: 15px; font-weight: 500; color: #aaaaaa; }

/* beat cards */
.sf-sale-cards { flex: 1 1 380px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sf-sale-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sf-sale-card-art, .sf-sale-flash-art { position: relative; display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 1 / 1; background: #1c1c1c; }
.sf-sale-card-art img, .sf-sale-flash-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-sale-tag { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 7px; background: var(--sale-accent); color: #ffffff; font-size: 11px; font-weight: 800; }
.sf-sale-card-name { padding: 0; border: 0; background: none; color: #f7f7f7; font: 800 14px/1.25 var(--sans, Arial, sans-serif); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-sale-card-name:hover { text-decoration: underline; }
.sf-sale-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.sf-sale-price b { font-size: 16px; font-weight: 800; }
.sf-sale-price s { font-size: 12.5px; color: #8a8a8a; }
.sf-sale-play { position: absolute; right: 8px; bottom: 8px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--sale-accent); color: #ffffff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.sf-sale-play svg { width: 14px; height: 14px; fill: currentColor; }
.sf-sale-play .i-play { margin-left: 2px; }
.sf-sale-play .i-pause, .sf-sale-play.is-playing .i-play { display: none; }
.sf-sale-play.is-playing .i-pause { display: block; }

/* flash deal */
.sf-sale-flash { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 18px; border-radius: 22px; background: #151515; border: 1px solid #262626; }
.sf-sale-flash-art { width: 112px; height: 112px; flex: none; aspect-ratio: auto; }
.sf-sale-flash-art .sf-sale-play { width: 38px; height: 38px; right: 6px; bottom: 6px; }
.sf-sale-flash-info { flex: 999 1 220px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sf-sale-flash-info b { font-size: 22px; letter-spacing: -.02em; }
.sf-sale-flash-info small { font-size: 14px; font-weight: 500; color: #9a9a9a; }
.sf-sale-flash-clock { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; }
.sf-sale-flash-clock small { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8a8a8a; }
.sf-sale-flash-clock b { font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sf-sale-flash-buy { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; margin-left: auto; }
.sf-sale-flash-buy .sf-sale-price { flex-direction: column; align-items: flex-end; gap: 0; }
.sf-sale-flash-buy .sf-sale-price b { font-size: 24px; }
.sf-sale-buy { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #f7f7f7; color: #111111; font: 800 14px var(--sans, Arial, sans-serif); cursor: pointer; }
.sf-sale-buy:hover { filter: brightness(.92); }
.sf-sale-sec a:focus-visible, .sf-sale-sec button:focus-visible, .sf-salebar a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* shown only in the editor preview while no active code is linked */
.sf-sale-setup { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 18px; border: 2px dashed var(--line, #cfcfd6); color: var(--muted, #6b6b75); text-align: center; font-size: 14px; }
.sf-sale-setup b { color: var(--ink, #16161a); font-size: 16px; }

@media (max-width: 700px) {
  .sf-sale-sec { margin: 20px auto; }
  body.storefront-compact .sf-sale-sec.page-shell { margin: 16px 12px; }
  .sf-sale-panel { padding: 22px 18px; gap: 22px; border-radius: 18px; }
  .sf-sale-units { gap: 6px; }
  .sf-sale-unit { padding: 12px 2px 9px; border-radius: 12px; }
  .sf-sale-cards { gap: 10px; }
  .sf-sale-card-name { font-size: 13px; }
  .sf-sale-play { width: 34px; height: 34px; right: 6px; bottom: 6px; }
  .sf-sale-flash { gap: 14px; padding: 14px; }
  .sf-sale-flash-art { width: 84px; height: 84px; }
  .sf-sale-flash-buy { width: 100%; justify-content: space-between; margin-left: 0; }
  .sf-sale-flash-buy .sf-sale-price { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .sf-salebar-msg i { animation: none; } }

/* Sale banner section: a full-width strip that can sit anywhere in the page order */
.sf-sale-sec.sf-sale-look-banner { width: 100vw; max-width: none; margin: 0 calc(50% - 50vw) 18px; }
body.storefront-compact .sf-sale-sec.sf-sale-look-banner { grid-column: 1 / -1; width: 100%; margin: 0 0 14px; }
body.storefront-compact .sf-sale-sec.sf-sale-look-banner .sf-salebar { border-radius: 14px; }
@media (max-width: 700px) { body.storefront-compact .sf-sale-sec.sf-sale-look-banner.page-shell { margin: 0 0 12px; } body.storefront-compact .sf-sale-sec.sf-sale-look-banner .sf-salebar { border-radius: 0; } }
/* header Sale banner (below the menu it scrolls with the page) */
#sfSaleBar.sf-salebar { position: relative; }
