/* ================================================
   PORTAL STYLESHEET
   Brand: Dr. Brighten Essentials — Practitioner Portal
   Sections: 22 component-first sections
   Note: Google Fonts loaded separately via wp_enqueue_style('brighten-fonts')
================================================ */

/* 1. TOKENS — :root custom properties */

:root {
	--color-bg:           #F8F7F4;
	--color-surface:      #FFFFFF;
	--color-sage:         #4E7268;
	--color-sage-dark:    #2F5248;
	--color-sage-darker:  #1E3830;
	--color-sage-light:   #C8D8D2;
	--color-sage-muted:   #EDF2EF;
	--color-text:         #1B2B24;
	--color-text-muted:   #5B6B64;
	--color-border:       #D5DDD9;
	--color-cta:          #2F5248;
	--color-cta-hover:    #1E3830;

	--color-ivory:        #F8F7F4; /* alias for --color-bg */
	--color-slate:        #1B2B24; /* alias for --color-text */
	--color-slate-light:  #5B6B64; /* alias for --color-text-muted */
	--color-gold:         #C8963E;
	--color-gold-dark:    #A07228;
	--color-terracotta:   #C0392B;
	--color-white:        #FFFFFF;

	--font-serif: 'Cormorant Garamond', Georgia, serif;
	--font-sans:  'Inter', system-ui, -apple-system, sans-serif;

	--sidebar-width:    248px;
	--topbar-height:    60px;

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--transition: 180ms ease;

	--shadow:    0 2px 8px rgba(27, 43, 36, 0.06);
	--shadow-lg: 0 4px 24px rgba(27, 43, 36, 0.10);
}

/* 2. RESET — box-sizing, body, a, button */

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-sans);
	background: var(--color-bg);
	color: var(--color-text);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	cursor: pointer;
	font-family: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* 3. LAYOUT — .portal, .main-area, .page-body */

.portal {
	display: flex;
	min-height: 100vh;
}

.main-area {
	margin-left: var(--sidebar-width);
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.page-body {
	padding: 2rem;
	flex: 1;
}

.page-body--split {
	display: flex;
	flex: 1;
	padding: 0;
}

.order-area {
	flex: 1;
	padding: 2rem;
	min-width: 0;
	overflow: hidden;
}

.content-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 1.5rem;
	align-items: start;
}

.breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-bottom: 1.75rem;
}
.breadcrumb a { color: var(--color-sage); }
.breadcrumb-sep { color: var(--color-border); }

/* 4. SIDEBAR — .sidebar, .sidebar-header, .sidebar-brand, .sidebar-account, .sidebar-nav, .nav-item, .sidebar-footer */

.sidebar {
	width: var(--sidebar-width);
	background: var(--color-sage-darker);
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	z-index: 50;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar-header {
	padding: 1.375rem 1.25rem 1.125rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	flex-shrink: 0;
}

.sidebar-brand {
	font-family: var(--font-serif);
	font-size: 1.0625rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.sidebar-brand-sub {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	margin-top: 0.1rem;
}

.sidebar-account {
	margin-top: 0.875rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-sm);
	padding: 0.625rem 0.75rem;
}

.sidebar-account-name {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.3;
}

.sidebar-account-meta {
	font-size: 0.6875rem;
	color: rgba(255, 255, 255, 0.45);
	margin-top: 0.15rem;
}

.sidebar-nav {
	flex: 1;
	padding: 0.5rem 0;
}

.nav-section-label {
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.28);
	padding: 1rem 1.25rem 0.3rem;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0 1.25rem;
	height: 42px;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.62);
	transition: background var(--transition), color var(--transition);
	border-left: 3px solid transparent;
	text-decoration: none;
	position: relative;
}
.nav-item:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}
.nav-item.active {
	background: rgba(78, 114, 104, 0.28);
	color: #fff;
	border-left-color: var(--color-sage);
}
.nav-item svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.nav-item.danger { color: rgba(255, 100, 100, 0.6); }
.nav-item.danger:hover { color: rgba(255, 120, 120, 0.9); background: rgba(255, 80, 80, 0.06); }

.nav-item-badge {
	margin-left: auto;
	background: var(--color-sage);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 600;
	padding: 0.1rem 0.4rem;
	border-radius: 10px;
	letter-spacing: 0.04em;
}

.nav-sub { padding-left: 1rem; }
.nav-sub .nav-item {
	padding-left: 2.75rem;
	font-size: 0.8125rem;
	height: 38px;
}

.nav-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	margin: 0.5rem 0;
}

.sidebar-footer {
	padding: 0.75rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	flex-shrink: 0;
}

/* 5. TOPBAR — .topbar, .topbar-left, .topbar-right, .topbar-cart */

.topbar {
	height: var(--topbar-height);
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2rem;
	position: sticky;
	top: 0;
	z-index: 40;
}

.topbar-left {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}
.topbar-left a { color: var(--color-sage); }
.topbar-sep { color: var(--color-border); }

.topbar-right {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.topbar-cart {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text-muted);
	padding: 0.4rem 0.875rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	transition: all var(--transition);
	text-decoration: none;
}
.topbar-cart:hover {
	border-color: var(--color-sage);
	color: var(--color-sage);
}
.topbar-cart svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* 6. BUTTONS — .btn, .btn-primary, .btn-outline, .btn-ghost, .btn-sm, .btn-danger */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.6rem 1.25rem;
	border-radius: var(--radius-sm);
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
	white-space: nowrap;
	min-height: 38px;
}
.btn:focus-visible {
	outline: 3px solid var(--color-sage);
	outline-offset: 3px;
}
.btn svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.btn-primary {
	background: var(--color-cta);
	color: #fff;
	border-color: var(--color-cta);
}
.btn-primary:hover {
	background: var(--color-cta-hover);
	border-color: var(--color-cta-hover);
}

.btn-outline {
	background: transparent;
	color: var(--color-cta);
	border-color: var(--color-border);
}
.btn-outline:hover {
	border-color: var(--color-sage);
	background: var(--color-sage-muted);
}

.btn-ghost {
	background: transparent;
	color: var(--color-text-muted);
	border-color: transparent;
}
.btn-ghost:hover {
	color: var(--color-text);
	background: var(--color-sage-muted);
}

.btn-white {
	background: #fff;
	color: var(--color-sage-dark);
	border-color: #fff;
	font-weight: 600;
}
.btn-white:hover { background: rgba(255, 255, 255, 0.9); }

.btn-sm {
	padding: 0.375rem 0.875rem;
	font-size: 0.8125rem;
	min-height: 32px;
}

