.flash-sale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 15px;
  background: #23121c;
}
@media (max-width: 768px) {
  .flash-sale-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fsg-card {
  background: #1a0d18;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: inherit;
}

/* ---- Ảnh + badge layer ---- */
.fsg-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.fsg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fsg-badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e94560;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px 5px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}
.fsg-icon-bolt {
  flex-shrink: 0;
}

.fsg-badge-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a0d18;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
}

.fsg-wishlist {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
}
.fsg-wishlist a,
.fsg-wishlist button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4b400 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Info layer ---- */
.fsg-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fsg-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.fsg-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.fsg-title a {
  color: #fff;
  text-decoration: none;
}
.fsg-version {
  flex-shrink: 0;
  font-size: 11px;
  color: #b98aff;
  border: 1px solid #b98aff;
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 2px;
}

.fsg-desc {
  font-size: 13px;
  color: #b8b0c0;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fsg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
}

.fsg-sold {
  font-size: 12px;
  color: white;
  margin: 2px 0 6px;
}

.fsg-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fsg-percent-tag {
  background: rgba(233, 69, 96, 0.15);
  color: #e94560;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.fsg-price-row del,
.fsg-price-row del .amount,
.fsg-price-row del bdi,
.fsg-price-row del .woocommerce-Price-currencySymbol {
    color: #ffffff !important;
    font-size: 13px;
}

.fsg-price-row ins,
.fsg-price-row ins .amount,
.fsg-price-row ins bdi,
.fsg-price-row ins .woocommerce-Price-currencySymbol {
    color: #EF4444 !important;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}
.fsg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px 24px;
  flex-wrap: wrap;
  gap: 12px;
  background: #23121c;
}

.fsg-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fsg-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #e94560);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.fsg-header-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.fsg-header-title em {
  color: #e94560;
  font-style: italic;
}
.fsg-header-tag {
  font-family: inherit;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  background: #e94560;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
}

.fsg-header-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #a89fb0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fsg-countdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e94560;
  font-weight: 700;
}
.fsg-countdown-value {
  font-variant-numeric: tabular-nums;
}

.fsg-header-viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e94560;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.fsg-header-viewall:hover {
  text-decoration: underline;
}
