/* ===== ChatRobotic Mobile Design System =====
   技术精密感 (Technical Precision) - FPV/无人机零件跨境电商移动端
   所有覆盖规则统一包裹在 @media (max-width: 991px) 内，桌面端零影响
================================================== */

/* Google Font: Saira Semi Condensed - 技术精密感显示字体 */
@import url('https://fonts.googleapis.com/css2?family=Saira+Semi+Condensed:wght@400;500;600;700;800&display=swap');

/* 设计 Token（全局，不影响视觉） */
:root {
  --cr-mobile-bg: #f9f9f9;
  --cr-mobile-card: #ffffff;
  --cr-mobile-ink: #0d1117;        /* 主文字/深色 */
  --cr-mobile-ink-2: #6a737d;      /* 次级文字 */
  --cr-mobile-line: #e1e4e8;       /* 边框 */
  --cr-mobile-accent: #0167F3;     /* 电流蓝点缀 */
  --cr-mobile-bg-2: #162657;    /* 底部导航栏 */
  --cr-mobile-accent-soft: rgba(1, 103, 243, 0.08);
  --cr-font-display: -apple-system, BlinkMacSystemFont, 'Manrope', "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --cr-font-body: 'Manrope', sans-serif;
  --cr-shadow-sticky: 0 2px 8px rgba(13, 17, 23, 0.08);
  --cr-shadow-card: 0 1px 3px rgba(13, 17, 23, 0.06);
  --cr-radius-card: 14px;        /* iOS squircle 感 */
  --cr-radius-btn: 8px;
  --cr-radius-tag: 4px;
  --cr-touch: 44px;              /* Apple HIG / MD3 最小触摸 */
  --cr-header-h: 50px;           /* 原生顶栏密度（原 100px） */
  --cr-bottomnav-h: 58px;        /* 原生底栏密度（原 120px） */
  --cr-footer-h: 58px;           /* 与底栏一致 */
}