.btn-danger {
	background: transparent;
	color: #C0392B;
	border-color: #F5C6C3;
}
.btn-danger:hover { background: #FEF0EF; }

.btn-add-cart {
	flex: 1;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
}

/* 7. PAGE CHROME — .page-header-row, .page-title, .page-subtitle, .section-block */

.page-header {
	margin-bottom: 1.5rem;
}

.page-header-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 2rem;
	gap: 1rem;
	flex-wrap: wrap;
}

.page-title {
	font-family: var(--font-serif);
	font-size: 1.875rem;
	font-weight: 600;
	color: var(--color-text);
	letter-spacing: -0.01em;
}

.page-subtitle {
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	margin-top: 0.25rem;
}

.section-block {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.section-block-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.375rem;
	border-bottom: 1px solid var(--color-border);
}

.section-block-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text);
}

/* 8. STAT CARDS — .stats-grid, .stat-card, .stat-label, .stat-value, .stat-badge */

.stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 2rem;
}

.stat-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.375rem 1.5rem;
}

.stat-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: 0.5rem;
}

.stat-value {
	font-family: var(--font-serif);
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1;
}

.stat-meta {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-top: 0.375rem;
}

.stat-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	background: var(--color-sage-muted);
	color: var(--color-sage-dark);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.5rem;
	border-radius: 20px;
	margin-top: 0.375rem;
}

/* 9. TIER BAR — .tier-card, .tier-bar-wrap, .tier-bar-fill, .tier-ticks, .tier-message */

.tier-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.375rem 1.5rem;
	margin-bottom: 2rem;
}

.tier-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.tier-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.tier-current {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-sage);
}

.tier-bar-wrap {
	height: 6px;
	background: var(--color-sage-muted);
	border-radius: 99px;
	overflow: hidden;
	margin-bottom: 0.75rem;
}

.tier-bar-fill {
	height: 100%;
	background: var(--color-sage);
	border-radius: 99px;
	transition: width 0.4s ease;
}

/* Two-tone tier bar (D-13) — dashboard only */
.tier-bar-wrap--two-tone {
	display: flex;
	overflow: hidden;
}

.tier-bar-fill-orders {
	height: 100%;
	background: var(--color-sage);
	border-radius: 99px 0 0 99px;
	transition: width 0.4s ease;
}

.tier-bar-fill-cart {
	height: 100%;
	background: var(--color-sage-light);
	border-radius: 0 99px 99px 0;
	transition: width 0.4s ease;
}

/* When orders fills 100% (no cart segment), keep full border-radius */
.tier-bar-fill-orders:last-child {
	border-radius: 99px;
}

/* When cart is the only segment (no orders) */
.tier-bar-fill-cart:first-child {
	border-radius: 99px;
}

/* Legend below the two-tone bar */
.tier-bar-legend {
	display: flex;
	gap: 1rem;
	margin-top: 0.375rem;
	font-size: 0.6875rem;
	color: var(--color-text-muted);
}

.tier-bar-legend span {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.legend-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.legend-orders {
	background: var(--color-sage);
}

.legend-cart {
	background: var(--color-sage-light);
}

.tier-ticks {
	display: flex;
	justify-content: space-between;
	font-size: 0.6875rem;
	color: var(--color-text-muted);
}

.tier-message {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-top: 0.5rem;
}
.tier-message strong { color: var(--color-sage-dark); }

/* Cart sidebar tier panel variant */
.tier-panel {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-bg);
	flex-shrink: 0;
}

.tier-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.tier-panel-label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-sage-dark);
}

.tier-panel-cta {
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--color-sage);
}

.tier-table { width: 100%; border-collapse: collapse; }
.tier-table td {
	padding: 0.3rem 0;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}
.tier-table td:last-child {
	text-align: right;
	font-weight: 600;
	color: var(--color-text);
}
.tier-row-active td { color: var(--color-sage-dark) !important; font-weight: 700 !important; }
.tier-row-active td:first-child::before { content: '\2713\00A0'; color: var(--color-sage); }

.tier-next-msg {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: var(--color-sage-dark);
	background: var(--color-sage-muted);
	border-radius: var(--radius-sm);
	padding: 0.375rem 0.5rem;
	line-height: 1.4;
}

/* 10. TABLES — .quick-order-table, .orders-table, .status-badge */

.quick-order-table {
	width: 100%;
	border-collapse: collapse;
}
.quick-order-table th {
	text-align: left;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	padding: 0.625rem 1.375rem;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}
.quick-order-table td {
	padding: 0.875rem 1.375rem;
	border-bottom: 1px solid var(--color-border);
	vertical-align: middle;
}
.quick-order-table tr:last-child td { border-bottom: none; }
.quick-order-table tr:hover td { background: var(--color-bg); }

.orders-table {
	width: 100%;
	border-collapse: collapse;
}
.orders-table th {
	text-align: left;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	padding: 0.625rem 1.375rem;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}
.orders-table td {
	padding: 0.875rem 1.375rem;
	font-size: 0.875rem;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text);
}
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--color-bg); }

.status-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 0.2rem 0.5rem;
	border-radius: 20px;
}
.status-shipped    { background: #E6F4EE; color: #1A6840; }
.status-processing { background: #FEF3E0; color: #92550E; }
.status-delivered  { background: var(--color-sage-muted); color: var(--color-sage-dark); }

/* Product list (wholesale order page) */
.product-list {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.product-list-header {
	display: grid;
	grid-template-columns: 24px 1fr 90px 90px 70px 110px 90px;
	gap: 1rem;
	align-items: center;
	padding: 0.625rem 1.25rem;
	background: var(--color-bg);
	border-bottom: 2px solid var(--color-border);
}

.col-label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.product-row {
	display: grid;
	grid-template-columns: 24px 1fr 90px 90px 70px 110px 90px;
	gap: 1rem;
	align-items: center;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--color-border);
	transition: background var(--transition);
}
.product-row:last-child { border-bottom: none; }
.product-row:hover { background: var(--color-bg); }
.product-row.selected { background: var(--color-sage-muted); }

.row-check {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--color-border);
	border-radius: 3px;
	appearance: none;
	cursor: pointer;
	background: #fff;
	position: relative;
	flex-shrink: 0;
	transition: all var(--transition);
}
.row-check:checked {
	background: var(--color-sage);
	border-color: var(--color-sage);
}
.row-check:checked::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 6px;
	height: 10px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(45deg);
}

.category-row {
	padding: 0.5rem 1.25rem;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-sage);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.category-row::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--color-border);
}

/* Library table */
.library-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.library-table th {
	text-align: left;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	padding: 0.625rem 1.25rem;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}
