/* ============================================================
   OffCart — "Market Bold" design
   Deal-site energy: warm paper ground, burnt-orange accent,
   chunky ink borders with hard offset shadows, market-green
   prices, sun-yellow badges.
   ============================================================ */

:root {
  --bg: #fffdf6;          /* warm paper */
  --surface: #ffffff;
  --text: #221a10;        /* ink */
  --text-soft: #5c5142;
  --brand: #d94f04;       /* burnt orange */
  --brand-dark: #b54203;
  --accent: #ffd23f;      /* sun yellow */
  --green: #1a7a4f;       /* market-green prices */
  --line: #221a10;        /* ink borders */
  --border: #e8e0d2;
  --radius: 0px;
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 6px 6px 0 var(--line);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Disclosure bar ---------- */
.disclosure-bar {
  background: var(--accent); border-bottom: 3px solid var(--line);
  font-size: 0.83rem; color: var(--text); text-align: center;
  padding: 8px 16px; font-weight: 600;
}
.disclosure-bar a { color: var(--text); text-decoration: underline; font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 3px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
}
.logo {
  font-size: 1.45rem; font-weight: 900; color: var(--text);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  text-transform: uppercase; letter-spacing: -0.5px;
}
.logo span { color: var(--brand); }
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a {
  color: var(--text); font-weight: 800; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.main-nav a:hover { color: var(--brand); }

.search-box { flex: 1; max-width: 340px; position: relative; }
.search-box input {
  width: 100%; padding: 9px 14px 9px 38px;
  border: 2px solid var(--line); border-radius: 0;
  font-size: 0.95rem; background: var(--surface); outline: none;
  font-family: inherit;
}
.search-box input:focus { box-shadow: 3px 3px 0 var(--line); }
.search-box::before {
  content: "🔍"; position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); font-size: 0.85rem;
}

/* ---------- Hero ---------- */
.hero {
  background:
    repeating-linear-gradient(-45deg, transparent 0 34px, rgba(217, 79, 4, 0.05) 34px 68px);
  border-bottom: 3px solid var(--line);
  color: var(--text); text-align: center;
  padding: 64px 20px 70px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.05; text-transform: uppercase;
  max-width: 22ch; margin: 0 auto;
}
.hero p {
  font-size: 1.1rem; color: var(--text-soft);
  max-width: 620px; margin: 16px auto 30px;
}
.hero .cta {
  display: inline-block; background: var(--brand); color: #fff;
  font-weight: 900; padding: 15px 32px; text-transform: uppercase;
  letter-spacing: 0.5px; border: 3px solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.hero .cta:hover {
  transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--line);
  color: #fff;
}
.hero-stats {
  display: flex; justify-content: center; gap: 18px; margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats div {
  text-align: center; background: var(--surface);
  border: 3px solid var(--line); box-shadow: var(--shadow);
  padding: 12px 26px;
}
.hero-stats strong { display: block; font-size: 1.5rem; font-weight: 900; color: var(--brand); }
.hero-stats small { color: var(--text-soft); font-weight: 700; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.5px; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 {
  font-size: 1.8rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.5px;
}
.section-head p { color: var(--text-soft); margin-top: 6px; }

/* ---------- Category pills ---------- */
.category-pills {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 34px;
}
.pill {
  border: 2px solid var(--line); background: var(--bg);
  padding: 9px 18px; cursor: pointer;
  font-size: 0.85rem; font-weight: 800; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.3px;
  font-family: inherit; transition: all 0.12s ease;
}
.pill:hover { background: var(--surface); box-shadow: 3px 3px 0 var(--line); }
.pill.active { background: var(--text); border-color: var(--line); color: var(--accent); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--surface); border: 3px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.product-card:hover { transform: translate(2px, 2px); box-shadow: var(--shadow); }

.card-media {
  position: relative; display: grid; place-items: center;
  height: 150px; font-size: 4rem;
  background: #fdf3e4; border-bottom: 3px solid var(--line);
}
.card-media img {
  max-height: 130px; max-width: 85%; object-fit: contain;
  mix-blend-mode: multiply;
}
.modal-media { font-size: 5rem; }
.modal-media img { max-height: 200px; }

.card-badge {
  position: absolute; top: -3px; left: -3px;
  font-size: 0.68rem; font-weight: 900; letter-spacing: 0.3px;
  padding: 4px 10px; color: var(--text);
  background: var(--accent); border: 3px solid var(--line);
  text-transform: uppercase;
}
.card-badge.badge-top-pick { background: var(--brand); color: #fff; }
.card-badge.badge-budget-pick { background: var(--green); color: #fff; }
.card-badge.badge-new { background: var(--text); color: var(--accent); }

.card-body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
  font-size: 0.96rem; font-weight: 800; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.card-blurb { font-size: 0.84rem; color: var(--text-soft); margin: 8px 0 10px; flex: 1; }

.stars { color: var(--brand); font-size: 0.88rem; letter-spacing: 1px; font-weight: 700; }
.review-count { color: var(--text-soft); font-size: 0.8rem; margin-left: 6px; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; gap: 10px;
}
.price { font-size: 1.3rem; font-weight: 900; color: var(--green); }

.btn {
  display: inline-block; cursor: pointer;
  font-weight: 800; font-size: 0.85rem; border-radius: 0;
  padding: 10px 16px; transition: all 0.12s ease;
  text-align: center; font-family: inherit;
  text-transform: uppercase; letter-spacing: 0.3px;
  border: 2px solid var(--line);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { box-shadow: 3px 3px 0 var(--line); }
.btn-buy {
  width: 100%; margin-top: 12px; background: var(--text);
  color: var(--accent); border: none; padding: 12px;
  font-weight: 900; font-size: 0.84rem;
}
.btn-buy:hover { background: var(--brand); color: #fff; }

.empty-state {
  text-align: center; color: var(--text-soft); padding: 40px 0;
  grid-column: 1 / -1; font-weight: 600;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--surface); border-block: 3px solid var(--line); }
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.trust-item { text-align: center; }
.trust-item .icon { font-size: 2rem; }
.trust-item h3 { font-size: 1rem; margin: 8px 0 4px; font-weight: 900; text-transform: uppercase; }
.trust-item p { font-size: 0.88rem; color: var(--text-soft); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--text); color: var(--bg);
  text-align: center; border: 3px solid var(--line);
  box-shadow: 7px 7px 0 rgba(34, 26, 16, 0.25);
  padding: 46px 24px; margin: 0 20px;
}
.newsletter h2 { font-size: 1.6rem; font-weight: 900; text-transform: uppercase; color: var(--accent); }
.newsletter p { opacity: 0.85; margin: 10px 0 24px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
  padding: 12px 18px; border: 3px solid var(--line);
  min-width: 260px; font-size: 0.95rem; outline: none; font-family: inherit;
}
.newsletter-form .btn { padding: 12px 26px; border: 3px solid var(--bg); }
.newsletter-note { font-size: 0.78rem; opacity: 0.6; margin-top: 14px; }

/* ---------- Modal (quick view) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(34, 26, 16, 0.6);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--line);
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 30px; position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  border: 2px solid var(--line); background: var(--surface);
  font-size: 1.1rem; cursor: pointer; color: var(--text);
  width: 34px; height: 34px; line-height: 1; font-weight: 900;
}
.modal-close:hover { background: var(--brand); color: #fff; }
.modal .card-media { margin-bottom: 18px; border: 3px solid var(--line); }
.modal h2 { font-size: 1.25rem; line-height: 1.35; font-weight: 900; }
.modal .price { font-size: 1.5rem; display: block; margin: 10px 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.pros-cons h4 { font-size: 0.85rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.pros-cons ul { list-style: none; font-size: 0.86rem; color: var(--text-soft); }
.pros-cons li { padding: 3px 0; }
.pros { border: 2px solid var(--green); padding: 12px 14px; }
.cons { border: 2px solid var(--brand); padding: 12px 14px; }
.pros h4 { color: var(--green); }
.cons h4 { color: var(--brand); }
.modal-disclosure { font-size: 0.75rem; color: var(--text-soft); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text); color: #cbc2b3; margin-top: 56px;
  border-top: 3px solid var(--line);
  padding: 48px 0 24px; font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.site-footer h4 {
  color: var(--accent); margin-bottom: 12px; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 900;
}
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #cbc2b3; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #4a4234; padding-top: 20px;
  font-size: 0.8rem; text-align: center; line-height: 1.7;
}

/* ---------- Static pages (about / disclosure) ---------- */
.page-content {
  background: var(--surface); border: 3px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 40px; max-width: 800px;
  margin: 48px auto;
}
.page-content h1 { margin-bottom: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.5px; }
.page-content h2 { margin: 26px 0 10px; font-size: 1.15rem; font-weight: 900; text-transform: uppercase; }
.page-content p, .page-content li { color: var(--text-soft); margin-bottom: 12px; }
.page-content ul { padding-left: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 50px 20px 58px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .search-box { max-width: none; }
  .hero-stats { gap: 12px; }
  .hero-stats div { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card, .pill, .hero .cta, .btn { transition: none; }
}

/* ---------- Hero kicker + highlight ---------- */
.kicker {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 700; color: var(--brand); font-size: 0.8rem;
  letter-spacing: 1px; margin-bottom: 14px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
