/*!
 * ===========================================================================
 * SMAPPY — SHARED STYLESHEET
 * ===========================================================================
 * Loaded by all 28 non-locked pages (everything except login.html,
 * signup.html, forgot-password.html, reset-password.html, creators.html,
 * creator-profile.html and restaurant-detail.html, which ship their own
 * self-contained styles and are excluded from this refactor by design).
 *
 * This file is a REORGANIZATION, not a redesign: every selector and value
 * below renders identically to the original minified stylesheet. The only
 * changes made were:
 *   - Formatting + section comments for readability.
 *   - Merging a handful of selectors that were declared twice in the
 *     original file (once for the base rule, once for a later "visual
 *     refresh" override) into a single rule with the same final computed
 *     styles — see "DEDUPLICATED RULES" below for the exact list.
 *
 * SHARED-CLASS / BLAST-RADIUS MAP
 * ---------------------------------------------------------------------------
 * These classes appear on every (or nearly every) page. Changing them
 * changes the whole site at once — double-check a change against a few
 * different page types before shipping it:
 *   .app-shell, .topbar, .categories, .mobile-nav, .footer   → page shell,
 *       identical markup on all 28 pages.
 *   .card, .card-grid, .thumb, .pill, .price                 → the generic
 *       "browse" card used on 10+ listing pages (products, groceries,
 *       restaurants, deals, shops, venues, recipes, lists, discover...).
 *   .btn, .btn-primary, .btn-yellow, .btn-ghost              → every CTA
 *       button sitewide.
 *   .row, .list, .avatar                                     → cart, orders,
 *       restaurant-order, notifications, messages line items.
 *   .detail, .summary, .two-col                              → every
 *       "content + sidebar summary" page (cart, checkout, product-detail,
 *       recipe-detail, list-detail...).
 *   .tabs                                                    → the filter
 *       pill bar reused on products/groceries/restaurants/deals/shops/
 *       venues/recipes/lists.
 *   .field, .form-grid                                       → every form
 *       (checkout, profile settings).
 *   .timeline, .step                                         → checkout +
 *       order-tracking progress indicator.
 *
 * Page-specific rules (used on exactly one or two pages) are grouped in
 * their own section near the bottom, so a page-specific tweak never risks
 * touching the shared components above it.
 *
 * DEDUPLICATED RULES (previously declared twice; now declared once with the
 * same final computed effect as the original two-rule cascade):
 *   .card-grid, .card, .thumb, .topbar, .hero-copy, .eyebrow, .hero h1,
 *   .lead
 * ===========================================================================
 */

/* =============================================================================
   1. ROOT VARIABLES & RESET
   ============================================================================= */
:root {
  --green: #063f35;
  --green2: #0b4f43;
  --yellow: #ffc400;
  --cream: #f7f4e9;
  --ink: #092f2b;
  --muted: #64716e;
  --line: #d7d7cd;
  --white: #fff;
  --soft: #eef1e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eeeae0;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

/* Generic focus + hover motion used across links/buttons sitewide. */
a,
button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 8px;
}

/* =============================================================================
   2. LAYOUT SHELL — .app-shell / .topbar / .categories / .mobile-nav / .footer
   Identical markup on every page. High blast radius — see header comment.
   ============================================================================= */
.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--cream);
  min-height: 100vh;
  box-shadow: 0 0 50px #0001;
}

.topbar {
  height: 82px;
  position: relative;
  display: grid;
  grid-template-columns: 155px minmax(280px, 1fr) 180px 52px 112px;
  gap: 18px;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  /* Sticky + subtly elevated (part of the later home-page visual refresh). */
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 10px #00000006;
}

.brand img {
  display: block;
  width: 150px;
  height: auto;
}

.categories {
  height: 82px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  background: #fff;
}

.categories a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink);
  font-size: 24px;
  border-right: 1px solid var(--line);
}

.categories a:last-child {
  border-right: 0;
}

.categories b {
  font-size: 12px;
  letter-spacing: 0.2px;
}

