/* All styles here (Yummy-inspired: clean white, red accent) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --ld-accent:#ce1212;
  --ld-accent-dark:#a30e0e;
  --ld-text:#1f2937;
  --ld-muted:#6b7280;
  --ld-bg:#ffffff;
  --ld-soft:#f8fafc;
  --ld-border: rgba(17,24,39,.10);
  --ld-shadow: 0 18px 55px rgba(16,24,40,.10);
  --ld-radius: 18px;
}

*{ font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial; }

body{
  background: var(--ld-bg);
  color: var(--ld-text);
}

body.modal-open,
body.offcanvas-backdrop,
body.offcanvas-show{
  overflow: hidden !important;
}

.offcanvas,
.modal{
  will-change: transform, opacity;
}

/* =========================
   Desktop layout fix
   ========================= */
@media (min-width: 992px){
  .container{ max-width: 1180px !important; }
}
@media (min-width: 1200px){
  .container{ max-width: 1240px !important; }
}

/* =========================
   Topbar
   ========================= */
.ld-topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ld-border);
  padding: 10px 0;
}

.ld-topbar .container{
  gap: 10px;
}

/* Brand */
.ld-brand{
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.ld-brand-name{
  font-weight: 900;
  font-size: 18px;
  color: var(--ld-text);
  letter-spacing: -.2px;
  line-height: 1.1;
}
.ld-dot{
  font-weight: 900;
  font-size: 18px;
  color: var(--ld-accent);
  line-height: 1.1;
}

/* Compact header controls */
.ld-topbar .d-flex.align-items-center.gap-2{ gap: 8px !important; }
.ld-topbar .btn-ld,
.ld-topbar .btn-ld-soft{
  padding: 7px 12px !important;
  font-size: 13px !important;
}
.ld-topbar .btn-ld{ border-radius: 14px !important; }
.ld-topbar .badge{
  font-size: 11px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  vertical-align: middle;
}

/* =========================
   Buttons (global)
   ========================= */
.btn-ld{
  background: var(--ld-accent) !important;
  border: 1px solid var(--ld-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
}
.btn-ld:hover{
  background: var(--ld-accent-dark) !important;
  border-color: var(--ld-accent-dark) !important;
}

.btn-ld-soft{
  background: #fff !important;
  border: 1px solid var(--ld-border) !important;
  color: var(--ld-text) !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
}
.btn-ld-soft:hover{ background: var(--ld-soft) !important; }

/* Start page hero buttons: smaller */
.ld-hero .btn-ld,
.ld-hero .btn-ld-soft{
  padding: 9px 14px !important;
  font-size: 14px !important;
}
.ld-hero .btn-lg{
  padding: 9px 14px !important;
  font-size: 14px !important;
}

/* =========================
   Hero
   ========================= */
.ld-hero{
  padding: 56px 0;
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
}
.ld-hero-title{
  font-weight: 900;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -1px;
  line-height: 1.05;
}
.ld-hero-sub{
  color: var(--ld-muted);
  font-size: 16px;
  margin-top: 12px;
  max-width: 44ch;
}
.ld-hero-plate{
  width: min(460px, 92%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(206,18,18,.15), transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(206,18,18,.10), transparent 50%),
              #fff;
  border: 1px solid var(--ld-border);
  box-shadow: var(--ld-shadow);
  display: grid;
  place-items: center;
}
.ld-plate-inner{ text-align: center; }
.ld-plate-title{
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -.5px;
}
.ld-plate-sub{
  color: var(--ld-muted);
  font-weight: 600;
}

/* =========================
   Sections
   ========================= */
.ld-section{ padding: 42px 0 56px; }
.ld-section-title{
  text-align: center;
  margin-bottom: 22px;
}
.ld-section-title h2{
  font-weight: 900;
  letter-spacing: -.6px;
  margin: 0;
}
.ld-section-title p{
  color: var(--ld-muted);
  margin: 8px 0 0;
}
.ld-muted{ color: var(--ld-muted) !important; }

/* =========================
   Pills
   ========================= */
.ld-pill{
  background: #fff;
  border: 1px solid var(--ld-border);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  color: var(--ld-text);
  font-size: 12px;
  white-space: nowrap;
}

/* =========================
   Date cards
   ========================= */
.ld-date-card{
  display: block;
  text-decoration: none;
  color: var(--ld-text);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(16,24,40,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-height: 140px;
}
.ld-date-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--ld-shadow);
  border-color: rgba(206,18,18,.30);
}
.ld-date-card.is-selected{
  border-color: rgba(206,18,18,.55);
  box-shadow: 0 18px 55px rgba(206,18,18,.12);
}
.ld-date-dow{
  color: var(--ld-muted);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 12px;
}
.ld-date-day{
  font-size: 36px;
  font-weight: 900;
  line-height: 1.0;
  margin-top: 4px;
}
.ld-date-mon{
  font-weight: 900;
  color: var(--ld-accent);
  margin-top: 2px;
}
.ld-date-iso{
  color: var(--ld-muted);
  font-size: 12px;
  margin-top: 8px;
}

/* =========================
   Menu cards
   ========================= */
.ld-menu-card{
  border: 1px solid var(--ld-border) !important;
  border-radius: var(--ld-radius) !important;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ld-menu-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--ld-shadow);
  border-color: rgba(206,18,18,.25) !important;
}
.ld-menu-img{
  height: 200px;
  object-fit: cover;
}
@media (min-width: 992px){
  .ld-menu-img{ height: 230px; }
}

