/* ==========================================================================
   GDL 内页层（moban8150 一比一复刻）
   作用：把 WooCommerce 原生 DOM 映射成模板 class 的视觉。
   加载顺序：style.css(模板) → gdl-compat.css → gdl-woo.css → gdl-inner.css(本文件)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 通用
   -------------------------------------------------------------------------- */
.gdl-empty-state {
	max-width: 560px;
	margin: 80px auto;
	padding: 48px 32px;
	border: 1px solid #ececec;
	border-radius: 24px;
	text-align: center;
}
.gdl-empty-state h3 {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 12px;
}
.gdl-empty-state p {
	color: #777;
	margin-bottom: 24px;
}
.gdl-empty-state .mb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 36px;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font-weight: 600;
}

/* 政策页：居中窄栏文档 */
.gdl-page-doc {
	max-width: 920px;
	margin: 0 auto;
}
.gdl-page-doc .ul-blog-big {
	padding: 0;
	background: transparent;
}
.gdl-page-comments {
	margin-top: 40px;
}

/* --------------------------------------------------------------------------
   2. 商品列表 / 分类 / 标签页
   -------------------------------------------------------------------------- */
.gdl-shop-grid {
	display: flex;
	flex-wrap: wrap;
	/* 保留 .row / .ul-bs-row 的 gutter：左右各负 1/2 槽宽，上边负一整格（配合卡片 margin-top） */
	margin: calc(var(--bs-gutter-y, clamp(15px, 1.58vw, 30px)) * -1) calc(var(--bs-gutter-x, clamp(15px, 1.58vw, 30px)) * -0.5) 0;
	padding: 0;
	list-style: none;
}
.gdl-shop-grid > li {
	list-style: none;
}

/* Woo 默认网格宽度改由 bootstrap 列宽控制（li 带 .col，与静态稿 <div class="col"> 一致） */
.gdl-shop-grid > li.product {
	float: none;
	/* 纵向间距：每行卡片顶部留一格槽宽，行与行不再贴在一起 */
	margin: var(--bs-gutter-y, clamp(15px, 1.58vw, 30px)) 0 0;
}

/* 同一行卡片等高，避免标题行数不同造成卡片底边参差 */
.gdl-shop-grid > li.product > .ul-product {
	height: 100%;
}

/* 工具栏：结果数 + 排序 */
.gdl-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.gdl-shop-toolbar .woocommerce-result-count {
	margin: 0;
	color: #6a6a6a;
	font-size: 15px;
}
.gdl-shop-toolbar .woocommerce-ordering {
	margin: 0;
	float: none;
}
.gdl-shop-toolbar .woocommerce-ordering select {
	height: 48px;
	padding: 0 40px 0 20px;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	background-color: #fff;
	color: #000;
	font-size: 15px;
}
.gdl-shop-toolbar .woocommerce-notices-wrapper {
	flex: 1 0 100%;
}
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	border-radius: 14px;
	background: #fafafa;
	border-top: 1px solid #ececec;
	padding: 16px 22px 16px 52px;
	color: #333;
}
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
	color: var(--ul-primary);
}

/* 分页：paginate_links → 模板 ul-pagination */
.ul-pagination ul .pages > a.page-numbers,
.ul-pagination ul .pages > span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: 6px;
	border-radius: 50%;
	color: #000;
	font-weight: 500;
	text-decoration: none;
}
.ul-pagination ul > li > a.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #e3e3e3;
	border-radius: 50%;
	color: #000;
}
.ul-pagination ul .pages > a.page-numbers:hover,
.ul-pagination ul .pages > span.page-numbers.current,
.ul-pagination ul > li > a.page-numbers:hover {
	background: var(--ul-primary);
	border-color: var(--ul-primary);
	color: #fff;
}
.ul-pagination ul .pages > span.page-numbers.dots {
	color: #999;
}

/* --------------------------------------------------------------------------
   3. 商品详情页
   -------------------------------------------------------------------------- */

