:root {
	--brand-shell-border: #ececec;
	--brand-shell-text: #111827;
	--brand-shell-muted: #6b7280;
	--brand-shell-footer-bg: #111827;
	--brand-shell-footer-text: #d1d5db;
	--brand-shell-footer-rich-bg: #f7f7f7;
	--brand-shell-footer-rich-feature-bg: #ffffff;
	--brand-shell-footer-subscribe-btn: #006ba4;

	/* Header search (override in child theme for pill shape, accent icon, etc.) */
	--brand-shell-search-width: 272px;
	--brand-shell-search-height: 42px;
	--brand-shell-search-border: 1px solid #d1d5db;
	--brand-shell-search-radius: 6px;
	--brand-shell-search-bg: #ffffff;
	--brand-shell-search-color: #111827;
	--brand-shell-search-placeholder: #6b7280;
	--brand-shell-search-icon-color: #111827;
	--brand-shell-search-icon-size: 18px;
	--brand-shell-search-padding-left: 14px;
	--brand-shell-search-padding-right: 40px;
}

.brand-shell-page .col-full {
	max-width: 1240px;
}

/* Header shell */
.brand-shell-masthead.site-header {
	background: #fff;
	border-bottom: 1px solid var(--brand-shell-border);
	padding: 10px 0;
	/* Storefront: .home… / .no-wc-breadcrumb .site-header { margin-bottom: ~4.24em } — not wanted */
	margin-bottom: 0 !important;
}

.brand-shell-header-inner {
	display: grid;
	align-items: center;
	gap: 22px;
}

/*
 * Storefront .col-full uses ::before/::after clearfix. Those pseudo-elements count as
 * extra grid items here (same element has col-full + grid), which auto-place before/after
 * real children and push logo/nav/actions onto the wrong rows.
 */
.brand-shell-masthead .col-full.brand-shell-header-inner::before,
.brand-shell-masthead .col-full.brand-shell-header-inner::after {
	content: none;
	display: none;
}

/* Presets: three-column row (default Customizer layouts) */
.brand-shell-header-layout--three_col .brand-shell-header-inner {
	grid-template-columns: auto minmax(0, 1fr) auto;
}

/*
 * Centered nav: balanced left/right tracks so the nav sits in a true center column.
 * (auto 1fr auto puts nav in a wide middle cell and can push the actions column to row 2 when space is tight.)
 */
.brand-shell-header-layout--three_col_centered .brand-shell-header-inner {
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	grid-template-rows: auto;
}

.brand-shell-header-layout--three_col .brand-shell-nav,
.brand-shell-header-layout--three_col_centered .brand-shell-nav,
.brand-shell-header-layout--nav_left_logo_center .brand-shell-nav {
	min-width: 0;
}

/* DOM order: branding → nav → actions; grid places nav | logo | actions */
.brand-shell-header-layout--nav_left_logo_center .brand-shell-header-inner {
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-rows: auto;
}

.brand-shell-header-layout--nav_left_logo_center .brand-shell-nav {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.brand-shell-header-layout--nav_left_logo_center .brand-shell-branding {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	min-width: 0;
}

.brand-shell-header-layout--nav_left_logo_center .brand-shell-header-actions {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	flex-wrap: nowrap;
}

.brand-shell-header-layout--nav_left_logo_center .brand-shell-nav ul {
	justify-content: flex-start;
}

.brand-shell-header-layout--three_col_centered .brand-shell-branding {
	justify-self: start;
	min-width: 0;
}

.brand-shell-header-layout--three_col_centered .brand-shell-nav {
	justify-self: center;
}

.brand-shell-header-layout--three_col_centered .brand-shell-header-actions {
	justify-self: end;
	flex-wrap: nowrap;
}

.brand-shell-header-layout--three_col_centered .brand-shell-nav ul {
	justify-content: center;
}

.brand-shell-header-layout--three_col .brand-shell-nav ul {
	justify-content: flex-start;
}

/* Stacked: logo + actions row, full-width nav below (DOM stays brand → nav → actions) */
.brand-shell-header-layout--stacked .brand-shell-header-inner {
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 22px;
	row-gap: 12px;
}

.brand-shell-header-layout--stacked .brand-shell-branding {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}

.brand-shell-header-layout--stacked .brand-shell-header-actions {
	grid-column: 2;
	grid-row: 1;
}

.brand-shell-header-layout--stacked .brand-shell-nav {
	grid-column: 1 / -1;
	grid-row: 2;
	width: 100%;
}

.brand-shell-header-layout--stacked .brand-shell-nav ul {
	justify-content: center;
	flex-wrap: wrap;
}

.brand-shell-logo {
	display: inline-flex;
	align-items: center;
	color: var(--brand-shell-text);
}

.brand-shell-logo .custom-logo-link {
	display: inline-flex;
}

.brand-shell-logo .custom-logo {
	max-height: 44px;
	width: auto;
}

.brand-shell-logo-text {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.2px;
}

.brand-shell-nav {
	/* Width comes from grid tracks; min-width avoids overflow in middle column */
	min-width: 0;
}

.brand-shell-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex !important;
	align-items: center;
	flex-direction: row !important;
	gap: 18px;
}

