/* ===== 最高优先级移动端修�?- 覆盖所有其他样�?===== */
@media screen and (max-width: 768px) {
  /* 最高优先级文字区域修复 - 覆盖所有内联样式和JavaScript，修复溢出问�?*/
  html body .product-card .flex-1.min-w-0,
  html body .product-card .flex-1 {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 !important;
    min-width: 0 !important;
    max-width: calc(100% - 80px) !important;
    /* 修复溢出问题 - 移除固定高度 */
    min-height: auto !important;
    height: auto !important;
    max-height: 100% !important;
    padding: 4px !important;  /* 减少padding */
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 2px !important;  /* 减少gap */
    box-sizing: border-box !important;
    overflow: hidden !important;  /* 防止溢出 */
    /* 生产环境样式 - 移除调试边框 */
    border: none !important;
    /* 移除黄色背景 - 避免挤压商品信息 */
  }

  /* 最高优先级文字内容修复 - 覆盖所有内联样式和JavaScript */
  html body .product-card .flex-1.min-w-0 h2,
  html body .product-card .flex-1.min-w-0 h2 a,
  html body .product-card .flex-1.min-w-0 p,
  html body .product-card .flex-1.min-w-0 .product-short-description,
  html body .product-card .flex-1 h2,
  html body .product-card .flex-1 h2 a,
  html body .product-card .flex-1 p,
  html body .product-card .flex-1 .product-short-description {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #1f2937 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 4px !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    text-indent: 0 !important;
    position: static !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
    -webkit-text-fill-color: #1f2937 !important;
    /* 生产环境样式 - 移除调试边框 */
    border: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    z-index: 999 !important;
  }

  /* 最高优先级投票按钮修复 - 覆盖所有内联样式和JavaScript */
  html body .product-card .vote-btn.w-8.h-8.bg-\[#39896c\].hover\:bg-\[#2d6b56\].rounded-full.flex.items-center.justify-center.text-white.transition-colors.duration-200.mb-1.flex-shrink-0,
  html body .product-card .product-card .vote-btn,
  .product-card .vote-btn {
    width: 16px !important; /* PC端进一步缩小到16px */
    height: 16px !important; /* PC端进一步缩小到16px */
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 !important;
    background-color: #39896c !important;
    border: none !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: 16px !important; /* 修改为16px */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    scale: 1 !important;
    /* 生产环境样式 - 移除调试边框 */
    border: none !important;
    z-index: 999 !important;
  }

  /* 最高优先级投票区域修复 */
  html body .product-card .flex-shrink-0:last-child {
    width: 60px !important;
    height: auto !important;
    min-width: 60px !important;
    min-height: auto !important;
    max-width: 60px !important;
    max-height: auto !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px !important;
    /* 生产环境样式 - 移除调试边框 */
    border: none !important;
    /* 移除黄色背景 - 避免挤压商品信息 */
  }
}

/* WooCommerce原生变体选择器样式控�?- 修复下拉框过大问�?*/

/* AI-EDIT v8.1.10 分类标签栏字体优�?- 最高优先级修复 */
/* PC端分类标签栏字体修复：减小字�?*/
.category-tab {
  font-weight: 400 !important; /* 修复：PC端字体从500减少到400，不过粗 */
  font-size: 18px !important;   /* 修复：PC端字号从24px减小到18px */
  color: #000000 !important;   /* 保持黑色 */
}

/* 第一个分类特殊颜�?- 保持绿色 */
.category-tab:first-child {
  color: #39896c !important; /* 保持第一个分类绿�?*/
}

/* 移动端分类标签栏字体修复：减轻字体粗�?*/
@media (max-width: 768px) {
  .category-tab {
    font-weight: 400 !important; /* 修复：移动端字体�?00调整�?00，避免过�?*/
    font-size: 17px !important;  /* 修复：移动端字号从14px增大到17px */
  }
  
  .category-tab:first-child {
    color: #39896c !important; /* 修复：确保第一个分类绿色显�?*/
  }
}

/* 平板端分类标签栏字体 - 介于PC端和移动端之�?*/
@media (min-width: 769px) and (max-width: 1024px) {
  .category-tab {
    font-weight: 400 !important; /* 平板端字体保持400 */
    font-size: 16px !important;  /* 平板端字号16px */
  }
  
  .category-tab:first-child {
    color: #39896c !important;
  }
}

/* AI-EDIT v8.1.308 START - 移动端投票按钮尺寸保持24px */
@media (max-width: 1023px) {
  html body .product-card .vote-btn.w-8.h-8.bg-\[#39896c\].hover\:bg-\[#2d6b56\].rounded-full.flex.items-center.justify-center.text-white.transition-colors.duration-200.mb-1.flex-shrink-0,
  html body .product-card .product-card .vote-btn,
  .product-card .vote-btn {
    width: 24px !important; /* 移动端保持24px */
    height: 24px !important; /* 移动端保持24px */
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex-basis: 24px !important; /* 移动端保持24px */
  }
}
/* AI-EDIT v8.1.308 END */

/* 移动端商品卡样式已移至override.css统一管理 - 避免重复定义 */
/* 重复的移动端商品卡样式已删除，请查看override.css中的统一样式 */
