/**
 * Watermelon — Mobile App UI
 * Applies ONLY below 992px. Desktop (≥992px) is untouched.
 * Load after product-ui.css.
 */

/* ==========================================================================
   Base mobile chrome
   ========================================================================== */
@media (max-width: 991.98px) {
  :root {
    --wm-mobile-header-h: 56px;
    --wm-touch: 44px;
    --wm-tabbar-h: 64px;
    /* Space for fixed tab bar + a little breathing room (used by .wm-tabbar-spacer) */
    --wm-tabbar-clearance: calc(var(--wm-tabbar-h) + 28px + env(safe-area-inset-bottom, 0px));
    --wm-app-bg: #f3f7f3;
    --wm-app-surface: #ffffff;
    --wm-app-radius: 14px;
  }

  html {
    -webkit-text-size-adjust: 100% !important;
    font-size: 15px !important;
  }

  body.js,
  body.wm-app-shell {
    background: var(--wm-app-bg) !important;
    font-size: 15px !important;
    line-height: 1.45;
  }

  /*
   * Document-flow spacer (see master.blade.php) — last content always clears
   * the fixed tab bar on home, shop, cart, checkout, account, etc.
   */
  .wm-tabbar-spacer {
    display: block !important;
    width: 100% !important;
    height: var(--wm-tabbar-clearance) !important;
    min-height: var(--wm-tabbar-clearance) !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    flex-shrink: 0 !important;
  }

  /* Consistent bottom tab bar — same size on EVERY page */
  .wm-app-tabbar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1400 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    align-items: stretch !important;
    width: 100% !important;
    height: calc(var(--wm-tabbar-h) + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(var(--wm-tabbar-h) + env(safe-area-inset-bottom, 0px)) !important;
    max-height: none !important;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--wm-line, #dce5dc) !important;
    box-shadow: 0 -6px 20px rgba(46, 71, 59, 0.08) !important;
    box-sizing: border-box !important;
  }

  .wm-app-tabbar.wm-app-tabbar--auth {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .wm-app-tabbar .wm-app-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 4px 1px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    color: #5a6b62 !important;
    text-decoration: none !important;
    font-family: "Poppins", "Nunito", sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .wm-app-tabbar .wm-app-tab > span:not(.wm-app-tab__icon-wrap) {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    color: inherit !important;
  }

  .wm-app-tabbar .wm-app-tab i,
  .wm-app-tabbar .wm-app-tab i::before {
    font-size: 18px !important;
    line-height: 1 !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .wm-app-tabbar .wm-app-tab__icon-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }

  .wm-app-tabbar .wm-app-tab__badge {
    position: absolute !important;
    top: -8px !important;
    right: -12px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: var(--wm-coral, #D14D41) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    text-align: center !important;
  }

  .wm-app-tabbar .wm-app-tab.is-active {
    color: #2E473B !important;
    background: #E8F2E7 !important;
  }

  .wm-app-tabbar .wm-app-tab.wm-app-tab--logout {
    color: var(--wm-coral, #D14D41) !important;
  }

  .wm-app-tabbar .wm-app-tab:active {
    transform: scale(0.97) !important;
  }

  body.wm-app-shell .footer.wm-footer {
    display: none !important;
    margin-bottom: 0 !important;
  }

  /* Compact section / page chrome */
  .section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .section-title {
    margin-bottom: 14px !important;
    padding: 0 !important;
  }

  .section-title h2,
  .shop-section-title h1 {
    font-size: 1.2rem !important;
    margin-bottom: 8px !important;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wm-breadcrumbs--bar,
  .breadcrumbs {
    padding: 10px 0 !important;
  }

  .wm-breadcrumbs__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    scrollbar-width: none;
  }

  .wm-breadcrumbs__list::-webkit-scrollbar {
    display: none;
  }

  .wm-breadcrumbs__list li {
    flex-shrink: 0;
    font-size: 15px;
  }

  /* Touch-friendly controls */
  button,
  .btn,
  a.btn,
  input[type="submit"],
  .filter_button {
    min-height: 44px;
  }

  input.form-control,
  select.form-control,
  textarea.form-control,
  .form-control {
    min-height: 44px;
    font-size: 16px !important; /* prevents iOS zoom */
  }

  /* ========================================================================
     Header — fixed app bar on mobile (sticky fails when ancestors overflow)
     ======================================================================== */
  .header.shop.wm-header .topbar {
    display: none !important;
  }

  .header.shop.wm-header .header-inner {
    display: none !important;
  }

  /* Spacer so page content starts below the fixed bar */
  .header.shop.wm-header {
    padding-top: calc(var(--wm-mobile-header-h) + env(safe-area-inset-top, 0px)) !important;
  }

  .header.shop.wm-header .middle-inner {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1100 !important;
    background: #fff !important;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px !important;
    height: calc(var(--wm-mobile-header-h) + env(safe-area-inset-top, 0px));
    min-height: calc(var(--wm-mobile-header-h) + env(safe-area-inset-top, 0px));
    box-shadow: 0 2px 14px rgba(46, 71, 59, 0.1);
    box-sizing: border-box !important;
  }

  .header.shop.wm-header .middle-inner > .container > .row {
    align-items: center;
    margin: 0;
  }

  .header.shop.wm-header .middle-inner > .container > .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Logo column — same 3-part app header on every page */
  .header.shop.wm-header .middle-inner > .container > .row > .col-lg-2.col-md-2.col-12,
  .header.shop.wm-header .wm-mobile-header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .header.shop.wm-header .wm-mobile-header .mobile-nav {
    grid-column: 1;
    justify-self: start;
    align-self: center !important;
    order: unset !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    position: static !important;
    float: none !important;
    overflow: visible !important;
  }

  .header.shop.wm-header .wm-mobile-header .slicknav_menu {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: transparent !important;
    overflow: visible !important;
    position: static !important;
  }

  .header.shop.wm-header .wm-mobile-header .slicknav_btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    float: none !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    line-height: 1 !important;
    border: 1px solid var(--wm-line, #dce5dc) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    z-index: 2;
  }

  .header.shop.wm-header .wm-mobile-header .slicknav_btn .slicknav_icon,
  .header.shop.wm-header .wm-mobile-header .slicknav_btn .slicknav_icon:before {
    margin: 0 !important;
    float: none !important;
    width: 22px !important;
    height: 16px !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
  }

  .header.shop.wm-header .wm-mobile-header .slicknav_btn .slicknav_icon:before {
    content: none !important;
    display: none !important;
  }

  .header.shop.wm-header .wm-mobile-header .slicknav_btn .slicknav_menutxt {
    display: none !important;
  }

  .header.shop.wm-header .wm-mobile-header .slicknav_btn .slicknav_icon-bar {
    display: block !important;
    width: 22px !important;
    height: 2.5px !important;
    margin: 0 auto !important;
    border-radius: 2px !important;
    background: var(--wm-ink, #2E473B) !important;
    box-shadow: none !important;
  }

  .header.shop.wm-header .wm-mobile-header .slicknav_btn .slicknav_icon-bar + .slicknav_icon-bar {
    margin-top: 5px !important;
  }

  .header.shop.wm-header .mobile-nav {
    order: unset !important;
    margin: 0 !important;
    float: none !important;
    flex: 0 0 auto;
  }

  .header.shop.wm-header .slicknav_menu {
    background: transparent !important;
    padding: 0 !important;
    float: none !important;
  }

  .header.shop.wm-header .wm-header-search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--wm-line, #dce5dc);
    border-radius: 10px;
    background: #fff;
    color: var(--wm-ink, #2E473B);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
  }

  .header.shop.wm-header .logo {
    grid-column: 2;
    justify-self: center;
    margin: 0 !important;
    margin-bottom: 0 !important;
    flex: none !important;
    justify-content: center !important;
    text-align: center !important;
    min-width: 0;
    order: unset !important;
  }

  .header.shop.wm-header .logo a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .header.shop.wm-header .logo img {
    max-height: 32px;
    width: auto;
  }

  .header.shop.wm-header .wm-mobile-header .wm-header-search,
  .header.shop.wm-header .wm-mobile-header .search-top {
    grid-column: 3;
    justify-self: end;
    align-self: center !important;
    order: unset !important;
    margin-left: 0 !important;
    flex: none !important;
  }

  .header.shop.wm-header .middle-inner,
  .header.shop.wm-header .wm-mobile-header,
  .header.shop.wm-header .mobile-nav,
  .header.shop.wm-header .slicknav_menu {
    overflow: visible !important;
  }

  /* Full-width dropdown — was clipped to the 48px menu button column */
  .header.shop.wm-header .slicknav_nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(var(--wm-mobile-header-h, 62px) + env(safe-area-inset-top, 0px)) !important;
    width: 100% !important;
    max-width: 100vw !important;
    z-index: 1200 !important;
    background: var(--wm-ink, #2E473B) !important;
    margin: 0 !important;
    padding: 10px 16px 18px !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 16px 32px rgba(46, 71, 59, 0.22) !important;
    box-sizing: border-box !important;
    clear: both !important;
    float: none !important;
    overflow: hidden !important;
  }

  .header.shop.wm-header .slicknav_nav > ul {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    list-style: none !important;
  }

  .header.shop.wm-header .slicknav_nav li {
    width: 100% !important;
    display: block !important;
    float: none !important;
  }

  .header.shop.wm-header .slicknav_nav a,
  .header.shop.wm-header .slicknav_nav .slicknav_row,
  .header.shop.wm-header .slicknav_nav .slicknav_item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    padding: 14px 12px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    float: none !important;
    background: transparent !important;
  }

  .header.shop.wm-header .slicknav_nav a:hover,
  .header.shop.wm-header .slicknav_nav .slicknav_row:hover,
  .header.shop.wm-header .slicknav_nav .slicknav_item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .header.shop.wm-header .slicknav_nav .slicknav_arrow {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    margin-left: auto !important;
    padding: 0 !important;
    color: #A3C7A1 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
  }

  .header.shop.wm-header .slicknav_nav .slicknav_item a {
    display: inline !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  .header.shop.wm-header .slicknav_nav ul ul {
    margin: 0 0 6px !important;
    padding: 0 0 0 12px !important;
    width: 100% !important;
    clear: both !important;
  }

  .header.shop.wm-header .slicknav_nav ul ul a {
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 10px 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  /* Hide bulky desktop search row; keep compact search toggle */
  .header.shop.wm-header .search-bar-top {
    display: none !important;
  }

  /* Mobile search — icon only until opened */
  .header.shop.wm-header .wm-header-search {
    position: relative;
    display: block !important;
    flex: none !important;
    order: unset !important;
    margin-left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    top: auto !important;
    right: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .header.shop.wm-header .wm-header-search .top-search {
    margin: 0;
  }

  .header.shop.wm-header .wm-header-search__toggle.is-active,
  .header.shop.wm-header .wm-header-search.is-open .wm-header-search__toggle {
    background: var(--wm-ink, #2E473B);
    color: #fff;
  }

  .header.shop.wm-header .wm-header-search__panel {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--wm-mobile-header-h) + env(safe-area-inset-top, 0px) + 6px);
    z-index: 1075;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--wm-line, #d7e3d8);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(46, 71, 59, 0.18);
  }

  .header.shop.wm-header .wm-header-search.is-open .wm-header-search__panel,
  .header.shop.wm-header .wm-header-search.active .wm-header-search__panel {
    display: block;
  }

  .header.shop.wm-header .wm-header-search .search-form {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: flex !important;
    gap: 8px;
    margin: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .header.shop.wm-header .wm-header-search .search-form input {
    flex: 1;
    width: auto !important;
    min-height: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--wm-line, #d7e3d8);
    padding: 0 12px;
    font-size: 16px;
    background: var(--wm-mint-soft, #E8F2E7);
  }

  .header.shop.wm-header .wm-header-search .search-form button {
    position: static !important;
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 0;
    background: var(--wm-ink, #2E473B) !important;
    color: #fff !important;
  }

  .wm-header-search-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(23, 36, 31, 0.35);
  }

  body.wm-search-open .wm-header-search-backdrop {
    display: block;
  }

  /* Header actions move to bottom tab bar on phones */
  .header.shop.wm-header .right-bar,
  .header.shop.wm-header .right-bar.wm-header-actions {
    display: none !important;
  }

  .header.shop.wm-header .middle-inner > .container > .row > .col-lg-3.col-md-4.col-12 {
    display: none !important;
  }

  .header.shop.wm-header .middle-inner > .container > .row > .col-lg-7.col-md-6.col-12 {
    display: none !important;
  }

  .header.shop.wm-header .right-bar .wm-action-meta {
    display: none !important;
  }

  .header.shop.wm-header .right-bar .single-icon.wm-action {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
  }

  .header.shop.wm-header .right-bar .sinlge-bar {
    margin: 0;
  }

  .header.shop.wm-header .shopping .shopping-item {
    position: fixed;
    top: calc(var(--wm-mobile-header-h) + env(safe-area-inset-top, 0px) + 8px);
    right: 12px;
    left: 12px;
    width: auto !important;
    max-height: min(70vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1080;
  }

  /* ========================================================================
     Home — app-friendly layout
     ======================================================================== */
  #Gslider {
    margin: 0 0 8px;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    background: #e8efe8;
  }

  #Gslider .carousel-inner,
  #Gslider .carousel-item {
    height: min(38vh, 240px) !important;
    max-height: 240px !important;
  }

  #Gslider .carousel-item::before {
    background: linear-gradient(
      180deg,
      rgba(46, 71, 59, 0.05) 0%,
      rgba(46, 71, 59, 0.28) 55%,
      rgba(46, 71, 59, 0.62) 100%
    ) !important;
  }

  #Gslider .carousel-item > img,
  #Gslider .carousel-inner img {
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #Gslider .carousel-caption {
    left: 14px !important;
    right: 14px !important;
    bottom: 28px !important;
    top: auto !important;
    transform: none !important;
    max-width: none !important;
    text-align: left !important;
  }

  #Gslider .carousel-caption h1 {
    font-size: 1.55rem !important;
    line-height: 1.2;
    margin-bottom: 6px !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  #Gslider .carousel-caption p {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    opacity: 0.95;
  }

  #Gslider .carousel-indicators {
    bottom: 6px !important;
    margin-bottom: 0;
  }

  #Gslider .carousel-indicators li {
    width: 18px !important;
    height: 3px !important;
    margin: 0 2px !important;
  }

  #Gslider .carousel-indicators li.active {
    width: 26px !important;
  }

  #Gslider .carousel-control-prev,
  #Gslider .carousel-control-next {
    width: 32px !important;
    height: 32px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 50%;
    opacity: 1;
  }

  #Gslider .carousel-control-prev {
    left: 8px !important;
  }

  #Gslider .carousel-control-next {
    right: 8px !important;
  }

  #Gslider .carousel-control-prev-icon,
  #Gslider .carousel-control-next-icon {
    width: 14px !important;
    height: 14px !important;
  }

  /* Category cards — swipeable row */
  .small-banner.section {
    padding-top: 4px !important;
    padding-bottom: 8px !important;
  }

  .small-banner .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .small-banner .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    margin: 0 !important;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .small-banner .row::-webkit-scrollbar {
    display: none;
  }

  .small-banner .row > [class*="col-"] {
    flex: 0 0 78% !important;
    max-width: 78% !important;
    width: 78% !important;
    padding: 0 !important;
  }

  .small-banner .single-banner {
    margin-bottom: 0 !important;
    min-height: 108px !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 14px;
    overflow: hidden;
  }

  .small-banner .single-banner .content {
    padding: 12px 14px !important;
  }

  .small-banner .single-banner h3 {
    font-size: 1rem !important;
    margin-bottom: 6px !important;
  }

  .small-banner .single-banner a {
    font-size: 11px !important;
    padding: 8px 12px !important;
    min-height: 36px;
  }

  /* Trending — scrollable filters + 2-col grid */
  .product-area:not(.shop-sidebar) {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .product-area:not(.shop-sidebar) .product-info .nav-main {
    margin-bottom: 12px !important;
    text-align: left !important;
  }

  .product-area:not(.shop-sidebar) .filter-tope-group,
  .product-area:not(.shop-sidebar) .nav.nav-tabs.filter-tope-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 2px 0 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
  }

  .product-area:not(.shop-sidebar) .filter-tope-group::-webkit-scrollbar {
    display: none;
  }

  .product-area:not(.shop-sidebar) .filter-tope-group .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 14px !important;
    font-size: 11px !important;
    min-height: 40px;
    border-radius: 999px !important;
  }

  .product-area:not(.shop-sidebar) .isotope-grid {
    margin-left: -6px !important;
    margin-right: -6px !important;
  }

  .product-area:not(.shop-sidebar) .isotope-item {
    width: 50% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-bottom: 10px !important;
  }

  .product-area:not(.shop-sidebar) .wm-product-card {
    margin-bottom: 0;
    border-radius: 12px;
  }

  .product-area:not(.shop-sidebar) .wm-product-card .product-content {
    padding: 8px 40px 8px 8px !important;
  }

  .product-area:not(.shop-sidebar) .wm-product-card .product-content h3 {
    font-size: 13px !important;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .product-area:not(.shop-sidebar) .wm-product-card .wm-price-current {
    font-size: 14px !important;
  }

  .product-area:not(.shop-sidebar) .wm-product-card .product-img > a {
    aspect-ratio: 1 / 1;
  }

  /* Promo banners — stack full width */
  .midium-banner {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .midium-banner .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px;
  }

  .midium-banner .single-banner {
    min-height: 200px !important;
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 14px;
    overflow: hidden;
  }

  .midium-banner .single-banner::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(46, 71, 59, 0.35) 55%,
      rgba(46, 71, 59, 0.72) 100%
    ) !important;
  }

  .midium-banner .single-banner img {
    object-fit: cover !important;
    object-position: center top !important;
  }

  .midium-banner .single-banner .content {
    top: auto !important;
    bottom: 0 !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 16px 16px 18px !important;
  }

  .midium-banner .single-banner p {
    margin-bottom: 8px !important;
    font-size: 13px !important;
    padding: 5px 10px !important;
  }

  .midium-banner .single-banner h3 {
    font-size: 1.4rem !important;
    color: #fff !important;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  }

  .midium-banner .single-banner h3 span.price-dec {
    color: #fff !important;
  }

  .midium-banner .single-banner a {
    min-height: 40px;
    margin-top: 12px !important;
    width: auto !important;
  }

  /* Hot items carousel */
  .most-popular:not(.wm-pdp-related) {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .most-popular:not(.wm-pdp-related) .owl-carousel.popular-slider {
    padding: 0 4px;
  }

  .most-popular:not(.wm-pdp-related) .owl-item {
    padding: 0 6px;
  }

  .most-popular:not(.wm-pdp-related) .wm-product-card .product-content {
    padding: 10px 44px 10px 10px !important;
  }

  .most-popular:not(.wm-pdp-related) .owl-nav button,
  .most-popular:not(.wm-pdp-related) .owl-nav div {
    width: 34px !important;
    height: 34px !important;
    line-height: 32px !important;
    font-size: 14px !important;
  }

  /* Latest items — compact horizontal rows */
  .shop-home-list {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .shop-home-list .shop-section-title {
    margin-bottom: 12px !important;
  }

  .shop-home-list .row > .col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 10px !important;
  }

  .shop-home-list .wm-latest-item > .row,
  .shop-home-list .single-list.wm-latest-item > .row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    min-height: 0 !important;
  }

  .shop-home-list .wm-latest-item > .row > [class*="col-"]:first-child,
  .shop-home-list .single-list.wm-latest-item > .row > [class*="col-"]:first-child {
    flex: 0 0 108px !important;
    max-width: 108px !important;
    width: 108px !important;
  }

  .shop-home-list .wm-latest-item > .row > .no-padding,
  .shop-home-list .single-list.wm-latest-item > .row > .no-padding {
    flex: 1 1 auto !important;
    max-width: calc(100% - 108px) !important;
    width: auto !important;
  }

  .shop-home-list .wm-latest-item .list-image,
  .shop-home-list .single-list.wm-latest-item .list-image {
    min-height: 108px !important;
    height: 100% !important;
    border-radius: 14px 0 0 14px;
  }

  .shop-home-list .wm-latest-item .list-image img,
  .shop-home-list .single-list.wm-latest-item .list-image img {
    min-height: 108px !important;
    height: 108px !important;
    object-fit: cover;
  }

  .shop-home-list .wm-latest-item .content,
  .shop-home-list .single-list.wm-latest-item .content {
    padding: 10px 12px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .shop-home-list .wm-latest-item .content .title a,
  .shop-home-list .single-list.wm-latest-item .content .title a {
    font-size: 1.15rem !important;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .shop-home-list .wm-list-price-current {
    font-size: 1.25rem !important;
  }

  /* Trust badges — compact 2×2 */
  .shop-services.home .row > [class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 6px !important;
  }

  .shop-services.home .single-service {
    padding: 12px 8px !important;
    margin-bottom: 0 !important;
    min-height: 100%;
    text-align: center;
  }

  .shop-services.home .single-service i {
    font-size: 28px !important;
    margin-bottom: 8px !important;
  }

  .shop-services.home .single-service h4 {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }

  .shop-services.home .single-service p {
    font-size: 14px !important;
    line-height: 1.4;
    margin: 0;
  }

  /* Home page mobile styles → see frontend/css/mobile-home.css (loaded on index) */

  /* ========================================================================
     Shop listing + filter drawer
     ======================================================================== */
  .product-area.shop-sidebar > .container > .row > .col-lg-3.col-md-4 {
    flex: 0 0 0 !important;
    max-width: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
    height: 0;
    border: 0;
  }

  .product-area.shop-sidebar > .container > .row > .col-lg-9.col-md-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .wm-shop-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    z-index: 1200;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0));
    background: #f4f8f4;
    box-shadow: 10px 0 36px rgba(46, 71, 59, 0.18);
  }

  body.wm-filter-open .wm-shop-sidebar {
    transform: translateX(0);
  }

  .wm-mobile-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(23, 36, 31, 0.45);
  }

  body.wm-filter-open .wm-mobile-filter-overlay {
    display: block;
  }

  .wm-mobile-filter-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--wm-line, #d7e3d8);
    border-radius: 999px;
    background: #fff;
    color: var(--wm-ink, #2E473B);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .wm-mobile-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wm-line, #d7e3d8);
  }

  .wm-mobile-filter-head strong {
    font-size: 1.15rem;
    color: var(--wm-ink, #2E473B);
  }

  .wm-mobile-filter-close {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--wm-ink, #2E473B);
    font-size: 1.4rem;
    line-height: 1;
  }

  .wm-shop-top {
    gap: 10px;
  }

  .wm-shop-top__filters {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  /* Shop toolbar — clear mobile stack (overflow visible so slider handles drag) */
  .shop .shop-top.wm-shop-top,
  .shop .wm-shop-top {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: end !important;
    gap: 10px !important;
    padding: 12px !important;
    overflow: visible !important;
    flex-wrap: unset !important;
  }

  .shop .wm-shop-top .wm-mobile-filter-btn {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    justify-content: center;
  }

  .shop .wm-shop-top .shop-shorter,
  .shop .wm-shop-top__filters {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    float: none !important;
    flex: none !important;
  }

  .shop .wm-shop-top .single-shorter,
  .shop .wm-shop-top__field {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
  }

  .shop .wm-shop-top__field label {
    font-size: 11px !important;
  }

  .shop .wm-shop-top__field select,
  .shop .wm-shop-top .nice-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .shop .wm-shop-top__price {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "title title"
      "slider slider"
      "amount apply" !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 4px 0 !important;
    border-top: 1px solid var(--wm-line, #dce5dc);
    overflow: visible !important;
  }

  .shop .wm-shop-top__price-title {
    grid-area: title !important;
    margin: 0 !important;
  }

  .shop .wm-shop-top__price #slider-range {
    grid-area: slider !important;
    /* Inset so both handles stay visible/grabbable at 0% / 100% */
    width: calc(100% - 36px) !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    margin: 18px 18px 14px !important;
    height: 8px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
    touch-action: none !important;
    -ms-touch-action: none !important;
    z-index: 2 !important;
  }

  .shop .wm-shop-top__price #slider-range .ui-slider-handle {
    width: 28px !important;
    height: 28px !important;
    top: -10px !important;
    margin-left: -14px !important;
    z-index: 5 !important;
    touch-action: none !important;
    -ms-touch-action: none !important;
    cursor: grab !important;
    -webkit-tap-highlight-color: transparent !important;
    /* Expand hit area beyond the visible knob */
    box-shadow:
      0 0 0 10px transparent,
      0 4px 10px rgba(46, 71, 59, 0.18) !important;
  }

  .shop .wm-shop-top__price #slider-range .ui-slider-handle.ui-state-active,
  .shop .wm-shop-top__price #slider-range .ui-slider-handle:active {
    cursor: grabbing !important;
  }

  .shop .wm-shop-top__price input#amount {
    grid-area: amount !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: none !important;
    font-size: 12px !important;
    height: 40px !important;
    box-sizing: border-box !important;
  }

  .shop .wm-shop-top__price .filter_button {
    grid-area: apply !important;
    min-height: 40px !important;
    height: 40px !important;
    width: auto !important;
    min-width: 72px !important;
    max-width: 100% !important;
    padding: 0 14px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    line-height: 40px !important;
  }

  .shop .wm-shop-top__price input[type="hidden"] {
    display: none !important;
  }

  .shop .wm-shop-top,
  .shop .wm-shop-top__filters {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .product-area.shop-sidebar .col-lg-4.col-md-6.col-12 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 4px;
    padding-right: 4px;
  }

  /* Shop cards — same layout as home mobile cards */
  .product-area.shop-sidebar .wm-product-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: end;
    margin: 0 0 8px !important;
    height: auto !important;
    min-height: 0 !important;
    border: 1px solid var(--wm-line, #dce5dc) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: none !important;
    transform: none !important;
  }

  .product-area.shop-sidebar .wm-product-card .product-img {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 6px 6px 0 !important;
    background: #fff;
    position: relative;
  }

  .product-area.shop-sidebar .wm-product-card .product-img > a {
    display: block;
    padding: 8px !important;
    border-radius: 10px;
    background: #f4f7f4;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .product-area.shop-sidebar .wm-product-card .product-img > a img,
  .product-area.shop-sidebar .wm-product-card .product-img > a img.default-img,
  .product-area.shop-sidebar .wm-product-card .product-img > a img.hover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    position: static !important;
  }

  .product-area.shop-sidebar .wm-product-card .product-img > a::after {
    display: none !important;
  }

  /* Hide wishlist / quick-view overlays — match home */
  .product-area.shop-sidebar .wm-product-card .button-head,
  .product-area.shop-sidebar .wm-product-card .product-action {
    display: none !important;
  }

  .product-area.shop-sidebar .wm-product-card .product-content {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding: 8px 4px 10px 8px !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .product-area.shop-sidebar .wm-product-card .product-content h3 {
    margin: 0 !important;
  }

  .product-area.shop-sidebar .wm-product-card .product-content h3 a {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--wm-ink, #2e473b) !important;
    text-transform: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-area.shop-sidebar .wm-product-card .product-price {
    margin: 0 !important;
    line-height: 1.2;
  }

  .product-area.shop-sidebar .wm-product-card .wm-price-current {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--wm-ink, #2e473b) !important;
  }

  .product-area.shop-sidebar .wm-product-card .product-price del,
  .product-area.shop-sidebar .wm-product-card .wm-save-badge {
    display: none !important;
  }

  .product-area.shop-sidebar .wm-product-card .product-action-2 {
    position: static !important;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    padding: 0 8px 10px 0;
    width: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    top: auto !important;
  }

  .product-area.shop-sidebar .wm-product-card .product-action-2 a {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    background: var(--wm-ink, #2e473b) !important;
    box-shadow: 0 2px 8px rgba(46, 71, 59, 0.18) !important;
  }

  .product-area.shop-sidebar .wm-product-card:not(:has(.product-action-2)) .product-content {
    grid-column: 1 / -1;
    padding-right: 8px !important;
  }

  .product-area.shop-sidebar .wm-product-card .product-img a span.new,
  .product-area.shop-sidebar .wm-product-card .product-img a span.hot,
  .product-area.shop-sidebar .wm-product-card .product-img a span.price-dec,
  .product-area.shop-sidebar .wm-product-card .product-img a span.out-of-stock {
    top: 12px !important;
    left: 12px !important;
    font-size: 10px !important;
    padding: 3px 6px !important;
    border-radius: 5px !important;
  }

  /* ========================================================================
     Product detail — app-friendly mobile PDP
     ======================================================================== */
  .shop.single.wm-pdp {
    padding-top: 4px !important;
    padding-bottom: calc(120px + var(--wm-tabbar-h) + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Extra bottom space when related products aren’t present */
  .shop.single.wm-pdp:last-of-type {
    margin-bottom: 24px !important;
  }

  .wm-pdp__hero {
    padding: 10px !important;
    border-radius: 14px;
    margin-bottom: 12px !important;
  }

  .wm-pdp__info,
  .shop.single .product-des {
    margin-top: 10px !important;
    padding-left: 0 !important;
  }

  .wm-pdp__title {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
  }

  .wm-pdp__meta-row {
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  .wm-pdp__price-now {
    font-size: 1.35rem !important;
  }

  .wm-pdp__summary {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
  }

  /* Size taps — compact like home chips */
  .wm-pdp .wm-size-pill {
    min-width: 44px !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  .wm-pdp .wm-size-pill__qty {
    font-size: 10px !important;
  }

  .wm-pdp .wm-size-pills__hint {
    display: none;
  }

  /* Fixed buy bar above tab bar */
  .wm-pdp__actions {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: calc(var(--wm-tabbar-h) + env(safe-area-inset-bottom, 0px));
    z-index: 1250;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--wm-line, #dce5dc);
    box-shadow: 0 -8px 24px rgba(46, 71, 59, 0.12);
  }

  .wm-pdp__qty-label {
    display: none !important;
  }

  .wm-pdp__qty,
  .shop.single .quantity.wm-pdp__qty {
    flex: 0 0 auto !important;
    gap: 0 !important;
  }

  .wm-pdp__qty .input-group,
  .shop.single .wm-pdp__qty .input-group {
    width: 118px !important;
    max-width: 118px !important;
    height: 48px !important;
    border-radius: 12px !important;
  }

  .wm-pdp__qty .button,
  .shop.single .wm-pdp__qty .button {
    flex: 0 0 36px !important;
    width: 36px !important;
    position: static !important;
    display: inline-flex !important;
  }

  .wm-pdp__qty .btn-number,
  .shop.single .wm-pdp__qty .btn-number {
    min-height: 48px !important;
    font-size: 14px !important;
  }

  .wm-pdp__qty .input-number,
  .shop.single .wm-pdp__qty .input-number {
    width: 46px !important;
    max-width: 46px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

  .wm-pdp__cart {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    min-width: 0;
  }

  .wm-pdp__cart .btn:not(.min) {
    flex: 1 1 auto;
    width: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap;
  }

  .wm-pdp__cart .btn.min {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }

  .wm-pdp__tax {
    margin-top: 8px;
    font-size: 13px;
  }

  .wm-pdp__tax p {
    margin: 0 0 6px;
  }

  /* Tabs + readable description */
  .wm-pdp__tabs {
    padding: 12px !important;
    margin-bottom: 16px;
  }

  .wm-pdp__tabs .nav-tabs {
    display: flex;
    gap: 4px;
    border: 0 !important;
    margin-bottom: 12px !important;
  }

  .wm-pdp__tabs .nav-item {
    flex: 1;
  }

  .wm-pdp__tabs .nav-link {
    text-align: center;
    padding: 10px 8px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    min-height: 42px;
  }

  .wm-pdp__desc {
    font-size: 14px !important;
    line-height: 1.55 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .wm-pdp__desc p {
    margin: 0 0 0.85em;
  }

  .wm-pdp__desc--clamp:not(.is-expanded) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    max-height: 10.2em;
  }

  .wm-pdp__read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wm-ink, #2E473B);
    font-size: 14px;
    font-weight: 700;
    min-height: 40px;
    cursor: pointer;
  }

  .wm-pdp__read-more[hidden] {
    display: none !important;
  }

  .wm-pdp .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .wm-pdp .flex-control-thumbs::-webkit-scrollbar {
    display: none;
  }

  .wm-pdp .flex-control-thumbs li {
    flex: 0 0 64px;
    width: 64px !important;
    height: 64px !important;
    float: none !important;
  }

  /* Related products — peek next card, clear fixed buy bar + tab bar */
  .wm-pdp-related {
    padding-top: 8px !important;
    padding-bottom: calc(140px + var(--wm-tabbar-h) + env(safe-area-inset-bottom, 0px)) !important;
    margin-bottom: 24px !important;
  }

  .wm-pdp-related__head {
    margin-bottom: 12px !important;
    padding: 0 !important;
  }

  .wm-pdp-related__head p {
    margin: 4px 0 0;
    font-size: 13px;
  }

  .wm-pdp-related .owl-carousel.popular-slider {
    padding: 0 0 8px !important;
  }

  .wm-pdp-related .owl-item {
    padding-bottom: 4px;
  }

  .wm-pdp-related .wm-product-card {
    position: relative;
    margin-bottom: 0 !important;
  }

  .wm-pdp-related .wm-product-card .product-content {
    position: relative;
    z-index: 1;
    padding: 10px 48px 12px 10px !important;
    gap: 6px !important;
    min-height: 72px;
  }

  .wm-pdp-related .wm-product-card .product-content h3 {
    margin-bottom: 0 !important;
  }

  .wm-pdp-related .wm-product-card .product-price {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    margin-top: 2px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .wm-pdp-related .wm-product-card .wm-price-current {
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--wm-ink, #17241f) !important;
    line-height: 1.2 !important;
  }

  .wm-pdp-related .wm-product-card .product-action-2 {
    right: 10px !important;
    bottom: 10px !important;
    z-index: 2;
  }

  .wm-pdp-related .wm-product-card .product-action-2 a {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  .wm-pdp-related .owl-nav button,
  .wm-pdp-related .owl-nav div,
  .wm-pdp-related.most-popular .owl-carousel .owl-nav div {
    width: 34px !important;
    height: 34px !important;
    line-height: 32px !important;
    font-size: 14px !important;
    margin-top: -17px !important;
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(46, 71, 59, 0.16) !important;
  }

  .wm-pdp-related .owl-nav .owl-prev {
    left: 2px !important;
  }

  .wm-pdp-related .owl-nav .owl-next {
    right: 2px !important;
  }

  /* Compact breadcrumbs on PDP */
  .wm-breadcrumbs--bar {
    padding: 6px 0 2px !important;
  }

  .wm-breadcrumbs__list li:last-child {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ========================================================================
     Cart / wishlist — compact, no overflow, clear of tab bar
     ======================================================================== */
  .wm-cart-page,
  .wm-checkout-page,
  .wm-wish-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .wm-cart-page .container,
  .wm-checkout-page .container {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .wm-cart.section,
  .wm-checkout.section {
    padding-top: 8px !important;
    padding-bottom: 16px !important;
  }

  .wm-cart__layout,
  .wm-cart__layout--simple,
  .wm-ck-layout {
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .wm-cart__main,
  .wm-cart__aside,
  .wm-ck-main,
  .wm-ck-aside,
  .wm-ck-sheet,
  .wm-ck-summary {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .wm-cart__aside {
    position: static !important;
  }

  .wm-cart__summary {
    border-radius: 14px;
    padding: 14px 12px 16px !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .wm-cart__coupon-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    box-sizing: border-box !important;
  }

  .wm-cart__coupon-form input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    box-sizing: border-box !important;
  }

  .wm-cart__coupon-form .wm-cart__btn--soft,
  .wm-cart__coupon-form button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .wm-cart__summary h2,
  .wm-cart__layout--simple .wm-cart__summary h2 {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
  }

  .wm-cart__row--simple,
  .wm-wish__row {
    border-radius: 12px !important;
    padding: 12px !important;
    background: #fff;
    gap: 8px 10px !important;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Wishlist: thumb + full-width title, actions on next row */
  .wm-wish__row {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-areas: "thumb meta" "actions actions" !important;
    align-items: start !important;
    justify-items: stretch !important;
  }

  .wm-wish__thumb {
    grid-area: thumb !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
    border-radius: 10px !important;
  }

  .wm-wish__meta {
    grid-area: meta !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .wm-wish__title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }

  .wm-wish__price {
    margin-top: 4px !important;
    font-size: 13px !important;
  }

  .wm-wish__actions {
    grid-area: actions !important;
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .wm-wish__btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .wm-cart__row--simple {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) auto !important;
    grid-template-areas: "thumb meta remove" "qty qty total" !important;
    align-items: start !important;
    border: 1px solid var(--wm-line, #dce5dc) !important;
    margin: 0 0 10px !important;
  }

  .wm-cart__row--simple .wm-cart__thumb,
  .wm-cart__thumb {
    grid-area: thumb !important;
    width: 72px !important;
    min-width: 72px !important;
    height: 72px !important;
    border-radius: 10px !important;
    overflow: hidden;
  }

  .wm-cart__row--simple .wm-cart__thumb img,
  .wm-cart__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 10px;
  }

  .wm-cart__row--simple .wm-cart__meta {
    grid-area: meta !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 2px !important;
    padding: 0 !important;
  }

  .wm-cart__row--simple .wm-cart__title,
  .wm-cart__row--simple h3,
  .wm-cart__row--simple h4 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .wm-cart__meta-line,
  .wm-cart__price-line {
    font-size: 11px !important;
    margin: 0 !important;
  }

  .wm-cart__row--simple .wm-cart__side {
    display: contents !important;
  }

  .wm-cart__row--simple .wm-cart__remove-btn {
    grid-area: remove !important;
    justify-self: end !important;
    align-self: start !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }

  .wm-cart__row--simple .wm-cart__qty {
    grid-area: qty !important;
    align-self: center !important;
    margin: 0 !important;
    padding-top: 4px;
  }

  .wm-cart__qty,
  .wm-cart__stepper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 108px !important;
    height: 34px !important;
    margin: 0 !important;
    border: 1px solid var(--wm-line, #dce5dc) !important;
    border-radius: 999px !important;
    background: #f7faf7 !important;
    overflow: hidden !important;
  }

  .wm-cart__qty .button,
  .wm-cart__stepper .button {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 100% !important;
    margin: 0 !important;
  }

  .wm-cart__qty .button .btn,
  .wm-cart__qty .btn-number,
  .wm-cart__stepper .btn-number,
  .wm-cart .wm-cart__stepper .btn-primary.btn-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--wm-ink, #17241f) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    opacity: 1 !important;
  }

  .wm-cart__qty .button .btn:disabled,
  .wm-cart__qty .btn-number:disabled,
  .wm-cart__stepper .btn-number:disabled,
  .wm-cart .wm-cart__stepper .btn-primary.btn-number:disabled {
    opacity: 0.35 !important;
    background: transparent !important;
    color: var(--wm-ink, #17241f) !important;
  }

  .wm-cart__qty .button .btn i,
  .wm-cart__stepper .btn-number i {
    display: block !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  .wm-cart__qty .input-number,
  .wm-cart__stepper .input-number {
    flex: 1 1 auto !important;
    width: 40px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  .wm-cart__row--simple .wm-cart__total,
  .wm-cart__row--simple .wm-cart__price,
  .wm-cart__row--simple .price {
    grid-area: total !important;
    align-self: center !important;
    justify-self: end !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    padding-top: 4px;
  }

  .wm-cart__remove-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 13px !important;
  }

  .wm-cart__summary .wm-cart__btn--primary,
  .wm-cart__aside .wm-cart__btn--primary,
  .wm-cart a.btn.animate,
  .wm-cart .btn-primary:not(.btn-number) {
    position: static !important;
    bottom: auto !important;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px !important;
    margin-top: 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: none;
  }

  .wm-cart__totals {
    margin: 0 0 4px !important;
  }

  .wm-cart__totals li.last {
    margin-bottom: 0 !important;
    padding-bottom: 4px !important;
  }

  /* Checkout page CTA can stay sticky above tab bar */
  .wm-ck-cta {
    min-height: 48px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  /* Hide scroll-up on mobile — conflicts with bottom tab bar on every page */
  #scrollUp {
    display: none !important;
  }

  /* Pagination — compact, sits cleanly above tab bar */
  .wm-pagination,
  .pagination,
  .shop .pagination,
  nav[role="navigation"] .pagination,
  .wm-user .pagination {
    margin-bottom: 8px !important;
  }

  .wm-pagination {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 16px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  .wm-pagination__meta {
    width: 100% !important;
    text-align: center !important;
    font-size: 12px !important;
    white-space: normal !important;
  }

  .wm-pagination__list {
    width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .wm-pagination__btn {
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  .wm-pagination__btn--nav {
    padding: 0 12px !important;
  }

  .wm-pagination__nav-text {
    font-size: 11px !important;
  }

  /* ========================================================================
     Checkout — compact, readable mobile layout
     ======================================================================== */
  .wm-checkout-page .wm-breadcrumbs--bar {
    padding: 8px 0 !important;
  }

  .wm-checkout-page .wm-breadcrumbs__list a,
  .wm-checkout-page .wm-breadcrumbs__current {
    font-size: 12px !important;
    padding: 6px 10px !important;
    min-height: 0 !important;
  }

  .wm-ck-layout {
    gap: 12px;
  }

  .wm-ck-aside {
    order: -1;
    position: static !important;
  }

  .wm-ck-sheet,
  .wm-ck-summary {
    border-radius: 14px !important;
    overflow: visible !important;
  }

  .wm-ck-summary__head {
    padding: 12px !important;
    align-items: center !important;
  }

  .wm-ck-summary__title h2 {
    font-size: 1.05rem !important;
  }

  .wm-ck-summary__count {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }

  .wm-ck-summary__edit {
    font-size: 12px !important;
    padding: 6px 0 !important;
  }

  .wm-ck-items {
    max-height: none !important;
    padding: 4px 12px 8px !important;
  }

  .wm-ck-item {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 10px 0 !important;
  }

  .wm-ck-item__media {
    width: 52px !important;
    height: 52px !important;
    border-radius: 10px !important;
    overflow: visible !important;
  }

  .wm-ck-item__media img {
    border-radius: 9px !important;
  }

  .wm-ck-item__qty {
    top: -6px !important;
    right: -6px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
  }

  .wm-ck-item__info {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 1px;
  }

  .wm-ck-item__info strong {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }

  .wm-ck-item__info small,
  .wm-ck-item__info em {
    font-size: 11px !important;
    margin-top: 2px !important;
  }

  .wm-ck-item__side {
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    padding-top: 0 !important;
  }

  .wm-ck-item__price {
    order: -1;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    line-height: 1.2;
  }

  .wm-ck-item__remove button {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }

  .wm-ck-block {
    padding: 14px 12px !important;
  }

  .wm-ck-block h2,
  .wm-ck-summary__title h2 {
    font-size: 1.05rem !important;
  }

  .wm-ck-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .wm-ck-field label {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }

  .wm-ck-field input,
  .wm-ck-field select {
    min-height: 42px !important;
    font-size: 16px !important; /* iOS zoom guard */
    border-radius: 10px !important;
  }

  .wm-ck-method {
    padding: 10px 12px !important;
    border-radius: 10px !important;
    gap: 8px !important;
  }

  .wm-ck-method__name {
    font-size: 13px !important;
  }

  .wm-ck-method__price,
  .wm-ck-method__hint {
    font-size: 11px !important;
  }

  .wm-ck-summary__promo {
    margin: 0 12px 0 !important;
    padding: 10px 12px !important;
    position: relative;
    z-index: 1;
  }

  .wm-ck-coupon {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  .wm-ck-coupon input {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 40px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }

  .wm-ck-coupon button {
    min-height: 40px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  .wm-ck-totals {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: 12px 12px 8px !important;
    background: transparent !important;
  }

  .wm-ck-totals > div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 0 !important;
    min-height: 28px;
  }

  .wm-ck-totals > div,
  .wm-ck-totals dt,
  .wm-ck-totals dd {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .wm-ck-totals__grand {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 10px 0 4px !important;
    border-top: 1px dashed var(--wm-line, #d7e4d4) !important;
  }

  .wm-ck-totals__grand span {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--wm-ink, #17241f) !important;
  }

  .wm-ck-totals__grand strong {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #244F41 !important;
  }

  /* Keep CTA in normal flow so it cannot cover Subtotal/Shipping */
  .wm-ck-summary__actions {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    margin: 0 !important;
    padding: 8px 12px 14px !important;
    border-top: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .wm-ck-cta {
    min-height: 48px !important;
    border-radius: 12px !important;
    padding: 8px 10px !important;
  }

  .wm-ck-cta__copy strong {
    font-size: 13px !important;
  }

  .wm-ck-cta__amount {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }

  .wm-ck-cta__icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  /* ========================================================================
     Auth / contact / about / track
     ======================================================================== */
  .wm-auth__shell {
    max-width: 100%;
    width: 100%;
    border-radius: 16px;
    grid-template-columns: 1fr !important;
  }

  .wm-contact-layout {
    gap: 14px;
  }

  .wm-about-hero {
    min-height: 420px !important;
    padding: 32px 0 28px !important;
  }

  .tracking_box_area,
  .tracking_form {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .tracking_form input,
  .tracking_form .form-control,
  .tracking_form .submit_btn {
    width: 100%;
    min-height: 48px;
  }

  /* ========================================================================
     Footer
     ======================================================================== */
  .footer.wm-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
  }

  .footer.wm-footer .footer-top {
    padding-top: 28px;
    padding-bottom: 12px;
  }

  .footer.wm-footer .single-footer {
    margin-bottom: 22px;
  }

  /* ========================================================================
     Quick view modal
     ======================================================================== */
  .wm-quickview-dialog.modal-dialog {
    margin: 8px auto !important;
    max-height: calc(100dvh - 16px);
  }

  .wm-quickview-dialog .modal-content {
    max-height: calc(100dvh - 16px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }
}

/* Phones — denser product grid / typography (aligned with home) */
@media (max-width: 575.98px) {
  .product-area.shop-sidebar .col-lg-4.col-md-6.col-12 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .wm-product-card .product-content h3 a {
    font-size: 13px !important;
  }

  .wm-product-card .wm-price-current {
    font-size: 14px !important;
  }

  #Gslider .carousel-inner,
  #Gslider .carousel-item {
    height: min(32vh, 200px) !important;
    max-height: 200px !important;
  }

  body.wm-home-page .wm-home-app-grid {
    gap: 8px !important;
  }

  body.wm-home-page .wm-home-cats .row > [class*="col-"] {
    flex: 0 0 62% !important;
    max-width: 62% !important;
    width: 62% !important;
  }

  .wm-pdp__info h2,
  .wm-pdp .product-name,
  .wm-pdp h2,
  .wm-pdp__title {
    font-size: 1.2rem !important;
  }

  .wm-pdp__price-now {
    font-size: 1.3rem !important;
  }
}

/* Desktop: ensure mobile-only UI never appears */
@media (min-width: 992px) {
  .wm-mobile-filter-btn,
  .wm-mobile-filter-overlay,
  .wm-mobile-filter-head,
  .wm-app-tabbar,
  .wm-tabbar-spacer,
  .wm-pdp__read-more,
  .wm-header-search-backdrop {
    display: none !important;
  }

  .wm-pdp__desc--clamp {
    display: block !important;
    -webkit-line-clamp: unset !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* ==========================================================================
   App shell — bottom tab bar + denser surfaces
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Tab bar sizing is defined above on body.wm-app-shell — keep shell surfaces here */

  /* Compact footer — app style (no copyright on mobile) */
  .footer.wm-footer .footer-top {
    display: none !important;
  }

  .footer.wm-footer {
    display: none !important;
  }

  /* App-like cards / surfaces */
  .wm-product-card,
  .wm-cart__row--simple,
  .wm-wish__row,
  .wm-ck-sheet,
  .wm-ck-summary,
  .wm-cart__summary,
  .wm-auth__shell,
  .wm-contact-form-panel,
  .wm-contact-aside__card,
  .wm-pdp__hero,
  .wm-pdp__tabs {
    border-radius: var(--wm-app-radius) !important;
    box-shadow: 0 4px 18px rgba(46, 71, 59, 0.06);
    background: var(--wm-app-surface);
  }

  .section-title h2 {
    font-size: 1.2rem !important;
    letter-spacing: -0.02em;
  }

  .shop-services.section {
    padding-top: 8px !important;
    padding-bottom: 4px !important;
  }

  .shop-services .single-service {
    background: var(--wm-app-surface);
    border-radius: 14px;
    padding: 14px 12px !important;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(46, 71, 59, 0.05);
  }

  /* Checkout CTA stays in flow — sticky was covering Subtotal/Shipping */
  .wm-ck-summary__actions {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .wm-cart__summary .wm-cart__btn--primary,
  .wm-cart__aside .wm-cart__btn--primary {
    position: static !important;
    bottom: auto !important;
  }

  /* Auth pages — stack full width (do not sit beside breadcrumbs) */
  .wm-auth-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: calc(100dvh - var(--wm-mobile-header-h) - var(--wm-tabbar-h));
    padding-top: 8px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .wm-auth-page > .wm-breadcrumbs,
  .wm-auth-page > .wm-auth {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .wm-auth-page .wm-auth.section {
    padding: 8px 0 20px !important;
  }

  .wm-auth-page .container {
    width: 100%;
    max-width: 100%;
  }

  .wm-auth__shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: var(--wm-app-radius) !important;
  }

  .wm-auth__brand,
  .wm-auth__card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .wm-auth__brand {
    padding: 22px 18px !important;
  }

  .wm-auth__card {
    padding: 22px 18px 20px !important;
  }

  .wm-auth__seam-orb {
    display: none;
  }

  .wm-auth__brand-title {
    font-size: 1.45rem !important;
  }

  .wm-auth__brand-lede {
    font-size: 0.9rem !important;
    margin-bottom: 12px !important;
  }

  /* Smooth scrolling lists */
  .wm-cart__list,
  .wm-wish__list,
  .shopping-list {
    -webkit-overflow-scrolling: touch;
  }

  /* Larger primary buttons (exclude qty steppers) */
  .btn-primary:not(.btn-number),
  .btn.animate:not(.btn-number),
  .wm-ck-cta,
  .single_add_to_cart_button,
  button[type="submit"].btn:not(.btn-number) {
    border-radius: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
  }
}

/* ==========================================================================
   User dashboard (SB Admin) — mobile only
   ========================================================================== */
@media (max-width: 991.98px) {
  body#page-top #content-wrapper {
    width: 100%;
  }

  body#page-top #content {
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0));
  }

  body#page-top .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body#page-top .card {
    border-radius: 14px;
    overflow: hidden;
  }

  body#page-top .card-header {
    padding: 12px 14px;
  }

  body#page-top .table-responsive {
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }

  body#page-top .table th,
  body#page-top .table td {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.55rem 0.65rem;
  }

  body#page-top .btn-sm {
    min-height: 36px;
    min-width: 36px;
  }

  body#page-top .topbar {
    height: auto;
    min-height: 56px;
  }

  body#page-top #sidebarToggleTop {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
}

/* ==========================================================================
   FINAL: bottom menu MUST match on all pages (home, shop, PDP, account…)
   Loaded last so nothing can shrink labels/icons per-page.
   ========================================================================== */
@media (max-width: 991.98px) {
  html,
  body.wm-app-shell,
  body.js {
    overflow-x: hidden !important;
  }

  /* Never use .shop.single ~ .wm-app-tabbar here — it beats --auth and wraps Logout */
  .wm-app-tabbar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1400 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
    grid-auto-flow: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .wm-app-tabbar.wm-app-tabbar--auth {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .wm-app-tabbar .wm-app-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 4px 1px !important;
    gap: 2px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    color: #5a6b62 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .wm-app-tabbar .wm-app-tab.is-active {
    color: #2E473B !important;
    background: #E8F2E7 !important;
  }

  .wm-app-tabbar .wm-app-tab > span:not(.wm-app-tab__icon-wrap) {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    color: inherit !important;
  }

  .wm-app-tabbar .wm-app-tab i,
  .wm-app-tabbar .wm-app-tab i::before {
    font-size: 18px !important;
    line-height: 1 !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .wm-app-tabbar .wm-app-tab__icon-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }

  .wm-app-tabbar .wm-app-tab.wm-app-tab--logout {
    color: #D14D41 !important;
  }

  /* PDP buy bar — clear of tab bar, even control heights */
  .wm-pdp__actions {
    align-items: center !important;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 8px 12px !important;
    gap: 8px !important;
  }

  .wm-pdp__qty .input-group,
  .shop.single .wm-pdp__qty .input-group,
  .wm-pdp__cart .btn:not(.min),
  .wm-pdp__cart .btn.min {
    height: 48px !important;
    min-height: 48px !important;
  }

  .wm-pdp__cart .btn:not(.min),
  .wm-pdp__cart .btn.min {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  /* Product cards — match home (compact & readable) */
  .wm-product-card .product-content h3,
  .wm-product-card .product-content h3 a {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }

  .wm-product-card .wm-price-current {
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .wm-product-card .product-action-2 a {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }

  .section-title h2,
  .shop-section-title h1 {
    font-size: 1.2rem !important;
  }

  .wm-pdp__title,
  .wm-pdp__info h2,
  .wm-pdp .product-name,
  .wm-pdp h2 {
    font-size: 1.25rem !important;
  }

  .wm-pdp__price-now {
    font-size: 1.35rem !important;
  }

  .wm-pdp__summary,
  .wm-pdp__desc {
    font-size: 14px !important;
  }

  .wm-pdp-related__head h2,
  .wm-pdp-related .section-title h2 {
    font-size: 1.15rem !important;
  }
}
