/* =====================================================================
   Maujix mobile layout (phones and small tablets only, up to 991.98px)
   App-style storefront: compact header, pill search, banner with dots,
   icon shortcut grid, member sign-in strip, product grids, bottom tab bar.
   Desktop is untouched: everything below the media query is phone-only.
   ===================================================================== */

/* Injected mobile chrome is invisible on desktop */
.mx-mhead, .mx-msearch-wrap, .mx-tabbar, .mx-sheet, .mx-short, .mx-promo { display: none; }

@media (max-width: 991.98px) {
  :root {
    --mx-orange: #F28B00;
    --mx-orange-ink: #b35f00;     /* orange dark enough for text on white */
    --mx-ink: #111;
    --mx-sub: #6b7280;
    --mx-line: #ececec;
    --mx-wash: #f4f5f7;
    --mx-red: #F92400;
    --mx-safe-b: env(safe-area-inset-bottom, 0px);
    --mx-tab-h: 56px;
  }

  html { scroll-padding-top: 76px; }
  body.mx-has-m {
    padding-bottom: calc(var(--mx-tab-h) + var(--mx-safe-b));
    background: #fff;
    -webkit-tap-highlight-color: transparent;
  }
  body.mx-lock { overflow: hidden; }

  /* ---------- Replace the old template header on phones ---------- */
  .nav-bar { display: none !important; }
  #spinner { display: none !important; }

  /* ---------- Header: logo + sign-in ---------- */
  .mx-mhead {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px 6px; background: #fff;
  }
  .mx-mlogo { display: inline-flex; align-items: center; flex: 0 0 auto; }
  .mx-mlogo img { height: 34px; width: auto; display: block; }
  .mx-msign {
    display: inline-flex; align-items: center; gap: 8px; max-width: 58%;
    padding: 7px 12px; border: 1.5px solid var(--mx-orange); border-radius: 8px;
    background: #fff; color: var(--mx-orange-ink); font: 700 14px/1.2 Roboto, sans-serif;
  }
  .mx-msign i { flex: 0 0 auto; }
  .mx-msign span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mx-msign:active { background: #fff7ec; }

  /* ---------- Sticky pill search ---------- */
  .mx-msearch-wrap {
    display: block; position: sticky; top: 0; z-index: 1030;
    padding: 6px 16px 10px; background: #fff;
  }
  .mx-msearch-wrap.mx-stuck { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
  .mx-msearch {
    position: relative; display: flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 14px; background: #fff;
    border: 2px solid var(--mx-orange); border-radius: 999px;
  }
  .mx-msearch:focus-within { box-shadow: 0 0 0 3px rgba(242, 139, 0, .22); }
  .mx-msearch > i.fa-search { color: var(--mx-ink); font-size: 17px; }
  .mx-msearch .mx-q {
    flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0;
    background: transparent; color: var(--mx-ink); font-size: 16px; /* 16px stops iOS zoom */
    -webkit-appearance: none; appearance: none;
  }
  .mx-msearch .mx-q::placeholder { color: #8a8f98; opacity: 1; }
  .mx-msearch .mx-q::-webkit-search-cancel-button { display: none; }
  .mx-msearch .mx-x { border: 0; background: none; padding: 6px; color: var(--mx-sub); line-height: 1; }
  .mx-msearch .mx-sug {
    top: calc(100% + 8px) !important; left: 0; right: 0; border-radius: 14px; overflow: auto;
    max-height: 60vh; box-shadow: 0 10px 30px rgba(0, 0, 0, .15) !important;
  }

  /* ---------- Hero banner ---------- */
  body .carousel, body .carousel.bg-light {
    background: #fff !important; animation: none !important; overflow: hidden;
  }
  body .carousel::before, body .carousel::after,
  body .header-carousel::before, body .header-carousel::after { display: none !important; }
  .carousel > .row { margin: 0; }
  .carousel .header-carousel,
  .carousel .header-carousel.bg-light,
  .carousel .header-carousel.py-5 {
    padding: 0 !important; background: #fff !important; animation: none !important; position: relative;
  }
  .carousel .header-carousel .owl-stage-outer { background: transparent !important; }
  .header-carousel .owl-nav, .header-carousel .owl-dots { display: none !important; }

  body .carousel .header-carousel .header-carousel-item {
    position: relative; display: block; margin: 0; height: 224px; overflow: hidden;
    background: linear-gradient(120deg, #F28B00 0%, #ff6a00 100%) !important;
  }
  body .carousel .header-carousel .header-carousel-item:has(img[src*="carousel-2"]) {
    background: linear-gradient(120deg, #1f2430 0%, #3a4258 100%) !important;
  }
  .carousel .header-carousel-item > * { padding-left: 0; padding-right: 0; }
  body .carousel .carousel-content {
    position: relative; z-index: 2; width: 62%; max-width: 62%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 20px 0 30px 20px !important;
  }
  body .carousel .header-carousel .carousel-content h4 {
    margin: 0 0 8px !important; font: 600 11px/1.3 "Open Sans", sans-serif;
    letter-spacing: 1px !important; color: rgba(255, 255, 255, .88) !important; animation: none !important;
  }
  body .carousel .header-carousel .carousel-content h1 {
    margin: 0 0 16px !important; font: 800 25px/1.15 Roboto, sans-serif;
    color: #fff; text-transform: none; animation: none !important;
  }
  body .carousel .header-carousel .carousel-content .btn {
    animation: none !important; overflow: visible; padding: 9px 20px !important;
    background: #fff !important; border: 0 !important; color: var(--mx-ink) !important;
    font: 700 14px/1.2 Roboto, sans-serif; box-shadow: none;
  }
  body .carousel .header-carousel .carousel-content .btn::after { display: none !important; }
  .carousel .wow { animation: none !important; }
  body .carousel .carousel-img.mx-hide-phone {
    display: block !important; position: absolute; right: -6%; bottom: 0; width: 52%;
    z-index: 1; padding: 0; margin: 0;
  }
  body .carousel .carousel-img img { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); }

  .mx-dots {
    position: absolute; left: 0; right: 0; bottom: 12px; z-index: 5;
    display: flex; justify-content: center; gap: 8px;
  }
  .mx-dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .5); transition: background .2s, transform .2s;
  }
  .mx-dots button.on { background: #fff; transform: scale(1.25); }

  /* ---------- Shortcut icon grid (5 columns x 2 rows, swipes sideways) ---------- */
  .mx-short { display: block; padding: 14px 0 10px; background: #fff; }
  .mx-short-scroll {
    display: grid; grid-template-rows: repeat(2, auto); grid-auto-columns: 20%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .mx-short-scroll::-webkit-scrollbar { display: none; }
  .mx-short-item {
    display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0;
    padding: 8px 3px; color: #222; text-align: center; font: 500 12.5px/1.25 "Open Sans", sans-serif;
    background: none; border: 0;
  }
  .mx-short-item.snap { scroll-snap-align: start; }
  .mx-short-item:active .mx-short-ico { transform: scale(.94); }
  .mx-short-ico {
    width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
    font-size: 21px; transition: transform .15s;
  }
  .mx-short-lbl {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; overflow-wrap: anywhere; min-height: 2.5em;
  }
  .mx-short-bar { width: 44px; height: 4px; margin: 6px auto 0; border-radius: 4px; background: #e6e6e6; overflow: hidden; }
  .mx-short-bar i { display: block; height: 100%; width: 50%; border-radius: 4px; background: var(--mx-ink); transform: translateX(0); }
  .mx-short-bar[hidden] { display: none; }

  /* ---------- Member sign-in strip ---------- */
  .mx-promo { display: block; padding: 20px 16px 22px; background: var(--mx-wash); }
  .mx-promo[hidden] { display: none; }
  .mx-promo-t { margin: 0 0 14px; font: 800 20px/1.3 Roboto, sans-serif; color: var(--mx-ink); }
  .mx-promo-t b { color: var(--mx-orange-ink); font-weight: 800; }
  .mx-promo-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px;
    border-radius: 10px; background: var(--mx-orange); color: var(--mx-ink);
    font: 700 16px/1 Roboto, sans-serif;
  }
  .mx-promo-btn:active { filter: brightness(.95); }
  html[dir="rtl"] .mx-promo-btn i, html[dir="rtl"] .mx-more i { transform: scaleX(-1); }

  /* ---------- Product areas (home, shop, bestsellers) ---------- */
  .mx-shopwrap { padding: 0 !important; }
  .mx-shopwrap > .container { padding: 0 12px !important; max-width: none; }
  .mx-shopwrap .container.py-4 { padding-top: 12px !important; padding-bottom: 8px !important; }
  #fb-shop .row .row { --bs-gutter-x: 8px; --bs-gutter-y: 14px; }

  /* home: sections like Coupang */
  .mx-home .mx-shopwrap > .container { padding: 0 !important; }
  .mx-home #fb-shop > .row { margin: 0; --bs-gutter-x: 0; }
  .mx-home #fb-shop > .row > * { padding: 0; margin: 0; }
  .mx-home #fb-shop aside,
  .mx-home #fb-shop .mx-cat-title,
  .mx-home #fb-shop .mx-catgrid,
  .mx-home #fb-shop .col-lg-9 > .text-center.mb-5 { display: none !important; }
  .mx-home #fb-shop .col-lg-9 > h3 {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin: 0; padding: 20px 16px 12px; border-top: 8px solid var(--mx-wash);
    font: 800 20px/1.25 Roboto, sans-serif; color: var(--mx-ink);
  }
  .mx-home #fb-shop .col-lg-9 > h3:first-child { border-top: 0; }
  .mx-more { flex: 0 0 auto; font: 600 14px/1 "Open Sans", sans-serif; color: var(--mx-orange-ink); }
  .mx-more i { font-size: 11px; margin-inline-start: 4px; }
  .mx-home #fb-shop .col-lg-9 > .row { margin: 0 12px !important; padding-bottom: 20px; }
  .mx-home #fb-shop .col-lg-9 > .text-center { padding: 4px 16px 24px; border-top: 8px solid var(--mx-wash); padding-top: 20px; }
  .mx-home #fb-shop .col-lg-9 > .text-center .btn {
    display: block; width: 100%; padding: 14px !important; border-radius: 10px !important;
    background: #fff !important; border: 1px solid #d9dce1 !important; color: var(--mx-ink) !important;
    font: 700 15px/1.2 Roboto, sans-serif;
  }

  /* shop and bestsellers pages keep their layout, just tighter */
  .mx-shopwrap.mx-page-shop h3.mb-4 { font: 800 20px/1.25 Roboto, sans-serif; color: var(--mx-ink); margin-bottom: 12px !important; }

  /* product cards, everywhere */
  .product-item {
    border: 0 !important; border-radius: 0 !important; background: transparent !important;
    text-align: left !important; box-shadow: none !important; display: flex; flex-direction: column;
  }
  html[dir="rtl"] .product-item { text-align: right !important; }
  .product-item > a { display: block; }
  .product-item > a img {
    width: 100% !important; height: auto !important; aspect-ratio: 1 / 1;
    padding: 12px !important; object-fit: contain; background: #f6f6f7; border-radius: 12px;
  }
  .product-item > .p-3 { padding: 10px 2px 4px !important; flex: 1 1 auto; display: flex; flex-direction: column; }
  .product-item .text-primary.small { order: 0; color: var(--mx-sub) !important; font-size: 12px; margin-bottom: 2px !important; }
  .product-item .badge { font-size: 10px; padding: .35em .6em; }
  .product-item h6 { margin: 0 0 6px; font-size: 14px; line-height: 1.35; font-weight: 400; flex: 1 0 auto; }
  .product-item h6 a {
    color: #222 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2.7em;
  }
  .product-item del { color: #9ca3af; font-size: 12px; margin-inline-end: 6px !important; }
  .product-item .text-primary.fs-6 { color: var(--mx-ink) !important; font: 800 17px/1.3 Roboto, sans-serif; }
  .product-item .mt-3 { margin-top: auto !important; padding-top: 10px; }
  .product-item .mt-3 .btn {
    display: block; width: 100%; padding: 8px 10px !important; border-radius: 8px !important;
    background: #fff !important; border: 1px solid var(--mx-orange) !important; color: var(--mx-orange-ink) !important;
    font: 700 13px/1.2 Roboto, sans-serif;
  }
  .product-item .mt-3 .btn:active { background: #fff7ec !important; }

  /* ---------- Bottom tab bar ---------- */
  .mx-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060;
    height: calc(var(--mx-tab-h) + var(--mx-safe-b)); padding-bottom: var(--mx-safe-b);
    background: #fff; border-top: 1px solid var(--mx-line);
  }
  .mx-tabbar > * {
    position: relative; flex: 1 1 0; display: grid; place-items: center; border: 0; background: none;
    color: #2b2f36; font-size: 23px; padding: 0;
  }
  .mx-tabbar > *:active { background: #fafafa; }
  .mx-tabbar > .on { color: var(--mx-orange); }
  .mx-tabbar > .on::before {
    content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--mx-orange);
  }
  .mx-tabbar .mx-cart-count {
    position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--mx-red); color: #fff; font: 700 11px/18px Roboto, sans-serif; text-align: center;
  }
  .mx-tabbar .mx-cart-count[data-zero="1"] { display: none; }

  /* other fixed bits move up so they clear the tab bar */
  .back-to-top { display: none !important; }
  .mx-wa-float { bottom: calc(var(--mx-tab-h) + var(--mx-safe-b) + 70px) !important; right: 14px !important; width: 50px; height: 50px; }
  .pdp-sticky { bottom: calc(var(--mx-tab-h) + var(--mx-safe-b)) !important; padding-bottom: 10px !important; z-index: 1050; }
  body.pdp-has-sticky { padding-bottom: calc(var(--mx-tab-h) + var(--mx-safe-b) + 72px); }
  #mx-flash { bottom: calc(var(--mx-tab-h) + var(--mx-safe-b) + 16px) !important; }

  /* ---------- Categories sheet ---------- */
  .mx-sheet {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 1100; background: #fff;
    transform: translateY(100%); visibility: hidden; transition: transform .28s ease, visibility 0s .28s;
  }
  .mx-sheet.open { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
  .mx-sheet-bar {
    display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 4px; border-bottom: 1px solid var(--mx-line);
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }
  .mx-sheet-close { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--mx-ink); }
  html[dir="rtl"] .mx-sheet-close i { transform: scaleX(-1); }
  .mx-sheet-bar b { font: 800 18px/1.2 Roboto, sans-serif; color: var(--mx-ink); }
  .mx-sheet-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(24px + var(--mx-safe-b)); }
  .mx-sheet h4 { margin: 0; padding: 18px 16px 6px; font: 700 13px/1.2 "Open Sans", sans-serif; color: var(--mx-sub); }
  .mx-sheet .mx-catlist, .mx-sheet-links { list-style: none; margin: 0; padding: 0; }
  .mx-sheet .categories-bars-item, .mx-sheet-links a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 16px; border-bottom: 1px solid var(--mx-line); color: var(--mx-ink); font-size: 16px;
  }
  .mx-sheet .categories-bars-item a { flex: 1; padding: 15px 0; color: var(--mx-ink); }
  .mx-sheet .categories-bars-item span { color: var(--mx-sub); font-size: 13px; }
  .mx-sheet-links a { padding-top: 15px; padding-bottom: 15px; justify-content: flex-start; }
  .mx-sheet-links a i { width: 22px; text-align: center; color: var(--mx-orange-ink); }
  .mx-sheet-prefs { display: flex; gap: 10px; padding: 18px 16px 0; }
  .mx-sheet-prefs select { flex: 1; font-size: 15px; }

  @media (prefers-reduced-motion: reduce) {
    .mx-sheet, .mx-sheet.open, .mx-dots button, .mx-short-ico { transition: none; }
  }
}

/* very small phones */
@media (max-width: 359.98px) {
  .carousel .header-carousel-item { height: 208px; }
  body .carousel .header-carousel .carousel-content h1 { font-size: 22px; }
  .mx-short-lbl { font-size: 11.5px; }
}

/* =====================================================================
   Round 2: product page, shop / bestseller pages, home sections, footer.
   Phones and small tablets only. Desktop is untouched.
   ===================================================================== */
@media (max-width: 991.98px) {

  /* ---------- Page title banners: slim on phones, gone on the product page ---------- */
  .page-header {
    padding: 12px 16px !important; background: #fff !important; background-attachment: scroll !important;
    border-bottom: 1px solid var(--mx-line); text-align: left;
  }
  .page-header h1 {
    margin: 0 !important; font: 800 20px/1.25 Roboto, sans-serif !important;
    color: var(--mx-ink) !important; text-align: left !important; animation: none !important;
  }
  .page-header .breadcrumb { display: none !important; }
  body.mx-pg-single .page-header { display: none !important; }
  body.mx-pg-index .page-header { display: none !important; }

  /* wrappers around the product area */
  .mx-pdpwrap { padding: 0 !important; }
  .mx-pdpwrap > .container { padding: 0 !important; max-width: none; }
  .mx-pdpwrap > .container.py-4 { padding-top: 0 !important; padding-bottom: 8px !important; }

  /* ---------- Product cards: grid + list view (shop, bestsellers, related) ---------- */
  .product-item > a { position: relative; }
  .product-item > a img { border-radius: 14px; }
  .product-item h6 a { min-height: 2.7em; }
  .product-item .mt-3 .btn,
  .product-item .mt-3 .btn-primary {
    min-height: 40px; display: flex !important; align-items: center; justify-content: center; gap: 6px;
  }
  .product-item .mt-3 button[data-add]::before {
    content: "\f07a"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 12px;
  }
  .product-item .mt-3 .text-muted { display: block; text-align: center; padding: 10px 0; font-size: 13px; }

  .mx-shopwrap #fb-shop .row.g-4 { --bs-gutter-x: 10px; --bs-gutter-y: 16px; }

  /* toolbar above the grid: result count + grid/list switch */
  .mx-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 2px 4px 12px; font: 600 13px/1.2 "Open Sans", sans-serif; color: var(--mx-sub);
  }
  .mx-toolbar .mx-view { display: inline-flex; border: 1px solid #dfe2e7; border-radius: 10px; overflow: hidden; }
  .mx-toolbar .mx-view button {
    width: 42px; height: 36px; border: 0; background: #fff; color: #7b8190; font-size: 15px;
  }
  .mx-toolbar .mx-view button.on { background: var(--mx-orange); color: #111; }
  .mx-toolbar .mx-view button + button { border-inline-start: 1px solid #dfe2e7; }

  #fb-shop.mx-list .product-item { flex-direction: row; gap: 14px; align-items: stretch; padding: 10px 0; border-bottom: 1px solid var(--mx-line) !important; }
  #fb-shop.mx-list .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; width: 100%; }
  #fb-shop.mx-list .product-item > a { flex: 0 0 36%; max-width: 150px; }
  #fb-shop.mx-list .product-item > .p-3 { padding: 2px 0 !important; justify-content: center; }
  #fb-shop.mx-list .product-item .mt-3 { margin-top: 10px !important; padding-top: 0; }
  #fb-shop.mx-list .product-item .mt-3 .btn { max-width: 200px; }

  /* filter result line ("Results for ..." / clear) */
  .mx-shopwrap #fb-shop .col-lg-9 > p {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: 0 4px 10px; padding: 10px 14px; background: var(--mx-wash); border-radius: 10px;
    font: 600 14px/1.3 "Open Sans", sans-serif; color: var(--mx-ink);
  }
  .mx-shopwrap #fb-shop .col-lg-9 > p a { color: var(--mx-orange-ink); font-weight: 700; white-space: nowrap; }

  /* ---------- Category chips (shop page) ---------- */
  .mx-shopwrap #fb-shop aside.col-lg-3 { padding-bottom: 4px; }
  .mx-shopwrap .mx-side {
    padding: 2px 0 6px !important; background: none !important; border: 0 !important;
    gap: 8px !important; scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .mx-shopwrap .mx-side::-webkit-scrollbar { display: none; }
  .mx-shopwrap .mx-side-item {
    min-height: 40px; padding: 0 16px !important; border-radius: 999px !important; scroll-snap-align: start;
    font: 600 14px/1 "Open Sans", sans-serif; background: #fff !important; border: 1px solid #dfe2e7 !important; color: #222;
  }
  .mx-shopwrap .mx-side-item.on {
    background: var(--mx-ink) !important; border-color: var(--mx-ink) !important; color: #fff !important; box-shadow: none !important;
  }
  .mx-shopwrap .mx-side-item .mx-dot { display: none; }
  /* with the image tiles on show, the chips would repeat them */
  #fb-shop.mx-has-catgrid aside.col-lg-3 { display: none; }

  /* ---------- Category tiles (shop page): 5 per row, round photos with an orange ring ---------- */
  #fb-shop .mx-cat-title {
    display: flex; align-items: center; gap: 8px; margin: 6px 4px 12px;
    font: 800 20px/1.25 Roboto, sans-serif; color: var(--mx-ink);
  }
  #fb-shop .mx-cat-title::before {
    content: ""; width: 5px; height: 20px; border-radius: 3px;
    background: linear-gradient(180deg, #F28B00, #ff6a00);
  }
  #fb-shop .mx-catgrid {
    display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 4px;
    overflow: visible; margin: 0 0 22px !important; padding: 16px 6px 8px;
    background: linear-gradient(180deg, #fff6e8 0%, #fff 100%) !important;
    border: 1px solid #f6e3c3 !important; border-radius: 22px; box-shadow: 0 6px 18px rgba(242, 139, 0, .08);
  }
  #fb-shop .mx-cat-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px;
    min-width: 0; padding: 0 !important; border: 0 !important; background: none !important;
    color: #222; text-align: center; -webkit-tap-highlight-color: transparent;
    font: 700 11px/1.25 "Open Sans", sans-serif; transition: transform .15s;
  }
  #fb-shop .mx-cat-tile:active { transform: scale(.93); }
  #fb-shop .mx-cat-tile img, #fb-shop .mx-cat-tile .mx-cat-noimg {
    width: 84% !important; height: auto !important; max-width: none; aspect-ratio: 1 / 1;
    margin: 0 !important; padding: 0 !important; border-radius: 50%; background: #fff;
    object-fit: cover; border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--mx-orange), 0 5px 12px rgba(242, 139, 0, .28);
  }
  #fb-shop .mx-cat-tile .mx-cat-noimg { background: #fff1dc; font-size: 20px; }
  #fb-shop .mx-cat-tile span:last-child {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    overflow-wrap: anywhere; min-height: 2.5em; width: 100%; padding: 0 1px;
  }
  @media (min-width: 576px) {
    #fb-shop .mx-catgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 8px; padding: 20px 12px 10px; }
    #fb-shop .mx-cat-tile { font-size: 12.5px; }
  }
  @media (min-width: 768px) { #fb-shop .mx-catgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

  /* ---------- Home: product sections swipe sideways ---------- */
  .mx-home #fb-shop .col-lg-9 > .row.g-4 {
    display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; margin: 0 !important; padding: 0 16px 20px;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .mx-home #fb-shop .col-lg-9 > .row.g-4::-webkit-scrollbar { display: none; }
  .mx-home #fb-shop .col-lg-9 > .row.g-4 > * {
    flex: 0 0 42%; width: auto; max-width: 168px; margin: 0 !important; padding: 0 !important; scroll-snap-align: start;
  }
  /* home benefit strip */
  .mx-perks { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 16px 14px; background: #fff; }
  .mx-perks > span {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; text-align: center;
    border-radius: 12px; background: var(--mx-wash); color: #333; font: 600 11.5px/1.25 "Open Sans", sans-serif;
  }
  .mx-perks i { font-size: 16px; color: var(--mx-orange-ink); }

  /* ---------- Product page ---------- */
  .pdp-crumbs { padding: 10px 16px 0; }
  .pdp-crumbs .breadcrumb {
    flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 12.5px;
  }
  .pdp-crumbs .breadcrumb::-webkit-scrollbar { display: none; }
  .pdp-crumbs .breadcrumb-item.active { overflow: hidden; text-overflow: ellipsis; max-width: 55vw; }

  .pdp-crumbs + .row { margin: 0; --bs-gutter-x: 0; --bs-gutter-y: 0; }
  .pdp-crumbs + .row > * { padding: 0; margin-top: 0; }

  /* gallery: full-width square, swipe to change photo */
  #fb-shop .pdp-main {
    position: relative; height: auto !important; aspect-ratio: 1 / 1; border-radius: 0 !important;
    padding: 14px !important; background: #f6f6f7; touch-action: pan-y; cursor: default;
  }
  #fb-shop .pdp-main img { width: 100%; height: 100%; max-width: 100%; max-height: none !important; object-fit: contain; transform: none !important; }
  .pdp-badges { top: 12px; left: 12px; }
  .mx-imgcount {
    position: absolute; right: 12px; bottom: 12px; z-index: 3; padding: 4px 10px; border-radius: 999px;
    background: rgba(17, 17, 17, .62); color: #fff; font: 600 12px/1.3 Roboto, sans-serif; letter-spacing: .3px;
  }
  .pdp-strip { padding: 10px 16px 0; margin-top: 0 !important; }
  .pdp-strip .pdp-arrow { display: none; }
  .pdp-thumbs {
    justify-content: flex-start !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 8px;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .pdp-thumbs::-webkit-scrollbar { display: none; }
  .pdp-thumb { width: 58px !important; height: 58px !important; border-radius: 10px !important; }
  .pdp-thumb.active { border-color: var(--mx-orange); }
  .pdp-crumbs + .row video { margin: 12px 16px 0; width: calc(100% - 32px) !important; }

  /* buying info */
  .pdp-crumbs + .row > .col-lg-5 { padding: 16px 16px 6px; }
  .pdp-title { font: 700 19px/1.35 Roboto, sans-serif !important; color: var(--mx-ink); }
  .pdp-icon { width: 42px; height: 42px; }
  #mx-price { margin: 6px 0 4px !important; }
  .pdp-now { font: 800 28px/1.1 Roboto, sans-serif !important; color: var(--mx-ink) !important; }
  .pdp-was { font-size: 14px; }
  .pdp-off { font: 800 18px/1 Roboto, sans-serif; color: var(--mx-red); }
  #mx-stock { font-size: 13.5px; }
  .pdp-opt-label { font: 700 14px/1.2 "Open Sans", sans-serif; }
  .pdp-chips { gap: 8px; }
  .pdp-chip { min-height: 44px; min-width: 56px; padding: 0 18px; font-size: 15px; }
  .pdp-chip.active { background: #fff3df; border-color: var(--mx-orange); color: var(--mx-ink); box-shadow: inset 0 0 0 1px var(--mx-orange); font-weight: 700; }
  .mx-qty { border-radius: 12px; border-color: #d6d9de; }
  .mx-qty button { width: 48px; height: 48px; font-size: 22px; }
  .mx-qty input { width: 64px; height: 48px; font-size: 17px; font-weight: 700; -moz-appearance: textfield; }
  .mx-qty input::-webkit-outer-spin-button, .mx-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  #mx-total { font-size: 18px; color: var(--mx-ink) !important; }
  .pdp-actions { flex-direction: row !important; }
  .pdp-actions .btn { width: auto; min-height: 50px; border-radius: 12px; font-size: 16px; }
  /* the sticky bar carries Add to cart + Buy now once the script has set it up */
  body.mx-sticky-buy .pdp-actions { display: none !important; }
  .pdp-trust { padding: 12px 14px; border-radius: 12px; background: var(--mx-wash); }
  .pdp-trust li:last-child { margin-bottom: 0; }

  /* seller / delivery info */
  .pdp-crumbs + .row > .col-lg-3 { padding: 8px 16px 4px; }
  .pdp-side { border-radius: 14px !important; }
  .pdp-side-row { padding: 12px 14px !important; }
  .pdp-side-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .pdp-side-links a { margin: 0 !important; font-size: 13.5px; font-weight: 600; }

  /* description / specifications */
  #fb-shop[data-page="single"] > .mt-5 { margin-top: 20px !important; padding: 0 16px; }
  .pdp-tabs { display: flex; flex-wrap: nowrap; border-bottom: 1px solid var(--mx-line); }
  .pdp-tabs .nav-item { flex: 1 1 0; }
  .pdp-tabs .nav-link { width: 100%; text-align: center; font-size: 15px !important; padding: 12px 8px !important; }
  #fb-shop .tab-content { padding: 16px 2px !important; border: 0 !important; font-size: 15px; line-height: 1.65; }
  #pane-spec table th { width: 38% !important; font-size: 13.5px; }
  #pane-spec table td { font-size: 14px; overflow-wrap: anywhere; }

  /* related + recently viewed: swipe rows */
  .pdp-crumbs ~ hr.my-5 { margin: 22px 0 0 !important; border: 0; border-top: 8px solid var(--mx-wash); opacity: 1; }
  .pdp-crumbs ~ h3.mb-4 { margin: 0 !important; padding: 18px 16px 12px; font: 800 19px/1.25 Roboto, sans-serif; color: var(--mx-ink); }
  .pdp-crumbs ~ .row.g-4.mb-5 {
    display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; margin: 0 !important; padding: 0 16px 8px;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pdp-crumbs ~ .row.g-4.mb-5::-webkit-scrollbar { display: none; }
  .pdp-crumbs ~ .row.g-4.mb-5 > * { flex: 0 0 42%; width: auto; max-width: 168px; margin: 0 !important; padding: 0 !important; scroll-snap-align: start; }

  /* sticky buy bar: price + Add to cart + Buy now */
  .pdp-sticky {
    gap: 8px; padding: 10px 12px !important; border-top: 1px solid var(--mx-line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .08) !important;
  }
  .pdp-sticky > div { flex: 1 1 auto; margin: 0 !important; min-width: 0; }
  .pdp-sticky small { font-size: 12px; }
  .pdp-sticky .pdp-now { font: 800 19px/1.2 Roboto, sans-serif !important; }
  .pdp-sticky .btn {
    flex: 0 0 auto; min-height: 46px; padding: 0 18px !important; border-radius: 12px !important;
    font: 700 15px/1 Roboto, sans-serif; display: inline-flex; align-items: center; justify-content: center;
  }
  .pdp-sticky #mx-sticky-add { background: #fff !important; border: 1.5px solid var(--mx-orange) !important; color: var(--mx-orange-ink) !important; }
  .pdp-sticky .mx-sticky-buy { background: var(--mx-orange); border: 1.5px solid var(--mx-orange); color: #111; }
  .pdp-sticky .btn:disabled { opacity: .45; }

  /* ---------- Footer: tidy accordions + 2-column trust list ---------- */
  .mx-foot .container.py-5 { padding-top: 20px !important; padding-bottom: 12px !important; }
  .mx-foot-sec summary { padding: 14px 0; min-height: 48px; }
  .mx-foot-sec li a { display: inline-block; padding: 3px 0; }
  .mx-foot-trust { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
  .mx-foot-bottom { padding-bottom: 20px; }
}

@media (min-width: 992px) { .mx-perks { display: none !important; } }
.mx-perks, .mx-imgcount, .mx-toolbar { display: none; }
@media (max-width: 991.98px) { .mx-perks { display: grid; } .mx-imgcount { display: block; } .mx-toolbar { display: flex; } }

/* keep the 16px side padding when swipe rows snap to their first card */
@media (max-width: 991.98px) {
  .mx-home #fb-shop .col-lg-9 > .row.g-4,
  .pdp-crumbs ~ .row.g-4.mb-5 { scroll-padding-inline: 16px; }
  .mx-shopwrap .mx-side { scroll-padding-inline: 4px; }
}

/* =====================================================================
   Round 3: product page redesigned as an app screen
   ===================================================================== */
@media (max-width: 991.98px) {
  body.mx-pg-single.mx-has-m { background: #f2f3f5; --mx-tab-h: 0px; }
  /* the shop-wide header, search and tab bar give way to a product top bar + buy bar */
  body.mx-pg-single .mx-mhead, body.mx-pg-single .mx-msearch-wrap, body.mx-pg-single .mx-tabbar { display: none !important; }

  /* top bar */
  .mx-pbar {
    position: sticky; top: 0; z-index: 1040; display: flex; align-items: center; gap: 2px;
    height: calc(52px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 6px 0;
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
  }
  .mx-pbar.mx-pb-solid { border-bottom-color: var(--mx-line); box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
  .mx-pb-ico {
    position: relative; flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
    border: 0; background: none; color: var(--mx-ink); font-size: 19px;
  }
  .mx-pb-ico:active { background: #f1f1f1; border-radius: 50%; }
  html[dir="rtl"] .mx-pb-back i { transform: scaleX(-1); }
  .mx-pb-title {
    flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 700 16px/1.2 Roboto, sans-serif; color: var(--mx-ink); opacity: 0; transform: translateY(4px);
    transition: opacity .2s, transform .2s;
  }
  .mx-pbar.mx-pb-title-on .mx-pb-title { opacity: 1; transform: none; }
  .mx-pbar .mx-cart-count {
    position: absolute; top: 4px; left: calc(50% + 2px); min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--mx-red); color: #fff; font: 700 11px/18px Roboto, sans-serif; text-align: center;
  }
  .mx-pbar .mx-cart-count[data-zero="1"] { display: none; }

  /* white blocks on a grey page */
  .pdp-crumbs { background: #fff; margin: 0 !important; padding: 2px 16px 10px; }
  .pdp-crumbs + .row > .col-lg-4 { background: #fff; padding-bottom: 12px; }
  .pdp-crumbs + .row > .col-lg-5 { background: #fff; margin-top: 8px; padding: 18px 16px 18px; border-radius: 20px 20px 0 0; }
  .pdp-crumbs + .row > .col-lg-3 { padding: 0 !important; margin-top: 8px; }
  .pdp-side { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
  #fb-shop[data-page="single"] > .mt-5 { margin-top: 8px !important; padding: 8px 16px 12px; background: #fff; }
  .pdp-crumbs ~ hr.my-5 { display: none; }
  .pdp-crumbs ~ h3.mb-4 { background: #fff; margin-top: 8px !important; padding-top: 18px; }
  .pdp-crumbs ~ .row.g-4.mb-5 { background: #fff; padding-bottom: 18px; margin-bottom: 0 !important; }

  /* gallery: edge-to-edge snap track */
  body.mx-g-on #mx-main-img { display: none !important; }
  .mx-gtrack {
    position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; z-index: 1;
  }
  .mx-gtrack::-webkit-scrollbar { display: none; }
  .mx-gslide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
  .mx-gslide img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
  #fb-shop .pdp-main { background: #fff !important; padding: 0 !important; overflow: hidden; }
  .pdp-badges { z-index: 3 !important; }
  .mx-imgcount { background: rgba(17, 17, 17, .55); backdrop-filter: blur(4px); }
  .pdp-strip { padding-top: 12px; }
  .pdp-thumb { width: 56px !important; height: 56px !important; border-radius: 12px !important; border-width: 2px; opacity: .75; }
  .pdp-thumb.active { opacity: 1; }

  /* title + price */
  .pdp-title { font: 700 18px/1.4 Roboto, sans-serif !important; }
  .pdp-icon { width: 40px; height: 40px; background: #f5f6f8; border: 0; }
  #mx-price { margin: 10px 0 6px !important; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #fff4e3, #fff9f1); }
  #mx-price > div { align-items: center !important; gap: 8px 10px !important; }
  .pdp-now { font: 800 30px/1 Roboto, sans-serif !important; color: var(--mx-ink) !important; }
  .pdp-was { order: 3; }
  .pdp-off { order: 2; padding: 4px 8px; border-radius: 8px; background: var(--mx-red); color: #fff; font: 800 13px/1 Roboto, sans-serif; }
  #mx-stock { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: #eef8f1; margin-bottom: 14px !important; }
  #mx-stock .text-warning { color: #b35f00 !important; }
  #mx-stock:has(.text-danger) { background: #fdeceb; }

  /* option + quantity blocks */
  .pdp-opt-label { margin-bottom: 10px; }
  .pdp-crumbs + .row > .col-lg-5 > .mb-3:has(.pdp-chips),
  .pdp-crumbs + .row > .col-lg-5 > .mb-3:has(.mx-qty) { padding: 14px 0; border-top: 1px solid var(--mx-line); margin-bottom: 0 !important; }
  .pdp-crumbs + .row > .col-lg-5 > p.mb-3:has(#mx-total) { border-top: 1px solid var(--mx-line); margin: 0 !important; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; }
  .pdp-trust { margin-top: 4px; }

  /* delivery / seller rows */
  .pdp-side { background: #fff; }
  .pdp-side-row { padding: 14px 16px !important; align-items: center; }
  .pdp-side-row > i { width: 36px; height: 36px; display: grid; place-items: center; margin: 0; border-radius: 50%; background: #fff1dc; font-size: 15px; }

  /* tabs as pills */
  .pdp-tabs { border: 0; gap: 8px; margin-bottom: 4px; }
  .pdp-tabs .nav-link { border: 1px solid #dfe2e7 !important; border-radius: 999px !important; background: #fff !important; color: #333 !important; padding: 10px 8px !important; }
  .pdp-tabs .nav-link.active { background: var(--mx-ink) !important; border-color: var(--mx-ink) !important; color: #fff !important; }

  /* bottom buy bar owns the bottom edge on this page */
  body.mx-pg-single .pdp-sticky { bottom: 0 !important; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
  body.mx-pg-single.pdp-has-sticky { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.mx-pg-single .mx-wa-float { bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
  body.mx-pg-single #mx-flash { bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; }
  .pdp-sticky .mx-sticky-buy { flex: 1 1 auto; }
  .pdp-sticky #mx-sticky-add { flex: 1 1 auto; }
  .pdp-sticky > div { flex: 0 1 34%; }
}