/* 3.1 图库 */
.ul-product-details-img .woocommerce-product-gallery {
	width: 100%;
	float: none;
	margin-bottom: 0;
}
.ul-product-details-img .woocommerce-product-gallery__wrapper {
	margin: 0;
}
.ul-product-details-img .woocommerce-product-gallery__image img,
.ul-product-details-img .flex-viewport img {
	border-radius: 22px;
}
.ul-product-details-img .flex-viewport {
	border-radius: 22px;
	background: #f7f7f7;
}
.ul-product-details-img ol.flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.ul-product-details-img ol.flex-control-thumbs li {
	width: 92px;
	float: none;
	margin: 0;
}
.ul-product-details-img ol.flex-control-thumbs img {
	width: 100%;
	border-radius: 12px;
	border: 1px solid transparent;
	opacity: 0.75;
}
.ul-product-details-img ol.flex-control-thumbs img.flex-active,
.ul-product-details-img ol.flex-control-thumbs img:hover {
	opacity: 1;
	border-color: #000;
}
.ul-product-details-img .woocommerce-product-gallery__trigger {
	right: 18px;
	top: 18px;
}

/* 3.2 文案区 */
.ul-product-details-txt .ul-product-details-descr {
	color: #666;
	line-height: 1.75;
	margin-bottom: 24px;
}
.ul-product-details-txt .ul-product-details-descr p:last-child {
	margin-bottom: 0;
}
.ul-product-details-price {
	display: block;
}
.ul-product-details-price del {
	color: #9a9a9a;
	font-size: 0.7em;
	margin-right: 8px;
}
.ul-product-details-price ins {
	text-decoration: none;
}

/* 3.3 加购表单 */
.ul-product-details-txt .gdl-details-cart {
	display: block;
	margin: 0 0 22px;
}
.ul-product-details-txt form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	border: 0;
}
.ul-product-details-txt form.cart table.variations {
	width: 100%;
	margin: 0 0 18px;
	border: 0;
	border-collapse: collapse;
}
.ul-product-details-txt form.cart table.variations th.label,
.ul-product-details-txt form.cart table.variations td.value {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
}
.ul-product-details-txt form.cart table.variations th.label {
	display: none;
}
.ul-product-details-txt form.cart table.variations tr:not(:last-child) {
	margin-bottom: 18px;
}
.ul-product-details-txt .gdl-size-swatches {
	width: 100%;
}
.ul-product-details-txt .gdl-size-swatches__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.ul-product-details-txt .gdl-size-swatches__label {
	color: #000;
	font-size: 15px;
	font-weight: 600;
}
.ul-product-details-txt .gdl-size-swatches__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ul-product-details-txt button.gdl-swatch {
	min-width: 58px;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}
