/* Bargain-news editorial theme — matched to the original */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&display=swap");

:root {
  --ink: #151813;
  --paper: #F3F6EF;
  --sage: #DDE4D8;
  --border: #C7D0C2;
  --yellow: #FFD43B;
  --red: #E54832;
  --danger: #C93624;
  --green: #145A32;
  --condensed: "Oswald", "Avenir Next Condensed", "Franklin Gothic Condensed", "Arial Narrow", sans-serif;
  --body: "Avenir Next", "Segoe UI", -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
}
a { color: inherit; }
main { max-width: 1120px; margin: 0 auto; padding: 0 28px 70px; }

/* ---------- Masthead ---------- */
.masthead {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 28px 26px;
  border-bottom: 3px solid var(--ink);
}
.edition {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.edition .live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
}
.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.masthead h1 {
  font-family: var(--condensed);
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.95;
  letter-spacing: 0.5px;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--condensed);
  text-transform: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.3px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.small { font-size: 15px; padding: 8px 16px; box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { box-shadow: none; background: var(--sage); }
.link-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--body); font-size: 13px;
  color: var(--ink); text-decoration: underline;
  text-underline-offset: 3px; padding: 0;
}
.link-btn.danger { color: var(--danger); }

/* ---------- Control strip ---------- */
.controls {
  display: flex; gap: 16px; align-items: stretch;
  padding: 26px 0 18px;
}
.search-wrap {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 18px;
}
.search-wrap:focus-within { border-color: var(--ink); }
.search-wrap svg { flex: none; }
.search-wrap input {
  flex: 1;
  border: none; outline: none;
  font-family: var(--body); font-size: 17px;
  padding: 15px 0;
  background: transparent;
  color: var(--ink);
}
.search-wrap input::placeholder { color: #9aa39a; }
.sort-wrap {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 16px;
  cursor: pointer;
}
.sort-wrap .sort-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #6b726b;
}
.sort-wrap select {
  border: none; outline: none; cursor: pointer;
  font-family: var(--body); font-size: 17px; font-weight: 600;
  background: transparent; color: var(--ink);
  padding: 15px 0;
  appearance: none;
  padding-right: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23151813' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
.pills-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  color: var(--ink);
}
.chip.active { background: var(--ink); color: var(--paper); }
.chip:not(.active):hover { border-color: var(--border); }
.archive-toggle {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border: 1.5px dashed var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: #4b524b;
}
.archive-toggle.active { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--sage); }
.thin-rule { border: none; border-top: 1px solid var(--border); margin: 20px 0 0; }

/* ---------- Featured panel ---------- */
.featured {
  position: relative;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 7px 7px 0 var(--ink);
  padding: 36px 32px;
  margin: 34px 0 44px;
  display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
}
.featured img {
  width: 200px; height: 140px; object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}
.ribbon {
  position: absolute;
  top: -14px; right: 26px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  transform: rotate(3deg);
  box-shadow: 3px 3px 0 rgba(21, 24, 19, 0.35);
}
.featured h2 {
  font-family: var(--condensed);
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1;
  margin: 0 0 8px;
}
.featured .note { margin: 0 0 6px; max-width: 60ch; font-size: 16px; }
.price-line { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 18px; flex-wrap: wrap; }
.price-now {
  font-family: var(--condensed);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}
.price-was {
  font-family: var(--condensed);
  font-size: 26px;
  opacity: 0.6;
  text-decoration: line-through;
}
.off-badge {
  font-family: var(--condensed);
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 12px;
  letter-spacing: 1px;
  border-radius: 4px;
}

/* ---------- Feed ---------- */
.feed-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
  margin: 0 0 4px;
}
.feed-head h2 {
  font-family: var(--condensed);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 32px;
  margin: 0;
  letter-spacing: 0.5px;
}
.feed-head .count {
  font-family: var(--condensed);
  font-size: 16px;
  letter-spacing: 1px;
}
.deal-row {
  display: flex;
  gap: 26px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--border);
}
.price-block {
  min-width: 150px;
  max-width: 150px;
  border-right: 1px solid var(--border);
  padding-right: 20px;
}
.price-block .now {
  font-family: var(--condensed);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}
