:root{
    --oat:#F3EFE6;
    --paper:#FBF9F4;
    --ink:#2B2A26;
    --spruce:#3E5245;
    --lingon:#9C3F30;
    --line:#D9D2C1;
    --muted:#7A7466;
    --brown:#3D2A1D;
    --gold:#C29B38;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    padding:0;
    background:var(--oat);
    color:var(--ink);
    font-family:'Work Sans', sans-serif;
    font-weight:400;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
  }
  .wrap{
    max-width:640px;
    margin:0 auto;
    padding:0 24px 60px;
  }

  /* Header with Background Photo */
  header {
    position: relative;
    margin: 0 -24px 20px -24px;
    padding: 30px 24px 25px;
    text-align: center;
    /* Header photo is set from the admin panel (Restaurant Settings) and applied via JS below */
    background: linear-gradient(180deg, rgba(243, 239, 230, 0.3) 0%, rgba(243, 239, 230, 0.6) 100%),
                var(--header-photo, url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1000&q=80')) center/cover no-repeat;
    border-bottom: 1px solid var(--line);
  }

  /* Language switcher */
  .lang-switch{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-bottom:20px;
    position: relative;
    z-index: 2;
  }
  .lang-btn{
    display:flex;
    align-items:center;
    gap:6px;
    padding:6px 12px;
    border:1px solid rgba(61, 42, 29, 0.3);
    border-radius:999px;
    background: rgba(251, 249, 244, 0.85);
    backdrop-filter: blur(4px);
    font-family:'Work Sans', sans-serif;
    font-size:13px;
    color:var(--brown);
    font-weight: 500;
    cursor:pointer;
    transition:all .15s ease;
  }
  .lang-btn .flag{font-size:15px;}
  .lang-btn.active{
    background:var(--spruce);
    border-color:var(--spruce);
    color:var(--paper);
  }
  .lang-btn:not(.active):hover{
    border-color:var(--spruce);
    color:var(--spruce);
  }

  /* Logo SVG Container */
  .logo-svg {
    width: 100%;
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0px 2px 4px rgba(255,255,255,0.8));
  }

  /* Sticky Navigation Bar */
  .nav-bar {
    position: sticky;
    top: 0;
    background: rgba(243, 239, 230, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
    padding: 10px 0;
    margin: 0 -24px 24px -24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  }
  .nav-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 24px;
    scrollbar-width: none;
  }
  .nav-scroll::-webkit-scrollbar { display: none; }
  
  .nav-btn {
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--brown);
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .nav-btn:hover, .nav-btn:active {
    background: var(--spruce);
    color: #fff;
    border-color: var(--spruce);
  }

  .rule{
    border:none;
    border-top:1px solid var(--line);
    margin:28px 0 22px;
  }
  section{
    margin-bottom:6px;
    scroll-margin-top: 60px;
  }
  .section-title{
    font-family:'Fraunces', serif;
    font-weight:500;
    font-size:20px;
    color:var(--lingon);
    margin:0 0 2px;
  }
  .section-sub{
    font-size:12px;
    color:var(--muted);
    margin:0 0 14px;
    font-style:italic;
  }
  .item{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    gap:16px;
    padding:11px 0;
    border-bottom:1px solid var(--line);
    cursor:pointer;
    transition:background-color .12s ease;
    margin:0 -10px;
    padding-left:10px;
    padding-right:10px;
    border-radius:8px;
  }
  .item:last-child{border-bottom:1px solid var(--line);}
  .item:active{background-color:rgba(62,82,69,0.08);}
  @media (hover:hover){
    .item:hover{background-color:rgba(62,82,69,0.05);}
  }
  .item-name{
    display:flex;
    align-items:center;
    gap:6px;
    font-family:'Fraunces', serif;
    font-weight:500;
    font-size:16px;
    color:var(--ink);
  }
  .item-name::after{
    content:"";
    width:13px;
    height:13px;
    flex-shrink:0;
    opacity:0.4;
    background-color:var(--spruce);
    -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='18' height='14' rx='2'/><circle cx='12' cy='13' r='3.2'/><path d='M8 6l1.5-2.5h5L16 6'/></svg>");
    mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='18' height='14' rx='2'/><circle cx='12' cy='13' r='3.2'/><path d='M8 6l1.5-2.5h5L16 6'/></svg>");
    -webkit-mask-repeat:no-repeat;
    mask-repeat:no-repeat;
    -webkit-mask-position:center;
    mask-position:center;
    -webkit-mask-size:contain;
    mask-size:contain;
  }

  /* Dish photo modal */
  .modal-backdrop{
    position:fixed;
    inset:0;
    background:rgba(43,42,38,0.55);
    display:none;
    align-items:flex-end;
    justify-content:center;
    z-index:1000;
    opacity:0;
    transition:opacity .18s ease;
  }
  .modal-backdrop.open{
    display:flex;
    opacity:1;
  }
  @media (min-width:560px){
    .modal-backdrop{align-items:center;}
  }
  .modal-card{
    background:var(--paper);
    width:100%;
    max-width:480px;
    max-height:88vh;
    overflow-y:auto;
    border-radius:18px 18px 0 0;
    transform:translateY(24px);
    transition:transform .2s ease;
    position:relative;
  }
  .modal-backdrop.open .modal-card{transform:translateY(0);}
  @media (min-width:560px){
    .modal-card{border-radius:16px; margin:20px;}
  }
  .modal-photo{
    width:100%;
    aspect-ratio:4/3;
    background:var(--oat);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:18px 18px 0 0;
  }
  @media (min-width:560px){
    .modal-photo{border-radius:16px 16px 0 0;}
  }
  .modal-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .modal-photo.photo-fallback::after{
    content:"";
    width:52px;
    height:52px;
    opacity:0.25;
    background-color:var(--spruce);
    -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='18' height='14' rx='2'/><circle cx='12' cy='13' r='3.5'/><path d='M8 6l1.5-2.5h5L16 6'/></svg>");
    mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='18' height='14' rx='2'/><circle cx='12' cy='13' r='3.5'/><path d='M8 6l1.5-2.5h5L16 6'/></svg>");
    -webkit-mask-repeat:no-repeat;
    mask-repeat:no-repeat;
    -webkit-mask-position:center;
    mask-position:center;
    -webkit-mask-size:contain;
    mask-size:contain;
  }
  .modal-close{
    position:absolute;
    top:14px;
    right:14px;
    width:32px;
    height:32px;
    border-radius:50%;
    border:none;
    background:rgba(43,42,38,0.55);
    color:#fff;
    font-size:18px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2;
  }
  .modal-body{
    padding:20px 22px 26px;
  }
  .modal-name{
    font-family:'Fraunces', serif;
    font-weight:500;
    font-size:22px;
    color:var(--spruce);
    margin:0 0 8px;
  }
  .modal-desc{
    font-size:14px;
    color:var(--muted);
    line-height:1.55;
    margin:0 0 14px;
  }
  .modal-price{
    font-size:15px;
    color:var(--lingon);
    font-weight:500;
  }
  .item-desc{
    font-size:12.5px;
    color:var(--muted);
    margin-top:2px;
    font-weight:400;
    max-width:420px;
  }
  .item-price{
    font-size:13.5px;
    color:var(--spruce);
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
    padding-top:1px;
  }
  .item-main{flex:1;}
  footer{
    text-align:center;
    margin-top:36px;
    padding-top:20px;
    border-top:1px solid var(--line);
    font-size:11.5px;
    color:var(--muted);
    line-height:1.7;
  }
  .social{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:18px;
  }
  .social a{
    color:var(--spruce);
    opacity:0.75;
    transition:opacity .15s ease;
    line-height:0;
  }
  .social a:hover{opacity:1;}
  .social svg{width:19px;height:19px;}

  /* ---- WhatsApp ordering / quantity controls ---- */
  .modal-name-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:8px;
  }
  .modal-name-row .modal-name{
    margin:0;
    flex:1;
    min-width:0;
  }
  .modal-qty-wrap{
    display:flex;
    align-items:center;
    gap:5px;
    flex-shrink:0;
  }
  .modal-qty-label{
    font-size:10px;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.4px;
  }
  .qty-step-btn{
    width:30px;
    height:30px;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--paper);
    color:var(--spruce);
    font-size:18px;
    line-height:1;
    font-weight:500;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    touch-action:manipulation;
  }
  .qty-step-btn:active{
    background:rgba(62,82,69,.10);
    transform:scale(.96);
  }
  .qty-input{
    width:42px;
    height:30px;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--paper);
    color:var(--spruce);
    text-align:center;
    font-family:'Work Sans',sans-serif;
    font-size:14px;
    font-weight:500;
    outline:none;
    appearance:textfield;
    -moz-appearance:textfield;
  }
  .qty-input::-webkit-outer-spin-button,
  .qty-input::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
  }
  .qty-input:focus{
    border-color:var(--spruce);
    box-shadow:0 0 0 2px rgba(62,82,69,.10);
  }

  .modal-add-btn{
    display:block;
    margin:18px 0 0 auto;
    min-width:86px;
    height:38px;
    padding:0 16px;
    border:0;
    border-radius:10px;
    background:var(--spruce);
    color:#fff;
    font-family:'Work Sans',sans-serif;
    font-size:13px;
    font-weight:500;
    cursor:pointer;
    transition:transform .12s ease, opacity .12s ease;
  }
  .modal-add-btn:active{transform:scale(.97);}
  .modal-add-btn:disabled{opacity:.55;cursor:not-allowed;}

  /* ---- Cart / checkout ---- */
  .cart-bar{
    position:fixed;
    left:50%;
    bottom:16px;
    transform:translateX(-50%) translateY(120px);
    width:min(592px, calc(100% - 24px));
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:0 14px 36px rgba(43,42,38,.18);
    padding:11px 14px;
    z-index:900;
    opacity:0;
    pointer-events:none;
    transition:transform .22s ease, opacity .22s ease;
    cursor:pointer;
  }
  .cart-bar.open{
    transform:translateX(-50%) translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .cart-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .cart-summary-left{display:flex;align-items:center;gap:10px;min-width:0;}
  .cart-bag{
    width:34px;height:34px;border-radius:10px;background:var(--spruce);color:#fff;
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
  }
  .cart-bag svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;}
  .cart-title{
    font-family:'Fraunces',serif;
    color:var(--spruce);
    font-size:16px;
    font-weight:500;
  }
  .cart-subtitle{font-size:10.5px;color:var(--muted);margin-top:1px;}
  .cart-total{color:var(--lingon);font-size:15px;font-weight:600;white-space:nowrap;}
  .cart-open-hint{font-size:10px;color:var(--muted);white-space:nowrap;}

  .cart-sheet-backdrop{
    position:fixed;
    inset:0;
    background:rgba(43,42,38,.52);
    display:none;
    align-items:flex-end;
    justify-content:center;
    z-index:1600;
    opacity:0;
    transition:opacity .18s ease;
  }
  .cart-sheet-backdrop.open{display:flex;opacity:1;}
  .cart-sheet{
    width:100%;
    max-width:620px;
    max-height:90vh;
    overflow-y:auto;
    background:var(--paper);
    color:var(--ink);
    border-radius:22px 22px 0 0;
    box-shadow:0 -16px 45px rgba(43,42,38,.20);
    transform:translateY(28px);
    transition:transform .22s ease;
  }
  .cart-sheet-backdrop.open .cart-sheet{transform:translateY(0);}
  @media(min-width:700px){
    .cart-sheet-backdrop{align-items:center;padding:20px;}
    .cart-sheet{border-radius:20px;max-height:86vh;}
  }
  .cart-sheet-handle{width:44px;height:4px;border-radius:10px;background:var(--line);margin:12px auto 4px;}
  .cart-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:12px 22px 16px;border-bottom:1px solid var(--line);}
  .cart-sheet-title{font-family:'Fraunces',serif;font-size:24px;color:var(--spruce);font-weight:600;}
  .cart-sheet-count{font-size:12px;color:var(--muted);}
  .cart-close{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;}
  .cart-items{padding:4px 22px 0;}
  .cart-item-row{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);}
  .cart-item-thumb{width:52px;height:52px;border-radius:11px;object-fit:cover;background:var(--oat);border:1px solid var(--line);}
  .cart-item-name{font-family:'Fraunces',serif;font-size:15px;font-weight:600;color:var(--ink);}
  .cart-item-price{font-size:12px;color:var(--lingon);margin-top:2px;}
  .cart-item-controls{display:flex;align-items:center;gap:8px;}
  .cart-step{width:31px;height:31px;border:0;border-radius:50%;background:var(--spruce);color:#fff;font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;}
  .cart-step:active{transform:scale(.94);}
  .cart-item-qty{min-width:18px;text-align:center;font-size:14px;font-weight:600;color:var(--ink);}
  .cart-remove{border:0;background:none;color:var(--lingon);font-size:10px;padding:3px 0;margin-top:5px;cursor:pointer;text-decoration:underline;}
  .cart-special{padding:16px 22px;border-bottom:1px solid var(--line);}
  .cart-special label{display:block;font-size:11px;color:var(--muted);margin-bottom:6px;}
  .cart-special textarea{width:100%;min-height:74px;resize:vertical;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:11px 12px;font-family:'Work Sans',sans-serif;font-size:13px;outline:none;}
  .cart-special textarea:focus,.checkout-table:focus{border-color:var(--spruce);box-shadow:0 0 0 2px rgba(62,82,69,.10);}
  .cart-totals{padding:14px 22px 4px;}
  .cart-total-line{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px;margin:7px 0;}
  .cart-total-line strong{color:var(--ink);font-weight:500;}
  .cart-grand{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:10px;margin-top:8px;border-top:1px solid var(--line);font-family:'Fraunces',serif;color:var(--spruce);font-size:22px;font-weight:600;}
  .cart-grand strong{color:var(--lingon);font-size:24px;}
  .cart-checkout{padding:14px 22px 22px;}
  .checkout-table{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);padding:0 12px;font-family:'Work Sans',sans-serif;font-size:14px;outline:none;margin-bottom:9px;}
  .send-order-btn{width:100%;height:48px;border:0;border-radius:14px;padding:0 16px;background:var(--spruce);color:#fff;font-family:'Work Sans',sans-serif;font-size:14px;font-weight:600;cursor:pointer;transition:transform .12s ease,opacity .12s ease;}
  .send-order-btn:active{transform:scale(.985);}
  .send-order-btn:disabled{opacity:.45;cursor:not-allowed;}
  .cart-note{font-size:10.5px;color:var(--muted);margin-top:8px;text-align:center;min-height:16px;}
  .cart-empty{padding:36px 22px;text-align:center;color:var(--muted);font-size:13px;}
  .cart-empty-icon{font-size:28px;color:var(--spruce);margin-bottom:6px;}
  @media(max-width:520px){
    .cart-sheet-title{font-size:22px;}
    .cart-sheet-head,.cart-items,.cart-special,.cart-totals,.cart-checkout{padding-left:18px;padding-right:18px;}
    .cart-item-row{grid-template-columns:48px 1fr auto;gap:10px;}
    .cart-item-thumb{width:48px;height:48px;}
    .cart-open-hint{display:none;}
  }

  /* WhatsApp floating button */
  .whatsapp-float{
    position:fixed;
    right:16px;
    bottom:16px;
    width:52px;
    height:52px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 20px rgba(37,211,102,.35);
    z-index:850;
    text-decoration:none;
    transition:transform .15s ease;
  }
  .whatsapp-float:active{transform:scale(.94);}
  .whatsapp-float svg{width:27px;height:27px;fill:#fff;}
  .whatsapp-float.hidden{display:none;}

  .admin-link{
    display:inline-block;
    margin-top:14px;
    font-size:10px;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--muted);
    opacity:.55;
    text-decoration:none;
    border:1px solid var(--line);
    border-radius:20px;
    padding:4px 12px;
  }
  .admin-link:hover{ opacity:1; }

  .menu-loading{
    text-align:center;
    color:var(--muted);
    font-size:13px;
    padding:40px 0;
  }
  .menu-error{
    text-align:center;
    color:var(--lingon);
    font-size:13px;
    padding:24px;
    border:1px solid var(--line);
    border-radius:10px;
    background:var(--paper);
  }

