/*
Theme Name: StreamTube Child
Description: Video WordPress Theme.
Author: phpface
Theme URI: https://1.envato.market/qny3O5
Author URI: https://1.envato.market/mgXE4y
Version: 1.0.0
Requires at least: 5.3
Tested up to: 5.8
Requires PHP: 5.6
License: Themeforest Licence
License URI: http://themeforest.net/licenses
Text Domain: streamtube-child
Template:  streamtube
Tags: two-columns, one-column, custom-menu, custom-logo, featured-images, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/
/* 隐藏播放器头部 */
.player-header {
    display: none !important;
}
/* 隐藏整个评论区容器 */
.single-video_comments {
    display: none !important;
}

/* 或者仅隐藏评论列表（保留相关产品等） */
.comments-list-lg {
    display: none !important;
}
/* 手机端3列产品布局（针对div.product-item） */
@media (max-width: 768px) {
  /* 1. 主网格容器 */
  .products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important; /* 产品间距 */
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
  }

  /* 2. 单个产品容器 */
  div.product-item {
    width: 100% !important;
    margin: 0 !important;
    position: relative !important;
  }

  /* 3. 强制1:1图片比例 */
  div.product-item .post-thumbnail {
    position: relative !important;
    padding-bottom: 100% !important; /* 关键：创建1:1比例 */
    height: 0 !important;
    overflow: hidden !important;
  }
  div.product-item .post-thumbnail img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 防止图片拉伸 */
  }

  /* 4. 文字内容优化 */
  div.product-item .post-bottom {
    padding: 6px 0 !important;
  }
  div.product-item .woocommerce-loop-product__title {
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 4px 0 !important;
  }
  div.product-item .price {
    font-size: 11px !important;
    display: block !important;
  }
}
/* 隐藏上传按钮 */
.btn.btn-submit[data-bs-toggle="dropdown"] {
    display: none !important;
}