.footer {
  padding: 35px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-space {
  height: 10px;
}

.mobile-nav {
  display: none;
}

/* =============================================================================
   3. TOPBAR CONTROLS — search / location / cart / signup
   ============================================================================= */
.search,
.location,
.cart,
.signup {
  font: inherit;
}

.search {
  height: 48px;
  border: 1px solid #e0e0d8;
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  color: #4b5754;
  text-align: left;
  box-shadow: 0 4px 18px #00000008;
  text-decoration: none;
  background: #fff;
}

.search:hover {
  box-shadow: 0 6px 20px #0000000f;
  border-color: #d3d3c8;
}

.search span:first-child {
  font-size: 27px;
  line-height: 0;
}

.search-copy {
  font-size: 13px;
}

.location {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
  padding: 0;
}

.location small {
  display: block;
  color: #6b7773;
  font-size: 11px;
  margin-top: 2px;
}

.pin {
  font-size: 18px;
}

.cart {
  font-size: 24px;
  position: relative;
  background: transparent;
  text-decoration: none;
}

.cart i {
  position: absolute;
  right: 0;
  top: -3px;
  background: #e52828;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font: 700 10px/18px "DM Sans";
  font-style: normal;
  text-align: center;
}

.signup {
  height: 48px;
  border-radius: 28px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  display: grid;
  place-items: center;
}


/* Sitewide notification control — added without altering existing controls. */
.notification-btn {
  width: 32px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.notification-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-btn i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e52828;
  top: 7px;
  right: 4px;
}

.notification-btn {
  position: absolute;
  right: 220px;
  top: 21px;
  z-index: 5;
}

.food-menu-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================================================
   4. HERO — homepage hero banner
   ============================================================================= */
.hero {
  position: relative;
  min-height: 405px;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  overflow: hidden;
  background: var(--cream);
}

.hero-copy {
  padding: clamp(24px, 4vw, 42px) 40px clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 2px;
  color: #596965;
  margin: 0 0 17px;
}

.hero h1 {
  font-family: Nunito, Arial, sans-serif;
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.02;
  margin: 0 0 16px;
  letter-spacing: -2px;
}

.lead {
  font-size: clamp(15px, 2vw, 21px);
  line-height: 1.3;
  color: #65716e;
  margin: 0;
  max-width: 610px;
}

.hero-art {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-art:before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 34%;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(247, 244, 233, 0.92) 24%, rgba(247, 244, 233, 0.25) 78%, rgba(247, 244, 233, 0) 100%);
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.chips a {
  border: 1px solid #e0e0d8;
  background: #fff;
  border-radius: 24px;
  padding: 11px 16px;
  font: 600 13px "DM Sans";
  box-shadow: 0 3px 12px #0000000c;
  text-decoration: none;
  color: var(--ink);
}

.chips a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #00000014;
  background: var(--soft);
}

/* =============================================================================
   5. MARKETPLACE SHELF — snap-scrolling icon row (home page)
   ============================================================================= */
.marketplace {
  padding: clamp(16px, 3vw, 26px) clamp(18px, 4vw, 40px) 4px;
  background: var(--cream);
  position: relative;
}