/* 所有移动端覆盖规则统一在此断点内 */
@media (max-width: 991px) {

  /* 防止 Safari/Droid 把 body overflow-x: html 层级冲洗出来 */
  html {
    overflow-x: hidden;
  }

  /* 全局 container/row/col padding 统一为 6px（gutter 12px） */
  .container {
    max-width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
  }
  .row {
    margin-left: -6px;
    margin-right: -6px;
  }
  [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }

  /* ===== 全局基础 ===== */
  body {
    background: var(--cr-mobile-bg);
    color: var(--cr-mobile-ink);
    font-family: var(--cr-font-body);
    font-size: 15px;
    line-height: 1.5;
    padding-top: var(--cr-header-h);
    padding-bottom: calc(var(--cr-bottomnav-h) + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  /* 隐藏桌面端 header */
  .header.navbar-area {
    display: none !important;
  }

  /* scroll-top 移动端适配 */
  .scroll-top {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 18px;
    border-radius: 50%;
    bottom: calc(var(--cr-footer-h) + 80px + env(safe-area-inset-bottom));
    right: 14px;
    z-index: 1001;
  }
  /* 覆盖桌面端 hover：点击时不上移、不变色 */
  .scroll-top:hover,
  .scroll-top:active,
  .scroll-top:focus {
    transform: none;
    box-shadow: none;
    background: var(--cr-mobile-accent);
  }

  /* 预加载器移动端隐藏 */
  .preloader {
    display: none !important;
  }

  /* body 锁定滚动（抽屉打开时）。
     iOS Safari 会无视 body 的 overflow:hidden，必须用 position:fixed 才能真正阻止底层滚动穿透。
     top 由 JS 动态设为 -scrollY 冻结当前位置，关闭时恢复，避免页面跳顶。 */
  body.cr-no-scroll {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }

  /* 全局按钮触摸目标与圆角 */
  .btn {
    min-height: var(--cr-touch);
    min-width: var(--cr-touch);
    border-radius: var(--cr-radius-btn);
    font-family: var(--cr-font-display);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }

  /* 触摸反馈 */
  a:active,
  button:active,
  .cr-tap:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }

  /* 标题使用显示字体 */
  .section-title h2,
  .section-title h3,
  h3, h4 {
    font-family: var(--cr-font-display);
    color: var(--cr-mobile-ink);
    font-size: inherit;
  }
  h1, h2 {
    font-family: var(--cr-font-display);
    color: var(--cr-mobile-ink);
    font-size: 22px;
    font-weight: 700;
  }
  h3 { font-size: 16px; font-weight: 600; }
  h4 { font-size: 15px; font-weight: 600; }
  .section-title h2 {
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  /* ===== 角标通用 ===== */
  .cr-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--cr-mobile-accent);
    color: #fff;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--cr-font-display);
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--cr-mobile-card);
    pointer-events: none;
  }

  /* ===== 移动端 Sticky Header ===== */
  .cr-mobile-header {
    position: fixed;
    top: -1px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--cr-mobile-card);
    box-shadow: var(--cr-shadow-sticky);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--cr-header-h) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 10px 0 10px;
  }

  .cr-mh-btn {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--cr-mobile-ink);
    cursor: pointer;
    flex-shrink: 0;
  }
  .cr-mh-btn svg {
    width: 24px;
    height: 24px;
    display: block;
  }
  .cr-mh-menu svg line {
    stroke: currentcolor;
    stroke-width: 2.2;
    stroke-linecap: round;
  }

  .cr-mh-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 0;
  }
  .cr-mh-logo img {
    height: auto;
    max-height: 30px;
    width: auto;
    object-fit: contain;
  }

  .cr-mh-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .cr-mh-middle {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .cr-mh-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  /* 搜索浮层 */
  .cr-mobile-search-bar {
    position: fixed;
    width: 100%;
    height: 60px;
    top: calc(var(--cr-header-h) + env(safe-area-inset-top) - 1px);
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--cr-mobile-card);
    box-shadow: var(--cr-shadow-sticky);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    visibility: hidden;
    transform: translateY(-101%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
  }
  .cr-mobile-search-bar.cr-open {
    visibility: visible;
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(13, 17, 23, 0.10);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
  }
  .cr-mobile-search-bar input {
    flex: 1;
    height: 38px;
    border: 1px solid var(--cr-mobile-line);
    border-radius: var(--cr-radius-btn);
    padding: 0 12px;
    font-size: 15px;
    font-family: var(--cr-font-body);
    color: var(--cr-mobile-ink);
    background: var(--cr-mobile-bg);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
  }
  .cr-mobile-search-bar input:focus {
    border-color: var(--cr-mobile-accent);
    box-shadow: 0 0 0 3px var(--cr-mobile-accent-soft);
    background: var(--cr-mobile-card);
  }
  .cr-mobile-search-bar button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 0;
    border-radius: var(--cr-radius-btn);
    background: var(--cr-mobile-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .cr-mobile-search-bar button:active {
    transform: scale(0.95);
  }
  .cr-mobile-search-bar button svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  /* 搜索栏打开时：移除头部阴影，让头部与搜索栏同色无缝合并 */
  .is-search-open .cr-mobile-header {
    box-shadow: none !important;
  }

  /* ===== 抽屉 Overlay ===== */
  .cr-mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .cr-mobile-drawer-overlay.cr-open {
    opacity: 1;
    visibility: visible;
  }

  /* ===== 汉堡导航抽屉 ===== */
  .cr-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: calc(var(--cr-bottomnav-h) + env(safe-area-inset-bottom));
    width: 75%;
    background: var(--cr-mobile-card);
    z-index: 1200;
    transform: translateX(-101%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .cr-mobile-drawer.cr-open {
    transform: translateX(0);
  }

  /* 抽屉用户区域 */
  .cr-drawer-user {
    padding: 14px 16px;
    background: var(--cr-mobile-bg-2);
    color: #fff;
    flex-shrink: 0;
  }
  .cr-drawer-user .cr-du-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .cr-drawer-user .cr-du-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--cr-mobile-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--cr-font-display);
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
    overflow: hidden;
  }
  .cr-drawer-user .cr-du-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .cr-drawer-user .cr-du-info {
    min-width: 0;
    flex: 1;
  }
  .cr-drawer-user .cr-du-name {
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cr-drawer-user .cr-du-mail {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cr-drawer-user .cr-du-guest {
    width: 100%;
  }
  .cr-drawer-user .cr-du-guest-title {
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    margin: 0 0 10px;
  }
  .cr-drawer-user .cr-du-guest-btns {
    display: flex;
    gap: 8px;
  }
  .cr-drawer-user .cr-du-guest-btns a {
    flex: 1;
    height: 44px;
    border-radius: var(--cr-radius-btn);
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
  }
  .cr-drawer-user .cr-du-guest-btns a:active {
    transform: scale(0.97);
  }
  .cr-drawer-user .cr-du-guest-btns .cr-du-signin {
    background: var(--cr-mobile-accent);
    color: #fff;
  }
  .cr-drawer-user .cr-du-guest-btns .cr-du-register {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* 抽屉滚动主体 */
  .cr-drawer-body {
    flex: 1;
    padding: 8px 0 16px;
  }

  /* 抽屉分组标题：section 标题 + 账户内子分组标题共享同一排版规格 */
  .cr-drawer-section-title,
  .cr-drawer-account .cr-drawer-group {
    font-family: var(--cr-font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cr-mobile-ink-2);
    padding: 16px 16px 6px;
    margin: 0;
  }
  /* 分组分隔灰线：除抽屉顶部首个 Navigation 外，每个分组标题上方一条线 */
  .cr-drawer-body > .cr-drawer-section-title:not(:first-child),
  .cr-drawer-account .cr-drawer-group {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--cr-mobile-line);
  }

  /* 主导航链接 */
  .cr-drawer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .cr-drawer-nav li {
    margin: 0;
  }
  .cr-drawer-nav a,
  .cr-drawer-nav .cr-nav-toggle,
  .cr-drawer-account a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--cr-font-display);
    font-weight: 600;
    color: var(--cr-mobile-ink);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    width: 100%;
    background: transparent;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    text-align: left;
    font-size: 15px;
    min-height: 44px;
    padding: 10px 16px;
  }
  .cr-drawer-nav a.active,
  .cr-drawer-nav .cr-nav-toggle.active {
    color: var(--cr-mobile-accent);
    border-left-color: var(--cr-mobile-accent);
    background: var(--cr-mobile-accent-soft);
  }
  .cr-drawer-nav a:active,
  .cr-drawer-nav .cr-nav-toggle:active,
  .cr-drawer-account a:active {
    background: var(--cr-mobile-accent-soft);
  }
  .cr-drawer-nav .cr-nav-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
    color: var(--cr-mobile-ink-2);
    flex-shrink: 0;
  }
  .cr-drawer-nav .cr-nav-toggle.cr-expanded .cr-nav-arrow {
    transform: rotate(90deg);
  }

  /* 子分类列表 */
  .cr-drawer-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--cr-mobile-bg);
  }
  .cr-drawer-sub.cr-open {
    max-height: 600px;
  }
  .cr-drawer-sub a {
    min-height: 38px;
    padding: 8px 16px 8px 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cr-mobile-ink);
    border-left: 0;
  }
  .cr-drawer-sub a:active {
    background: var(--cr-mobile-accent-soft);
  }

  /* 账户菜单 */
  .cr-drawer-account {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .cr-drawer-account li {
    margin: 0;
  }
  .cr-drawer-account a .cr-badge {
    position: static;
    box-shadow: none;
    margin-left: 8px;
  }
  .cr-drawer-account .cr-logout {
    border-top: 1px solid var(--cr-mobile-line);
    margin-top: 6px;
  }
  /* Help Center 账户内子分组标题的 span（排版继承 .cr-drawer-group 共享规则） */
  .cr-drawer-account .cr-drawer-group span {
    display: block;
  }

  /* 抽屉底部社交 */
  .cr-drawer-social {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--cr-mobile-line);
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .cr-drawer-social .cr-ds-label {
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 11px;
    color: var(--cr-mobile-ink-2);
    margin-right: auto;
  }
  .cr-drawer-social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cr-mobile-ink-2);
    transition: color 0.2s ease, transform 0.2s ease;
  }
  .cr-drawer-social a:active {
    transform: scale(0.92);
  }
  .cr-drawer-social a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  /* ===== 底部固定导航栏 ===== */
  .cr-mobile-bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1110;
    height: calc(var(--cr-bottomnav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--cr-mobile-card);
    border-top: 1px solid var(--cr-mobile-line);
    box-shadow: 0 -2px 8px rgba(13, 17, 23, 0.06);
    display: flex;
    align-items: stretch;
  }
  .cr-bn-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: var(--cr-touch);
    color: var(--cr-mobile-ink-2);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 6px 4px 4px;
    gap: 3px;
  }
  .cr-bn-item svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: currentColor;
  }
  .cr-bn-item span {
    font-family: var(--cr-font-display);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
  }
  .cr-bn-item.active {
    color: var(--cr-mobile-accent);
  }
  .cr-bn-item.active span {
    font-weight: 600;
  }
  .cr-bn-item:active {
    transform: scale(0.94);
  }
  .cr-bn-item .cr-badge {
    top: 5px;
    right: 45%;
    min-width: 18px;
    height: 18px;
    font-size: 9px;
    line-height: 18px;
    transform: translateX(18px);
  }

  /* 入场动效（staggered） */
  .cr-stagger {
    animation: crFadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  @keyframes crFadeUp {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ==================================================================
   ===== Home Page =====
   ================================================================== */
@media (max-width: 991px) {

  /* Hero Banner - Native App Experience */
  .hero-area {
    padding: 8px 0 0;
    overflow: hidden;
    margin-top: calc(env(safe-area-inset-top) - 8px);
    background-color: var(--cr-mobile-bg);
  }
  .hero-area .container {
    padding-left: 0;
    padding-right: 0;
  }
  .hero-area .row {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-area [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }
  .hero-area .custom-padding-right {
    padding-right: 0;
  }
  .hero-area .slider-head {
    padding: 10px 0;
    position: relative;
    border-radius: unset;
  }
  .hero-slider {
    overflow: hidden;
    border-radius: var(--cr-radius-card);
    position: relative;
  }
  .slider-head .tns-inner,
  .slider-head .tns-outer,
  .hero-slider .tns-item {
    overflow: hidden !important;
    border-radius: var(--cr-radius-card) !important;
  }
  .hero-area .hero-slider .single-slider {
    height: 240px;
    min-height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  .hero-area .hero-slider .single-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(22, 38, 87, 0.6) 0%, rgba(22, 38, 87, 0.1) 50%, transparent 100%);
    pointer-events: none;
  }
  .hero-area .tns-controls {
    display: none !important;
  }
  .hero-area .tns-nav {
    display: flex !important;
    justify-content: center;
    gap: 6px;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 20px;
  }
  .hero-area .tns-nav button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }
  .hero-area .tns-nav button.tns-nav-active {
    width: 20px;
    border-radius: 4px;
    background: #fff;
  }

  /* Trending product section */
  .trending-product {
    background: var(--cr-mobile-bg);
    padding: 20px 0 24px;
  }
  .trending-product .section-title {
    padding: 0;
    margin: 0 0 12px;
  }
  .trending-product .section-title h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0;
    padding: 0;
  }
  .trending-product .section-title h2::before {
    display: none;
  }

  /* 2-column product grid + staggered fade-in */
  .trending-product .row > .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 5px;
    padding-right: 5px;
    animation: crFadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .trending-product .row > .col-lg-3:nth-child(1) { animation-delay: 0.04s; }
  .trending-product .row > .col-lg-3:nth-child(2) { animation-delay: 0.08s; }
  .trending-product .row > .col-lg-3:nth-child(3) { animation-delay: 0.12s; }
  .trending-product .row > .col-lg-3:nth-child(4) { animation-delay: 0.16s; }
  .trending-product .row > .col-lg-3:nth-child(5) { animation-delay: 0.20s; }
  .trending-product .row > .col-lg-3:nth-child(6) { animation-delay: 0.24s; }
  .trending-product .row > .col-lg-3:nth-child(7) { animation-delay: 0.28s; }
  .trending-product .row > .col-lg-3:nth-child(8) { animation-delay: 0.32s; }

  /* Shipping Info 2x2 grid */
  .shipping-info {
    padding: 16px 0;
    background: var(--cr-mobile-bg);
  }
  .shipping-info ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
  }
  .shipping-info li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    padding: 10px 6px;
    border: 1px solid var(--cr-mobile-line);
    box-shadow: var(--cr-shadow-card);
    width: 100%;
  }
  .shipping-info .media-icon {
    margin-bottom: 4px;
  }
  .shipping-info .media-icon svg {
    width: 28px;
    height: 28px;
  }
  .shipping-info .media-body {
    text-align: center;
  }
  .shipping-info .media-body h5 {
    font-family: var(--cr-font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--cr-mobile-ink);
    margin: 0 0 2px;
  }
  .shipping-info .media-body span {
    font-size: 11px;
    color: var(--cr-mobile-ink-2);
  }

  /* ===== Shared Single Product Card (Home + List) ===== */
  .single-product {
    margin-top: 8px;
    padding: 0px;
    border-radius: var(--cr-radius-card);
    overflow: hidden;
    border: 1px solid var(--cr-mobile-line);
    background: var(--cr-mobile-card);
    box-shadow: var(--cr-shadow-card), 0 4px 12px rgba(13, 17, 23, 0.04);
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
    position: relative;
    margin-bottom: 0px;
;
  }
  .single-product:active {
    transform: translateY(-2px) scale(0.99);
    box-shadow: 0 8px 20px rgba(1, 103, 243, 0.1);
  }
  .single-product .product-image {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: var(--cr-mobile-card);
    width: 100%;
  }
  .single-product .product-image img {
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center;
    padding: 0px;
    border: 0;
    transition: transform 0.3s ease;
  }
  .single-product:active .product-image img {
    transform: scale(1.03);
  }
  .single-product .product-info {
    padding: 0px 12px;
    background: var(--cr-mobile-card);
  }
  .single-product .product-info .category {
    font-size: 10px;
    margin-bottom: 4px;
    color: var(--cr-mobile-ink-2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
  }
  .single-product .product-info .title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    max-height: 2.7em;
    color: var(--cr-mobile-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .single-product .product-info .price {
    padding: 0px;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
  }
  .single-product .product-info .price span {
    font-family: var(--cr-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--cr-mobile-accent);
    letter-spacing: -0.01em;
  }
  .single-product .product-info .price .discount-price {
    font-size: 12px;
    margin-left: 8px;
    color: var(--cr-mobile-ink-2);
    text-decoration: line-through;
    font-weight: 400;
  }
  .single-product .product-action {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    align-items: center;
  }
  .single-product .product-action .cr-cart {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--cr-mobile-ink-2);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.15s ease;
    position: relative;
  }
  .single-product .product-action .cr-cart:active {
    background: var(--cr-mobile-accent);
    color: #ffffff;
    transform: scale(0.92);
    box-shadow: 0 4px 12px rgba(1, 103, 243, 0.25);
    transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .single-product .product-action .cr-cart svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
  }

  /* Mobile-only: hide the wishlist button in card action bar (desktop keeps it) */
  .single-product .product-action .cr-wishlist-btn {
    display: none;
  }

  /* Mobile-only: X remove button at top-right of card image (desktop keeps trash in action bar) */
  .single-product .product-image .cr-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--cr-mobile-ink-2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.15s ease;
  }
  .single-product .product-image .cr-remove:active {
    transform: scale(0.9);
    color: var(--cr-mobile-ink);
    background: #fff;
    box-shadow: 0 1px 4px rgba(13, 17, 23, 0.12);
  }
  .single-product .product-image .cr-remove svg {
    width: 14px;
    height: 14px;
    display: block;
    stroke: currentColor;
  }

  /* Mobile-only: hide the trash remove button in action bar (X in corner replaces it) */
  .single-product .product-action .cr-remove-btn {
    display: none;
  }
}

