@media (max-width: 768px) {
/* ============================================================
   LUNCHBOX.KIDS — TOOLS MOBILE
   Loads AFTER home-mobile.css. All page-specific styles.
   Navy background throughout (matches desktop intent).
   ============================================================ */

/* ====== HEADER (NAVY) — scoped so the override doesn't leak to other pages
   after their stylesheet stays in the <head> across navigation ====== */
body:has(.tl-m-hero) .m-header {
  background: var(--navy);
  border-bottom-color: rgba(248,244,236,.14);
}
body:has(.tl-m-hero) .m-header-cta {
  background: var(--cream);
  color: var(--navy);
}

/* ====== 01 · HERO (NAVY) ====== */
.tl-m-hero {
  padding-bottom: 36px;
  background: var(--navy);
  color: var(--cream);
}
.tl-m-hero .sec-head {
  border-bottom-color: rgba(248,244,236,.22);
}
.tl-m-hero .sec-head .num-stat,
.tl-m-hero .sec-head .num-label {
  color: var(--cream);
}
.tl-m-hero .m-h1 {
  color: var(--cream);
}
.tl-m-hero .m-h1 .accent-i {
  color: var(--peri);
}
.tl-m-hero .m-lede {
  color: rgba(248,244,236,.75);
}

.tl-m-disclaimer {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .3px;
  color: rgba(248,244,236,.5);
  padding-left: 14px;
  border-left: 2px solid rgba(197,204,253,.4);
  margin-top: 4px;
}

/* ====== FILTER BAR (sticky below header, navy) ====== */
.tl-m-filters {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(248,244,236,.14);
  padding: 12px 0;
}

.tl-m-filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--px);
}
.tl-m-filter-scroll::-webkit-scrollbar { display: none; }

.tl-m-filter-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1.5px solid rgba(248,244,236,.28);
  border-radius: 100px;
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.tl-m-filter-pill[aria-pressed="true"] {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--navy);
}
.tl-m-filter-pill:active {
  transform: scale(.95);
  transition: transform .1s;
}

.tl-m-pill-count {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  background: rgba(248,244,236,.12);
  color: rgba(248,244,236,.6);
  padding: 1px 5px;
  border-radius: 100px;
  line-height: 1.4;
}
.tl-m-filter-pill[aria-pressed="true"] .tl-m-pill-count {
  background: rgba(18,52,87,.12);
  color: var(--navy);
}

/* ====== PRODUCT GRID (NAVY) ====== */
.tl-m-grid-section {
  padding-top: 24px;
  padding-bottom: 40px;
  background: var(--navy);
}

.tl-m-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Card base */
.tl-m-card {
  display: flex;
  flex-direction: column;
  background: rgba(248,244,236,.045);
  border: 1px solid rgba(248,244,236,.14);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.tl-m-card:active {
  transform: scale(.97);
  transition: transform .1s;
}

/* Featured card — spans full width */
.tl-m-card.tl-m-featured {
  grid-column: 1 / -1;
  border-color: var(--peri);
}

/* Card media */
.tl-m-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(120% 120% at 50% 30%, rgba(197,204,253,.16), rgba(197,204,253,0) 60%);
  border-bottom: 1px solid rgba(248,244,236,.1);
}
.tl-m-featured .tl-m-card-media {
  aspect-ratio: 3 / 2;
  padding: 24px 28px;
}

.tl-m-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.4));
}



/* Category tag overlay */
.tl-m-cat-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(18,52,87,.66);
  backdrop-filter: blur(4px);
  color: rgba(248,244,236,.7);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Promo badge */
.tl-m-promo {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--mint);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 100px;
  z-index: 2;
}

/* Card body */
.tl-m-card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.tl-m-featured .tl-m-card-body {
  padding: 14px 16px 18px;
  gap: 6px;
}

.tl-m-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -.4px;
  color: var(--cream);
  text-wrap: balance;
  margin: 0;
}
.tl-m-featured h3 {
  font-size: 20px;
}

.tl-m-card p {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(248,244,236,.66);
  margin: 0;
}

/* "view product" link at bottom of card */
.tl-m-product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mint);
}
.tl-m-product-link svg {
  width: 10px;
  height: 10px;
}

/* Grid empty state */
.tl-m-grid-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px var(--px);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(248,244,236,.6);
}

/* ====== CTA (PERIWINKLE) ====== */
.tl-m-cta {
  background: var(--peri);
}
.tl-m-cta .eyebrow {
  color: var(--peri-dark);
  margin-bottom: 16px;
}
.tl-m-cta .eyebrow .dash {
  background: var(--peri-dark);
}
.tl-m-cta .m-h2 { color: var(--navy); }
.tl-m-cta .m-body { color: var(--navy); opacity: .85; }
.tl-m-cta .form-note {
  color: var(--peri-dark);
  text-align: center;
  margin-top: 8px;
}

.tl-m-cta-photo-wrap {
  position: relative;
  width: min(55%, 180px);
  margin: 0 auto 28px;
}
.tl-m-cta-photo {
  width: 100%;
  border-radius: 14px;
  display: block;
  transform: rotate(-2deg);
  box-shadow: 0 16px 32px -16px rgba(18,52,87,.35);
}
.tl-m-cta-photo-wrap .circle-stamp {
  position: absolute;
  top: -16px;
  right: -20px;
  width: 80px;
  height: 80px;
  z-index: 3;
  filter: drop-shadow(0 6px 12px rgba(18,52,87,.18));
  animation: stampFloat 6s ease-in-out infinite;
}
.tl-m-cta-photo-wrap .circle-stamp svg {
  width: 100%;
  height: 100%;
  display: block;
}

}

@media (max-width: 768px) {
  /* Fix featured bento image visibility: give more vertical room + true center */
  .tl-m-featured .tl-m-card-media {
    aspect-ratio: 1 / 1;
    padding: 22px 22px;
    place-items: center;
  }
  .tl-m-featured .tl-m-card-media > img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    margin: auto;
  }

  /* Shop-from modal as bottom sheet on mobile */
  .shop-modal { padding: 0; align-items: end; }
  .shop-modal__panel {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 18px 20px 28px;
    animation: shopSheetUp .24s cubic-bezier(.2,.9,.3,1.05);
  }
  .shop-modal__grabber {
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 4px;
    background: rgba(18,52,87,.18);
    margin: 0 auto 14px;
  }
  .shop-modal__title { font-size: 22px; }
  .shop-modal__thumb { width: 56px; height: 56px; }
  .shop-opt__code { font-size: 10px; padding: 5px 8px; }
}

@keyframes shopSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
