/**
 * Shop listing — professional refresh
 * Palette: sage #bec5b3, gold #b08d57 / #d4af37, cream #f9f7f2, ink #252525, muted #515b5b
 */

.shop-page {
	--sage: #bec5b3;
	--gold: #b08d57;
	--gold-light: #d4af37;
	--cream: #f9f7f2;
	--ink: #252525;
	--muted: #515b5b;
	--line: #e8e6e1;
	--white: #ffffff;
	color: var(--ink);
}

.shop-page.shop-list {
	margin-top: 0;
	padding: 28px 0 48px;
	background: var(--white);
}

.shop-page .container {
	max-width: 1400px;
}

/* ── Sidebar filters ── */
.shop-page .sidebar-filter {
	padding-right: 28px;
	font-family: avenirregular, sans-serif;
}

.shop-page .sidebar-filter .filter-by {
	font-family: playfair_displayregular, 'Playfair Display', serif;
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--ink);
	padding: 0;
	margin: 0 0 4px;
}

.shop-page .clear-filter-sidebar {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gold) !important;
	padding: 0;
	border: 0;
	background: transparent;
	text-decoration: none;
}

.shop-page .clear-filter-sidebar:hover {
	color: #967341 !important;
	text-decoration: underline;
}

.shop-page .sidebar-filter .registerForm {
	padding-top: 16px;
	border-top: 1px solid var(--line);
	margin-top: 12px;
}

.shop-page .nav .filter_custom label {
	background: var(--cream) !important;
	color: var(--ink) !important;
	border: 1px solid var(--line);
	border-radius: 0;
	padding: 12px 14px;
	font-size: 12px;
	letter-spacing: 0.1em;
	margin-bottom: 6px;
}

.shop-page .nav .filter_custom label:hover {
	background: var(--sage) !important;
	color: var(--white) !important;
	border-color: var(--sage);
}

.shop-page .nav .filter_custom .group-list label {
	background: transparent !important;
	border: 0;
	color: var(--muted) !important;
	padding: 6px 4px;
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
}

.shop-page .nav .filter_custom .group-list label:hover {
	background: transparent !important;
	color: var(--ink) !important;
	border-color: transparent;
}

/* ── Listing header ── */
.shop-page .shop-listing-head {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}

.shop-page .rugs-headding {
	font-family: playfair_displayregular, 'Playfair Display', serif;
	font-size: clamp(28px, 3vw, 36px);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
	line-height: 1.2;
	margin: 0 0 10px;
	padding: 0;
}

.shop-page .shop-listing-head > h2 {
	font-family: playfair_displayregular, 'Playfair Display', serif;
	font-size: 18px;
	font-style: italic;
	font-weight: 400;
	color: var(--gold);
	margin: 0 0 16px;
	letter-spacing: 0;
	text-transform: none;
}

.shop-page .shop-intro {
	font-family: avenirregular, sans-serif;
}

.shop-page .shop-intro > p {
	font-size: 15px;
	line-height: 1.75;
	color: var(--muted);
	margin: 0 0 12px;
}

.shop-page .shop-intro h4 {
	font-family: playfair_displayregular, 'Playfair Display', serif;
	font-size: 16px;
	font-weight: 400;
	color: var(--ink);
	margin: 20px 0 8px;
	letter-spacing: 0.02em;
}

.shop-page .shop-intro h4:first-of-type {
	margin-top: 4px;
}

/* ── Filter tags ── */
.shop-page .filter-tags-region,
.shop-page .rugs-tab {
	margin: 0 0 20px;
}

.shop-page .rugs-tab > a:first-child {
	font-family: avenirregular, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	display: inline-block;
	margin-bottom: 8px;
}

.shop-page .filter-tag,
.shop-page .rugs-tab a.filter-tag,
.shop-page #filter-tags-region a.filter-tag {
	display: inline-block;
	font-family: avenirregular, sans-serif;
	font-size: 11px !important;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--sage) !important;
	color: var(--ink) !important;
	border: 0;
	border-radius: 0;
	padding: 6px 12px !important;
	margin: 0 6px 8px 0 !important;
	box-shadow: none !important;
}

/* ── Product grid ── */
.shop-page .shop-product-grid {
	margin-left: -10px;
	margin-right: -10px;
}

.shop-page .shop-product-grid > [class*="col-"] {
	padding-left: 10px;
	padding-right: 10px;
	margin-bottom: 20px;
}

.shop-page .product-detail {
	width: 100%;
	margin: 0;
	padding: 0 !important;
	float: none;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--white);
	box-shadow: none;
	text-align: left;
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.shop-page .product-detail:hover {
	transform: none;
	border-color: var(--sage);
	box-shadow: 0 10px 28px rgba(37, 37, 37, 0.08);
	z-index: 2;
	background: var(--white);
}

.shop-page .product-detail > a {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
	text-decoration: none;
}

.shop-page .product-thumb {
	position: relative;
	background: var(--cream);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shop-page .product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.shop-page .product-detail:hover .product-thumb img {
	transform: scale(1.03);
}

.shop-page .product-card-body {
	padding: 16px 16px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
}

.shop-page .product-detail h3,
.shop-page .product-card-title {
	font-family: playfair_displayregular, 'Playfair Display', serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ink);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.shop-page .product-name {
	font-family: avenirregular, sans-serif;
	font-size: 12px !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted) !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: left !important;
}