.ul-product-details-txt button.gdl-swatch:hover {
	border-color: #000;
}
.ul-product-details-txt button.gdl-swatch.is-selected {
	background: #000;
	border-color: #000;
	color: #fff;
}
.ul-product-details-txt .gdl-size-swatches__select {
	display: none;
}
.ul-product-details-txt .gdl-sg-trigger {
	color: #000;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 数量框（模板胶囊样式） */
.ul-product-details-txt form.cart .quantity {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
}
.ul-product-details-txt form.cart .quantity input.qty {
	width: 120px;
	height: 56px;
	padding: 0 44px 0 18px;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-weight: 600;
	text-align: center;
}

/* 加购按钮 */
.ul-product-details-txt form.cart .single_add_to_cart_button,
.ul-product-details-txt form.cart button.button {
	height: 56px;
	padding: 0 46px;
	border: 0;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.25s ease;
}
.ul-product-details-txt form.cart .single_add_to_cart_button:hover,
.ul-product-details-txt form.cart button.button:hover {
	background: var(--ul-primary);
}

/* 变体价格 / 库存提示 */
.ul-product-details-txt .woocommerce-variation-price {
	margin-bottom: 8px;
	font-weight: 700;
}
.ul-product-details-txt .woocommerce-variation-availability {
	margin-bottom: 12px;
	color: #666;
	font-size: 14px;
}

/* 球衣定制插件区域占满整行 */
.ul-product-details-txt .gdl-jc {
	flex: 1 0 100%;
	width: 100%;
	margin-top: 4px;
}

/* 商品 meta */
.gdl-product-meta {
	margin: 18px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid #ececec;
	list-style: none;
	color: #777;
	font-size: 14px;
}
.gdl-product-meta li {
	margin-bottom: 8px;
}
.gdl-product-meta .label {
	color: #000;
	font-weight: 600;
}

/* 分享与评价入口 */
.ul-product-details-txt .ul-product-details-actions {
	margin-top: 22px;
}
.ul-product-details-txt .add-to-wishlist {
	border: 0;
	background: transparent;
	padding: 0;
	color: #000;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}
.ul-product-details-txt .share-options a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-left: 8px;
	border: 1px solid #e3e3e3;
	border-radius: 50%;
	color: #000;
	transition: all 0.2s ease;
}
.ul-product-details-txt .share-options a:hover {
	background: var(--ul-primary);
	border-color: var(--ul-primary);
	color: #fff;
}

/* 3.4 下半：描述 + 评价 */
.ul-product-details-bottom {
	padding-top: 48px;
}
.gdl-product-desc {
	color: #5c5c5c;
	line-height: 1.85;
	font-size: 16px;
}
.gdl-product-desc h2,
.gdl-product-desc h3,
.gdl-product-desc h4 {
	margin: 28px 0 14px;
	color: #000;
	font-weight: 700;
}
.gdl-product-desc h2 {
	font-size: 26px;
}
.gdl-product-desc h3 {
	font-size: 22px;
}
.gdl-product-desc ul,
.gdl-product-desc ol {
	margin: 0 0 18px;
	padding-left: 22px;
}
.gdl-product-desc li {
	margin-bottom: 8px;
}
.gdl-product-desc table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}
.gdl-product-desc table th,
.gdl-product-desc table td {
	padding: 12px 14px;
	border: 1px solid #ececec;
	text-align: left;
}
.gdl-product-desc table th {
	background: #fafafa;
	font-weight: 600;
}

/* Woo 评价列表 → 模板评价卡 */
.ul-product-details-reviews #reviews {
	display: block;
}
.ul-product-details-reviews #reviews > h2,
.ul-product-details-reviews .woocommerce-Reviews-title {
	font-size: 24px;
	font-weight: 700;
	color: #000;
	margin: 0 0 20px;
	display: block;
}
.ul-product-details-reviews #reviews .commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ul-product-details-reviews #reviews .commentlist li {
	list-style: none;
}
.ul-product-details-reviews #reviews .comment_container {
	display: flex;
	gap: 20px;
	padding: 24px;
	margin-bottom: 16px;
	border: 1px solid #ececec;
	border-radius: 18px;
}
.ul-product-details-reviews #reviews .comment_container img.avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	flex-shrink: 0;
}
.ul-product-details-reviews #reviews .comment-text {
	flex: 1;
	margin: 0;
}
.ul-product-details-reviews #reviews .comment-text .star-rating {
	float: right;
	color: var(--ul-secondary);
}
.ul-product-details-reviews #reviews .comment-text p.meta {
	margin: 0 0 10px;
	color: #999;
	font-size: 14px;
}
.ul-product-details-reviews #reviews .comment-text p.meta strong {
	color: #000;
	font-size: 16px;
	font-weight: 600;
}
.ul-product-details-reviews #reviews .comment-text .description p {
	color: #5c5c5c;
	line-height: 1.75;
	margin-bottom: 10px;
}
.ul-product-details-reviews .woocommerce-verification-required {
	color: #777;
	font-size: 14px;
}
.ul-product-details-reviews #review_form_wrapper {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid #ececec;
}
.ul-product-details-reviews .comment-reply-title {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: #000;
	margin-bottom: 6px;
}
.ul-product-details-reviews .comment-notes {
	color: #888;
	font-size: 14px;
	margin-bottom: 20px;
}
.ul-product-details-reviews .comment-form-rating p.stars a {
	color: var(--ul-secondary);
}
.ul-product-details-reviews .comment-form label {
	display: block;
	margin-bottom: 6px;
	color: #000;
	font-weight: 500;
}
.ul-product-details-reviews .comment-form input[type="text"],
.ul-product-details-reviews .comment-form input[type="email"],
.ul-product-details-reviews .comment-form textarea {
	width: 100%;
	padding: 12px 18px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	background: #fff;
	color: #000;
	font-size: 15px;
}
.ul-product-details-reviews .comment-form input[type="text"],
.ul-product-details-reviews .comment-form input[type="email"] {
	height: 52px;
}
.ul-product-details-reviews .comment-form textarea {
	min-height: 150px;
}
.ul-product-details-reviews .comment-form .form-submit {
	margin-bottom: 0;
}
.ul-product-details-reviews .comment-form #submit {
	height: 54px;
	padding: 0 42px;
	border: 0;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.25s ease;
}
.ul-product-details-reviews .comment-form #submit:hover {
	background: var(--ul-primary);
}