.brand-shell-nav li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.brand-shell-nav a {
	display: inline-block;
	color: var(--brand-shell-text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1px;
	line-height: 1;
}

.brand-shell-header-actions {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
}

.brand-shell-search-form {
	position: relative;
	margin: 0;
	display: inline-flex;
	align-items: center;
}

/*
 * Specificity beats Storefront `input[type=search]` (#f2f2f2 background).
 */
.brand-shell-masthead .brand-shell-search-form input[type='search'].brand-shell-search-input {
	width: var(--brand-shell-search-width);
	height: var(--brand-shell-search-height);
	border: var(--brand-shell-search-border);
	border-radius: var(--brand-shell-search-radius);
	padding: 0 var(--brand-shell-search-padding-right) 0 var(--brand-shell-search-padding-left);
	font-size: 13px;
	color: var(--brand-shell-search-color);
	background-color: var(--brand-shell-search-bg);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.brand-shell-masthead .brand-shell-search-form input[type='search'].brand-shell-search-input:focus {
	background-color: var(--brand-shell-search-bg);
	color: var(--brand-shell-search-color);
}

.brand-shell-masthead .brand-shell-search-form input[type='search'].brand-shell-search-input::placeholder {
	color: var(--brand-shell-search-placeholder);
}

.brand-shell-search-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: max(22px, var(--brand-shell-search-icon-size));
	height: max(22px, var(--brand-shell-search-icon-size));
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-shell-search-icon-color);
}

.brand-shell-search-btn svg {
	width: var(--brand-shell-search-icon-size);
	height: var(--brand-shell-search-icon-size);
	fill: currentColor;
}

.brand-shell-search-form button[type='submit'] {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	min-width: 0 !important;
}

.brand-shell-account-link,
.brand-shell-cart-link {
	position: relative;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-shell-text);
}

.brand-shell-account-link svg,
.brand-shell-cart-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.brand-shell-cart-count {
	position: absolute;
	top: -7px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 10px;
	line-height: 16px;
	font-weight: 700;
	text-align: center;
}

/* Main content shell */
.brand-shell-content-inner {
	padding-top: 28px;
	padding-bottom: 40px;
}

/* Default: main column uses full row when parent is flex (e.g. block / theme wrappers). */
.brand-shell-page #primary {
	flex: 0 0 100%;
	max-width: 100%;
}

/* Default no sidebar: hide #secondary if a plugin still hooks into storefront_sidebar */
.brand-shell-no-sidebar #secondary.widget-area {
	display: none !important;
}

/* Front page only: hide breadcrumb strip (e.g. Home / Tienda). `home` is WP body class on is_front_page(). */
body.home .feature-header {
	display: none !important;
}

/* Fallback: static front page title bar if anything still prints .entry-header (plugins/blocks). */
body.home.page .site-main .hentry > .entry-header:first-of-type {
	display: none !important;
}

.brand-shell-banner {
	min-height: 420px;
	border-radius: 10px;
	background: linear-gradient(120deg, #fb7185 0%, #f43f5e 35%, #e11d48 100%);
	display: flex;
	align-items: center;
	padding: 56px;
	color: #fff;
}

.brand-shell-banner-content {
	max-width: 620px;
}

.brand-shell-banner h1 {
	margin: 0 0 14px;
	font-size: 48px;
	line-height: 1.15;
	color: #fff;
}

.brand-shell-banner p {
	margin: 0 0 24px;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.92);
}

.brand-shell-banner-btn {
	display: inline-block;
	background: #fff;
	color: #e11d48;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 700;
}

.brand-shell-new-products {
	padding-top: 40px;
}

.brand-shell-new-products h2 {
	font-size: 28px;
	margin: 0 0 20px;
}

/* Footer shell — Classic & Minimal：深色底栏 */
.brand-shell-footer.brand-shell-footer--classic.site-footer,
.brand-shell-footer.brand-shell-footer--minimal.site-footer,
.brand-shell-footer-layout--classic .brand-shell-footer.site-footer,
.brand-shell-footer-layout--minimal .brand-shell-footer.site-footer {
	background: var(--brand-shell-footer-bg);
	color: var(--brand-shell-footer-text);
	padding: 38px 0 24px;
}

