/**
 * ShopBar feature modules.
 *
 * Scoped styles for every built-in module. Uses the theme's existing CSS
 * custom properties (--shopbar-*) where they exist and sensible fallbacks
 * otherwise, so the modules inherit the Customizer palette.
 *
 * @package shopbar
 */

/* -------------------------------------------------------------
 * Shared
 * ----------------------------------------------------------- */

.shopbar-module-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100000;
	transform: translate(-50%, 20px);
	max-width: min(92vw, 420px);
	padding: 12px 20px;
	border-radius: 10px;
	background: #1f2933;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.shopbar-module-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.shopbar-module-toast.is-success {
	background: #1b7f4d;
}

.shopbar-module-toast.is-error {
	background: #b3261e;
}

body.shopbar-modal-open {
	overflow: hidden;
}

.shopbar-spinner {
	display: block;
	width: 28px;
	height: 28px;
	margin: 0 auto;
	border: 3px solid rgba(0, 0, 0, 0.12);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: shopbar-spin 0.7s linear infinite;
}

@keyframes shopbar-spin {
	to {
		transform: rotate(360deg);
	}
}

/* -------------------------------------------------------------
 * Wishlist
 * ----------------------------------------------------------- */

.nav-action-wishlist {
	position: relative;
}

.wishlist-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--shopbar-accent, #d93025);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.product-card-actions .shopbar-wishlist-btn,
.product-card-actions .shopbar-compare-btn,
.product-card-actions .shopbar-quickview-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-left: 4px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	background: #fff;
	color: inherit;
	cursor: pointer;
	transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.product-card-actions .shopbar-wishlist-btn:hover,
.product-card-actions .shopbar-compare-btn:hover,
.product-card-actions .shopbar-quickview-btn:hover {
	color: var(--shopbar-accent, #d93025);
	border-color: currentColor;
	transform: translateY(-2px);
}

.product-card-actions .shopbar-wishlist-btn.is-active,
.product-card-actions .shopbar-compare-btn.is-active {
	color: var(--shopbar-accent, #d93025);
}

.product-card-actions button.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.shopbar-wishlist-single {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 10px 18px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.shopbar-wishlist-single.is-active {
	border-color: var(--shopbar-accent, #d93025);
	color: var(--shopbar-accent, #d93025);
}

.shopbar-wishlist-single.is-active svg {
	fill: currentColor;
}

/* -------------------------------------------------------------
 * Compare
 * ----------------------------------------------------------- */

.shopbar-compare-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90000;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.1);
	transform: translateY(100%);
	transition: transform 0.25s ease;
}

.shopbar-compare-bar.is-visible {
	transform: translateY(0);
}

.shopbar-compare-bar-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 1380px;
	margin: 0 auto;
	padding: 14px 20px;
}

.shopbar-compare-bar-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	white-space: nowrap;
}

.shopbar-compare-bar-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	font-size: 12px;
}

.shopbar-compare-bar-items {
	display: flex;
	flex: 1 1 auto;
	gap: 8px;
	overflow-x: auto;
}

.shopbar-compare-chip {
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fff;
}

.shopbar-compare-chip img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 7px;
}

.shopbar-compare-chip button {
	position: absolute;
	top: -7px;
	right: -7px;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1f2933;
	color: #fff;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
}