/* 3.5 相关商品 */
.related.products,
.upsells.products {
	margin-top: 72px;
}
.related.products > h2,
.upsells.products > h2 {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 28px;
	color: #000;
}
.related.products ul.products,
.upsells.products ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.related.products ul.products li.product,
.upsells.products ul.products li.product {
	width: 100%;
	float: none;
	margin: 0;
	list-style: none;
}

/* --------------------------------------------------------------------------
   4. 购物车页
   -------------------------------------------------------------------------- */
.woocommerce-cart .ul-inner-page-container {
	padding-top: 0;
}
.ul-cart-container .woocommerce-cart-form {
	margin-bottom: 0;
}
.ul-cart-container .woocommerce table.shop_table.ul-cart-table {
	border: 0;
	border-radius: 0;
	overflow: visible;
	background: transparent;
}
.ul-cart-table thead th {
	padding: 0 16px 18px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #ececec;
	color: #000;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
}
.ul-cart-table tbody td {
	padding: 22px 16px;
	border: 0;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
	background: transparent;
}
.ul-cart-table tbody tr:last-child td {
	border-bottom: 0;
}
.ul-cart-table td.product-name {
	width: 42%;
}
.ul-cart-product {
	display: flex;
	align-items: center;
	gap: 18px;
}
.ul-cart-product .ul-cart-product-img {
	flex-shrink: 0;
	display: block;
}
.ul-cart-product .ul-cart-product-img img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 14px;
	background: #f7f7f7;
}
.ul-cart-product .ul-cart-product-title {
	color: #000;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}
.ul-cart-product .ul-cart-product-title:hover {
	color: var(--ul-primary);
}
.ul-cart-product .variation,
.ul-cart-product .wc-item-meta {
	margin: 8px 0 0;
	color: #888;
	font-size: 13px;
}
.ul-cart-product .variation dd,
.ul-cart-product .wc-item-meta li {
	margin: 0 0 4px;
}
.ul-cart-item-price,
.ul-cart-item-subtotal {
	color: #000;
	font-size: 16px;
	font-weight: 600;
}
.ul-cart-table .quantity {
	display: inline-flex;
	align-items: center;
	width: auto;
	margin: 0;
}
.ul-cart-table .quantity input.qty {
	width: 92px;
	height: 48px;
	padding: 0 12px;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-weight: 600;
	text-align: center;
}

.ul-cart-table .ul-cart-item-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #e3e3e3;
	border-radius: 50%;
	color: #000;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s ease;
}
.ul-cart-table .ul-cart-item-remove:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}

/* 优惠码 + 更新购物车 */
.ul-cart-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
}
.ul-cart-coupon-code-form-wrapper {
	display: flex;
	align-items: center;
	gap: 14px;
}
.ul-cart-coupon-code-form-wrapper .title {
	color: #000;
	font-weight: 600;
}
.ul-cart-coupon-code-form {
	display: flex;
	gap: 10px;
}
.ul-cart-coupon-code-form input.input-text {
	height: 52px;
	min-width: 240px;
	padding: 0 20px;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	background: #fff;
	color: #000;
}
.ul-cart-coupon-code-form .mb-btn,
.ul-cart-update-cart-btn {
	height: 52px;
	padding: 0 34px;
	border: 1px solid #000;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
}
.ul-cart-coupon-code-form .mb-btn:hover,
.ul-cart-update-cart-btn:hover {
	background: var(--ul-primary);
	border-color: var(--ul-primary);
}
.ul-cart-update-cart-btn {
	background: transparent;
	color: #000;
}
.ul-cart-update-cart-btn:hover {
	color: #fff;
}