/*
 * Storefront Customizer 会输出 .site-footer a:not(.button):not(.components-button){ color: footer_link_color }
 *（常为深灰），优先级高于子主题里仅含 .brand-shell-footer-links a 的规则，导致黑底黑字。此处用相同 :not() + 更高类名权重覆盖。
 */
.brand-shell-footer.site-footer .brand-shell-footer-links a:not(.button):not(.components-button) {
	color: #cbd5e1;
}

.brand-shell-footer.site-footer .brand-shell-footer-links a:not(.button):not(.components-button):hover {
	color: #fff;
}

.brand-shell-footer.brand-shell-footer--minimal.site-footer .brand-shell-footer-nav-minimal a:not(.button):not(.components-button) {
	color: #e5e7eb;
}

.brand-shell-footer.brand-shell-footer--minimal.site-footer .brand-shell-footer-nav-minimal a:not(.button):not(.components-button):hover {
	color: #fff;
}

.brand-shell-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-bottom: 16px;
}

.brand-shell-footer-links a {
	color: #cbd5e1;
	font-size: 14px;
}

.brand-shell-footer-links a:hover {
	color: #fff;
}

.brand-shell-footer-bottom {
	border-top: 1px solid #374151;
	padding-top: 14px;
	font-size: 13px;
	color: #9ca3af;
}

/* Minimal：居中、紧凑 */
.brand-shell-footer--minimal .brand-shell-footer-minimal-inner,
.brand-shell-footer-layout--minimal .brand-shell-footer-minimal-inner {
	text-align: center;
	max-width: 960px;
	margin: 0 auto;
}

.brand-shell-footer-nav-minimal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 20px;
	margin: 0 0 14px;
	padding: 0;
}

.brand-shell-footer-nav-minimal a {
	color: #e5e7eb;
	font-size: 13px;
	text-decoration: none;
}

.brand-shell-footer-nav-minimal a:hover {
	color: #fff;
	text-decoration: underline;
}

.brand-shell-footer-minimal-copy {
	margin: 0;
	font-size: 12px;
	color: #9ca3af;
	line-height: 1.5;
}

/* Rich：浅色多段（顶栏四格 + 四列 + 底条） */
.brand-shell-footer.brand-shell-footer--rich.site-footer,
.brand-shell-footer-layout--rich .brand-shell-footer.site-footer {
	background: transparent;
	color: #111827;
	padding: 0;
}

.brand-shell-footer-rich {
	width: 100%;
}

/*
 * Rich 区块内 .col-full 与 grid 叠在同一元素上；Storefront .col-full 的 clearfix 伪元素
 * 会计入 grid，出现「前三格 + 伪元素占行、第四格换行」等错乱（与头部相同机理）。
 */
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-features-inner::before,
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-features-inner::after,
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-columns::before,
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-columns::after,
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-bar::before,
.brand-shell-footer-rich .col-full.brand-shell-footer-rich-bar::after {
	content: none;
	display: none;
}

.brand-shell-footer-rich-features {
	background: var(--brand-shell-footer-rich-feature-bg);
	padding: 36px 0 32px;
	border-top: 1px solid var(--brand-shell-border);
}

.brand-shell-footer-rich-features-inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 32px;
	align-items: start;
}

.brand-shell-footer-feature {
	text-align: center;
}

.brand-shell-footer-feature-icon {
	display: flex;
	justify-content: center;
	color: #111827;
	margin-bottom: 10px;
}

.brand-shell-footer-feature-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

.brand-shell-footer-feature-text {
	margin: 0;
	font-size: 13px;
	color: var(--brand-shell-muted);
	line-height: 1.45;
}

.brand-shell-footer-rich-columns-wrap {
	background: var(--brand-shell-footer-rich-bg);
	padding: 40px 0 36px;
}

.brand-shell-footer-rich-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 24px;
}

.brand-shell-footer-rich-col {
	padding-right: 20px;
	border-right: 1px solid #e5e7eb;
	min-width: 0;
}

.brand-shell-footer-rich-col:last-child {
	border-right: none;
	padding-right: 0;
}

.brand-shell-footer-rich-heading {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
}

.brand-shell-footer-rich-email {
	margin: 0;
	font-size: 14px;
}

.brand-shell-footer-rich-email a {
	color: #111827;
	text-decoration: underline;
}

.brand-shell-footer-rich-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.brand-shell-footer-rich-list li {
	margin: 0 0 10px;
}

.brand-shell-footer-rich-list a {
	color: #374151;
	font-size: 14px;
	text-decoration: none;
}