.shopbar-compare-bar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.shopbar-compare-bar-clear {
	padding: 8px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.shopbar-compare-bar-cta.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.shopbar-compare-table-wrap {
	margin-top: 24px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.shopbar-compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.shopbar-compare-table th,
.shopbar-compare-table td {
	padding: 14px 16px;
	border: 1px solid rgba(0, 0, 0, 0.07);
	text-align: left;
	vertical-align: top;
}

.shopbar-compare-table thead th {
	vertical-align: top;
}

.shopbar-compare-label-col {
	width: 180px;
	background: rgba(0, 0, 0, 0.02);
	font-weight: 600;
}

.shopbar-compare-product-col {
	position: relative;
	min-width: 200px;
}

.shopbar-compare-thumb {
	display: block;
	margin-bottom: 10px;
}

.shopbar-compare-thumb img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.shopbar-compare-name {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
}

.shopbar-compare-table .module-remove,
.shopbar-compare-product-col .module-remove {
	position: absolute;
	top: 8px;
	right: 8px;
}

.shopbar-compare-instock {
	color: #1b7f4d;
	font-weight: 600;
}

.shopbar-compare-outstock,
.shopbar-compare-unavailable {
	color: #b3261e;
}

/* -------------------------------------------------------------
 * Quick view
 * ----------------------------------------------------------- */

.shopbar-quickview {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.shopbar-quickview[hidden] {
	display: none;
}

.shopbar-quickview-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 22, 0.62);
}

.shopbar-quickview-dialog {
	position: relative;
	width: min(960px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	padding: 30px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.shopbar-quickview-close,
.shopbar-size-chart-close,
.shopbar-newsletter-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	background: #fff;
	color: inherit;
	cursor: pointer;
}

.shopbar-quickview-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
}

.shopbar-quickview-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
}

.shopbar-quickview-gallery-main img {
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.shopbar-quickview-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.shopbar-quickview-thumb {
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	cursor: pointer;
}

.shopbar-quickview-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
}

.shopbar-quickview-thumb.is-active {
	border-color: currentColor;
}

.shopbar-quickview-category {
	margin-bottom: 6px;
	color: #6b7280;
	font-size: 13px;
}

.shopbar-quickview-title {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.25;
}

.shopbar-quickview-rating {
	margin-bottom: 8px;
}

.shopbar-quickview-price {
	margin-bottom: 14px;
	font-size: 20px;
	font-weight: 600;
}

.shopbar-quickview-desc {
	margin-bottom: 18px;
	color: #4b5563;
	font-size: 14px;
}

.shopbar-quickview-variations .variations {
	margin-bottom: 14px;
}

.shopbar-quickview-stock.out-of-stock {
	color: #b3261e;
	font-weight: 600;
}

.shopbar-quickview-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 18px;
}

.shopbar-quickview-actions .shopbar-wishlist-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.shopbar-quickview-actions .shopbar-wishlist-btn.is-active {
	color: var(--shopbar-accent, #d93025);
}

.shopbar-quickview-actions .shopbar-wishlist-btn.is-active svg {
	fill: currentColor;
}

/* -------------------------------------------------------------
 * Second image / swatches / countdown
 * ----------------------------------------------------------- */

.product-card-img {
	position: relative;
	overflow: hidden;
}

.product-card-img-link {
	display: block;
	position: relative;
}

.shopbar-second-image {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.shopbar-second-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card:hover .shopbar-second-image {
	opacity: 1;
}

.shopbar-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0;
}

.shopbar-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
}

