/* SURGE — tabbed-deals
   "Deals That Hit Hard" — pulsing live-deals eyebrow, category tab strip, 4-col deal cards. */

.sg-deals { padding-block: var(--space-8); }

.sg-deals__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: 24px;
}
.sg-deals__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sg-deals__pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: sg-deals-pulse 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes sg-deals-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.sg-deals__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--color-text);
}
.sg-deals__view-all {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.sg-deals__view-all:hover { color: var(--color-accent); }

/* ── Tabs ─────────────────────────────────────────────────────────── */
.sg-deals__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--color-border-soft, #EEE);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sg-deals__tabs::-webkit-scrollbar { display: none; }
.sg-deals__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}
.sg-deals__tab:hover { color: var(--color-text); }
.sg-deals__tab.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}
.sg-deals__tab-sep   { color: var(--color-text-soft); }
.sg-deals__tab-count { color: var(--color-text-muted); }

/* ── Cards ────────────────────────────────────────────────────────── */
.sg-deals__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sg-deals__card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid var(--color-border-soft, #EEE);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  color: inherit;
}
.sg-deals__card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border, #E4E4E7);
  box-shadow: 0 16px 40px -16px rgba(15,15,15,0.16);
}

.sg-deals__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #F4F4F5;
  overflow: hidden;
}
.sg-deals__thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sg-deals__countdown {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,59,48,0.95);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Body ─────────────────────────────────────────────────────────── */
.sg-deals__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sg-deals__vendor {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.sg-deals__name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.sg-deals__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.sg-deals__price {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sg-deals__price-now {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}
.sg-deals__price-was {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-soft);
  text-decoration: line-through;
}
.sg-deals__off {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,59,48,0.10);
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .sg-deals__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sg-deals__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sg-deals__title { font-size: var(--text-2xl); }
}
@media (max-width: 480px) {
  .sg-deals__grid { grid-template-columns: 1fr; }
}
