@import url("shop.css");

.deals-pending .dashboard-shell { visibility: hidden; }
.deals-main { min-height: 70vh; }
.deals-main .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; white-space: nowrap; border: 0; clip: rect(0, 0, 0, 0); }

.deals-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  margin: 7px 0 20px;
  padding: 25px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 58%, var(--accent));
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(15, 118, 110, .2);
}
.deals-hero > * { min-width: 0; }
.deals-hero::after { position: absolute; width: 210px; height: 210px; inset: -90px -70px auto auto; background: rgba(255,255,255,.09); border-radius: 50%; content: ""; }
.deals-hero__content, .deals-countdown { position: relative; z-index: 1; }
.deals-hero__eyebrow { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.deals-hero h1 { margin: 7px 0; font-size: clamp(30px, 8vw, 48px); letter-spacing: -.045em; }
.deals-hero p { max-width: 520px; margin: 0; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 600; line-height: 1.7; }
.deals-hero__button { min-height: 43px; width: fit-content; display: inline-flex; align-items: center; margin-top: 17px; padding: 0 18px; color: var(--primary-dark); background: #fff; border-radius: 10px; font-size: 10px; font-weight: 800; }
.deals-countdown > span { display: block; margin-bottom: 8px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.deals-countdown__units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.deals-countdown__unit { min-width: 0; display: grid; justify-items: center; gap: 2px; padding: 10px 4px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; backdrop-filter: blur(5px); }
.deals-countdown__unit strong { font-size: 18px; line-height: 1; }
.deals-countdown__unit small { color: rgba(255,255,255,.72); font-size: 7px; font-weight: 700; text-transform: uppercase; }

.deal-categories { margin-bottom: 18px; }
.deal-categories h2 { margin: 0 0 11px; font-size: 14px; }
.deal-categories__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.deal-category { min-width: 0; min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 10px; color: var(--primary-dark); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 18px rgba(15,118,110,.05); cursor: pointer; font-size: 9px; font-weight: 800; text-align: left; }
.deal-category svg { width: 18px; flex: 0 0 18px; fill: none; stroke: var(--primary); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.deal-category.is-active { color: #fff; background: var(--primary); border-color: var(--primary); }
.deal-category.is-active svg { stroke: #fff; }

.deal-labels { position: absolute; z-index: 2; inset: 8px auto auto 8px; display: grid; gap: 4px; }
.deal-label { width: fit-content; padding: 4px 6px; color: #fff; background: #dc2626; border-radius: 7px; font-size: 7px; font-weight: 800; }
.deal-label--stock { background: #ea580c; }
.deal-label--extra { background: var(--primary); }
.deals-main .featured-product__discount { inset-block-start: auto; inset-block-end: 8px; }
.deal-progress { margin: 0 0 9px; }
.deal-progress__copy { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 5px; color: #64748b; font-size: 8px; font-weight: 700; }
.deal-progress__track { height: 5px; overflow: hidden; background: #e2e8f0; border-radius: 999px; }
.deal-progress__track span { height: 100%; display: block; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: inherit; transition: width 500ms ease; }
.deals-main .featured-product__badges { min-height: 27px; }

.deals-empty a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; color: #fff; background: var(--primary); border-radius: 10px; font-size: 10px; font-weight: 800; }

@media (min-width: 600px) {
  .deals-hero { grid-template-columns: minmax(0, 1fr) 330px; align-items: center; padding: 34px; }
  .deal-categories__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deal-category { min-height: 68px; padding: 14px; font-size: 10px; }
}
@media (min-width: 900px) {
  .deal-categories__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .deals-hero { padding: 21px 15px; border-radius: 16px; }
  .deals-countdown__units { gap: 4px; }
  .deals-countdown__unit { padding-inline: 2px; }
  .deals-countdown__unit strong { font-size: 16px; }
  .deal-category { padding: 8px; font-size: 8px; }
  .deal-label { padding-inline: 4px; font-size: 6px; }
}