.marketplace-track {
  display: flex;
  gap: clamp(10px, 1.6vw, 16px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 10px;
  margin: 0;
}

.marketplace-track::-webkit-scrollbar {
  display: none;
}

.marketplace-item {
  flex: 0 0 clamp(80px, 10vw, 124px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  scroll-snap-align: start;
}

.marketplace-item .icon-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 24%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px #00291f0d, 0 8px 18px #00291f0f;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.marketplace-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketplace-item span {
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.marketplace-item:hover .icon-wrap,
.marketplace-item:focus-visible .icon-wrap {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 24px #00291f26;
}

.marketplace:before,
.marketplace:after {
  content: "";
  position: absolute;
  top: clamp(16px, 3vw, 26px);
  bottom: 16px;
  width: 32px;
  pointer-events: none;
  z-index: 2;
}

.marketplace:before {
  left: 0;
  background: linear-gradient(90deg, var(--cream), rgba(247, 244, 233, 0));
}

.marketplace:after {
  right: 0;
  background: linear-gradient(270deg, var(--cream), rgba(247, 244, 233, 0));
}

/* =============================================================================
   6. PAGE HEADER — non-home pages (.page-main / .page-hero)
   ============================================================================= */
.page-main {
  padding: 28px 40px 90px;
}

.page-hero {
  background: linear-gradient(135deg, #e8efe6, #f8f5e9);
  border-radius: 20px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-bottom: 24px;
}

.page-hero h1 {
  font-family: Nunito;
  font-size: 42px;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -1px;
}

.page-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 650px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =============================================================================
   7. SECTIONS
   ============================================================================= */
.section {
  padding: 0 40px;
  margin: 26px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section h2 {
  font-family: Nunito;
  font-size: 23px;
  margin: 0;
}

.section-head a {
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

/* =============================================================================
   8. CARDS & GRIDS — the generic browse card used across 10+ listing pages
   ============================================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.card {
  background: #fff;
  border: 1px solid #e7e6df;
  border-radius: 14px;
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px #00000014;
}

.thumb {
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: #edf1e9;
  /* .smappy-heart / .smappy-quick-add (injected by js/app.js) are
     absolutely positioned against this element — keep `position` off
     .thumb itself only if you also update app.js's positioning logic. */
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .thumb img {
  transform: scale(1.06);
}

.card h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pill {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 10px;
  background: #e7f4ec;
  color: #126647;
  font-size: 10px;
  font-weight: 700;
  margin-top: 7px;
}

.price {
  font-weight: 800;
  margin-top: 7px;
}

@media (max-width: 420px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   9. BUTTONS
   ============================================================================= */
.btn {
  border: 0;
  border-radius: 24px;
  padding: 12px 18px;
  font: 700 13px "DM Sans";
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

/* =============================================================================
   10. PROMO BANNER
   ============================================================================= */
.promo {
  margin: 0 40px 24px;
  min-height: 145px;
  background: linear-gradient(90deg, #003e34, #083c33);
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
}

.promo > div:first-child {
  padding: 25px 30px;
  position: relative;
  z-index: 2;
}

.promo h2 {
  font-family: Nunito;
  font-size: 30px;
  margin: 0 0 3px;
}

.promo p {
  font-size: 17px;
  margin: 0 0 14px;
}

.promo-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, #073e3500, #073e35aa), url("assets/hero-produce.png") center/cover;
}

/* =============================================================================
   11. TABS / FILTER PILLS — reused on products/groceries/restaurants/deals/
   shops/venues/recipes/lists. js/app.js adds ARIA roles + keyboard nav and a
   demo filter on top of this; the visual states below are unchanged.
   ============================================================================= */
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 0 0 20px;
  padding-bottom: 3px;
}

.tabs button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  padding: 10px 15px;
  color: #5e6b67;
}

.tabs button.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* =============================================================================
   12. TWO-COLUMN DETAIL LAYOUT — cart / checkout / product-detail / recipe-
   detail / list-detail all share this "content + sidebar summary" shape.
   ============================================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
}

.detail,
.summary {
  background: #fff;
  border: 1px solid #e7e6df;
  border-radius: 16px;
  padding: 18px;
}

.detail h2 {
  font-family: Nunito;
  margin: 0 0 10px;
}

.summary {
  height: max-content;
}

.summary h3 {
  margin-top: 0;
}

.summary .line {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: #5e6b67;
}

.summary .total {
  font-weight: 900;
  font-size: 18px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 5px;
}

/* =============================================================================
   13. LISTS & ROWS — cart items, orders, restaurant-order line items,
   notifications, messages.
   ============================================================================= */
.list {
  background: #fff;
  border: 1px solid #e7e6df;
  border-radius: 14px;
  overflow: hidden;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #ecebe5;
}

.row:last-child {
  border-bottom: 0;
}

.row .grow {
  flex: 1;
}

.row h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dce9df;
  display: grid;
  place-items: center;
  font-size: 23px;
  flex: 0 0 auto;
}

/* =============================================================================
   14. FORMS — checkout / profile settings
   ============================================================================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  font: inherit;
}

/* =============================================================================
   15. TIMELINE / STEPS — checkout progress + order-tracking.html. The
   ".done" / ".current" states are toggled live by js/app.js on
   order-tracking.html (see App.tracking).
   ============================================================================= */
.timeline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step:before {
  content: "";
  height: 2px;
  background: #d8ddd7;
  position: absolute;
  left: 50%;
  right: -50%;
  top: 13px;
  z-index: 0;
}

.step:last-child:before {
  display: none;
}

.step i {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d8ddd7;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
}

.step.done i,
.step.current i {
  background: var(--green);
}

.step b {
  display: block;
  font-size: 10px;
  margin-top: 6px;
}

/* =============================================================================
   16. SEARCH PAGE — search.html. js/app.js drives #search-form / #search-input
   / #search-results (added on top of this markup) to make this a live filter;
   the chip row it injects reuses .chips styling from section 4 above.
   ============================================================================= */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 14px 18px;
  font: inherit;
  background: #fff;
}

.search-box button {
  border: 0;
  border-radius: 26px;
  background: var(--green);
  color: #fff;
  padding: 0 22px;
  font-weight: 800;
}

/* =============================================================================
   17. METRICS / CREATOR / ORDER CARDS
   ============================================================================= */
.metric-row {
  display: flex;
  gap: 22px;
  color: #5f6d68;
  font-size: 11px;
  margin: 9px 0;
}

.metric-row b {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.creator-card {
  text-align: center;
}

.creator-card .avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 8px;
  font-size: 35px;
}

.creator-card h3 {
  margin: 4px 0;
}

.order-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
}

.order-card img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.empty {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

/* =============================================================================
   18. REELS — grocery-reel.html / restaurant-reel.html
   ============================================================================= */
.reels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.reel-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  min-height: 310px;
}

.reel-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  display: block;
}

