/* ============================================================================
   Costco97 — Deals archive (from Deals Archive.dc.html)
   ========================================================================== */

/* ---- Hero ---- */
.c97dg-hero { background: linear-gradient(180deg, #eef3fb 0%, #f7f9fc 60%, #fff 100%); padding-top: 16px; }
.c97dg-hero__inner { max-width: 860px; margin: 0 auto; padding: 40px 22px 12px; text-align: center; }
.c97dg-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c97-blue); background: #fff; border: 1px solid #dbe4f0; padding: 7px 15px; border-radius: var(--c97-r-pill); margin-bottom: 22px; }
.c97dg-live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c97-red); box-shadow: 0 0 0 4px rgba(180,35,31,.14); }
.c97dg-h1 { margin: 0; font-size: 58px; line-height: 1.03; font-weight: 600; letter-spacing: -.025em; color: var(--c97-ink); }
.c97dg-sub { margin: 20px auto 0; max-width: 620px; font-size: 20px; line-height: 1.5; font-weight: 300; color: #484850; }
.c97dg-sub__price { font-weight: 500; color: var(--c97-ink); }
.c97dg-97 { color: var(--c97-navy); }
.c97dg-stats { display: flex; justify-content: center; gap: 44px; margin-top: 30px; flex-wrap: wrap; }
.c97dg-stat { font-size: 32px; font-weight: 600; letter-spacing: -.02em; color: var(--c97-blue); }
.c97dg-stat__label { font-size: 13px; color: var(--c97-muted); margin-top: 2px; }
.c97dg-crosslinks { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.c97dg-crosslinks a { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; color: var(--c97-blue); }
.c97dg-crosslinks a:hover { text-decoration: underline; }
.c97dg-crosslinks a.c97-btn { color: #fff; font-weight: 600; }
.c97dg-crosslinks a.c97-btn:hover { text-decoration: none; }
.c97dg-crosslinks__div { width: 1px; height: 15px; background: var(--c97-line); }

/* Product search — the wrapper must have symmetric vertical box or the
   absolutely-centered icon/clear drift off the input's center. Outer spacing
   lives on the hero instead. */
.c97dg-hero { padding-bottom: 44px; }
.c97dg-searchwrap { position: relative; max-width: 660px; margin: 26px auto 0; padding: 0 22px; }
.c97dg-searchwrap > svg { position: absolute; left: 42px; top: 50%; transform: translateY(-50%); }
.c97dg-searchwrap input { width: 100%; border: 1px solid #cddcf0; border-radius: var(--c97-r-pill); background: #fff; padding: 17px 52px 17px 54px; font-size: 17px; color: var(--c97-ink); outline: none; box-shadow: 0 16px 38px -26px rgba(0,42,92,.5); transition: border-color .2s, box-shadow .2s; font-family: inherit; }
.c97dg-searchwrap input:focus { border-color: var(--c97-blue); box-shadow: 0 0 0 3px rgba(0,96,169,.12); }
/* Centered via top/bottom+margin (NOT transform) — the global button hover
   applies its own transform and would yank a translateY-centered button down. */
.c97dg-searchclear { position: absolute; right: 36px; top: 0; bottom: 0; margin: auto 0; width: 30px; height: 30px; border-radius: 50%; background: var(--c97-fill); border: none; cursor: pointer; color: var(--c97-muted); font-size: 17px; line-height: 1; }
.c97dg-searchclear:hover { background: #e3e3e8; color: var(--c97-ink); transform: none; box-shadow: none; }

/* ---- Sticky filter bar ---- */
.c97dg-filterbar { position: sticky; top: var(--c97-navh); z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--c97-line-soft); }
.c97dg-filterbar__inner { padding: 13px 22px; display: flex; align-items: center; gap: 16px; }
.c97dg-controls { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.c97dg-select { position: relative; display: inline-flex; }
.c97dg-select select { appearance: none; -webkit-appearance: none; border: 1px solid var(--c97-line); background: #fff; border-radius: var(--c97-r-pill); padding: 9px 34px 9px 15px; font-size: 14px; font-weight: 500; color: var(--c97-ink); cursor: pointer; outline: none; font-family: inherit; max-width: 230px; }
.c97dg-select svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.c97dg-status { display: inline-flex; background: var(--c97-fill); border-radius: var(--c97-r-pill); padding: 3px; }
.c97dg-status button { border: none; background: transparent; border-radius: var(--c97-r-pill); padding: 7px 15px; font-size: 13px; font-weight: 500; color: var(--c97-muted-2); cursor: pointer; font-family: inherit; }
.c97dg-status button.is-active { background: #fff; color: var(--c97-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.c97dg-sortwrap { flex: none; display: flex; align-items: center; gap: 9px; }
.c97dg-sortwrap > span { font-size: 13px; color: var(--c97-muted); font-weight: 500; white-space: nowrap; }

/* ---- Results ---- */
.c97dg-results { padding: 26px 22px 20px; }
.c97dg-count { font-size: 14px; color: var(--c97-muted); margin-bottom: 20px; }
.c97dg-count [data-dg-count] { color: var(--c97-ink); font-weight: 500; }
.c97dg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 20px; align-items: start; }

/* Card */
.c97dg-card { display: flex; flex-direction: column; border: 1px solid var(--c97-line-soft); border-radius: 16px; overflow: hidden; background: #fff; color: inherit; transition: box-shadow .2s, border-color .2s, transform .2s; }
.c97dg-card:hover { box-shadow: 0 16px 40px -22px rgba(0,42,92,.4); border-color: #dbe4f0; transform: translateY(-3px); text-decoration: none; }
.c97dg-card__media { aspect-ratio: 4 / 3; position: relative; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--c97-slot); background: linear-gradient(135deg, #eef3fb, #dbe7f7) center/cover no-repeat; color: rgba(0,68,120,.30); }
.c97dg-card__media.has-img { color: transparent; }
.c97dg-card__chip { position: absolute; top: 11px; left: 11px; font-size: 11px; font-weight: 600; color: var(--c97-ink); background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.04); padding: 5px 10px; border-radius: var(--c97-r-pill); backdrop-filter: blur(4px); }
.c97dg-card__chip--mm { color: #fff; background: var(--c97-blue); border-color: var(--c97-blue); }
.c97dg-card__save { position: absolute; top: 11px; right: 11px; font-size: 11px; font-weight: 700; color: #fff; background: var(--c97-red); padding: 5px 9px; border-radius: var(--c97-r-pill); }
.c97dg-card__body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.c97dg-card__title { font-size: 15px; font-weight: 600; line-height: 1.32; color: var(--c97-ink); letter-spacing: -.01em; min-height: 40px; }
.c97dg-card__pricerow { display: flex; align-items: baseline; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.c97dg-card__price { font-size: 22px; font-weight: 600; color: var(--c97-ink); letter-spacing: -.01em; }
.c97dg-card__mdm { font-size: 15px; font-weight: 600; color: var(--c97-blue); }
.c97dg-card__was { font-size: 13px; color: var(--c97-faint); text-decoration: line-through; }
.c97dg-card__foot { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f2; font-size: 12.5px; color: var(--c97-muted); }
.c97dg-card__loc { color: #484850; font-weight: 500; }
.c97dg-card__dot { color: var(--c97-line); }

/* In-grid ad */
.c97dg-gridad { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; }
.c97dg-gridad .c97-adslot { width: 100%; max-width: 728px; min-height: 90px; }

/* Empty + load more */
.c97dg-empty { text-align: center; padding: 64px 20px 84px; }
.c97dg-empty svg { display: block; margin: 0 auto 14px; }
.c97dg-empty__t { font-size: 20px; font-weight: 600; color: var(--c97-ink); }
.c97dg-empty p { margin: 8px 0 20px; font-size: 15px; color: var(--c97-muted); }
.c97dg-more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 38px 0 8px; }
.c97dg-morebtn { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--c97-blue); border: 1px solid #cddcf0; border-radius: var(--c97-r-pill); padding: 13px 30px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: inherit; }
.c97dg-morebtn:hover { background: var(--c97-blue-tint); }
.c97dg-morebtn:disabled { opacity: .55; cursor: default; }
.c97dg-more__count { font-size: 13px; color: var(--c97-muted); }

/* Post-a-deal note */
.c97dg-postnote { padding: 20px 22px 56px; }
.c97dg-postnote__card { background: var(--c97-wash); border-radius: 18px; padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.c97dg-postnote__title { font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--c97-ink); }
.c97dg-postnote__card p { margin: 8px 0 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: var(--c97-footer-txt); }

/* ---- Responsive ---- */
@media (max-width: 760px) {
	.c97dg-h1 { font-size: 42px; }
	.c97dg-filterbar__inner { flex-direction: column; align-items: stretch; gap: 10px; }
	.c97dg-sortwrap { justify-content: space-between; }
}
