/* =========================
   FOODS & BEVERAGES (Clean / Elegant)
   Drop-in CSS (complete)
   ========================= */

/* ---------- Theme ---------- */
:root{
    --brand: #0a8cff;
    --ink: #0f172a;
    --muted: #64748b;
  
    --bg: #f6f9ff;
    --card: #ffffff;
  
    --stroke: rgba(15,23,42,.08);
    --stroke-2: rgba(15,23,42,.06);
  
    --shadow: 0 22px 60px rgba(2, 6, 23, .08);
    --shadow-soft: 0 14px 34px rgba(2, 6, 23, .08);
  
    --radius: 22px;
  }
  
  /* ---------- Section shell ---------- */
  .fb-section{
    padding: 80px 0;
  }
  
  .fb-container{
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
  }
  
  .fb-header{
    text-align: center;
    margin-bottom: 26px;
  }
  
  .fb-header h2{
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: .2px;
    color: var(--ink);
    font-weight: 800;
  }
  
  .fb-header p{
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--muted);
  }
  
  /* ---------- Main card layout ---------- */
  .fb-card{
    background: var(--card);
    border: 1px solid var(--stroke-2);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 18px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items: stretch; /* avoid awkward empty space */
  }
  
  @media (max-width: 980px){
    .fb-card{
      grid-template-columns: 1fr;
    }
  }
  
  /* =========================
     LEFT: GALLERY
     ========================= */
  .fb-gallery{
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 560px; /* ensures no huge empty white area */
  }
  
  @media (max-width: 980px){
    .fb-gallery{ min-height: 420px; }
  }
  
  .gallery-frame{
    position: relative;
    flex: 1;                 /* fill available height */
    min-height: 520px;       /* adjust if you want taller/shorter */
    border-radius: calc(var(--radius) - 6px);
    overflow: hidden;
    background: #0b1220;
    box-shadow: var(--shadow-soft);
  }
  
  @media (max-width: 980px){
    .gallery-frame{ min-height: 360px; }
  }
  
  .gallery-frame img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
  }
  
  /* Elegant overlay caption (instead of separate line below) */
  .gallery-overlay{
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,.36);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.92);
    font-size: 13px;
    backdrop-filter: blur(6px);
  }
  
  .gallery-overlay .label{
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 11px;
    color: rgba(255,255,255,.70);
  }

  
  .dot{
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: transform .16s ease, background .16s ease;
  }
  .dot.active{
    background: rgba(255,255,255,.95);
    transform: scale(1.25);
  }
  
  /* Gallery arrows: subtle, appear on hover */
  .nav-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255, 255, 255, .92);
    color: var(--brand);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: 
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
  }
  
  .gallery-frame:hover .nav-btn{
    opacity: 1;
  }
  
  .nav-btn.prev{ left: 12px; }
  .nav-btn.next{ right: 12px; }
  
  .nav-btn:hover{
    background: var(--brand);
    color: #ffffff; 
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 30px rgba(10,140,255,.35);
  }
  
  /* If you still have old caption row under gallery, hide it */
  .gallery-caption{ display: none !important; }
  
  /* =========================
     RIGHT: MENU
     ========================= */
  .fb-menu{
    height: 100%;
    border-radius: calc(var(--radius) - 6px);
    /* background: linear-gradient(#fff, rgba(10,140,255,.03)); */
    padding: 16px;
    border: 1px solid var(--stroke-2);
  }
  
  /* Header row: cleaner */
  .menu-top{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  /* hide "MENU" label if you have it */
  .menu-top .tag{ display: none !important; }
  
  .menu-top h3{
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
  }
  
  .seg-btn{
    min-width: 104px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }
  
  .seg-btn.active{
    background: rgba(10,140,255,.12);
    color: var(--ink);
  }
  
  /* Remove nested card look (important!) */
  .menu-preview{
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  
  /* Title row under header (optional) */
  .menu-preview-top{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 6px 0 10px;
  }
  
  .menu-preview-top .meta strong{
    color: var(--ink);
    font-size: 14px;
  }
  
  /* Remove hint text if you have it */
  .menu-preview-top .hint{ display: none !important; }
  
  /* Preview frame: looks like "paper", not a form field */
  .preview-frame{
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.08);
    background: linear-gradient(#ffffff, #fbfdff);
    box-shadow: 0 10px 26px rgba(2,6,23,.06);
    aspect-ratio: 4 / 5;
  }
  
  .preview-frame img,
  .preview-frame iframe{
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
  }
  
  /* Page pill: inside preview corner */
  .preview-frame .page-pill,
  .preview-frame #pagePill{
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(15,23,42,.10);
    color: var(--ink);
    font-weight: 800;
    backdrop-filter: blur(6px);
  }
  
  /* If you have the pill outside, hide it to reduce clutter */
  .menu-preview-top .pill{ display: none !important; }
  
  /* Preview arrows: subtle, appear on hover */
  .mini-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.85);
    color: var(--ink);
    font-size: 20px;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
  }
  
  .preview-frame:hover .mini-nav{
    opacity: 1;
  }
  
  .mini-nav.prev{ left: 10px; }
  .mini-nav.next{ right: 10px; }
  
  .mini-nav:hover{
    background: rgba(255,255,255,.95);
    transform: translateY(-50%) scale(1.03);
  }
  
  /* Buttons: slimmer and calmer */
  .menu-actions{
    gap: 10px;
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .menu-actions .btn{
    /* flex: 1;
    height: 40px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease; */
  }

  
  .btn.ghost{
    background: rgba(255,255,255,.50);
    border-color: rgba(15,23,42,.10);
    color: var(--ink);
  }
  
  .btn:hover{
    transform: translateY(-1px);
  }
  
  .btn.primary:hover{
    box-shadow: 0 16px 26px rgba(10,140,255,.22);
  }
  
  .btn.ghost:hover{
    background: rgba(255,255,255,.78);
  }
  
  /* ---------- Optional: remove any extra inner padding wrappers ---------- */
  .menu-inner,
  .menu-box,
  .menu-card,
  .menu-shell{
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  
  /* ---------- Accessibility focus ---------- */
  .nav-btn:focus,
  .mini-nav:focus,
  .seg-btn:focus,
  .btn:focus{
    outline: 3px solid rgba(10,140,255,.25);
    outline-offset: 2px;
  }
  
  /* ---------- Optional: if your images show broken-icon spacing ---------- */
  /* img{
    max-width: 100%;
  } */
  

  /* Track takes full area */
.fbm-track{
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  /* Every slide sits on top of each other (not stacked) */
  .fbm-slide{
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  
  /* Only active slide is visible */
  .fbm-slide.is-active{
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Image fills the frame */
  .fbm-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .nav-btn{ z-index: 5; }
  .dots{ z-index: 5; }
  .gallery-overlay{ z-index: 5; }
  .fbm-track{ z-index: 1; }

/* Container */
.segmented{
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #eef3f9;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
  }
  
  /* Base button */
  .fbm-tab{
    min-width: 110px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
  }
  
  /* ACTIVE STATE */
  .fbm-tab.is-active{
    background: linear-gradient(180deg, #4da3ff, #2f7edb);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(10,140,255,.25);
  }
  
  /* Hover (inactive only) */
  .fbm-tab:not(.is-active):hover{
    background: rgba(10,140,255,.08);
    color: #0f172a;
  }

  .section-underline {
    width: 250px !important;
  }
  
