/* MeLyssi74 — mobile.

   Everything here is inside a media query. Loaded on every honey page, inert on
   desktop. One stylesheet rather than a second set of templates: the markup is
   shared, only the presentation and the ordering differ (same approach as the
   smsreminder codebase).

   The organising idea: on a phone this is a shop, not a magazine. The stories
   stay, but the products come first and the basket is never more than one tap
   away. Everything below follows from that.

   Breakpoints:
     <= 760px  phone and small tablet — bottom bar appears, header compresses
     <= 560px  phone — two-across product grid, section reordering
*/

@media (max-width: 760px) {

/* ---------------------------------------------------------------------------
   1. Bottom navigation bar
   --------------------------------------------------------------------------- */
body.honey-page .mnav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 55;                       /* under the drawer (60) and modal (70) */
    display: flex;
    background: var(--honey-cream);
    border-top: 1px solid rgba(255, 255, 255, .08);
    /* Keeps the bar clear of the iPhone home indicator. Without this the labels
       sit under it and the whole bar reads as broken. */
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -6px 24px rgba(44, 28, 13, .22);
}

body.honey-page .mnav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 4px 8px;
    background: none;
    border: 0;
    font: inherit;
    color: rgba(255, 250, 240, .62);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.honey-page .mnav-item svg { width: 22px; height: 22px; flex: none; }

body.honey-page .mnav-item span {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.honey-page .mnav-item.is-active { color: var(--honey-gold); }

/* Content must not hide behind the bar. The last product row and the footer
   both live at the bottom of a long scroll — this is what stops them being
   permanently covered. */
body.honey-page .site-main { padding-bottom: 78px; }
body.honey-page .honey-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

/* Checkout has one job. A navigation bar competing with a Pay button at the
   bottom of a payment form is how people abandon. */
body.honey-checkout-page .mnav,
body.honey-checkout-page .mfab { display: none; }

/* ---------------------------------------------------------------------------
   2. Floating basket button
   --------------------------------------------------------------------------- */
body.honey-page .mfab {
    position: fixed;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    z-index: 56;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: var(--honey-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(44, 28, 13, .34);
    /* Springs in when the first item lands. This is where the flying jar
       finishes, so the button's arrival is the confirmation. */
    animation: mfab-in .34s cubic-bezier(.2, 1.5, .4, 1);
}

body.honey-page .mfab svg { width: 24px; height: 24px; }

body.honey-page .mfab-count {
    position: absolute;
    top: -3px; right: -3px;
    min-width: 22px; height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--honey-cream);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--honey-bg);
}

@keyframes mfab-in {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* The header basket button is redundant once the FAB exists — two baskets on
   one screen is worse than either alone. */
body.honey-page .honey-header-tail .cart-btn { display: none; }

/* ---------------------------------------------------------------------------
   3. Bottom sheets (Categories, More)
   --------------------------------------------------------------------------- */
body.honey-page .msheet-scrim {
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 7, .45);
    z-index: 57;
    opacity: 0;
    transition: opacity .25s ease;
}

body.honey-page .msheet-scrim.on { opacity: 1; }

body.honey-page .msheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 58;
    background: var(--honey-bg);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(44, 28, 13, .3);
    padding: 10px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32, .8, .3, 1);
}

body.honey-page .msheet.on { transform: none; }

body.honey-page .msheet-grip {
    width: 38px; height: 4px;
    border-radius: 999px;
    background: var(--honey-line);
    margin: 0 auto 10px;
}

body.honey-page .msheet-title {
    margin: 0 20px 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--honey-cream-dim);
}

body.honey-page .msheet-body { overflow-y: auto; padding: 0 8px; }

body.honey-page .msheet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    /* 48px of vertical target. Anything under 44 is a mis-tap waiting to
       happen, and this is the control people use most on a phone. */
    min-height: 48px;
    padding: 12px 16px;
    background: none;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    color: var(--honey-cream);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

body.honey-page .msheet-row:active { background: var(--honey-line); }

body.honey-page .msheet-row.is-active {
    background: var(--honey-card);
    color: var(--honey-gold);
    font-weight: 700;
}

body.honey-page .msheet-count {
    font-size: 12px;
    color: var(--honey-cream-dim);
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
   4. Header — the bottom bar now carries navigation, so the top nav pill is
      redundant and the header can shrink to brand + language.
   --------------------------------------------------------------------------- */
body.honey-page .honey-nav { display: none; }

/* ---------------------------------------------------------------------------
   5. Hero — shorter, so the top of the product grid shows above the fold.
      A full-bleed hero reads as the whole page; a peek of product below it is
      what tells a visitor there is something to buy.
   --------------------------------------------------------------------------- */
body.honey-page .honey-hero { min-height: 60vh; }
body.honey-page .honey-hero-content { padding-bottom: 44px; }

}  /* end 760px */