.shopbar-swatch-dot {
	display: block;
	width: 100%;
	height: 100%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 50%;
	background: var(--swatch, #ccc);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.shopbar-swatch:hover .shopbar-swatch-dot {
	transform: scale(1.14);
	box-shadow: 0 0 0 2px currentColor;
}

.shopbar-swatches--single {
	gap: 10px;
	margin: 12px 0;
}

.shopbar-swatches--single .shopbar-swatch {
	width: 28px;
	height: 28px;
}

.shopbar-countdown {
	margin-top: 10px;
	font-size: 13px;
}

.shopbar-countdown-label {
	display: block;
	margin-bottom: 4px;
	color: var(--shopbar-accent, #d93025);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.shopbar-countdown-units {
	display: flex;
	align-items: center;
	gap: 4px;
}

.shopbar-countdown-unit {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
}

.shopbar-countdown-unit + .shopbar-countdown-unit::before {
	content: ":";
	margin-right: 3px;
	opacity: 0.5;
}

.shopbar-countdown-value {
	min-width: 2ch;
	padding: 2px 5px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.05);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.shopbar-countdown--single .shopbar-countdown-value {
	padding: 5px 10px;
	font-size: 16px;
}

.shopbar-countdown.is-expired {
	opacity: 0.5;
}

/* -------------------------------------------------------------
 * Trust signals / size chart / extra tabs
 * ----------------------------------------------------------- */

.shopbar-trust-signals {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin: 20px 0;
}

.shopbar-trust-signal {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.shopbar-trust-signal-icon {
	flex: 0 0 auto;
	color: var(--shopbar-accent, #d93025);
}

.shopbar-trust-signal-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.shopbar-trust-signal-text {
	display: block;
	color: #6b7280;
	font-size: 13px;
}

.shopbar-size-chart-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0;
	padding: 8px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 13px;
	cursor: pointer;
}

.shopbar-size-chart-btn:hover {
	border-color: currentColor;
}

.shopbar-size-chart-modal {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.shopbar-size-chart-modal[hidden] {
	display: none;
}

.shopbar-size-chart-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 22, 0.62);
}

.shopbar-size-chart-dialog {
	position: relative;
	width: min(760px, 100%);
	max-height: 86vh;
	overflow-y: auto;
	padding: 30px;
	border-radius: 16px;
	background: #fff;
}

.shopbar-size-chart-title {
	margin: 0 0 18px;
	font-size: 22px;
}

.shopbar-size-chart-text table {
	width: 100%;
	border-collapse: collapse;
}

.shopbar-size-chart-text th,
.shopbar-size-chart-text td {
	padding: 9px 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	text-align: left;
}

.shopbar-product-extra-tabs {
	margin: 20px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shopbar-extra-tab {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.shopbar-extra-tab-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 2px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.shopbar-extra-tab-summary::-webkit-details-marker {
	display: none;
}

.shopbar-extra-tab-marker {
	position: relative;
	width: 12px;
	height: 12px;
}

.shopbar-extra-tab-marker::before,
.shopbar-extra-tab-marker::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transform: translateY(-50%);
}

.shopbar-extra-tab-marker::after {
	transform: translateY(-50%) rotate(90deg);
	transition: transform 0.2s ease;
}

.shopbar-extra-tab[open] .shopbar-extra-tab-marker::after {
	transform: translateY(-50%) rotate(0deg);
}

.shopbar-extra-tab-content {
	padding: 0 2px 16px;
	color: #4b5563;
	font-size: 14px;
}

/* -------------------------------------------------------------
 * Live search
 * ----------------------------------------------------------- */

.shopbar-live-search {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 5000;
	max-height: 70vh;
	overflow-y: auto;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.shopbar-live-search[hidden] {
	display: none;
}

.sb-header-search {
	position: relative;
}

.shopbar-live-search-list {
	margin: 0;
	padding: 6px;
	list-style: none;
}

.shopbar-live-search-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 9px;
}

.shopbar-live-search-item:hover {
	background: rgba(0, 0, 0, 0.03);
}

.shopbar-live-search-item > a {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.shopbar-live-search-thumb img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 7px;
}

.shopbar-live-search-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.shopbar-live-search-name {
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.shopbar-live-search-price {
	color: #6b7280;
	font-size: 13px;
}

.shopbar-live-search-empty {
	margin: 0;
	padding: 20px;
	color: #6b7280;
	text-align: center;
}

.shopbar-live-search-all {
	display: block;
	padding: 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.search-field.is-searching {
	background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 50%, transparent 50%);
	background-size: 200% 100%;
	animation: shopbar-shimmer 1s linear infinite;
}

@keyframes shopbar-shimmer {
	to {
		background-position: -200% 0;
	}
}

/* -------------------------------------------------------------
 * Product filters
 * ----------------------------------------------------------- */

.shopbar-shop-layout--filters {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.shopbar-filters {
	position: sticky;
	top: 100px;
	padding: 18px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	background: #fff;
}

.shopbar-filters-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.shopbar-filters-title {
	margin: 0;
	font-size: 16px;
}

.shopbar-filters-reset {
	font-size: 13px;
	text-decoration: underline;
}

.shopbar-filter-group {
	padding: 12px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.shopbar-filter-group-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.shopbar-filter-marker {
	position: relative;
	width: 10px;
	height: 10px;
}

.shopbar-filter-marker::before,
.shopbar-filter-marker::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transform: translateY(-50%);
}

.shopbar-filter-marker::after {
	transform: translateY(-50%) rotate(90deg);
	transition: transform 0.2s ease;
}

.shopbar-filter-group.is-collapsed .shopbar-filter-marker::after {
	transform: translateY(-50%) rotate(0deg);
}

.shopbar-filter-group.is-collapsed .shopbar-filter-options,
.shopbar-filter-group.is-collapsed .shopbar-filter-price {
	display: none;
}

.shopbar-filter-options {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	max-height: 220px;
	overflow-y: auto;
}

.shopbar-filter-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	font-size: 13px;
	cursor: pointer;
}

.shopbar-filter-option-label {
	flex: 1 1 auto;
}

.shopbar-filter-option-count {
	color: #9ca3af;
	font-size: 12px;
}

.shopbar-filter-price {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
}

.shopbar-filter-price input {
	width: 100%;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	font-size: 13px;
}

.shopbar-filters-apply {
	width: 100%;
	margin-top: 16px;
}

.shopbar-filters-toggle {
	position: relative;
	display: none;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font-size: 13px;
	cursor: pointer;
}

.shopbar-filters-toggle-dot {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--shopbar-accent, #d93025);
}

.shop-main.is-loading {
	position: relative;
	opacity: 0.5;
	pointer-events: none;
}

/* -------------------------------------------------------------
 * Module pages
 * ----------------------------------------------------------- */

.shopbar-module-page {
	padding: 40px 0 70px;
}

.shopbar-module-page-header {
	margin-bottom: 28px;
}

.shopbar-module-page-title {
	margin: 0 0 6px;
	font-size: 30px;
}

.shopbar-module-page-subtitle {
	margin: 0 0 12px;
	color: #6b7280;
}

.shopbar-module-page-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	text-decoration: none;
}

.shopbar-module-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.shopbar-module-card .shopbar-module-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: inherit;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
	cursor: pointer;
}

.shopbar-module-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 60px 20px;
	border: 1px dashed rgba(0, 0, 0, 0.14);
	border-radius: 14px;
	text-align: center;
}

.shopbar-module-empty h2 {
	margin: 0;
	font-size: 22px;
}

.shopbar-module-empty p {
	margin: 0 0 12px;
	color: #6b7280;
}

.shopbar-module-empty-icon {
	color: #9ca3af;
}

/* -------------------------------------------------------------
 * Cookie banner
 * ----------------------------------------------------------- */

.shopbar-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 95000;
	padding: 16px 20px;
	background: #1f2933;
	color: #f9fafb;
	box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.2);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.shopbar-cookie-banner[hidden] {
	display: none;
}

