/* DropBestie Deal Cards v4.1 — visual refresh
   Design direction: a bargain-hunter's "treasure find" feeling without
   looking like a coupon-clipper flyer. Warm plum + amber (find/reward),
   one confident serif for headlines (the thing people scan for), clean
   sans for prices and everything else so numbers stay unambiguous.
   Fonts (Fraunces/Inter) are loaded via wp_enqueue_style in the plugin
   PHP, not @import here — @import is a render-blocking, unreliable way
   to load cross-domain fonts and silently falls back to a default serif
   when it's blocked, which is part of why price digits were unclear. */

:root {
  /* Core palette — deep plum instead of hot pink (reads premium, not
     coupon-flyer), warm amber for "you found something good" instead of
     a clashing orange+gold combo */
  --dm-plum:        #6B1E4F;
  --dm-plum-dark:   #4A1436;
  --dm-plum-deep:   #2A0E22;
  --dm-rose:        #8E2A52;
  --dm-rose-lighter:#C4477B;
  --dm-rose-dark:   #6B1F3D;
  --dm-rose-light:  #FBEAF1;
  --dm-amber:       #C97A1E;
  --dm-amber-light: #FBF0DE;
  --dm-ink:         #201C24;
  --dm-ink-soft:    #55505E;
  --dm-paper:       #FEFCFB;
  --dm-line:        #ECE7E9;

  --dm-radius:    16px;
  --dm-radius-sm: 10px;
  --dm-shadow:       0 1px 2px rgba(42,14,34,0.05), 0 4px 14px rgba(42,14,34,0.06);
  --dm-shadow-hover: 0 14px 32px rgba(107,30,79,0.16);

  --dm-font-display: 'Fraunces', Georgia, serif;
  --dm-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Prices specifically use the clean sans, not the display serif — Fraunces
     is a stylized, "characterful" serif whose digit shapes are genuinely
     harder to tell apart at a glance (3/5/8 especially), which is bad for
     the one number on the page people most need to read correctly. */
  --dm-font-price:   var(--dm-font-body);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Header ── */
.site-header, header#masthead {
  border-bottom: 1px solid var(--dm-line) !important;
  box-shadow: none !important;
  background: var(--dm-paper) !important;
}
.site-title a {
  font-family: var(--dm-font-display) !important;
  font-weight: 600 !important;
  font-style: italic;
  font-size: 26px !important;
  color: var(--dm-plum-dark) !important;
  text-decoration: none !important;
  letter-spacing: -0.2px;
}
.main-navigation a { font-family: var(--dm-font-body); color: var(--dm-ink-soft) !important; }
.main-navigation a:hover { color: var(--dm-rose-dark) !important; }

/* ── Tagline bar ── */
.dm-tagline-bar {
  background: var(--dm-plum-deep);
  color: #F1E4EC;
  text-align: center;
  font-family: var(--dm-font-body);
  font-size: 13px;
  padding: 9px 16px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.dm-tagline-bar b { color: #E9AECB; font-weight: 700; }

/* ── Affiliate disclosure ── */
.dm-disclosure-line {
  text-align: center;
  font-family: var(--dm-font-body);
  font-size: 11.5px;
  color: var(--dm-ink-soft);
  background: var(--dm-amber-light);
  padding: 6px 16px;
  border-bottom: 1px solid var(--dm-line);
}
.dm-disclosure-bar {
  background: var(--dm-plum-deep);
  padding: 14px 16px 20px;
  font-family: var(--dm-font-body);
  font-size: 11.5px;
  line-height: 1.6;
  color: #A79FA5;
  text-align: center;
}
.dm-disclosure-bar-inner { max-width: 1360px; margin: 0 auto; }
.dm-disclosure-bar-inner a { color: #C6B5C0; text-decoration: underline; }
.dm-disclosure-bar-inner a:hover { color: #F0C4DA; }

/* ── Live pill ── */
.dm-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dm-rose-light);
  color: var(--dm-rose-dark);
  font-family: var(--dm-font-body);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}
.dm-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dm-rose-dark);
  display: inline-block;
  animation: dm-pulse 1.6s infinite;
}
@keyframes dm-pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }

/* ── Filter bar ── */
.dm-filter-bar {
  background: var(--dm-paper);
  border-bottom: 1px solid var(--dm-line);
  padding: 12px 16px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.dm-filter-bar::-webkit-scrollbar { display: none; }
.dm-filter-inner { display: inline-flex; gap: 8px; }
.dm-filter-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  font-family: var(--dm-font-body);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--dm-line);
  background: #fff;
  color: var(--dm-ink-soft);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  transition: all 0.15s;
}
.dm-filter-btn.active, .dm-filter-btn:hover {
  border-color: var(--dm-rose);
  background: var(--dm-rose-light);
  color: var(--dm-rose-dark);
}

/* ── Hero ── */
.dm-hero {
  display: flex;
  background: linear-gradient(150deg, var(--dm-plum-deep) 0%, var(--dm-plum-dark) 55%, var(--dm-plum) 100%);
  border-radius: var(--dm-radius);
  overflow: hidden;
  margin-bottom: 28px;
  color: #fff;
  min-height: 180px;
  box-shadow: 0 10px 30px rgba(42,14,34,0.28);
}
.dm-hero-img {
  width: 220px; min-width: 220px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  position: relative;
}
.dm-hero-img img { width: 100%; object-fit: contain; max-height: 170px; }
.dm-hero-img-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--dm-amber);
  color: #fff; font-family: var(--dm-font-body); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 11px; border-radius: 20px;
  z-index: 2;
}
.dm-hero-body {
  padding: 26px 30px;
  display: flex; flex-direction: column; gap: 11px;
  justify-content: center;
  font-family: var(--dm-font-body);
}
.dm-hero-top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dm-hero-label { font-size: 11.5px; font-weight: 700; color: #E9AECB; letter-spacing: 1.6px; text-transform: uppercase; }
.dm-hero-score {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: #F6D9A8;
  font-size: 12.5px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  cursor: help;
}
.dm-hero-score-q { opacity: 0.85; font-size: 11px; }
.dm-hero-title {
  font-family: var(--dm-font-display);
  font-weight: 600; font-size: 22px; line-height: 1.35; color: #fff;
  letter-spacing: -0.2px;
}
.dm-hero-explainer {
  font-size: 13px; line-height: 1.6; color: #D9CCD6;
  max-width: 480px; margin-top: -2px;
}
.dm-hero-price-row { display: flex; align-items: baseline; gap: 11px; margin-top: 3px; }
.dm-hero-price {
  font-family: var(--dm-font-price); font-weight: 800;
  font-size: 30px; color: #F0C4DA; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dm-hero-orig { font-size: 14px; color: #A99AA5; text-decoration: line-through; }
.dm-hero-save { background: var(--dm-amber); padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.dm-hero-btn {
  background: var(--dm-rose);
  color: #fff !important;
  font-weight: 800; font-size: 14.5px; letter-spacing: 0.1px;
  padding: 11px 22px;
  border-radius: 9px;
  text-decoration: none !important;
  width: fit-content;
  margin-top: 5px;
  display: inline-block;
  transition: background 0.15s, transform 0.15s;
}
.dm-hero-btn:hover { background: var(--dm-rose-dark) !important; transform: translateY(-1px); }
@media (max-width: 580px) {
  .dm-hero { flex-direction: column; }
  .dm-hero-img { width: 100%; min-width: unset; max-height: 160px; }
  .dm-hero-title { font-size: 19px; }
}

/* ── Layout: main content + sidebar ── */
.dm-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--dm-paper);
}
.dm-archive-wrap { flex: 1; min-width: 0; max-width: none; padding: 0; margin: 0; }

.dm-sidebar {
  width: 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 20px;
}
.dm-sidebar-box {
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  padding: 18px;
  box-shadow: var(--dm-shadow);
}
.dm-sidebar-title {
  font-family: var(--dm-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--dm-ink);
  margin-bottom: 12px;
}

/* Trending list */
.dm-trend-row {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--dm-line);
  text-decoration: none !important;
}
.dm-trend-row:last-child { border-bottom: none; padding-bottom: 0; }
.dm-trend-row:first-child { padding-top: 0; }
.dm-trend-thumb {
  width: 52px; height: 52px; min-width: 52px;
  background: #FAF7F8;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3em;
  overflow: hidden;
}
.dm-trend-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.dm-trend-info { min-width: 0; }
.dm-trend-title {
  font-family: var(--dm-font-body);
  font-size: 12.5px; font-weight: 500; color: var(--dm-ink);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dm-trend-price {
  font-family: var(--dm-font-display); font-weight: 700; font-size: 13.5px;
  color: var(--dm-plum); margin-top: 2px;
}
.dm-sidebar-empty { font-size: 12.5px; color: #8A8390; font-family: var(--dm-font-body); }

/* Category list (sidebar) */
.dm-sidebar-cats { display: flex; flex-direction: column; gap: 3px; }
.dm-sidebar-cat {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--dm-font-body); font-size: 13.5px; font-weight: 500;
  color: var(--dm-ink-soft);
  padding: 8px 10px; border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}
.dm-sidebar-cat:hover { background: var(--dm-rose-light); color: var(--dm-rose-dark) !important; }
.dm-sidebar-cat.active { background: var(--dm-rose-light); color: var(--dm-rose-dark) !important; font-weight: 700; }

/* Follow box */
.dm-sidebar-follow { background: linear-gradient(160deg, var(--dm-plum-deep), var(--dm-plum-dark)); border: none; }
.dm-sidebar-follow .dm-sidebar-title { color: #fff; }
.dm-sidebar-text { font-family: var(--dm-font-body); font-size: 12.5px; color: #D9CCD6; line-height: 1.6; margin: 0 0 14px; }
.dm-sidebar-follow-btn {
  display: block; text-align: center;
  background: var(--dm-rose); color: #fff !important;
  font-family: var(--dm-font-body); font-weight: 700; font-size: 13px;
  padding: 10px; border-radius: 9px; text-decoration: none !important;
  transition: background 0.15s;
}
.dm-sidebar-follow-btn:hover { background: var(--dm-rose-dark) !important; }

/* Email signup */
.dm-email-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dm-email-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 9px;
  padding: 10px 12px;
  font-family: var(--dm-font-body);
  font-size: 13px;
  color: #fff;
}
.dm-email-input::placeholder { color: #B8AAB4; }
.dm-email-input:focus { outline: none; border-color: var(--dm-rose-lighter); background: rgba(255,255,255,0.16); }
.dm-email-btn {
  width: 100%;
  box-sizing: border-box;
  background: var(--dm-amber) !important;
  color: #fff !important;
  border: none;
  font-family: var(--dm-font-body); font-weight: 700; font-size: 13px;
  padding: 10px; border-radius: 9px; cursor: pointer;
  transition: background 0.15s;
}
.dm-email-btn:hover { background: #B06E1A !important; }
.dm-email-msg { font-family: var(--dm-font-body); font-size: 12px; font-weight: 600; margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; }
.dm-email-msg.success { background: rgba(255,255,255,0.14); color: #C9F0D3; }
.dm-email-msg.error   { background: rgba(255,255,255,0.14); color: #F3B8C4; }
.dm-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.dm-empty-state {
  font-family: var(--dm-font-body); color: var(--dm-ink-soft); font-size: 14px;
  padding: 40px 20px; text-align: center; background: #fff; border: 1px dashed var(--dm-line);
  border-radius: var(--dm-radius);
}
.dm-empty-state a { color: var(--dm-rose-dark); font-weight: 600; }

@media (max-width: 1020px) {
  .dm-layout { flex-direction: column; }
  .dm-sidebar { width: 100%; min-width: unset; position: static; flex-direction: row; flex-wrap: wrap; }
  .dm-sidebar-box { flex: 1; min-width: 260px; }
}
@media (max-width: 580px) {
  .dm-sidebar { flex-direction: column; }
}


/* ── Section header ── */
.dm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 10px;
}
.dm-section-title {
  font-family: var(--dm-font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--dm-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}
.dm-section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--dm-rose);
  border-radius: 2px;
}

/* ── Grid ── */
.dm-archive-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .dm-archive-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .dm-archive-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 580px)  { .dm-archive-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ── Card ── */
.dm-grid-card {
  font-family: var(--dm-font-body);
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  box-shadow: var(--dm-shadow);
}
.dm-grid-card:hover {
  box-shadow: var(--dm-shadow-hover);
  border-color: var(--dm-rose-light);
  transform: translateY(-3px);
}

/* ── Image ── */
.dm-grid-img-link { display: block; }
.dm-grid-img-wrap {
  width: 100%; height: 178px;
  background: #FAF7F8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--dm-line);
}
.dm-grid-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  box-sizing: border-box;
}
.dm-grid-no-img { font-size: 1.8em; color: #E4D9DE; }

/* ── Discount badge ── */
.dm-grid-discount {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--dm-amber);
  color: #fff;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.2px;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
}

/* ── Store badge ── */
.dm-grid-store-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.96);
  color: var(--dm-ink-soft);
  font-size: 10.5px; font-weight: 600;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--dm-line);
  z-index: 2;
}