/* ==================================================================
   ===== Product List Page =====
   ================================================================== */
@media (max-width: 991px) {

  .product-grids {
    padding: 14px 0 20px;
  }
  .product-grids .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .product-grids .row {
    margin-left: -4px;
    margin-right: -4px;
  }
  /* Tighter gutters for 2-col grid on list page */
  .product-grids .row > [class*="col-"] {
    padding-left: 4px;
    padding-right: 4px;
  }
  /* Force 2-column grid on list page (override col-12) */
  .product-grids .row > .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 4px;
    padding-right: 4px;
  }

  /* Filter / Sort bar - stacked */
  .product-grid-topbar {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    border: 1px solid var(--cr-mobile-line);
    box-shadow: var(--cr-shadow-card);
    padding: 10px;
    margin-bottom: 12px;
  }
  .product-grid-topbar .row {
    flex-direction: column;
    gap: 8px;
  }
  .product-grid-topbar .row > .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }
  .product-grid-topbar .row > .col-lg-6.d-flex {
    justify-content: stretch !important;
  }
  .product-grid-topbar .product-select {
    width: 100% !important;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .product-grid-topbar .product-select label {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--cr-mobile-ink-2);
    margin: 0;
    font-family: var(--cr-font-display);
    font-weight: 600;
    white-space: nowrap;
  }
  .product-grid-topbar .product-select .form-control {
    flex: 1;
    width: 100%;
    height: 44px;
    border-radius: var(--cr-radius-btn);
    border: 1px solid var(--cr-mobile-line);
    padding: 0 12px;
    font-family: var(--cr-font-body);
    font-size: 14px;
    color: var(--cr-mobile-ink);
    background: var(--cr-mobile-card);
  }

  /* 2-column product grid (Vue loop items) */
  #products-tab-box .row > .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 5px;
    padding-right: 5px;
  }

  /* Pagination - horizontal scroll */
  .pagination {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
  }
  .pagination .pagination-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
  }
  .pagination .pagination-list li {
    flex-shrink: 0;
  }
  .pagination .pagination-list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--cr-radius-btn);
    border: 1px solid var(--cr-mobile-line);
    background: var(--cr-mobile-card);
    color: var(--cr-mobile-ink);
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 14px;
  }
  .pagination .pagination-list li.active a,
  .pagination .pagination-list li:hover a {
    background: var(--cr-mobile-accent);
    color: #fff;
    border-color: var(--cr-mobile-accent);
  }
  .pagination .pagination-list li a i {
    font-size: 14px;
  }

  /* Empty state */
  .empyty-area {
    text-align: center;
    padding: 40px 20px;
  }
  .empyty-area .empyty-content h3 {
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--cr-mobile-ink);
  }
}

/* ==================================================================
   ===== Product Detail Page =====
   ================================================================== */