.shopbar-cookie-banner.is-visible {
	transform: translateY(0);
}

.shopbar-cookie-banner.is-leaving {
	opacity: 0;
}

.shopbar-cookie-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1380px;
	margin: 0 auto;
}

.shopbar-cookie-text {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.5;
}

.shopbar-cookie-policy {
	color: inherit;
	font-size: 13px;
	text-decoration: underline;
}

.shopbar-cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.shopbar-cookie-btn {
	padding: 10px 20px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 14px;
	cursor: pointer;
}

.shopbar-cookie-accept,
.shopbar-cookie-save {
	border-color: transparent;
	background: #fff;
	color: #1f2933;
	font-weight: 600;
}

.shopbar-cookie-panel {
	max-width: 1380px;
	margin: 18px auto 0;
	padding: 20px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
}

.shopbar-cookie-panel-title {
	margin: 0 0 14px;
	font-size: 17px;
}

.shopbar-cookie-categories {
	margin: 0;
	padding: 0;
	list-style: none;
}

.shopbar-cookie-category {
	padding: 10px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.shopbar-cookie-category-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	cursor: pointer;
}

.shopbar-cookie-category-required {
	margin-left: auto;
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	font-weight: 400;
}

.shopbar-cookie-category-text {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
}

.shopbar-cookie-panel-actions {
	margin-top: 16px;
}

/* -------------------------------------------------------------
 * Newsletter
 * ----------------------------------------------------------- */

.shopbar-newsletter-row {
	display: flex;
	gap: 8px;
}