.brand-shell-footer-rich-list a:hover {
	text-decoration: underline;
	color: #111827;
}

.brand-shell-footer-rich-subscribe-intro {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--brand-shell-muted);
}

.brand-shell-footer-subscribe-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 100%;
}

.brand-shell-footer-subscribe-form input[type="email"] {
	width: 100%;
	max-width: 280px;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	color: #111827;
}

.brand-shell-footer-subscribe-btn {
	align-self: flex-start;
	padding: 10px 22px;
	border: none;
	border-radius: 4px;
	background: var(--brand-shell-footer-subscribe-btn);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.brand-shell-footer-subscribe-btn:hover {
	filter: brightness(1.06);
}

.brand-shell-footer-rich-bar-wrap {
	background: var(--brand-shell-footer-rich-bg);
	padding: 0 0 28px;
	border-top: 1px solid #e5e7eb;
}

.brand-shell-footer-rich-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding-top: 20px;
}

.brand-shell-footer-payments {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	align-items: center;
	justify-self: start;
}

.brand-shell-footer-pay-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.brand-shell-footer-pay-icon img {
	display: block;
	height: 28px;
	width: auto;
	max-width: 56px;
	object-fit: contain;
}

.brand-shell-footer-rich-copyright {
	margin: 0;
	justify-self: center;
	grid-column: 2;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.brand-shell-footer-rich-bar-spacer {
	grid-column: 3;
}

@media (max-width: 1024px) {
	.brand-shell-footer-rich-features-inner,
	.brand-shell-footer-rich-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.brand-shell-footer-rich-col {
		border-right: none;
		padding-right: 0;
		border-bottom: 1px solid #e5e7eb;
		padding-bottom: 20px;
		margin-bottom: 8px;
	}

	.brand-shell-footer-rich-col:nth-child(2n) {
		padding-left: 16px;
	}

	.brand-shell-footer-rich-bar {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.brand-shell-footer-payments {
		justify-self: center;
		justify-content: center;
	}

	.brand-shell-footer-rich-copyright {
		grid-column: 1;
	}

	.brand-shell-footer-rich-bar-spacer {
		display: none;
	}
}

@media (max-width: 600px) {
	.brand-shell-footer-rich-features-inner,
	.brand-shell-footer-rich-columns {
		grid-template-columns: 1fr;
	}

	.brand-shell-footer-rich-col:nth-child(2n) {
		padding-left: 0;
	}
}

@media (max-width: 1024px) {
	.brand-shell-header-layout--three_col .brand-shell-header-inner,
	.brand-shell-header-layout--three_col_centered .brand-shell-header-inner,
	.brand-shell-header-layout--nav_left_logo_center .brand-shell-header-inner {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.brand-shell-header-layout--nav_left_logo_center .brand-shell-branding,
	.brand-shell-header-layout--nav_left_logo_center .brand-shell-nav,
	.brand-shell-header-layout--nav_left_logo_center .brand-shell-header-actions {
		grid-column: auto;
		grid-row: auto;
		justify-self: stretch;
	}

	.brand-shell-header-layout--three_col .brand-shell-nav,
	.brand-shell-header-layout--three_col_centered .brand-shell-nav,
	.brand-shell-header-layout--nav_left_logo_center .brand-shell-nav {
		width: 100%;
	}

	.brand-shell-header-layout--stacked .brand-shell-header-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		column-gap: 16px;
		row-gap: 10px;
	}

	.brand-shell-header-layout--stacked .brand-shell-branding {
		grid-column: 1;
		grid-row: 1;
	}

	.brand-shell-header-layout--stacked .brand-shell-header-actions {
		grid-column: 2;
		grid-row: 1;
	}

	.brand-shell-header-layout--stacked .brand-shell-nav {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.brand-shell-nav {
		width: 100%;
	}

	.brand-shell-nav ul {
		gap: 16px;
		flex-wrap: wrap;
	}

	.brand-shell-nav a {
		font-size: 13px;
	}

	.brand-shell-search-input {
		--brand-shell-search-width: 220px;
	}
}

@media (max-width: 768px) {
	.brand-shell-logo .custom-logo {
		max-height: 36px;
	}

	.brand-shell-logo-text {
		font-size: 26px;
	}

	.brand-shell-search-input {
		--brand-shell-search-width: 180px;
		--brand-shell-search-height: 38px;
	}

	.brand-shell-header-actions {
		justify-content: flex-start;
	}

	.brand-shell-banner {
		min-height: 300px;
		padding: 32px;
	}

	.brand-shell-banner h1 {
		font-size: 34px;
	}

	.brand-shell-banner p {
		font-size: 16px;
	}
}