/* 合计卡 */
.woocommerce .cart-collaterals {
	display: block;
	margin-top: 40px;
}
.woocommerce .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
	max-width: 520px;
	margin-left: auto;
	padding: 30px 32px;
	border: 1px solid #ececec;
	border-radius: 24px;
	background: #fff;
}
.woocommerce .cart-collaterals .cart_totals h2 {
	margin: 0 0 18px;
	color: #000;
	font-size: 24px;
	font-weight: 700;
}
.woocommerce .cart-collaterals .cart_totals table.shop_table {
	border: 0;
	border-radius: 0;
	background: transparent;
}
.woocommerce .cart-collaterals .cart_totals table.shop_table th,
.woocommerce .cart-collaterals .cart_totals table.shop_table td {
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid #f0f0f0;
	background: transparent;
	font-size: 15px;
}
.woocommerce .cart-collaterals .cart_totals tr.order-total th,
.woocommerce .cart-collaterals .cart_totals tr.order-total td {
	padding-top: 20px;
	border-bottom: 0;
	font-size: 20px;
	font-weight: 700;
}
.woocommerce .cart-collaterals .cart_totals .checkout-button {
	display: block;
	width: 100%;
	height: 56px;
	line-height: 56px;
	margin-top: 18px;
	padding: 0;
	border-radius: 999px;
	background: #000;
	color: #fff;
	text-align: center;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.25s ease;
}
.woocommerce .cart-collaterals .cart_totals .checkout-button:hover {
	background: var(--ul-primary);
	color: #fff;
}
.woocommerce .cart-collaterals .cross-sells {
	float: none;
	width: 100%;
	margin-top: 48px;
}
.woocommerce .cart-collaterals .cross-sells > h2 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   5. 结账页
   -------------------------------------------------------------------------- */

.ul-checkout-container {
	max-width: 1400px;
}
.ul-checkout-container .ul-checkout-title {
	margin: 0 0 22px;
	color: #000;
	font-size: 26px;
	font-weight: 700;
}
.ul-checkout-container form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	grid-template-areas:
		"title  summary-title"
		"details review";
	column-gap: 48px;
	row-gap: 0;
	align-items: start;
}
.ul-checkout-container form.checkout > .ul-checkout-title:first-of-type {
	grid-area: title;
}
.ul-checkout-container #customer_details {
	grid-area: details;
}
.ul-checkout-container #order_review_heading {
	grid-area: summary-title;
	margin-top: 0;
}
.ul-checkout-container #order_review {
	grid-area: review;
	padding: 28px;
	border: 1px solid #ececec;
	border-radius: 22px;
	background: #fff;
}
.ul-checkout-container .col2-set {
	display: block;
	margin: 0;
}
.ul-checkout-container .col2-set .col-1,
.ul-checkout-container .col2-set .col-2 {
	float: none;
	width: 100%;
	padding: 0;
}
.ul-checkout-container .woocommerce-billing-fields > h3,
.ul-checkout-container .woocommerce-shipping-fields > h3,
.ul-checkout-container .woocommerce-additional-fields > h3 {
	display: none;
}
.ul-checkout-container .woocommerce-billing-fields__field-wrapper,
.ul-checkout-container .woocommerce-shipping-fields__field-wrapper,
.ul-checkout-container .woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 22px;
}
.ul-checkout-container .form-row {
	float: none;
	width: 100%;
	padding: 0;
	margin: 0 0 18px;
}
.ul-checkout-container .form-row-wide,
.ul-checkout-container .form-row.notes {
	grid-column: 1 / -1;
}
.ul-checkout-container .form-row label {
	display: block;
	margin-bottom: 7px;
	color: #000;
	font-size: 14px;
	font-weight: 600;
}
.ul-checkout-container .form-row label .required {
	color: var(--ul-primary);
}
.ul-checkout-container .form-row input.input-text,
.ul-checkout-container .form-row select,
.ul-checkout-container .select2-selection--single {
	width: 100%;
	height: 54px;
	padding: 0 18px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	background: #fff;
	color: #000;
	font-size: 15px;
}
.ul-checkout-container .form-row textarea {
	width: 100%;
	min-height: 110px;
	padding: 14px 18px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	background: #fff;
}
.ul-checkout-container .select2-selection--single .select2-selection__rendered {
	line-height: 52px;
	padding: 0;
}
.ul-checkout-container .select2-selection--single .select2-selection__arrow {
	height: 52px;
}
.ul-checkout-container .woocommerce-shipping-fields #ship-to-different-address {
	margin: 8px 0 18px;
}
.ul-checkout-container .woocommerce-shipping-fields #ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
}

