/*
Theme Name: Astra Child - Obago Shop
Template: astra
Description: shop.obago.com.au 的 Astra 子主题，只管样式。文件组织跟主站 obago.com.au 的子主题一致：style.css 只放全站基础样式，页面专属的放 assets/css/pages/，加载条件见 functions.php。功能性 PHP 放 wp-content/mu-plugins/。
Author: obago
Version: 1.0.0
*/
/*! © 2026 Oba Go 欧爸优选 shop.obago.com.au 版权所有，未经许可不得复制使用。Fingerprint: obgshop-kts9r7wjor */

/* 防抄袭指纹：注释被压缩工具去掉时，这个变量还在。不要删，查找方法见 docs/防抄袭指纹.md。 */
:root {
	--obago-fp: "obgshop-kts9r7wjor";
}

/* 页头文字 Logo（Oba Go + 欧爸优选）的字体，跟主站 obago.com.au 一致，字体文件从主站子主题 fonts/ 复制过来自托管。
   阿里巴巴普惠体是主站做的 3500 常用字子集（子集化步骤见主站子主题 fonts/README.md），这里只用到 600 一个字重；
   Plus Jakarta Sans 只有 800 一个字重的拉丁子集（OFL 授权）。 */
@font-face {
	font-family: 'Alibaba PuHuiTi 3.0';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/alibaba-puhuiti-600-v5.woff2') format('woff2');
}
@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('fonts/plus-jakarta-sans-800-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* 面包屑（商品页、分类页，WooCommerce 的 .woocommerce-breadcrumb，内容见 mu-plugins/obago-breadcrumb.php）：跟主站一致——
   链接蓝字，“首页”前加房子线条图标（mask，颜色跟随链接色），分隔符“›”浅灰，最后一项“当前页”次要文字灰。
   每项不折行，手机上路径长时只在分隔符处换行。 */
.woocommerce .woocommerce-breadcrumb {
	margin-bottom: 12px;
	color: #6b6862;
	font-size: 15px;
	line-height: 1.6;
}
.woocommerce .woocommerce-breadcrumb a {
	color: #3e8fc4;
	text-decoration: none;
	white-space: nowrap;
}
.woocommerce .woocommerce-breadcrumb a:hover {
	color: #2e6f9c;
}
.woocommerce .woocommerce-breadcrumb > a:first-child::before {
	content: "";
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-right: 5px;
	vertical-align: -2px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.woocommerce .woocommerce-breadcrumb .separator {
	margin: 0 6px;
	color: #c9c3b8;
}

/* 普通页面（澳洲直邮须知、购物车、结算、我的账户等）正文跟页头 / 页脚之间留白：Astra 的“无侧边栏平铺”版式只在 1200px 以上
   给 #primary 上下 60px，1199px 以下是 0，标题紧贴菜单。这里补成 32px；1200px 以上照旧用 Astra 的 60px。
   首页、分类页、商品页另有自己的间距，不受影响。 */
@media (max-width: 1199px) {
	body.page:not(.home).ast-plain-container.ast-no-sidebar #primary {
		margin-top: 32px;
		margin-bottom: 32px;
	}
}

/* 普通页面正文（澳洲直邮须知这类说明页）：每一节的 H2 跟上一节拉开距离，原来只隔 15–26px，几节内容连成一片；
   列表每项之间留一点空，长句折行后容易分清是哪一条。 */
body.page:not(.home) .entry-content > h2:not(:first-child) {
	margin-top: 40px;
}
body.page:not(.home) .entry-content li + li {
	margin-top: 6px;
}
@media (max-width: 921px) {
	body.page:not(.home) .entry-content > h2:not(:first-child) {
		margin-top: 32px;
	}
}
