/*
 * Site-wide responsive guards for the online store (loaded after style.css / custom.css).
 * Keeps every page inside the screen on phones, tablets, laptops and big monitors.
 */
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe { max-width: 100%; }
.table-responsive, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Mobile header: logo, branch, language, cart and profile must fit one row. */
@media (max-width: 991px) {
    .mobile-header { gap: 8px; }
    .mobile-header .logo { min-width: 0; flex: 1 1 auto; }
    .mobile-header .logo img { max-width: 100%; max-height: 34px; width: auto; }
    .mobile-header .cart-icon { display: flex; align-items: center; gap: 10px; flex: none; }
    .mobile-header .branch-dropdown select { max-width: 120px; text-overflow: ellipsis; padding-right: 26px; }
}
@media (max-width: 575px) {
    .mobile-header { padding-left: 12px !important; padding-right: 12px !important; }
    .mobile-header .lang-name-sm { display: none; }
    .mobile-header .language-change .btn { padding: 4px 8px !important; }
    .mobile-header .language-change .flag-icon { margin-right: 0 !important; }
    .mobile-header .branch-dropdown select { max-width: 96px; font-size: 12px; }
}
@media (max-width: 360px) {
    .mobile-header .branch-dropdown { display: none; }
}

/* Big monitors (17"+ / 1920px+): keep content from stretching edge to edge. */
@media (min-width: 1800px) {
    .header-area .container-fluid, .restaurant-top-bar .container-fluid { max-width: 1680px; margin-left: auto; margin-right: auto; }
}

/* Page banner (H1 title + breadcrumb): also on tablets and phones, compact, clear of the fixed header. */
@media (max-width: 991px) {
    .maan-site-breadcrumb { display: flex !important; min-height: 0; }
    .maan-site-breadcrumb .container { padding-top: 84px; padding-bottom: 18px; }
    .maan-site-breadcrumb .maan-breadcrumb-title { font-size: 28px; line-height: 1.2; margin-bottom: 6px; }
}
@media (max-width: 575px) {
    .maan-site-breadcrumb .maan-breadcrumb-title { font-size: 24px; }
}
.maan-site-breadcrumb .maan-breadcrumb-title { overflow-wrap: break-word; }

/* Shared login page (/login): customers and staff. */
.site-login { padding: 70px 0 90px; background: #faf7f4; }
.site-login-card { max-width: 480px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 36px 32px; box-shadow: 0 12px 40px rgba(20, 20, 43, .08); }
.site-login-card h2 { font-size: 28px; margin: 0 0 6px; }
.site-login-sub { color: #6b7280; font-size: 15px; margin: 0 0 24px; }
.site-login-field { display: block; margin-bottom: 16px; }
.site-login-field > span:first-child { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: #1f2937; }
.site-login-input { position: relative; display: block; }
.site-login-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 14px; }
.site-login-input input { width: 100%; height: 48px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0 44px 0 40px; font-size: 15px; background: #fff; outline: none; transition: border-color .15s; }
.site-login-input input:focus { border-color: var(--clr-primary, #fc8019); }
.site-login-input .toggle-password { position: absolute; right: 0; top: 0; height: 48px; width: 44px; display: flex; align-items: center; justify-content: center; color: #9ca3af; cursor: pointer; }
.site-login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; margin: 4px 0 22px; flex-wrap: wrap; }
.site-login-remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.site-login-row a, .site-login-foot a { color: var(--clr-primary, #fc8019); font-weight: 500; }
.site-login-btn { width: 100%; justify-content: center; }
.site-login-foot { text-align: center; margin: 22px 0 0; font-size: 15px; color: #4b5563; }
.site-login .error, .site-login .invalid-feedback { color: #dc2626; font-size: 13px; margin-top: 6px; display: block; }
@media (max-width: 575px) {
    .site-login { padding: 32px 0 56px; }
    .site-login-card { padding: 26px 18px; border-radius: 12px; }
    .site-login-card h2 { font-size: 24px; }
}
