.flash-sale {
  --fs-blue: #0d5bd7;
  --fs-blue-dark: #0a45a3;
  --fs-red: #ee2d24;
  --fs-red-dark: #c92019;
  --fs-yellow: #ffd24d;
  --fs-ink: #162033;
  --fs-muted: #69738a;
  --fs-border: #d9e3f2;
  --fs-shell: #f3f7ff;
  --fs-card: #ffffff;
  --fs-radius: 18px;
  --fs-shadow: 0 20px 45px rgba(13, 42, 89, 0.08);
  padding: 40px 0 56px; }

.flash-sale__shell {
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
  border: 1px solid rgba(13, 91, 215, 0.08);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--fs-shadow); }

.flash-sale__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--fs-blue) 0%, #1e7ef3 55%, #4d9dff 100%);
  color: #fff;
  margin-bottom: 24px; }

.flash-sale__eyebrow {
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.78); }

.flash-sale__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff; }

.flash-sale__title-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: var(--fs-yellow); }

.flash-sale__title-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor; }

.flash-sale__countdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end; }

.flash-sale__countdown-item {
  min-width: 70px;
  text-align: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(6px); }

.flash-sale__countdown-number {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums; }

.flash-sale__countdown-label {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82); }

.flash-sale__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px; }

.flash-sale__card {
  position: relative;
  background: var(--fs-card);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 45, 94, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease; }

.flash-sale__card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 91, 215, 0.2);
  box-shadow: 0 18px 34px rgba(15, 45, 94, 0.13); }

.flash-sale__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fs-red) 0%, #ff6c37 100%);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(238, 45, 36, 0.24); }

.flash-sale__media {
  display: block;
  color: inherit;
  text-decoration: none; }

.flash-sale__image-wrap {
  position: relative;
  padding-top: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #edf3ff 100%);
  overflow: hidden; }

.flash-sale__image-wrap--placeholder {
  background: linear-gradient(90deg, #eef3fb 25%, #f8fbff 50%, #eef3fb 75%);
  background-size: 200% 100%;
  animation: flashsale-loading 1.4s linear infinite; }

.flash-sale__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease; }

.flash-sale__card:hover .flash-sale__image {
  transform: scale(1.05); }

.flash-sale__card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 16px; }

.flash-sale__product-name {
  min-height: 42px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--fs-ink); }

.line-clamp-2, .flash-sale__product-name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  min-height: 2.8em; }

.flash-sale__product-name a {
  color: inherit;
  text-decoration: none; }

.flash-sale__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap; }

.flash-sale__price {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--fs-red); }

.flash-sale__price--compare {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--fs-muted);
  text-decoration: line-through; }

.flash-sale__meta {
  min-height: 20px; }

.flash-sale__stock {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fs-muted); }

.flash-sale__stock strong {
  color: var(--fs-ink);
  font-weight: 700; }

.flash-sale__stock--soldout {
  color: var(--fs-red);
  font-weight: 700; }

.flash-sale__actions {
  margin-top: auto; }

.flash-sale__btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fs-red) 0%, #ff6c37 100%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 18px rgba(238, 45, 36, 0.18); }

.flash-sale__btn-cart:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(238, 45, 36, 0.22); }

.flash-sale__btn-cart.is-disabled {
  background: #bfc7d7;
  box-shadow: none;
  pointer-events: none; }

.flash-sale__footer {
  display: flex;
  justify-content: center;
  margin-top: 28px; }

.flash-sale__view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 28px;
  border: 2px solid var(--fs-blue);
  border-radius: 999px;
  background: transparent;
  color: var(--fs-blue);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }

.flash-sale__view-all:hover {
  background: var(--fs-blue);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px); }

.flash-sale__placeholder {
  border-radius: 999px;
  background: linear-gradient(90deg, #eef3fb 25%, #f8fbff 50%, #eef3fb 75%);
  background-size: 200% 100%;
  animation: flashsale-loading 1.4s linear infinite; }

.flash-sale__placeholder--title {
  width: 92%;
  height: 14px; }

.flash-sale__placeholder--price {
  width: 58%;
  height: 18px; }

.flash-sale__placeholder--meta {
  width: 48%;
  height: 12px; }

@keyframes flashsale-loading {
  0% {
    background-position: 200% 0; }
  100% {
    background-position: -200% 0; } }

@media (max-width: 1199px) {
  .flash-sale__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (max-width: 991px) {
  .flash-sale {
    padding: 32px 0 44px; }
  .flash-sale__shell {
    padding: 18px;
    border-radius: 22px; }
  .flash-sale__header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px; }
  .flash-sale__countdown {
    justify-content: flex-start; }
  .flash-sale__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 767px) {
  .flash-sale__title {
    font-size: 24px; }
  .flash-sale__countdown-item {
    min-width: 62px;
    padding: 8px 10px; }
  .flash-sale__countdown-number {
    font-size: 20px; }
  .flash-sale__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px; } }

@media (max-width: 479px) {
  .flash-sale__shell {
    padding: 14px; }
  .flash-sale__header {
    gap: 16px;
    padding: 16px;
    border-radius: 18px; }
  .flash-sale__title {
    font-size: 21px; }
  .flash-sale__countdown {
    width: 100%;
    gap: 8px; }
  .flash-sale__countdown-item {
    flex: 1 1 calc(50% - 8px);
    min-width: 0; }
  .flash-sale__product-name {
    min-height: 40px;
    font-size: 14px; }
  .flash-sale__price {
    font-size: 16px; }
  .flash-sale__btn-cart {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 12px; } }
