/* Storefront category archive. Scoped to the virtual category route. */
body.tc-storefront-category-archive,
body.tc-storefront-search-results {
	--tc-sf-navy: #07366f;
	--tc-sf-blue: #0878c9;
	--tc-sf-blue-soft: #eaf6fd;
	--tc-sf-red: #f20b2b;
	--tc-sf-border: #d9e5ef;
	--tc-sf-muted: #53657a;
}

body.tc-storefront-category-archive .header,
body.tc-storefront-category-archive .content { margin-top: 1em; }
body.tc-storefront-category-archive .content-in > .main { float: none; width: 100%; max-width: none; padding-inline: 0; }
body.tc-storefront-category-archive .content-in > .sidebar { display: none; }

div.tc-storefront-category-archive {
	position: relative;
	left: 50%;
	width: min(var(--tc-storefront-frame), calc(100vw - 32px));
	max-width: var(--tc-storefront-frame);
	min-width: 0;
	margin: 0 0 3rem;
	transform: translateX(-50%);
	box-sizing: border-box;
	color: var(--tc-sf-navy);
}

div.tc-storefront-category-archive *,
div.tc-storefront-category-archive *::before,
div.tc-storefront-category-archive *::after { box-sizing: border-box; }

div.tc-storefront-category-archive .tc-storefront-breadcrumb { margin-bottom: 1rem; color: #426789; font-size: 0.84rem; }
div.tc-storefront-category-archive .tc-storefront-breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
div.tc-storefront-category-archive .tc-storefront-breadcrumb-item { display: inline-flex; align-items: center; margin: 0; }
div.tc-storefront-category-archive .tc-storefront-breadcrumb-sep { margin: 0 0.15rem; opacity: 0.55; }

.tc-storefront-category-description { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; margin: 1.25rem 0 1.75rem; line-height: 1.75; overflow-wrap: anywhere; }
.tc-storefront-category-description--top { margin-top: 0; }
.tc-storefront-category-description--bottom { margin-top: 2.5rem; margin-bottom: 0; }
.tc-storefront-category-description img { max-width: 100%; height: auto; }

.tc-storefront-category-archive__shell {
	min-width: 0;
}
.tc-storefront-category-archive__filters,
.tc-storefront-category-filter,
.tc-storefront-category-filter__nav,
.tc-storefront-category-archive__results { min-width: 0; }
.tc-storefront-category-filter > summary { display: none; }
.tc-storefront-category-filter:not([open]) > .tc-storefront-category-filter__nav { display: block; }
.tc-storefront-category-filter__nav {
	overflow: hidden;
	border: 1px solid var(--tc-sf-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 7px 20px rgba(7, 54, 111, 0.06);
}
.tc-storefront-category-filter__title {
	margin: 0;
	padding: 0.95rem 1rem;
	background: linear-gradient(135deg, #0581d3, #0068b7);
	color: #fff;
	font-size: 1.12rem;
	font-weight: 800;
}
.tc-storefront-category-filter__top,
.tc-storefront-category-filter__group a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.65rem 0.9rem;
	border-bottom: 1px solid #e5edf4;
	color: var(--tc-sf-navy);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}
.tc-storefront-category-filter__top::after,
.tc-storefront-category-filter__group a::after { content: "›"; color: #72a9d2; font-size: 1.35em; line-height: 1; }
.tc-storefront-category-filter__top.is-current,
.tc-storefront-category-filter__group a.is-current,
.tc-storefront-category-filter__top:hover,
.tc-storefront-category-filter__group a:hover,
.tc-storefront-category-filter__top:focus,
.tc-storefront-category-filter__group a:focus { background: var(--tc-sf-blue-soft); color: #0068b7; }
.tc-storefront-category-filter__top.is-current,
.tc-storefront-category-filter__group a.is-current { box-shadow: inset 4px 0 #0787d6; }
.tc-storefront-category-filter__group > p {
	margin: 0;
	padding: 0.75rem 0.9rem 0.45rem;
	background: #f7fafc;
	color: var(--tc-sf-muted);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}
.tc-storefront-category-filter__group ul { margin: 0; padding: 0; list-style: none; }
.tc-storefront-category-filter__group li { margin: 0; }
.tc-storefront-category-archive__filters--mobile { display: none; }
.tc-storefront-category-archive__active-filters { display: none; }

.tc-storefront-category-archive__products { margin: 0 0 1.75rem; scroll-margin-top: 1rem; }
.tc-storefront-category-archive__products-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 0.9rem;
	padding: 0 0 0.65rem;
	border-bottom: 2px solid #d8e7f3;
}
.tc-storefront-category-archive__products-head h1 {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tc-sf-navy);
	font-size: clamp(1.55rem, 3vw, 2rem);
	font-weight: 800;
	line-height: 1.25;
	text-shadow: none;
}
.tc-storefront-category-archive__listing-meta { margin-left: 0.35em; color: var(--tc-sf-red); font-size: 0.72em; font-weight: 800; white-space: nowrap; }
.tc-storefront-category-archive__sort { display: flex; align-items: center; gap: 0.45rem; flex: 0 0 auto; margin: 0; width: auto; max-width: 100%; }
.tc-storefront-category-archive__sort label { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; color: var(--tc-sf-navy); font-size: 0.84rem; font-weight: 700; }
.tc-storefront-category-archive__sort select {
	width: auto;
	min-width: 7.5rem;
	height: 40px;
	margin: 0;
	padding: 0 2rem 0 0.75rem;
	border: 1px solid #b9cfdf;
	border-radius: 6px;
	background-color: #fff;
	color: var(--tc-sf-navy);
	font-size: 0.9rem;
	font-weight: 600;
}

.tc-storefront-product-list { display: flex; flex-direction: column; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.tc-storefront-product-list-item { min-width: 0; margin: 0; }
.tc-storefront-product-list-item__card {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr) 188px 160px;
	align-items: stretch;
	gap: 10px;
	min-width: 0;
	padding: 12px;
	border: 1px solid #d6e7f2;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(7, 54, 111, 0.045);
}
.tc-storefront-product-list-item__media-link { display: block; min-width: 0; color: inherit; text-decoration: none; }
.tc-storefront-product-list-item__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 176px;
	overflow: hidden;
	border-radius: 6px;
	background: #f4f6f8;
}
.tc-storefront-product-list-item__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tc-storefront-product-list-item__body { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; }
.tc-storefront-product-list-item__identity { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin-bottom: 0.25rem; }
.tc-storefront-product-list-item__maker { display: inline-flex; align-items: center; color: #23618f; font-size: 0.94rem; font-weight: 800; }
.tc-storefront-product-list-item__maker.has-logo { width: 132px; height: 24px; }
.tc-storefront-product-list-item__maker-logo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.tc-storefront-product-list-item__category-chips,
.tc-storefront-product-list-item__features,
.tc-storefront-product-list-item__warranties { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tc-storefront-product-list-item__category-chips { margin: 0; }
.tc-storefront-product-list-item__category-chips > span {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0.16rem 0.62rem;
	border: 0;
	border-radius: 5px;
	background: #eaf5fc;
	color: #14577f;
	font-size: 0.78rem;
	font-weight: 700;
}
.tc-storefront-product-list-item__title-link { display: block; color: var(--tc-sf-navy); text-decoration: none; }
.tc-storefront-product-list-item__title-link:hover,
.tc-storefront-product-list-item__title-link:focus { text-decoration: underline; }
.tc-storefront-product-list-item__model { display: block; min-width: 0; font-weight: 800; }
.tc-storefront-product-list-item__root-category,
.tc-storefront-product-list-item__product-identifier { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-storefront-product-list-item__root-category { margin: 0 0 0.08rem; color: #23618f; font-size: 0.94rem; line-height: 1.15; }
.tc-storefront-product-list-item__product-identifier { color: var(--tc-sf-navy); font-size: clamp(1.35rem, 1.7vw, 1.5rem); line-height: 1.16; }
.tc-storefront-product-list-item__summary {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	margin: 0.3rem 0 0;
	color: #254d73;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}
.tc-storefront-product-list-item__summary > * { display: inline; margin: 0; padding: 0; }
.tc-storefront-product-list-item__features {
	align-content: flex-start;
	max-height: calc(48px + 0.35rem);
	margin-top: auto;
	padding-top: 0.38rem;
	overflow: hidden;
}
.tc-storefront-product-list-item__feature {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	min-height: 24px;
	padding: 0.16rem 0.58rem;
	border: 0;
	border-radius: 5px;
	background: #edf7fd;
	color: #14577f;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.25;
}
.tc-storefront-product-list-item__feature i { flex: 0 0 auto; color: #0877ba; font-size: 0.85rem; }
.tc-storefront-product-list-item__feature i.fa-circle { color: #111; }
.tc-storefront-product-list-item__feature.is-text-only { background: #f2f5f7; color: #4a5d6c; }
.tc-storefront-product-list-item__commerce { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; height: 100%; }
.tc-storefront-product-list-item__warranties { flex-direction: column; align-items: flex-start; gap: 0.2rem; margin-bottom: 0.45rem; }
.tc-storefront-product-list-item__warranties > span {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0874bf;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.25;
}
.tc-storefront-product-list-item__warranties i { color: #0874bf; font-size: 1.3rem; }
.tc-storefront-product-list-item__prices { display: flex; flex: 1 1 auto; flex-direction: column; gap: 0.28rem; }
.tc-storefront-product-list-item__list-price { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; color: #50657a; font-size: 0.69rem; }
.tc-storefront-product-list-item__list-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.12rem 0.3rem; color: #50657a; font-size: 1rem; font-weight: 400; line-height: 1.25; }
.tc-storefront-product-list-item__list-price-line .tc-storefront-product-list-item__price-label { font-weight: 400; }
.tc-storefront-product-list-item__price-label { font-weight: 700; }
.tc-storefront-product-list-item__discount { padding: 0.1rem 0.48rem; border: 3px solid var(--tc-sf-red); border-radius: 5px; background: var(--tc-sf-red); color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.tc-storefront-product-list-item__pack-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.45rem; margin-top: auto; color: var(--tc-sf-red); }
.tc-storefront-product-list-item__pack-label { flex: 0 0 100%; font-size: 0.92rem; font-weight: 800; }
.tc-storefront-product-list-item__pack-value { display: inline-flex; align-items: baseline; gap: 0.12rem; white-space: nowrap; }
.tc-storefront-product-list-item__pack-amount { font-family: Arial, Helvetica, sans-serif; font-size: clamp(1.875rem, 2.2vw, 2rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.tc-storefront-product-list-item__pack-tax { font-size: 0.68rem; font-weight: 700; }
.tc-storefront-product-list-item__pack-price.is-inquiry .tc-storefront-product-list-item__pack-amount { font-family: Arial, "Yu Gothic", Meiryo, sans-serif; font-size: 1.18rem; line-height: 1.25; letter-spacing: 0; }
.tc-storefront-product-list-item__inquiry-note { flex: 0 0 100%; color: #5c6f82; font-size: 0.7rem; font-weight: 600; line-height: 1.45; }
.tc-storefront-product-list-item__actions {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
	min-width: 0;
	padding-left: 10px;
	border-left: 1px solid #d9e3ea;
}
.tc-storefront-product-list-item__detail,
.tc-storefront-product-list-item__estimate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.8rem;
	border: 0;
	border-radius: 6px;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
}
.tc-storefront-product-list-item__detail { background: var(--tc-sf-blue); }
.tc-storefront-product-list-item__estimate { background: var(--tc-sf-red); }
.tc-storefront-product-list-item__detail:hover,
.tc-storefront-product-list-item__detail:focus,
.tc-storefront-product-list-item__estimate:hover,
.tc-storefront-product-list-item__estimate:focus { color: #fff; filter: brightness(0.9); text-decoration: none; }

.tc-storefront-category-archive__empty { margin: 0; padding: 1.25rem 1rem; border: 1px dashed #b9cfdf; border-radius: 8px; background: #f7fbfe; color: var(--tc-sf-muted); }
.tc-storefront-category-archive__pagination,
.tc-storefront-search-results-page__pagination { margin: 1.5rem 0 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.tc-storefront-category-archive__pagination > ul.page-numbers,
.tc-storefront-search-results-page__pagination > ul.page-numbers { display: flex; width: 100%; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.45rem; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; list-style: none; }
.tc-storefront-category-archive__pagination .page-numbers li,
.tc-storefront-search-results-page__pagination .page-numbers li { flex: 0 0 auto; margin: 0; padding: 0; border: 0; }
.tc-storefront-category-archive__pagination .page-numbers a,
.tc-storefront-category-archive__pagination .page-numbers span,
.tc-storefront-search-results-page__pagination .page-numbers a,
.tc-storefront-search-results-page__pagination .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0.45rem 0.7rem; border: 1px solid #b9cfdf; border-radius: 6px; background: #fff; color: var(--tc-sf-navy); line-height: 1.2; white-space: nowrap; text-decoration: none; }
.tc-storefront-category-archive__pagination .page-numbers .prev,
.tc-storefront-category-archive__pagination .page-numbers .next,
.tc-storefront-search-results-page__pagination .page-numbers .prev,
.tc-storefront-search-results-page__pagination .page-numbers .next { min-width: 74px; }
.tc-storefront-category-archive__pagination .page-numbers .current,
.tc-storefront-search-results-page__pagination .page-numbers .current { border-color: var(--tc-sf-blue); background: var(--tc-sf-blue); color: #fff; }

@media (max-width: 1100px) {
	.tc-storefront-product-list-item__card { grid-template-columns: 140px minmax(0, 1fr) 170px 140px; gap: 8px; padding: 10px; }
	.tc-storefront-product-list-item__media { height: 150px; }
	.tc-storefront-product-list-item__actions { padding-left: 8px; }
	.tc-storefront-product-list-item__detail,
	.tc-storefront-product-list-item__estimate { padding-inline: 0.55rem; font-size: 0.82rem; }
}

@media (max-width: 1064px) {
	.tc-storefront-category-archive__filters--mobile { display: block; }
	.tc-storefront-category-filter > summary {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		min-height: 44px;
		padding: 0.65rem 1rem;
		border-radius: 6px;
		background: var(--tc-sf-blue);
		color: #fff;
		font-weight: 800;
		list-style: none;
		cursor: pointer;
	}
	.tc-storefront-category-filter > summary::-webkit-details-marker { display: none; }
	.tc-storefront-category-filter:not([open]) > .tc-storefront-category-filter__nav { display: none; }
	.tc-storefront-category-filter__nav { margin-top: 0.6rem; }
	.tc-storefront-category-archive__active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.8rem 0; }
	.tc-storefront-category-archive__active-label { color: var(--tc-sf-muted); font-size: 0.75rem; font-weight: 700; }
	.tc-storefront-category-archive__chip { padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--tc-sf-blue-soft); color: #0769ac; font-size: 0.78rem; font-weight: 700; }
}

@media (max-width: 834px) {
	body.tc-storefront-category-archive .content { margin-top: 4em; }
	body.tc-storefront-category-archive .mobile-header-menu-buttons .menu-caption,
	body.tc-storefront-search-results .mobile-header-menu-buttons .menu-caption { font-size: 12px; line-height: 1.2; }
	div.tc-storefront-category-archive { width: min(calc(100vw - 24px), 760px); }
	.tc-storefront-product-list-item__card { grid-template-columns: 170px minmax(0, 1fr); }
	.tc-storefront-product-list-item__media-link { grid-row: 1 / 3; }
	.tc-storefront-product-list-item__commerce { grid-column: 2; }
	.tc-storefront-product-list-item__actions {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0.75rem 0 0;
		border-top: 1px solid #d9e3ea;
		border-left: 0;
	}
	.tc-storefront-product-list-item__detail,
	.tc-storefront-product-list-item__estimate { font-size: 16px; }
}

@media (max-width: 600px) {
	div.tc-storefront-category-archive { width: calc(100vw - 20px); margin-bottom: 2rem; }
	.tc-storefront-category-archive__products-head { align-items: flex-end; gap: 0.6rem; }
	.tc-storefront-category-archive__sort { flex-direction: column; align-items: stretch; gap: 0.2rem; }
	.tc-storefront-category-archive__sort label { font-size: 0.76rem; }
	.tc-storefront-category-archive__sort select { min-width: 7rem; height: 44px; }
	.tc-storefront-product-list-item__card { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; padding: 0.8rem; }
	.tc-storefront-product-list-item__media-link { width: 100%; max-width: 330px; margin: 0 auto; }
	.tc-storefront-product-list-item__media-link { grid-row: auto; }
	.tc-storefront-product-list-item__media { height: 185px; }
	.tc-storefront-product-list-item__body { justify-content: flex-start; }
	.tc-storefront-product-list-item__commerce { grid-column: auto; }
	.tc-storefront-product-list-item__model { font-size: 1.35rem; }
	.tc-storefront-product-list-item__pack-amount { font-size: 2rem; }
	.tc-storefront-product-list-item__pack-price.is-inquiry .tc-storefront-product-list-item__pack-amount { font-size: 1.18rem; }
	.tc-storefront-product-list-item__actions { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
	.tc-storefront-product-list-item__detail,
	.tc-storefront-product-list-item__estimate { min-height: 50px; }
}
