.msd-flash-sale,
.msd-flash-sale-page {
  --msd-flash-ink: #171512;
  --msd-flash-muted: #675f56;
  --msd-flash-paper: #fffaf1;
  --msd-flash-urgent: #b43f2d;
  --msd-flash-line: rgba(23, 21, 18, 0.14);
  color: var(--msd-flash-ink);
}

.msd-flash-sale {
  padding: clamp(42px, 6vw, 78px) 20px;
  background: var(--msd-flash-paper);
  border-block: 1px solid var(--msd-flash-line);
}

.msd-flash-sale__inner,
.msd-flash-sale-page__inner {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.msd-flash-sale__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.msd-flash-sale__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--msd-flash-urgent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.msd-flash-sale__eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  animation: msd-flash-pulse 1.7s ease-in-out infinite;
}

.msd-flash-sale h2,
.msd-flash-sale-page h1,
.msd-flash-sale-page h2 {
  margin: 0;
  color: var(--msd-flash-ink);
  font-family: var(--msd-font-heading, Georgia, serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.msd-flash-sale h2 { font-size: clamp(30px, 4vw, 48px); }
.msd-flash-sale__copy > p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--msd-flash-muted);
  line-height: 1.6;
}

.msd-flash-sale-timer {
  min-width: 300px;
}

.msd-flash-sale-timer__lead {
  display: block;
  margin-bottom: 7px;
  color: var(--msd-flash-urgent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.msd-flash-sale-timer__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.msd-flash-sale-timer__units > span {
  min-width: 62px;
  padding: 9px 6px 8px;
  border-radius: 8px;
  background: var(--msd-flash-ink);
  color: #fff;
  text-align: center;
}

.msd-flash-sale-timer strong,
.msd-flash-sale-timer small {
  display: block;
}

.msd-flash-sale-timer strong {
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  line-height: 1;
}

.msd-flash-sale-timer small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.msd-flash-sale-timer__ended {
  margin: 0;
  color: var(--msd-flash-urgent);
  font-weight: 700;
}

.msd-flash-sale-grid {
  display: grid;
  gap: clamp(12px, 2vw, 22px);
}

.msd-flash-sale-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.msd-flash-sale-grid--page { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.msd-flash-sale-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--msd-flash-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(38, 31, 24, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.msd-flash-sale-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(38, 31, 24, 0.1);
}

.msd-flash-sale-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f6f3ee;
}

.msd-flash-sale-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.msd-flash-sale-card:hover .msd-flash-sale-card__media img { transform: scale(1.035); }

.msd-flash-sale-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--msd-flash-urgent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(84, 26, 18, 0.2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.msd-flash-sale-badge [data-msd-flash-variant="amount"] { display: none; }
html[data-msd-flash-variant="amount"] .msd-flash-sale-badge [data-msd-flash-variant="percent"] { display: none; }
html[data-msd-flash-variant="amount"] .msd-flash-sale-badge [data-msd-flash-variant="amount"] { display: inline; }

.msd-flash-sale-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 178px;
  padding: 15px;
}

.msd-flash-sale-card h3 {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--msd-flash-ink);
  font-family: var(--msd-font-body, Arial, sans-serif);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.msd-flash-sale-card__price-label {
  color: var(--msd-flash-urgent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.msd-flash-sale-card__price {
  margin: 3px 0 13px;
  color: var(--msd-flash-ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.msd-flash-sale-card__price del {
  margin-right: 5px;
  color: #8b847c;
  font-size: 12px;
  font-weight: 500;
}

.msd-flash-sale-card__price ins { color: var(--msd-flash-urgent); text-decoration: none; }

.msd-flash-sale-card__cta {
  margin-top: auto;
  border-bottom: 1px solid currentColor;
  color: var(--msd-flash-ink);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.msd-flash-sale__main-cta {
  display: flex;
  width: fit-content;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin: 28px auto 0;
  padding: 0 25px;
  border-radius: 7px;
  background: var(--msd-flash-ink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.msd-flash-sale__main-cta:hover { background: var(--msd-flash-urgent); }

.msd-flash-sale-page__hero {
  padding: clamp(58px, 8vw, 100px) 20px 50px;
  background: var(--msd-flash-paper);
  text-align: center;
}

.msd-flash-sale-page__hero h1 { font-size: clamp(42px, 7vw, 76px); }
.msd-flash-sale-page__hero > .msd-flash-sale-page__inner > p {
  max-width: 720px;
  margin: 14px auto 26px;
  color: var(--msd-flash-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.msd-flash-sale-page__hero .msd-flash-sale-timer {
  width: min(360px, 100%);
  margin-inline: auto;
  text-align: left;
}

.msd-flash-sale-page__products { padding: clamp(44px, 7vw, 84px) 20px; }
.msd-flash-sale-page__products h2 {
  margin-bottom: 24px;
  font-size: clamp(28px, 4vw, 44px);
  text-align: center;
}

.msd-flash-sale-page__empty {
  max-width: 660px;
  margin-inline: auto;
  padding: 50px 20px;
  border: 1px solid var(--msd-flash-line);
  border-radius: 12px;
  text-align: center;
}

.msd-flash-sale-page__empty p { color: var(--msd-flash-muted); }

@keyframes msd-flash-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(0.75); }
}

@media (max-width: 900px) {
  .msd-flash-sale__header { grid-template-columns: 1fr; align-items: start; }
  .msd-flash-sale-grid--home,
  .msd-flash-sale-grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msd-flash-sale-timer { min-width: 0; width: min(360px, 100%); }
}

@media (max-width: 480px) {
  .msd-flash-sale { padding-inline: 14px; }
  .msd-flash-sale-grid { gap: 10px; }
  .msd-flash-sale-card__body { min-height: 170px; padding: 12px; }
  .msd-flash-sale-timer__units > span { min-width: 0; }
  .msd-flash-sale-timer strong { font-size: 18px; }
  .msd-flash-sale-timer small { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .msd-flash-sale__eyebrow::before { animation: none; }
  .msd-flash-sale-card,
  .msd-flash-sale-card__media img { transition: none; }
}

