/* ============================================================
   Store-specific shop composition (only active with valid store_id).
   Body class: .erm-store-shop-view
   ============================================================ */

/* ── Suppress leftover plugin / Kadence headings ── */
.erm-store-shop-view .projectname-shop-store-heading,
.erm-store-shop-view .page-description,
.erm-store-shop-view .woocommerce-products-header__title {
	display: none;
}

/* ── Outer page wrapper ── */
.erm-store-shop-view .erm-store-shop {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.erm-store-shop-view .woocommerce-notices-wrapper {
	margin-bottom: 0;
}

/* ================================================================
   STORE HEADER
   ================================================================ */

.erm-store-shop-view .erm-store-shop-header {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 1.15rem 1.35rem 1.35rem;
}

.erm-store-shop-view .erm-store-shop-header__back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #6b7280;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	margin-bottom: 1rem;
	letter-spacing: 0.01em;
}

.erm-store-shop-view .erm-store-shop-header__back:hover,
.erm-store-shop-view .erm-store-shop-header__back:focus-visible {
	color: #111827;
}

.erm-store-shop-view .erm-store-shop-header__identity {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.erm-store-shop-view .erm-store-shop-header__logo-wrap {
	width: 60px;
	height: 60px;
	flex: 0 0 60px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #f9fafb;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.erm-store-shop-view .erm-store-shop-header__logo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.erm-store-shop-view .erm-store-shop-header__logo-fallback {
	font-size: 1.3rem;
	font-weight: 700;
	color: #9ca3af;
	line-height: 1;
}

.erm-store-shop-view .erm-store-shop-header__text {
	flex: 1;
	min-width: 0;
}

.erm-store-shop-view .erm-store-shop-header__title {
	margin: 0;
	color: #111827;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	line-height: 1.2;
	font-weight: 700;
}

.erm-store-shop-view .erm-store-shop-header__subtitle {
	margin: 0.25rem 0 0;
	color: #6b7280;
	font-size: 0.9375rem;
	line-height: 1.5;
	font-weight: 400;
}

.erm-store-shop-view .erm-store-shop-header__actions {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.erm-store-shop-view .erm-store-shop-header__contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0.5rem 0.95rem;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #f9fafb;
	color: #111827;
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.erm-store-shop-view .erm-store-shop-header__contact:hover,
.erm-store-shop-view .erm-store-shop-header__contact:focus-visible {
	background: #111827;
	border-color: #111827;
	color: #fff;
}

/* ================================================================
   STORE DESCRIPTION + FILTERS
   ================================================================ */

.erm-store-shop-view .erm-store-shop-description {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 0.95rem 1.1rem;
}

.erm-store-shop-view .erm-store-shop-description__content {
	color: #4b5563;
	font-size: 0.9375rem;
	line-height: 1.65;
}

.erm-store-shop-view .erm-store-shop-description__content > *:first-child {
	margin-top: 0;
}

.erm-store-shop-view .erm-store-shop-description__content > *:last-child {
	margin-bottom: 0;
}

.erm-store-shop-view .erm-store-shop-search {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 0.7rem;
}

.erm-store-shop-view .erm-store-shop-search__form {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.erm-store-shop-view .erm-store-shop-search__input {
	flex: 1;
	height: 42px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 0 0.85rem;
	font-size: 0.9rem;
	color: #111827;
	background: #fff;
}

.erm-store-shop-view .erm-store-shop-search__input:focus {
	outline: 0;
	border-color: #111827;
	box-shadow: 0 0 0 1px #111827;
}

.erm-store-shop-view .erm-store-shop-search__submit {
	height: 42px;
	padding: 0 1rem;
	border: 1px solid #111827;
	border-radius: 10px;
	background: #111827;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.erm-store-shop-view .erm-store-shop-search__submit:hover {
	background: #1f2937;
	border-color: #1f2937;
}

/* Store menu: single main horizontal bar (shop sections or product categories fallback) */
.erm-store-shop-view .erm-store-shop-nav-stack {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 0.5rem;
}

.erm-store-shop-view .erm-store-shop-browsing-context {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #6b7280;
	line-height: 1.4;
}

.erm-store-shop-view .erm-store-shop-site-nav {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0;
	padding: 0 0 0.15rem;
	border-bottom: 1px solid #e5e7eb;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.erm-store-shop-view .erm-store-shop-site-nav > a {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 1rem;
	margin: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #4b5563;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
	transition: color 0.15s ease, box-shadow 0.15s ease;
	box-shadow: inset 0 -2px 0 transparent;
}

.erm-store-shop-view .erm-store-shop-site-nav > a:hover,
.erm-store-shop-view .erm-store-shop-site-nav > a:focus-visible {
	color: #111827;
	outline: none;
	box-shadow: inset 0 -2px 0 #d1d5db;
}

.erm-store-shop-view .erm-store-shop-site-nav > a.is-active,
.erm-store-shop-view .erm-store-shop-site-nav > a[aria-current='page'] {
	color: #111827;
	font-weight: 700;
	box-shadow: inset 0 -2px 0 #111827;
}

/* ================================================================
   UTILITY TOOLBAR
   ================================================================ */

.erm-store-shop-view .erm-store-shop-toolbar {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 0.6rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 50px;
}

.erm-store-shop-view .erm-store-shop-toolbar__count {
	margin: 0;
	font-size: 0.9rem;
	color: #6b7280;
	white-space: nowrap;
}

.erm-store-shop-view .erm-store-shop-toolbar__count-value {
	color: #111827;
	font-weight: 700;
	margin-right: 0.2rem;
}

.erm-store-shop-view .erm-store-shop-toolbar__count-label {
	font-weight: 400;
}

.erm-store-shop-view .erm-store-shop-toolbar__actions {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* Sort select */
.erm-store-shop-view .erm-store-shop-toolbar__sort .woocommerce-ordering {
	margin: 0;
	float: none;
}

.erm-store-shop-view .erm-store-shop-toolbar__sort .woocommerce-ordering select {
	appearance: none;
	-webkit-appearance: none;
	background-color: #f9fafb;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.6rem center;
	background-size: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 9px;
	font-size: 0.8125rem;
	color: #374151;
	height: 36px;
	min-width: 170px;
	padding: 0 2rem 0 0.75rem;
	cursor: pointer;
	font-weight: 500;
}

/* View toggle */
.erm-store-shop-view .erm-store-shop-toolbar__toggle .kadence-product-toggle-container {
	display: inline-flex;
	align-items: center;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 9px;
	padding: 2px;
	gap: 2px;
}

.erm-store-shop-view .erm-store-shop-toolbar__toggle .kadence-toggle-shop-layout {
	border: 0;
	background: transparent;
	border-radius: 7px;
	height: 30px;
	width: 30px;
	padding: 0;
	color: #9ca3af;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.erm-store-shop-view .erm-store-shop-toolbar__toggle .kadence-toggle-shop-layout svg {
	fill: currentcolor;
}

.erm-store-shop-view .erm-store-shop-toolbar__toggle .kadence-toggle-shop-layout.toggle-active {
	background: #111827;
	color: #fff;
}

/* ================================================================
   PRODUCT GRID
   ================================================================ */

.erm-store-shop-view .erm-store-shop-products {
	margin-top: 0;
}

/* Product column tracks come from .erm-pn-vendor-cards ul.products (marketplace-browse.css). */
.erm-store-shop-view .erm-store-shop-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: stretch;
}

.erm-store-shop-view .erm-store-shop-grid.is-list {
	grid-template-columns: 1fr;
}

/* Product card visuals: shared `marketplace-browse.css` (.erm-pn-vendor-cards). */
.erm-store-shop-view .erm-store-shop-grid li.product {
	margin: 0 !important;
	width: 100% !important;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */

.erm-store-shop-view .erm-store-shop-empty {
	padding: 2.5rem 1.5rem;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

.erm-store-shop-view .erm-store-shop-empty__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
}

.erm-store-shop-view .erm-store-shop-empty__text {
	margin: 0.6rem 0 0;
	color: #6b7280;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.erm-store-shop-view .erm-store-shop-empty__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	margin-top: 1.1rem;
	padding: 0 1.25rem;
	border-radius: 10px;
	border: 1.5px solid #111827;
	background: #111827;
	color: #fff;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background 0.15s, border-color 0.15s;
}

.erm-store-shop-view .erm-store-shop-empty__link:hover {
	background: #1f2937;
	border-color: #1f2937;
	color: #fff;
}

/* ================================================================
   PAGINATION
   ================================================================ */

.erm-store-shop-view .woocommerce-pagination {
	margin-top: 0.25rem;
}

.erm-store-shop-view .woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 0;
	padding: 0;
	margin: 0;
}

.erm-store-shop-view .woocommerce-pagination ul.page-numbers li {
	border: 0;
}

.erm-store-shop-view .woocommerce-pagination ul.page-numbers .page-numbers {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}

.erm-store-shop-view .woocommerce-pagination ul.page-numbers .page-numbers:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.erm-store-shop-view .woocommerce-pagination ul.page-numbers span.current {
	background: #111827;
	border-color: #111827;
	color: #fff;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */

.erm-store-shop-view .erm-store-shop-about {
	background: #fafafa;
	border: 1px solid #e9eaec;
	border-radius: 14px;
	padding: 1.5rem 1.5rem 1.6rem;
}

.erm-store-shop-view .erm-store-shop-about__title {
	margin: 0;
	font-size: 1.25rem;
	color: #111827;
	font-weight: 700;
	line-height: 1.25;
}

.erm-store-shop-view .erm-store-shop-about__content {
	margin-top: 0.65rem;
	font-size: 0.9375rem;
	color: #4b5563;
	line-height: 1.75;
}

.erm-store-shop-view .erm-store-shop-about__content > *:first-child {
	margin-top: 0;
}

.erm-store-shop-view .erm-store-shop-about__content > *:last-child {
	margin-bottom: 0;
}

/* Highlight chips */
.erm-store-shop-view .erm-store-shop-about__highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.erm-store-shop-view .erm-store-shop-about__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #374151;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
}

/* Trust row */
.erm-store-shop-view .erm-store-shop-about__trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #f0f0f0;
}

.erm-store-shop-view .erm-store-shop-about__trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.55rem;
}

.erm-store-shop-view .erm-store-shop-about__trust-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #6b7280;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.erm-store-shop-view .erm-store-shop-about__trust-icon svg {
	display: block;
}

