/*!
 * Oyolloo Elements — J10 Menu widget.
 *
 * Scoped to .oo-menu-sec: no element selector, no :root, nothing leaks.
 */

.oo-menu-sec{
  --ook-maxw:1220px;
  --ook-pad:clamp(18px,4.5vw,44px);
  --ook-r:12px;
  --ook-r-sm:6px;

  --ook-yellow:#F7BE27;
  --ook-red:#E3000E;
  --ook-brown:#642F21;
  --ook-pill-fg:#FFF4EC;
  --ook-ink:#212121;
  --ook-muted:#757575;
  --ook-faint:#A1A1A1;
  --ook-surface:#FFFFFF;
  --ook-alt:#F7F7F7;
  --ook-dark:#0A0908;
  --ook-border:#EAEAEA;
  --ook-border-2:#D9D9D9;

  --ook-f-display:'Oswald','Oswald Fallback','Arial Narrow',Arial,sans-serif;
  --ook-f-head:'Oswald','Oswald Fallback','Arial Narrow',Arial,sans-serif;
  --ook-f-body:'Roboto','Roboto Fallback','Segoe UI',Helvetica,Arial,sans-serif;

  position:relative;
  padding:clamp(50px,6.5vw,92px) 0;
  background:var(--ook-alt); color:var(--ook-ink);
  font-family:var(--ook-f-body); font-size:16px; line-height:1.7; font-weight:400;
}

/* box-sizing is set on the widget's own subtree, never globally */
.oo-menu-sec,.oo-menu-sec *,.oo-menu-sec *::before,.oo-menu-sec *::after{ box-sizing:border-box; }