/* 订单摘要 */
.ul-checkout-container .woocommerce-checkout-review-order-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
}
.ul-checkout-container .woocommerce-checkout-review-order-table thead th {
	padding: 0 0 14px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #ececec;
	color: #888;
	font-size: 14px;
	font-weight: 500;
	text-align: left;
}
.ul-checkout-container .woocommerce-checkout-review-order-table tbody td,
.ul-checkout-container .woocommerce-checkout-review-order-table tbody th {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid #f2f2f2;
	background: transparent;
	color: #000;
	font-size: 15px;
	vertical-align: top;
}
.ul-checkout-container .woocommerce-checkout-review-order-table .product-name {
	font-weight: 500;
}
.ul-checkout-container .woocommerce-checkout-review-order-table .product-total {
	text-align: right;
	font-weight: 600;
}
.ul-checkout-container .woocommerce-checkout-review-order-table tfoot th,
.ul-checkout-container .woocommerce-checkout-review-order-table tfoot td {
	padding: 12px 0;
	border-bottom: 1px solid #f2f2f2;
	background: transparent;
}
.ul-checkout-container .woocommerce-checkout-review-order-table tfoot tr:last-child th,
.ul-checkout-container .woocommerce-checkout-review-order-table tfoot tr:last-child td {
	padding-top: 18px;
	border-bottom: 0;
	font-size: 20px;
	font-weight: 700;
}
.ul-checkout-container .woocommerce-checkout-review-order-table .cart_item .product-name small {
	color: #888;
	font-weight: 400;
}

/* 支付方式 */
.ul-checkout-container #payment {
	background: transparent;
	margin-top: 22px;
}
.ul-checkout-container #payment ul.payment_methods {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	list-style: none;
}
.ul-checkout-container #payment ul.payment_methods li {
	margin-bottom: 12px;
	padding: 16px 18px;
	border: 1px solid #ececec;
	border-radius: 14px;
	list-style: none;
}
.ul-checkout-container #payment ul.payment_methods li label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #000;
	font-weight: 600;
}
.ul-checkout-container #payment div.payment_box {
	margin: 12px 0 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fafafa;
	color: #666;
	font-size: 14px;
}
.ul-checkout-container #payment div.payment_box::before {
	display: none;
}
.ul-checkout-container #place_order {
	width: 100%;
	height: 58px;
	border: 0;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s ease;
}
.ul-checkout-container #place_order:hover {
	background: var(--ul-primary);
}
.ul-checkout-container .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 16px;
	font-size: 14px;
	color: #666;
}
.ul-checkout-container .woocommerce-privacy-policy-text {
	margin-bottom: 16px;
	color: #888;
	font-size: 13px;
}

/* --------------------------------------------------------------------------
   6. 博客
   -------------------------------------------------------------------------- */
