/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Child Theme for Blocksy
Author: Your Name
Author URI: https://your-site.com/
Template: blocksy
Version: 1.0
*/

/* 产品分类样式 - 修复选中样式 */
.product-cat-item {
    transition: all 0.3s ease !important;
}
.product-cat-item.active {
    background: #FF6310 !important;
    color: white !important;
    font-weight: 500 !important;
}
.product-cat-item:hover {
    background: #FD7C47 !important;
    color: white !important;
    transition: 0.3s !important;
}

/* 产品项 hover 效果 */
.product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    transition: 0.3s;
}
/* 统一产品图片高度为180px */
.product-img-wrap {
    height: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.product-img-wrap img {
    height: 180px !important;
    max-width: 100% !important;
    width: auto !important;
    object-fit: contain !important; /* 保持图片比例，不拉伸 */
}
/* 无图片占位符统一高度 */
.product-item img[src*="placeholder.com"] {
    height: 180px !important;
    width: auto !important;
}

/* 弹窗样式优化 - 新增全局样式确保弹窗容器全屏 */
#product-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important; /* 视口宽度100% */
    height: 100vh !important; /* 视口高度100% */
    z-index: 99999 !important; /* 提高层级避免被遮挡 */
    box-sizing: border-box !important;
}

/* 弹窗样式优化 */
#close-modal:hover {
    color: #FF6310 !important;
    transition: 0.2s;
}
#modal-content h2 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
#modal-description p {
    margin: 0 0 10px 0;
    line-height: 1.8;
}

/* 分页按钮样式 */
.page-btn {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}
.page-btn:hover:not(:disabled) {
    background: #FF6310;
    color: white;
    border-color: #FF6310;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 99, 16, 0.2);
}
.page-btn.active {
    background: #FF6310;
    color: white;
    border-color: #FF6310;
    box-shadow: 0 2px 8px rgba(255, 99, 16, 0.2);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 页码信息显示样式 */
.page-info {
    padding: 10px 16px;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .products-filter-container {
        flex-direction: column !important;
    }
    .product-categories-sidebar, .products-list-container {
        width: 100% !important;
    }
    /* 移动端弹窗图片占满宽度 */
    #modal-image {
        width: 100% !important;
        margin-bottom: 15px;
    }
    #modal-content-text {
        width: 100% !important;
    }
    /* 移动端弹窗容器强制全屏 */
    #product-modal {
        width: 100vw !important;
        height: 100vh !important;
    }
    /* 移动端产品网格改为1列 */
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .page-info {
        padding: 8px 12px;
        font-size: 13px;
    }
    #products-pagination {
        gap: 8px;
    }
}


/* 图片列表外层容器：统一高度、白色背景、居中布局 */
.zxtc-logolist-group {
  background-color: #ffffff !important; /* 白色背景 */
  min-height: unset !important; /* 清除原有的最小高度 */
  height: 120px !important; /* 统一高度，你可以自由修改数值 */
  display: flex !important;
  justify-content: center !important; /* 水平居中 */
  align-items: center !important; /* 垂直居中 */
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #C0C0C0 !important; /* 去掉原有边框（可选） */
}
