/* ==========================================================================
   GDL 兼容层（一比一复刻版）—— 只做必要的归一化，不做配色/排版改写。
   ========================================================================== */

/* Woo 循环输出 <li>，去掉默认列表样式，保证卡片网格干净。 */
.gdl-shop-grid {
	list-style: none;
	margin: 0;
	padding: 0;
}
.gdl-shop-grid > li {
	list-style: none;
}

/* 购物车抽屉（gdl.js 依赖，与原模板结构互补的最小样式）。 */
#sidebar-cart-curtain {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 9998;
}
#sidebar-cart-curtain.active {
	opacity: 1;
	visibility: visible;
}
#sidebar-cart {
	position: fixed;
	top: 0;
	right: -420px;
	width: min(420px, 92vw);
	height: 100%;
	background: #fff;
	z-index: 9999;
	transition: right 0.35s ease;
	display: flex;
	flex-direction: column;
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
}
#sidebar-cart.active {
	right: 0;
}
#sidebar-cart .gdl-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid #eee;
}
#sidebar-cart .widget_shopping_cart_content {
	padding: 10px 22px 22px;
	overflow-y: auto;
}

/* 页头购物车数量徽标（原模板没有徽标，仅当有商品时显示）。 */
.gdl-cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	border-radius: 9px;
	background: var(--ul-primary);
	color: #fff;
	font-size: 11px;
	text-align: center;
	padding: 0 4px;
}
.gdl-cart-count.is-empty {
	display: none;
}
.ul-header-actions > a,
.ul-header-actions > button {
	position: relative;
}

/* 页脚/侧栏社交图标在原模板按 a>svg 展示，这里统一字号。 */
.ul-sidebar-footer-social a,
.social-links a {
	display: inline-flex;
}

/* ==========================================================================
   一比一还原补丁（对照 output/glamer-preview 静态稿）
   --------------------------------------------------------------------------
   1) 页眉导航：WP 菜单外层多了一层 <ul class="menu">，原模板是 a 直接排布，
      这里把 ul.menu 还原成横向 flex，间距与原模板一致。
   ========================================================================== */
.ul-header-nav > ul.menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp(20px, 2.1vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.ul-header-nav > ul.menu > li {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media screen and (max-width: 991px) {
	.ul-header-nav > ul.menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
}

/* 2) 药丸按钮：原模板文字不换行，换行会顶出胶囊轮廓 */
.ul-btn {
	white-space: nowrap;
}

/* 3) 页眉需压过首屏 banner，否则导航下拉菜单（Play Popular Clubs / Players 等）
      会被 banner 遮住：原菜单 z-index 仅 2，而 .ul-banner-slider-wrapper 为 11，
      两者同处根层叠上下文，banner 在 DOM 中更靠后故盖住菜单。
      给页眉整体建立层叠上下文并提升到 100（> banner 11；< 侧栏 999 / 购物车 9998 / preloader），
      子菜单随页眉一起浮到 banner 之上，同时不影响抽屉/加载层。 */
.ul-header {
	position: relative;
	z-index: 100;
}

/* GDL-HIDE-PATCH-20261125 */
/* 4) 首页视频横幅区块：按客户要求隐藏，不让访客看到（2026-11-25）。
     该区块由 [gdl_video] 输出，class 仅首页使用；日后要恢复删除本段即可。 */
.ul-video {
	display: none !important;
}