/* ── Card body ── */
.dm-grid-body {
  padding: 16px 16px 16px;
  display: flex; flex-direction: column;
  flex: 1; gap: 9px;
}

/* ── Price row ── */
.dm-grid-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.dm-grid-price {
  font-family: var(--dm-font-price);
  font-size: 1.5em;
  font-weight: 800;
  color: var(--dm-plum);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dm-grid-orig-price {
  font-size: 0.86em;
  color: #9C939A;
  text-decoration: line-through;
}

/* ── Title ── */
.dm-grid-title {
  font-size: 0.93em;
  font-weight: 500;
  color: var(--dm-ink);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.dm-grid-title a { color: inherit; text-decoration: none; }
.dm-grid-title a:hover { color: var(--dm-rose-dark); }

/* ── Score row ── */
.dm-grid-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.dm-hot-score {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--dm-amber-light);
  color: #7A4E10;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 8px;
  cursor: help;
}
.dm-time-ago { font-size: 11.5px; color: #8A8390; font-weight: 500; }

/* ── Button ── */
.dm-grid-btn {
  display: block;
  margin-top: 9px;
  background: var(--dm-rose) !important;
  color: #fff !important;
  border: none !important;
  text-align: center;
  font-size: 0.87em;
  font-weight: 700;
  padding: 10px 10px;
  border-radius: var(--dm-radius-sm);
  text-decoration: none !important;
  transition: background 0.15s, transform 0.15s;
  letter-spacing: 0.1px;
}
.dm-grid-btn:hover {
  background: var(--dm-rose-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ── Pagination ── */
.dm-pagination {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--dm-line);
  text-align: center;
}
.dm-pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.dm-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1.5px solid var(--dm-line); border-radius: 10px;
  color: var(--dm-ink-soft); text-decoration: none; font-size: 13.5px;
  font-weight: 600; font-family: var(--dm-font-body);
  transition: all 0.15s;
}
.dm-pagination .page-numbers.current {
  background: var(--dm-rose); color: #fff !important; border-color: var(--dm-rose);
}
.dm-pagination .page-numbers.dots {
  border: none; color: #B5ADB2;
}
.dm-pagination .page-numbers:not(.current):not(.dots):hover {
  background: var(--dm-rose-light); color: var(--dm-rose-dark); border-color: var(--dm-rose-light);
}
.dm-pagination .prev.page-numbers, .dm-pagination .next.page-numbers {
  padding: 0 16px; font-weight: 700;
}

/* Defensive reset: some themes add default bottom margin/padding to their
   content wrapper (sized for a native sidebar widget area we're not using
   since the plugin builds its own two-column layout) which can leave a
   large blank gap between our content and the site footer. */
#primary, #content, .site-content, .content-area, main#main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ── Footer ── */
#colophon, footer.site-footer {
  background: var(--dm-plum-deep) !important;
  color: #C6B5C0 !important;
}
#colophon a, footer.site-footer a { color: #C6B5C0 !important; }
#colophon a:hover, footer.site-footer a:hover { color: #F0C4DA !important; }
.site-info, a[href*="wordpress.org"] { display: none !important; }

/* ── Single post ── */
.dm-deal-card {
  font-family: var(--dm-font-body);
  max-width: 680px; border: 1px solid var(--dm-line); border-radius: var(--dm-radius);
  overflow: hidden; margin: 0 auto 32px; position: relative;
  box-shadow: 0 6px 22px rgba(42,14,34,0.10); background: #fff;
}
.dm-img-wrap { width: 100%; background: #FAF7F8; display: flex; align-items: center; justify-content: center; max-height: 380px; overflow: hidden; }
.dm-product-img { width: 100%; max-height: 380px; object-fit: contain; display: block; }
.dm-discount-badge {
  position: absolute; top: 18px; right: 18px; background: var(--dm-amber-light); color: #7A4E10;
  font-weight: 700; font-size: 12.5px; padding: 6px 14px; border-radius: 20px;
  border: 1px solid #EFD9AE; z-index: 2;
}
.dm-price-row { display: flex; align-items: baseline; gap: 12px; margin: 24px 28px 8px; }
.dm-price {
  font-family: var(--dm-font-price); font-size: 2.4em; font-weight: 800;
  color: var(--dm-plum); line-height: 1; font-variant-numeric: tabular-nums;
}
.dm-orig-price { font-size: 1.05em; color: #9C939A; text-decoration: line-through; }
.dm-title { font-size: 1.12em; font-weight: 500; color: var(--dm-ink); margin: 12px 28px 8px; line-height: 1.55; }
.dm-meta { font-size: 0.85em; color: #8A8390; margin: 4px 28px 14px; }
.dm-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 28px 20px; }
.dm-badge { display: inline-block; font-size: 0.82em; font-weight: 600; padding: 6px 12px; border-radius: 20px; }
.dm-badge-green  { background: #E9F3EA; color: #35704A; border: 1px solid #CFE4D2; }
.dm-badge-orange { background: var(--dm-amber-light); color: #7A4E10; border: 1px solid #EFD9AE; }
.dm-badge-blue   { background: #E9EFF6; color: #34557D; border: 1px solid #CBDAEA; }
.dm-badge-gray   { background: #F4F1F2; color: var(--dm-ink-soft); border: 1px solid var(--dm-line); }
.dm-see-deal-btn {
  display: inline-block; background: var(--dm-rose); color: #fff !important; font-size: 1em; font-weight: 800;
  letter-spacing: 0.1px; padding: 14px 34px; border-radius: 9px; text-decoration: none !important; margin: 0 28px 20px;
  transition: background 0.15s, transform 0.15s;
}
.dm-see-deal-btn:hover { background: var(--dm-rose-dark); color: #fff !important; transform: translateY(-1px); }
.dm-divider { border: none; border-top: 1px solid var(--dm-line); margin: 16px 28px 14px; }
.dm-disclosure { font-size: 0.78em; color: #A79FA5; line-height: 1.6; margin: 0 28px 20px; }
