/* Mobile fixes for Indian Hut. Loaded after style-starter.min.css on every page. */

/* Sticky call / WhatsApp / directions / menu bar (hidden on desktop) */
.mobile-action-bar { display: none; }

@media (max-width: 991px) {
  /* Fixed backgrounds don't render on phones (iOS ignores them, others zoom them). */
  .w3lhny-banner, .w3l-innerpage, .w3l-clients { background-attachment: scroll; }

  /* Header: solid so the white logo and menu icon are visible, and stays on screen. */
  #header {
    position: sticky !important;
    top: 0;
    z-index: 997;
    background: #0c0b09 !important;
    padding: 10px 0;
  }
  #header .logo img { max-height: 44px; width: auto; }
  .mobile-nav-toggle { font-size: 26px; padding: 8px; margin-right: -8px; }
  .navbar-mobile ul { bottom: auto; max-height: calc(100vh - 70px); }
  .navbar-mobile a { padding: 14px 24px; font-size: 17px; }

  /* Menu: remove stacked padding so dishes use the full width. */
  .our_menu .col-md-12,
  .coulmn-inner-box { padding-left: 0; padding-right: 0; }
  .box.with-box-shadow { padding: 24px 15px; }
  .tab-content > .tab-pane.container { padding-left: 0; padding-right: 0; max-width: 100%; }
  .dylan-menu > li .dylan-menu-text { max-width: 100%; }

  /* Menu tabs: one swipeable row instead of a wrapped block. */
  .diner-tabs .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 10px;
  }
  .diner-tabs .nav-tabs::-webkit-scrollbar { display: none; }
  .diner-tabs .nav-tabs .nav-item { flex: 0 0 auto; }
  .diner-tabs .nav-tabs .nav-link { white-space: nowrap; padding: 12px 14px; font-size: 13px; }

  /* Dish rows: name on the left, price and Add button on the right. */
  .order-item-row { flex-wrap: nowrap; gap: 8px; }
  .order-item-row .dylan-menu-title { flex: 1 1 auto; min-width: 0; }
  .order-item-row .dylan-menu-value { flex: 0 0 auto; padding-left: 0; }
  .order-add-wrap { flex: 0 0 auto; margin-left: 0; }
  .order-add-btn { padding: 8px 12px; font-size: 13px; }
  .menu-item-details .item-name { padding: 6px 0; }

  /* Breadcrumb "Home" link was red on a dark photo. */
  .breadcrumbs-custom-path a { color: #fff; text-decoration: underline; }
}

