/* 移动端商城 H5（仿 uni-app / lyshop 店铺首页风格） */
:root {
  --wap-bg: #f2f8f3;
  --wap-card: #fff;
  --wap-text: #1e2b1f;
  --wap-sub: #6d7f6f;
  --wap-line: #e6efe7;
  --wap-primary: #2f8f46;
  --wap-primary-dark: #236d35;
  --wap-accent: #6abf7f;
  --wap-shadow-sm: 0 6px 20px rgba(26, 74, 41, 0.1);
  --wap-shadow-md: 0 12px 30px rgba(26, 74, 41, 0.14);
  --wap-radius-md: 14px;
  --wap-radius-lg: 18px;
  --wap-safe-bottom: env(safe-area-inset-bottom, 0px);
  --wap-tab-h: 52px;
}

.wap-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 520px at 10% -10%, rgba(88, 170, 107, 0.22), transparent 62%),
    radial-gradient(1000px 480px at 95% 5%, rgba(141, 205, 154, 0.18), transparent 60%),
    var(--wap-bg);
  color: var(--wap-text);
  -webkit-tap-highlight-color: transparent;
}

.wap-body a {
  color: inherit;
  text-decoration: none;
}

.wap-app {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding-bottom: calc(var(--wap-tab-h) + var(--wap-safe-bottom));
  box-sizing: border-box;
}

.wap-app.wap-no-tab {
  padding-bottom: var(--wap-safe-bottom);
}

.wap-main {
  padding-bottom: 16px;
}

/* —— 首页顶栏 —— */
.wap-home-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 250, 245, 0.96) 100%);
  backdrop-filter: blur(8px);
  padding: 10px 14px 12px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(47, 143, 70, 0.1);
  box-shadow: 0 8px 24px rgba(47, 143, 70, 0.1);
}

.wap-home-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.wap-logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  background: linear-gradient(100deg, #1f6c33, #2f8f46 60%, #67bd7c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.wap-loc {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
  min-width: 0;
}

.wap-loc span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wap-mini-link {
  font-size: 12px;
  color: #3d6d45;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f5eb;
}

.wap-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wap-search input {
  flex: 1;
  border: 0;
  background: #edf6ef;
  border-radius: 999px;
  padding: 11px 15px;
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(47, 143, 70, 0.08);
}

.wap-search .btn-search {
  border: 0;
  background: linear-gradient(135deg, var(--wap-primary), #6abf7f);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 143, 70, 0.3);
}

/* —— 内页顶栏 —— */
.wap-page-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 46px;
  padding: 6px 8px;
  padding-top: calc(6px + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wap-line);
}

.wap-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  color: #333;
  border-radius: 10px;
}

.wap-back:active {
  background: #f5f5f5;
}

.wap-page-head h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wap-head-placeholder {
  width: 40px;
  height: 40px;
}

/* —— 公告 —— */
.wap-notice {
  margin: 12px 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #e8f6ea, #f3faf4);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #2f6741;
  border: 1px solid #d7ebdc;
}

.wap-notice-tag {
  flex-shrink: 0;
  background: var(--wap-primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

/* —— 轮播 —— */
.wap-banner-wrap {
  margin: 14px 14px 0;
  position: relative;
  border-radius: var(--wap-radius-lg);
  overflow: hidden;
  box-shadow: var(--wap-shadow-md);
}

.wap-banner-viewport {
  overflow: hidden;
  border-radius: var(--wap-radius-lg);
  width: 100%;
}

.wap-banner-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.wap-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  min-height: 148px;
  padding: 24px 20px;
  color: #fff;
  box-sizing: border-box;
  position: relative;
  display: block;
}

.wap-banner-slide img {
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
  display: block;
}

.wap-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 14px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  color: #fff;
}

.wap-banner-slide h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.wap-banner-slide p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
}

