/* ============================================================
   Burger Co. — OrderArt Theme v30 (bun-2) — Inner Page Overrides
   Applied on top of newthemechangeui.css for product/cart pages
   ============================================================ */

/* --b-notice-h: height of the fixed notice bar (0 when absent); offsets anchored to the header must add it. */
/* --b-inner-clear: content clearance below the fixed header (nav padding + logo + action row). */
body.b-body.newtheme_inner_page { --b-inner-clear: 78px; }

/* Content clears the header */
body.b-body.newtheme_inner_page .topSpace {
    padding-top: calc(var(--b-inner-clear) + var(--b-notice-h, 0px)) !important;
}

/* Pages that use .pageTitle directly (cart, checkout, etc.) without a .topSpace wrapper.
   +24px on top of the raw header clearance so the title isn't flush against the nav. */
body.b-body.newtheme_inner_page .pageTitle {
    padding-top: calc(var(--b-inner-clear) + var(--b-notice-h, 0px) + 24px);
}

/* When .pageTitle is inside .topSpace, the .topSpace already handles the header offset.
   Keep breathing-room padding (not the full clearance again, which would double-space). */
body.b-body.newtheme_inner_page .topSpace .pageTitle {
    padding-top: 24px;
}

/* Products page: clear fixed header for content that uses .menuPageContent */
body.b-body.newtheme_inner_page .menuPageContent {
    padding-top: calc(var(--b-inner-clear) + var(--b-notice-h, 0px));
}

/* Flash alert — position:fixed top:85px by default; override to sit flush under 64px header */
body.b-body.newtheme_inner_page .floating-alert-top {
    top: calc(var(--b-inner-clear) + var(--b-notice-h, 0px));
    margin-top: 0;
}

/* Subcategory/tabs bar — sticks just below the header. Needs a solid background so
   product items scrolling underneath don't show through it. */
body.b-body.newtheme_inner_page .fixedCenterScroll .menuSection {
    top: calc(var(--b-inner-clear) + var(--b-notice-h, 0px));
    background: #fff;
}
body.b-body.newtheme_inner_page .menuPageContent .sidebarright .nwCartMain .nwCartTitle {
    top: calc(var(--b-inner-clear) + var(--b-notice-h, 0px));
}

/* Spice level (MILD) dropdown — compact size on mobile */
@media (max-width: 767px) {
    body.b-body .addChilli .form-select,
    body.b-body .addChilli select {
        font-size: 11px;
        padding: 3px 18px 3px 6px;
        height: auto;
        width: auto;
        min-width: 58px;
        background-size: 8px 6px;
        line-height: 1.4;
    }
}

/* Chilli select uses Bootstrap-5 `.form-select` markup but newthemechangeui.css only
   styles the old `.custom-select`, so it falls back to BS5's oversized default.
   Give it the compact theme size on all screens. */
body.b-body.newtheme_inner_page .addChilli .form-select,
body.b-body.newtheme_inner_page .addChilli select {
    padding: 3px 20px 3px 8px;
    height: auto;
    width: auto;
    min-width: 60px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 6px;
    background-size: 10px;
}

/* Products page: match v18's grid sizing (pageInfo 650px + BS5 gutters). */
body.b-body.newtheme_inner_page .menuPageContent .pageInfo {
    max-width: 650px;
    width: auto;
}
body.b-body.newtheme_inner_page .menuPageContent .row.g-2 {
    margin-left: calc(-.5 * var(--bs-gutter-x));
    margin-right: calc(-.5 * var(--bs-gutter-x));
}
body.b-body.newtheme_inner_page .menuPageContent .row.g-2 > [class*="col"] {
    padding-left: calc(.5 * var(--bs-gutter-x));
    padding-right: calc(.5 * var(--bs-gutter-x));
}
body.b-body.newtheme_inner_page .menuPageContent .menuCard .row.g-2.align-items-center {
    flex-wrap: nowrap;
}
body.b-body.newtheme_inner_page .menuPageContent .menuCard .row.g-2.align-items-center > .col {
    min-width: 0;
}

/* When a chilli/spice-level select is also present, price + heart + veg-icon + select don't
   fit on one line — shrinking price further just makes its text overflow into the heart icon.
   Let this row wrap instead: price on its own line, icons+select right-aligned below. */
body.b-body.newtheme_inner_page .menuPageContent .menuCard .row.g-2.align-items-center:has(.addChilli) {
    flex-wrap: wrap;
}
body.b-body.newtheme_inner_page .menuPageContent .menuCard .row.g-2.align-items-center:has(.addChilli) > .col {
    min-width: max-content;
    flex-shrink: 0;
}
body.b-body.newtheme_inner_page .menuPageContent .menuCard .row.g-2.align-items-center:has(.addChilli) > .col-auto {
    margin-left: auto;
}

