/*
Theme Name: Twenty Twenty-Four Child
Template: twentytwentyfour
*/

@import url("../twentytwentyfour/style.css");

/* ===== 顶部导航 - 网站名称美化 ===== */
.wp-block-site-title a {
    font-size: 1.60rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: #111;
    background: linear-gradient(135deg, #111 60%, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.2s;
}

.wp-block-site-title a:hover {
    opacity: 0.75;
}

.wp-block-site-title a:focus {
    outline: none;
    box-shadow: none;
}

/* ===== 商店页面 - 商品网格中的商品标题 ===== */
.wc-block-product-template h2.wp-block-post-title {
    min-height: 48px;
    display: flex;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 产品详情页标题字体与列表页一致 */
.woocommerce div.product h1.wp-block-post-title {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 产品详情页 - 简短描述字体 */
.woocommerce div.product .wp-block-post-excerpt__excerpt {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 产品详情页 - 描述内容字体与标题一致 */
.woocommerce .woocommerce-Tabs-panel--description,
.wp-block-woocommerce-product-details .wp-block-post-content {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 产品详情页 - Description 选项卡标题字体 */
.woocommerce-Tabs-panel--description h2 {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* ===== 商店页面 - 下拉筛选框美化 ===== */

/* 排序下拉框 */
.woocommerce.wc-block-catalog-sorting select.orderby {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f7f7f7;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    padding: 0.6em 2.5em 0.6em 1em;
    font-size: 0.875rem;
    color: #1e1e1e;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4h9.65z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8em center;
    background-size: 12px;
}

.woocommerce.wc-block-catalog-sorting select.orderby:hover {
    border-color: #999;
}

.woocommerce.wc-block-catalog-sorting select.orderby:focus {
    outline: none;
    border-color: #3858e9;
    box-shadow: 0 0 0 2px rgba(56, 88, 233, 0.25);
}

/* 属性筛选下拉框 */
.wp-block-woocommerce-product-filter-attribute .style-dropdown select,
.wp-block-woocommerce-product-filter-attribute select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f7f7f7;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    padding: 0.6em 2.5em 0.6em 1em;
    font-size: 0.875rem;
    color: #1e1e1e;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wp-block-woocommerce-product-filter-attribute .style-dropdown select:hover,
.wp-block-woocommerce-product-filter-attribute select:hover {
    border-color: #999;
}

.wp-block-woocommerce-product-filter-attribute .style-dropdown select:focus,
.wp-block-woocommerce-product-filter-attribute select:focus {
    outline: none;
    border-color: #3858e9;
    box-shadow: 0 0 0 2px rgba(56, 88, 233, 0.25);
}

/* 隐藏 WooCommerce 自带的下拉箭头 SVG（避免与自定义箭头重叠） */
.wp-block-woocommerce-product-filter-attribute .style-dropdown > svg {
    display: none;
}

/* 通用 WooCommerce select 美化（兼容传统模板） */
.woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f7f7f7;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    padding: 0.6em 2.5em 0.6em 1em;
    font-size: 0.875rem;
    color: #1e1e1e;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4h9.65z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8em center;
    background-size: 12px;
}

.woocommerce-ordering select:hover {
    border-color: #999;
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: #3858e9;
    box-shadow: 0 0 0 2px rgba(56, 88, 233, 0.25);
}

/* ===== 产品详情页 - 相关产品区域字体统一 ===== */
.wp-block-woocommerce-product-collection h2.wp-block-heading {
    font-size: 1.75rem !important;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.wp-block-woocommerce-product-collection h3.wp-block-post-title {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 0.9rem !important;
    min-height: 3.2em !important;
    line-height: 1.4 !important;
}