/* 折扣 / 特惠活动页 */

.page-flash-deals.is-loading #storeHeader,
.page-flash-deals.is-loading .tk-flash-shell,
.page-flash-deals.is-loading #storeFooter,
.page-flash-deals.is-loading #storeFooterLinks {
  visibility: hidden;
  pointer-events: none;
}

.page-flash-deals.is-loading .tk-flash-loading {
  display: flex;
}

.tk-flash-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 420px;
  color: #666;
  font-size: 14px;
}

.tk-flash-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #f0f0f0;
  border-top-color: #ff9900;
  border-radius: 50%;
  animation: tk-flash-spin 0.8s linear infinite;
}

@keyframes tk-flash-spin {
  to { transform: rotate(360deg); }
}

.page-flash-deals .store-footer {
  margin-top: 0;
}

.tk-flash-page {
  padding-top: 8px;
  padding-bottom: 48px;
}

.tk-flash-page__head {
  margin-bottom: 28px;
}

.tk-flash-page__head h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: #111;
}

.tk-flash-page__head p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.tk-flash-group {
  margin-bottom: 36px;
}

.tk-flash-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.tk-flash-group__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.tk-flash-group__badge--active {
  background: #fff3e0;
  color: #ff9900;
  border: 1px solid #ffd699;
}

.tk-flash-group__badge--upcoming {
  background: #eef4ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.tk-flash-deals-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tk-flash-deal {
  position: relative;
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.tk-flash-deal::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #ddd;
}

.tk-flash-deal.is-active {
  border-color: #ffd699;
}

.tk-flash-deal.is-active::before {
  background: linear-gradient(180deg, #ffb800 0%, #ff9900 100%);
}

.tk-flash-deal.is-upcoming {
  border-color: #bfdbfe;
}

.tk-flash-deal.is-upcoming::before {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.tk-flash-deal.is-highlight {
  box-shadow: 0 0 0 2px #ff9900, 0 10px 28px rgba(255, 153, 0, 0.14);
}

.tk-flash-deal__head {
  display: flex;
  align-items: stretch;
  min-height: 168px;
}

.tk-flash-deal__meta {
  flex: 0 0 36%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.tk-flash-deal.is-active .tk-flash-deal__meta {
  background: linear-gradient(135deg, #fff8eb 0%, #fffdf8 100%);
}

.tk-flash-deal.is-upcoming .tk-flash-deal__meta {
  background: linear-gradient(135deg, #f5f8ff 0%, #fafcff 100%);
}

.tk-flash-deal__status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tk-flash-deal__status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.95;
}

.tk-flash-deal__status.is-active {
  background: #ff9900;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.28);
}

.tk-flash-deal__status.is-upcoming {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.tk-flash-deal__title {
  position: relative;
  margin: 0 0 10px;
  padding-bottom: 12px;
  font-size: 26px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.tk-flash-deal__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: #111;
}

.tk-flash-deal.is-active .tk-flash-deal__title::after {
  background: #ff9900;
}

.tk-flash-deal.is-upcoming .tk-flash-deal__title::after {
  background: #2563eb;
}

.tk-flash-deal__desc {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

.tk-flash-deal__panel {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  background: #fafafa;
}

.tk-flash-deal.is-active .tk-flash-deal__panel {
  background: linear-gradient(180deg, #fff 0%, #fffaf2 100%);
}

.tk-flash-deal.is-upcoming .tk-flash-deal__panel {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.tk-flash-deal__schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: center;
  padding: 24px 22px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.tk-flash-deal__time {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.tk-flash-deal__time-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
}

.tk-flash-deal__time-label i {
  font-size: 13px;
  color: #aaa;
}

.tk-flash-deal.is-active .tk-flash-deal__time-label i {
  color: #ff9900;
}

.tk-flash-deal.is-upcoming .tk-flash-deal__time-label i {
  color: #2563eb;
}

.tk-flash-deal__time-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tk-flash-deal__time-date {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.tk-flash-deal__time-clock {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.tk-flash-deal__countdown-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 26px;
}

.tk-flash-deal__countdown-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
}

.tk-flash-deal__countdown {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.tk-flash-deal__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 10px 10px 8px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.tk-flash-deal.is-active .tk-flash-deal__unit {
  border-color: #ffe0a3;
}

.tk-flash-deal.is-upcoming .tk-flash-deal__unit {
  border-color: #bfdbfe;
}

.tk-flash-deal__num {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tk-flash-deal.is-active .tk-flash-deal__num {
  color: #ff9900;
}

.tk-flash-deal.is-upcoming .tk-flash-deal__num {
  color: #2563eb;
}

.tk-flash-deal__unit small {
  margin-top: 6px;
  font-size: 11px;
  color: #888;
}

.tk-flash-deal__sep {
  font-size: 18px;
  font-weight: 700;
  color: #ccc;
  line-height: 1;
  padding-bottom: 12px;
}

.tk-flash-deal__body {
  padding: 22px 28px 28px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.tk-flash-deal__products-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.tk-flash-deal__products-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #ff9900;
}

.tk-flash-deal.is-upcoming .tk-flash-deal__products-title::before {
  background: #2563eb;
}

.tk-flash-deal.is-upcoming .tk-product-card__cart {
  opacity: 0.55;
  cursor: not-allowed;
}

.tk-flash-deal.is-upcoming .tk-product-card__cart:hover {
  background: #ff9900;
}

@media (max-width: 1100px) {
  .tk-flash-deal__head {
    flex-direction: column;
    min-height: 0;
  }

  .tk-flash-deal__meta {
    flex: none;
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .tk-flash-deal__panel {
    grid-template-columns: 1fr;
  }

  .tk-flash-deal__schedule {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 640px) {
  .tk-flash-deal__schedule {
    grid-template-columns: 1fr;
  }

  .tk-flash-deal__meta,
  .tk-flash-deal__schedule,
  .tk-flash-deal__countdown-box,
  .tk-flash-deal__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tk-flash-deal__countdown {
    justify-content: center;
  }
}
