/* Marketplace category menu (owner, Nov 2026): bar under the header on computers + the "All categories" panel. */
.mm { position: relative; background: #fff; border-bottom: 1px solid #eef0f3; font-family: inherit; z-index: 60; }
/* the links sit in the middle of the page; as more are added they grow out to both sides, then fill the row (owner, 14 Nov 2026).
   Three columns: the All categories button | the links | an empty one as wide as the first while there is room. */
.mm-bar { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(0, 1fr); align-items: center; column-gap: 18px; max-width: 1560px; margin: 0 auto; padding: 0 16px; height: 48px; }
.mm-bar > .mm-all { grid-column: 1; justify-self: start; }
.mm-bar > .mm-quick { grid-column: 2; justify-content: center; }
.mm-all { width: auto !important; flex: none !important; max-width: none !important; display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: #111827; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.mm-all:hover, .mm.is-open .mm-all { background: var(--secondary-color, #e11d74); }
.mm-caret { font-size: 11px; transition: transform .2s; }
.mm.is-open .mm-caret { transform: rotate(180deg); }
.mm-quick { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; overflow: hidden; flex: 1; min-width: 0; height: 48px; flex-wrap: wrap; }
.mm-quick li { height: 48px; display: flex; align-items: center; }
.mm .mm-quick > li { margin: 0; }   /* a theme's own `li` margin pushed the links below the middle of the bar */
.mm-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; color: #1f2937; font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.mm-quick a:hover { background: #f3f4f6; color: #111827; }
.mm-ico { font-size: 17px; line-height: 1; width: 22px; text-align: center; flex: none; }

.mm-panel { position: absolute; left: 50%; transform: translateX(-50%); top: 100%; width: min(1290px, calc(100vw - 24px)); height: min(520px, calc(100vh - 170px));
    display: grid; grid-template-columns: 270px 1fr; background: #fff; border: 1px solid #eef0f3; border-radius: 0 0 16px 16px; box-shadow: 0 24px 60px rgba(17, 24, 39, .16); overflow: hidden; }
.mm-panel[hidden] { display: none; }
.mm-mains { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; background: #f9fafb; border-right: 1px solid #eef0f3; }
.mm-mains a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: #1f2937; font-size: 14px; text-decoration: none; }
.mm-mains a .mm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-mains a i { font-size: 10px; color: #9ca3af; }
.mm-mains a.on, .mm-mains a:hover { background: #fff; color: var(--secondary-color, #e11d74); font-weight: 600; box-shadow: inset 3px 0 0 var(--secondary-color, #e11d74); }
.mm-subs { overflow-y: auto; padding: 18px 26px 26px; }
.mm-pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #f1f2f4; }
.mm-pane-title { font-size: 18px; font-weight: 700; color: #111827; text-decoration: none; }
.mm-see { font-size: 13px; font-weight: 600; color: var(--secondary-color, #e11d74); text-decoration: none; white-space: nowrap; }
.mm-cols { columns: 4 190px; column-gap: 26px; }
.mm-group { break-inside: avoid; margin: 0 0 16px; }
.mm-sub { display: block; font-weight: 700; font-size: 14px; color: #111827; text-decoration: none; margin-bottom: 6px; }
.mm-sub:hover, .mm-group li a:hover { color: var(--secondary-color, #e11d74); }
.mm-group ul { list-style: none; margin: 0; padding: 0; }
.mm-group li a { display: block; padding: 3px 0; font-size: 13px; color: #4b5563; text-decoration: none; line-height: 1.35; }
.mm-group .mm-more { font-weight: 600; color: #6b7280; }
.mm-empty { font-size: 14px; }

html[data-theme="dark"] .mm, html[data-theme="dark"] .mm-panel { background: #111827; border-color: #1f2937; }
html[data-theme="dark"] .mm-mains { background: #0b1220; border-color: #1f2937; }
html[data-theme="dark"] .mm-mains a, html[data-theme="dark"] .mm-quick a, html[data-theme="dark"] .mm-sub, html[data-theme="dark"] .mm-pane-title { color: #e5e7eb; }
html[data-theme="dark"] .mm-group li a { color: #9ca3af; }
html[data-theme="dark"] .mm-mains a.on, html[data-theme="dark"] .mm-mains a:hover, html[data-theme="dark"] .mm-quick a:hover { background: #1f2937; }

@media (max-width: 991.98px) { .mm { display: none; } }

/* ---- Menu bar styles (owner, Nov 2026): the shop picks one in Store design › Menu bar; App\Support\MenuBar. One class per style on .mm. ---- */
.mm-quick a .mm-txt { min-width: 0; }
.mm-quick .mm-extra a { color: var(--secondary-color, #e11d74); font-weight: 600; }
.mm--no-all .mm-all { display: none !important; }

/* 2 underline */
.mm--underline .mm-all { background: transparent; color: #111827; padding: 0 6px; border-radius: 0; font-weight: 700; }
.mm--underline .mm-all:hover, .mm--underline.is-open .mm-all { background: transparent; color: var(--secondary-color, #e11d74); }
.mm--underline .mm-quick { gap: 2px; }
.mm--underline .mm-quick a { position: relative; height: 48px; padding: 0 12px; border-radius: 0; font-size: 13.5px; font-weight: 600; }
.mm--underline .mm-quick a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--secondary-color, #e11d74); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.mm--underline .mm-quick a:hover { background: transparent; color: var(--secondary-color, #e11d74); }
.mm--underline .mm-quick a:hover::after { transform: scaleX(1); }

/* 3 brand colour */
.mm--brand { background: linear-gradient(90deg, var(--primary-color, #e8126f), var(--secondary-color, #7c3aed)); border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.mm--brand .mm-all { background: #fff; color: #111827; }
.mm--brand .mm-all:hover, .mm--brand.is-open .mm-all { background: rgba(255, 255, 255, .86); color: #111827; }
.mm--brand .mm-quick a, .mm--brand .mm-quick .mm-extra a { color: #fff; }
.mm--brand .mm-quick a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.mm--brand .mm-quick .mm-extra a { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }

/* 4 dark premium */
.mm--dark { background: #0b0f19; border-bottom-color: #0b0f19; }
.mm--dark .mm-all { background: var(--secondary-color, #e11d74); color: #fff; }
.mm--dark .mm-all:hover, .mm--dark.is-open .mm-all { background: #fff; color: #0b0f19; }
.mm--dark .mm-quick a { color: #e5e7eb; letter-spacing: .02em; }
.mm--dark .mm-quick a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.mm--dark .mm-quick .mm-extra a { color: #fbbf24; }

/* 5 chips */
.mm--pills { background: #f6f7fb; }
.mm--pills .mm-bar, .mm--pills .mm-quick, .mm--pills .mm-quick li { height: 56px; }
.mm--pills .mm-quick { gap: 8px; }
.mm--pills .mm-quick a { background: #fff; border: 1px solid #e5e7eb; padding: 7px 14px; font-size: 13.5px; box-shadow: 0 1px 2px rgba(17, 24, 39, .04); }
.mm--pills .mm-quick a:hover { background: #fff; border-color: var(--secondary-color, #e11d74); color: var(--secondary-color, #e11d74); }
.mm--pills .mm-all { background: var(--secondary-color, #e11d74); }
.mm--pills .mm-all:hover, .mm--pills.is-open .mm-all { background: #111827; }

/* 6 centered */
.mm--centered .mm-quick { justify-content: center; gap: 10px; }
.mm--centered .mm-quick a { padding: 6px 10px; border-radius: 0; text-transform: uppercase; letter-spacing: .09em; font-size: 12.5px; font-weight: 600; }
.mm--centered .mm-quick a:hover { background: transparent; color: var(--secondary-color, #e11d74); }
.mm--centered .mm-ico { display: none; }
.mm--centered .mm-all { background: transparent; color: #111827; padding: 0 12px; box-shadow: inset 0 0 0 1px #d1d5db; }
.mm--centered .mm-all span, .mm--centered .mm-all .mm-caret { display: none; }
.mm--centered .mm-all:hover, .mm--centered.is-open .mm-all { background: #111827; color: #fff; }

/* 7 icon tiles */
.mm--icons .mm-bar, .mm--icons .mm-quick, .mm--icons .mm-quick li { height: 78px; }
.mm--icons .mm-quick a { flex-direction: column; justify-content: center; gap: 5px; min-width: 80px; padding: 8px 10px; border-radius: 12px; font-size: 12.5px; }
.mm--icons .mm-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; font-size: 18px; transition: background .15s, transform .15s; }
.mm--icons .mm-ico--letter { font-size: 14px; font-weight: 700; color: var(--secondary-color, #e11d74); }
.mm--icons .mm-quick a:hover { background: transparent; color: var(--secondary-color, #e11d74); }
.mm--icons .mm-quick a:hover .mm-ico { background: color-mix(in srgb, var(--secondary-color, #e11d74) 16%, #fff); transform: translateY(-2px); }

/* 8 floating card */
.mm--boxed { background: transparent; border-bottom: 0; padding: 10px 16px 0; }
.mm--boxed .mm-bar { height: 52px; padding: 0 10px; background: #fff; border: 1px solid #eef0f3; border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(17, 24, 39, .2); }
.mm--boxed .mm-quick, .mm--boxed .mm-quick li { height: 52px; }
.mm--boxed .mm-all { background: linear-gradient(90deg, var(--primary-color, #e8126f), var(--secondary-color, #7c3aed)); }
.mm--boxed .mm-panel { top: calc(100% + 6px); border-radius: 16px; }

/* 9 tabs */
.mm--tabs .mm-quick { gap: 0; }
.mm--tabs .mm-quick li + li { border-left: 1px solid #eef0f3; }
.mm--tabs .mm-quick a { height: 48px; padding: 0 16px; border-radius: 0; border-top: 3px solid transparent; font-size: 13.5px; font-weight: 600; }
.mm--tabs .mm-quick a:hover { background: #fafafa; border-top-color: var(--secondary-color, #e11d74); color: var(--secondary-color, #e11d74); }
.mm--tabs .mm-all { border-radius: 8px; }

/* 10 minimal */
.mm--minimal .mm-bar { height: 40px; column-gap: 12px; }
.mm--minimal .mm-quick, .mm--minimal .mm-quick li { height: 40px; }
.mm--minimal .mm-quick { gap: 0; }
.mm--minimal .mm-quick a { padding: 4px 10px; border-radius: 6px; font-size: 12.5px; color: #4b5563; }
.mm--minimal .mm-quick li + li::before { content: '\00b7'; color: #c0c4cc; }
.mm--minimal .mm-ico { display: none; }
.mm--minimal .mm-all { height: 28px; padding: 0 12px; font-size: 12.5px; background: transparent; color: #111827; box-shadow: inset 0 0 0 1px #d1d5db; }
.mm--minimal .mm-all:hover, .mm--minimal.is-open .mm-all { background: #111827; color: #fff; }

html[data-theme="dark"] .mm--pills { background: #0b1220; }
html[data-theme="dark"] .mm--pills .mm-quick a, html[data-theme="dark"] .mm--boxed .mm-bar { background: #111827; border-color: #1f2937; }
html[data-theme="dark"] .mm--underline .mm-all, html[data-theme="dark"] .mm--centered .mm-all, html[data-theme="dark"] .mm--minimal .mm-all { color: #e5e7eb; }
html[data-theme="dark"] .mm--icons .mm-ico { background: #1f2937; }
html[data-theme="dark"] .mm--tabs .mm-quick li + li { border-color: #1f2937; }
html[data-theme="dark"] .mm--boxed { background: transparent; }

/* All categories page: rail + content (phones and computers) */
.cx .cx-h1 { max-width: 1280px; margin: 4px auto 12px; padding: 0 16px; font-size: 24px; font-weight: 700; }
.cx-box { display: grid; grid-template-columns: 250px 1fr; max-width: 1280px; margin: 0 auto 40px; background: #fff; border: 1px solid #eef0f3; border-radius: 16px; overflow: hidden; min-height: 560px; }
.cx-rail { background: #f9fafb; border-right: 1px solid #eef0f3; overflow-y: auto; max-height: 78vh; position: sticky; top: 0; }
.cx-rail a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: #374151; font-size: 14px; text-decoration: none; border-left: 3px solid transparent; }
.cx-rail a.on { background: #fff; color: var(--secondary-color, #e11d74); font-weight: 700; border-left-color: var(--secondary-color, #e11d74); }
.cx-ico { font-size: 20px; width: 26px; text-align: center; flex: none; }
.cx-body { padding: 18px 22px; overflow-y: auto; max-height: 78vh; }
.cx-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 18px; border-radius: 14px; text-decoration: none; color: #111827;
    background: linear-gradient(120deg, #fdf2f8, #eef2ff); }
.cx-banner-ico { font-size: 36px; }
.cx-banner b { display: block; font-size: 18px; }
.cx-banner small { color: var(--secondary-color, #e11d74); font-weight: 600; }
.cx-group { margin-bottom: 18px; }
.cx-sub { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; color: #111827; text-decoration: none; padding: 6px 0 8px; border-bottom: 1px dashed #eceef1; margin-bottom: 10px; }
.cx-sub i { font-size: 11px; color: #9ca3af; }
.cx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.cx-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; text-align: center; color: #374151; font-size: 12.5px; line-height: 1.3; text-decoration: none; background: #fafafa; }
.cx-tile:hover { background: #fdf2f8; color: var(--secondary-color, #e11d74); }
.cx-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid #f0e4ec; font-weight: 700; color: var(--secondary-color, #e11d74); }
html[data-theme="dark"] .cx-box { background: #111827; border-color: #1f2937; }
html[data-theme="dark"] .cx-rail { background: #0b1220; border-color: #1f2937; }
html[data-theme="dark"] .cx-rail a, html[data-theme="dark"] .cx-sub, html[data-theme="dark"] .cx-banner { color: #e5e7eb; }
html[data-theme="dark"] .cx-rail a.on, html[data-theme="dark"] .cx-tile { background: #1f2937; color: #e5e7eb; }
@media (max-width: 767.98px) {
    .cx .cx-h1 { font-size: 18px; margin: 0 0 8px; }
    .cx-box { grid-template-columns: 92px 1fr; border-radius: 0; border-left: 0; border-right: 0; min-height: calc(100vh - 140px); }
    .cx-rail, .cx-body { max-height: calc(100vh - 140px); }
    .cx-rail a { flex-direction: column; gap: 4px; padding: 10px 4px; font-size: 11px; text-align: center; line-height: 1.25; }
    .cx-body { padding: 12px; }
    .cx-banner { padding: 12px; } .cx-banner-ico { font-size: 28px; } .cx-banner b { font-size: 15px; }
    .cx-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .cx-tile { font-size: 11px; padding: 8px 4px; }
    .cx-dot { width: 36px; height: 36px; }
}

/* the search box sits in the middle of the coloured bar, with room under it before the category bar (owner, Nov 2026) */
@media (min-width: 992px) {
    header.desktop .header-navbar { padding-top: 6px; padding-bottom: 8px; }
}

/* priyoshop marketplace (owner, Nov 2026): the header is as wide as the page — logo in line with the left edge, account at the right edge */
@media (min-width: 992px) {
    header.desktop .axil-mainmenu > .container-fluid { max-width: 1560px; padding-left: 24px; padding-right: 24px; }
    .mm-bar { padding: 0 24px; }
}
