/* ==========================================================================
   Avhoron Shop Pages – scoped to .avs-shop / .avs-catrow
   ========================================================================== */
.avs-shop,
.avs-catrow { --avs-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; --avs-accent: #7a0d16; }

/* ---------- Remove the theme's empty archive banner & extra top space ---------- */
.avs-listing .ast-archive-entry-banner,
.avs-listing .woocommerce-products-header,
.avs-listing .ast-archive-description { display: none !important; }
.avs-listing #primary,
.avs-listing .site-main { margin-top: 0 !important; padding-top: 0 !important; }
.avs-listing .site-content > .ast-container { padding-top: 0 !important; }
.avs-listing #primary { margin-bottom: clamp(40px, 4vw, 70px) !important; }

/* ---------- Compact category row (reuses Our Collection) ---------- */
.avs-catrow { margin: 8px 0 18px; }
.avs-catrow .avhoron-collection {
	--avc-cols-d: 11 !important;
	--avc-cols-t: 6.3 !important;
	--avc-cols-m: 4.3 !important;
	--avc-gap: 16px !important;
	--avc-radius: 12px !important;
	--avc-pt: 18px !important;
	--avc-pb: 14px !important;
	--avc-side: 0px !important;
}
.avs-catrow .avhoron-collection .avhoron-collection__name { font-size: 12px; margin-top: 8px; font-weight: 500; }
@media (max-width: 544px) {
	.avs-catrow .avhoron-collection { --avc-side: 12px !important; }
	.avs-catrow .avhoron-collection .avhoron-collection__name { font-size: 11px; }
}

/* ---------- Two-column layout ---------- */
.avs-shop {
	display: grid;
	grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
	font-family: var(--avs-font);
}
.avs-shop.is-sidebar-right { grid-template-columns: minmax(0, 1fr) minmax(200px, 250px); }
.avs-shop.is-sidebar-right .avs-sidebar { order: 2; }
.avs-shop .avs-main { min-width: 0; }

/* ---------- Sidebar widgets ---------- */
.avs-shop .avs-sidebar { position: sticky; top: 24px; font-size: 13px; color: #2a2a2a; }
.avs-shop .avs-sidebar__head { display: none; }
.avs-shop .avs-widget { margin: 0 0 30px; }
.avs-shop .avs-widget__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--avs-font);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #111;
}