/* Mobile (≤1199px): category bar (topLinksSwiper) is sticky by default so it floats too low
   at page-top before any scrolling. Fix to position:fixed so it's always flush under the header.
   Also compensate its lost flow height (~40px) by adding it to the content padding-top. */
@media (max-width: 1199px) {
    body.b-body.newtheme_inner_page .topLinksSwiper {
        position: fixed;
        top: calc(var(--b-inner-clear) + var(--b-notice-h, 0px));
        z-index: 8;
        left: 0;
        right: 0;
        margin-left: 0;
        padding-left: 20px;
        background: #fff;   /* opaque so items don't show through the fixed category bar */
    }
    body.b-body.newtheme_inner_page .menuPageContent .fixedCenterScroll .menuSection {
        top: calc(var(--b-inner-clear) + 40px + var(--b-notice-h, 0px));
    }
    body.b-body.newtheme_inner_page .menuPageContent .fixedCenterScroll {
        padding-top: 90px;
    }
}

/* ── Footer — same b-footer design/markup as the homepage (footer-main.php),
      copied verbatim from style.css since it never loads on inner pages ── */
.b-footer { background: var(--b-card); padding: 60px 2rem 32px; border-top: 1px solid rgba(255,255,255,.05); }
.b-footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; margin-bottom: 40px;
}
.b-footer-logo { font-family: var(--b-font); font-size: 28px; letter-spacing: 2px; margin-bottom: 12px; color: var(--b-white); }
.b-footer-logo span { color: var(--b-lime); }
.b-footer-logo img { max-height: 40px; margin-bottom: 12px; }
.b-footer-tagline { font-size: 13px; color: rgba(255,255,255,.38); line-height: 1.65; max-width: 240px; }
.b-footer-col h4 { font-family: var(--b-font); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; color: var(--b-white); }
.b-footer-links { list-style: none; margin: 0; padding: 0; }
.b-footer-links li { margin-bottom: 9px; color: rgba(255,255,255,.4); }
.b-footer-links a { font-size: 13px; color: rgba(255,255,255,.4); transition: color .2s; }
.b-footer-links a:hover { color: var(--b-white); }
.b-footer-hours { font-size: 13px; color: rgba(255,255,255,.4); line-height: 2; }
.b-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.b-footer-social-btn { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); color: var(--b-white); transition: background .2s, color .2s; }
.b-footer-social-btn:hover { background: var(--b-lime); color: var(--b-dark); }
.b-footer-bottom {
    max-width: 1100px; margin: 0 auto; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.05);
    display: flex; justify-content: space-between; align-items: center;
}
.b-footer-copy { font-size: 12px; color: rgba(255,255,255,.22); }
.b-powered { font-size: 12px; color: rgba(255,255,255,.22); }
.b-powered a { color: var(--b-lime); }
@media (max-width: 1024px) {
    .b-footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
    .b-footer-inner { grid-template-columns: 1fr; }
}

/* ── Horizontal nav (desktop) — exact copy of homepage's style.css ── */
.b-nav-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; align-items: center; }
.b-nav-links a { font-size: 14px; font-weight: 800; letter-spacing: 1px; color: var(--b-white); padding: 8px 0; position: relative; transition: color .2s; }
.b-nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--b-lime); transition: width 280ms ease; }
.b-nav-links a:hover { color: var(--b-lime); }
.b-nav-links a:hover::after { width: 100%; }
.b-nav-links a.active { color: var(--b-lime); }
@media (max-width: 1024px) {
    .b-nav-links { display: none; }
}

/* ============================================================
   MODALS — v27 dark theme (inner pages)
   Matches homepage style.css dark overrides
   ============================================================ */

/* Dark modal shell — exact copy of homepage's style.css (was still using
   --blaze-primary/#FFD449 Blaze-yellow fallbacks with no --b-lime equivalent
   defined on inner pages, so buttons/checkboxes rendered yellow instead of lime). */
.modalNewstyle .modal-content {
    background: var(--b-card); border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; color: var(--b-white);
}
.modalNewstyle .modal-header { padding: 1.5rem 2rem 1rem; border-bottom: none; }
.modalNewstyle .modal-body   { padding: .5rem 2rem 2rem; }
.modalNewstyle .modal-title,
.modalNewstyle .mdTitle {
    font-family: var(--b-font); font-size: 22px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--b-white);
}
.modalNewstyle .btn-close { filter: invert(1) brightness(1.6); opacity: .7; }
.modalNewstyle .btn-close:hover { opacity: 1; }
.modalNewstyle label,
.modalNewstyle .labelStyle,
.modalNewstyle .form-label { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 6px; display: block; }