@media (max-width: 991px) {

  .item-details {
    background: var(--cr-mobile-bg);
    padding: 12px 0 calc(var(--cr-bottomnav-h) + 90px + env(safe-area-inset-bottom));
  }
  .item-details .top-area {
    background: var(--cr-mobile-card);
    padding: 8px;
    border-radius: var(--cr-radius-card);
    border: 1px solid var(--cr-mobile-line);
    box-shadow: var(--cr-shadow-card);
  }

  /* Stack image + info */
  .item-details .top-area > .row > .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Main image */
  .item-details .product-images .main-img,
  .item-details .product-images .zoom-container {
    border-radius: var(--cr-radius-card);
    overflow: hidden;
  }
  .item-details .product-images .main-img img,
  .item-details .product-images #current {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    padding: 0;
    border-radius: var(--cr-radius-card);
  }

  /* Thumbnails - horizontal scroll */
  .item-details .product-images .images {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 6px;
    padding-bottom: 4px;
  }
  .item-details .product-images .images > div {
    flex: 0 0 56px;
    max-width: 56px;
  }
  .item-details .product-images .images img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--cr-mobile-line);
    padding: 0;
  }

  /* Product info */
  .item-details .product-images {
    padding: 10px;
  }
  .item-details .product-info {
    padding: 10px;
    margin-top: 8px;
  }
  .item-details .product-info .title {
    font-family: var(--cr-font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cr-mobile-ink);
    margin-bottom: 4px;
  }
  .item-details .product-info .category {
    font-size: 11px;
    color: var(--cr-mobile-ink-2);
    margin-bottom: 6px;
  }

  /* Price */
  .item-details .price-wrapper {
    margin-bottom: 8px !important;
    align-items: flex-end !important;
  }
  .item-details .product-info .price {
    font-family: var(--cr-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--cr-mobile-accent);
    line-height: 1.1;
  }
  .item-details .price-wrapper .text-decoration-line-through {
    font-size: 14px;
    padding-bottom: 1px;
    color: var(--cr-mobile-ink-2);
    line-height: 1.1;
  }

  /* Attributes */
  .item-details .product-attributes {
    margin-top: 8px;
  }
  .item-details .attr-item {
    font-size: 13px;
    color: var(--cr-mobile-ink-2);
    margin-bottom: 6px;
  }
  .item-details .attr-label {
    color: var(--cr-mobile-ink-2);
    min-width: 110px;
  }
  .item-details .attr-value {
    color: var(--cr-mobile-ink);
  }

  /* Variants - touch friendly */
  .item-details .variant-group {
    margin-top: 8px;
    margin-bottom: 8px;
  }
  .item-details .variant-name {
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--cr-mobile-ink);
    margin-bottom: 6px;
  }
  .item-details .variant-values {
    gap: 6px;
  }
  .item-details .variant-option {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--cr-radius-btn);
    border: 1px solid var(--cr-mobile-line);
    background: var(--cr-mobile-card);
    font-size: 13px;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .item-details .variant-option .option-text {
    font-size: 13px;
  }
  .item-details .variant-option.selected {
    border-color: var(--cr-mobile-accent);
    background: var(--cr-mobile-accent-soft);
    color: var(--cr-mobile-accent);
  }
  .item-details .variant-option.disabled {
    opacity: 0.4;
  }

  /* Quantity selector */
  .item-details .p-quantity {
    margin-top: 8px !important;
  }
  .item-details .p-quantity .quantity-form {
    height: 36px !important;
    width: 110px !important;
    flex-shrink: 0;
  }
  .item-details .p-quantity .decrement,
  .item-details .p-quantity .increment {
    width: 34px !important;
    height: 36px !important;
    border-radius: 0 !important;
    border: 1px solid var(--cr-mobile-line) !important;
    background: var(--cr-mobile-card);
    color: var(--cr-mobile-ink);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .item-details .p-quantity .decrement {
    border-right: 0 !important;
    border-radius: var(--cr-radius-btn) 0 0 var(--cr-radius-btn) !important;
  }
  .item-details .p-quantity .increment {
    border-left: 0 !important;
    border-radius: 0 var(--cr-radius-btn) var(--cr-radius-btn) 0 !important;
  }
  .item-details .p-quantity .decrement:active,
  .item-details .p-quantity .increment:active {
    background: var(--cr-mobile-accent) !important;
    color: #fff !important;
  }
  .item-details .p-quantity .decrement.disabled,
  .item-details .p-quantity .increment.disabled {
    color: var(--cr-mobile-line) !important;
    border-style: dotted !important;
    background: var(--cr-mobile-card) !important;
  }
  .item-details .p-quantity .itxt {
    height: 36px !important;
    width: 42px !important;
    border: 1px solid var(--cr-mobile-line) !important;
    border-radius: 0 !important;
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--cr-mobile-ink);
  }
  .item-details .p-quantity .quantity-txt {
    font-size: 12px;
    color: var(--cr-mobile-ink-2);
    margin-left: 12px !important;
  }

  /* Sticky bottom buy bar */
  .item-details .bottom-content {
    position: fixed;
    bottom: calc(var(--cr-bottomnav-h) + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--cr-mobile-card);
    border-top: 1px solid var(--cr-mobile-line);
    border-radius: var(--cr-radius-card) var(--cr-radius-card) 0 0;
    box-shadow: 0 -2px 10px rgba(13, 17, 23, 0.08);
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .item-details .bottom-content .row {
    margin: 0;
    gap: 8px;
  }
  .item-details .bottom-content .row > .col-lg-4 {
    flex: 1;
    max-width: 100%;
    padding: 0;
  }
  .item-details .bottom-content .button,
  .item-details .bottom-content .wish-button {
    width: 100%;
  }
  .item-details .bottom-content .btn {
    width: 100%;
    height: 48px;
    border-radius: var(--cr-radius-btn);
    font-family: var(--cr-font-display);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .item-details .bottom-content .cart-button .btn,
  .item-details .bottom-content .add-to-cart-icon {
    background: var(--cr-mobile-accent);
    color: #fff;
    border: 0;
  }
  .item-details .bottom-content .wish-button .btn {
    background: var(--cr-mobile-card);
    color: var(--cr-mobile-ink);
    border: 1px solid var(--cr-mobile-line);
  }

  /* Detail info body */
  .item-details .product-details-info {
    margin-top: 16px;
  }
  .item-details .product-details-info .single-block {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    border: 1px solid var(--cr-mobile-line);
    box-shadow: var(--cr-shadow-card);
    padding: 12px;
  }
  .item-details .product-details-info .info-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--cr-mobile-ink);
  }
  .item-details .product-details-info .info-body h3 {
    font-family: var(--cr-font-display);
    font-size: 16px;
    padding: 8px 10px;
    border-left: 3px solid var(--cr-mobile-accent);
    background: var(--cr-mobile-bg);
    border-radius: 4px;
  }
  .item-details .product-details-info .info-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .item-details .product-details-info .info-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
}


/* ==================================================================
   ===== Checkout Page =====
   ================================================================== */