.library-table td {
	padding: 0.875rem 1.25rem;
	border-bottom: 1px solid var(--color-border);
	font-size: 0.875rem;
	vertical-align: middle;
}
.library-table tr:last-child td { border-bottom: none; }
.library-table tr:hover td { background: var(--color-bg); }
.lib-doc-name { font-weight: 600; color: var(--color-text); }
.lib-doc-desc { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 0.15rem; }
.lib-product-badge {
	font-size: 0.6875rem;
	font-weight: 500;
	background: var(--color-sage-muted);
	color: var(--color-sage-dark);
	padding: 0.15rem 0.5rem;
	border-radius: 20px;
	white-space: nowrap;
}
.lib-type-badge {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 0.2rem 0.5rem;
	border-radius: 3px;
}
.type-monograph  { background: #E8F0FE; color: #1A56DB; }
.type-patient    { background: #FEF3E0; color: #92550E; }
.type-research   { background: var(--color-sage-muted); color: var(--color-sage-dark); }
.type-protocol   { background: #F0F4FF; color: #3730A3; }
.type-coa        { background: #F0FDF4; color: #166534; }
.lib-download {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-sage);
}
.lib-download svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lib-download:hover { color: var(--color-sage-dark); }

/* 11. PRODUCT ROWS — .product-cell, .product-thumb, .product-name, .product-sku, .price-ws, .price-msrp */

.product-cell {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	min-width: 0;
}

.product-thumb {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	background: var(--color-sage-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-family: var(--font-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-sage);
}

.product-info { min-width: 0; }

.product-name {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--color-sage); }

.product-desc {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.product-sku {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	margin-top: 0.1rem;
}

.price-ws {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--color-text);
}

.price-msrp {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	text-decoration: line-through;
}

.price-save {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-sage-dark);
}

.save-badge {
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--color-sage-dark);
	background: var(--color-sage-muted);
	padding: 0.1rem 0.35rem;
	border-radius: 20px;
	display: inline-block;
	margin-top: 0.15rem;
}

.category-tag {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--color-sage-dark);
	background: var(--color-sage-muted);
	padding: 0.15rem 0.5rem;
	border-radius: 20px;
}

/* Product hero (product detail page) */
.product-hero {
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 3rem;
	margin-bottom: 2.5rem;
	align-items: start;
}

.product-image-main {
	aspect-ratio: 1;
	background: linear-gradient(145deg, var(--color-sage-muted) 0%, var(--color-sage-light) 100%);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-serif);
	font-size: 5rem;
	font-weight: 700;
	color: var(--color-sage);
	letter-spacing: -0.02em;
	position: relative;
	overflow: hidden;
}
.product-image-main::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(78, 114, 104, 0.06), transparent);
}

.product-thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.product-thumb-sm {
	width: 60px;
	height: 60px;
	border-radius: var(--radius-md);
	background: var(--color-sage-muted);
	border: 2px solid transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-serif);
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-sage);
	transition: border-color var(--transition);
}
.product-thumb-sm.active { border-color: var(--color-sage); }

.product-category-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-sage-dark);
	background: var(--color-sage-muted);
	padding: 0.25rem 0.625rem;
	border-radius: 20px;
	margin-bottom: 0.75rem;
}

.product-title {
	font-family: var(--font-serif);
	font-size: 2.375rem;
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin-bottom: 0.375rem;
}

.product-subtitle {
	font-size: 1rem;
	color: var(--color-text-muted);
	margin-bottom: 1.25rem;
	line-height: 1.5;
}

.product-pricing {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: var(--color-sage-muted);
	border-radius: var(--radius-md);
	margin-bottom: 1.5rem;
}

.price-your {
	font-size: 1.625rem;
	font-weight: 700;
	color: var(--color-text);
}

.price-your-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-sage);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-right: 0.25rem;
}

.price-msrp-wrap { margin-left: auto; text-align: right; }

.product-meta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.product-meta-item {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 0.75rem;
}

.meta-label {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-text-muted);
	margin-bottom: 0.25rem;
}

.meta-value {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text);
}

.add-to-cart-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.stock-note {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.stock-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2D8A50;
	display: inline-block;
}

/* 12. QTY STEPPER — .qty-stepper, .qty-btn, .qty-input */

.qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.qty-btn {
	width: 32px;
	height: 36px;
	border: none;
	background: none;
	font-size: 1rem;
	color: var(--color-text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition);
	flex-shrink: 0;
}
.qty-btn:hover {
	background: var(--color-sage-muted);
	color: var(--color-sage);
}

.qty-input {
	width: 42px;
	height: 36px;
	border: none;
	border-left: 1px solid var(--color-border);
	border-right: 1px solid var(--color-border);
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--color-text);
	background: var(--color-surface);
}
.qty-input:focus {
	outline: none;
	background: var(--color-sage-muted);
}

/* Larger stepper variant for product detail page */
.qty-stepper--lg .qty-btn {
	width: 36px;
	height: 44px;
	font-size: 1.125rem;
}
.qty-stepper--lg .qty-input {
	width: 48px;
	height: 44px;
	border-left-width: 1.5px;
	border-right-width: 1.5px;
	font-size: 1rem;
	font-weight: 700;
}

/* 13. TABS — .section-tabs, .section-tab, .section-panel */

.section-tabs {
	display: flex;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 0.25rem;
	gap: 0.25rem;
	margin-bottom: 2rem;
	width: fit-content;
}

.section-tab {
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text-muted);
	background: none;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all var(--transition);
	white-space: nowrap;
}
.section-tab:hover {
	color: var(--color-text);
	background: var(--color-bg);
}
.section-tab.active {
	background: var(--color-cta);
	color: #fff;
}
.section-tab:focus-visible {
	outline: 3px solid var(--color-sage);
	outline-offset: 2px;
}

.section-panel { display: none; }
.section-panel.active { display: block; }

/* Product detail tab nav (underline style) */
.tab-nav {
	display: flex;
	border-bottom: 2px solid var(--color-border);
	margin-bottom: 1.5rem;
	gap: 0;
}

.tab-btn {
	padding: 0.75rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text-muted);
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	transition: all var(--transition);
	white-space: nowrap;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active {
	color: var(--color-sage-dark);
	border-bottom-color: var(--color-sage);
	font-weight: 600;
}
.tab-btn:focus-visible {
	outline: 3px solid var(--color-sage);
	outline-offset: 2px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 14. FILTER BAR — .filter-bar, .search-input-wrap, .filter-select */

.filter-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 0.875rem 1rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.search-input-wrap {
	position: relative;
	flex: 1;
	min-width: 200px;
}

.search-input {
	width: 100%;
	height: 36px;
	padding: 0 0.875rem 0 2.25rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-family: inherit;
	color: var(--color-text);
	background: var(--color-bg);
	outline: none;
	transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--color-sage); }

