/* mobile.css — OnlyCats Santa Maria
   Overrides for small screens. Loaded after site.css.
   Breakpoints match site.css: 900px, 620px             */

.mobile-nav-actions { display: none; }
/* ─── MOBILE NAV: hide fake pseudo-element text ──────── */
@media(max-width:900px){
  .main-nav.open::before{
    content: "" !important;
    display: none !important;
    padding: 0;
    margin: 0;
    border: none;
  }

  /* Real Get Help + Donate links inside the nav dropdown */
  .main-nav.open::after{
    content: none;
  }

  /* Inject the action links via a helper div we'll add —
     but since we can't change HTML here, we use the
     existing .header-actions and un-hide it inside the nav.
     Instead: style the ::before as a flex row with links.
     We hide it above and add a real element approach below. */

  /* Show header-actions inside mobile nav as top row */
  .main-nav.open .mobile-nav-actions{
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }

  .mobile-nav-actions .get-help-nav,
  .mobile-nav-actions .donate-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-nav-actions .get-help-nav{
    border: 1px solid var(--purple);
    color: var(--purple);
    background: #fff;
  }

  .mobile-nav-actions .donate-nav{
    border: 1px solid var(--pink);
    background: var(--pink);
    color: #fff;
    text-transform: uppercase;
  }
}

/* ─── HERO: keep ♡ on same line as h1 text ───────────── */
@media(max-width:620px){
  .hero h1{
    white-space: normal;
    font-size: 26px;
  }
  .hero h1 span{
    display: inline;
  }
  .hero-copy{
    padding: 24px 17px 22px;
  }
}

/* ─── HELP CARDS: fix overlapping image/text layout ──── */
@media(max-width:900px){
  .help-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .help-card{
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }

  /* Image: top of card, full width, fixed height */
  .help-card img{
    position: static;
    width: 100%;
    height: 130px;
    object-fit: cover;
    object-position: center;
  }

  /* Remove the gradient overlay that clips content */
  .help-card:after{
    display: none;
  }

  /* Icon: stays top-left but over the image */
  .help-icon{
    position: absolute;
    left: 10px;
    top: 8px;
    width: 38px;
    height: 38px;
    font-size: 18px;
    z-index: 3;
  }

  /* Content: below the image, normal flow */
  .help-content{
    position: static;
    padding: 10px 12px 13px;
    z-index: auto;
  }

  .help-content h3{
    margin-top: 0;
  }

  .help-content p{
    min-height: 0;
    font-size: 12px;
  }
}

@media(max-width:620px){
  .help-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .help-card img{
    height: 110px;
  }
}

/* ─── STORE: 2-column product grid ───────────────────── */
@media(max-width:900px){
  .product-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:620px){
  .product-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card{
    grid-template-columns: 80px 1fr;
    gap: 8px;
  }

  .product-card img{
    width: 80px;
    height: 70px;
  }
}

/* ─── FOOTER: stack all columns, shrink logo ─────────── */
@media(max-width:900px){
  .footer-main{
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 17px;
  }

  .footer-brand img{
    width: 110px;
  }

  .footer-brand p{
    font-size: 12px;
    margin: 6px 0 0;
  }

  .footer-column{
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 16px;
  }

  .footer-column h3{
    margin-bottom: 10px;
  }

  .footer-column a,
  .footer-column span{
    font-size: 13px;
    margin: 7px 0;
  }

  .footer-news form{
    flex-direction: row;
  }

  .footer-news input{
    font-size: 14px;
    padding: 10px;
  }

  .footer-news button{
    padding: 0 16px;
    font-size: 13px;
  }

  .footer-bottom{
    flex-direction: column;
    gap: 5px;
    padding: 12px 17px 16px;
    font-size: 11px;
  }
}

/* ─── MAILER: price badge pulled up next to subscribe ── */
@media(max-width:900px){
  .mailer{
    position: relative;
  }

  .price-badge{
    position: absolute;
    bottom: 16px;
    right: 17px;
    width: 74px;
    height: 74px;
    border-width: 3px;
  }

  .price-badge strong{
    font-size: 19px;
    line-height: 1;
  }

  .price-badge span{
    font-size: 10px;
  }
}
@media(max-width:900px){
  .mailer-copy{
    display: flex;
    flex-direction: column;
  }

  .mailer-copy .button{
    align-self: flex-start;
  }

  .price-badge{
    width: 64px;
    height: 64px;
    bottom: 10px;
    margin: 0;
    grid-column: auto;
    align-self: center;
    flex-shrink: 0;
  }

  .price-badge strong{
    font-size: 20px;
  }

  .price-badge span{
    font-size: 11px;
  }

  /* Row: subscribe button + price badge side by side */
  .mailer-copy .button + .price-badge,
  .mailer .price-badge{
    display: grid;
  }

  .mailer{
    display: flex;
    flex-direction: column;
    padding: 0 0 20px;
  }

  .mailer-image{
    width: 100%;
    height: 220px;
    margin: 0;
  }

  .mailer-copy{
    padding: 16px 17px 0;
  }

  /* Wrap subscribe + badge in a flex row */
  .mailer-subscribe-row{
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
  }
}

/* ─── BACK TO TOP button (injected via JS or static) ─── */
.back-to-top{
  display: block;
  text-align: center;
  margin: 16px auto 0;
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
}

.back-to-top:hover{
  background: rgba(255,255,255,.25);
}