.shop-page .product-prize {
	font-family: avenirregular, sans-serif;
	font-size: 16px !important;
	font-weight: 700;
	color: var(--gold) !important;
	margin: 6px 0 0 !important;
	padding: 0;
	letter-spacing: 0.02em;
}

/* Size / color listing cards (product_box markup) */
.shop-page .product_box.product-detail > a {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
	text-decoration: none;
}

.shop-page .product_box .embed-responsive {
	background: var(--cream);
	overflow: hidden;
	margin: 0;
	padding-bottom: 100%;
}

.shop-page .product_box .embed-responsive-item,
.shop-page .product_box .embed-responsive img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.shop-page .product_box .product_info {
	padding: 16px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.shop-page .product_box .product_info h3 {
	font-family: playfair_displayregular, 'Playfair Display', serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ink);
	margin: 0;
}

.shop-page .product_box .product_info > div {
	font-family: avenirregular, sans-serif;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--muted);
}

.shop-page .product_box .product_info .price {
	margin-top: 4px;
}

.shop-page .product_box .product_info .price strong {
	font-family: avenirregular, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--gold);
	letter-spacing: 0.02em;
}

.shop-page .product_box .product_info .price span {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-top: 2px;
}

.shop-page .product_box .product_info .price strike {
	color: var(--muted);
	opacity: 0.8;
}

.shop-page .category-title {
	font-family: playfair_displayregular, 'Playfair Display', serif;
	font-size: clamp(28px, 3vw, 36px);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
	line-height: 1.2;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
}

/* ── Pagination ── */
.shop-page .shop-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
	padding: 20px 0 4px;
	border-top: 1px solid var(--line);
}

.shop-page .shop-pagination__meta {
	font-family: avenirregular, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
	margin: 0;
}

.shop-page .shop-pagination__nav {
	margin-left: auto;
}

.shop-page .shop-pagination .pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shop-page .shop-pagination .pagination > li {
	display: inline-flex;
	margin: 0;
	padding: 0;
	font-size: 13px;
	list-style: none;
}

.shop-page .shop-pagination .pagination > li > a,
.shop-page .shop-pagination .pagination > li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px !important;
	font-family: avenirregular, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	color: var(--ink) !important;
	background: var(--white) !important;
	border: 1px solid var(--line) !important;
	border-radius: 0;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Override global FontAwesome ::before/::after on paginator arrows */
.shop-page .shop-pagination .pagination .prev::before,
.shop-page .shop-pagination .pagination .next::after,
.shop-page .shop-pagination .pagination .first::before,
.shop-page .shop-pagination .pagination .last::after {
	content: none !important;
	display: none !important;
}

.shop-page .shop-pagination .pagination > li > a:hover {
	background: var(--cream) !important;
	border-color: var(--gold) !important;
	color: var(--ink) !important;
}

.shop-page .shop-pagination .pagination > li.active > a,
.shop-page .shop-pagination .pagination > li.active > span {
	background: var(--sage) !important;
	border-color: var(--sage) !important;
	color: var(--ink) !important;
	cursor: default;
}

.shop-page .shop-pagination .pagination > li.disabled > a,
.shop-page .shop-pagination .pagination > li.disabled > span {
	opacity: 0.4;
	pointer-events: none;
	background: var(--cream) !important;
	border-color: var(--line) !important;
	color: var(--muted) !important;
}

.shop-page .shop-pagination .pagination > li.first > a,
.shop-page .shop-pagination .pagination > li.last > a,
.shop-page .shop-pagination .pagination > li.prev > a,
.shop-page .shop-pagination .pagination > li.next > a {
	font-size: 16px;
	font-weight: 400;
	color: var(--muted) !important;
}

.shop-page .shop-pagination .pagination > li.first > a:hover,
.shop-page .shop-pagination .pagination > li.last > a:hover,
.shop-page .shop-pagination .pagination > li.prev > a:hover,
.shop-page .shop-pagination .pagination > li.next > a:hover {
	color: var(--ink) !important;
	border-color: var(--gold) !important;
}

.shop-page .shop-empty {
	font-family: avenirregular, sans-serif;
	padding: 48px 24px;
	text-align: center;
	color: var(--muted);
	border: 1px dashed var(--line);
	background: var(--cream);
}

/* Mobile filter trigger */
.shop-page .mob_filter h4 {
	font-family: avenirregular, sans-serif;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink);
	background: var(--cream);
	border: 1px solid var(--line);
	padding: 12px 16px;
	margin: 0 0 16px;
}

@media (max-width: 991px) {
	.shop-page .sidebar-filter {
		padding-right: 15px;
	}

	.shop-page .shop-pagination {
		flex-direction: column;
		align-items: flex-start;
	}

	.shop-page .shop-pagination__nav {
		margin-left: 0;
		width: 100%;
	}

	.shop-page .shop-pagination .pagination {
		justify-content: flex-start;
	}
}

@media (max-width: 767px) {
	.shop-page.shop-list {
		padding: 16px 0 36px;
	}

	.shop-page .product-card-body {
		padding: 12px;
	}

	.shop-page .product-card-title {
		font-size: 13px;
	}
}
