/* ==========================================================================
   Glowshop — Storefront child theme styles
   Replicates target storefront look: yellow announcement bar, black/white
   Lato typography, 1250px container, product grids, 850px/549px breakpoints.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/lato-400-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/lato-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Lato';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/lato-400i-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Lato';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/lato-400i.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/lato-700-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/lato-700.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens & base ---------- */
:root {
	--gs-primary: #000000;
	--gs-text: #4a4a4a;
	--gs-dark: #121212;
	--gs-bg: #ffffff;
	--gs-surface: #f9f8f6;
	--gs-footer-bg: #f9f8f6;
	--gs-announce-bg: #fff67f;
	--gs-header-bottom: #f1f1f1;
	--gs-width: 1250px;
	--gs-header-h: 90px;
	--gs-header-h-stuck: 70px;
	--gs-radius: 4px;
}

html { font-size: 100%; }
body {
	margin: 0;
	font-family: 'Lato', Arial, sans-serif;
	font-weight: 400;
	color: var(--gs-text);
	background: var(--gs-bg);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .heading-font {
	font-family: 'Lato', Arial, sans-serif;
	font-weight: 700;
	color: var(--gs-dark);
	line-height: 1.3;
}
a { color: var(--gs-dark); text-decoration: none; }
a:hover { color: var(--gs-primary); }
img { max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
.uppercase { text-transform: uppercase; }
.container {
	max-width: var(--gs-width);
	margin: 0 auto;
	padding: 0 30px;
	box-sizing: border-box;
}
/* overflow-x: clip keeps position:sticky working (hidden would break it) */
.page-wrapper { overflow-x: clip; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}
.flex-row { display: flex; flex-flow: row wrap; align-items: center; }
.flex-col { flex: 1; }
.flex-grow { flex-grow: 1 !important; }
.grow { flex-grow: 1; }
.text-center { text-align: center; }
.pt { padding-top: 1em; }
.pb { padding-bottom: 1em; }

/* Storefront parent resets: keep our layout canvas clean. */
.content-area {
	float: none !important;
	width: 100% !important;
	margin: 0;
}
#wrapper ul,
#footer ul,
.gs-header-wrapper ul,
.gs-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#wrapper ul::before,
#wrapper ul::after,
.gs-grid::before,
.gs-grid::after,
.row.gs-grid::before,
.row.gs-grid::after {
	content: none !important;
}

/* Hide helpers (Flatsome-like) */
.hide-for-medium { display: block; }
.show-for-medium { display: none !important; }
@media (max-width: 849px) {
	.hide-for-medium { display: none !important; }
	.show-for-medium { display: block !important; }
}

/* ---------- Buttons ---------- */
.button, button, input[type="submit"], .gs-qv-more {
	display: inline-block;
	background: var(--gs-primary);
	color: #fff !important;
	border: 2px solid var(--gs-primary);
	border-radius: var(--gs-radius);
	padding: 0 1.2em;
	line-height: 2.4em;
	height: 2.6em;
	font-family: 'Lato', Arial, sans-serif;
	font-weight: 700;
	font-size: 0.95em;
	text-transform: none;
	cursor: pointer;
	transition: opacity .2s;
	box-sizing: border-box;
}
.button:hover { opacity: .85; }
.button.is-outline {
	background: transparent;
	color: var(--gs-primary) !important;
}
.button.is-underline {
	background: transparent !important;
	border: none !important;
	color: var(--gs-dark) !important;
	padding: 0;
	height: auto;
	line-height: 1.6;
	font-size: 1em;
	box-shadow: none;
	border-radius: 0;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.button.is-underline:hover { opacity: .7; }
.button.circle {
	border-radius: 50%;
	width: 2.4em;
	height: 2.4em;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.button.icon { padding: 0 .6em; }

/* ==========================================================================
   Announcement bar (sticky with header)
   ========================================================================== */
.gs-header-wrapper {
	position: sticky;
	top: 0;
	z-index: 999;
}
#top-bar.header-top {
	background: var(--gs-announce-bg) !important;
	min-height: 30px;
}
#top-bar .nav-center { justify-content: center; }
.gs-announce-text {
	display: block;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: #000;
	padding: 6px 12px;
	line-height: 17px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header { background: #fff; }
.header-wrapper { position: relative; }
#masthead.header-main { height: var(--gs-header-h); background: #fff; transition: height .25s ease; }
.header-inner {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 0 15px;
	height: 100%;
	align-items: center;
	gap: 0;
	box-sizing: border-box;
}
.header-inner .logo, #logo { order: 1; flex: 0 0 auto; margin-right: 30px; }
#logo { width: 151px; }
#logo img { max-height: var(--gs-header-h); width: auto; display: block; transition: max-height .25s ease; }
.nav-wrap { order: 2; }
.header-inner .flex-right { order: 3; flex: 0 0 auto; }
.header-inner .show-for-medium.flex-left { order: 0; }
.header-inner .show-for-medium.flex-right { order: 4; }

.top-divider { border-bottom: 1px solid #ececec; }

/* Header nav */
.header-nav-main { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.header-nav-main > li { position: relative; }
.header-nav-main > li + li { margin-left: 11px; }
.header-nav-main > li > a {
	display: inline-flex;
	align-items: center;
	padding: 10px 0;
	font-size: 12.8px;
	font-weight: 700;
	text-transform: uppercase;
	color: #000;
	letter-spacing: .256px;
	line-height: 16px;
	white-space: nowrap;
}
.header-nav-main > li > a:hover { color: #000; opacity: .7; }
.header-nav-main .icon-angle-down { margin-left: 4px; }
.nav-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: var(--gs-radius);
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .2s ease;
	z-index: 100;
	padding: 8px 0;
}
.nav-dropdown li a {
	display: block;
	padding: 7px 18px;
	font-size: 13.5px;
	font-weight: 700;
	color: #000;
	text-transform: none;
	white-space: nowrap;
}
.nav-dropdown li a:hover { background: #fafafa; }
.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Right icons */
.header-nav.nav-right { align-items: center; }
.header-nav.nav-right > li { display: flex; align-items: center; }
.header-nav.nav-right .nav-top-link {
	display: inline-flex;
	align-items: center;
	font-size: 12.8px;
	font-weight: 700;
	color: #000;
	padding: 10px 8px;
	line-height: 16px;
}
.header-nav.nav-right .nav-top-link:hover { opacity: .7; }
.header-divider { width: 1px; height: 18px; background: #ddd; margin: 0 6px; }
.cart-item .header-cart-title { display: inline-flex; align-items: center; font-size: 12.8px; font-weight: 700; color: #000; }
.cart-item .cart-price { margin-left: 2px; }
.cart-icon {
	position: relative;
	display: inline-flex;
	align-items: flex-end;
	justify-content: center;
	width: 30px;
	height: 36px;
	margin-left: 6px;
	color: #000;
}
.cart-icon .gs-bag { width: 26px; height: 32px; display: block; }
.cart-icon strong {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 3px;
	text-align: center;
	font-size: 12.5px;
	font-weight: 700;
	color: #000;
	background: none;
	border: none;
	border-radius: 0;
	min-width: 0;
	height: auto;
	line-height: 1;
	padding: 0;
}
/* cart dropdown panel */
.gs-cart-dropdown { min-width: 340px; }
.gs-cart-dropdown .widget_shopping_cart_content { padding: 10px; }
.ux-mini-cart-empty { padding: 24px 12px; }
.ux-mini-cart-empty .ux-mini-cart-empty-icon { display: flex; justify-content: center; color: #000; }
.ux-mini-cart-empty p { color: var(--gs-text); font-size: 14px; }
.return-to-shop { margin: 10px 0 6px; text-align: center; }

/* Search dropdown */
.gs-search-dropdown { min-width: 320px; padding: 12px; }
.searchform .flex-row { display: flex; gap: 8px; }
.searchform .search-field, #mobile-menu-drawer .search-field {
	flex: 1;
	width: 100%;
	border: 2px solid #ececec;
	border-radius: var(--gs-radius);
	padding: 0 12px;
	height: 42px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	background: #fff;
}
.searchform .search-field:focus { border-color: #000; outline: none; }

/* Mobile nav (hamburger) */
.mobile-nav .nav-icon a { display: inline-flex; padding: 6px; color: #000; }

/* Stuck (scrolled) state */
.gs-header-wrapper.is-stuck #masthead.header-main { height: var(--gs-header-h-stuck); }
.gs-header-wrapper.is-stuck #logo img { max-height: var(--gs-header-h-stuck); }

/* ==========================================================================
   Mobile drawer
   ========================================================================== */
.gs-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 340px;
	max-width: 86vw;
	height: 100vh;
	height: 100dvh;
	background: #fff;
	z-index: 10000;
	overflow-y: auto;
	padding: 20px 18px 40px;
	box-shadow: 4px 0 24px rgba(0,0,0,.18);
	transform: translateX(-100%);
	transition: transform .28s ease;
	box-sizing: border-box;
}
.gs-drawer.is-open { transform: translateX(0); }
.gs-drawer[hidden] { display: block !important; }
.gs-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 9999;
	opacity: 0;
	transition: opacity .25s ease;
}
.gs-drawer-overlay.is-visible { opacity: 1; }
.gs-drawer-overlay[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.gs-drawer .drawer-header { margin-bottom: 18px; }
.gs-drawer .nav-sidebar > li { border-bottom: 1px solid #f0f0f0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.gs-drawer .nav-sidebar > li > a {
	flex: 1;
	padding: 13px 2px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: #000;
}
.gs-drawer .gs-accordion-toggle {
	background: none;
	border: none;
	padding: 8px;
	color: #000;
	cursor: pointer;
	line-height: 0;
}
.gs-drawer .sub-menu {
	width: 100%;
	padding: 0 0 10px 10px;
}
.gs-drawer .sub-menu li a {
	display: block;
	padding: 7px 4px;
	font-size: 13.5px;
	font-weight: 700;
	color: #000;
	text-transform: none;
}
body.gs-drawer-open { overflow: hidden; }

/* ==========================================================================
   Homepage — banner
   ========================================================================== */
.banner-container { width: 100%; overflow: hidden; margin: 0; padding: 0; background: #f5f5f5; }
.banner-image-wrapper { width: 100%; display: block; line-height: 0; }
.banner-image { width: 100%; height: auto; display: block; object-fit: cover; }
@media (max-width: 549px)  { .banner-image { min-height: 180px; } }
@media (min-width: 550px) and (max-width: 849px) { .banner-image { min-height: 320px; } }
@media (min-width: 850px)  { .banner-image { min-height: 480px; } }
@media (min-width: 1200px) { .banner-image { min-height: 560px; } }

/* ==========================================================================
   Homepage — category tiles
   ========================================================================== */
.gs-categories { padding: 34px 0 10px; }
.gs-categories-inner { padding: 0 20px; }
.gs-categories .g5j9k { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
@media (min-width: 650px)  { .gs-categories .g5j9k { grid-template-columns: 1fr 1fr 1fr; gap: 18px; } }
@media (min-width: 1024px) { .gs-categories .g5j9k { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.gs-categories .r0s1t { position: relative; border-radius: 12px; overflow: hidden; transition: box-shadow .25s ease; }
.gs-categories .r0s1t:hover { box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.gs-categories .u2v3w { position: relative; width: 100%; padding-top: 100%; }
.gs-categories .u2v3w img.cate-img {
	position: absolute; top: 0; left: 0;
	width: 100%; height: 100%;
	object-fit: cover; display: block;
}
.gs-categories .overlay {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%;
	background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 60%);
}
.gs-categories .box-text { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px 12px 16px; }
.gs-categories .box-text-inner { width: 100%; text-align: center; }
.gs-categories .header-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }
.gs-categories .count { font-size: 12px; color: rgba(255,255,255,.85); margin: 0; }
@media (max-width: 480px) {
	.gs-categories .g5j9k { gap: 12px; }
	.gs-categories .header-title { font-size: 12px; }
	.gs-categories .count { font-size: 9px; }
	.gs-categories .box-text { padding: 10px 6px 8px; }
}

/* Section titles (dashed sides) */
.section-title-container { text-align: center; margin-bottom: 22px; }
.section-title { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 22px; font-weight: 600; margin: 0; text-transform: uppercase; color: #333; }
.section-title b {
	content: "";
	flex: 0 1 48px;
	height: 0;
	border-top: 2px solid #e5e5e5;
}
.section-title-main { font-weight: 600; text-transform: uppercase; }
.x7k2p .section-title-center {
	display: flex; align-items: center; justify-content: center; gap: 16px;
	font-size: 22px; margin: 0; font-weight: 600; color: #333;
	text-transform: uppercase;
}
.x7k2p .section-title-center b { flex: 0 1 48px; border-top: 2px solid #e5e5e5; height: 0; }
.x7k2p .f1h2i { font-size: inherit; text-transform: uppercase; }

/* ==========================================================================
   Product grids & cards (flex cols like target: no gap, 10px col padding)
   ========================================================================== */
.gs-product-row, .gs-grid-gap { max-width: 1270px; margin: 0 auto; padding: 0 10px 30px; box-sizing: border-box; }
.gs-grid-gap { height: 20px; }
.gs-grid {
	display: flex !important;
	flex-wrap: wrap;
	margin: 0 -10px;
}
.gs-grid::before, .gs-grid::after { content: none !important; }
.gs-grid > .product-small.col {
	flex: 0 0 25%;
	max-width: 25%;
	padding: 0 10px 30px;
	box-sizing: border-box;
}
.gs-grid.large-columns-5 > .product-small.col { flex-basis: 20%; max-width: 20%; }
.gs-grid.large-columns-6 > .product-small.col { flex-basis: 16.6666%; max-width: 16.6666%; }
@media (max-width: 849px) {
	.gs-grid > .product-small.col,
	.gs-grid.large-columns-4 > .product-small.col { flex-basis: 33.3333%; max-width: 33.3333%; }
	.gs-grid.large-columns-5.medium-columns-4 > .product-small.col,
	.gs-grid.large-columns-6.medium-columns-4 > .product-small.col,
	.gs-grid.medium-columns-4 > .product-small.col { flex-basis: 33.3333%; max-width: 33.3333%; }
}
/* Phone: 2 per row.
   TIP: the rules above use 5-class selectors (.large-columns-5.medium-columns-4),
   so a plain ".gs-grid > .product-small.col" (3 classes) CANNOT override them —
   every variant has to be listed here or phones keep rendering 4 columns. */
@media (max-width: 549px) {
	.gs-grid > .product-small.col,
	.gs-grid.large-columns-4 > .product-small.col,
	.gs-grid.large-columns-5 > .product-small.col,
	.gs-grid.large-columns-6 > .product-small.col,
	.gs-grid.medium-columns-3 > .product-small.col,
	.gs-grid.medium-columns-4 > .product-small.col,
	.gs-grid.large-columns-5.medium-columns-4 > .product-small.col,
	.gs-grid.large-columns-6.medium-columns-4 > .product-small.col {
		flex: 0 0 50% !important;
		max-width: 50% !important;
		padding: 0 7px 18px;
	}
}

.product-small .col-inner { position: relative; }
.product-small.box {
	background: #fff;
	border-radius: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.box-image { position: relative; background: #f7f7f7; }
.image-fade_in_back a { display: block; position: relative; padding-top: 100%; overflow: hidden; }
.image-fade_in_back img.attachment-woocommerce_thumbnail {
	position: absolute; top: 0; left: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .35s ease, opacity .35s ease;
}
/* utility equivalents of Flatsome .absolute/.fill for the hover image */
.image-fade_in_back .back-image,
.box-image .absolute.fill {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.image-fade_in_back a:hover img.attachment-woocommerce_thumbnail { transform: scale(1.06); }
.image-fade_in_back .back-image {
	opacity: 0;
	z-index: 2;
}
.image-fade_in_back a:hover .back-image { opacity: 1; }
@media (max-width: 549px) { .image-fade_in_back .back-image { display: none; } }

/* Quick view bar */
.image-tools.grid-tools {
	position: absolute;
	bottom: 10px; left: 10px; right: 10px;
	z-index: 5;
	opacity: 0;
	transform: translateY(6px);
	transition: all .25s ease;
}
.product-small:hover .image-tools.grid-tools, .product-small:focus-within .image-tools.grid-tools { opacity: 1; transform: translateY(0); }
.image-tools.grid-tools .quick-view {
	display: block;
	width: 100%;
	background: rgba(255,255,255,.95);
	color: #000 !important;
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	text-align: center;
	padding: 8px 10px;
	border-radius: var(--gs-radius);
	cursor: pointer;
}
.image-tools.grid-tools .quick-view:hover { background: #000; color: #fff !important; }

/* Card text — left aligned like target */
.box-text-products { padding: 10px 0 20px; text-align: left; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.title-wrapper .product-title {
	font-size: 14.4px;
	font-weight: 400;
	color: #334862;
	line-height: 1.3;
	margin: 0;
	font-family: 'Lato', Arial, sans-serif;
}
.title-wrapper .product-title a { color: inherit; display: block; }
.title-wrapper .product-title a:hover { color: #111; }
/* Titles are one to four lines long, so cards in the same row used to push
   the price / option row to different heights. Clamp to three lines and
   reserve that height even for short titles — every card then lines up.
   (margin-top:auto does NOT work here: .box-text-products is flex:1 1 0%
   inside a container with no definite height, so there is no free space.) */
.product-small .title-wrapper .product-title { min-height: 3.9em; }
.product-small .title-wrapper .product-title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.price-wrapper .price { color: #4a4a4a; font-size: 14.4px; font-weight: 400; }
.price-wrapper del { color: #aaa; font-weight: 400; margin-right: 4px; }
.price-wrapper del .woocommerce-Price-amount { font-size: .92em; }
/* Card reading order: title → option toggle → price. The price belongs at the
   bottom of the text block; above the option label it looked detached and it
   sat at a different height on every card. Scoped to archive cards only. */
.product-small .box-text-products > .title-wrapper { order: 1; }
.product-small .box-text-products > .nasa-product-content-variable-warp { order: 2; }
.product-small .box-text-products > .price-wrapper { order: 3; }
.product-small .box-text-products > .gs-card-buy { order: 4; }

/* Buy now on simple cards — inline button in brand navy (was #000, which read
   as a foreign black block next to the navy PDP buttons and swatches) */
.gs-card-buy { margin-top: 4px; }
.gs-card-buy .wc-buy-now-btn {
	display: inline-block;
	width: auto;
	text-align: center;
	background: #0D2546;
	color: #fff !important;
	border: none;
	border-radius: 0;
	height: 39px;
	line-height: 39px;
	padding: 0 19px;
	font-size: 15.5px;
	font-weight: 700;
}
.gs-card-buy .wc-buy-now-btn:hover { opacity: .85; }

/* Attribute quick picker (nasa style) */
.nasa-product-content-variable-warp { margin-top: 2px; }
.nasa-product-content-select-wrap { text-align: left; }
.nasa-product-content-child { display: inline-block; position: relative; }
.nasa-toggle-attr-select {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	color: #000;
	text-transform: lowercase;
	padding: 3px 6px;
	border-radius: 3px;
	cursor: pointer;
}
.nasa-toggle-attr-select:hover, .nasa-product-content-child.nasa-active .nasa-toggle-attr-select { background: #f2f2f2; }
.nasa-toggle-content-attr-select {
	position: absolute;
	top: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 4px;
	box-shadow: 0 8px 20px rgba(0,0,0,.14);
	min-width: 150px;
	z-index: 50;
	display: none;
	text-align: left;
	max-height: 240px;
	overflow: auto;
}
.nasa-product-content-child.nasa-active .nasa-toggle-content-attr-select { display: block; }
.nasa-attr-ux-item {
	display: block;
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	white-space: nowrap;
}
.nasa-attr-ux-item:hover { background: #f5f5f5; color: #000; }
.gs-card-added { color: #627d47; font-size: 12.5px; font-weight: 700; margin-top: 4px; display: none; }
.gs-card-added.is-visible { display: block; }

/* ==========================================================================
   About section
   ========================================================================== */
.gs-about { margin-top: 8px; }
.gs-about .row { display: flex; flex-wrap: wrap; align-items: center; }
.gs-about .col.large-6 { flex: 0 0 50%; max-width: 50%; }
.gs-about .col.medium-12, .gs-about .col.small-12 { flex: 0 0 100%; max-width: 100%; }
.gs-about-gap-top { padding-top: 30px; }
@media (min-width: 550px) { .gs-about-gap-top { padding-top: 50px; } }
.gs-about .row.align-center { justify-content: center; }
.gs-about .col.medium-10 { flex: 0 0 90%; max-width: 90%; }
.gs-about-text h1 { font-size: 1.75rem; margin: 0 0 6px; }
@media (min-width: 550px) { .gs-about-text h1 { font-size: 2.25rem; } }
.gs-about-text > p { font-size: 16px; color: #333; margin: 0 0 8px; }
.gs-about-gap-btn { padding-top: 20px; }
@media (min-width: 550px) { .gs-about-gap-btn { padding-top: 30px; } }
.gs-about-text .button.is-underline { font-size: 15px; font-weight: 700; }
.gs-about-media { background: #fff; padding: 0 !important; }
.gs-about-media .about-img { width: 100%; display: block; }
.gs-about-desc { padding: 5px 5% 15px 5%; }
.gs-about-desc p { font-size: .85rem; line-height: 1.5; color: #4a4a4a; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-wrapper { background: var(--gs-footer-bg); margin-top: 30px; }
.footer-1 .row {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 30px;
	padding: 46px 30px 34px;
	max-width: var(--gs-width);
	margin: 0 auto;
	box-sizing: border-box;
}
@media (max-width: 849px) { .footer-1 .row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 549px) { .footer-1 .row { grid-template-columns: 1fr; gap: 22px; } }
.gs-footer-company .gs-ux-menu-link__text, .gs-footer-col .gs-ux-menu-link__text { font-size: 14px; color: var(--gs-text); }
.gs-ux-menu-link { margin: 0 0 10px; }
.gs-ux-menu-link a:hover { opacity: .7; }
.gs-widget-title { margin-bottom: 14px; }
.gs-widget-title strong { font-size: 15px; font-weight: 700; color: #111; letter-spacing: .4px; }

.absolute-footer { border-top: 1px solid #ece7e7; }
.gs-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 0;
}
.gs-copyright { font-size: 13.5px; color: #4a4a4a; }
.gs-payment-icons { display: flex; gap: 10px; align-items: center; }
.gs-payment-icon svg { width: 46px; height: 23px; display: block; transition: opacity .2s; }
.gs-payment-icon svg:hover { opacity: .72; }

/* ==========================================================================
   Shop page
   ========================================================================== */
.shop-page-title { background: #fff; border-bottom: 1px solid #f0f0f0; }
.page-title-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.woocommerce-breadcrumb { font-size: 13px; font-weight: 700; text-transform: uppercase; color: #4a4a4a; letter-spacing: .2px; }
.woocommerce-breadcrumb a { color: #4a4a4a; }
.woocommerce-breadcrumb .divider { margin: 0 7px; color: #999; }
/* Result count + sort dropdown: one right-aligned, vertically centred cluster.
   Without this both blocks were flush against each other with no gap and
   different heights (30px text vs 38px select), which read as broken layout. */
.page-title-inner > .flex-col:last-child {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	width: auto;
	flex: 0 1 auto;
	margin-left: auto;
}
.page-title-inner .woocommerce-result-count {
	font-size: 14px;
	color: #5a5a5a;
	margin: 0;
	line-height: 1.5;
	white-space: nowrap;
}
.page-title-inner .woocommerce-ordering { margin: 0; line-height: 0; }
.woocommerce-ordering select {
	border: 1px solid #ddd;
	border-radius: var(--gs-radius);
	height: 38px;
	padding: 0 34px 0 12px;
	font-size: 13px;
	font-family: inherit;
	background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M6 9l6 6 6-6H6z'/%3E%3C/svg%3E") no-repeat right 8px center/14px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.category-page-row { max-width: 1270px; margin: 0 auto; padding: 26px 10px 40px; box-sizing: border-box; }

/* Pagination */
.woocommerce-pagination { margin-top: 34px; }
.nav-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.nav-pagination li { display: inline-block; }
.page-numbers .page-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 6px;
	border: 1px solid #ddd;
	border-radius: var(--gs-radius);
	font-size: 14px;
	font-weight: 600;
	color: #333;
}
.page-numbers .page-number.current { background: #000; border-color: #000; color: #fff; }
.page-numbers .page-number:hover { border-color: #000; }
.page-numbers .page-number.dots { border: none; }
.nav-pagination .gs-icon { width: 14px; height: 14px; display: block; }

/* ==========================================================================
   Product detail
   ========================================================================== */
.product-container { background: #fff; }
.product-main { max-width: var(--gs-width); margin: 0 auto; }
.content-row {
	display: flex;
	flex-wrap: wrap;
	padding: 26px 30px 20px;
	box-sizing: border-box;
	gap: 0 40px;
}
.product-gallery, .product-info { flex: 1 1 0; min-width: 0; }
@media (min-width: 850px) {
	.product-gallery { flex: 0 0 calc(50% - 20px); }
	.product-info { flex: 0 0 calc(50% - 20px); }
}
@media (max-width: 849px) {
	.content-row { padding: 14px 20px; }
}
.product-summary .woocommerce-breadcrumb { margin-bottom: 12px; }
.product-title.product_title { font-size: 26px; margin: 0; line-height: 1.3; }
.is-divider.small { height: 2px; width: 34px; background: #e5e5e5; margin: 12px 0 14px; }
/* Prev / next product arrows: must stay a compact inline row.
   NOTE: .show-for-medium forces display:block !important under 849px, which
   used to turn each <li> into a full-width empty row (big blank box). */
.product-summary .next-prev-thumbs,
.next-prev-thumbs {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	width: auto;
}
.product-summary .next-prev-thumbs > li,
.next-prev-thumbs > li {
	display: block !important;
	position: static;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	list-style: none;
}
.product-summary .next-prev-thumbs > li > a.button,
.next-prev-thumbs > li > a.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	height: 34px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid #dcdcdc !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #0d2546 !important;
	box-shadow: none !important;
	text-decoration: none;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.product-summary .next-prev-thumbs > li > a.button:hover,
.next-prev-thumbs > li > a.button:hover {
	background: #0d2546 !important;
	border-color: #0d2546 !important;
	color: #fff !important;
}
.product-summary .next-prev-thumbs > li > a.button svg,
.next-prev-thumbs > li > a.button svg {
	width: 16px !important;
	height: 16px !important;
	flex: 0 0 16px;
	display: block;
}
.price-wrapper .product-page-price { margin: 0 0 14px; font-size: 24px; }
.price-wrapper .product-page-price .price { font-size: 24px; color: #111; font-weight: 700; }
.price-wrapper del { color: #aaa; font-weight: 400; margin-right: 6px; font-size: .9em; }

/* Gallery */
.product-images.woocommerce-product-gallery { float: none !important; width: 100% !important; }
.gs-gallery-main { position: relative; border: 1px solid #f0f0f0; border-radius: 6px; overflow: hidden; }
.gs-gallery-main .gs-slide { display: none; }
.gs-gallery-main .gs-slide.is-active { display: block; }
.gs-gallery-main .gs-slide img { width: 100%; display: block; }
.gs-gallery-main .gs-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px; height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	border: 1px solid #e2e2e2;
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 6;
}
.gs-gallery-main .gs-nav:hover { background: #000; color: #fff; }
.gs-gallery-main .gs-nav svg { width: 16px; height: 16px; }
.gs-gallery-main .gs-prev { left: 10px; }
.gs-gallery-main .gs-next { right: 10px; }
.image-tools.absolute.bottom { position: absolute; bottom: 12px; left: 12px; z-index: 6; }
.gs-zoom { background: rgba(255,255,255,.92); color: #000 !important; border-color: transparent; }
.gs-zoom:hover { background: #000; color: #fff !important; }

.gs-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-top: 10px;
}
.gs-gallery-thumbs .gs-thumb a { display: block; border: 2px solid transparent; border-radius: 5px; overflow: hidden; }
.gs-gallery-thumbs .gs-thumb img { width: 100%; display: block; }
.gs-gallery-thumbs .gs-thumb.is-nav-selected a { border-color: #000; }

/* Add to cart region */
.gs-add-to-cart-region form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0 0 12px; }
.gs-add-to-cart-region form.cart .variations, .gs-add-to-cart-region form.cart .single_variation_wrap { width: 100%; }
.gs-add-to-cart-region table.variations { border: none; margin: 0 0 12px; }
.gs-add-to-cart-region table.variations tr { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.gs-add-to-cart-region table.variations th.label { text-align: left; padding: 0; font-size: 14px; font-weight: 700; color: #111; text-transform: capitalize; }
.gs-add-to-cart-region table.variations td.value { padding: 0; }
.gs-add-to-cart-region table.variations select {
	border: 1px solid #ddd;
	border-radius: var(--gs-radius);
	height: 40px;
	padding: 0 34px 0 12px;
	font-size: 14px;
	font-family: inherit;
	background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M6 9l6 6 6-6H6z'/%3E%3C/svg%3E") no-repeat right 8px center/14px;
	-webkit-appearance: none;
	appearance: none;
	min-width: 200px;
}
.gs-add-to-cart-region .reset_variations { font-size: 12.5px; color: #666; }
.woocommerce-variation-price { margin-bottom: 10px; font-size: 20px; font-weight: 700; color: #111; }
.woocommerce-variation-availability { color: #627d47; font-size: 13.5px; margin-bottom: 10px; }
.gs-add-to-cart-region .woocommerce-variation-description { font-size: 13.5px; margin-bottom: 8px; }

/* Quantity stepper */
.gs-add-to-cart-region .quantity {
	display: inline-flex;
	align-items: center;
	border: 2px solid #ececec;
	border-radius: var(--gs-radius);
	height: 46px;
	overflow: hidden;
}
.gs-add-to-cart-region .quantity input[type="number"] {
	width: 52px;
	height: 100%;
	border: none;
	text-align: center;
	font-size: 15px;
	font-family: inherit;
	-moz-appearance: textfield;
	box-sizing: border-box;
	background: #fff;
}
.gs-add-to-cart-region .quantity input::-webkit-outer-spin-button,
.gs-add-to-cart-region .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gs-add-to-cart-region .quantity .ux-quantity__button {
	width: 38px;
	height: 100%;
	border: none;
	background: #fff;
	font-size: 18px;
	font-weight: 700;
	color: #333;
	cursor: pointer;
	border-radius: 0;
	padding: 0;
	line-height: 1;
}
.gs-add-to-cart-region .quantity .ux-quantity__button:hover { background: #f5f5f5; }

.gs-add-to-cart-region .single_add_to_cart_button {
	height: 46px;
	line-height: 42px;
	padding: 0 26px;
	font-size: 15px;
	flex: 1;
	min-width: 150px;
}
.gs-add-to-cart-region .wc-buy-now-btn-single {
	background: #fff;
	color: #000 !important;
	border: 2px solid #000;
	flex: 1;
	min-width: 150px;
}
.gs-add-to-cart-region .wc-buy-now-btn-single:hover { background: #000; color: #fff !important; }

/* Viewing counter */
.gs-viewing {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: #111;
	background: #f7f7f7;
	border-radius: 5px;
	padding: 9px 12px;
	margin: 0 0 14px;
	width: fit-content;
}
.gs-viewing svg { color: #b20000; }

/* Meta */
.product_meta { font-size: 13.5px; color: #4a4a4a; border-top: 1px solid #f0f0f0; padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.product_meta a { color: #111; text-decoration: underline; text-underline-offset: 3px; }

/* Tabs */
.woocommerce-tabs { margin-top: 26px; border-top: 1px solid #f0f0f0; }
.woocommerce-tabs .tabs {
	display: flex;
	gap: 26px;
	padding: 0 30px;
	border-bottom: 1px solid #f0f0f0;
	overflow-x: auto;
}
.woocommerce-tabs .tabs li a {
	display: inline-block;
	padding: 14px 2px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: #4a4a4a;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	white-space: nowrap;
}
.woocommerce-tabs .tabs li.active a { color: #000; border-bottom-color: #000; }
.tab-panels { padding: 22px 30px 30px; }
.tab-panels .panel.entry-content { max-width: 900px; }
.tab-panels img { max-width: 100%; }
.tab-panels ul { list-style: disc; padding-left: 22px; }
.tab-panels li { margin-bottom: 8px; }

/* Related */
.related-products-wrapper { margin-top: 26px; }
.product-section-title {
	text-align: center;
	font-size: 19px;
	letter-spacing: .4px;
	padding: 18px 30px;
	border-top: 1px solid #f0f0f0;
}
.gs-related {
	max-width: var(--gs-width);
	margin: 0 auto;
	padding: 4px 30px 46px;
	box-sizing: border-box;
}

/* ==========================================================================
   Quick view modal
   ========================================================================== */
.gs-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.55);
	padding: 20px;
}
.gs-modal[hidden] { display: none; }
.gs-modal .gs-modal-body {
	background: #fff;
	border-radius: 8px;
	max-width: 860px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	position: relative;
	padding: 26px;
	box-sizing: border-box;
}
.gs-modal-close {
	position: absolute;
	top: 10px; right: 12px;
	background: none;
	border: none;
	font-size: 30px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	z-index: 2;
	padding: 4px 8px;
}
.gs-qv { display: flex; gap: 24px; flex-wrap: wrap; }
.gs-qv-img { flex: 0 0 300px; max-width: 100%; }
.gs-qv-img img { width: 100%; border-radius: 6px; display: block; }
.gs-qv-info { flex: 1; min-width: 240px; }
.gs-qv-title { font-size: 20px; margin: 0 0 10px; }
.gs-qv-price { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 12px; }
.gs-qv-excerpt { font-size: 14px; color: #4a4a4a; margin-bottom: 16px; }
.gs-qv-info .button { margin-right: 10px; margin-bottom: 8px; }

/* ==========================================================================
   Notices / generic
   ========================================================================== */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	background: #f7f6f7;
	border-top-color: #627d47;
	color: #333;
	padding: 12px 16px;
	border-radius: 3px;
	margin: 0 0 16px;
	list-style: none;
}
.woocommerce-error { border-top-color: #b20000; }
.woocommerce-store-notice, p.demo_store { display: none !important; }

/* Generic pages (cart/checkout/account keep Storefront defaults) */
.gs-generic { padding: 30px; min-height: 50vh; }
.gs-page-title { font-size: 28px; margin: 0 0 18px; }

/* Mobile footer padding safety */
@media (max-width: 549px) {
	.container, .gs-product-row, .category-page-row, .content-row, .tab-panels, .gs-related { padding-left: 20px; padding-right: 20px; }
	.footer-1 .row { padding-left: 20px; padding-right: 20px; }
	.gs-footer-bottom { padding: 16px 20px; }
	.woocommerce-tabs .tabs { padding: 0 20px; }
	.product-title.product_title { font-size: 21px; }
	.price-wrapper .product-page-price, .price-wrapper .product-page-price .price { font-size: 21px; }
	.gs-add-to-cart-region form.cart { gap: 10px; }
	.gs-add-to-cart-region .quantity { height: 44px; }
	.gs-add-to-cart-region .single_add_to_cart_button { height: 44px; line-height: 40px; }
	.announcement-text { font-size: 11.5px; }
	.header-inner { padding: 0 16px; gap: 10px; }
	#logo { margin: 0 auto; }
	.header-inner .show-for-medium.flex-left { flex: 0 0 auto; }
	.header-inner .show-for-medium.flex-right { flex: 0 0 auto; }
}

/* Mobile header layout: hamburger left / logo center / cart right */
@media (max-width: 849px) {
	#masthead.header-main { height: 70px; }
	#logo img { max-height: 70px; }
	.header-inner { justify-content: space-between; }
}

/* ---- Han Zu Cheng brand overrides ---- */
#logo { width: 180px; }
@media (max-width: 849px) { #logo { width: 170px; } }

/* About 区块：恢复源站双栏 + 米色底 */
.gs-about { background: #f6f6ed; }
@media (min-width: 850px) {
	.gs-about .col.large-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 849px) {
	.gs-about .col.medium-12, .gs-about .col.small-12 { flex: 0 0 100%; max-width: 100%; }
}
.gs-about-text h1 { color: #555555; letter-spacing: .04em; }

/* 页脚配色贴近源站 */
:root { --gs-footer-bg: #f0e6d9; }
.footer-wrapper { color: #1a1a1a; }
.gs-footer-company .gs-ux-menu-link__text,
.gs-footer-col .gs-ux-menu-link__text,
.gs-widget-title strong,
.gs-copyright { color: #1a1a1a; }

/* about 标题字号贴近源站（源站约 3.4rem，会自然折行） */
@media (min-width: 850px) {
	.gs-about-text h1 { font-size: 3.2rem; line-height: 1.18; }
}

/* 政策/信息页排版：限宽居中 + 恢复列表符号 */
.gs-generic > article { max-width: 880px; margin: 0 auto; }
.gs-generic .entry-content p { margin: 0 0 12px; line-height: 1.7; }
.gs-generic .entry-content ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.gs-generic .entry-content ol { list-style: decimal; padding-left: 22px; margin: 0 0 14px; }
.gs-generic .entry-content li { margin: 0 0 6px; line-height: 1.65; }
.gs-generic .entry-content h2 { font-size: 22px; margin: 26px 0 10px; }
.gs-generic .entry-content h3 { font-size: 18px; margin: 20px 0 8px; }
.gs-generic .entry-content a { text-decoration: underline; }
.gs-generic .entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.gs-generic .entry-content th,
.gs-generic .entry-content td { border: 1px solid #e6e6e6; padding: 8px 10px; text-align: left; }

/* 列表符号（覆盖主题 ul{list-style:none} 的强制规则） */
.gs-generic .entry-content ul,
.entry-content ul.wp-block-list,
.gs-generic .entry-content ul.wp-block-list { list-style: disc outside !important; padding-left: 22px !important; margin: 0 0 14px !important; }
.gs-generic .entry-content ol,
.entry-content ol.wp-block-list { list-style: decimal outside !important; padding-left: 22px !important; margin: 0 0 14px !important; }
.entry-content li { display: list-item !important; }

/* ---- 购物车 / 结账（WooCommerce Blocks） ---- */
/* 这两页交给 Blocks 自适应宽屏双列，不套政策页的 880 限宽 */
body.woocommerce-cart .gs-generic > article,
body.woocommerce-checkout .gs-generic > article { max-width: 1180px; }
body.woocommerce-cart .gs-generic .entry-content > .wp-block-woocommerce-cart,
body.woocommerce-checkout .gs-generic .entry-content > .wp-block-woocommerce-checkout { margin: 0; }

/* 购物车行：缩略图不要再套灰边框、不留底部空白 */
.wc-block-cart-items .wc-block-cart-item__image { border: 0 !important; padding: 0 14px 0 0 !important; }
.wc-block-cart-items .wc-block-cart-item__image img { width: 100% !important; height: auto !important; border-radius: 4px; display: block; }

/* 结账页：宽屏时右侧栏吸顶，避免摘要上下重复 */
@media (min-width: 1000px) {
	.wc-block-checkout .wc-block-checkout__sidebar { position: sticky; top: 20px; }
}

/* ================================================================
   PDP refinements — thumb rail / flat variation options / buttons / qty
   ================================================================ */

/* 1) 缩略图：单行横向轮播（原来 4 列网格换行） */
.product-images .gs-thumbs-rail { position: relative; margin-top: 10px; padding: 0; }
.gs-thumbs-rail.has-overflow { padding: 0 30px; }
.gs-thumbs-rail .gs-gallery-thumbs {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 10px;
	width: 100%;
	margin: 0 !important;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 1px;
	box-sizing: border-box;
}
.gs-thumbs-rail .gs-gallery-thumbs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.gs-thumbs-rail .gs-gallery-thumbs .gs-thumb {
	flex: 0 0 calc((100% - 30px) / 4) !important;
	max-width: calc((100% - 30px) / 4) !important;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	scroll-snap-align: start;
}
.gs-thumbs-rail .gs-gallery-thumbs .gs-thumb img { width: 100%; height: auto; display: block; }
.gs-thumbs-rail .gs-gallery-thumbs .gs-thumb a { display: block; border: 2px solid transparent; border-radius: 5px; overflow: hidden; transition: border-color .15s; }
.gs-thumbs-rail .gs-gallery-thumbs .gs-thumb a:hover { border-color: #cfcfcf; }
.gs-thumbs-rail .gs-gallery-thumbs .gs-thumb.is-nav-selected a { border-color: #0D2546; }

.gs-thumb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 26px; height: 26px;
	padding: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #dfdfdf;
	border-radius: 50%;
	color: #222;
	cursor: pointer;
	z-index: 5;
	line-height: 1;
}
.gs-thumbs-rail.has-overflow .gs-thumb-nav { display: inline-flex; }
.gs-thumb-nav svg { width: 14px; height: 14px; }
.gs-thumb-nav:hover { background: #0D2546; border-color: #0D2546; color: #fff; }
.gs-thumb-nav:disabled { opacity: .3; cursor: default; background: #fff; border-color: #e6e6e6; color: #999; }
.gs-thumb-prev { left: 0; }
.gs-thumb-next { right: 0; }

/* 2) 变体：下拉换成平铺按钮 */
.gs-select-hidden { display: none !important; }
.gs-add-to-cart-region table.variations { width: 100%; }
.gs-add-to-cart-region table.variations tr { align-items: flex-start; }
.gs-add-to-cart-region table.variations th.label { flex: 0 0 auto; padding: 8px 0 0; min-width: 58px; }
.gs-add-to-cart-region table.variations td.value { flex: 1 1 auto; min-width: 0; padding: 0; }
.gs-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.gs-swatch {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 7px 14px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	color: #333;
	background: #fff;
	border: 1.5px solid #d8d8d8;
	border-radius: var(--gs-radius);
	cursor: pointer;
	text-align: center;
	transition: border-color .15s, background .15s, color .15s;
}
.gs-swatch:hover { border-color: #8a8a8a; color: #111; }
.gs-swatch.is-active,
.gs-swatch.is-active:hover { border-color: #0D2546; background: #0D2546; color: #fff; }
.gs-swatches + .reset_variations { display: inline-block; margin-top: 8px; }

/* 3) 两个按钮统一主色（原来 Buy Now 是深灰底黑字） */
.gs-add-to-cart-region .single_add_to_cart_button {
	background: #0D2546 !important;
	border: 2px solid #0D2546 !important;
	color: #fff !important;
	border-radius: var(--gs-radius) !important;
}
.gs-add-to-cart-region .single_add_to_cart_button:hover {
	background: #BB994E !important;
	border-color: #BB994E !important;
	color: #fff !important;
}
.gs-add-to-cart-region .single_add_to_cart_button:disabled,
.gs-add-to-cart-region .single_add_to_cart_button.disabled {
	background: #c3c3c3 !important;
	border-color: #c3c3c3 !important;
	color: #fff !important;
	opacity: 1 !important;
	cursor: not-allowed;
}
.gs-add-to-cart-region .wc-buy-now-btn-single {
	background: #0D2546 !important;
	color: #fff !important;
	border: 2px solid #0D2546 !important;
}

/* 4) 数量组件：紧凑一体式，数字可见 */
.gs-add-to-cart-region .quantity.gs-qty {
	display: inline-flex;
	align-items: stretch;
	flex: 0 0 132px;
	width: 132px;
	min-width: 132px;
	height: 46px;
	padding: 0;
	border: 1.5px solid #e2e2e2;
	border-radius: var(--gs-radius);
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
}
.gs-add-to-cart-region .quantity.gs-qty input.qty,
.gs-add-to-cart-region .quantity.gs-qty input[type="number"] {
	flex: 1 1 auto;
	width: 100% !important;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	background: transparent !important;
	text-align: center;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #111 !important;
	-webkit-text-fill-color: #111;
	-moz-appearance: textfield;
	appearance: textfield;
}
.gs-add-to-cart-region .quantity.gs-qty input.qty:focus { outline: none; }
.gs-add-to-cart-region .quantity.gs-qty input::-webkit-outer-spin-button,
.gs-add-to-cart-region .quantity.gs-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gs-qty-btn {
	flex: 0 0 36px;
	width: 36px;
	height: 100%;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f7f7f7;
	border: 0;
	border-radius: 0;
	color: #333;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	min-height: 0;
}
.gs-qty-btn:hover { background: #ebebeb; color: #000; }
.gs-qty-btn:active { background: #e0e0e0; }
.gs-qty-minus { border-right: 1px solid #ececec; }
.gs-qty-plus { border-left: 1px solid #ececec; }

@media (max-width: 549px) {
	.gs-add-to-cart-region .quantity.gs-qty { flex: 0 0 116px; width: 116px; min-width: 116px; height: 44px; }
	.gs-qty-btn { flex: 0 0 32px; width: 32px; }
	.gs-swatch { font-size: 12.5px; padding: 6px 11px; min-height: 34px; }
	.gs-thumbs-rail .gs-gallery-thumbs .gs-thumb { flex: 0 0 calc((100% - 20px) / 3) !important; max-width: calc((100% - 20px) / 3) !important; }
	.gs-thumbs-rail.has-overflow { padding: 0 26px; }
}

/* 5) 修正：主题全局 button{color:#fff !important} 把按钮文字刷白了 */
.gs-add-to-cart-region .gs-swatch,
.gs-swatches .gs-swatch {
	color: #333 !important;
	background: #fff;
	border: 1.5px solid #d8d8d8;
	height: auto !important;
	line-height: 1.25 !important;
	min-height: 36px;
	padding: 7px 14px !important;
	font-size: 13px !important;
	font-weight: 600;
	text-transform: none;
	box-shadow: none;
}
.gs-add-to-cart-region .gs-swatch:hover,
.gs-swatches .gs-swatch:hover { color: #111 !important; border-color: #8a8a8a; background: #fff; opacity: 1; }
.gs-add-to-cart-region .gs-swatch.is-active,
.gs-add-to-cart-region .gs-swatch.is-active:hover,
.gs-swatches .gs-swatch.is-active { color: #fff !important; background: #0D2546 !important; border-color: #0D2546 !important; }

.gs-qty-btn, .gs-add-to-cart-region .gs-qty-btn {
	color: #333 !important;
	background: #f7f7f7 !important;
	height: 100% !important;
	line-height: 1 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-size: 17px !important;
	font-weight: 700 !important;
}
.gs-qty-btn:hover { color: #000 !important; background: #ebebeb !important; opacity: 1; }
.gs-qty-minus { border-right: 1px solid #ececec !important; }
.gs-qty-plus { border-left: 1px solid #ececec !important; }

.gs-thumb-nav, .gs-thumbs-rail .gs-thumb-nav {
	color: #222 !important;
	background: #fff !important;
	height: 26px !important;
	line-height: 1 !important;
	padding: 0 !important;
	border: 1px solid #dfdfdf !important;
	border-radius: 50% !important;
}
.gs-thumbs-rail .gs-thumb-nav:hover { color: #fff !important; background: #0D2546 !important; border-color: #0D2546 !important; opacity: 1; }
.gs-thumbs-rail .gs-thumb-nav:disabled { color: #b5b5b5 !important; background: #fff !important; border-color: #e8e8e8 !important; opacity: 1; }

/* 6) 未选变体的禁用态改成主色淡化，不再整块变灰 */
.gs-add-to-cart-region .single_add_to_cart_button:disabled,
.gs-add-to-cart-region .single_add_to_cart_button.disabled {
	background: #0D2546 !important;
	border-color: #0D2546 !important;
	color: #fff !important;
	opacity: .42 !important;
	cursor: not-allowed;
}

@media (max-width: 549px) {
	.gs-add-to-cart-region .gs-swatch, .gs-swatches .gs-swatch { font-size: 12.5px !important; padding: 6px 11px !important; min-height: 34px; }
}

/* 7) 主题全局 button{color:#fff !important} 连带修复：浅底/透明底图标按钮 */
.gs-gallery-main .gs-nav {
	color: #111 !important;
	background: rgba(255,255,255,.94) !important;
	border: 1px solid #e2e2e2 !important;
}
.gs-gallery-main .gs-nav:hover {
	color: #fff !important;
	background: #0D2546 !important;
	border-color: #0D2546 !important;
	opacity: 1;
}
.gs-modal-close,
.gs-drawer-close {
	color: #333 !important;
	background: none !important;
	border: none !important;
	padding: 4px 8px !important;
	height: auto !important;
	line-height: 1 !important;
}
.gs-modal-close:hover,
.gs-drawer-close:hover { color: #000 !important; opacity: 1; }

/* 8) 主图箭头：svg 在 flex 按钮里被压成 0 宽 + padding 撑大，一并修正 */
.gs-gallery-main .gs-nav {
	width: 34px !important;
	height: 34px !important;
	flex: 0 0 34px;
	padding: 0 !important;
	border-radius: 50% !important;
	box-sizing: border-box;
}
.gs-gallery-main .gs-nav svg {
	width: 16px !important;
	height: 16px !important;
	flex: 0 0 16px;
	display: block;
}
.gs-thumbs-rail .gs-thumb-nav svg {
	width: 14px !important;
	height: 14px !important;
	flex: 0 0 14px;
	display: block;
}
.gs-zoom svg { flex: 0 0 auto; }

/* 9) 移动端商品页：主题原本把 gallery/summary 各压 50%，改成纵向单列 */
@media (max-width: 849px) {
	.product-main .content-row {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 22px 0;
	}
	.product-main .content-row > .product-gallery,
	.product-main .content-row > .product-info {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100%;
	}
	.product-main .product-images.woocommerce-product-gallery { width: 100% !important; }
}

/* swatch 不被 flex 压缩成竖排 */
.gs-swatches .gs-swatch,
.gs-add-to-cart-region .gs-swatch {
	flex: 0 0 auto;
	white-space: nowrap;
	word-break: keep-all;
}

/* 移动端按钮排布：数量整行 + 两个按钮并排各半 */
@media (max-width: 549px) {
	.gs-add-to-cart-region form.cart { gap: 8px; }
	.gs-add-to-cart-region .quantity.gs-qty {
		flex: 0 0 100%;
		width: 100%;
		min-width: 0;
		height: 44px;
	}
	.gs-add-to-cart-region .single_add_to_cart_button {
		flex: 1 1 calc(50% - 4px);
		min-width: 0;
		width: auto;
		height: 44px;
		line-height: 40px;
		padding: 0 8px;
		font-size: 14px;
	}
	.gs-add-to-cart-region .quantity.gs-qty input.qty { width: 100% !important; font-size: 15px; }
}

/* 10) 移动端变体表：table+flex 混用会塌陷 → 改块级堆叠 + swatch 网格 */
@media (max-width: 849px) {
	.gs-add-to-cart-region table.variations,
	.gs-add-to-cart-region table.variations tbody,
	.gs-add-to-cart-region table.variations tr,
	.gs-add-to-cart-region table.variations th.label,
	.gs-add-to-cart-region table.variations td.value {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	.gs-add-to-cart-region table.variations tr { margin: 0 0 12px; }
	.gs-add-to-cart-region table.variations th.label { padding: 0 0 7px !important; min-width: 0; }
	.gs-add-to-cart-region .gs-swatches {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		width: 100%;
	}
	.gs-add-to-cart-region .gs-swatch {
		width: 100%;
		min-height: 38px;
		white-space: normal;
		word-break: normal;
	}
}
@media (min-width: 600px) and (max-width: 849px) {
	.gs-add-to-cart-region .gs-swatches { grid-template-columns: repeat(3, 1fr); }
}
/* 移动端数量回到紧凑宽度，与两个按钮同一行 */
@media (max-width: 549px) {
	.gs-add-to-cart-region .quantity.gs-qty {
		flex: 0 0 108px;
		width: 108px;
		min-width: 108px;
		height: 44px;
	}
	.gs-add-to-cart-region .quantity.gs-qty input.qty { width: 100% !important; }
	.gs-add-to-cart-region .single_add_to_cart_button {
		flex: 1 1 0;
		min-width: 0;
		width: auto;
		padding: 0 6px;
		font-size: 13px;
		height: 44px;
		line-height: 40px;
	}
}

/* 11) 选项过多时限高滚动 */
.gs-swatches.is-scrollable {
	max-height: 152px;
	overflow-y: auto;
	padding-right: 5px;
	scrollbar-width: thin;
	scrollbar-color: #d8d8d8 transparent;
}
.gs-swatches.is-scrollable::-webkit-scrollbar { width: 5px; }
.gs-swatches.is-scrollable::-webkit-scrollbar-track { background: transparent; }
.gs-swatches.is-scrollable::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 3px; }
.gs-swatches.is-scrollable::-webkit-scrollbar-thumb:hover { background: #bfbfbf; }
@media (max-width: 849px) {
	.gs-add-to-cart-region .gs-swatches.is-scrollable { max-height: 182px; }
}

/* 12) 滚动区底部内阴影，暗示还有更多选项 */
.gs-swatches.is-scrollable {
	box-shadow: inset 0 -14px 12px -12px rgba(0, 0, 0, .16);
}

/* ==========================================================================
   13) Archive toolbar on phones — breadcrumb and sort used to share one
   cramped row, so the breadcrumb wrapped to two lines beside the select.
   Stack them: breadcrumb on its own line, sort below at full width.
   ========================================================================== */
@media (max-width: 599px) {
	.page-title-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding-top: 12px;
		padding-bottom: 12px;
	}
	.page-title-inner > .flex-col,
	.page-title-inner > .flex-col:last-child {
		width: 100%;
		margin-left: 0;
		justify-content: flex-start;
	}
	.page-title-inner .woocommerce-breadcrumb {
		font-size: 12px;
		line-height: 1.5;
	}
	.page-title-inner .woocommerce-breadcrumb .divider { margin: 0 5px; }
	.page-title-inner .woocommerce-ordering { width: 100%; }
	.page-title-inner .woocommerce-ordering select { width: 100%; }
}