.search-icon {
	position: absolute;
	left: 0.625rem;
	top: 50%;
	transform: translateY(-50%);
	width: 15px;
	height: 15px;
	stroke: var(--color-text-muted);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.filter-select {
	height: 36px;
	padding: 0 2rem 0 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-family: inherit;
	color: var(--color-text);
	background: var(--color-bg);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6B64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.625rem center;
	cursor: pointer;
	outline: none;
}
.filter-select:focus { border-color: var(--color-sage); }

.filter-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

/* Education filter row (chip-style) */
.filter-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.topic-btn {
	padding: 0.375rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-text-muted);
	background: var(--color-surface);
	border: 1.5px solid var(--color-border);
	border-radius: 20px;
	cursor: pointer;
	transition: all var(--transition);
}
.topic-btn:hover {
	border-color: var(--color-sage);
	color: var(--color-sage);
}
.topic-btn.active {
	background: var(--color-sage-muted);
	border-color: var(--color-sage);
	color: var(--color-sage-dark);
	font-weight: 600;
}

/* 15. CART SIDEBAR — .cart-sidebar, .cart-line-items, .cart-summary */

.cart-sidebar {
	width: 300px;
	flex-shrink: 0;
	background: var(--color-surface);
	border-left: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: var(--topbar-height);
	height: calc(100vh - var(--topbar-height));
	overflow-y: auto;
}

.cart-header {
	padding: 1.25rem 1.25rem 1rem;
	border-bottom: 1px solid var(--color-border);
	flex-shrink: 0;
}

.cart-title {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-text);
	letter-spacing: 0.02em;
}

.cart-count {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-top: 0.15rem;
}

.cart-items {
	flex: 1;
	overflow-y: auto;
	padding: 0.75rem 0;
}

.cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.5rem;
	text-align: center;
	color: var(--color-text-muted);
}
.cart-empty svg {
	width: 36px;
	height: 36px;
	stroke: var(--color-border);
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	margin-bottom: 0.75rem;
}
.cart-empty p { font-size: 0.875rem; }

.cart-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid var(--color-border);
}

.cart-item-thumb {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	background: var(--color-sage-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-family: var(--font-serif);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-sage);
}

.cart-item-info {
	flex: 1;
	min-width: 0;
}

.cart-item-name {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text);
}

.cart-item-sub {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	margin-top: 0.1rem;
}

.cart-item-price {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-text);
	white-space: nowrap;
}

.cart-remove {
	background: none;
	border: none;
	color: var(--color-border);
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 0;
	transition: color var(--transition);
}
.cart-remove:hover { color: #C0392B; }

.cart-footer {
	padding: 1.25rem;
	border-top: 1px solid var(--color-border);
	flex-shrink: 0;
	background: var(--color-surface);
}

.cart-line {
	display: flex;
	justify-content: space-between;
	font-size: 0.875rem;
	margin-bottom: 0.375rem;
}

.cart-line-label { color: var(--color-text-muted); }
.cart-line-val { font-weight: 600; color: var(--color-text); }

.cart-divider {
	height: 1px;
	background: var(--color-border);
	margin: 0.75rem 0;
}

.cart-total {
	display: flex;
	justify-content: space-between;
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.cart-total-label { color: var(--color-text); }
.cart-total-val   { color: var(--color-text); }

.cart-note {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	text-align: center;
	margin-top: 0.75rem;
	line-height: 1.5;
}

/* 16. FORMS — .form-group, .form-label, .form-input */

.form-group {
	margin-bottom: 1.25rem;
}

.form-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 0.375rem;
}

.form-input {
	width: 100%;
	height: 40px;
	padding: 0 0.875rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--color-text);
	background: var(--color-surface);
	outline: none;
	transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--color-sage); }
.form-input::placeholder { color: var(--color-text-muted); }

/* Additional content components from product/education pages */

/* Webinar cards */
.webinar-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.375rem;
	display: flex;
	flex-direction: column;
	transition: border-color var(--transition);
}
.webinar-card:hover { border-color: var(--color-sage); }

.webinar-date-chip {
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-sage-dark);
	background: var(--color-sage-muted);
	padding: 0.2rem 0.625rem;
	border-radius: 20px;
	margin-bottom: 0.75rem;
	align-self: flex-start;
}

.webinar-title {
	font-family: var(--font-serif);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.3;
	margin-bottom: 0.375rem;
}

.webinar-speaker {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-bottom: 0.75rem;
}

.webinar-desc {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--color-text-muted);
	flex: 1;
	margin-bottom: 1rem;
}

.webinar-tags {
	display: flex;
	gap: 0.375rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.webinar-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	border-top: 1px solid var(--color-border);
	padding-top: 0.875rem;
}

.webinar-time { font-size: 0.8125rem; color: var(--color-text-muted); }

.tag {
	font-size: 0.6875rem;
	font-weight: 500;
	background: var(--color-sage-muted);
	color: var(--color-sage-dark);
	padding: 0.15rem 0.5rem;
	border-radius: 20px;
}

/* Recording cards */
.recording-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color var(--transition), box-shadow var(--transition);
}
.recording-card:hover {
	border-color: var(--color-sage);
	box-shadow: 0 4px 16px rgba(78, 114, 104, 0.08);
}

.recording-thumb {
	background: linear-gradient(135deg, var(--color-sage-darker) 0%, var(--color-sage-dark) 100%);
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	cursor: pointer;
}

.play-btn {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform var(--transition);
}
.recording-thumb:hover .play-btn { transform: scale(1.1); }
.play-btn svg { width: 20px; height: 20px; fill: #fff; stroke: none; margin-left: 3px; }

.recording-body {
	padding: 1.125rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.recording-title {
	font-family: var(--font-serif);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.3;
	margin-bottom: 0.375rem;
}

.recording-speaker {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-bottom: 0.75rem;
	flex: 1;
}

.watch-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-sage);
	transition: color var(--transition);
}
.watch-btn:hover { color: var(--color-sage-dark); }

/* Resource items (dashboard sidebar) */
.resource-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem 1.375rem;
	border-bottom: 1px solid var(--color-border);
	gap: 0.75rem;
}
.resource-item:last-child { border-bottom: none; }
.resource-name { font-size: 0.875rem; font-weight: 500; color: var(--color-text); }
.resource-type { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.1rem; }

.download-btn {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--color-sage);
	padding: 0.3rem 0.625rem;
	border: 1px solid var(--color-sage-light);
	border-radius: var(--radius-sm);
	transition: all var(--transition);
	white-space: nowrap;
}
.download-btn:hover { background: var(--color-sage-muted); }
.download-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Overview/research/supfacts blocks (product detail) */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.overview-block {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
}
.overview-block h3 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.875rem; }
.overview-block p { font-size: 0.9375rem; line-height: 1.7; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.overview-block p:last-child { margin-bottom: 0; }

.indications-list { list-style: none; }
.indications-list li {
	display: flex;
	align-items: baseline;
	gap: 0.625rem;
	padding: 0.375rem 0;
	border-bottom: 1px solid var(--color-border);
	font-size: 0.9375rem;
	color: var(--color-text);
}
.indications-list li:last-child { border-bottom: none; }
.ind-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-sage); flex-shrink: 0; position: relative; top: -1px; }

