/**
 * Typography Overrides — 最后加载，优先级最高
 * 三层体系：
 *   Display  → Bodoni Moda         (标题 / 产品名 / 筛选组标题)
 *   Body     → DM Sans             (正文 / 导航 / 价格)
 *   Badge    → Jost                (Logo / 全大写标签 / Mega/侧栏小标题)
 *   Accent   → Cormorant Garamond  (blockquote / 纯装饰斜体，不用于商品)
 *
 * 覆盖目标：Blocksy 父主题、home.css light-mode 硬编码、footer.css Logo 不一致
 */

/* ═══════════════════════════════════════════════
   全局基础：body / form 元素 / 标题层
═══════════════════════════════════════════════ */

body,
button,
input,
select,
textarea {
    font-family: var(--ahq-font-body) !important;
}

:root body h1,
:root body h2,
:root body h3,
:root body h5,
:root body h6 {
    font-family: var(--ahq-font-display) !important;
}

:root body h4 {
    font-family: var(--ahq-font-elegant) !important;
    font-style: italic;
}

/* 页脚栏目标题：Jost 大写标签，不用 Cormorant 斜体 */
.ahq-footer-col-title,
p.ahq-footer-col-title,
.ahq-mode-light .ahq-footer-col .ahq-footer-col-title,
.ahq-mode-light .ahq-footer-col h4,
.ahq-footer-col h4.ahq-footer-col-title {
    font-family: var(--ahq-font-badge) !important;
    font-style: normal !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: var(--ahq-gold, #9a7a08) !important;
}

/* Blocksy 父主题 --theme-font-family 重置 */
.ct-label,
.ct-menu-badge,
.ct-post-title,
.ct-product-title,
.woocommerce-loop-category__title {
    font-family: var(--ahq-font-display) !important;
}

/* ═══════════════════════════════════════════════
   LOGO — 01 Modern Gallery / Museum Didone
   主字标 Bodoni；副标语 Jost 金色；头尾统一
═══════════════════════════════════════════════ */

.ahq-logo-name,
.ahq-footer-logo-link .ahq-logo-name {
    font-family: var(--ahq-font-display) !important;
    font-style: normal !important;
}

.ahq-logo-tagline,
.ahq-footer-logo-link .ahq-logo-tagline {
    font-family: var(--ahq-font-badge) !important;
    font-style: normal !important;
}

/* ═══════════════════════════════════════════════
   NAVIGATION — Header nav / sidebar nav
═══════════════════════════════════════════════ */

.ahq-nav-list > li > a,
.ahq-filter-label,
.ahq-shop-nav-link {
    font-family: var(--ahq-font-body) !important;
}

/* ═══════════════════════════════════════════════
   MEGA MENU
   栏目标题（BY TYPE / BY MATERIAL…）→ Jost 大写标签
   链接列表 → DM Sans
═══════════════════════════════════════════════ */

.ahq-mega-heading {
    font-family: var(--ahq-font-badge) !important;
    font-style: normal !important;
}

.ahq-mega-list li a,
.ahq-mega-all,
.ahq-mega-promo-sub {
    font-family: var(--ahq-font-body) !important;
}

.ahq-mega-promo-label {
    font-family: var(--ahq-font-display) !important;
    font-style: normal !important;
}

/* ═══════════════════════════════════════════════
   SHOP SIDEBAR / FILTER
   筛选组标题（Size / Color / Composition）→ Bodoni（奢华）
   选项文字 → DM Sans
   Shop 侧栏导航大标题 → Bodoni
═══════════════════════════════════════════════ */

.ahq-filter-title,
.ahq-shop-nav-label {
    font-family: var(--ahq-font-display) !important;
    font-style: normal !important;
}

.ahq-shop-card-cat,
.ahq-filter-checks li label {
    font-family: var(--ahq-font-body) !important;
}

/* Shop Hero 标题 */
.ahq-shop-hero-title {
    font-family: var(--ahq-font-display) !important;
    font-style: normal !important;
}

/* ═══════════════════════════════════════════════
   PRODUCT CARDS — 列表 + 首页 Newest
   产品名 → Bodoni（奢华）；覆盖 light-mode Cormorant 规则
   分类标签 → Jost 大写
   价格 → DM Sans（清晰数字，无 Lato 回退）
═══════════════════════════════════════════════ */

.ahq-pc-title,
.ahq-pc-title a,
.ahq-mode-light .ahq-pc-title,
.ahq-mode-light .ahq-pc-title a,
.ahq-newest-right .ahq-pc-title,
.ahq-newest-left .ahq-pc-title {
    font-family: var(--ahq-font-display) !important;
    font-style: normal !important;
}

.ahq-pc-cat,
.ahq-mode-light .ahq-pc-cat,
.ahq-shop-card-cat {
    font-family: var(--ahq-font-badge) !important;
    font-style: normal !important;
}

.ahq-pc-price,
.ahq-mode-light .ahq-pc-price,
.ahq-shop-card-price,
.price,
.woocommerce-Price-amount,
bdi {
    font-family: var(--ahq-font-body) !important;
    font-style: normal !important;
}

/* ═══════════════════════════════════════════════
   HOME PAGE — Section label 眉标题 → Jost
   覆盖 light-mode Cormorant italic 规则
═══════════════════════════════════════════════ */

.ahq-section-label,
.ahq-mode-light .ahq-section-label {
    font-family: var(--ahq-font-badge) !important;
    font-style: normal !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.26em !important;
}

/* Home 区块大标题 → Bodoni */
.ahq-newest-title,
.ahq-collections-title,
.ahq-bestsellers-title,
.ahq-section-hd h2,
.ahq-mode-light .ahq-newest-title,
.ahq-mode-light .ahq-collections-title,
.ahq-mode-light .ahq-bestsellers-title {
    font-family: var(--ahq-font-display) !important;
    font-style: normal !important;
}

/* ═══════════════════════════════════════════════
   BLOG SIDEBAR
   小组标题（SEARCH / CATEGORIES…）→ Jost 大写
═══════════════════════════════════════════════ */

.ahq-blog-widget-title {
    font-family: var(--ahq-font-badge) !important;
    font-style: normal !important;
}

/* Blog 文章标题 → Bodoni */
.ahq-blog-post-title,
.ahq-blog-post-title a,
.ahq-blog-recent-title {
    font-family: var(--ahq-font-display) !important;
    font-style: normal !important;
}

/* Blog Hero Banner 标题 → Bodoni */
.ahq-blog-banner-title {
    font-family: var(--ahq-font-display) !important;
}

/* ═══════════════════════════════════════════════
   WooCommerce 原生元素
   侧栏 Widget 标题 → Jost
═══════════════════════════════════════════════ */

.widget.widget_product_categories .widgettitle,
.widget.widget_price_filter .widgettitle,
.widget.widget_layered_nav .widgettitle,
.widget_title {
    font-family: var(--ahq-font-badge) !important;
    font-style: normal !important;
}

/* 产品单页（PDP）标题 → Bodoni */
.product_title.entry-title,
.woocommerce div.product .product_title {
    font-family: var(--ahq-font-display) !important;
    font-style: normal !important;
}

/* ═══════════════════════════════════════════════
   SEARCH POPUP
═══════════════════════════════════════════════ */

.ahq-search-label {
    font-family: var(--ahq-font-display) !important;
}

.ahq-search-popup .search-field {
    font-family: var(--ahq-font-body) !important;
}

/* ═══════════════════════════════════════════════
   MOBILE PANEL
   Panel 标题 → Bodoni；链接 → DM Sans
═══════════════════════════════════════════════ */

.ahq-panel-title {
    font-family: var(--ahq-font-display) !important;
    font-style: normal !important;
}

/* ═══════════════════════════════════════════════
   CORMORANT 保留区（纯装饰）
   仅 editorial 副文案 + blockquote，不用于商品/标签
═══════════════════════════════════════════════ */

.ahq-editorial-sub,
.ahq-mode-light .ahq-editorial-sub,
blockquote,
blockquote p {
    font-family: var(--ahq-font-elegant) !important;
    font-style: italic;
}

/* ═══════════════════════════════════════════════
   字号阶梯统一（修掉「字小 / 比例乱」）
   —— 微标签 eyebrow / 分类标签：全站 0.7rem 起步
═══════════════════════════════════════════════ */

.ahq-section-label,
.ahq-mode-light .ahq-section-label,
.ahq-pc-cat,
.ahq-shop-card-cat,
.ahq-blog-banner-eyebrow {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em !important;
    line-height: 1.3 !important;
}

/* 首页特性条标题：去 Cormorant，统一为 DM Sans（与页脚信任条一致风格） */
.ahq-promise-item strong,
.ahq-mode-light .ahq-promise-item strong {
    font-family: var(--ahq-font-body) !important;
    font-style: normal !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

/* 缩略图条内的迷你卡分类标签保持更小（不被上面拉大） */
.ahq-newest-thumb .ahq-pc-cat {
    font-size: 0.56rem !important;
    letter-spacing: 0.12em !important;
}

/* 产品卡标题：Bodoni 500，最小可读尺寸兜底 */
.ahq-pc-title,
.ahq-pc-title a,
.ahq-shop-card-title,
.ahq-shop-card-title a {
    font-weight: 500 !important;
    line-height: 1.32 !important;
}

.ahq-shop-card-title {
    font-size: 1rem !important;
}

/* 价格：DM Sans 600，统一不发小 */
.ahq-pc-price,
.ahq-shop-card-price .woocommerce-Price-amount {
    font-weight: 600 !important;
}

/* ═══════════════════════════════════════════════
   区块标题三页统一（按首页设计：Bodoni + 金色短线）
═══════════════════════════════════════════════ */

.ahq-newest-title,
.ahq-bestsellers-title,
.ahq-collections-title,
.ahq-section-hd h2,
.ahq-blog-banner-title {
    font-size: clamp(2rem, 3.6vw, 2.85rem) !important;
    font-weight: 400 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.12 !important;
}

/* Blog Banner 标题补金色短线（与首页一致，居中） */
.ahq-blog-banner-title {
    position: relative;
    padding-bottom: 0.65rem;
}

.ahq-blog-banner-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    margin: 0.75rem auto 0;
    background: linear-gradient(to right, transparent, var(--ahq-gold), transparent);
}
