
:root {
  --ps-mobile-nav-height: 78px;
  --ps-mobile-fab-size: 56px;
  --ps-mobile-blur: 18px;
}

@media (max-width: 1199.98px) {
  body.mobile-ux-shell {
    padding-bottom: calc(var(--ps-mobile-nav-height) + 24px);
    background:
      radial-gradient(circle at top, rgba(47,106,255,.08), transparent 32%),
      linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  }

  body.mobile-ux-shell .bg-primary-down-lg {
    background: transparent !important;
  }

  body.mobile-ux-shell .u-header__section,
  body.mobile-ux-shell .premium-site-footer {
    position: relative;
    z-index: 2;
  }

  .ps-toast-stack {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    z-index: 1085;
    display: grid;
    gap: 10px;
    pointer-events: none;
  }

  .ps-toast {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 14px;
    border-radius: 18px;
    background: rgba(12, 19, 34, 0.88);
    color: #fff;
    box-shadow: 0 18px 40px rgba(8, 15, 30, 0.22);
    backdrop-filter: blur(var(--ps-mobile-blur));
    -webkit-backdrop-filter: blur(var(--ps-mobile-blur));
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: auto;
  }
  .ps-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
  .ps-toast--success { background: rgba(10, 102, 68, 0.92); }
  .ps-toast--error { background: rgba(168, 35, 35, 0.92); }
  .ps-toast__icon { font-size: 16px; }
  .ps-toast__body { font-size: 13px; line-height: 1.4; font-weight: 600; }
  .ps-toast__close {
    background: transparent; border: 0; color: #fff; font-size: 18px; line-height: 1; padding: 0 0 2px;
  }

  .ps-mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: var(--ps-mobile-nav-height);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 8px 10px;
    border-radius: 24px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 18px 50px rgba(11, 23, 47, 0.16);
    backdrop-filter: blur(var(--ps-mobile-blur));
    -webkit-backdrop-filter: blur(var(--ps-mobile-blur));
    z-index: 1040;
    border: 1px solid rgba(28, 48, 92, 0.08);
  }

  .ps-mobile-bottom-nav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; color: #52607a; text-decoration: none; min-width: 0;
    font-size: 10px; font-weight: 700; letter-spacing: .01em;
  }
  .ps-mobile-bottom-nav__item:hover { color: #163e9f; text-decoration: none; }
  .ps-mobile-bottom-nav__item.is-active { color: #0b57d0; }
  .ps-mobile-bottom-nav__icon {
    position: relative;
    width: 40px; height: 40px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    font-size: 18px;
  }
  .ps-mobile-bottom-nav__item.is-active .ps-mobile-bottom-nav__icon {
    background: linear-gradient(180deg, rgba(16,89,255,.16), rgba(16,89,255,.06));
    box-shadow: inset 0 0 0 1px rgba(16,89,255,.08);
    transform: translateY(-2px);
  }
  .ps-mobile-bottom-nav__item--cta .ps-mobile-bottom-nav__icon {
    background: linear-gradient(180deg, #0f6bff 0%, #0a56cf 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(15,107,255,.28);
    transform: translateY(-14px);
    width: 54px; height: 54px; border-radius: 18px; font-size: 21px;
  }
  .ps-mobile-bottom-nav__item--cta .ps-mobile-bottom-nav__label { margin-top: -6px; }
  .ps-mobile-bottom-nav__badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 999px;
    padding: 0 5px; display:flex; align-items:center; justify-content:center;
    font-size: 10px; font-weight: 800; color: #fff; background: #ef4444;
    box-shadow: 0 8px 18px rgba(239,68,68,.3);
  }
  .ps-mobile-bottom-nav__label {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
  }

  .ps-mobile-quick-search {
    position: fixed;
    right: 16px;
    bottom: calc(var(--ps-mobile-nav-height) + 24px + env(safe-area-inset-bottom));
    width: var(--ps-mobile-fab-size);
    height: var(--ps-mobile-fab-size);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    color: #0b57d0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    z-index: 1038;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
  }

  .premium-site-footer { padding-bottom: calc(var(--ps-mobile-nav-height) + 34px); }

  .u-header__navbar-brand img { max-width: 168px; height: auto; }

  .u-header-topbar { display: none !important; }

  .premium-site-header .container,
  .premium-site-footer .container,
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (min-width: 1200px) {
  .ps-toast-stack, .ps-mobile-bottom-nav, .ps-mobile-quick-search { display: none !important; }
}


@media (max-width: 767.98px) {
  html, body {
    overflow-x: hidden;
  }

  body.mobile-ux-shell {
    min-height: 100vh;
  }

  body.mobile-ux-shell .premium-site-header,
  body.mobile-ux-shell #content,
  body.mobile-ux-shell .premium-site-footer {
    width: min(100%, 430px);
    margin-left: auto;
    margin-right: auto;
  }

  body.mobile-ux-shell .premium-site-header,
  body.mobile-ux-shell .premium-site-footer {
    position: relative;
  }

  body.mobile-ux-shell #content {
    padding-left: 0;
    padding-right: 0;
  }

  body.mobile-ux-shell .premium-site-header .container,
  body.mobile-ux-shell #content .container,
  body.mobile-ux-shell .premium-site-footer .container {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: auto;
    margin-right: auto;
  }

  body.mobile-ux-shell .row,
  body.mobile-ux-shell [class*="row"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.mobile-ux-shell .row > [class*="col-"],
  body.mobile-ux-shell [class*="row"] > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.mobile-ux-shell .premium-footer-shell {
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    padding: 18px 14px 0;
  }

  body.mobile-ux-shell .premium-footer-main .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-bottom: 14px !important;
  }

  body.mobile-ux-shell .premium-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 6px;
    padding-top: 12px;
  }

  body.mobile-ux-shell .ps-mobile-bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100vw - 20px), 430px);
  }

  body.mobile-ux-shell .ps-mobile-quick-search {
    right: max(16px, calc((100vw - min(100vw, 430px)) / 2 + 16px));
  }

  body.mobile-ux-shell .ps-premium-strip,
  body.mobile-ux-shell .ps-android-card {
    width: 100%;
  }

  body.mobile-ux-shell .ps-android-card > .container,
  body.mobile-ux-shell .ps-premium-strip.ps-android-wrap .container {
    border-radius: 26px;
    padding-left: 14px;
    padding-right: 14px;
  }

  body.mobile-ux-shell .products-grid,
  body.mobile-ux-shell .ps-premium-strip__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.mobile-ux-shell .jumia-product-card,
  body.mobile-ux-shell .ps-android-mini-card,
  body.mobile-ux-shell .ps-premium-strip__item {
    width: 100%;
    max-width: 100%;
  }
}