.dosing-block {
	background: var(--color-sage-muted);
	border: 1px solid var(--color-sage-light);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	margin-top: 1.5rem;
}
.dosing-block h3 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; color: var(--color-sage-dark); margin-bottom: 0.875rem; }
.dosing-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--color-sage-light); font-size: 0.9375rem; }
.dosing-row:last-child { border-bottom: none; }
.dosing-row-label { color: var(--color-text-muted); }
.dosing-row-val { font-weight: 600; color: var(--color-text); }

.research-note {
	background: var(--color-sage-muted);
	border-left: 3px solid var(--color-sage);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	padding: 0.875rem 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--color-text-muted);
	margin-bottom: 1.5rem;
}

.research-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.375rem 1.5rem;
	margin-bottom: 1rem;
}
.research-card h3 { font-size: 0.9375rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.375rem; }
.research-meta { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 0.625rem; font-style: italic; }
.research-summary { font-size: 0.9375rem; line-height: 1.65; color: var(--color-text-muted); }
.research-tags { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-top: 0.75rem; }
.rtag { font-size: 0.6875rem; font-weight: 500; background: var(--color-bg); color: var(--color-text-muted); border: 1px solid var(--color-border); padding: 0.15rem 0.5rem; border-radius: 20px; }

.recommend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.recommend-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; }
.recommend-card h3 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.875rem; }
.recommend-card p { font-size: 0.9375rem; line-height: 1.7; color: var(--color-text-muted); }
.caution-card { border-color: #F5C6C3; background: #FEF9F9; }
.caution-card h3 { color: #8B2020; }

/* Education upcoming webinar hero block */
.upcoming-hero {
	background: var(--color-sage-dark);
	border-radius: var(--radius-lg);
	padding: 2.5rem 2.5rem 2rem;
	margin-bottom: 1.5rem;
	position: relative;
	overflow: hidden;
}
.upcoming-hero::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 300px;
	height: 300px;
	background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
	pointer-events: none;
}

.hero-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 0.5rem;
}

.hero-date { font-size: 0.875rem; font-weight: 600; color: var(--color-sage-light); margin-bottom: 0.625rem; }

.hero-title {
	font-family: var(--font-serif);
	font-size: 2rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.2;
	margin-bottom: 0.625rem;
	max-width: 600px;
}

.hero-speaker { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.25rem; }

.hero-tags { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.hero-tag {
	font-size: 0.75rem;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.85);
	padding: 0.2rem 0.625rem;
	border-radius: 20px;
}

.hero-actions { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; }
.hero-note { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.45); }

/* Library section heading */
.library-section { margin-bottom: 2.5rem; }
.library-section-title {
	font-family: var(--font-serif);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 1rem;
	padding-bottom: 0.625rem;
	border-bottom: 2px solid var(--color-border);
}

/* Upcoming grid */
.upcoming-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.recordings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* Supplement facts panel */
.supfacts-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; }
.supfacts-panel {
	background: var(--color-surface);
	border: 2px solid var(--color-text);
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
}
.sf-header { padding: 0.625rem 1rem; border-bottom: 8px solid var(--color-text); }
.sf-title { font-size: 1.5rem; font-weight: 900; color: var(--color-text); }
.sf-serving { font-size: 0.8125rem; color: var(--color-text); border-bottom: 1px solid var(--color-text); padding: 0.375rem 1rem; }
.sf-row { display: flex; justify-content: space-between; padding: 0.3rem 1rem; border-bottom: 1px solid var(--color-border); font-size: 0.8125rem; }
.sf-row-bold { font-weight: 700; }
.sf-row-sub { padding-left: 1.5rem; }
.sf-footnote { padding: 0.5rem 1rem; font-size: 0.75rem; color: var(--color-text-muted); line-height: 1.5; }

/* 17. RESPONSIVE — @media queries for ≤1024px, ≤768px, ≤375px */

@media (max-width: 1024px) {
	:root {
		--sidebar-width: 220px;
	}

	.content-grid {
		grid-template-columns: 1fr;
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.product-hero {
		grid-template-columns: 300px 1fr;
		gap: 2rem;
	}

	.cart-sidebar {
		width: 260px;
	}

	.overview-grid,
	.recommend-grid {
		grid-template-columns: 1fr;
	}

	.recordings-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.product-list-header,
	.product-row {
		grid-template-columns: 24px 1fr 80px 70px 70px 100px 80px;
	}
}

@media (max-width: 768px) {
	:root {
		--sidebar-width: 0px;
	}

	.sidebar {
		transform: translateX(-100%);
		transition: transform var(--transition);
	}

	.sidebar.open {
		transform: translateX(0);
		width: 260px;
	}

	.main-area {
		margin-left: 0;
	}

	.page-body {
		padding: 1.25rem;
	}

	.page-body--split {
		flex-direction: column;
	}

	.order-area {
		padding: 1.25rem;
	}

	.cart-sidebar {
		width: 100%;
		height: auto;
		position: static;
		border-left: none;
		border-top: 1px solid var(--color-border);
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}

	.filter-bar {
		flex-wrap: wrap;
	}

	.search-input-wrap {
		min-width: 100%;
	}

	.topbar {
		padding: 0 1rem;
	}

	.product-hero {
		grid-template-columns: 1fr;
	}

	.product-meta-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.supfacts-wrap {
		grid-template-columns: 1fr;
	}

	.product-list-header { display: none; }

	.product-row {
		grid-template-columns: 24px 1fr auto;
		gap: 0.75rem;
	}

	.product-row > :nth-child(3),
	.product-row > :nth-child(4),
	.product-row > :nth-child(5) {
		display: none;
	}

	.upcoming-grid,
	.recordings-grid {
		grid-template-columns: 1fr;
	}

	.section-tabs { width: 100%; }
	.section-tab { flex: 1; text-align: center; }
}

@media (max-width: 375px) {
	.topbar-cart .js-cart-label { display: none; }

	.btn-sm { padding: 0.3rem 0.625rem; font-size: 0.75rem; }

	.stat-value { font-size: 1.625rem; }

	.product-meta-grid { grid-template-columns: 1fr; }

	.add-to-cart-row { flex-direction: column; align-items: stretch; }
	.btn-add-cart { width: 100%; }

	.page-title { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ---- PHASE 3: CLINICAL LIBRARY & EDUCATION ---- */

/* Recording card details */
.recording-date {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	font-weight: 400;
	margin-bottom: 0.25rem;
}

.recording-duration {
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.125rem 0.5rem;
	border-radius: var(--radius-sm);
	line-height: 1.3;
}

.recording-topic-badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	background: rgba(255, 255, 255, 0.92);
	color: var(--color-text);
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.125rem 0.625rem;
	border-radius: var(--radius-sm);
	line-height: 1.3;
}

.recording-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 0.5rem;
}

/* Library search row */
.library-search-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.library-search-row .search-input-wrap {
	flex: 0 0 280px;
}

.library-search-row .filter-row {
	margin-bottom: 0;
}

/* Video modal overlay */
.video-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
}