.ld-price{
  background: rgba(206,18,18,.10);
  color: var(--ld-accent);
  border: 1px solid rgba(206,18,18,.18);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}
.ld-arrow{ font-weight: 900; color: var(--ld-accent); }

/* =========================
   Modal / Offcanvas
   ========================= */
.ld-modal{
  border-radius: var(--ld-radius);
  border: 1px solid var(--ld-border);
}
.ld-modal-img{
  width: 92px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--ld-border);
}
.ld-modal-price{
  font-weight: 900;
  font-size: 18px;
  color: var(--ld-accent);
}
.ld-canvas{ border-left: 1px solid var(--ld-border); }
.btn-close{ opacity: .6; }

.modal.fade .modal-dialog{ transition: transform .22s ease-out; }
.offcanvas{ transition: transform .22s ease-out; }

/* =========================
   Cart lines
   ========================= */
.ld-cart-list{ display:flex; flex-direction:column; gap:10px; }
.ld-cart-line{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 10px;
  border-radius: 16px;
  background: var(--ld-soft);
  border: 1px solid var(--ld-border);
}
.ld-cart-line img{
  width: 52px; height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--ld-border);
}
.ld-divider{
  height: 1px;
  background: var(--ld-border);
  margin: 14px 0;
}

.ld-cart-actions{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:nowrap;
}
.ld-iconbtn{
  border-radius: 12px !important;
  min-width: 38px;
  height: 36px;
  padding: 0 10px !important;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ld-iconbtn i{ font-size: 16px; }
.ld-qty{
  width: 34px;
  text-align:center;
  font-weight: 900;
  color: var(--ld-text);
}

/* =========================
   Panels
   ========================= */
.ld-panel{
  border-radius: var(--ld-radius);
  box-shadow: 0 14px 44px rgba(16,24,40,.08);
  border: 1px solid var(--ld-border);
}
.ld-summary .d-flex + .d-flex{
  border-top: 1px dashed rgba(17,24,39,.12);
}
.ld-total{
  font-weight: 900;
  font-size: 22px;
  color: var(--ld-accent);
}
.ld-success{ max-width: 620px; margin: 0 auto; }
.ld-link{ color: var(--ld-accent); font-weight: 800; text-decoration: none; }
.ld-link:hover{ text-decoration: underline; }

/* Inputs */
.form-control, .form-select, .input-group-text{
  border-radius: 14px !important;
  border-color: var(--ld-border) !important;
}

.ld-bank{
  border: 1px dashed rgba(17,24,39,.18);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

/* =========================
   Fancy Hero: logo + food orbit
   ========================= */
.ld-hero-fancy{
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 55px rgba(16,24,40,.10);
  position: relative;
  overflow: hidden;
}
.ld-hero-fancy::before{
  content:"";
  position:absolute;
  width: 520px;
  height: 520px;
  left: -220px;
  top: -260px;
  background: radial-gradient(circle, rgba(206,18,18,.18), transparent 60%);
  pointer-events:none;
}
.ld-hero-fancy::after{
  content:"";
  position:absolute;
  width: 520px;
  height: 520px;
  right: -220px;
  bottom: -280px;
  background: radial-gradient(circle, rgba(206,18,18,.14), transparent 60%);
  pointer-events:none;
}

.ld-hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items:center;
}
.ld-hero-left{
  padding: 10px 6px;
  position: relative;
  z-index: 2;
}
.ld-eyebrow{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(107,114,128,1);
}

.ld-hero-actions{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ld-hero-total{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(17,24,39,.12);
  max-width: 320px;
}
.ld-hero-total-val{
  font-weight: 900;
  font-size: 22px;
  color: var(--ld-accent);
}

.ld-hero-right{
  display:flex;
  justify-content:center;
  position: relative;
  z-index: 2;
}

.ld-logo-orbit{
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1 / 1;
}
.ld-orbit-ring{
  position:absolute;
  inset: 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.10);
  background:
    radial-gradient(circle at 30% 30%, rgba(206,18,18,.14), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(206,18,18,.10), transparent 50%),
    #fff;
  box-shadow: 0 18px 55px rgba(16,24,40,.10);
}

.ld-logo-badge{
  position:absolute;
  inset: 0;
  margin:auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 18px 40px rgba(16,24,40,.12);
  display:grid;
  place-items:center;
}
.ld-logo-img{
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.ld-float{
  position:absolute;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.12);
  background: #fff;
  box-shadow: 0 16px 40px rgba(16,24,40,.10);
  padding: 6px;
  display:grid;
  place-items:center;
  animation: ldFloat 3.8s ease-in-out infinite;
}
.ld-float img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}
.ld-float-1{ top: 18px; left: 42px; animation-delay: .1s; }
.ld-float-2{ top: 36px; right: 26px; animation-delay: .4s; }
.ld-float-3{ right: 2px; top: 132px; animation-delay: .2s; }
.ld-float-4{ bottom: 24px; right: 48px; animation-delay: .6s; }
.ld-float-5{ bottom: 34px; left: 18px; animation-delay: .3s; }
.ld-float-6{ left: 0px; top: 140px; animation-delay: .5s; }

