/* GivMoo homepage concept. Brand tokens copied from the live site's givmoo-redesign CSS (--gm-*). */
:root {
  --primary: #e84a1a;
  --primary-dark: #c13a0e;
  --accent: #f4831e;
  --light: #fff4ee;
  --peach: #fdd0b4;
  --text: #1a1a2e;
  --muted: #6b7280;
  --line: #e6e6e6;
  --warm: #faf8f4;
  --charcoal: #202020;
  --radius: 0.625rem;
  --max: 1200px;
  --font: "Nunito Sans", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Mockup strip */
.mock-strip { background: var(--charcoal); color: #fff; font-size: 12px; text-align: center; padding: 6px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: logo, search, nonprofit door, cart */
.site-header { background: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 var(--line); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo search cart";
  align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.logo { grid-area: logo; display: block; padding: 12px 0; }
.logo img { width: 78px; height: auto; }
.np-link { grid-area: np; display: none; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--muted); padding: 11px 0; }
.np-link:hover { color: var(--primary-dark); }
.cart { grid-area: cart; display: inline-flex; color: var(--text); padding: 10px 4px; }
.search { grid-area: search; display: flex; border: 2px solid var(--primary-dark); border-radius: 999px; overflow: hidden; background: #fff; }
.search input[type=search] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--text); outline: none; }
.search input[type=search]::-webkit-search-decoration, .search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search button { border: 0; background: var(--primary-dark); color: #fff; padding: 0 16px; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: #9e2f0b; }

/* Department bar */
.dept { background: var(--text); }
.dept-row { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.dept-row::-webkit-scrollbar { display: none; }
.dept a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; padding: 12px 0; }
.dept .dept-np { color: var(--peach); }
.dept a:hover { color: var(--peach); }

/* The one-line promise */
.promise { background: var(--light); color: var(--text); font-size: 14px; padding: 8px 0; }
.promise h1 { display: inline; font-size: 14px; font-weight: 800; line-height: 1.5; color: var(--primary-dark); }

/* Buttons */
.btn { display: inline-block; text-align: center; text-decoration: none; font-weight: 800; font-size: 16px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; }
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: var(--light); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.link { font-weight: 700; color: var(--primary-dark); text-decoration: none; }

.banner-copy h2 { font-size: 23px; }
h2 { font-size: 21px; font-weight: 800; }
section { padding: 20px 0 4px; }

/* 1. Seasonal banner */
.banner-card { display: grid; gap: 16px; background: linear-gradient(135deg, #fbe3cf 0%, var(--light) 70%); border-radius: 14px; padding: 18px; }
.banner-card[hidden] { display: none; }
.eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-dark); margin-bottom: 6px; }
.banner-sub { margin-top: 6px; color: #3b3b52; font-size: 15px; }
.banner-copy .btn { margin-top: 14px; padding: 10px 18px; font-size: 15px; }
.minis { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.minis a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,26,46,.06), 0 3px 10px rgba(26,26,46,.06); }
.minis img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.minis span { font-size: 11.5px; line-height: 1.3; font-weight: 700; color: var(--primary-dark); padding: 6px 8px 8px; }
.minis a:hover span { text-decoration: underline; }

/* 2. Tiles */
.tile-grid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile-grid a { display: block; text-decoration: none; color: var(--text); background: var(--warm); border-radius: 12px; overflow: hidden; }
.tile-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.tile-grid span { display: block; padding: 10px 12px; font-weight: 800; font-size: 15px; }
.tile-grid a:hover span { color: var(--primary-dark); }

/* 3. Best sellers carousel */
.car-wrap { position: relative; }
.car-btn { display: none; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; }
.carousel { list-style: none; padding: 0 0 8px; margin: 12px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: 42%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.card { scroll-snap-align: start; }
.card a { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 3px; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: var(--warm); margin-bottom: 6px; }
.card .name { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { font-weight: 800; font-size: 16px; }
.card .cause { font-size: 12px; color: var(--muted); }
.card a:hover .name { color: var(--primary-dark); }

/* Sideways rows: fade the right edge while there is more to see */
.dept-row.more, .chip-row.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }

/* 4. Causes */
.sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 8px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--text);
  border: 1.5px solid var(--peach); background: #fff; padding: 8px 14px; border-radius: 999px; }
.chip:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.chip-all { background: var(--light); }

/* 5. Nonprofits band */
.np { background: var(--text); color: #fff; padding: 28px 0; margin-top: 20px; }
.np p { margin: 8px 0 18px; font-size: 16px; color: #e4e4ea; max-width: 46ch; }
.np-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.np-actions .btn { flex: 1 1 100%; }

/* Footer */
.site-footer { background: var(--charcoal); color: #c9c9d1; padding: 22px 0 18px; font-size: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 6px; font-weight: 700; }
.foot-links a { padding: 10px 0; }
.site-footer p a { display: inline-block; padding: 6px 0; }
.legal { margin-top: 12px; padding-top: 12px; border-top: 1px solid #3a3a3a; font-size: 12px; color: #a8a8b0; }

@media (max-width: 360px) {
  .header-row { gap: 6px; }
  .logo img { width: 56px; }
  .cart { padding: 10px 0; }
  .search input[type=search] { padding: 10px 8px; }
  .search button { padding: 0 12px; }
  .banner-copy h2 { font-size: 21px; }
  .banner-card { padding: 16px; }
}
@media (min-width: 720px) {
  .header-row { grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo search np cart"; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
  .np-link { display: inline-block; }
  .dept .dept-np { display: none; }
  .banner-copy h2 { font-size: 34px; }
  .logo img { width: 110px; }
  .np-link { font-size: 15px; }
  h2 { font-size: 24px; }
  section { padding: 28px 0 4px; }
  .banner-card { grid-template-columns: 1fr 1.25fr; align-items: center; gap: 36px; padding: 36px 44px; }
  .minis { gap: 14px; }
  .minis span { font-size: 13px; padding: 8px 10px 10px; }
  .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .carousel { grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; }
  .np-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; }
  .np-inner h2, .np-inner p { grid-column: 1; }
  .np-inner p { margin-bottom: 0; }
  .np-actions { grid-column: 2; grid-row: 1 / span 2; flex-wrap: nowrap; }
  .np-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 720px) {
  .car-btn { display: grid; place-items: center; position: absolute; top: 28%; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
    box-shadow: 0 2px 10px rgba(26,26,46,.15); }
  .car-btn:hover { color: var(--primary-dark); }
  .car-btn.prev { left: -14px; }
  .car-btn.next { right: -14px; }
  .car-btn:disabled { opacity: 0; cursor: default; }
}
/* Phones on their side: short screens get a compact banner */
@media (max-height: 500px) and (min-width: 720px) {
  .banner-card { padding: 18px 28px; gap: 20px; }
  .banner-copy h2 { font-size: 24px; }
}