.video-modal-content {
	position: relative;
	width: 90%;
	max-width: 960px;
	aspect-ratio: 16 / 9;
}

.video-modal-content iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: var(--radius-md);
}

.video-modal-close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	line-height: 1;
}

.video-modal-close:hover {
	opacity: 0.7;
}

/* Empty states */
.empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--color-text-muted);
}

.empty-state h3 {
	font-family: var(--font-serif);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 0.5rem;
}

.empty-state p {
	font-size: 0.9375rem;
	max-width: 400px;
	margin: 0 auto;
}

/* Phase 3 responsive adjustments */
@media (max-width: 767px) {
	.library-search-row {
		flex-direction: column;
		align-items: stretch;
	}

	.library-search-row .search-input-wrap {
		flex: 1 1 100%;
	}

	.video-modal-content {
		width: 95%;
	}

	.video-modal-close {
		top: -2rem;
	}
}

/* 18. LOGIN PAGE — branded login for /account (logged-out state) */

.login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-bg);
	padding: 2rem;
}

.login-card {
	width: 100%;
	max-width: 420px;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: 2.5rem;
}

.login-brand {
	text-align: center;
	margin-bottom: 2rem;
}

.login-brand-name {
	font-family: var(--font-serif);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--color-sage-dark);
}

.login-brand-sub {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	color: var(--color-text-muted);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-top: 0.25rem;
}

.login-card .form-group {
	margin-bottom: 1.25rem;
}

.login-card label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-text);
	margin-bottom: 0.375rem;
}

.login-card .input-text {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 0.9375rem;
	font-family: var(--font-sans);
	transition: border-color var(--transition);
}

.login-card .input-text:focus {
	outline: none;
	border-color: var(--color-sage);
	box-shadow: 0 0 0 3px var(--color-sage-muted);
}

.btn-full {
	width: 100%;
	text-align: center;
	margin-top: 0.5rem;
}

.login-lost-password {
	text-align: center;
	margin-top: 1.25rem;
	font-size: 0.8125rem;
}

.login-lost-password a {
	color: var(--color-sage);
}

.login-lost-password a:hover {
	color: var(--color-sage-dark);
	text-decoration: underline;
}

@media (max-width: 480px) {
	.login-card {
		padding: 1.5rem;
	}
	.login-brand-name {
		font-size: 1.5rem;
	}
}

/* 19. NOTICES -- WooCommerce notice styling (portal-wide) */

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	list-style: none;
	padding: 0.75rem 1rem;
	margin: 0 0 1.25rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Error notices -- terracotta (D-02) */
.woocommerce-error {
	background: rgba(192, 57, 43, 0.08);
	border: 1px solid rgba(192, 57, 43, 0.25);
	color: var(--color-terracotta);
}

/* Strip list markers from error <ul><li> (D-04) */
.woocommerce-error li {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Success notices -- sage (D-02) */
.woocommerce-message {
	background: var(--color-sage-muted);
	border: 1px solid var(--color-sage-light);
	color: var(--color-sage-dark);
}

/* Info notices -- neutral (D-02) */
.woocommerce-info {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	color: var(--color-text-muted);
}

/* Form notice text (lost-password instructions) */
.form-notice {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	line-height: 1.5;
	margin: 0 0 1.25rem;
}

/* ============================================================
   SHOP ARCHIVE
   ============================================================ */

.product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.product-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--color-surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.product-card__image {
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--color-bg);
}

.product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card__info {
	padding: 1rem;
}

.product-card__title {
	font-family: var(--font-serif);
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: var(--color-text);
}

.product-card__pricing {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.price-wholesale {
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--color-sage);
}

.product-card__pricing .price-msrp {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	text-decoration: none;
}

.product-card__pricing .price-msrp s {
	text-decoration: line-through;
}

.badge--savings {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--color-sage-muted);
	color: var(--color-sage-dark);
}

.shop-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.shop-filter-tag {
	display: inline-block;
	padding: 0.375rem 0.875rem;
	border: 1px solid var(--color-border);
	border-radius: 9999px;
	font-size: 0.875rem;
	font-family: var(--font-sans);
	color: var(--color-text);
	text-decoration: none;
	transition: background-color var(--transition), border-color var(--transition);
}

.shop-filter-tag:hover {
	border-color: var(--color-sage);
	color: var(--color-sage);
}

.shop-filter-tag.active {
	background-color: var(--color-sage);
	border-color: var(--color-sage);
	color: #fff;
}

.shop-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--color-text-muted);
	font-size: 1rem;
}

/* Shop archive pagination */
.product-grid + .navigation .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
}

.product-grid + .navigation .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	color: var(--color-text);
	text-decoration: none;
	transition: background-color var(--transition);
}

.product-grid + .navigation .page-numbers:hover {
	background-color: var(--color-bg);
}

.product-grid + .navigation .page-numbers.current {
	background-color: var(--color-sage);
	border-color: var(--color-sage);
	color: #fff;
}

/* Shop archive responsive */
@media (max-width: 1024px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.product-grid {
		grid-template-columns: 1fr;
	}
}

/* 20. WC CART & CHECKOUT — portal styling for shortcode output */

/* ── Cart table ── */

.page-body .shop_table {
	width: 100%;
	border-collapse: collapse;
	background: var(--color-surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.page-body .shop_table th {
	background: var(--color-sage-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
	padding: 0.75rem 1rem;
	text-align: left;
}

.page-body .shop_table td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--color-border);
	vertical-align: middle;
}

.page-body .shop_table img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--radius-sm);
}

.page-body .shop_table .product-remove a {
	color: var(--color-terracotta);
	text-decoration: none;
	font-size: 1.25rem;
}

.page-body .shop_table .product-remove a:hover {
	opacity: 0.8;
}

.page-body .shop_table .quantity .qty {
	width: 48px;
	text-align: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.375rem;
	font-size: 0.875rem;
}

/* ── Cart actions row ── */