@media (max-width: 560px) {

/* ---------------------------------------------------------------------------
   6. Section order — the highest-impact change on the page.

      Desktop: hero, story, products, testimonials, bees.
      Mobile:  hero, PRODUCTS, testimonials, story teaser, bees teaser.

      Done with flex `order` rather than duplicated markup, so there is exactly
      one copy of every section and desktop is untouched. Testimonials sit above
      the story because social proof after seeing product is persuasion; before
      it, it is noise.
   --------------------------------------------------------------------------- */
body.honey-page .site-main { display: flex; flex-direction: column; }

body.honey-page .site-main > .honey-hero        { order: 1; }
body.honey-page .site-main > #products          { order: 2; }
body.honey-page .site-main > .honey-testimonials{ order: 3; }
body.honey-page .site-main > .honey-story       { order: 4; }
body.honey-page .site-main > .honey-bees        { order: 5; }
body.honey-page .site-main > .honey-footer      { order: 6; }

/* ---------------------------------------------------------------------------
   7. Products — two across, compact cards.

      One product per screen means scrolling past eight screens to see eight
      jars. Two across with a tighter card puts four in view at once, which is
      the difference between browsing and trudging.
   --------------------------------------------------------------------------- */
body.honey-page .honey-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.honey-page .honey-product-card .honey-info { padding: 12px 12px 14px; }
body.honey-page .honey-product-card h3 { font-size: 14px; line-height: 1.25; }

/* The description is the first thing to go. On a 2-across card it is three
   lines of grey that push the price and the Add button off the screen. */
body.honey-page .honey-product-card .honey-desc { display: none; }

body.honey-page .honey-product-card .honey-weight { font-size: 11.5px; margin-bottom: 6px; }
body.honey-page .honey-product-card .honey-price { font-size: 16px; }

body.honey-page .honey-buy {
    flex-direction: column;
    /* Explicit, not inherited. A wrapping *column* container breaks into extra
       columns rather than extra rows, which puts the button beside the stepper
       and off the edge of the card. */
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
}

body.honey-page .honey-buy .step { align-self: center; }
body.honey-page .honey-buy .step button { width: 36px; height: 36px; }
/* flex: 0 0 auto — anything with a percentage basis resolves against the
   container's *height* in a column layout, not its width. */
body.honey-page .honey-buy .btn {
    flex: 0 0 auto;
    width: 100%;
    padding: 11px 8px;
    font-size: 13px;
}

body.honey-page .honey-stock-flag { font-size: 9.5px; padding: 3px 7px; }

/* Category chips stay as a secondary control — the sheet is the primary one
   now, so these can be quieter. */
body.honey-page .honey-tabs-wrap { margin: 14px 0 18px; }

/* ---------------------------------------------------------------------------
   8. Story and bees teasers
   --------------------------------------------------------------------------- */
body.honey-page .honey-story-watermark { display: none; }
body.honey-page .honey-story-card { padding: 24px 20px; }

body.honey-page .honey-story-more,
body.honey-page .honey-bees-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--honey-gold);
    text-decoration: none;
    border-bottom: 1px solid var(--honey-gold);
    padding-bottom: 2px;
}

/* ---------------------------------------------------------------------------
   9. Basket and checkout
   --------------------------------------------------------------------------- */
body.honey-page .honey-basket { padding-top: 24px; }
body.honey-page .honey-basket h1 { font-size: 26px; margin-bottom: 18px; }
body.honey-page .panel { padding: 18px 16px; }
body.honey-page .panel.pad-lg { padding: 20px 16px; }

body.honey-page .li { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
body.honey-page .li img, body.honey-page .li-thumb { width: 56px; height: 56px; }
body.honey-page .li h4 { font-size: 13.5px; }

body.honey-page .step button { width: 38px; height: 38px; }

/* Every button a thumb has to hit gets a real target. */
body.honey-page .btn { min-height: 44px; }
body.honey-page .linkish { min-height: 44px; display: inline-flex; align-items: center; }


/* ---------------------------------------------------------------------------
   10. Basket drawer slides up from the bottom, not in from the side.

       On a phone the bottom edge is the thumb zone, and the Categories/More
       sheets already open from there — a drawer arriving from the right would be
       the only thing on the page moving a different way. Same panel, same
       JavaScript, different axis.

       z-index 60 keeps it above the bottom bar (55), so it covers it rather than
       leaving a strip of navigation peeking out from under a panel.
   --------------------------------------------------------------------------- */
body.honey-page .drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    border-left: 0;
    border-top: 1px solid var(--honey-line);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

body.honey-page .drawer.on { transform: none; }

body.honey-page .drawer-hd { padding: 16px 20px; }
body.honey-page .drawer-body { padding: 4px 20px; }
body.honey-page .drawer-ft { padding: 16px 20px 20px; }

}  /* end 560px */


/* ---------------------------------------------------------------------------
   Desktop — the mobile-only chrome must never appear.
   --------------------------------------------------------------------------- */
@media (min-width: 761px) {
    body.honey-page .mnav,
    body.honey-page .mfab,
    body.honey-page .msheet,
    body.honey-page .msheet-scrim { display: none !important; }
}

/* Teaser/full pairs. The mobile teaser and the desktop full text are both in the
   markup; this is the only thing deciding which one shows. Kept outside the
   media queries above so both halves of the rule sit together. */
body.honey-page .mobile-only { display: none; }

@media (max-width: 560px) {
    body.honey-page .mobile-only { display: block; }
    body.honey-page .desktop-only { display: none; }
}
