/* ============================================================
   Archive Product Page — Design Tokens
   ============================================================ */
.vbx-archive {
	--vbx-bg: var(--vbx-color-bg);
	--vbx-surface: var(--vbx-color-surface);
	--vbx-border: var(--vbx-color-border);
	--vbx-text-primary: var(--vbx-color-text-primary);
	--vbx-text-body: var(--vbx-color-text-body);
	--vbx-text-muted: var(--vbx-color-text-muted);
	--vbx-accent: var(--vbx-color-accent);
	--vbx-accent-light: var(--vbx-color-accent-light);
	--vbx-price: var(--vbx-color-price);
	--vbx-price-old: var(--vbx-color-price-old);
	--vbx-star: var(--vbx-color-star);
	font-family: var(--bs-body-font-family);
	font-size: var(--bs-body-font-size);
	font-weight: var(--bs-body-font-weight);
	line-height: var(--bs-body-line-height);
}

.vbx-archive {
	background: var(--vbx-bg);
	color: var(--vbx-text-body);
	padding-bottom: 5.5rem;
}

/* === Archive: Layout === */
.vbx-archive :focus-visible {
	outline: 2px solid var(--vbx-accent);
	outline-offset: 2px;
}

.vbx-btn-primary {
	--bs-btn-font-family: var(--bs-body-font-family);
	--bs-btn-font-size: var(--bs-body-font-size);
	--bs-btn-font-weight: 700;
	--bs-btn-line-height: var(--bs-body-line-height);
	align-items: center;
	background: var(--vbx-accent);
	border-color: var(--vbx-accent);
	border-radius: var(--vbx-radius-sm);
	color: var(--vbxwoo-light);
	display: inline-flex;
	font-weight: 700;
	gap: 0.45rem;
	justify-content: center;
	min-height: 44px;
}

.vbx-btn-primary:hover,
.vbx-btn-primary:focus {
	background: var(--vbx-text-primary);
	border-color: var(--vbx-text-primary);
	color: var(--vbxwoo-light);
}

.vbx-btn-disabled {
	--bs-btn-font-family: var(--bs-body-font-family);
	--bs-btn-font-size: var(--bs-body-font-size);
	--bs-btn-line-height: var(--bs-body-line-height);
	background: var(--vbxwoo-border-strong);
	border-color: var(--vbxwoo-border-strong);
	color: var(--vbx-text-body);
	min-height: 44px;
}

/* === Archive: Hero === */
.vbx-hero {
	background: linear-gradient(180deg, var(--vbx-surface), var(--vbx-bg));
	padding: 2rem 0;
}

.vbx-hero .woocommerce-breadcrumb {
	color: var(--vbx-text-muted);
	font-size: calc(var(--bs-body-font-size) * 0.875);
	line-height: var(--bs-body-line-height);
	margin-bottom: 0.75rem;
}

.vbx-archive-breadcrumb {
	color: var(--vbx-text-muted);
	font-size: calc(var(--bs-body-font-size) * 0.875);
	line-height: var(--bs-body-line-height);
	margin-bottom: 0.75rem;
}