.oo-menu-sec--white{ background:var(--ook-surface); }
.oo-menu-sec--alt{ background:var(--ook-alt); }
.oo-menu-sec--cool{ background:#EFF6F8; }
.oo-menu-sec--alt::before,.oo-menu-sec--cool::before{
  content:""; position:absolute; inset:0 0 auto 0; height:1px;
  background:linear-gradient(90deg,transparent,var(--ook-border-2),transparent);
}

.oo-menu-sec__in{ max-width:var(--ook-maxw); margin-inline:auto; padding-inline:var(--ook-pad); }

/* ================= section head ================= */
.oo-menu-sec__head{ margin-bottom:34px; text-align:center; }
.oo-menu-sec__eyebrow{
  display:inline-flex; align-items:center; gap:10px; margin:0;
  font-family:var(--ook-f-head); font-weight:600; font-size:.78rem;
  letter-spacing:.22em; text-transform:uppercase; color:var(--ook-brown);
}
.oo-menu-sec__eyebrow::before{ content:""; flex:none; width:22px; height:2px; background:currentColor; opacity:.5; }
.oo-menu-sec__title{
  position:relative; margin:14px 0 0; padding-bottom:18px;
  font-family:var(--ook-f-display); font-weight:700;
  font-size:clamp(2rem,4.4vw,3.4rem); line-height:1;
  letter-spacing:.012em; text-transform:uppercase; color:var(--ook-red);
}
.oo-menu-sec__title::after{
  content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:58px; height:3px; border-radius:3px; background:var(--ook-yellow);
}
.oo-menu-sec__lede{ margin:14px auto 0; max-width:64ch; color:var(--ook-muted); font-size:1rem; }
@media (max-width:620px){ .oo-menu-sec__eyebrow::before{ display:none; } }

/* ================= filter chips ================= */
.oo-menu__filters{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:44px; }
.oo-menu__chip{
  font-family:var(--ook-f-head); font-weight:500; font-size:.78rem;
  letter-spacing:.1em; text-transform:uppercase;
  padding:10px 20px; border:1px solid var(--ook-border-2);
  background:var(--ook-surface); color:var(--ook-muted);
  border-radius:100px; cursor:pointer;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease;
}
.oo-menu__chip:hover{ border-color:var(--ook-brown); color:var(--ook-ink); }
.oo-menu__chip.oo-is-on{ background:var(--ook-brown); border-color:var(--ook-brown); color:var(--ook-pill-fg); }

/* ================= a course ================= */
.oo-menu__course{ margin-bottom:clamp(38px,5vw,60px); }
.oo-menu__course:last-child{ margin-bottom:0; }
.oo-menu__course.oo-is-off{ display:none; }
.oo-menu__course-head{ margin-bottom:32px; text-align:center; }
.oo-menu__course-t{
  margin:0; font-family:var(--ook-f-display); font-weight:700;
  font-size:clamp(1.6rem,3.2vw,2.3rem); line-height:1.05;
  text-transform:uppercase; color:var(--ook-red);
}
.oo-menu__course-s{
  margin:8px 0 0; font-family:var(--ook-f-head); font-weight:500; font-size:.74rem;
  letter-spacing:.2em; text-transform:uppercase; color:var(--ook-faint);
}

/* ================= the dish list ================= */
.oo-menu__grid{ display:grid; grid-template-columns:1fr 1fr; gap:4px 46px; }
@media (max-width:900px){ .oo-menu__grid{ grid-template-columns:1fr; } }

/* Three fixed-ish tracks. The last one used to be `auto`, which took its width
   from the price and the controls standing in a line — 133px of it, leaving the
   ingredients barely 228px and wrapping most names onto a second line. Naming a
   width and stacking the price above the controls hands that back to the text. */
.oo-menu__row{
  display:grid; grid-template-columns:96px 1fr 80px; gap:16px; align-items:stretch;
  padding:14px 0; border-bottom:1px solid var(--ook-border);
}
/* The photo runs the full height of its row rather than sitting centred in it,
   so a column of rows keeps one straight edge down the left however many lines
   of ingredients a dish carries. The floor stops a one-line row from squashing
   it into a letterbox. */
.oo-menu__thumb{ display:block; width:96px; height:100%; line-height:0; }
/* Elementor's frontend stylesheet resets the radius on every img it can
   reach; naming the section as well clears it. */
.oo-menu-sec .oo-menu__thumb img{
  display:block; width:100%; height:100%; object-fit:cover;
  /* The photo fills its row, but only so far: a dish with three lines of
     ingredients made a 175px row, and an 88-wide photo stretched down all of
     it read as a strip rather than a picture of food. The ceiling keeps it
     near square; the floor stops a one-line row squashing it flat. */
  min-height:76px; max-height:118px;
  border-radius:4px; background:var(--ook-dark);
}
.oo-menu__main{ min-width:0; }
.oo-menu__top{ display:flex; align-items:baseline; gap:8px; }
.oo-menu__name{
  flex-shrink:0; max-width:100%;
  font-family:var(--ook-f-head); font-weight:600; font-size:.98rem;
  text-transform:uppercase; color:var(--ook-brown);
}
.oo-menu__name a{ color:inherit; text-decoration:none; }
.oo-menu__name a:hover{ color:var(--ook-red); }
.oo-menu__dots{ flex:1; min-width:14px; border-bottom:1px dotted var(--ook-border-2); transform:translateY(-4px); }
.oo-menu__ing{ margin-top:3px; font-size:.85rem; line-height:1.5; color:var(--ook-muted); }
.oo-menu__meta{ display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.oo-menu__chip-sm{
  padding:2px 7px; border-radius:3px;
  border:1px solid color-mix(in srgb, var(--ook-brown) 34%, transparent);
  background:var(--ook-alt); color:var(--ook-brown);
  font-family:var(--ook-f-head); font-weight:500; font-size:.6rem;
  letter-spacing:.1em; text-transform:uppercase;
}

/* Price on its own line with the controls beneath it: side by side the three
   of them were the widest thing in the row and set the whole column's width. */
.oo-menu__side{
  display:flex; flex-wrap:wrap; align-items:center; align-content:center;
  justify-content:flex-end; gap:8px;
}
.oo-menu__side .oo-menu__price{ flex:1 0 100%; }
.oo-menu__price{
  font-family:var(--ook-f-head); font-weight:600; font-size:1rem;
  color:var(--ook-red); white-space:nowrap; text-align:right;
  font-variant-numeric:tabular-nums;
}
/* WooCommerce prints the amount and any sale price in its own tags */
.oo-menu__price .amount,.oo-menu__price bdi{ color:inherit; }
.oo-menu__price del{ margin-right:6px; color:var(--ook-faint); font-weight:500; font-size:.82rem; }
.oo-menu__price ins{ text-decoration:none; }

.oo-menu__add{
  flex-shrink:0; display:grid; place-items:center;
  width:32px; height:32px; padding:0;
  border:1px solid var(--ook-border-2); border-radius:var(--ook-r-sm);
  background:none; color:var(--ook-brown); text-decoration:none;
  font-family:var(--ook-f-head); font-size:1.05rem; line-height:1; cursor:pointer;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease;
}
.oo-menu__add:hover,.oo-menu__add:focus-visible{
  background:var(--ook-yellow); border-color:var(--ook-yellow); color:#211A05;
}
/* Woo hangs its own loading and added states on the button */
.oo-menu__add.loading{ opacity:.6; pointer-events:none; }
.oo-menu__add.added{ background:var(--ook-brown); border-color:var(--ook-brown); color:#FFFFFF; }
/* the "View cart" link Woo appends after a successful add — the drawer covers it */
.oo-menu__side .added_to_cart{ display:none; }

@media (max-width:560px){
  .oo-menu__row{ grid-template-columns:76px 1fr; }
  .oo-menu__thumb{ width:76px; }
  .oo-menu-sec .oo-menu__thumb img{ min-height:64px; max-height:104px; }
  /* on one column the price and the controls have the width to share a line
     again, with the price at the leading edge */
  .oo-menu__side{ grid-column:2; flex-wrap:nowrap; justify-content:space-between; }
  .oo-menu__side .oo-menu__price{ flex:0 1 auto; }
}

.oo-menu__notice{
  margin:clamp(34px,4vw,52px) 0 0; text-align:center;
  font-size:.82rem; color:var(--ook-faint);
}

.oo-menu-sec :focus-visible{ outline:3px solid var(--ook-yellow); outline-offset:2px; border-radius:2px; }

/* ================= theme hardening =================
   A theme styles bare h2, h3, p, a and button; those rules beat inheritance
   however low their specificity. */
.oo-menu-sec__eyebrow,.oo-menu-sec__lede,.oo-menu__course-s,.oo-menu__ing,.oo-menu__notice{ margin-block-end:0; }
.oo-menu-sec__title,.oo-menu__course-t{ margin-block-end:0; }

/* ================= drinks course =================
   Drinks have no photo and no ingredients, so the dotted-line row wastes the
   width. They sit as small cards instead. */
.oo-menu__drinks{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:10px; }
.oo-menu__drink{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px;
  background:var(--ook-surface); border:1px solid var(--ook-border);
  border-radius:var(--ook-r-sm);
}
.oo-menu__drink-n{
  font-family:var(--ook-f-head); font-weight:500; font-size:.92rem;
  line-height:1.25; text-transform:uppercase; color:var(--ook-brown);
}
.oo-menu__drink-n a{ color:inherit; text-decoration:none; }
.oo-menu__drink-n a:hover{ color:var(--ook-red); }
.oo-menu__drink-n small{
  display:block; font-family:var(--ook-f-body); font-weight:400; font-size:.75rem;
  letter-spacing:0; text-transform:none; color:var(--ook-faint);
}
/* the pill sets its own text colour: the name colour above would otherwise be
   inherited straight onto the brown fill and disappear */
.oo-menu__drink .oo-menu__pill{
  flex:none; padding:7px 14px; border-radius:var(--ook-r-sm);
  background:var(--ook-brown); color:#FFF4EC;
  font-family:var(--ook-f-head); font-weight:600; font-size:1rem;
  font-variant-numeric:tabular-nums; white-space:nowrap;
}
.oo-menu__drink .oo-menu__pill .amount,
.oo-menu__drink .oo-menu__pill bdi{ color:inherit; }

/* ================= add-to-cart plugin hardening =================
   A WhatsApp-ordering plugin prints `.add_to_cart_button,.ajax_add_to_cart
   { display:none !important }` inline, to push shoppers to its own button.
   Our cards need those exact classes for Woo's AJAX and the cart drawer, so
   the button is put back inside this section only — !important is the only
   thing that answers !important. */
.oo-menu-sec .oo-menu__add{ display:grid !important; }
/* one class each way is a tie, and the plugin's inline block comes later
   in the document, so the section class has to break it */

/* ================= ordering on WhatsApp =================
   Same as the cards: the row's button opens a chat with this dish. */
.oo-menu-sec .oo-menu__add--wa{
  border-color:#25D366; background:#25D366; color:#FFFFFF;
}
.oo-menu-sec .oo-menu__add--wa:hover,
.oo-menu-sec .oo-menu__add--wa:focus-visible{
  border-color:#1EBE5A; background:#1EBE5A; color:#FFFFFF;
}
.oo-menu-sec .oo-wa{ flex:none; }
