/* Extracted menu and registration styles */
.discount-banner { display:none; position:fixed; top:15px; left:50%; transform:translateX(-50%); z-index:9998; background:linear-gradient(135deg, #b87c4b, #d4a373); color:#fff; padding:8px 15px; border-radius:30px; text-align:center; font-size:12px; font-weight:700; box-shadow:0 5px 15px rgba(184,124,75,0.4); align-items:center; gap:10px; max-width:90%; white-space:nowrap; }
.discount-copy { cursor:pointer; }
.discount-code { font-family:monospace; letter-spacing:2px; background:rgba(255,255,255,0.2); padding:3px 10px; border-radius:20px; }
.discount-close { background:rgba(255,255,255,0.2); border:none; color:#fff; width:22px; height:22px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:12px; padding:0; font-family:inherit; transition:background 0.2s; }
.register-overlay { display:none; position:fixed; inset:0; width:100%; height:100dvh; z-index:99999; background:rgba(0,0,0,0.5); align-items:center; justify-content:center; }
.register-dialog { background:#fff; width:90%; max-width:380px; border-radius:18px; padding:15px; position:relative; box-shadow:0 10px 25px -8px rgba(0,0,0,0.15); }
.register-close { position:absolute; left:10px; top:10px; height:28px; width:28px; border-radius:8px; background:rgba(0,0,0,0.04); border:none; display:flex; justify-content:center; align-items:center; color:#7a5c3a; font-size:14px; cursor:pointer; }
.register-languages { position:absolute; right:10px; top:10px; display:flex; gap:4px; }
.register-title { text-align:center; font-size:16px; font-weight:700; color:#2c2c2c; margin:35px 0 5px 0; }
.register-discount-note { display:flex; align-items:center; justify-content:center; gap:5px; background:#e8f5e9; color:#2e7d32; font-weight:700; font-size:12px; padding:6px 10px; border-radius:30px; margin-bottom:10px; }
.register-field { margin-bottom:8px; }
.register-label { display:block; font-size:11px; font-weight:600; color:#7a5c3a; margin-bottom:3px; padding-right:4px; }
.register-input { width:100%; padding:8px 12px; font-size:13px; border:1px solid #e2d9d1; border-radius:12px; outline:none; background:#fefcf9; box-sizing:border-box; font-family:inherit; color:#2c2c2c; }
.register-phone { width:100%; padding:8px 12px; font-size:13px; border:1px solid #e2d9d1; border-radius:12px; outline:none; background:#fefcf9; box-sizing:border-box; font-family:inherit; color:#2c2c2c; direction:ltr; text-align:right; }
.register-submit { width:100%; background:#b87c4b; color:#fff; font-size:14px; font-weight:700; padding:10px; border:none; border-radius:30px; margin-top:5px; cursor:pointer; box-shadow:0 5px 12px -5px rgba(184,124,75,0.4); display:flex; align-items:center; justify-content:center; gap:6px; font-family:inherit; }
.register-footnote { text-align:center; font-size:10px; color:#aaa; margin-top:10px; padding-top:8px; border-top:1px solid #eee; }
.register-remember { display:flex;margin-top:10px; align-items:center; gap:6px; margin-bottom:8px; padding:0 4px; }
.register-checkbox { width:14px; height:14px; cursor:pointer; accent-color:#b87c4b; }
.register-remember-label { font-size:11px; color:#7a5c3a; cursor:pointer; font-weight:500; }
.menu-empty { text-align:center; width:100%; }
.register-sending { opacity:0.7; }
.register-success { text-align:center; padding:10px 0; direction:inherit; }
.register-success-icon { display:flex; justify-content:center; margin-bottom:10px; }
.register-success-title { font-size:18px; font-weight:700; color:#2c2c2c; margin:0 0 5px 0; }
.register-success-message { font-size:12px; color:#666; margin:0 0 15px 0; }
.register-success-note { background:#e8f5e9; color:#2e7d32; font-weight:700; font-size:12px; padding:8px 10px; border-radius:30px; margin-bottom:15px; }
.register-code-row { display:flex; gap:8px; margin-bottom:15px; align-items:stretch; }
.register-code-value { flex:1; font-size:22px; font-weight:800; color:#b87c4b; padding:15px; background:#fefcf9; border:2px dashed #b87c4b; border-radius:12px; letter-spacing:3px; font-family:monospace; display:flex; align-items:center; justify-content:center; }
.register-code-copy { background:#b87c4b; color:#fff; border:none; border-radius:12px; padding:0 15px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.register-start { width:100%; display:none; background:#b87c4b; color:#fff; font-size:14px; font-weight:700; padding:10px; border:none; border-radius:30px; cursor:pointer; font-family:inherit; }
.menu-font-ltr, .menu-font-ltr .by, .menu-number-ltr { font-family: sans-serif !important; }
.discount-close:hover { background: rgba(255,255,255,.4); }
#registerPopup.is-open, #discountBanner.is-open { display:flex; }
#emailSendResult.is-error { color:#d32f2f; }
#emailSendResult.is-pending { color:#7a5c3a; }
#emailSendResult.is-success { color:#2e7d32; }

#pr .menu-category-anchor-first { flex:0 0 100%; width:100%; height:1px; margin:0; padding:0; }

/* Category titles and sticky navigation */
#pr .menu-category-heading { box-sizing:border-box; flex:0 0 100%; width:100%; margin:12px 0 2px; padding:12px 16px; border-radius:12px; background:#fff; color:#111; border:1px solid #e5e5e5; font-size:18px; font-weight:700; }
#pr .menu-category-marker { scroll-margin-top:172px; }
.menu-category-sentinel { height:0; width:100%; overflow-anchor:none; }
#menuCategoryNav { position:relative; z-index:100; overflow-anchor:none; }
#menuCategoryNav.is-compact { background:var(--bgClr,#f5f5f5); padding:4px 0; }
#menuCategoryNav.is-compact #sc { padding-top:0 !important; padding-bottom:0 !important; align-items:center; }
#menuCategoryNav.is-compact .slideDiv { aspect-ratio:auto !important; height:72px !important; min-height:0 !important; max-height:72px !important; margin:0 !important; padding:4px 8px !important; border-radius:10px; box-shadow:none; }
#menuCategoryNav.is-compact .slideCategoryText { font-size:13px; line-height:16px; overflow-wrap:anywhere; }
#menuCategoryNav.is-compact .preBtn, #menuCategoryNav.is-compact .nextBtn { width:28px !important; height:28px !important; box-shadow:0 1px 5px rgba(0,0,0,.12); }

/* Natural horizontal overflow: reveal the next category at the viewport edge. */
#menuCategoryNav .sliderSwiper { overflow:hidden; }
#menuCategoryNav #sc { gap:0 !important; justify-content:flex-start !important; }
#menuCategoryNav #sc > .swiper-slide { width:max-content !important; flex-shrink:0; }
#menuCategoryNav #sc > .swiper-slide .slideDiv {
    width:max-content !important;
    min-width:0 !important;
    max-width:none !important;
    aspect-ratio:auto !important;
    height:110px;
    padding-inline:18px !important;
    box-sizing:border-box;
}
#menuCategoryNav #sc .slideCategoryText {
    white-space:nowrap; overflow:visible; text-overflow:clip;
    overflow-wrap:normal; max-width:none; text-align:start;
}
#menuCategoryNav.is-compact #sc > .swiper-slide .slideDiv {
    height:72px !important; min-height:72px !important; max-height:72px !important;
    padding-inline:12px !important;
}
#menuCategoryNav .preBtn, #menuCategoryNav .nextBtn { display:none !important; }
@media (max-width:600px) {
    #menuCategoryNav:not(.is-compact) #sc > .swiper-slide .slideDiv {
        height:84px; padding-inline:14px !important; border-radius:12px;
    }
    #menuCategoryNav #sc .slideCategoryText { font-size:14px; }
}

/* Stable fixed navigation: prevent scroll anchoring from reversing the state. */
html, body { overflow-anchor:none; }
#menuCategorySentinel.is-compact-placeholder { height:80px; flex-shrink:0; }
#menuCategoryNav.is-compact {
    position:fixed !important;
    top:72px !important;
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    width:92% !important;
    max-width:1100px;
    margin:0 !important;
    height:80px !important;
    box-sizing:border-box;
    z-index:600;
}
#menuCategoryNav, #menuCategoryNav .sliderSwiper, #menuCategoryNav #sc,
#menuCategoryNav .slideDiv, #menuCategoryNav .slideCategoryText {
    transition-property:none !important;
}
#menuCategoryNav #sc { transition-property:transform !important; }
#menuCategoryNav.is-compact .sliderSwiper, #menuCategoryNav.is-compact #sc { height:72px !important; }

/* Fixed brand header: reuse the original logo and language control. */
.menu-header-slot { display:flow-root; overflow-anchor:none; }
#menuBrandHeader.is-compact {
    position:fixed !important; top:0; left:50%; right:auto; transform:translateX(-50%);
    width:92%; max-width:1100px; height:72px; margin:0 !important; padding:4px 8px !important;
    box-sizing:border-box; background:var(--bgClr,#f5f5f5); z-index:601;
    grid-template-columns:40px minmax(0,1fr) 40px; overflow:visible;
}
#menuBrandHeader.is-compact > div:nth-child(2) img { width:auto !important; height:60px !important; max-width:150px; object-fit:contain; }
#menuBrandHeader.is-compact .showLangMenu { width:40px !important; height:40px !important; border-radius:12px; }
#menuBrandHeader.is-compact > div:last-child { justify-content:center; }
#menuBrandHeader.is-compact > div:last-child > div { top:48px !important; }

/* Desktop layout: keep the mobile overflow treatment on narrow screens only. */
@media (min-width: 769px) {
    #menuCategoryNav #sc > .swiper-slide {
        width: clamp(112px, 13vw, 150px) !important;
    }
    #menuCategoryNav #sc > .swiper-slide .slideDiv {
        width: 100% !important;
        height: 110px;
        padding-inline: 10px !important;
    }
    #menuCategoryNav #sc .slideCategoryText {
        font-size: 15px;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }
    #menuCategoryNav.is-compact #sc > .swiper-slide .slideDiv {
        height: 72px !important;
        min-height: 72px !important;
        max-height: 72px !important;
    }
    #menuCategoryNav #sc { padding-block: 8px !important; }
    #menuCategoryNav.is-compact #sc { padding-block: 0 !important; }
    #menuBrandHeader:not(.is-compact) > div:nth-child(2) img {
        width: 120px !important;
        height: auto;
        object-fit: contain;
    }
}

/* Brand link and recipe action: keep the action below the image. */
.menu-brand-link { display:flex; align-items:center; justify-content:center; width:100%; text-decoration:none; }
.menu-brand-logo { display:block; width:auto; height:96px; max-width:160px; object-fit:contain; }
#menuBrandHeader.is-compact .menu-brand-logo { height:60px !important; width:auto !important; max-width:150px; }
#pr .menuListItem > .menu-recipe-action { flex:0 0 100%; width:100%; margin:4px 0 0 !important; padding:4px 0; align-self:flex-end; position:relative; z-index:1; }
#pr .menu-recipe-action .seeDetails, #pr .menu-recipe-action .hideDetails { justify-content:flex-end; }