.price-block .was {
  font-family: var(--condensed);
  font-size: 19px;
  text-decoration: line-through;
  opacity: 0.55;
  margin-top: 4px;
}
.price-block .off-badge { margin-top: 10px; display: inline-block; }
.deal-main { flex: 1; min-width: 0; }
.deal-main img {
  width: 100%; max-height: 140px; object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 4px;
  margin-bottom: 12px;
  background: var(--sage);
}
.meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 6px;
}
.deal-main h3 {
  font-family: var(--condensed);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.05;
  margin: 0 0 8px;
}
.deal-main .note { margin: 0 0 12px; max-width: 70ch; font-size: 15px; }
.deal-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.coupon {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px dashed var(--ink);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 14px;
  background: #fff;
}
.coupon code { font-weight: 800; letter-spacing: 1px; }

/* ---------- Empty state ---------- */
.empty { padding: 70px 10px 90px; }
.empty-row { display: flex; gap: 34px; align-items: flex-start; }
.empty .big {
  font-family: var(--condensed);
  font-weight: 600;
  font-size: clamp(110px, 16vw, 190px);
  line-height: 0.9;
  color: var(--sage);
  flex: none;
}
.empty .kicker {
  font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 12px;
}
.empty h2 {
  font-family: var(--condensed);
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1;
  margin: 0 0 18px;
  max-width: 16ch;
}
.empty p { font-size: 17px; color: #4b524b; max-width: 52ch; margin: 0 0 26px; }

/* ---------- Footer ---------- */
footer {
  border-top: 3px solid var(--ink);
  margin-top: 50px;
  padding: 24px 28px;
  text-align: center;
  font-size: 13px;
  color: #4b524b;
  max-width: 1120px;
  margin-left: auto; margin-right: auto;
}

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1120px; margin: 0 auto; padding: 26px 28px 70px; }
.admin-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 8px;
}
.admin-head h2 {
  font-family: var(--condensed); text-transform: uppercase; font-weight: 600;
  font-size: 38px; margin: 0;
}
.topbar-mini {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 16px 28px 0;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.topbar-mini a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.login-box, .deal-form {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 28px;
  max-width: 640px;
  margin: 28px auto;
}
.login-box h2, .deal-form h2 {
  font-family: var(--condensed); text-transform: uppercase; font-weight: 600;
  font-size: 30px; margin: 0 0 6px;
}
.hint { color: #555; font-size: 14px; margin-top: 0; }
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; margin: 14px 0 5px; text-transform: uppercase; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea, select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px; font-family: var(--body);
  background: #fff;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkline { display: flex !important; align-items: center; gap: 8px; margin: 14px 0; font-size: 14px; text-transform: none; letter-spacing: 0; }
.checkline input { width: 18px; height: 18px; accent-color: var(--ink); }
table.deals { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
table.deals th, table.deals td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.deals th {
  font-family: var(--condensed); text-transform: uppercase; font-weight: 600;
  letter-spacing: 1px; font-size: 14px;
  background: var(--sage);
}
.badge {
  font-family: var(--condensed); text-transform: uppercase; font-weight: 600;
  font-size: 13px; letter-spacing: 1px;
  padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper); white-space: nowrap;
}
.badge.archived { background: var(--sage); }
.badge.featured { background: var(--yellow); }
.actions-row { display: flex; gap: 10px; white-space: nowrap; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .masthead-row { flex-direction: column; align-items: flex-start; }
  .controls { flex-direction: column; }
  .sort-wrap { align-self: stretch; }
  .deal-row { flex-direction: column; gap: 12px; }
  .price-block { border-right: none; border-bottom: 1px solid var(--border); max-width: none; padding: 0 0 10px; }
  .featured { padding: 30px 20px; }
  .ribbon { right: 12px; }
  .empty-row { flex-direction: column; gap: 10px; }
  .row2 { grid-template-columns: 1fr; }
}
