/* Shared by catalog and product pages: page wrapper, breadcrumbs, notices.
   WooCommerce's own CSS is not loaded on these pages (see inc/woocommerce.php). */

.woocommerce-main {
	padding: 36px 0 80px;
}

/* Breadcrumbs */

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 20px;
	color: var(--color-text);
}

.breadcrumbs__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

/* Chevron separator. */
.breadcrumbs__item + .breadcrumbs__item::before {
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	margin-left: -2px;
	border-top: 1.3px solid #a0a0a0;
	border-right: 1.3px solid #a0a0a0;
	transform: rotate(45deg);
}

.breadcrumbs a,
.breadcrumbs a:visited {
	display: flex;
	align-items: center;
	color: #5c5c5c;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--transition);
}

.breadcrumbs a:hover {
	color: var(--color-primary);
}

.breadcrumbs__home svg {
	display: block;
}

/* Current page. */
.breadcrumbs [aria-current="page"] {
	color: var(--color-text);
	font-weight: 500;
}

/*
 * Mobile: one line. The current page title shrinks with an ellipsis, so the path to it
 * (home, category) always stays visible; a very deep path scrolls sideways.
 */
@media (max-width: 768px) {
	.breadcrumbs__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		font-size: 13px;
	}

	.breadcrumbs__list::-webkit-scrollbar {
		display: none;
	}

	.breadcrumbs__item {
		flex-shrink: 0;
	}

	.breadcrumbs__item:last-child {
		flex: 0 1 auto;
	}

	/* Flex item: min-width 0 lets it shrink below its text width so the ellipsis shows. */
	.breadcrumbs [aria-current="page"] {
		min-width: 0;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
}

/* Notices */

.woocommerce-notices-wrapper:not(:empty) {
	margin: 20px 0;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	padding: 14px 16px;
	border-left: 3px solid var(--color-primary);
	background: var(--color-surface);
	list-style: none;
}

.woocommerce-message .button,
.woocommerce-info .button {
	order: 2;
	font-weight: 600;
	color: var(--color-primary);
}

.woocommerce-error {
	border-left-color: #c62828;
}

/* WooCommerce default CSS (cart / checkout / account): no icon over the text, no top border. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	content: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top: 0;
}

@media (max-width: 768px) {
	.woocommerce-main {
		padding: 20px 0 56px;
	}
}