/* Modal form wrapper */
.modalForm { max-width: 480px; margin: 0 auto; }

/* Social / outline buttons */
.modalNewstyle .btnDarkOutline {
    background: transparent; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85);
    font-family: var(--b-body); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 10px 16px; border-radius: 4px; transition: background .2s, border-color .2s;
    text-align: center; cursor: pointer; display: block; text-decoration: none;
}
.modalNewstyle .btnDarkOutline:hover { background: var(--b-lime-soft); border-color: var(--b-lime); color: var(--b-lime); }

/* Primary button — same recipe as .b-btn-pri */
.modalNewstyle .btnPrimary {
    font-family: var(--b-body); font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
    background: var(--b-lime); color: var(--b-dark); border: 2px solid var(--b-lime); border-radius: 4px;
    padding: 12px 20px; transition: background .2s;
}
.modalNewstyle .btnPrimary:hover { background: #eeff62; border-color: #eeff62; color: var(--b-dark); }

/* OR divider */
.modalNewstyle .sideLinesDivider { overflow: hidden; text-align: center; position: relative; }
.modalNewstyle .sideLinesDivider .dividerText {
    display: inline-block; position: relative; padding: 0 16px;
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.35);
}
.modalNewstyle .sideLinesDivider .dividerText::before,
.modalNewstyle .sideLinesDivider .dividerText::after {
    content: ""; position: absolute; top: 50%; width: 100vw; margin-top: -1px; border-top: 1px solid rgba(255,255,255,.1);
}
.modalNewstyle .sideLinesDivider .dividerText::before { right: 100%; }
.modalNewstyle .sideLinesDivider .dividerText::after  { left: 100%; }

/* Input field with right-side icon */
.rightIconFld { position: relative; }
.rightIconFld .form-control { padding-right: 44px; }
.inputFieldIcon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
}
.fieldIcon { width: 18px; height: 18px; display: block; opacity: 0.45; fill: currentColor; }

/* Form controls scoped to modal */
.modalNewstyle .form-control,
.modalNewstyle .form-select {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.9);
    border-radius: 4px; padding: 10px 14px; font-family: var(--b-body); font-size: 14px;
}
.modalNewstyle .form-control::placeholder { color: rgba(255,255,255,.35); }
.modalNewstyle .form-control:focus,
.modalNewstyle .form-select:focus {
    background: rgba(255,255,255,.09); border-color: var(--b-lime);
    box-shadow: 0 0 0 2px var(--b-lime-soft); color: var(--b-white); outline: none;
}