a.ul-blog {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
a.ul-blog .ul-blog-title {
	color: #000;
}
a.ul-blog:hover .ul-blog-title {
	color: var(--ul-primary);
}
.ul-blog .ul-blog-infos .ul-blog-info .text {
	color: #888;
	font-size: 14px;
}

/* 列表卡片等宽 */
.ul-inner-page-container > .row.ul-bs-row > .col {
	display: flex;
}
.ul-inner-page-container > .row.ul-bs-row > .col > .ul-blog {
	width: 100%;
}

/* 详情：正文排版 */
.ul-blog-details .ul-blog-big {
	background: transparent;
	padding: 0;
}
.ul-blog-details .ul-blog-big .ul-blog-img img {
	border-radius: 20px;
}
.ul-blog-details .ul-blog-big .ul-blog-title {
	font-size: 34px;
	line-height: 1.3;
	margin-bottom: 22px;
}
.gdl-article-body {
	color: #5a5a5a;
	font-size: 16px;
	line-height: 1.85;
}
.gdl-article-body > *:first-child {
	margin-top: 0;
}
.gdl-article-body p {
	margin-bottom: 20px;
}
.gdl-article-body h2,
.gdl-article-body h3,
.gdl-article-body h4 {
	margin: 34px 0 16px;
	color: #000;
	font-weight: 700;
	line-height: 1.35;
}
.gdl-article-body h2 {
	font-size: 28px;
}
.gdl-article-body h3 {
	font-size: 23px;
}
.gdl-article-body h4 {
	font-size: 19px;
}
.gdl-article-body ul,
.gdl-article-body ol {
	margin: 0 0 22px;
	padding-left: 24px;
}
.gdl-article-body li {
	margin-bottom: 8px;
}
.gdl-article-body a {
	color: var(--ul-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.gdl-article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	margin: 12px 0;
}
.gdl-article-body blockquote {
	margin: 28px 0;
	padding: 22px 26px;
	border-left: 4px solid var(--ul-primary);
	border-radius: 0 16px 16px 0;
	background: #fafafa;
	color: #333;
	font-size: 17px;
	font-style: italic;
}
.gdl-article-body blockquote p:last-child {
	margin-bottom: 0;
}
.gdl-article-body table {
	width: 100%;
	margin: 22px 0;
	border-collapse: collapse;
}
.gdl-article-body table th,
.gdl-article-body table td {
	padding: 12px 14px;
	border: 1px solid #ececec;
	text-align: left;
}
.gdl-article-body table th {
	background: #fafafa;
}
.gdl-page-links {
	margin-top: 26px;
	color: #777;
}
.gdl-page-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	margin-right: 6px;
	border: 1px solid #e3e3e3;
	border-radius: 50%;
	color: #000;
	text-decoration: none;
}

/* 详情：标签 / 分享 / 上下篇 */
.ul-blog-details-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid #ececec;
}
.ul-blog-details-actions .ul-blog-tags a {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 18px;
	margin: 0 8px 8px 0;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	color: #000;
	font-size: 14px;
	text-decoration: none;
}
.ul-blog-details-actions .ul-blog-tags a:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}
.ul-blog-details-actions .share-options a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-left: 8px;
	border: 1px solid #e3e3e3;
	border-radius: 50%;
	color: #000;
}
.ul-blog-details-actions .share-options a:hover {
	background: var(--ul-primary);
	border-color: var(--ul-primary);
	color: #fff;
}
.ul-blog-details-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid #ececec;
}
.ul-blog-details-nav .nav-item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.ul-blog-details-nav .nav-item.next {
	margin-left: auto;
}
.ul-blog-details-nav .icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid #e3e3e3;
	border-radius: 50%;
	color: #000;
	text-decoration: none;
}
.ul-blog-details-nav .icon-link:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}
.ul-blog-details-nav .text-link {
	color: #000;
	font-weight: 600;
	text-decoration: none;
}
.ul-blog-details-nav .text-link:hover {
	color: var(--ul-primary);
}

/* 详情：侧栏小组件 */
.ul-blog-sidebar .ul-blog-sidebar-search .ul-blog-search-form {
	display: flex;
	align-items: center;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}