/* Honeypot: off-screen but not display:none, so bots still fill it. */
.shopbar-newsletter-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.shopbar-newsletter-email {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 16px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 999px;
	font-size: 14px;
}

.shopbar-newsletter-submit {
	flex: 0 0 auto;
	padding: 12px 24px;
	border: 0;
	border-radius: 999px;
	background: #1f2933;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.shopbar-newsletter-submit.is-busy {
	opacity: 0.6;
}

.shopbar-newsletter-privacy {
	margin: 10px 0 0;
	color: #6b7280;
	font-size: 12px;
}

.shopbar-newsletter-message {
	margin: 10px 0 0;
	font-size: 13px;
}

.shopbar-newsletter-message.is-success {
	color: #1b7f4d;
}

.shopbar-newsletter-message.is-error {
	color: #b3261e;
}

.shopbar-newsletter-popup {
	position: fixed;
	inset: 0;
	z-index: 100003;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.shopbar-newsletter-popup[hidden] {
	display: none;
}

.shopbar-newsletter-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 22, 0.66);
}

.shopbar-newsletter-popup-dialog {
	position: relative;
	width: min(480px, 100%);
	padding: 34px;
	border-radius: 18px;
	background: #fff;
	text-align: center;
}

.shopbar-newsletter-popup-media img {
	width: 100%;
	max-height: 200px;
	object-fit: cover;
	border-radius: 12px;
}

.shopbar-newsletter-popup-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.05);
}

.shopbar-newsletter-popup-body h2 {
	margin: 0 0 8px;
	font-size: 24px;
}

.shopbar-newsletter-popup-body > p {
	margin: 0 0 20px;
	color: #6b7280;
	font-size: 14px;
}

.shopbar-newsletter-popup-form .shopbar-newsletter-row {
	flex-direction: column;
}

.shopbar-newsletter-popup-form .shopbar-newsletter-email {
	border-radius: 12px;
}

.shopbar-newsletter-popup-form .shopbar-newsletter-submit {
	border-radius: 12px;
}

/* -------------------------------------------------------------
 * Maintenance
 * ----------------------------------------------------------- */

.shopbar-maintenance {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70vh;
	padding: 60px 20px;
	text-align: center;
}

.shopbar-maintenance-inner {
	max-width: 520px;
}

.shopbar-maintenance-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.05);
}

.shopbar-maintenance-title {
	margin: 0 0 10px;
	font-size: 32px;
}

.shopbar-maintenance-text {
	margin: 0 0 18px;
	color: #6b7280;
	font-size: 16px;
}

.shopbar-maintenance-preview-link {
	font-size: 14px;
	text-decoration: underline;
}

/* -------------------------------------------------------------
 * Responsive
 * ----------------------------------------------------------- */

@media (max-width: 1024px) {
	.shopbar-module-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.shopbar-shop-layout--filters {
		display: block;
	}

	.shopbar-filters-toggle {
		display: inline-flex;
	}

	.shopbar-filters {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 96000;
		width: min(340px, 88vw);
		max-height: none;
		overflow-y: auto;
		border: 0;
		border-radius: 0 14px 14px 0;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
	}

	.shopbar-filters.is-open {
		transform: translateX(0);
	}

	.shopbar-quickview-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}
}

@media (max-width: 640px) {
	.shopbar-module-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.shopbar-quickview-dialog,
	.shopbar-size-chart-dialog,
	.shopbar-newsletter-popup-dialog {
		padding: 22px 18px;
	}

	.shopbar-compare-bar-inner {
		flex-wrap: wrap;
		gap: 10px;
		padding: 12px;
	}

	.shopbar-compare-bar-items {
		order: 3;
		width: 100%;
	}

	.shopbar-cookie-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.shopbar-cookie-actions {
		width: 100%;
	}

	.shopbar-cookie-btn {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shopbar-module-toast,
	.shopbar-compare-bar,
	.shopbar-cookie-banner,
	.shopbar-second-image,
	.shopbar-live-search,
	.shopbar-filters {
		transition: none;
	}

	.shopbar-spinner,
	.search-field.is-searching {
		animation: none;
	}
}