@media (max-width: 767px) {
  /* Room for the action bar, inside the dark footer so no white strip shows. */
  .w3l-copyright { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .mobile-action-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1040;
    background: #0c0b09;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-action-bar a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 64px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-action-bar a .fa { font-size: 20px; }
  .mobile-action-bar a.wa { background: #25d366; color: #fff; }
  .mobile-action-bar a:active { opacity: .8; }

  /* Keep the cart button and back-to-top button above the action bar. */
  .order-cart-button { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; }
  .order-cart-panel { bottom: calc(146px + env(safe-area-inset-bottom)); right: 16px; max-width: calc(100vw - 32px); max-height: 60vh; }
  /* The sticky header makes back-to-top redundant, and it covered footer links. */
  #movetop { display: none !important; }
}

@media (max-width: 575px) {
  /* Top bar duplicates the action bar and wraps onto two lines. */
  #topbar { display: none !important; }

  /* Hero: no fixed 700px height on small screens. */
  .w3lhny-banner { min-height: 0; }
  .bannerhny-info { padding: 60px 0 50px; }
  .bannerhny-info .btn { margin-top: 20px !important; }

  /* Section spacing is tuned for desktop. */
  .py-5 { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
  .our_menu { padding-bottom: 40px; }
  .menu_wrapper { padding: 30px 0 20px; }

  /* Footer: one column so the email and address don't break mid-word. */
  .footer-29 .footer-list-29 { flex: 0 0 100%; max-width: 100%; margin-top: 2rem !important; }
  .footer-29 .footer-list-29:first-child { margin-top: 0 !important; }
  .footer-29 .footer-list-29 li a { display: inline-block; padding: 6px 0; }
  .footer-29 p { overflow-wrap: anywhere; }
  .w3l-copyright .bottom-copies { text-align: center; }
  .w3l-copyright ul { flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 0; }
  .w3l-copyright ul li { margin: 0 !important; }
  .w3l-copyright ul li a { display: inline-block; padding: 8px 0; }

  /* FAQ: bigger tap targets. */
  #faq summary { padding: 12px 0; cursor: pointer; }
  #faq details { border-bottom: 1px solid #eee; margin-bottom: 0 !important; }

  .title-w3l { word-break: normal; overflow-wrap: break-word; }
}

/* Order cart: takeaway / delivery choice (all screen sizes) */
.order-cart-mode { display: flex; gap: 6px; margin-bottom: 8px; }
.order-cart-mode label { flex: 1 1 0; margin: 0; cursor: pointer; }
.order-cart-mode input { position: absolute; opacity: 0; pointer-events: none; }
.order-cart-mode span {
  display: block; text-align: center; padding: 9px 6px; border-radius: 8px;
  border: 2px solid #eee; font-weight: 600; font-size: 14px; color: #2d2d2d;
}
.order-cart-mode input:checked + span { border-color: #c81010; background: #c81010; color: #fff; }
.order-cart-mode input:focus-visible + span { outline: 2px solid #c81010; outline-offset: 2px; }
.order-cart-note { font-size: 13px; color: #555; margin: 0 0 8px; }

/* Keep phone numbers on one line */
a[href^="tel:"] { white-space: nowrap; }

/* Menu page: compact info box and FR/NL text under the menu (all sizes) */
.menu-info { list-style: none; padding: 14px 16px; margin: 0 auto 10px; max-width: 760px; text-align: left; font-size: 14px; background: #faf7f2; border-radius: 8px; }
.menu-info li { margin: 3px 0; }
.menu-lang p { font-size: 14px; color: #555; max-width: 900px; margin-left: auto; margin-right: auto; }

@media (max-width: 767px) {
  .menu-info { font-size: 13px; padding: 10px 12px; }
  .menu_wrapper { padding: 20px 0 10px; }
  .menu_wrapper .title-w3l { margin-bottom: 12px !important; }

  /* Category tabs stay under the header while scrolling the dishes. */
  .diner-tabs .nav-tabs {
    position: sticky;
    top: var(--header-h, 64px);
    z-index: 990;
    width: auto;
    margin: 0 -15px 6px;
    padding: 8px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 6px 8px -8px rgba(0, 0, 0, .35);
  }
  .diner-tabs .nav-tabs .nav-link { padding: 10px 14px; border-radius: 20px; border: 0; margin-right: 6px; }

  /* Compact dish rows. */
  .dylan-menu > li.menu-item-with-text { padding: 12px 0; margin: 0; }
  .dylan-menu > li { padding: 10px 0; }
  .dylan-menu > li.serif h4 { font-size: 15px; }
  .menu-item-details { margin: 4px 0 0; padding: 0; }
  .menu-item-details .item-name { padding: 4px 0; font-size: 14px; line-height: 1.35; }
  .dylan-menu > li.serif .dylan-menu-value { font-size: 15px; }

  /* Descriptions: two lines, tap to read the rest. */
  .menu-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px !important;
    line-height: 1.45;
    color: #666;
    margin-top: 4px !important;
    cursor: pointer;
  }
  .menu-desc.expanded { display: block; -webkit-line-clamp: unset; }

  /* One-variant groups: hide the heading that repeats the dish name. */
  .menu-single > h4 { display: none; }
  .menu-single .item-name { font-weight: 600; font-size: 15px; color: #2d2d2d; }

  /* Icon-only Add button leaves room for the dish name. */
  .order-add-label { display: none; }
  .order-add-btn { width: 42px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; border-radius: 18px; }
}

/* Cart button: round icon when empty, "View order · total" pill once
   something is added (phones get a full-width version below). */
.order-cart-button-label { display: none; }
.order-cart-button.has-items {
  width: auto;
  padding: 0 22px;
  border-radius: 28px;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}
.order-cart-button.has-items .order-cart-count { position: static; background: #fff; color: #c81010; }
.order-cart-button.has-items .order-cart-button-label { display: inline; white-space: nowrap; }
/* Back-to-top sat on top of the cart button. */
body:has(#order-cart-button) #movetop { bottom: 90px; }

@media (max-width: 767px) {
  /* The menu box overlapped the info box above it. */
  .our_menu .mt-100-reverse { margin-top: 0 !important; }

  /* Cart: a full-width "View order" bar above the action bar, only when
     something is in the cart, so it no longer covers the Add buttons. */
  .order-cart-button { display: none; }
  .order-cart-button.has-items {
    display: flex;
    left: 12px;
    right: 12px;
    height: 50px;
    border-radius: 25px;
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
  .order-cart-panel { bottom: calc(132px + env(safe-area-inset-bottom)); }
}

/* Cart panel: the dish list scrolls and the order options always stay
   visible; on short windows the whole panel scrolls instead of cutting off. */
.order-cart-panel { max-height: calc(100vh - 120px); overflow-y: auto; }
.order-cart-items { flex: 1 1 auto; min-height: 70px; }
.order-cart-header, .order-cart-footer { flex-shrink: 0; }

@media (max-width: 767px) {
  /* Phones: open as a sheet from the bottom, above the action bar. */
  .order-cart-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    max-height: calc(100vh - var(--header-h, 64px));
    max-height: calc(100dvh - var(--header-h, 64px));
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1060;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .3);
  }
  .order-cart-items { max-height: 40vh; }
  .order-cart-close { font-size: 28px; padding: 0 6px; }
}
.order-cart-footer .btn { padding: 12px 10px; font-size: 16px; line-height: 1.3; white-space: nowrap; }
.order-cart-note { line-height: 1.4; }

/* Add button confirms with a green check; cart bar bounces on phones */
.order-add-btn .bi-check2 { display: none; }
.order-add-btn.added { background: #1f8b3a; }
.order-add-btn.added .bi-cart-plus { display: none; }
.order-add-btn.added .bi-check2 { display: inline-block; }
@keyframes cart-bump { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.order-cart-button.bump { animation: cart-bump .35s ease-out; }