/* Links */
.modalNewstyle .simpleLink { color: var(--b-lime); text-decoration: none; font-size: 13px; transition: color .2s; }
.modalNewstyle .simpleLink:hover { color: #eeff62; text-decoration: underline; }
.modalNewstyle .linkStyle2 { color: var(--b-lime); font-size: 12px; font-weight: 600; text-decoration: none; transition: color .2s; }
.modalNewstyle .linkStyle2:hover { color: #eeff62; }
.modalNewstyle .textPrimary { color: var(--b-lime) !important; }

/* Error / OTP */
.modalNewstyle .errorMsg { color: #ff6b6b; font-size: 12px; min-height: 1.2em; }
.modalNewstyle #timer { font-size: 13px; color: rgba(255,255,255,.55); }

/* Checkboxes */
.modalNewstyle .form-check-label { color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.5; }
.modalNewstyle .form-check-input { background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
.modalNewstyle .form-check-input:checked { background-color: var(--b-lime); border-color: var(--b-lime); }

/* Opening-hours content — missing entirely before (footer's "View Hours" link
   opened an unstyled modal body on inner pages) */
.modalNewstyle .openingHourModalContent .titleLbl { font-family: var(--b-font); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: var(--b-lime); }
.modalNewstyle .openingHourModalContent .simpleList { list-style: none; padding: 0; margin: 0 0 1rem; color: rgba(255,255,255,.75); }
.modalNewstyle .openingHourModalContent .hrs { margin-top: 1.25rem; }
.modalNewstyle .openingHourModalContent p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; }
.modalNewstyle .infoIcon { color: var(--b-lime); }

/* ── Login / Register text links (guest state) — exact values from style.css ── */
.b-auth-link { font-size: 13px; font-weight: 700; color: var(--b-white); white-space: nowrap; text-decoration: none; transition: color .2s; }
.b-auth-link:hover { color: var(--b-lime); }
.b-auth-sep { color: rgba(255,255,255,.3); }

/* ── Inner-page header — copy of homepage's .b-nav family (style.css doesn't load here).
      .b-nav itself is solid + anchored below the notice bar (inner pages have a white body). ── */
.b-nav {
    position: fixed;
    top: var(--b-notice-h, 0px);
    left: 0;
    right: 0;
    z-index: 9;
    background: var(--b-dark);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: box-shadow .3s;
}
.b-nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.7); }
.b-nav-inner { max-width: 1390px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.b-logo { font-family: var(--b-font); font-size: 22px; letter-spacing: .5px; text-transform: uppercase; color: var(--b-white); display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.b-logo:hover { color: var(--b-lime); }
.b-logo img { height: 50px; width: auto; }
.b-brand-icon { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(180deg, var(--b-lime) 0%, #8aa900 100%); box-shadow: 0 0 20px rgba(215,255,0,.35); position: relative; }
.b-brand-icon::before, .b-brand-icon::after { content: ''; position: absolute; left: 5px; right: 5px; height: 2px; background: var(--b-dark); border-radius: 8px; }
.b-brand-icon::before { top: 9px; }
.b-brand-icon::after { bottom: 9px; }

/* NAV: cart / auth / mobile sidebar (functional additions) — exact values from style.css */
.b-nav-actions { display: flex; align-items: center; gap: 16px; }
.b-cart-link { position: relative; display: inline-flex; color: var(--b-white); transition: color .2s; }
.b-cart-link:hover { color: var(--b-lime); }
.b-cart-count { position: absolute; top: -8px; right: -10px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--b-lime); color: var(--b-dark); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.b-user-menu { position: relative; }
.b-user-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--b-white); font-family: var(--b-body); font-size: 13px; font-weight: 700; cursor: pointer; }
.b-user-drop { position: absolute; top: calc(100% + 12px); right: 0; min-width: 200px; background: var(--b-card); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 8px; display: none; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.4); z-index: 50; }
.b-user-drop.open { display: flex; }
.b-user-drop a { padding: 8px 10px; font-size: 13px; color: rgba(255,255,255,.75); border-radius: 6px; text-decoration: none; }
.b-user-drop a:hover { background: rgba(255,255,255,.06); color: var(--b-white); }
.b-toggler { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; cursor: pointer; }
.b-toggler span { width: 22px; height: 2px; background: var(--b-white); border-radius: 2px; }
.b-nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 210; }
.b-nav-backdrop.open { opacity: 1; pointer-events: auto; }
.b-nav-sidebar { position: fixed; top: 0; right: -300px; width: 280px; height: 100%; background: var(--b-card); padding: 28px 22px; transition: right .3s ease; z-index: 220; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.b-nav-sidebar.open { right: 0; }
.b-nav-sidebar-close { align-self: flex-end; background: none; border: none; color: var(--b-white); font-size: 26px; cursor: pointer; }
.b-nav-sidebar-logo img { height: 26px; margin-bottom: 10px; }
.b-nav-sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.b-nav-sidebar-nav a { padding: 10px 4px; font-size: 14px; font-weight: 700; color: var(--b-white); border-bottom: 1px solid rgba(255,255,255,.06); text-decoration: none; }
.b-nav-sidebar-nav a.active { color: var(--b-lime); }

/* Order Now — exact same recipe as .b-btn-pri/.b-nav-btn on the homepage */
.b-nav-btn { font-family: var(--b-body); font-size: 13px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; padding: 13px 24px; background: var(--b-lime); color: var(--b-dark); border: 2px solid var(--b-lime); border-radius: 4px; box-shadow: 0 12px 26px rgba(215,255,0,.22); transition: background .2s; text-decoration: none; display: inline-flex; align-items: center; }
.b-nav-btn:hover { background: #eeff62; border-color: #eeff62; color: var(--b-dark); }
.customFixBar.editviewPage {
    margin-top: 50px;
}
@media (max-width: 767px) {
    .customFixBar.editviewPage .backToMenu {
        top: 60px !important;
    }
}
.sideLinesDivider {
    padding: 0px;
}
/* ── Gallery page: clean 3-column CSS grid ── */
.blaze-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-bottom: 2.5rem;
}
.blaze-gallery-cell {
    border-radius: 10px;
    overflow: hidden;
    background: var(--blaze-bg2, #111);
    border: 1px solid var(--blaze-border, #1e1e1e);
    aspect-ratio: 4 / 3;
}
.blaze-gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.blaze-gallery-cell:hover img { transform: scale(1.05); }
@media (max-width: 900px) {
    .blaze-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
    .blaze-gallery-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE (must stay LAST — .b-toggler's mobile override needs to win over its base display:none) ── */
@media (max-width: 640px) {
    .b-toggler { display: flex; }
}
@media (max-width: 767px) {
    .editviewPage .totalPriceColumn.viewPriceBtn {
        padding-bottom: 75px !important;
    }
}
.gvorders {
    margin-top: 85px !important;
}