.reel-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 52%, rgba(0, 0, 0, 0.78));
}

.reel-meta {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-size: 10px;
}

.reel-meta b {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.reel-top {
  position: absolute;
  z-index: 2;
  left: 9px;
  top: 9px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.reel-watch {
  display: grid;
  grid-template-columns: 1fr 230px;
  min-height: 720px;
  background: #0b0f12;
  color: #fff;
}

.reel-video {
  position: relative;
  display: grid;
  place-items: center;
  background: #0b0f12;
}

.reel-video img {
  max-height: 720px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.reel-menu {
  padding: 30px 22px;
  border-left: 1px solid #252b2f;
  background: #101518;
}

.reel-menu h2 {
  font-family: Nunito;
  margin: 0 0 18px;
}

.reel-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #252b2f;
}

.reel-actions {
  position: absolute;
  right: 22px;
  bottom: 24px;
  display: grid;
  gap: 12px;
}

.reel-actions button {
  border: 0;
  background: #fff;
  color: #111;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
}

.reel-cta {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
}

.reel-cta a {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 24px;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 900;
}

/* =============================================================================
   19. RESPONSIVE — three breakpoints, in the same order/content as the
   original file. Each block only touches the shell/components already
   defined above; nothing here introduces a new selector.
   ============================================================================= */
@media (max-width: 1000px) {
  .topbar {
    grid-template-columns: 135px 1fr 44px 90px;
    padding: 0 24px;
    gap: 10px;
  }
  .brand img {
    width: 130px;
  }
  .location {
    display: none;
  }
  .categories {
    padding: 0 24px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    height: 300px;
    order: -1;
  }
  .hero-copy {
    padding: 34px 24px 25px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .chips {
    margin-top: 22px;
  }
  .page-main {
    padding: 22px 24px 90px;
  }
  .page-hero {
    padding: 26px;
    flex-direction: column;
    align-items: flex-start;
  }
  .section {
    padding: 0 24px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reels {
    grid-template-columns: repeat(3, 1fr);
  }
  .reel-watch {
    grid-template-columns: 1fr;
  }
  .reel-menu {
    display: none;
  }
}

@media (max-width: 680px) {
  .notification-btn {
    right: 128px;
    top: 23px;
  }
  body {
    background: var(--cream);
  }
  .topbar {
    height: 86px;
    grid-template-columns: 1fr 74px 110px;
    padding: 0 18px;
  }
  .brand img {
    width: 112px;
  }
  .search {
    width: 74px;
    height: 56px;
    justify-content: center;
    padding: 0;
  }
  .search-copy {
    display: none;
  }
  .search span:first-child {
    font-size: 31px;
  }
  .signup {
    height: 48px;
  }
  .cart {
    display: none;
  }
  .categories {
    height: 92px;
    display: flex;
    overflow-x: auto;
    padding: 0 18px;
    scrollbar-width: none;
  }
  .categories::-webkit-scrollbar {
    display: none;
  }
  .categories a {
    min-width: 104px;
  }
  .hero {
    min-height: 0;
  }
  .hero-art {
    height: 240px;
    order: 0;
  }
  .hero-art:before {
    width: 40%;
  }
  .hero-copy {
    padding: 30px 18px 25px;
  }
  .eyebrow {
    font-size: 11px;
    text-align: center;
  }
  .hero h1 {
    font-size: 42px;
    text-align: center;
    letter-spacing: -1px;
  }
  .lead {
    text-align: center;
    font-size: 18px;
  }
  .chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    margin-top: 20px;
  }
  .chips a {
    white-space: nowrap;
  }
  .section {
    padding: 0 18px;
    margin: 22px 0;
  }
  .page-main {
    padding: 18px 18px 90px;
  }
  .card-grid {
    display: flex;
    overflow: auto;
  }
  .card {
    min-width: 210px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .reels {
    display: flex;
    overflow: auto;
  }
  .reel-card {
    min-width: 170px;
  }
  .reel-watch {
    min-height: 640px;
  }
  .reel-video img {
    max-height: 640px;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .reel-menu {
    display: none;
  }
  .footer {
    padding: 25px 18px 80px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 66px;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 20;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a {
    color: #5b6864;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 21px;
  }
  .mobile-nav small {
    font-size: 10px;
    margin-top: 2px;
  }
  .mobile-nav .active {
    color: var(--green);
    font-weight: 800;
  }
}