@keyframes ldFloat{
  0%,100%{ transform: translateY(0px); }
  50%{ transform: translateY(-8px); }
}

@media (max-width: 992px){
  .ld-hero-grid{ grid-template-columns: 1fr; }
  .ld-hero-right{ margin-top: 8px; }
  .ld-logo-orbit{ width: min(320px, 100%); }
}
@media (max-width: 420px){
  .ld-float{ width: 74px; height: 74px; }
  .ld-logo-badge{ width: 132px; height: 132px; }
  .ld-logo-img{ width: 96px; height: 96px; }
}

.ld-logo-hero{
  width: min(320px, 78%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.20));
}

/* =====================================================
   MOBILE ONLY: layout + font scaling
   - Brand one line
   - Pills/buttons move to bottom row
   - Smaller fonts on phones
   ===================================================== */
@media (max-width: 520px){

  /* allow wrapping into 2 rows */
  .ld-topbar-inner{
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  /* brand stays one line on its own row */
  .ld-brand{
    width: 100%;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
  }

  /* actions move to second row */
  .ld-topbar-actions{
    width: 100%;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* brand smaller */
  .ld-brand-name,
  .ld-dot{
    font-size: 16px !important;
  }

  /* pill smaller */
  .ld-topbar-actions .ld-pill{
    font-size: 11px !important;
    padding: 5px 9px !important;
  }

  /* buttons smaller */
  .ld-topbar-actions .btn-ld,
  .ld-topbar-actions .btn-ld-soft{
    font-size: 12px !important;
    padding: 6px 10px !important;
  }

  /* cart badge smaller */
  .ld-topbar .badge{
    font-size: 10px !important;
    padding: 3px 7px !important;
  }

  /* section title smaller */
  .ld-section-title h2{ font-size: 26px !important; }
  .ld-section-title p{ font-size: 13px !important; }

  /* menu text smaller */
  .ld-menu-card .card-title{ font-size: 16px !important; }
  .ld-menu-card .card-text{ font-size: 12px !important; }
  .ld-price{
    font-size: 12px !important;
    padding: 5px 9px !important;
  }
}

/* Sold-out card: faded + no click */
.ld-menu-card.ld-soldout{
    opacity: 0.75;
    filter: grayscale(0.25);
    cursor: not-allowed !important;
  }
  
  /* prevent modal click */
  .ld-menu-card.ld-soldout *{
    pointer-events: none;
  }
  
  /* overlay */
  .ld-soldout-overlay{
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.72); /* white overlay */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* pill badge */
  .ld-soldout-pill{
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.12);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
  }
  
  /* =========================
   Modal form (options + qty) — responsive
   ========================= */
#js-add-form{
    width: 100%;
    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr auto;  /* option | qty | add */
    gap: 10px;
    align-items: end;
  }
  
  #js-add-form .input-group{
    width: 100%;
    margin: 0;
  }
  
  #optGroup{
    display: block;            /* when you toggle via JS, it will become "block" */
  }
  
  /* Make Add button same height & aligned */
  #js-add-form .btn-ld{
    height: 42px;
    padding: 0 16px !important;
    white-space: nowrap;
  }
  
  /* When NO options, hide optGroup -> grid still works */
  #optGroup[style*="display:none"]{
    display:none !important;
  }
  
  /* Mobile: stack nicely */
  @media (max-width: 520px){
    #js-add-form{
      grid-template-columns: 1fr 1fr;  /* option | qty */
    }
    /* Add button full width on new row */
    #js-add-form .btn-ld{
      grid-column: 1 / -1;
      width: 100%;
    }
  }
  