.page-body .shop_table .actions {
	padding: 1rem;
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.page-body .shop_table .actions .coupon {
	display: flex;
	gap: 0.5rem;
	flex: 1;
}

.page-body .shop_table .actions .coupon .input-text {
	flex: 1;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
}

.page-body .shop_table .actions .coupon .input-text:focus {
	outline: 2px solid var(--color-sage);
	outline-offset: 1px;
}

.page-body .shop_table .actions .coupon .button {
	background: transparent;
	border: 1px solid var(--color-sage);
	color: var(--color-sage);
	padding: 0.5rem 1rem;
	border-radius: var(--radius-sm);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--transition);
}

.page-body .shop_table .actions .coupon .button:hover {
	background: var(--color-sage-muted);
}

.page-body .shop_table .actions > .button {
	background: var(--color-cta);
	color: #fff;
	border: none;
	padding: 0.5rem 1.25rem;
	border-radius: var(--radius-sm);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--transition);
}

.page-body .shop_table .actions > .button:hover {
	background: var(--color-cta-hover);
}

.page-body .shop_table .actions > .button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Cart totals ── */

.page-body .cart-collaterals {
	display: flex;
	justify-content: flex-end;
	margin-top: 1.5rem;
}

.page-body .cart_totals {
	width: 100%;
	max-width: 400px;
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

.page-body .cart_totals h2 {
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: var(--font-serif);
	margin-bottom: 1rem;
}

.page-body .cart_totals table {
	width: 100%;
}

.page-body .cart_totals table th {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--color-text-muted);
	text-align: left;
	padding: 0.5rem 0;
	text-transform: none;
	background: transparent;
}

.page-body .cart_totals table td {
	font-size: 0.875rem;
	font-weight: 600;
	text-align: right;
	padding: 0.5rem 0;
	border-bottom: none;
}

.page-body .cart_totals .order-total th,
.page-body .cart_totals .order-total td {
	font-size: 0.9375rem;
	font-weight: 600;
	border-top: 1px solid var(--color-border);
	padding-top: 0.75rem;
}

.page-body .wc-proceed-to-checkout .checkout-button {
	display: block;
	width: 100%;
	background: var(--color-cta);
	color: #fff;
	text-align: center;
	padding: 1rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background-color var(--transition);
	margin-top: 1rem;
}

.page-body .wc-proceed-to-checkout .checkout-button:hover {
	background: var(--color-cta-hover);
}

/* ── Empty cart ── */

.page-body .cart-empty.woocommerce-info {
	text-align: center;
	padding: 3rem;
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	color: var(--color-text-muted);
	font-size: 0.9375rem;
}

.page-body .return-to-shop .button {
	display: inline-block;
	width: auto;
	background: var(--color-cta);
	color: #fff;
	text-align: center;
	padding: 0.75rem 2rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background-color var(--transition);
	margin-top: 1rem;
}

.page-body .return-to-shop .button:hover {
	background: var(--color-cta-hover);
}

/* ── Checkout form ── */

.page-body .woocommerce-checkout #customer_details {
	display: flex;
	gap: 2rem;
}

.page-body .woocommerce-checkout #customer_details .col-1,
.page-body .woocommerce-checkout #customer_details .col-2 {
	flex: 1;
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

.page-body .woocommerce-checkout h3 {
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: var(--font-serif);
	margin-bottom: 1rem;
}

.page-body .woocommerce-checkout .form-row {
	margin-bottom: 1rem;
}

.page-body .woocommerce-checkout .form-row label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 0.25rem;
}

.page-body .woocommerce-checkout .form-row .input-text,
.page-body .woocommerce-checkout .form-row select {
	width: 100%;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.75rem;
	font-size: 0.875rem;
	color: var(--color-text);
	transition: border-color var(--transition);
}

.page-body .woocommerce-checkout .form-row .input-text:focus,
.page-body .woocommerce-checkout .form-row select:focus {
	outline: none;
	border-color: var(--color-sage);
}

.page-body .woocommerce-checkout .form-row .select2-container .select2-selection--single {
	height: auto;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.5rem 0.75rem;
}

/* ── Order review ── */

.page-body #order_review_heading {
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: var(--font-serif);
	margin: 1.5rem 0 1rem;
}

.page-body .woocommerce-checkout-review-order {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

/* ── Payment section ── */

.page-body #payment {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

.page-body #payment .payment_methods {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}

.page-body #payment .payment_methods li {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-border);
}

.page-body #payment .payment_methods li label {
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.page-body #payment .payment_box {
	padding: 1rem 0;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

.page-body #payment .wc-stripe-elements-field,
.page-body #payment .wc-stripe-iban-element-field {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.75rem;
	min-height: 40px;
}

.page-body #payment .place-order .button {
	display: block;
	width: 100%;
	background: var(--color-cta);
	color: #fff;
	padding: 1rem;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color var(--transition);
}

.page-body #payment .place-order .button:hover {
	background: var(--color-cta-hover);
}

/* ── WC notices ── */

.page-body .woocommerce-error {
	background: rgba(192, 57, 43, 0.08);
	border-left: 3px solid var(--color-terracotta);
	color: var(--color-terracotta);
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
	list-style: none;
	font-size: 0.875rem;
}

.page-body .woocommerce-message {
	background: rgba(78, 114, 104, 0.08);
	border-left: 3px solid var(--color-sage);
	color: var(--color-sage-dark);
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
	font-size: 0.875rem;
}

.page-body .woocommerce-info {
	background: var(--color-sage-muted);
	border-left: 3px solid var(--color-sage);
	color: var(--color-text);
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
	font-size: 0.875rem;
}

/* ── Section 20 responsive ── */

@media (max-width: 1024px) {
	.page-body .woocommerce-checkout #customer_details {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	.page-body .shop_table_responsive thead {
		display: none;
	}

	.page-body .shop_table_responsive td {
		display: block;
		text-align: right;
	}

	.page-body .shop_table_responsive td::before {
		content: attr(data-title);
		float: left;
		font-weight: 600;
		font-size: 0.8125rem;
	}

	.page-body .cart_totals {
		max-width: 100%;
	}

	.page-body .shop_table .actions {
		flex-direction: column;
	}

	.page-body .shop_table .actions .coupon {
		width: 100%;
	}
}

/* 21. SIGNUP PAGE -- branded signup for /join/ (invitation onboarding) */

.signup-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-bg);
	padding: 2rem;
}

.signup-card {
	width: 100%;
	max-width: 560px;  /* wider than login-card's 420px per D-14 */
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: 2.5rem;
}

.signup-welcome {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--color-sage-muted);
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--color-text);
}

.signup-welcome p {
	margin: 0;
}

.signup-welcome p + p {
	margin-top: 0.5rem;
}

.signup-error {
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	background: #FDF2F0;
	border-left: 4px solid var(--color-terracotta);
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	color: var(--color-terracotta);
}

