/* ===== JD / Taobao style mobile mall (max 767px) ===== */
@media (max-width: 767px) {
  :root {
    --mall-accent: #ff5000;
    --mall-accent-dark: #e64500;
    --mall-bg: #f5f5f5;
    --mobile-tabbar-height: 52px;
  }

  body {
    background: var(--mall-bg);
  }

  /* Hide classic boutique mobile header */
  .mobile-header-classic {
    display: none !important;
  }

  .site-header {
    background: #fff;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Mall header — PDD white search bar */
  .mobile-mall-header--pdd,
  .mobile-mall-header {
    background: #fff;
    padding: 8px 12px;
  }

  .mobile-mall-header--pdd .mobile-mall-top,
  .mobile-mall-top {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .mobile-mall-header--pdd .mobile-mall-search,
  .mobile-mall-search {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 36px;
    border-radius: 18px;
    background: #f2f2f2;
    overflow: hidden;
    padding-right: 4px;
    border: 1px solid #ececec;
  }

  .mobile-mall-search-field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0 0 0 12px;
    cursor: pointer;
    text-align: left;
  }

  .mobile-mall-search-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: #bbb;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M20 20l-4-4' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M20 20l-4-4' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
  }

  .mobile-mall-search-placeholder {
    flex: 1;
    min-width: 0;
    color: #999;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-mall-header--pdd .mobile-mall-search-btn,
  .mobile-mall-search-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 28px;
    border: 0;
    border-radius: 14px;
    background: #e02e24;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 10px;
  }

  .mobile-subcat-empty {
    margin: 0;
    padding: 16px 0;
    text-align: center;
    color: #999;
    font-size: 12px;
  }

  .mobile-topnav__track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-topnav__track::-webkit-scrollbar {
    display: none;
  }

  .mobile-mall-camera {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
  }

  .mobile-mall-camera-icon {
    width: 20px;
    height: 20px;
    background: #888;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 4h6l1 2h4v12H4V6h4zm3 14a5 5 0 1 0 0-10 5 5 0 0 0 0 10z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 4h6l1 2h4v12H4V6h4zm3 14a5 5 0 1 0 0-10 5 5 0 0 0 0 10z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
  }

  .mobile-mall-cart {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    color: #fff;
  }

  .mobile-mall-cart-icon {
    width: 24px;
    height: 24px;
    background: #fff;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6 6h15l-1.5 9H8z'/%3E%3Ccircle cx='9' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6 6h15l-1.5 9H8z'/%3E%3Ccircle cx='9' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
  }

  .mobile-mall-cart-count {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #fff;
    color: var(--mall-accent);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 0;
  }

  .mobile-mall-chips {
    display: none;
  }

  .mobile-mall-cart {
    display: none;
  }

  /* PDD home shell */
  .mobile-mall-home--pdd {
    background: var(--mall-bg);
  }

  .mobile-home-panel {
    background: #fff;
    margin-bottom: 8px;
  }

  .mobile-topnav {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 90;
  }

  .mobile-topnav__item {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    padding: 10px 11px 8px;
    font-size: 14px;
    color: #151515;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
  }

  .mobile-topnav__item.is-active {
    color: #e02e24;
    font-weight: 700;
  }

  .mobile-topnav__item.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 22px;
    height: 3px;
    margin-left: -11px;
    border-radius: 2px;
    background: #e02e24;
  }

  .mobile-subcat-panels {
    padding: 8px 6px 2px;
  }

  .mobile-subcat-grid-wrap.is-collapsed .mobile-subcat-item:nth-child(n+11) {
    display: none;
  }

  .mobile-subcat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin: 2px 0 0;
    padding: 8px 0 4px;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 12px;
    cursor: pointer;
  }

  .mobile-subcat-toggle__icon {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #bbb;
    border-bottom: 1.5px solid #bbb;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform .2s ease;
  }

  .mobile-subcat-grid-wrap:not(.is-collapsed) .mobile-subcat-toggle__icon {
    transform: rotate(-135deg);
    margin-top: 2px;
  }

  .mobile-subcat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 2px;
  }

  .mobile-subcat-thumb {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f3f3f3;
  }

  .mobile-subcat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mobile-subcat-thumb-fallback {
    font-size: 18px;
    font-weight: 700;
    color: #e02e24;
  }

  .mobile-subcat-panel[hidden] {
    display: none !important;
  }

  .mobile-subcat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    min-width: 0;
  }

  .mobile-subcat-label {
    width: 100%;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-spotlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-top: 8px solid #f5f5f5;
  }

  .mobile-spotlight-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 0;
    padding: 10px 12px 12px;
    min-height: 124px;
    border-right: 1px solid #f2f2f2;
  }

  .mobile-spotlight-card:last-child {
    border-right: 0;
  }

  .mobile-spotlight-card__head strong {
    display: block;
    font-size: 15px;
    color: #222;
    margin-bottom: 2px;
  }

  .mobile-spotlight-card__head span {
    font-size: 11px;
    color: #999;
  }

  .mobile-spotlight-card__products {
    display: flex;
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-spotlight-product {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-spotlight-product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
  }

  .mobile-spotlight-product em {
    font-style: normal;
    font-size: 11px;
    color: #e02e24;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .spotlight-rank .mobile-spotlight-card__head strong {
    color: #e02e24;
  }

  .spotlight-quality .mobile-spotlight-card__head strong {
    color: #2f7d32;
  }

  .products-section--desktop,
  .hero-carousel-mobile,
  .mobile-flash-bar,
  .home-brand-zone,
  .desktop-yahoo-home {
    display: none !important;
  }

  .mobile-feed {
    display: block;
    background: #f5f5f5;
    padding: 6px 6px 10px;
    margin-bottom: 0;
  }

  .mobile-feed-panel[hidden] {
    display: none !important;
  }

  .mobile-feed .xueer-home-products {
    margin: 0;
  }

  .mobile-feed .woocommerce ul.products,
  .mobile-feed ul.products {
    gap: 6px !important;
    margin: 0;
    padding: 0;
  }

  .product-card--pdd {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
  }

  .product-card--pdd .product-thumb {
    border-radius: 6px 6px 0 0;
    background: #fff;
  }

  .product-card--pdd .product-info {
    padding: 8px 8px 10px;
  }

  .product-card--pdd .product-name {
    font-size: 13px;
    line-height: 1.35;
    color: #151515;
    margin: 0 0 6px;
    -webkit-line-clamp: 2;
  }

  .product-card--pdd .product-price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .product-card--pdd .product-price,
  .product-card--pdd .woocommerce ul.products li.product .price {
    font-size: 17px !important;
    font-weight: 700;
    line-height: 1.1;
  }

  .product-card--pdd .product-price .woocommerce-Price-currencySymbol {
    font-size: 12px;
  }

  .product-card--pdd .product-sales-meta {
    font-size: 11px;
    color: #9c9c9c;
    line-height: 1.2;
  }

  .product-card--pdd .product-badge,
  .product-card--pdd .product-flash-badge {
    display: none;
  }

  .section-header--mobile-feed {
    display: none;
  }

  /* Mall homepage */
  .mobile-mall-home {
    background: var(--mall-bg);
  }

  .mobile-home-blocks .mobile-promo-grid {
    display: none;
  }

  .mobile-home-blocks {
    background: #fff;
    margin-bottom: 8px;
  }

  /* Mobile banner */
  .hero-carousel-mobile {
    display: block !important;
    margin-bottom: 8px;
    border-radius: 0;
  }

  .hero-carousel-mobile .hero-slide-link {
    min-height: 150px;
  }

  .hero-carousel-mobile .hero-slide-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.22));
  }

  .hero-carousel-mobile .hero-content {
    padding: 24px 16px;
    text-align: left;
  }

  .hero-carousel-mobile .hero-sub,
  .hero-carousel-mobile .hero-desc {
    display: none;
  }

  .hero-carousel-mobile .hero-title {
    font-family: var(--font-sans);
    font-size: 22px;
    letter-spacing: .06em;
    font-weight: 700;
  }

  .hero-carousel-mobile .hero-btn {
    background: var(--mall-accent);
    border-color: var(--mall-accent);
    color: #fff;
    border-radius: 16px;
    padding: 8px 18px;
    font-size: 12px;
  }

  .hero-carousel-mobile .hero-dot.is-active {
    background: var(--mall-accent);
    width: 16px;
    border-radius: 4px;
  }

  /* Icon grid 金刚区 */
  .mobile-cat-grid--mall {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 12px 6px 6px;
    border: 0;
    border-bottom: 0;
    background: #fff;
  }

  .mobile-cat-grid--mall .mobile-cat-item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 0;
    padding: 8px 4px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 400;
    color: #333;
    text-align: center;
  }

  .mobile-cat-grid--mall .mobile-cat-item:active {
    background: transparent;
    opacity: .75;
  }

  .mobile-cat-grid--mall .mobile-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #ff7a45, #ff5000);
  }

  .mobile-cat-grid--mall .mobile-cat-icon svg {
    width: 22px;
    height: 22px;
  }

  .mobile-cat-grid--mall .cat-new .mobile-cat-icon { background: linear-gradient(135deg, #ff8f45, #ff5000); }
  .mobile-cat-grid--mall .cat-hot .mobile-cat-icon { background: linear-gradient(135deg, #ff5e62, #ff3b30); }
  .mobile-cat-grid--mall .cat-sale .mobile-cat-icon { background: linear-gradient(135deg, #ff6b6b, #ee0979); }
  .mobile-cat-grid--mall .cat-tops .mobile-cat-icon { background: linear-gradient(135deg, #4facfe, #00c6fb); }
  .mobile-cat-grid--mall .cat-dress .mobile-cat-icon { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
  .mobile-cat-grid--mall .cat-jump .mobile-cat-icon { background: linear-gradient(135deg, #f6d365, #fda085); }
  .mobile-cat-grid--mall .cat-bottom .mobile-cat-icon { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
  .mobile-cat-grid--mall .cat-shoes .mobile-cat-icon { background: linear-gradient(135deg, #cfd9df, #e2ebf0); color: #444; }
  .mobile-cat-grid--mall .cat-coat .mobile-cat-icon { background: linear-gradient(135deg, #6b7b8c, #8e9eab); }
  .mobile-cat-grid--mall .cat-acc .mobile-cat-icon { background: linear-gradient(135deg, #fccb90, #d57eeb); }
  .mobile-cat-grid--mall .cat-inner .mobile-cat-icon { background: linear-gradient(135deg, #ff9a9e, #fecfef); color: #555; }
  .mobile-cat-grid--mall .cat-home .mobile-cat-icon { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); color: #444; }
  .mobile-cat-grid--mall .cat-all .mobile-cat-icon { background: linear-gradient(135deg, #434343, #666); }

  .mobile-cat-grid--mall .mobile-cat-label {
    flex: none;
    width: 100%;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Brand zone */
  .home-brand-zone {
    margin: 0 0 8px;
    padding: 14px 10px 16px;
    background: #fff;
  }

  .home-brand-zone__header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 2px;
  }

  .home-brand-zone__title {
    position: relative;
    margin: 0;
    padding-left: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
  }

  .home-brand-zone__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 14px;
    margin-top: -7px;
    border-radius: 2px;
    background: var(--mall-accent);
  }

  .home-brand-zone__sub {
    margin: 0;
    font-size: 11px;
    color: #999;
  }

  .home-brand-zone__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .home-brand-zone__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 88px;
    padding: 10px 6px;
    border-radius: 10px;
    text-decoration: none;
    color: #222;
    background: #fafafa;
    transition: transform .15s ease;
  }

  .home-brand-zone__card:active {
    transform: scale(.98);
  }

  .home-brand-zone__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
  }

  .home-brand-zone__icon svg {
    width: 22px;
    height: 22px;
  }

  .home-brand-zone__card.brand-tone-a .home-brand-zone__icon { background: linear-gradient(135deg, #cfd9df, #8e9eab); color: #fff; }
  .home-brand-zone__card.brand-tone-b .home-brand-zone__icon { background: linear-gradient(135deg, #fccb90, #d57eeb); }
  .home-brand-zone__card.brand-tone-c .home-brand-zone__icon { background: linear-gradient(135deg, #6b7b8c, #3d4f5f); }
  .home-brand-zone__card.brand-tone-d .home-brand-zone__icon { background: linear-gradient(135deg, #4facfe, #00c6fb); }

  .home-brand-zone__label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
  }

  /* Flash sale strip */
  .mobile-flash-bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 8px;
    padding: 12px;
    background: #fff;
  }

  .mobile-flash-bar__badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 72px;
    padding-right: 10px;
    border-right: 1px solid #f0f0f0;
  }

  .mobile-flash-bar__badge strong {
    display: block;
    color: var(--mall-accent);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
  }

  .mobile-flash-bar__badge span {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 10px;
  }

  .mobile-flash-bar__links {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-flash-bar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 8px;
    background: #fff5f0;
    color: #333;
    text-decoration: none;
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
    padding: 6px 4px;
  }

  .mobile-flash-bar__link em {
    display: block;
    font-style: normal;
    color: var(--mall-accent);
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 2px;
  }

  /* Product feed sections */
  .products-section {
    background: #fff;
    margin-bottom: 8px;
    padding: 14px 0 16px;
  }

  .products-section .container {
    padding: 0 10px;
  }

  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 2px;
    border-bottom: 0;
    text-align: left;
  }

  .section-heading {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .section-heading-main {
    position: relative;
    padding-left: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    letter-spacing: 0;
    text-transform: none;
  }

  .section-heading-main::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 14px;
    margin-top: -7px;
    border-radius: 2px;
    background: var(--mall-accent);
  }

  .section-heading-sub {
    font-size: 11px;
    color: #999;
    margin-top: 0;
  }

  .section-more {
    margin-top: 12px;
    text-align: center;
  }

  .section-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 20px;
    border: 1px solid #eee;
    border-radius: 18px;
    font-size: 12px;
    color: #666;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    background: #fafafa;
  }

  .woocommerce ul.products,
  .products-section ul.products,
  .xueer-home-products ul.products,
  ul.product-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .woocommerce ul.products li.product,
  .products-section ul.products li.product,
  .xueer-home-products ul.products li.product,
  ul.product-grid li.product {
    border: 0;
    box-shadow: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
  }

  .product-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 8px 8px 0 0;
  }

  .product-info {
    padding: 8px 8px 10px;
    background: #fff;
  }

  .product-name,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .product-price,
  .woocommerce ul.products li.product .price {
    color: #e02e24 !important;
    font-size: 16px;
    font-weight: 700;
  }

  .product-badge {
    background: var(--mall-accent) !important;
    border-radius: 0 8px 0 0;
  }

  .product-flash-badge {
    background: var(--mall-accent);
  }

  /* Bottom tabbar — Taobao 5-tab */
  .mobile-tabbar.mobile-tabbar-mall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobile-tabbar-mall .mobile-tabbar-item {
    font-size: 10px;
    color: #666;
    padding: 5px 0 3px;
    gap: 3px;
  }

  .mobile-tabbar-mall .mobile-tabbar-item.is-active {
    color: var(--mall-accent);
    font-weight: 600;
  }

  .mobile-tabbar-mall .mobile-tabbar-item.is-active::before {
    display: none;
  }

  .mobile-tabbar-mall .mobile-tabbar-item.is-active .mobile-tabbar-icon {
    background: var(--mall-accent);
  }

  .tab-category .mobile-tabbar-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 6h7v7H4zm9 0h7v7h-7zM4 15h7v3H4zm9 0h7v3h-7z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 6h7v7H4zm9 0h7v7h-7zM4 15h7v3H4zm9 0h7v3h-7z'/%3E%3C/svg%3E");
  }

  .tab-sale .mobile-tabbar-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 10l4-6 8 2 4 6-8 2-8-4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 10l4-6 8 2 4 6-8 2-8-4z'/%3E%3C/svg%3E");
  }

  /* Hide floating cart ball — bottom tab opens TAIO side cart */
  .taiowc-wrap.taiowc-fixed-cart > a.taiowc-content,
  .taiowc-wrap.cart_fixed_1 > a.taiowc-content,
  .float-cart,
  .float-cart-btn {
    display: none !important;
  }

  /* Ensure side cart panel can show above tabbar */
  .taiowc-cart-model {
    z-index: 1000000100 !important;
  }
}

@media (min-width: 768px) {
  .mobile-mall-header,
  .mobile-mall-home,
  .hero-carousel-mobile,
  .mobile-flash-bar,
  .mobile-feed,
  .xueer-image-search-overlay {
    display: none !important;
  }

  .products-section--desktop {
    display: block !important;
  }

  .desktop-yahoo-home {
    display: block !important;
  }
}

/* Image search overlay */
@media (max-width: 767px) {
  .xueer-image-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
  }

  .xueer-image-search-overlay[hidden] {
    display: none !important;
  }

  .xueer-image-search-overlay__box {
    min-width: 180px;
    padding: 20px 24px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
  }

  .xueer-image-search-overlay__spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #ffe0cc;
    border-top-color: #ff5000;
    border-radius: 50%;
    animation: xueer-spin .8s linear infinite;
    margin-bottom: 10px;
  }

  .xueer-image-search-overlay__text {
    margin: 0;
    font-size: 14px;
    color: #333;
  }

  @keyframes xueer-spin {
    to { transform: rotate(360deg); }
  }
}