.vbx-archive-breadcrumb__list {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vbx-archive-breadcrumb__item {
	align-items: center;
	display: inline-flex;
	gap: 0.4rem;
}

.vbx-archive-breadcrumb__item+.vbx-archive-breadcrumb__item::before {
	color: var(--vbx-text-muted);
	content: "/";
}

.vbx-archive-breadcrumb a {
	color: var(--vbx-text-muted);
	text-decoration: none;
}

.vbx-archive-breadcrumb a:hover,
.vbx-archive-breadcrumb a:focus {
	color: var(--vbx-accent);
}

.vbx-archive-breadcrumb [aria-current="page"] {
	color: var(--vbx-text-primary);
	font-weight: 700;
}

.vbx-hero__eyebrow {
	color: var(--vbx-accent);
	font-size: calc(var(--bs-body-font-size) * 0.875);
	font-weight: 700;
	letter-spacing: inherit;
	line-height: var(--bs-body-line-height);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.vbx-hero__title {
	color: var(--vbx-text-primary);
	font-size: calc(var(--bs-body-font-size) * 2);
	font-weight: 700;
	line-height: var(--bs-body-line-height);
	margin-bottom: 0.75rem;
}

.vbx-hero__desc {
	color: var(--vbx-text-body);
	font-size: var(--bs-body-font-size);
	line-height: var(--bs-body-line-height);
	max-width: 46rem;
}

.vbx-hero__desc p:last-child {
	margin-bottom: 0;
}

.vbx-hero__count {
	background: var(--vbx-accent-light);
	border-radius: var(--vbx-radius-pill);
	color: var(--vbx-accent);
	display: inline-flex;
	font-size: calc(var(--bs-body-font-size) * 0.875);
	font-weight: 700;
	line-height: var(--bs-body-line-height);
	margin-top: 1rem;
	padding: 0.4rem 0.8rem;
}

.vbx-hero__media {
	align-items: center;
	background: var(--vbx-surface);
	border: 1px solid var(--vbx-border);
	border-radius: var(--vbx-radius-md);
	color: var(--vbx-accent);
	display: flex;
	justify-content: center;
	min-height: 230px;
	overflow: hidden;
	padding: 1rem;
}

.vbx-hero__media img,
.vbx-hero__media svg {
	height: auto;
	max-height: 260px;
	object-fit: contain;
	width: 100%;
}

/* === Archive: Toolbar === */
.vbx-toolbar {
	align-items: center;
	background: var(--vbx-bg);
	border-bottom: 1px solid var(--vbx-border);
	gap: 1rem;
	min-height: 70px;
	padding-bottom: 0.75rem;
	padding-top: 0.75rem;
	position: sticky;
	top: 0;
	z-index: 20;
}

.vbx-toolbar__result-count {
	color: var(--vbx-text-primary);
	font-size: calc(var(--bs-body-font-size) * 0.875);
	font-weight: 700;
	line-height: var(--bs-body-line-height);
}

.vbx-sort {
	min-height: 44px;
	min-width: 180px;
}

.vbx-sort,
.vbx-mobile-toolbar__select {
	background-color: var(--vbxwoo-input-bg);
	border-color: var(--vbxwoo-input-border);
	color: var(--vbxwoo-input-text);
	font-size: inherit;
	line-height: inherit;
}

.vbx-sort:focus,
.vbx-mobile-toolbar__select:focus {
	border-color: var(--vbxwoo-input-focus);
	box-shadow: var(--vbxwoo-shadow-soft);
}

.vbx-view-toggle {
	background: var(--vbx-surface);
	border: 1px solid var(--vbx-border);
	border-radius: var(--vbx-radius-sm);
	display: inline-flex;
	padding: 0.2rem;
}

.vbx-view-toggle__btn {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: var(--vbx-radius-sm);
	color: var(--vbx-text-muted);
	display: inline-flex;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.vbx-view-toggle__btn.is-active {
	background: var(--vbx-accent);
	color: var(--vbxwoo-light);
}

/* === Archive: Rating === */
.vbx-stars {
	color: var(--vbx-star);
	letter-spacing: inherit;
}

/* === Archive: Product Card === */
.vbx-product-grid>[class*="col-"] {
	display: flex;
}

.vbx-product-card {
	background: var(--vbx-surface);
	border: 1px solid var(--vbx-border);
	border-radius: var(--vbx-radius-sm);
	display: flex;
	flex-direction: column;
	isolation: isolate;
	overflow: hidden;
	position: relative;
	transition: border-color var(--vbx-transition), box-shadow var(--vbx-transition), transform var(--vbx-transition);
	width: 100%;
}

.vbx-product-card:hover {
	border-color: var(--vbx-accent);
	box-shadow: var(--vbxwoo-shadow-card);
	transform: translateY(-2px);
}

.vbx-product-card__inner {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.vbx-product-card__image-wrap {
	align-items: center;
	aspect-ratio: 1 / 1;
	background: var(--vbxwoo-surface-soft);
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.vbx-product-card__thumb-link {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.vbx-product-card__thumb-link img {
	display: block;
	height: 86%;
	object-fit: contain;
	width: 86%;
}

.vbx-badge {
	background: var(--vbx-accent);
	border-radius: var(--vbx-radius-pill);
	color: var(--vbxwoo-light);
	font-size: calc(var(--bs-body-font-size) * 0.875);
	font-weight: 700;
	left: 0.65rem;
	line-height: var(--bs-body-line-height);
	padding: 0.35rem 0.55rem;
	position: absolute;
	text-transform: uppercase;
	top: 0.65rem;
	z-index: 4;
}

.vbx-badge--stock,
.vbx-badge--out-of-stock {
	background: var(--vbx-text-body);
}

.vbx-badge--sale,
.vbx-badge--discount {
	background: var(--vbx-price);
}

.vbx-badge--new {
	background: var(--vbx-accent);
}

.vbx-badge--discount {
	display: inline-flex;
	margin-left: 0.35rem;
	position: static;
}

.vbx-product-card__wishlist {
	align-items: center;
	background: var(--vbx-surface);
	border: 1px solid var(--vbx-border);
	border-radius: 50%;
	color: var(--vbx-text-primary);
	display: inline-flex;
	height: 44px;
	justify-content: center;
	position: absolute;
	right: 0.65rem;
	top: 0.65rem;
	width: 44px;
	z-index: 6;
}

.vbx-product-card__wishlist:hover,
.vbx-product-card__wishlist:focus {
	background: var(--vbx-accent);
	color: var(--vbxwoo-light);
}

.vbx-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.875rem;
}

.vbx-product-card__brand {
	color: var(--vbx-accent);
	font-size: calc(var(--bs-body-font-size) * 0.875);
	font-weight: 700;
	line-height: var(--bs-body-line-height);
	margin: 0;
	text-transform: uppercase;
}

.vbx-product-card__title {
	font-size: var(--bs-body-font-size);
	font-weight: 700;
	line-height: var(--bs-body-line-height);
	margin: 0;
	min-height: 3em;
}

.vbx-product-card__title a {
	color: var(--vbx-text-primary);
	text-decoration: none;
}

.vbx-product-card__rating {
	min-height: 20px;
}

.vbx-product-card__rating .star-rating {
	color: var(--vbx-star);
	font-size: calc(var(--bs-body-font-size) * 0.875);
	line-height: var(--bs-body-line-height);
	margin: 0;
}

.vbx-product-card__price {
	color: var(--vbx-price);
	font-size: var(--bs-body-font-size);
	font-weight: 700;
	line-height: var(--bs-body-line-height);
	margin-top: auto;
}

.vbx-product-card__price del {
	color: var(--vbx-price-old);
	font-size: calc(var(--bs-body-font-size) * 0.875);
	font-weight: 500;
	line-height: var(--bs-body-line-height);
	opacity: 1;
}

.vbx-product-card__price ins {
	text-decoration: none;
}

.vbx-product-card__footer {
	isolation: isolate;
	margin-top: auto;
	padding: 0 0.875rem 0.875rem;
}

.vbx-product-card__action-layer {
	isolation: isolate;
}

.vbx-product-card__atc {
	position: relative;
	z-index: 6;
}

.vbx-product-card__atc--added {
	background: var(--vbx-text-primary);
	border-color: var(--vbx-text-primary);
}

/* === Archive: Product Card — List View === */
.vbx-product-grid[data-view="list"] {
	display: block;
}

.vbx-product-grid[data-view="list"]>[class*="col-"] {
	display: block;
	margin-bottom: 1rem;
	max-width: 100%;
	width: 100%;
}

.vbx-product-grid[data-view="list"] .vbx-product-card__inner {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
}

.vbx-product-grid[data-view="list"] .vbx-product-card__image-wrap {
	aspect-ratio: auto;
	min-height: 176px;
}

.vbx-product-grid[data-view="list"] .vbx-product-card__footer {
	grid-column: 2;
}

.vbx-product-grid[data-view="list"] .vbx-product-card__title {
	min-height: 0;
}

/* === Archive: Skeleton === */
.vbx-skeleton-card {
	background: var(--vbx-surface);
	border: 1px solid var(--vbx-border);
	border-radius: var(--vbx-radius-sm);
	padding: 0.875rem;
}

.vbx-skeleton {
	animation: vbx-shimmer 1.5s infinite;
	background: linear-gradient(90deg, var(--vbxwoo-surface-soft) 25%, var(--vbx-border) 50%, var(--vbxwoo-surface-soft) 75%);
	background-size: 200% 100%;
	border-radius: var(--vbx-radius-sm);
}

.vbx-skeleton--image {
	aspect-ratio: 1 / 1;
	margin-bottom: 1rem;
}

.vbx-skeleton--text {
	height: 14px;
	margin-bottom: 0.75rem;
}

.vbx-skeleton--w60 {
	width: 60%;
}

.vbx-skeleton--w80 {
	width: 80%;
}

.vbx-skeleton--w40 {
	width: 40%;
}

/* === Archive: Pagination === */
.vbx-pagination {
	margin-top: 2rem;
}

.vbx-pagination .page-link {
	background: var(--vbx-surface);
	border-color: var(--vbx-border);
	color: var(--vbx-accent);
	font-size: var(--bs-body-font-size);
	line-height: var(--bs-body-line-height);
	min-height: 44px;
	min-width: 44px;
	text-align: center;
}

.vbx-pagination .page-link:hover,
.vbx-pagination .page-link:focus {
	background: var(--vbx-accent-light);
	border-color: var(--vbx-accent);
	color: var(--vbx-accent);
}

.vbx-pagination .active .page-link {
	background: var(--vbx-accent);
	border-color: var(--vbx-accent);
	color: var(--vbxwoo-light);
}

.vbx-pagination .disabled .page-link {
	background: var(--vbx-surface);
	border-color: var(--vbx-border);
	color: var(--vbx-text-muted);
}

.vbx-pagination__count {
	color: var(--vbx-text-muted);
	font-size: calc(var(--bs-body-font-size) * 0.875);
	line-height: var(--bs-body-line-height);
	margin-top: 0.5rem;
}

/* === Archive: Recently Viewed === */
.vbx-recently-viewed {
	background: var(--vbx-surface);
}

.vbx-recent-card {
	background: var(--vbx-bg);
	border: 1px solid var(--vbx-border);
	border-radius: var(--vbx-radius-sm);
	color: var(--vbx-text-primary);
	display: grid;
	gap: 0.5rem;
	height: 100%;
	padding: 0.75rem;
	text-decoration: none;
}

.vbx-recent-card__image {
	align-items: center;
	aspect-ratio: 1 / 1;
	background: var(--vbxwoo-surface-soft);
	border-radius: var(--vbx-radius-sm);
	display: flex;
	justify-content: center;
}

.vbx-recent-card__image img {
	display: block;
	height: 86%;
	object-fit: contain;
	width: 86%;
}

.vbx-recent-card__name {
	font-size: calc(var(--bs-body-font-size) * 0.875);
	font-weight: 700;
	line-height: var(--bs-body-line-height);
}

.vbx-recent-card__price {
	color: var(--vbx-price);
	font-weight: 700;
	line-height: var(--bs-body-line-height);
}

/* === Archive: Trust Badges === */
.vbx-trust-badges {
	background: var(--vbx-surface);
	border-top: 1px solid var(--vbx-border);
}

.vbx-trust-badge {
	background: var(--vbx-bg);
	border: 1px solid var(--vbx-border);
	border-radius: var(--vbx-radius-sm);
	height: 100%;
	padding: 1rem;
}

.vbx-trust-badge__icon {
	align-items: center;
	background: var(--vbx-accent-light);
	border-radius: 50%;
	color: var(--vbx-accent);
	display: inline-flex;
	height: 48px;
	justify-content: center;
	margin-bottom: 0.75rem;
	width: 48px;
}

.vbx-trust-badge__label {
	color: var(--vbx-text-primary);
	font-weight: 700;
	line-height: var(--bs-body-line-height);
}

/* === Archive: Empty State === */
.vbx-empty-state {
	background: var(--vbx-surface);
	border: 1px solid var(--vbx-border);
	border-radius: var(--vbx-radius-sm);
}

.vbx-empty-state__icon {
	color: var(--vbx-accent);
}

/* === Archive: Mobile Toolbar (sticky bottom) === */
.vbx-mobile-toolbar {
	background: var(--vbx-surface);
	border-top: 1px solid var(--vbx-border);
	bottom: 0;
	box-shadow: var(--vbxwoo-shadow-soft);
	gap: 0.75rem;
	left: 0;
	padding: 0.75rem;
	position: fixed;
	right: 0;
	z-index: 1030;
}

.vbx-mobile-toolbar__btn {
	align-items: center;
	background: var(--vbx-accent);
	border: 1px solid var(--vbx-accent);
	border-radius: var(--vbx-radius-sm);
	color: var(--vbxwoo-light);
	display: inline-flex;
	flex: 1 1 0;
	font-weight: 700;
	line-height: var(--bs-body-line-height);
	gap: 0.5rem;
	justify-content: center;
	min-height: 48px;
}

.vbx-mobile-toolbar__select {
	appearance: none;
	background: transparent;
	border: 0;
	bottom: 0.75rem;
	color: transparent;
	cursor: pointer;
	height: 48px;
	left: 0.75rem;
	opacity: 0;
	position: absolute;
	right: 0.75rem;
	width: calc(100% - 1.5rem);
}

@media (min-width: 576px) {
	.vbx-hero__title {
		font-size: calc(var(--bs-body-font-size) * 2.35);
	}
}

@media (min-width: 768px) {
	.vbx-hero {
		padding: 2.75rem 0;
	}

	.vbx-product-grid[data-view="list"] .vbx-product-card__inner {
		grid-template-columns: 220px minmax(0, 1fr);
	}
}

@media (min-width: 992px) {
	.vbx-hero {
		padding: 3rem 0;
	}

	.vbx-hero__title {
		font-size: calc(var(--bs-body-font-size) * 3);
	}

	.vbx-archive {
		padding-bottom: 0;
	}

	.vbx-mobile-toolbar {
		display: none;
	}
}