@media (max-width: 991px) {

  .checkout-wrapper {
    background: var(--cr-mobile-bg);
    padding: 12px 0 calc(var(--cr-bottomnav-h) + 80px + env(safe-area-inset-bottom));
  }

  /* Steps indicator */
  .checkout-wrapper .steps-wrap {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    border: 1px solid var(--cr-mobile-line);
    box-shadow: var(--cr-shadow-card);
    padding: 14px 8px;
  }
  .checkout-wrapper .steps-wrap > div .title {
    font-family: var(--cr-font-display);
    font-size: 12px;
    font-weight: 600;
  }

  /* Stack main + sidebar */
  .checkout-wrapper > .container > .row > .col-lg-9,
  .checkout-wrapper > .container > .row > .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Accordion step cards */
  .checkout-steps-form-style-1 #accordionBox > li {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    border: 1px solid var(--cr-mobile-line);
    box-shadow: var(--cr-shadow-card);
    margin-bottom: 10px;
    overflow: hidden;
  }
  .checkout-steps-form-style-1 #accordionBox > li:last-child {
    margin-bottom: 0;
  }
  /* Checkout step headings */
  .checkout-steps-form-style-1 h6.title,
  .checkout-steps-form-style-1 h6.product-title {
    font-family: var(--cr-font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--cr-mobile-ink);
    padding: 12px 16px;
  }
  .checkout-steps-form-style-1 h6 .manage-address-btn {
    font-size: 12px;
    color: var(--cr-mobile-accent);
  }
  .checkout-steps-form-content {
    padding: 0 16px 16px;
  }

  /* Products details list */
  .checkout-steps-form-content .cart-single-title {
    display: none;
  }
  .checkout-steps-form-content .cart-single-list {
    padding: 12px 0;
    border-bottom: 1px solid var(--cr-mobile-line);
    text-align: left;
  }
  .checkout-steps-form-content .cart-single-list:last-child {
    border-bottom: 0;
  }
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-6,
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-2 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 4px 0;
  }
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-6 > .row {
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
  }
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-6 > .row > .col-lg-3 {
    flex: 0 0 64px;
    max-width: 64px;
    padding: 0;
  }
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-6 > .row > .col-lg-9 {
    flex: 1 1 auto;
    max-width: 100%;
    padding-left: 10px;
  }
  .checkout-steps-form-content .cart-single-list img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--cr-mobile-line);
  }
  .checkout-steps-form-content .cart-single-list .product-name a {
    font-family: var(--cr-font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--cr-mobile-ink);
  }
  .checkout-steps-form-content .cart-single-list .product-des span {
    font-size: 11px;
  }
  /* Labelled value rows for unit/qty/subtotal */
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--cr-mobile-ink-2);
  }
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-2 > .row {
    margin: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-2 > .row > .col-12 {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    padding: 0;
  }
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-2:nth-child(2)::before {
    content: "Unit:";
    font-family: var(--cr-font-display);
    font-weight: 600;
    color: var(--cr-mobile-ink-2);
  }
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-2:nth-child(3)::before {
    content: "Qty:";
    font-family: var(--cr-font-display);
    font-weight: 600;
    color: var(--cr-mobile-ink-2);
  }
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-2:nth-child(4)::before {
    content: "Subtotal:";
    font-family: var(--cr-font-display);
    font-weight: 600;
    color: var(--cr-mobile-ink-2);
  }
  .checkout-steps-form-content .cart-single-list > .row > .col-lg-2:nth-child(4) {
    color: var(--cr-mobile-accent);
    font-family: var(--cr-font-display);
    font-weight: 700;
    font-size: 15px;
    border-top: 1px dashed var(--cr-mobile-line);
    padding-top: 8px;
    margin-top: 4px;
  }

  /* Address list cards */
  .checkout-steps-form-content .address-list-line {
    padding: 12px !important;
    border: 1px solid var(--cr-mobile-line) !important;
    border-radius: var(--cr-radius-card) !important;
    margin-bottom: 8px;
    background: var(--cr-mobile-card);
    align-items: center;
  }
  .checkout-steps-form-content .address-list-line.address-selected {
    border-color: var(--cr-mobile-accent) !important;
    background: var(--cr-mobile-accent-soft);
  }
  .checkout-steps-form-content .address-list-line > .col-lg-1,
  .checkout-steps-form-content .address-list-line > .col-lg-9,
  .checkout-steps-form-content .address-list-line > .col-lg-2 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 2px 0;
  }
  .checkout-steps-form-content .address-list-line .address-detail {
    font-size: 13px;
    color: var(--cr-mobile-ink);
    padding: 4px 0;
  }
  .checkout-steps-form-content .address-list-line .address-ops {
    text-align: left !important;
  }
  .checkout-steps-form-content .address-list-line .address-ops .c-grey {
    font-size: 11px;
    color: var(--cr-mobile-accent);
    font-family: var(--cr-font-display);
    font-weight: 600;
  }
  .checkout-steps-form-content .address-list-line .set-default-btn {
    font-size: 12px;
    color: var(--cr-mobile-accent);
  }
  .checkout-steps-form-content .show-more-btn,
  .checkout-steps-form-content .confirm-address-box .btn-link {
    font-size: 13px;
    color: var(--cr-mobile-accent);
    font-family: var(--cr-font-display);
    font-weight: 600;
  }

  /* Add address form - stack fields */
  .checkout-steps-form-content .row > .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .checkout-steps-form-style-1 .single-form .form-input input,
  .checkout-steps-form-style-1 .single-form .form-input textarea {
    height: 44px;
    border-radius: var(--cr-radius-btn);
    border: 1px solid var(--cr-mobile-line);
    padding: 0 12px;
    font-size: 14px;
    color: var(--cr-mobile-ink);
    background: var(--cr-mobile-card);
  }
  .checkout-steps-form-style-1 .form-default label {
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--cr-mobile-ink);
  }
  .checkout-steps-form-style-1 .single-form.button .btn {
    height: 44px;
    padding: 0 20px;
    border-radius: var(--cr-radius-btn);
    font-family: var(--cr-font-display);
    font-weight: 600;
    background: var(--cr-mobile-accent);
    color: #fff;
    border: 0;
  }
  .checkout-steps-form-style-1 .single-form.button .btn-alt {
    background: var(--cr-mobile-card);
    color: var(--cr-mobile-ink);
    border: 1px solid var(--cr-mobile-line);
    margin-left: 8px;
  }

  /* Shipment method cards */
  .checkout-steps-form-content .shipment-method-list-box {
    padding: 12px !important;
    border: 1px solid var(--cr-mobile-line) !important;
    border-radius: var(--cr-radius-card) !important;
    margin-bottom: 8px;
    background: var(--cr-mobile-card);
    align-items: center;
  }
  .checkout-steps-form-content .shipment-method-list-box.shipping-method-selected {
    border-color: var(--cr-mobile-accent) !important;
    background: var(--cr-mobile-accent-soft);
  }
  .checkout-steps-form-content .shipment-method-list-box > .col-md-1,
  .checkout-steps-form-content .shipment-method-list-box > .col-md-10 {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 0 4px;
  }
  .checkout-steps-form-content .shipment-method-list-box > .col-md-10 > .row > .col-md-2 {
    flex: 0 0 40px;
    max-width: 40px;
    padding: 0;
  }
  .checkout-steps-form-content .shipment-method-list-box > .col-md-10 > .row > .col-md-10 {
    flex: 1 1 auto;
    max-width: 100%;
    padding-left: 10px;
    font-size: 14px;
    font-family: var(--cr-font-display);
    font-weight: 600;
    color: var(--cr-mobile-ink);
  }
  .checkout-steps-form-content .shipment-method-list-box img {
    width: 36px;
    height: auto;
  }
  .checkout-steps-form-content .shipment-method-tips .shipment-method-line {
    font-size: 12px;
    color: var(--cr-mobile-ink-2);
    padding: 8px 12px !important;
  }

  /* Payment method cards */
  .checkout-steps-form-content .payment-box .row {
    padding: 12px !important;
    border: 1px solid var(--cr-mobile-line) !important;
    border-radius: var(--cr-radius-card) !important;
    margin-bottom: 8px;
    background: var(--cr-mobile-card);
    align-items: center;
  }
  .checkout-steps-form-content .payment-box .row.payment-method-selected {
    border-color: var(--cr-mobile-accent) !important;
    background: var(--cr-mobile-accent-soft);
  }
  .checkout-steps-form-content .payment-box .row > .col-md-1,
  .checkout-steps-form-content .payment-box .row > .col-md-2 {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 0 8px;
  }
  .checkout-steps-form-content .payment-box .row img {
    width: 40px;
    height: auto;
  }

  /* Sidebar - coupon */
  .checkout-sidebar-coupon {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    border: 1px solid var(--cr-mobile-line);
    box-shadow: var(--cr-shadow-card);
    padding: 14px;
    margin-bottom: 12px !important;
  }
  .checkout-sidebar-coupon p {
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--cr-mobile-ink);
    margin-bottom: 8px;
  }
  .checkout-sidebar-coupon .single-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
  }
  .checkout-sidebar-coupon .form-input {
    flex: 1;
  }
  .checkout-sidebar-coupon input {
    height: 44px;
    border-radius: var(--cr-radius-btn);
    border: 1px solid var(--cr-mobile-line);
    padding: 0 12px;
    width: 100%;
    font-size: 14px;
  }
  .checkout-sidebar-coupon .button .btn {
    height: 44px;
    border-radius: 0 var(--cr-radius-btn)  var(--cr-radius-btn) 0;
    background: var(--cr-mobile-accent);
    color: #fff;
    font-family: var(--cr-font-display);
    font-weight: 600;
    border: 0;
    white-space: nowrap;
  }

  /* Price table */
  .checkout-sidebar-price-table {
    background: var(--cr-mobile-card);
    padding: 16px;
    border-radius: var(--cr-radius-card);
    border: 1px solid var(--cr-mobile-line);
    box-shadow: var(--cr-shadow-card);
  }
  .checkout-sidebar-price-table .title {
    font-family: var(--cr-font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--cr-mobile-ink);
  }
  .checkout-sidebar-price-table .sub-total-price .total-price {
    padding: 6px 0;
    font-size: 13px;
    color: var(--cr-mobile-ink-2);
  }
  .checkout-sidebar-price-table .sub-total-price .total-price .price {
    font-family: var(--cr-font-display);
    font-weight: 700;
    color: var(--cr-mobile-ink);
  }
  .checkout-sidebar-price-table .total-payable {
    border-top: 1px solid var(--cr-mobile-line);
    margin-top: 8px;
    padding-top: 12px;
  }
  .checkout-sidebar-price-table .total-payable .payable-price .value {
    font-family: var(--cr-font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--cr-mobile-ink);
  }
  .checkout-sidebar-price-table .total-payable .payable-price .price.total-price {
    font-family: var(--cr-font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--cr-mobile-accent);
  }

  /* Sticky checkout button bar */
  .checkout-sidebar-price-table .button.mt-20 {
    position: fixed;
    bottom: calc(var(--cr-bottomnav-h) + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    z-index: 998;
    margin: 0 !important;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: var(--cr-mobile-card);
    border-top: 1px solid var(--cr-mobile-line);
    box-shadow: 0 -2px 10px rgba(13, 17, 23, 0.08);
    display: flex;
    justify-content: stretch !important;
  }
  .checkout-sidebar-price-table .button .checkout-btn {
    flex: 1;
    width: 100%;
    height: 48px;
    background: var(--cr-mobile-accent);
    color: #fff;
    border-radius: var(--cr-radius-btn);
    font-family: var(--cr-font-display);
    font-weight: 700;
    font-size: 15px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ============================================================
   Task 9: Footer 移动端
   ============================================================ */
@media (max-width: 991px) {
  body.is-footer-focus .cr-mobile-bottomnav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + env(safe-area-inset-bottom)));
  }
  body.is-footer-focus .scroll-top {
    bottom: 16px;
  }

  /* ===== Footer (深海军蓝 + 居中堆叠, 像素级复刻设计稿) ===== */
  .footer {
    background: #162657;
    color: #ffffff;
  }
  .footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .footer a:active {
    color: #ffffff;
  }

  /* Footer Top: logo 居中 + newsletter 全宽 */
  .footer-top {
    padding: 20px 0 18px;
  }
  .footer-top .inner-content .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-top .col-lg-3,
  .footer-top .col-lg-9 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  .footer-logo {
    text-align: center;
    margin-bottom: 14px;
  }
  .footer-logo img {
    height: 36px;
    width: auto;
  }
  .footer-newsletter {
    width: 100%;
    text-align: center;
  }
  .footer .footer-top .footer-newsletter h4.title {
    font-family: var(--cr-font-display);
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff;
    margin: 10px;
    line-height: 1.3;
  }
  .footer .footer-top .footer-newsletter h4.title span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    font-family: var(--cr-font-body);
  }
  .newsletter-form,
  .footer .footer-top .footer-newsletter .newsletter-form {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .footer .newsletter-form input,
  .footer .newsletter-form input[type="email"] {
    width: 100%;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #ffffff;
    padding: 0 14px;
    font-size: 14px;
    text-align: center;
    font-family: var(--cr-font-body);
    outline: none;
  }
  .footer .newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
  }
  .footer .newsletter-form input:focus {
    outline: none;
    border-color: var(--cr-mobile-accent);
    background: rgba(255, 255, 255, 0.18);
  }
  .newsletter-form .button {
    display: block;
    width: 100%;
  }
  .footer .newsletter-form .button .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px !important;
    padding: 0;
    background: var(--cr-mobile-accent) !important;
    color: #ffffff;
    border: 0;
    border-radius: 8px !important;
    font-family: var(--cr-font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    min-width: auto;
    min-height: 48px !important;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .footer .newsletter-form .button .btn .dir-part {
    display: none;
  }
  .footer .newsletter-form .button .btn:active {
    background: #0052CC;
    transform: scale(0.98);
  }

  /* Footer Middle: 三栏纵向堆叠 + 蓝色装饰线 */
  .footer-middle {
    padding: 18px 0;
    /* border-top: 1px solid rgba(255, 255, 255, 0.12); */
  }
  .footer-middle .bottom-inner .row {
    flex-direction: column;
    gap: 20px;
  }
  .footer-middle .col-lg-4 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  .single-footer {
    border-bottom: 0;
    text-align: center;
  }
  .footer .single-footer h3 {
    font-family: var(--cr-font-display);
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff;
    padding: 0 0 6px;
    margin: 0 0 10px;
    position: relative;
    display: block;
    cursor: default;
    user-select: none;
    text-align: center;
  }
  .footer .single-footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--cr-mobile-accent);
    border-radius: 2px;
  }
  .footer .single-footer h3::before {
    display: none !important;
    content: none !important;
  }
  .single-footer > ul,
  .single-footer > .row {
    max-height: none;
    overflow: visible;
    transition: none;
  }
  .single-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .footer .single-footer ul li {
    padding: 0;
    line-height: 1.6;
    font-size: 13px;
    color: rgba(255,255,255,0.7) !important;
    font-family: var(--cr-font-body);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer .single-footer ul li a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px;
    transition: color 0.2s ease;
    padding: 6px 0;
    display: inline-block;
  }
  .single-footer ul li a:active {
    color: #ffffff;
  }
  .footer .single-footer.f-link .row {
    flex-direction: row;
    justify-content: center;
    gap: 28px;
    margin: 0;
  }
  .footer .single-footer.f-link .row .col-lg-6 {
    width: auto;
    flex: 0 1 auto;
    padding: 0;
    max-width: none;
  }
  .footer .single-footer.f-link .row .col-lg-6 ul li {
    justify-content: flex-start;
  }

  /* Footer Bottom: 支付 + 版权 + 社交 居中堆叠 */
  .footer-bottom {
    padding: 18px 0;
    padding-bottom: calc(var(--cr-bottomnav-h) + env(safe-area-inset-bottom) + 16px);
    /* border-top: 1px solid rgba(255, 255, 255, 0.12); */
  }
  .footer-bottom .inner-content .row {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }
  .footer-bottom .col-lg-4 {
    width: 100%;
    flex: 0 0 100%;
    margin-bottom: 0;
  }
  .footer .payment-gateway {
    text-align: center;
  }
  .footer .payment-gateway-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .footer .payment-gateway-bar > span {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 12px;
    font-family: var(--cr-font-body);
  }
  .footer .payment-gateway-bar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
  }
  .footer .payment-gateway-bar-list-item {
    margin: 0;
  }
  .footer .payment-gateway-bar-list-item .payment-gateway-bar-row {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer .payment-gateway-bar-list-item .payment-gateway-bar-img-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer .payment-gateway-bar-list-item .payment-gateway-bar-img-box img,
  .footer .payment-gateway-bar-list-item .payment-gateway-bar-img-box svg {
    width: 42px !important;
    height: 26px !important;
    border-radius: 4px !important;
    padding: 3px;
    display: block;
  }
  .footer .copyright {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
    font-family: var(--cr-font-body);
  }
  .footer .socila {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
  }
  .footer .socila > li {
    margin: 0;
  }
  .footer .socila > li:first-child {
    display: none !important;
  }
  .footer .footer-bottom .socila li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 44px;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 8px;
    margin: 0 !important;
    line-height: 1 !important;
    transition: transform 0.2s ease;
  }
  .footer .footer-bottom .socila li a:active {
    background: transparent !important;
    transform: scale(0.9);
  }
  .footer .footer-bottom .socila li a svg {
    width: 24px !important;
    height: 24px !important;
    fill: #ffffff !important;
    display: block;
  }
}