.signup-error a {
	color: var(--color-sage);
	font-weight: 500;
}

.signup-error a:hover {
	text-decoration: underline;
}

/* Reuse login-card form styles for signup-card */
.signup-card .form-group {
	margin-bottom: 1.25rem;
}

.signup-card label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-text);
	margin-bottom: 0.375rem;
}

.signup-card .input-text {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 0.9375rem;
	font-family: var(--font-sans);
	transition: border-color var(--transition);
}

.signup-card .input-text:focus {
	outline: none;
	border-color: var(--color-sage);
	box-shadow: 0 0 0 3px var(--color-sage-muted);
}

/* Welcome notice on portal dashboard */
.welcome-notice {
	position: relative;
	margin-bottom: 1.5rem;
	padding: 1rem 2.5rem 1rem 1.25rem;
	background: var(--color-sage-muted);
	border-left: 4px solid var(--color-sage);
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--color-text);
}

.welcome-notice strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.9375rem;
}

.welcome-notice .notice-dismiss {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--color-text-muted);
	cursor: pointer;
	padding: 0.25rem;
}

.welcome-notice .notice-dismiss:hover {
	color: var(--color-text);
}

@media (max-width: 480px) {
	.signup-card {
		padding: 1.5rem;
	}
}

/* ================================================
   22. WC ACCOUNT PAGES — billing, shipping, payment methods, order-received
   ================================================ */

/* -- Address listing page -- */

.page-body .woocommerce-Addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.page-body .woocommerce-Address {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

.page-body .woocommerce-Address .woocommerce-Address-title h3 {
	font-family: var(--font-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 0.75rem;
}

.page-body .woocommerce-Address .woocommerce-Address-title .edit {
	color: var(--color-sage);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.page-body .woocommerce-Address .woocommerce-Address-title .edit:hover {
	text-decoration: underline;
}

.page-body .woocommerce-Address address {
	font-style: normal;
	font-size: 0.875rem;
	color: var(--color-text);
	line-height: 1.5;
}

/* -- Address edit form -- */

.page-body .woocommerce-address-fields {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

.page-body .woocommerce-address-fields .form-row {
	margin-bottom: 1rem;
}

.page-body .woocommerce-address-fields .form-row label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 0.25rem;
}

.page-body .woocommerce-address-fields .form-row .input-text,
.page-body .woocommerce-address-fields .form-row select {
	width: 100%;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.75rem;
	font-size: 0.875rem;
	color: var(--color-text);
	transition: border-color var(--transition);
}

.page-body .woocommerce-address-fields .form-row .input-text:focus,
.page-body .woocommerce-address-fields .form-row select:focus {
	outline: none;
	border-color: var(--color-sage);
}

.page-body .woocommerce-address-fields .form-row-first,
.page-body .woocommerce-address-fields .form-row-last {
	display: inline-block;
	width: calc(50% - 0.5rem);
	vertical-align: top;
}

.page-body .woocommerce-address-fields .form-row-last {
	margin-left: 1rem;
}

.page-body .woocommerce-address-fields button[type="submit"] {
	background: var(--color-cta);
	color: #fff;
	border: none;
	border-radius: var(--radius-sm);
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color var(--transition);
}

.page-body .woocommerce-address-fields button[type="submit"]:hover {
	background: var(--color-cta-hover);
}

/* -- Select2 dropdowns -- */

.page-body .woocommerce-address-fields .select2-container .select2-selection--single {
	height: auto;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.5rem 0.75rem;
}

.page-body .woocommerce-address-fields .select2-container .select2-selection__rendered {
	color: var(--color-text);
	font-size: 0.875rem;
	line-height: 1.5;
	padding: 0;
}

/* Select2 dropdown panel (appended to body root, not inside .page-body) */
.select2-dropdown {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}

.select2-results__option {
	font-size: 0.875rem;
	padding: 0.5rem 0.75rem;
}

.select2-results__option--highlighted {
	background: var(--color-sage-muted);
	color: var(--color-text);
}

/* -- Payment methods table -- */

.page-body .woocommerce-PaymentMethods {
	width: 100%;
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	border-collapse: collapse;
	overflow: hidden;
}

.page-body .woocommerce-PaymentMethods th {
	background: var(--color-sage-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
	padding: 0.75rem 1rem;
	text-align: left;
}

.page-body .woocommerce-PaymentMethods td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--color-border);
	font-size: 0.875rem;
}

.page-body .woocommerce-PaymentMethods .delete {
	color: var(--color-terracotta);
	font-size: 0.8125rem;
	text-decoration: none;
}

.page-body .woocommerce-PaymentMethods .delete:hover {
	opacity: 0.8;
}

.page-body .woocommerce-MyAccount-content .button {
	background: var(--color-cta);
	color: #fff;
	border: none;
	border-radius: var(--radius-sm);
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color var(--transition);
}

.page-body .woocommerce-MyAccount-content .button:hover {
	background: var(--color-cta-hover);
}

.page-body .wc-stripe-elements-field {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.75rem;
	min-height: 40px;
}

/* -- Order-received / thank-you page -- */

.page-body .woocommerce-order {
	max-width: 700px;
}

.page-body .woocommerce-thankyou-order-received {
	background: rgba(78, 114, 104, 0.08);
	border-left: 3px solid var(--color-sage);
	color: var(--color-sage-dark);
	padding: 1rem 1.25rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
}

.page-body .woocommerce-thankyou-order-details {
	list-style: none;
	padding: 1.5rem;
	margin: 0 0 1.5rem;
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.page-body .woocommerce-thankyou-order-details li strong {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text-muted);
}

.page-body .woocommerce-thankyou-order-details li {
	font-size: 0.875rem;
	color: var(--color-text);
}

/* Order items table — inherits .shop_table styling from section 20 */

.page-body .woocommerce-customer-details {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

.page-body .woocommerce-customer-details h2 {
	font-family: var(--font-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 1rem;
}

.page-body .woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.page-body .woocommerce-customer-details address {
	font-style: normal;
	font-size: 0.875rem;
	color: var(--color-text);
	line-height: 1.5;
}

/* -- Section 22 responsive -- */

@media (max-width: 768px) {
	.page-body .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}

	.page-body .woocommerce-address-fields .form-row-first,
	.page-body .woocommerce-address-fields .form-row-last {
		display: block;
		width: 100%;
		margin-left: 0;
	}

	.page-body .woocommerce-address-fields button[type="submit"] {
		width: 100%;
	}

	.page-body .woocommerce-thankyou-order-details {
		grid-template-columns: 1fr;
	}

	.page-body .woocommerce-customer-details .woocommerce-columns--addresses {
		grid-template-columns: 1fr;
	}
}