/* Native Android-style mobile home pass */
@media (max-width: 767.98px) {
  :root {
    --ps-app-frame-width: min(100vw, 430px);
  }

  body.mobile-ux-shell {
    background: linear-gradient(180deg, #eaf4ff 0%, #f6f9ff 22%, #f7f8fc 100%);
  }

  body.mobile-ux-shell .premium-site-header {
    position: sticky;
    top: 0;
    z-index: 1036;
    padding-top: max(env(safe-area-inset-top), 6px);
    background: linear-gradient(180deg, rgba(234,244,255,.97) 0%, rgba(246,249,255,.82) 65%, rgba(246,249,255,0) 100%);
    backdrop-filter: blur(18px);
  }

  body.mobile-ux-shell .premium-site-header .u-header__section {
    padding-bottom: 8px;
  }

  body.mobile-ux-shell .premium-site-header .bg-primary-down-lg {
    background: transparent !important;
  }

  body.mobile-ux-shell .premium-site-header .bg-primary-down-lg .container > .row {
    margin-top: 8px;
    padding: 12px 12px 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(247,250,255,.96) 100%);
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 18px 48px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.72);
    gap: 10px;
  }

  body.mobile-ux-shell .premium-site-header .u-header__navbar {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.mobile-ux-shell .premium-site-header .u-header__navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.mobile-ux-shell .premium-site-header .u-header__navbar-brand img {
    height: 34px;
    width: auto;
    max-width: 148px;
  }

  body.mobile-ux-shell .premium-site-header .u-hamburger,
  body.mobile-ux-shell .premium-site-header .u-header-icon,
  body.mobile-ux-shell .premium-site-header .u-header-icon__inner {
    border-radius: 16px !important;
  }

  body.mobile-ux-shell .premium-site-header .u-hamburger {
    width: 46px;
    height: 46px;
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
    border: 1px solid rgba(37,99,235,.1);
    box-shadow: 0 10px 24px rgba(37,99,235,.12);
  }

  body.mobile-ux-shell .premium-site-header .u-header-icons-group {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(44px, 44px);
    justify-content: end;
    gap: 8px;
  }

  body.mobile-ux-shell .premium-site-header .u-header-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
    border: 1px solid rgba(37,99,235,.1);
    box-shadow: 0 10px 22px rgba(15,23,42,.08);
  }

  body.mobile-ux-shell .premium-site-header .u-search-form,
  body.mobile-ux-shell .premium-site-header .u-search-form__input,
  body.mobile-ux-shell .premium-site-header .input-group {
    min-height: 56px;
  }

  body.mobile-ux-shell .premium-site-header .u-search-form {
    margin-top: 6px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(37,99,235,.1);
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
  }

  body.mobile-ux-shell .premium-site-header .u-search-form__input {
    border: 0 !important;
    background: transparent !important;
    font-size: 15px;
    padding-left: 16px;
  }

  body.mobile-ux-shell .premium-site-header .u-search-form .btn,
  body.mobile-ux-shell .premium-site-header .u-search-form button {
    width: 52px;
    min-width: 52px;
    border: 0 !important;
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%) !important;
    color: #fff !important;
  }

  body.mobile-ux-shell .ps-mobile-home-intro {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  body.mobile-ux-shell .ps-mobile-home-intro__surface {
    position: relative;
    overflow: hidden;
    padding: 18px 16px;
    border-radius: 28px;
    background: linear-gradient(155deg, #0f172a 0%, #10274a 48%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(15,23,42,.18);
  }

  body.mobile-ux-shell .ps-mobile-home-intro__surface::before {
    content: '';
    position: absolute;
    inset: auto -20% -35% auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(125,211,252,.28) 0%, rgba(125,211,252,0) 70%);
    pointer-events: none;
  }

  .ps-mobile-home-intro__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .ps-mobile-home-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .ps-mobile-home-intro__title {
    margin: 0 0 8px;
    font-size: 1.55rem;
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.04em;
    color: #fff;
  }

  .ps-mobile-home-intro__subtitle {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: .92rem;
    line-height: 1.45;
    max-width: 240px;
  }

  .ps-mobile-home-intro__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  }

  .ps-mobile-home-intro__chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 6px;
    margin: 8px -2px 0;
    scrollbar-width: none;
  }
  .ps-mobile-home-intro__chips::-webkit-scrollbar { display: none; }

  .ps-mobile-home-intro__chips span {
    white-space: nowrap;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    font-size: .78rem;
    font-weight: 700;
  }

  .ps-mobile-home-intro__grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ps-mobile-home-intro__mini {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    display: block;
    min-height: 82px;
  }

  .ps-mobile-home-intro__mini strong {
    display: block;
    font-size: .95rem;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .ps-mobile-home-intro__mini small {
    display: block;
    color: rgba(255,255,255,.78);
    font-size: .75rem;
    line-height: 1.35;
  }

  body.mobile-ux-shell .ps-hero-section {
    padding-top: 4px;
    margin-bottom: 8px;
  }

  body.mobile-ux-shell .ps-hero-slider {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15,23,42,.12);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(255,255,255,.92);
  }

  body.mobile-ux-shell .ps-hero-slide {
    min-height: 260px;
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
  }

  body.mobile-ux-shell .ps-hero-slide img {
    border-radius: 28px;
    min-height: 260px;
    object-fit: cover;
  }

  body.mobile-ux-shell .ps-hero-overlay {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15,23,42,.72) 0%, rgba(15,23,42,.88) 100%);
    box-shadow: 0 18px 40px rgba(15,23,42,.24);
    backdrop-filter: blur(10px);
  }

  body.mobile-ux-shell .ps-hero-headline {
    font-size: 1.24rem;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.04em;
  }

  body.mobile-ux-shell .ps-hero-subtext {
    font-size: .86rem;
    line-height: 1.45;
    color: rgba(255,255,255,.82);
  }

  body.mobile-ux-shell .ps-hero-cta {
    min-height: 42px;
    border-radius: 14px;
    padding: 0 14px;
    font-weight: 800;
  }

  body.mobile-ux-shell .ps-hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 389.98px) {
  .ps-mobile-home-intro__top {
    flex-direction: column;
  }

  .ps-mobile-home-intro__subtitle {
    max-width: none;
  }

  .ps-mobile-home-intro__grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 767.98px) {
  body.mobile-ux-shell .ps-mobile-home-intro {
    margin-top: 8px;
    margin-bottom: 12px;
  }
  body.mobile-ux-shell .ps-mobile-home-intro .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  body.mobile-ux-shell .ps-mobile-home-intro__surface {
    padding: 16px 14px 14px;
    border-radius: 24px;
  }
  body.mobile-ux-shell .ps-mobile-home-intro__top {
    display: block;
  }
  body.mobile-ux-shell .ps-mobile-home-intro__eyebrow {
    margin-bottom: 8px;
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: .12em;
  }
  body.mobile-ux-shell .ps-mobile-home-intro__title {
    font-size: 1.38rem;
    line-height: 1.05;
    margin-bottom: 8px;
    max-width: 100%;
  }
  body.mobile-ux-shell .ps-mobile-home-intro__subtitle {
    max-width: 100%;
    font-size: .86rem;
    line-height: 1.42;
  }
  body.mobile-ux-shell .ps-mobile-home-intro__cta {
    margin-top: 12px;
    min-width: 100%;
    min-height: 44px;
    border-radius: 14px;
  }
  body.mobile-ux-shell .ps-mobile-home-intro__chips {
    padding-top: 10px;
    margin-top: 10px;
  }
  body.mobile-ux-shell .ps-mobile-home-intro__chips span {
    padding: 9px 11px;
    font-size: .74rem;
  }
  body.mobile-ux-shell .ps-mobile-home-intro__grid {
    gap: 8px;
    margin-top: 10px;
  }
  body.mobile-ux-shell .ps-mobile-home-intro__mini {
    min-height: 76px;
    padding: 12px;
    border-radius: 16px;
  }
}