/* ============================================================
   Task 10: 个人中心 / 订单 / 消息 / 收藏 / 地址
   ============================================================ */
@media (max-width: 991px) {
  /* 隐藏账户/帮助侧栏, 主内容全宽 */
  .account-wrapper .account-sidebar,
  .contact-us .account-sidebar {
    display: none !important;
  }
  .account-wrapper .row > .col-lg-2-5,
  .contact-us .row > .col-lg-2-5 {
    display: none !important;
  }
  .account-wrapper .row > .col-lg-9-5,
  .contact-us .row > .col-lg-9-5 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  .account-wrapper {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  /* ---- 账户首页 ---- */
  .user-info-wrapper {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    box-shadow: var(--cr-shadow-card);
    padding: 16px;
    border: 1px solid var(--cr-mobile-line);
  }
  .user-cover {
    flex-direction: column;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cr-mobile-line);
    margin-bottom: 14px;
  }
  .user-cover .col-lg-4,
  .user-cover .col-md-4 {
    width: 100%;
    flex: 0 0 100%;
    justify-content: flex-start !important;
  }
  .user-name h4 {
    font-family: var(--cr-font-display);
    font-size: 16px;
    font-weight: 700;
  }
  .user-avatar img {
    border-radius: 50%;
    object-fit: cover;
  }
  .user-info-box .row > .col-md-6 {
    width: 100%;
    flex: 0 0 100%;
    margin-bottom: 10px;
  }
  .form-default .form-input input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--cr-mobile-line);
    border-radius: var(--cr-radius-btn);
    padding: 0 12px;
    font-size: 14px;
  }
  .user-info-wrapper .button {
    width: 100%;
  }
  .user-info-wrapper .button .btn {
    width: 100%;
    height: 48px;
  }

  /* ---- 订单列表 ---- */
  #order-list-box .order-list-title {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 14px;
  }
  #order-list-box .bar-title {
    padding-left: 0;
    padding-top: 0;
  }
  #order-list-box .bar-search {
    margin-top: 10px;
    width: 100%;
  }
  #order-list-box .search-input {
    display: flex;
    gap: 8px;
  }
  .order-status-list .button {
    display: flex;
    /* gap: 8px; */
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .order-status-list .btn-status {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 9px 14px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: var(--cr-radius-tag);
    border: 1px solid var(--cr-mobile-line);
    background: var(--cr-mobile-card);
    color: var(--cr-mobile-ink-2);
    line-height: 1.2;
  }
  .order-status-list .btn-status.btn-active {
    background: var(--cr-mobile-accent);
    color: #fff;
    border-color: var(--cr-mobile-accent);
  }
  #order-list-box .cart-single-list {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    box-shadow: var(--cr-shadow-card);
    border: 1px solid var(--cr-mobile-line);
    padding: 14px;
    margin-bottom: 14px !important;
  }
  #order-list-box .cart-single-list .row {
    margin: 0;
  }
  #order-list-box .cart-single-list .col-lg-6,
  #order-list-box .cart-single-list .col-lg-3,
  #order-list-box .cart-single-list .col-lg-2,
  #order-list-box .cart-single-list .col-md-6,
  #order-list-box .cart-single-list .col-md-3,
  #order-list-box .cart-single-list .col-md-2 {
    width: 100%;
    flex: 0 0 100%;
  }
  .order-no-box {
    display: flex;
    font-size: 13px;
    padding: 4px 0;
  }
  .order-no-box span:first-child {
    color: var(--cr-mobile-ink-2);
  }
  .order-no-box span:last-child {
    font-family: var(--cr-font-display);
    font-weight: 600;
  }
  .order-status span,
  .created-date span {
    font-size: 13px;
    color: var(--cr-mobile-ink-2);
  }
  #order-list-box .product-name a {
    font-size: 14px;
    font-weight: 600;
  }
  #order-list-box .product-des em {
    font-style: normal;
    font-size: 12px;
    color: var(--cr-mobile-ink-2);
  }
  .item-b-operation .btn-xs-i {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
    text-align: center;
    border-radius: var(--cr-radius-btn);
    margin: 0 0 8px !important;
  }

  /* ---- 消息列表 ---- */

   #message-list-box .p-10.bg-white {
    display: none !important;
  }
  #message-list-box .cart-single-list {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    box-shadow: var(--cr-shadow-card);
    border: 1px solid var(--cr-mobile-line);
    padding: 14px;
    margin-bottom: 12px;
  }
  #message-list-box .cart-single-list .row {
    margin: 0;
  }
  #message-list-box .checkbox-container {
    width: auto !important;
    align-items: flex-start !important;
    margin-bottom: 8px;
  }
  #message-list-box .p-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
  }
  #message-list-box .p-content .col-lg-6,
  #message-list-box .p-content .col-lg-3 {
    width: 100%;
    flex: 0 0 100%;
    justify-content: flex-start !important;
    margin-bottom: 4px;
  }
  .p-status .state-unread {
    color: var(--cr-mobile-accent) !important;
    font-size: 10px;
  }
  .content-detail-link {
    font-size: 14px;
    font-weight: 600;
    display: block;
  }
  .content-read {
    color: var(--cr-mobile-ink-2) !important;
  }
  .content-unread {
    color: var(--cr-mobile-ink) !important;
  }
  #message-list-box .cart-list-foot {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    border: 1px solid var(--cr-mobile-line);
    padding: 14px;
    margin-top: 12px;
  }
  #message-list-box .cart-list-foot .row {
    flex-direction: column;
    gap: 10px;
  }
  #message-list-box .cart-list-foot .col-lg-1 {
    display: none;
  }
  #message-list-box .cart-list-foot .btn-xs-i {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: var(--cr-radius-btn);
  }


  /* ---- account list title (unified across order / message / wishlist / address) ---- */
  .account-title {
    padding: 8px 0 14px;
    margin-bottom: 0;
  }
  .account-title h5 {
    position: relative;
    display: inline-block;
    margin: 0;
  }
  .account-title h5::before {
    position: absolute;
    left: 20px;
    bottom: -6px;
    content: "";
    background-color: var(--cr-mobile-accent);
    height: 2px;
    width: 28px;
    border-radius: 2px;
  }
  .account-title .h-title {
    font-family: var(--cr-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--cr-mobile-ink);
    padding-left: 20px;
  }

  #wishlist-tab-box .row > .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 4px;
    margin-bottom: 8px;
  }

  /* ---- 地址列表 ---- */
  .address-box .list-box .list-item {
    width: 100%;
    flex: 0 0 100%;
    margin-bottom: 12px;
  }
  .address-item {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    box-shadow: var(--cr-shadow-card);
    border: 1px solid var(--cr-mobile-line);
    padding: 14px;
    position: relative;
    overflow: hidden;
  }
  .add-address .address-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    border: 1px dashed var(--cr-mobile-accent) !important;
    background: var(--cr-mobile-accent-soft);
    box-shadow: none;
  }
  .add-box {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .add-btn {
    font-size: 18px;
    color: var(--cr-mobile-accent);
  }
  .add-text {
    font-family: var(--cr-font-display);
    font-weight: 600;
    color: var(--cr-mobile-accent);
    font-size: 14px;
  }
  .contact-text {
    font-family: var(--cr-font-display);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .detail-key {
    color: var(--cr-mobile-ink-2);
    font-size: 13px;
  }
  .detail-value {
    color: var(--cr-mobile-ink);
    font-size: 13px;
  }
  .modify-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .modify-box .btn-xs-i {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: var(--cr-radius-btn);
    float: none !important;
    margin: 0 !important;
    flex: 1 1 auto;
  }
}

/* ============================================================
   Task 11: 登录 / 注册 / 帮助 / 文章页
   ============================================================ */
@media (max-width: 991px) {
  /* ---- 登录 / 注册 ---- */
  .account-login.section {
    padding: 20px 0;
  }
  .account-login .col-lg-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin: 0;
  }
  .login-form,
  .register-form {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    box-shadow: var(--cr-shadow-card);
    border: 1px solid var(--cr-mobile-line);
    padding: 14px 12px;
  }
  .login-form .title h3,
  .register-form .title h3 {
    font-family: var(--cr-font-display);
    font-size: 18px;
    font-weight: 700;
  }
  .register-form .title p {
    font-size: 13px;
    color: var(--cr-mobile-ink-2);
  }
  .login-form .form-group,
  .register-form .form-group {
    margin-bottom: 14px;
  }
  .login-form .form-control,
  .register-form .form-control {
    width: 100%;
    height: 44px;
    font-size: 14px;
    border-radius: var(--cr-radius-btn);
    border: 1px solid var(--cr-mobile-line);
    padding: 0 12px;
    -webkit-appearance: none;
  }
  .login-form .input-group .col-sm-9,
  .register-form .input-group .col-sm-9 {
    width: 70%;
    flex: 0 0 70%;
    padding: 0;
  }
  .login-form .input-group .col-sm-3,
  .register-form .input-group .col-sm-3 {
    width: 30%;
    flex: 0 0 30%;
    padding: 0;
  }
  .captcha-img-box {
    height: 46px !important;
    width: 100%;
  }
  .register-form .col-sm-6 {
    width: 100%;
    flex: 0 0 100%;
  }
  .login-form .button .btn,
  .register-form .button .btn {
    width: 100%;
    height: 48px;
    background: var(--cr-mobile-accent);
    color: #fff;
    border: 0;
    border-radius: var(--cr-radius-btn);
    font-family: var(--cr-font-display);
    font-weight: 700;
    font-size: 15px;
  }
  .login-form .bottom-content,
  .register-form .d-flex.flex-wrap {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start !important;
  }
  .lost-pass {
    font-size: 13px;
    color: var(--cr-mobile-accent);
  }
  .outer-link {
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
  }

  /* ---- 帮助页 ---- */
  .contact-box {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    box-shadow: var(--cr-shadow-card);
    border: 1px solid var(--cr-mobile-line);
    padding: 16px;
  }
  .contact-title h2 {
    font-family: var(--cr-font-display);
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cr-mobile-accent);
    margin-bottom: 12px;
  }
  .contact-info {
    padding: 0 !important;
  }
  .contact-info .p-20 {
    padding: 0 !important;
  }
  .contact-info p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--cr-mobile-ink);
  }
  .contact-info .h5,
  .contact-info .lnr.h5 {
    font-family: var(--cr-font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--cr-mobile-ink);
  }
  .contact-info .h6,
  .contact-info .lnr.h6 {
    font-family: var(--cr-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--cr-mobile-accent);
  }
  .contact-info .pl-40 {
    padding-left: 12px !important;
  }
  .contact-info a {
    color: var(--cr-mobile-accent);
    word-break: break-word;
  }

  /* ---- 文章列表 (learn/index) ---- */
  .blog-section {
    padding: 16px 0;
  }
  .blog-section .col-lg-8,
  .blog-section .col-lg-4 {
    width: 100%;
    flex: 0 0 100%;
  }
  .blog-section .row > .col-lg-6 {
    width: 100%;
    flex: 0 0 100%;
  }
  .single-blog {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    box-shadow: var(--cr-shadow-card);
    border: 1px solid var(--cr-mobile-line);
    overflow: hidden;
    margin-bottom: 16px;
  }
  .blog-img img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover;
  }
  .blog-content {
    padding: 14px;
  }
  .blog-content .category {
    display: inline-block;
    font-size: 11px;
    color: var(--cr-mobile-accent);
    background: var(--cr-mobile-accent-soft);
    padding: 3px 8px;
    border-radius: var(--cr-radius-tag);
    margin-bottom: 8px;
  }
  .blog-content h4 {
    font-family: var(--cr-font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .blog-content h4 a {
    color: var(--cr-mobile-ink);
  }
  .blog-content > p {
    font-size: 13px;
    color: var(--cr-mobile-ink-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-content .button .btn {
    min-height: 38px;
    padding: 6px 16px;
    font-size: 13px;
  }
  .blog-section .sidebar {
    margin-top: 20px;
  }
  .widget {
    background: var(--cr-mobile-card);
    border-radius: var(--cr-radius-card);
    border: 1px solid var(--cr-mobile-line);
    padding: 14px;
    margin-bottom: 14px;
  }
  .widget-title {
    font-family: var(--cr-font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .single-popular-feed .feed-desc {
    padding-left: 72px !important;
    margin-bottom: 12px;
  }
  .single-popular-feed .feed-img img {
    width: 64px !important;
    height: 36px !important;
    object-fit: cover;
  }
  .post-title a {
    font-size: 13px;
    font-weight: 600;
  }
  .categories-widget ul.custom li a {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--cr-mobile-line);
  }
  .popular-tag-widget .tags a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    margin: 0 4px 6px 0;
    background: var(--cr-mobile-accent-soft);
    color: var(--cr-mobile-accent);
    border-radius: var(--cr-radius-tag);
  }

  /* ---- 文章详情 (learn/detail) ---- */
  .blog-single .col-lg-8 {
    width: 100%;
    flex: 0 0 100%;
  }
  .blog-single .col-lg-4 {
    display: none;
  }
  .post-thumbnils img {
    width: 100% !important;
    height: auto !important;
    border-radius: var(--cr-radius-card);
  }
  .meta-information .post-title {
    font-family: var(--cr-font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 12px 0 8px;
  }
  .meta-info {
    flex-wrap: wrap;
    gap: 8px;
  }
  .meta-info li a {
    font-size: 12px;
    color: var(--cr-mobile-ink-2);
  }
  .detail-inner {
    font-size: 14px;
    line-height: 1.6;
    color: var(--cr-mobile-ink);
  }
  .detail-inner p {
    font-size: 14px;
    line-height: 1.6;
  }
  .detail-inner img {
    max-width: 100%;
    height: auto;
    border-radius: var(--cr-radius-btn);
  }
  .detail-inner h2,
  .detail-inner h3,
  .detail-inner h4 {
    font-family: var(--cr-font-display);
    font-weight: 700;
  }
  .post-bottom-area {
    padding: 14px 0;
  }
  .post-tag ul li,
  .post-social-media ul li {
    display: inline-block;
    margin: 0 6px 6px 0;
  }

  /* 评论区卡片化 */
  .comments {
    margin-top: 24px !important;
    padding-top: 16px !important;
  }
  .comment-title h3 {
    font-family: var(--cr-font-display);
    font-size: 16px !important;
    font-weight: 700;
  }
  .single-comment {
    background: var(--cr-mobile-card);
    border: 1px solid var(--cr-mobile-line) !important;
    border-radius: var(--cr-radius-card);
    padding: 12px !important;
    margin-bottom: 10px !important;
    box-shadow: var(--cr-shadow-card);
  }
  .single-comment .avatar {
    width: 32px !important;
    height: 32px !important;
  }
  .comment-body .commenter {
    font-family: var(--cr-font-display);
    font-weight: 600;
  }
  .comment-content {
    font-size: 14px;
    line-height: 1.6;
  }
  .comment-action {
    flex-wrap: wrap;
    gap: 12px !important;
  }
  .replies {
    margin-left: 10px !important;
    padding-left: 12px !important;
  }
  .reply-form {
    margin-left: 10px !important;
  }
  .reply-form textarea,
  .comment-form .form-control-custom {
    font-size: 16px !important;
  }
  .comment-form-box.box-fixed {
    left: 0;
    right: 0;
    width: 100% !important;
  }
}

/* ============================================================
   Task 6.2: 商品列表筛选 / 排序抽屉 (CSS)
   ============================================================ */
@media (max-width: 991px) {
  /* 隐藏桌面端 topbar, 移动端用抽屉替代 */
  .product-grids .product-grid-topbar {
    display: none !important;
  }

  /* 筛选触发器 */
  .cr-filter-bar {
    padding: 0 0 10px;
  }
  .cr-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    background: var(--cr-mobile-card);
    border: 1px solid var(--cr-mobile-line);
    border-radius: var(--cr-radius-btn);
    font-family: var(--cr-font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--cr-mobile-ink);
    box-shadow: var(--cr-shadow-card);
    min-height: 44px;
    text-transform: none;
  }
  .cr-filter-trigger svg {
    width: 18px;
    height: 18px;
  }

  /* 遮罩 */
  .cr-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(var(--cr-bottomnav-h) + env(safe-area-inset-bottom));
    background: rgba(13, 17, 23, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .cr-filter-overlay.cr-open {
    opacity: 1;
    visibility: visible;
  }

  /* 底部抽屉 bottom sheet */
  .cr-filter-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--cr-bottomnav-h) + env(safe-area-inset-bottom));
    z-index: 1101;
    background: #FFFFFF;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -4px 20px rgba(13, 17, 23, 0.15);
    transform: translateY(calc(100% + var(--cr-bottomnav-h) + env(safe-area-inset-bottom)));
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    max-height: 70%;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .cr-filter-drawer.cr-open {
    transform: translateY(0);
  }
  .cr-filter-drawer-handle {
    width: 36px;
    height: 4px;
    background: #D1D5DB;
    border-radius: 2px;
    margin: 8px auto 4px;
    flex: 0 0 auto;
  }
  .cr-filter-drawer-title {
    flex: 0 0 auto;
    font-family: var(--cr-font-display);
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    padding: 10px 14px 4px;
    margin: 0;
    text-transform: none;
    letter-spacing: 0.01em;
  }
  .cr-filter-drawer-content {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
    overflow: hidden;
    padding: 8px 10px;
  }
  .cr-filter-cat-col {
    flex: 0 0 57%;
    overflow-y: auto;
    overscroll-behavior: contain;   /* 阻止滚动穿透到背景列表 */
    -webkit-overflow-scrolling: touch;
    padding: 0;
    border-right: 1px solid #E5E7EB;
  }
  .cr-filter-sort-col {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;   /* 阻止滚动穿透到背景列表 */
    -webkit-overflow-scrolling: touch;
    padding: 0;
  }
  .cr-filter-options {
    padding: 0;
  }
  .cr-filter-group {
    padding: 0;
  }
  .cr-filter-group-title {
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 2;
    font-family: var(--cr-font-display);
    font-size: 11px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 12px;
    margin: 0;
  }
  .cr-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    color: #111827;
    cursor: pointer;
    margin: 0;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    position: relative;
  }
  .cr-filter-option span {
    flex: 1;
    padding-right: 12px;
  }
  .cr-filter-option::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    background: transparent;
    flex: 0 0 auto;
    position: relative;
    box-sizing: border-box;
  }
  .cr-filter-option.cr-selected {
    background: #E8F3FF;
    border: 1.5px solid #3B82F6;
    color: #2563EB;
    font-weight: 600;
  }
  .cr-filter-option.cr-selected::after {
    border-color: #2563EB;
    background: #2563EB;
  }
  .cr-filter-option.cr-selected::before {
    content: '';
    position: absolute;
    right: 17px;
    top: 50%;
    width: 4px;
    height: 8px;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: translateY(-65%) rotate(45deg);
    z-index: 1;
  }
  .cr-filter-drawer-footer {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #E5E7EB;
  }
  .cr-filter-drawer-footer button {
    height: 44px;
    border-radius: 8px;
    font-family: var(--cr-font-display);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .cr-filter-drawer-footer .cr-filter-reset {
    flex: 1;
    background: #FFFFFF;
    color: #6B7280;
    border: 1.5px solid #D1D5DB;
    font-weight: 600;
    font-size: 14px;
  }
  .cr-filter-drawer-footer .cr-filter-apply {
    flex: 2;
    background: #2D6BFF;
    color: #FFFFFF;
    border: none;
    font-weight: 700;
    font-size: 14px;
  }
}

/* ============================================================
   Task 12: 全局触摸目标 / 字号 / 动效校准
   ============================================================ */

/* 入场动画关键帧 (全局, 桌面端也可用) */
@keyframes cr-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 桌面端隐藏移动专用组件 */
@media (min-width: 992px) {
  .cr-mobile-only {
    display: none !important;
  }
}
