/* ============================================================
   Guntur Farmlands — Order Now page
   Four steps joined by one dashed route (farm to door), the live
   shop grid, a WhatsApp help box, and the bottom checkout bar.
   Colours come from the luxe tokens (css/luxe.css loads last).
   ============================================================ */

.order-hero{padding-bottom:clamp(2.25rem,5vw,3.75rem)}
.order-hero .page-hero-desc{margin-bottom:0}

/* ---------- the four steps ---------- */
.order-steps{--mark:56px;--gap:clamp(1rem,2.4vw,1.75rem);
  list-style:none;margin:clamp(1.75rem,4vw,2.75rem) 0 0;padding:0;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap)}
.order-step{position:relative;margin:0}
/* the route: a dashed line from this step's mark to the next one */
.order-step:not(:last-child)::after{content:'';position:absolute;
  top:calc(var(--mark) / 2);left:calc(var(--mark) + .6rem);right:calc(-1 * var(--gap) + .6rem);
  border-top:2px dashed color-mix(in srgb,var(--ok) 55%,transparent)}
.order-step-mark{position:relative;display:grid;place-items:center;
  width:var(--mark);height:var(--mark);border-radius:50%;
  background:var(--surface);color:var(--ok);
  border:1.5px solid color-mix(in srgb,var(--ok) 40%,var(--line));box-shadow:var(--sh-1)}
.order-step-mark b{position:absolute;top:-4px;right:-6px;display:grid;place-items:center;
  min-width:24px;height:24px;padding:0 6px;border-radius:var(--r-full);
  background:var(--accent);color:var(--on-accent);
  font-family:var(--font-sans);font-size:.78rem;font-weight:700;line-height:1}
.order-step:last-child .order-step-mark{background:var(--ok);color:var(--on-accent);border-color:var(--ok)}
.order-step-title{margin:1rem 0 .35rem;font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.12rem,1.6vw,1.3rem);line-height:1.2;color:var(--cream-50)}
.order-step-text{margin:0;max-width:30ch;font-size:.94rem;line-height:1.6;color:var(--cream-200)}

/* phones and small tablets: the route runs down the left as a timeline */
@media (max-width:860px){
  .order-steps{--mark:48px;grid-template-columns:1fr;gap:1.1rem}
  .order-step{display:grid;grid-template-columns:var(--mark) 1fr;column-gap:1rem;align-items:start}
  .order-step-mark{grid-row:span 2}
  .order-step:not(:last-child)::after{top:calc(var(--mark) + .4rem);bottom:-.7rem;
    left:calc(var(--mark) / 2 - 1px);right:auto;border-top:0;
    border-left:2px dashed color-mix(in srgb,var(--ok) 55%,transparent)}
  .order-step-title{margin:.15rem 0 .2rem}
  .order-step-text{max-width:none}
}

/* ---------- CTA + ways to pay ---------- */
.order-hero-foot{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.5rem;margin-top:clamp(1.75rem,4vw,2.5rem)}
.order-assure{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:0;padding:0}
.order-assure li{display:inline-flex;align-items:center;gap:.4rem;margin:0;
  padding:.4rem .8rem;border-radius:var(--r-full);
  background:var(--surface);border:1px solid var(--line);
  font-size:.86rem;font-weight:600;color:var(--cream-200)}
.order-assure li::before{content:'';flex:none;width:.45rem;height:.75rem;margin:-.15rem .1rem 0 .05rem;
  border:solid var(--ok);border-width:0 2px 2px 0;transform:rotate(45deg)}
@media (max-width:480px){.order-hero-cta{width:100%}}

/* ---------- shop ---------- */
.order-shop{scroll-margin-top:5rem}
.order-shop-title{margin:0 0 .35rem;font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.5rem,3vw,2.1rem);color:var(--cream-50)}
.order-shop-sub{margin:0 0 clamp(1rem,3vw,1.5rem);color:var(--muted)}

/* ---------- help ---------- */
.order-help{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 1.5rem;
  margin-top:clamp(2rem,5vw,3rem);padding:clamp(1.1rem,3vw,1.5rem) clamp(1.1rem,3vw,1.75rem);
  border-radius:var(--r-lg);background:var(--grad-forest);
  border:1.5px dashed color-mix(in srgb,var(--ok) 55%,transparent)}
.order-help-title{margin:0 0 .25rem;font-family:var(--font-display);font-weight:600;font-size:1.25rem;color:var(--cream-50)}
.order-help-text{margin:0;max-width:52ch;color:var(--cream-200)}
.order-help-text a{color:var(--ok);font-weight:700;white-space:nowrap}

/* ---------- checkout bar ---------- */
.order-bar{position:fixed;left:0;right:0;bottom:0;z-index:990;/* under the menu drawer (999) */
  padding:.7rem 0 calc(.7rem + env(safe-area-inset-bottom));
  background:var(--surface);border-top:1px solid var(--line);
  box-shadow:0 -10px 30px rgba(60,30,10,.12);
  transform:translateY(110%);visibility:hidden;
  transition:transform .4s var(--ease),visibility 0s linear .4s}
.order-bar--open{transform:none;visibility:visible;transition:transform .4s var(--ease),visibility 0s linear 0s}
.order-bar-inner{display:flex;align-items:center;justify-content:space-between;gap:.75rem 1rem}
.order-bar-summary{display:flex;align-items:center;flex-wrap:wrap;gap:.15rem .6rem;margin:0;
  font-weight:600;color:var(--cream-50)}
.order-bar-summary svg{color:var(--ok)}
.order-bar-text{min-width:0}
/* what is in the cart, pack by pack: small, at most two lines */
.order-bar-items{margin:.15rem 0 0 calc(22px + .6rem);font-size:.8rem;line-height:1.4;color:var(--muted);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.order-bar-items:empty{display:none}
.order-bar-total{font-family:var(--font-display);font-weight:700;font-size:1.15rem}
.order-bar-go{--btn-bg:var(--ok);--btn-fg:var(--on-accent);flex:none;
  box-shadow:0 8px 20px rgba(46,125,50,.28)}
.order-bar-go:hover{--btn-bg:var(--forest-950)}
@media (max-width:480px){
  .order-bar-summary{font-size:.86rem}
  .order-bar-summary svg{display:none}
  /* stacked: count and total, then the packs, then a full-width button */
  .order-bar-inner{display:grid;grid-template-columns:minmax(0,1fr);gap:.35rem}
  .order-bar-text{display:contents}
  .order-bar-items{margin:0;font-size:.74rem}
  .order-bar-go{padding:.75rem 1.1rem;font-size:.86rem}
}
/* keep the page end and the WhatsApp button clear of the bar (js/order-now.js sets --order-bar-h) */
body.has-order-bar{padding-bottom:var(--order-bar-h,6.5rem)}
/* the bar does the floating cart button's job here, so add-to-cart flies to the header cart */
body[data-page="order-now"] .cart-float{display:none}
body.has-order-bar .wa-float{bottom:calc(var(--order-bar-h,6.5rem) + 1rem)}