.avs-shop .avs-cats__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 0;
	cursor: pointer;
	list-style: none;
	font-size: 13px;
	color: #2a2a2a;
}
.avs-shop .avs-cats__toggle::-webkit-details-marker { display: none; }
.avs-shop .avs-cats__icon { position: relative; width: 12px; height: 12px; }
.avs-shop .avs-cats__icon::before,
.avs-shop .avs-cats__icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 12px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
.avs-shop .avs-cats__icon::after { transform: rotate(90deg); }
.avs-shop .avs-cats[open] .avs-cats__icon::after { transform: rotate(0); }
.avs-shop .avs-cats__list {
	margin: 8px 0 0;
	padding: 0 0 0 2px;
	list-style: none;
	max-height: 320px;
	overflow-y: auto;
	scrollbar-width: thin;
}
.avs-shop .avs-cats__list li { margin: 0; padding: 0; list-style: none; }
.avs-shop .avs-cats__list a {
	display: block;
	padding: 5px 0;
	color: #3a3a3a;
	text-decoration: none;
	box-shadow: none;
	transition: color .2s ease;
}
.avs-shop .avs-cats__list a:hover,
.avs-shop .avs-cats__list a.is-current { color: var(--avs-accent); }
.avs-shop .avs-cats__list a.is-current { font-weight: 600; }
.avs-shop .avs-count { color: #9a9a9a; font-size: 12px; }

.avs-shop .avs-check { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; cursor: pointer; font-size: 13px; }
.avs-shop .avs-check input {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: var(--avs-accent);
	cursor: pointer;
}

/* Dual price slider */
.avs-shop .avs-range { position: relative; padding-top: 6px; }
.avs-shop .avs-range__track { position: relative; height: 4px; border-radius: 4px; background: #e6e0db; }
.avs-shop .avs-range__fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #2a2a2a; }
.avs-shop .avs-range__input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 16px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.avs-shop .avs-range__input::-webkit-slider-thumb {
	pointer-events: auto;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	border: 2px solid #2a2a2a;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.avs-shop .avs-range__input::-moz-range-thumb {
	pointer-events: auto;
	width: 13px;
	height: 13px;
	border: 2px solid #2a2a2a;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.avs-shop .avs-range__input::-moz-range-track { background: none; }
.avs-shop .avs-range__labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: #555; }

.avs-shop .avs-popular { margin: 0; padding: 0; list-style: none; }
.avs-shop .avs-popular li { margin: 0 0 14px; padding: 0; list-style: none; }
.avs-shop .avs-popular a { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; box-shadow: none; }
.avs-shop .avs-popular__img { flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; border-radius: 4px; background: #f3ede7; }
.avs-shop .avs-popular__img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.avs-shop .avs-popular__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.avs-shop .avs-popular__name { font-size: 12.5px; font-weight: 600; line-height: 1.4; color: #111; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avs-shop .avs-popular a:hover .avs-popular__name { color: var(--avs-accent); }
.avs-shop .avs-popular__price { font-size: 12px; font-weight: 600; color: #333; }
.avs-shop .avs-popular__price del { color: #999; font-weight: 400; margin-right: 4px; }
.avs-shop .avs-popular__price ins { text-decoration: none; background: none; }

.avs-shop .avs-widget--promo img { display: block; width: 100%; height: auto; margin: 0; border-radius: 4px; }
.avs-shop .avs-widget--about p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #555; }

/* ---------- Page header (inside the layout) ---------- */
.avs-shop .avs-page-header { margin: 0 0 18px; }
.avs-shop .avs-breadcrumb { margin: 0 0 10px; font-size: 12px; color: #777; }
.avs-shop .avs-breadcrumb a { color: #555; text-decoration: none; box-shadow: none; }
.avs-shop .avs-breadcrumb a:hover { color: var(--avs-accent); }
.avs-shop .avs-breadcrumb__sep { margin: 0 8px; color: #bbb; }
.avs-shop .avs-page-title {
	margin: 0;
	padding: 0;
	font-family: var(--avs-font);
	font-size: clamp(17px, 1.2vw, 22px);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #111;
}
.avs-shop .avs-page-desc { margin-top: 8px; font-size: 13px; line-height: 1.7; color: #555; max-width: 70ch; }
.avs-shop .avs-page-desc p { margin: 0 0 .6em; }

/* ---------- Toolbar ---------- */
.avs-shop .avs-toolbar { display: inline-flex; align-items: center; gap: 14px; float: left; margin: 0 18px 18px 0; min-height: 34px; }
.avs-shop .avs-filter-btn { display: none; }
.avs-shop .avs-view { display: inline-flex; gap: 4px; }
.avs-shop .avs-view__btn,
.avs-shop .avs-view__btn:hover,
.avs-shop .avs-view__btn:focus {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #9a9a9a;
	box-shadow: none;
	cursor: pointer;
}
.avs-shop .avs-view__btn svg { width: 17px; height: 17px; }
.avs-shop .avs-view__btn.is-active { color: #111; }
.avs-shop .avs-clear { font-size: 12.5px; color: var(--avs-accent); text-decoration: underline; text-underline-offset: 2px; }
.avs-shop .woocommerce-result-count { font-size: 12.5px; color: #666; line-height: 34px; margin-bottom: 18px; }
.avs-shop .woocommerce-ordering { margin-bottom: 18px; }
.avs-shop .woocommerce-ordering select { font-size: 12.5px; padding: 6px 28px 6px 10px; border-radius: 3px; border-color: #e3dcd5; }
.avs-shop ul.products { clear: both; }

/* ---------- Product grid (matches New Arrivals cards) ---------- */
.avs-shop ul.products,
.woocommerce .avs-shop ul.products {
	display: grid !important;
	grid-template-columns: repeat(var(--avs-cols-d), minmax(0, 1fr)) !important;
	gap: 34px 22px !important;
	margin: 0 !important;
	padding: 0 !important;
}
.avs-shop ul.products::before,
.avs-shop ul.products::after { display: none !important; }
.woocommerce .avs-shop ul.products li.product {
	display: flex;
	flex-direction: column;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	text-align: center;
}
.avs-shop ul.products li.product .astra-shop-summary-wrap { flex: 1; display: flex; flex-direction: column; padding: 0 !important; }
.avs-shop ul.products li.product img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
	margin: 0 0 12px !important;
	transition: transform .5s ease;
}
.avs-shop ul.products li.product .astra-shop-thumbnail-wrap { overflow: hidden; border-radius: 4px; }
@media (hover: hover) {
	.avs-shop ul.products li.product:hover img { transform: scale(1.04); }
}
.avs-shop ul.products li.product .ast-woo-product-category { display: none; }
.avs-shop ul.products li.product a { text-decoration: none; box-shadow: none; }
.avs-shop ul.products li.product .button { box-sizing: border-box; }
.avs-shop ul.products li.product .woocommerce-loop-product__title {
	margin: 0 4px 4px !important;
	padding: 0 !important;
	font-family: var(--avs-font);
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1.4;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.avs-shop ul.products li.product .price {
	margin: 0 0 10px !important;
	font-size: 12.5px !important;
	font-weight: 600;
	color: #1a1a1a !important;
}
.avs-shop ul.products li.product .price del { color: #999 !important; font-weight: 400; margin-right: 5px; }
.avs-shop ul.products li.product .price ins { text-decoration: none; background: none; }
.avs-shop ul.products li.product .button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: calc(100% - 8px);
	height: 34px !important;
	min-height: 0 !important;
	margin: auto 4px 0 !important;
	padding: 0 10px !important;
	border: 0 !important;
	border-radius: 2px !important;
	background: var(--avs-accent) !important;
	color: #fff !important;
	font-family: var(--avs-font) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .06em !important;
	line-height: 1 !important;
	text-transform: uppercase;
}
.avs-shop ul.products li.product .button:hover { filter: brightness(.85); }
.avs-shop ul.products li.product .added_to_cart { display: block; margin-top: 6px; font-size: 12px; color: var(--avs-accent); }
.avs-shop ul.products li.product .onsale {
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 3px 9px !important;
	border-radius: 2px !important;
	background: var(--avs-accent) !important;
	color: #fff !important;
	font-size: 10.5px !important;
	line-height: 1.5 !important;
	text-transform: uppercase;
}

/* List view – one product per row, image left, details right.
   High specificity so the responsive grid rules below can never override it. */
.woocommerce .avs-shop.is-list ul.products,
.avs-shop.is-list ul.products { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; }
.woocommerce .avs-shop.is-list ul.products li.product { flex-direction: row; align-items: center; gap: 22px; text-align: left; min-width: 0; }
.avs-shop.is-list ul.products li.product .astra-shop-thumbnail-wrap { flex: 0 0 180px; width: 180px; min-width: 0; }
.avs-shop.is-list ul.products li.product .astra-shop-summary-wrap { flex: 1 1 auto; min-width: 0; align-items: flex-start; }
.avs-shop.is-list ul.products li.product img { margin: 0 !important; }
.avs-shop.is-list ul.products li.product .woocommerce-loop-product__title { white-space: normal; font-size: 15px !important; margin: 0 0 6px !important; }
.avs-shop.is-list ul.products li.product .price { text-align: left; }
.avs-shop.is-list ul.products li.product .button { width: auto !important; min-width: 180px; margin: 6px 0 0 !important; align-self: flex-start; }
/* Sale label sits on the image (top-left) in list view, clear of the name. */
.woocommerce .avs-shop.is-list ul.products li.product { position: relative; }
.avs-shop.is-list ul.products li.product .astra-shop-thumbnail-wrap { position: relative; }
.woocommerce .avs-shop.is-list ul.products li.product .onsale,
.avs-shop.is-list ul.products li.product .onsale {
	top: 8px !important;
	left: 8px !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	z-index: 3;
}

.avs-shop a:focus-visible,
.avs-shop button:focus-visible,
.avs-shop summary:focus-visible { outline: 2px solid var(--avs-accent); outline-offset: 2px; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
	.woocommerce .avs-shop ul.products,
	.avs-shop ul.products { grid-template-columns: repeat(var(--avs-cols-t), minmax(0, 1fr)) !important; }
	.woocommerce .avs-shop.is-list ul.products,
	.avs-shop.is-list ul.products { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---------- Tablet portrait & mobile: sidebar becomes a drawer ---------- */
@media (max-width: 921px) {
	.avs-shop,
	.avs-shop.is-sidebar-right { grid-template-columns: minmax(0, 1fr); }
	.avs-shop .avs-sidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100002;
		width: min(86vw, 330px);
		padding: 0 22px 30px;
		overflow-y: auto;
		background: #fff;
		box-shadow: 4px 0 30px rgba(0, 0, 0, .15);
		transform: translateX(-105%);
		transition: transform .25s ease;
	}
	.avs-shop .avs-sidebar.is-open { transform: none; }
	.avs-shop .avs-sidebar__head {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 -22px 20px;
		padding: 14px 22px;
		border-bottom: 1px solid #eee;
		background: #fff;
		font-size: 15px;
		font-weight: 600;
	}
	.avs-shop .avs-sidebar__close,
	.avs-shop .avs-sidebar__close:hover,
	.avs-shop .avs-sidebar__close:focus { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 -10px 0 0; padding: 0; border: 0; background: none; color: #111; box-shadow: none; cursor: pointer; }
	.avs-shop .avs-sidebar__close svg { width: 22px; height: 22px; }
	.avs-shop .avs-cats__list { max-height: none; }
	.avs-shop .avs-widget--promo { display: none; }
	.avs-backdrop { position: fixed; inset: 0; z-index: 100001; background: rgba(0, 0, 0, .4); }
	html.avs-lock, html.avs-lock body { overflow: hidden; }

	.avs-shop .avs-filter-btn,
	.avs-shop .avs-filter-btn:hover,
	.avs-shop .avs-filter-btn:focus {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 36px;
		margin: 0;
		padding: 0 14px;
		border: 1px solid #ddd5ce;
		border-radius: 3px;
		background: #fff;
		color: #111;
		box-shadow: none;
		font-family: var(--avs-font);
		font-size: 13px;
		font-weight: 500;
		cursor: pointer;
	}
	.avs-shop .avs-filter-btn svg { width: 16px; height: 16px; }
}
@media (max-width: 544px) {
	.avs-shop ul.products,
	.woocommerce .avs-shop ul.products { grid-template-columns: repeat(var(--avs-cols-m), minmax(0, 1fr)) !important; gap: 24px 12px !important; }
	.avs-shop .avs-toolbar { float: none; display: flex; width: 100%; margin: 0 0 10px; }
	.avs-shop .woocommerce-result-count { float: left; margin: 0 0 14px; line-height: 36px; }
	.avs-shop .woocommerce-ordering { float: right; margin: 0 0 14px; }
	.avs-shop ul.products li.product .button { width: 100%; margin: auto 0 0 !important; height: 36px !important; font-size: 11.5px !important; letter-spacing: .04em !important; }
	.woocommerce .avs-shop.is-list ul.products,
	.avs-shop.is-list ul.products { grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }
	.woocommerce .avs-shop.is-list ul.products li.product { gap: 14px; align-items: flex-start; }
	.avs-shop.is-list ul.products li.product .astra-shop-thumbnail-wrap { flex: 0 0 38%; width: 38%; max-width: 150px; }
	.avs-shop.is-list ul.products li.product .woocommerce-loop-product__title { font-size: 13.5px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.avs-shop.is-list ul.products li.product .button { width: 100% !important; min-width: 0; font-size: 11px !important; }
	.avs-shop.is-list ul.products li.product .onsale { top: 6px !important; left: 6px !important; padding: 2px 7px !important; font-size: 9.5px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.avs-shop * { transition: none !important; }
}