.erm-store-shop-view .erm-store-shop-about__trust-label {
	font-size: 0.78rem;
	font-weight: 500;
	color: #4b5563;
	line-height: 1.4;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 820px) {
	.erm-store-shop-view .erm-store-shop-header {
		padding: 1rem;
	}

	.erm-store-shop-view .erm-store-shop-header__identity {
		align-items: flex-start;
	}

	.erm-store-shop-view .erm-store-shop-header__logo-wrap {
		width: 52px;
		height: 52px;
		flex-basis: 52px;
	}
}

@media (max-width: 680px) {
	.erm-store-shop-view .erm-store-shop-header__actions {
		width: 100%;
	}

	.erm-store-shop-view .erm-store-shop-header__contact {
		width: 100%;
	}

	.erm-store-shop-view .erm-store-shop-search {
		padding: 1rem;
	}

	.erm-store-shop-view .erm-store-shop-search__form {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.erm-store-shop-view .erm-store-shop-search__input {
		min-height: 48px;
		height: 48px;
		font-size: 1rem;
		padding: 0 1rem;
	}

	.erm-store-shop-view .erm-store-shop-search__submit {
		width: 100%;
		min-height: 48px;
		height: 48px;
		font-size: 1rem;
		padding: 0 1.25rem;
	}

	.erm-store-shop-view .erm-store-shop-toolbar {
		flex-direction: column;
		align-items: flex-start;
		padding: 0.75rem 0.9rem;
		gap: 0.65rem;
	}

	.erm-store-shop-view .erm-store-shop-toolbar__actions {
		width: 100%;
		justify-content: space-between;
	}

	.erm-store-shop-view .erm-store-shop-toolbar__sort .woocommerce-ordering select {
		min-width: 155px;
	}

	.erm-store-shop-view .erm-store-shop-about {
		padding: 1.1rem 1rem 1.25rem;
	}

	.erm-store-shop-view .erm-store-shop-about__trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem;
	}
}