.bn-a {
  background: linear-gradient(135deg, #2f8f46 0%, #6abf7f 100%);
}

.bn-b {
  background: linear-gradient(135deg, #2d7d4a 0%, #49a867 100%);
}

.bn-c {
  background: linear-gradient(135deg, #3d9f58 0%, #7ccc8e 100%);
}

.bn-d {
  background: linear-gradient(135deg, #3f7b4a 0%, #5fa56e 100%);
}

.wap-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.wap-banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s, background 0.2s;
}

.wap-banner-dots span.on {
  background: #fff;
  transform: scale(1.25);
}

/* —— 分类宫格 —— */
.wap-sec-title {
  margin: 20px 14px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.wap-sec-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.wap-sec-title small {
  font-size: 12px;
  color: var(--wap-sub);
}

.wap-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  margin: 0 14px;
  padding: 16px 12px;
  background: var(--wap-card);
  border-radius: var(--wap-radius-md);
  box-shadow: var(--wap-shadow-sm);
}

.wap-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 12px;
  color: #273248;
}

.wap-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.wap-cat-icon.t1 {
  background: linear-gradient(145deg, #3ea85a, #2f8f46);
}

.wap-cat-icon.t2 {
  background: linear-gradient(145deg, #58b86f, #379d51);
}

.wap-cat-icon.t3 {
  background: linear-gradient(145deg, #8cd68d, #52ab5f);
}

.wap-cat-icon.t4 {
  background: linear-gradient(145deg, #5bb872, #2f8f46);
}

.wap-cat-icon.t5 {
  background: linear-gradient(145deg, #74c684, #4aa65f);
}

.wap-cat-icon.t6 {
  background: linear-gradient(145deg, #9bdca0, #66b972);
}

.wap-cat-icon.t7 {
  background: linear-gradient(145deg, #4faa63, #2f8f46);
}

.wap-cat-icon.t8 {
  background: linear-gradient(145deg, #69bf7c, #3f9f56);
}

/* —— 商品双列 —— */
.wap-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 14px;
}

.wap-pcard {
  background: var(--wap-card);
  border-radius: var(--wap-radius-md);
  overflow: hidden;
  box-shadow: var(--wap-shadow-sm);
  display: flex;
  flex-direction: column;
}

.wap-pcard-img {
  position: relative;
  aspect-ratio: 1;
  background: #f3f4f6;
}

.wap-pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wap-pcard-body {
  padding: 12px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wap-pcard-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  color: inherit;
}

.wap-pcard-sub {
  font-size: 12px;
  color: var(--wap-sub);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wap-pcard-row {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.wap-pcard-more {
  font-size: 12px;
  color: var(--wap-primary);
  font-weight: 600;
  flex-shrink: 0;
}

.wap-price {
  color: var(--wap-primary);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.wap-price small {
  font-size: 12px;
  font-weight: 600;
}

/* —— 分类页大宫格 —— */
.wap-cat-big-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px;
}

.wap-cat-big {
  background: var(--wap-card);
  border-radius: var(--wap-radius-md);
  padding: 16px;
  box-shadow: var(--wap-shadow-sm);
}

.wap-cat-big h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1a1a1a;
}

.wap-cat-big p {
  margin: 0;
  font-size: 12px;
  color: var(--wap-sub);
}

/* —— 表单通用 —— */
.wap-panel {
  margin: 14px;
  background: var(--wap-card);
  border-radius: var(--wap-radius-md);
  padding: 16px;
  box-shadow: var(--wap-shadow-sm);
}

.wap-field {
  margin-bottom: 12px;
}

.wap-field label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.wap-field input,
.wap-field select,
.wap-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
}

.wap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #f0f2f5;
  color: #333;
}

.wap-btn.primary {
  background: linear-gradient(135deg, var(--wap-primary), #6abf7f);
  color: #fff;
  width: 100%;
}

.wap-btn.outline {
  background: #fff;
  border: 1px solid #cfe5d4;
  color: var(--wap-primary);
}

.wap-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* —— 商品详情 —— */
.wap-detail-img {
  background: #fff;
}

.wap-detail-img img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.wap-detail-box {
  margin: 14px;
  background: var(--wap-card);
  border-radius: var(--wap-radius-lg);
  padding: 16px;
  margin-top: -12px;
  position: relative;
  z-index: 2;
  box-shadow: var(--wap-shadow-md);
}

.wap-detail-box .cat {
  font-size: 12px;
  color: var(--wap-sub);
  margin-bottom: 6px;
}

.wap-detail-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
}

.wap-detail-box .sub {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.wap-detail-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--wap-primary);
  margin-bottom: 8px;
}

.wap-detail-stock {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.wap-detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  border-top: 1px solid var(--wap-line);
  padding-top: 12px;
}

.wap-related {
  margin: 18px 14px;
}

.wap-related h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.wap-foot-note {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  padding: 8px 12px 24px;
}

.wap-foot-note a {
  color: #888;
}

/* —— 底部 Tab —— */
.wap-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 1180px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid #dbe9dd;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px 8px var(--wap-safe-bottom);
  z-index: 100;
  box-shadow: 0 -8px 22px rgba(26, 74, 41, 0.1);
}

.wap-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--wap-tab-h);
  padding: 4px 0 6px;
  font-size: 11px;
  color: #8a948a;
  letter-spacing: 0.2px;
  position: relative;
}

.wap-tabbar a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  width: 1px;
  background: #e8efe9;
}

.wap-tabbar a:last-child::after {
  display: none;
}

.wap-tabbar a .ic {
  width: 24px;
  height: 24px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wap-tabbar a .ic svg {
  width: 22px;
  height: 22px;
}

.wap-tabbar a.on {
  color: var(--wap-primary);
  font-weight: 700;
}

.wap-tabbar a.on .ic {
  transform: translateY(-1px);
}

.wap-tabbar a.on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--wap-primary);
}

/* —— 提示 —— */
.wap-alert {
  margin: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.wap-alert.err {
  background: #fff4f2;
  color: #a53a2f;
  border: 1px solid #f2c8bf;
}

.wap-alert.ok {
  background: #f6ffed;
  color: #237804;
  border: 1px solid #b7eb8f;
}

.wap-empty {
  text-align: center;
  padding: 48px 24px;
  color: #999;
  font-size: 14px;
}

.wap-filter-wrap {
  margin: 12px 14px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.wap-category-layout {
  margin: 12px 14px 0;
  background: #f3f3f5;
  border: 1px solid #e6e6ea;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 98px 1fr;
  min-height: 72vh;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.wap-level1-list {
  background: #ececef;
  border-right: 1px solid #e2e3e8;
  overflow-y: auto;
  max-height: 78vh;
}

.wap-level1-item {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  font-size: clamp(15px, 3.7vw, 18px);
  line-height: 1.25;
  color: #283242;
  border-bottom: 1px solid #e3e4ea;
  text-align: center;
}

.wap-level1-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.wap-level1-item.on {
  background: #fff;
  color: #1d2a3b;
  font-weight: 700;
  border-left: 3px solid #64748b;
}

.wap-level-right {
  background: #f7f7f8;
  padding: 10px 0 14px;
  /* Grid 子列默认可溢出；收窄后内部 flex 才能按宽度换行 */
  min-width: 0;
}

.wap-category-headline {
  margin: 2px 14px 10px;
}

.wap-category-headline h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: #1f2937;
}

.wap-category-headline p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7a828f;
}

.wap-category-breadcrumb {
  margin: 8px 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 4px 6px;
  row-gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.wap-category-breadcrumb .wap-bc-sep {
  color: #c5cad3;
  user-select: none;
  flex: 0 0 auto;
}

.wap-category-breadcrumb .wap-bc-link {
  color: #475569;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wap-category-breadcrumb .wap-bc-link:active {
  color: #1e293b;
}

.wap-category-breadcrumb .wap-bc-ancestor {
  color: #475569;
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wap-category-breadcrumb .wap-bc-current {
  color: #1f2937;
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wap-category-filters {
  margin: 2px 0 6px;
  min-width: 0;
}

.wap-level2-row,
.wap-level3-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 8px;
  row-gap: 8px;
  padding: 0 10px;
  margin-bottom: 8px;
  min-width: 0;
  box-sizing: border-box;
}

.wap-level2-row::-webkit-scrollbar,
.wap-level3-row::-webkit-scrollbar {
  display: none;
}

.wap-load-more-wrap {
  margin: 14px;
  text-align: center;
}

.wap-filter-wrap::-webkit-scrollbar {
  display: none;
}

.wap-chip {
  flex: 0 1 auto;
  max-width: 100%;
  border: 1px solid #dde2ea;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f8fafc;
  font-size: 13px;
  color: #38465b;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wap-chip.on {
  background: #1f2937;
  color: #fff;
  border-color: #1f2937;
}

.wap-sort-bar {
  margin: 10px 14px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8efe9;
}

.wap-sort-bar a {
  text-align: center;
  font-size: 13px;
  padding: 10px 0;
  color: #51665a;
  border-right: 1px solid #eef3ef;
}

.wap-sort-bar a:last-child {
  border-right: 0;
}

.wap-sort-bar a.on {
  color: #111827;
  font-weight: 700;
}

.wap-category-page .wap-product-grid {
  margin: 0 10px;
  gap: 14px 10px;
}

.wap-category-page .wap-pcard {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.wap-category-page .wap-pcard-img {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e9eaee;
  box-shadow: inset 0 0 0 1px #e3e5ea;
}

.wap-category-page .wap-pcard-img-plain {
  aspect-ratio: 1 / 1;
}

.wap-category-page .wap-pcard-img-plain img {
  opacity: 0.92;
  transform: scale(0.985);
}

.wap-category-page .wap-pcard-body {
  padding: 10px 12px 12px;
}

.wap-category-page .wap-pcard-name {
  text-align: center;
  font-size: 15px;
  min-height: 2.5em;
}

.wap-category-page .wap-pcard-name-plain {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1f2937;
  margin-top: 8px;
  font-size: clamp(16px, 3.7vw, 20px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.2px;
  min-height: 2.4em;
}

.wap-category-page .wap-pcard-sub {
  display: none;
}

.wap-category-page .wap-pcard-row {
  padding-top: 8px;
}

.wap-category-page .wap-price {
  font-size: 18px;
}

.wap-category-page .wap-load-more-wrap {
  margin-top: 10px;
}

.wap-detail-images {
  display: grid;
  gap: 8px;
}

.wap-detail-images img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.wap-image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wap-image-viewer.show {
  display: flex;
}

.wap-image-viewer img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (min-width: 431px) {
  .wap-body {
    background:
      radial-gradient(1200px 520px at 10% -10%, rgba(88, 170, 107, 0.14), transparent 62%),
      radial-gradient(1000px 480px at 95% 5%, rgba(141, 205, 154, 0.12), transparent 60%),
      #eaf3ec;
  }

  .wap-main {
    max-width: 980px;
    margin: 0 auto;
  }

  .wap-home-head,
  .wap-page-head {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
  }
}

@media (min-width: 768px) {
  .wap-category-layout {
    grid-template-columns: 138px 1fr;
  }

  .wap-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .wap-category-page .wap-pcard-name-plain {
    font-size: 17px;
  }

  .wap-cat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .wap-cat-big-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wap-banner-slide {
    min-height: 172px;
  }

  .wap-pcard:hover,
  .wap-cat-big:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 28px rgba(26, 74, 41, 0.16);
  }
}

@media (min-width: 1024px) {
  .wap-main {
    max-width: 1120px;
  }

  .wap-home-head,
  .wap-page-head {
    max-width: 1120px;
  }

  .wap-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wap-cat-big-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