.ul-blog-sidebar .ul-blog-search-form input[type="search"] {
	flex: 1;
	height: 52px;
	padding: 0 20px;
	border: 0;
	background: transparent;
	color: #000;
	outline: none;
}
.ul-blog-sidebar .ul-blog-search-form button {
	width: 52px;
	height: 52px;
	border: 0;
	background: transparent;
	color: #000;
	cursor: pointer;
}
.ul-blog-sidebar .ul-blog-recent-post {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}
.ul-blog-sidebar .ul-blog-recent-post:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}
.ul-blog-sidebar .ul-blog-recent-post .img img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 12px;
	flex-shrink: 0;
}
.ul-blog-sidebar .ul-blog-recent-post .date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #999;
	font-size: 13px;
	margin-bottom: 6px;
}
.ul-blog-sidebar .ul-blog-recent-post .title {
	font-size: 16px;
	line-height: 1.4;
	margin: 0;
}
.ul-blog-sidebar .ul-blog-recent-post .title a {
	color: #000;
	text-decoration: none;
}
.ul-blog-sidebar .ul-blog-recent-post .title a:hover {
	color: var(--ul-primary);
}
.ul-blog-sidebar .ul-blog-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ul-blog-sidebar .ul-blog-tags a {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 16px;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	color: #000;
	font-size: 14px;
	text-decoration: none;
}
.ul-blog-sidebar .ul-blog-tags a:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}
.ul-blog-sidebar .ad-banner img {
	width: 100%;
	border-radius: 18px;
}

/* 首页博客：列宽按实际篇数等分（最多 3），避免不足一行时右侧留白 */
@media (min-width: 992px) {
	.ul-blogs .row.gdl-blog-row > .col {
		flex: 0 0 calc(100% / var(--gdl-blog-cols, 3));
		max-width: calc(100% / var(--gdl-blog-cols, 3));
	}
}

/* --------------------------------------------------------------------------
   7. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
	.ul-product-details-txt .ul-product-details-title {
		font-size: 30px;
	}
	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.ul-checkout-container form.checkout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"title"
			"details"
			"summary-title"
			"review";
		row-gap: 8px;
	}
	.ul-checkout-container #order_review_heading {
		margin-top: 28px;
	}
	.ul-product-details-bottom {
		padding-top: 36px;
	}
	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ul-cart-table td.product-name {
		width: auto;
	}
}

@media (max-width: 767px) {
	.gdl-shop-toolbar {
		gap: 12px;
	}
	.ul-cart-table thead {
		display: none;
	}
	.ul-cart-table tbody tr {
		display: block;
		padding: 18px 0;
		border-bottom: 1px solid #f0f0f0;
	}
	.ul-cart-table tbody td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 6px 0;
		border: 0;
	}
	.ul-cart-table tbody td::before {
		content: attr(data-title);
		color: #888;
		font-size: 14px;
		font-weight: 500;
	}
	.ul-cart-table tbody td.product-name::before {
		display: none;
	}
	.ul-cart-table tbody td.product-name {
		display: block;
		padding-top: 0;
	}
	.ul-cart-product .ul-cart-product-img img {
		width: 84px;
		height: 84px;
	}
	.ul-cart-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.ul-cart-coupon-code-form-wrapper {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.ul-cart-coupon-code-form input.input-text {
		min-width: 0;
		flex: 1;
	}
	.woocommerce .cart-collaterals .cart_totals {
		max-width: 100%;
		padding: 24px 20px;
	}
	.ul-checkout-container .woocommerce-billing-fields__field-wrapper,
	.ul-checkout-container .woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}
	.ul-checkout-container #order_review {
		padding: 22px 18px;
	}
	.ul-product-details-txt form.cart .quantity {
		width: 100%;
	}
	.ul-product-details-txt form.cart .quantity input.qty {
		width: 100%;
	}
	.ul-product-details-txt form.cart .single_add_to_cart_button {
		width: 100%;
		padding: 0 20px;
	}
	.ul-blog-details .ul-blog-big .ul-blog-title {
		font-size: 26px;
	}
	.gdl-article-body h2 {
		font-size: 24px;
	}
	.gdl-article-body h3 {
		font-size: 20px;
	}
	.ul-blog-details-nav {
		flex-direction: column;
		align-items: stretch;
	}
	.ul-blog-details-nav .nav-item.next {
		margin-left: 0;
		justify-content: flex-end;
	}
	.ul-product-details-reviews #reviews .comment_container {
		flex-direction: column;
		padding: 20px;
	}
	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 479px) {
	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}
