/* 4Deers Shop All page — deliberately scoped to avoid affecting other templates. */
.fourdeers-shop-page,
.fourdeers-shop-page * {
	box-sizing: border-box;
}

.fourdeers-shop-page {
	--shop-forest: #2c4c3b;
	--shop-forest-deep: #1e3328;
	--shop-clay: #d97757;
	--shop-paper: #f9f8f6;
	--shop-sand: #f3f0e7;
	--shop-ink: #202d25;
	--shop-muted: #69736d;
	--shop-line: rgba(44, 76, 59, 0.18);
	min-height: 70vh;
	background: var(--shop-paper);
	color: var(--shop-ink);
}

.fourdeers-shop-shell {
	width: min(calc(100% - 40px), 1400px);
	margin-inline: auto;
}

.fourdeers-shop-hero {
	padding: clamp(64px, 8vw, 118px) 0 clamp(54px, 7vw, 92px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background:
		radial-gradient(circle at 88% 30%, rgba(217, 119, 87, 0.19), transparent 25rem),
		linear-gradient(135deg, var(--shop-forest-deep), var(--shop-forest));
	color: #fff;
}

.fourdeers-shop-kicker {
	margin: 0 0 18px;
	color: #e9b39f;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	line-height: 1.2;
	text-transform: uppercase;
}

.fourdeers-shop-hero h1 {
	margin: 0;
	color: #fff;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(3.2rem, 8vw, 7rem);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 0.95;
}

.fourdeers-shop-intro {
	max-width: 680px;
	margin: 28px 0 0;
	color: rgba(255, 255, 255, 0.74);
	font-size: clamp(1rem, 2vw, 1.2rem);
	line-height: 1.75;
}

.fourdeers-shop-catalog {
	padding: clamp(48px, 7vw, 90px) 0 clamp(80px, 10vw, 140px);
}

.fourdeers-category-nav {
	margin-bottom: 38px;
	border-bottom: 1px solid var(--shop-line);
}

.fourdeers-category-scroll {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding: 0 0 20px;
	scrollbar-width: none;
}

.fourdeers-category-scroll::-webkit-scrollbar {
	display: none;
}

.fourdeers-category-link {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 17px;
	border: 1px solid var(--shop-line);
	border-radius: 999px;
	color: var(--shop-ink);
	font-size: 0.76rem;
	font-weight: 750;
	letter-spacing: 0.025em;
	text-decoration: none;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.fourdeers-category-link span {
	display: grid;
	min-width: 19px;
	height: 19px;
	place-items: center;
	border-radius: 50%;
	background: rgba(44, 76, 59, 0.09);
	font-size: 0.62rem;
}

.fourdeers-category-link:hover,
.fourdeers-category-link.is-active {
	border-color: var(--shop-forest);
	background: var(--shop-forest);
	color: #fff;
}

.fourdeers-category-link.is-active span,
.fourdeers-category-link:hover span {
	background: rgba(255, 255, 255, 0.16);
}

.fourdeers-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 34px;
}

.fourdeers-shop-page .woocommerce-result-count,
.fourdeers-shop-page .woocommerce-ordering {
	float: none;
	margin: 0;
}

.fourdeers-shop-page .woocommerce-result-count {
	color: var(--shop-muted);
	font-size: 0.78rem;
	line-height: 1.5;
}

.fourdeers-shop-page .woocommerce-ordering select {
	min-width: 220px;
	height: 46px;
	margin: 0;
	padding: 0 42px 0 15px;
	border: 1px solid var(--shop-line);
	border-radius: 0;
	background-color: #fff;
	color: var(--shop-ink);
	font: 650 0.78rem/1.2 Inter, sans-serif;
	cursor: pointer;
}

.fourdeers-shop-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(34px, 4vw, 60px) clamp(16px, 2.4vw, 34px);
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.fourdeers-shop-page ul.products::before,
.fourdeers-shop-page ul.products::after {
	display: none !important;
}

.fourdeers-shop-page ul.products li.product {
	position: relative;
	display: flex;
	float: none !important;
	flex-direction: column;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	background: transparent;
}

.fourdeers-shop-page li.product .woocommerce-LoopProduct-link {
	display: block;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.fourdeers-shop-page ul.products li.product a img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 20px !important;
	aspect-ratio: 4 / 5;
	background: var(--shop-sand);
	object-fit: cover;
	transition: filter 260ms ease, transform 420ms cubic-bezier(0.2, 0.72, 0.25, 1);
}

.fourdeers-shop-page ul.products li.product:hover a img {
	filter: saturate(1.04) contrast(1.02);
	transform: scale(1.025);
}

.fourdeers-shop-page ul.products li.product .onsale {
	top: 12px;
	right: auto;
	left: 12px;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 8px 10px;
	border-radius: 2px;
	background: var(--shop-clay);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	line-height: 1;
	text-transform: uppercase;
}

.fourdeers-shop-page ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	min-height: 2.8em;
	margin: 0;
	padding: 0 !important;
	overflow: hidden;
	color: var(--shop-ink);
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1rem, 1.6vw, 1.3rem);
	font-weight: 600;
	letter-spacing: -0.018em;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.fourdeers-shop-page ul.products li.product .star-rating {
	margin: 12px 0 0;
	color: var(--shop-clay);
	font-size: 0.75rem;
}

.fourdeers-shop-page ul.products li.product .price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-height: 28px;
	margin: 12px 0 18px;
	color: var(--shop-forest);
	font-size: 0.9rem;
	font-weight: 750;
	line-height: 1.5;
}

.fourdeers-shop-page ul.products li.product .price del {
	color: var(--shop-muted);
	font-size: 0.8em;
	opacity: 0.72;
}

.fourdeers-shop-page ul.products li.product .price ins {
	color: var(--shop-clay);
	font-weight: 800;
	text-decoration: none;
}

.fourdeers-shop-page ul.products li.product .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	margin: auto 0 0;
	padding: 11px 16px;
	border: 1px solid var(--shop-forest);
	border-radius: 0;
	background: transparent;
	color: var(--shop-forest);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	transition: background-color 180ms ease, color 180ms ease;
}

.fourdeers-shop-page ul.products li.product .button:hover,
.fourdeers-shop-page ul.products li.product .button:focus-visible {
	background: var(--shop-forest);
	color: #fff;
}

.fourdeers-shop-page ul.products li.product .added_to_cart {
	margin-top: 10px;
	color: var(--shop-forest);
	font-size: 0.75rem;
	font-weight: 750;
	text-align: center;
}

.fourdeers-shop-page .woocommerce-pagination {
	margin-top: clamp(58px, 7vw, 90px);
}

.fourdeers-shop-page .woocommerce-pagination ul.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 0;
}

.fourdeers-shop-page .woocommerce-pagination ul.page-numbers li {
	border: 0;
}

.fourdeers-shop-page .woocommerce-pagination .page-numbers a,
.fourdeers-shop-page .woocommerce-pagination .page-numbers span {
	display: grid;
	min-width: 44px;
	height: 44px;
	place-items: center;
	padding: 0 12px;
	border: 1px solid var(--shop-line);
	background: transparent;
	color: var(--shop-ink);
	font-size: 0.78rem;
	font-weight: 750;
}

.fourdeers-shop-page .woocommerce-pagination .page-numbers a:hover,
.fourdeers-shop-page .woocommerce-pagination .page-numbers .current {
	border-color: var(--shop-forest);
	background: var(--shop-forest);
	color: #fff;
}

.fourdeers-shop-notice,
.fourdeers-no-products {
	padding: clamp(38px, 6vw, 70px);
	background: var(--shop-sand);
	text-align: center;
}

.fourdeers-shop-notice h2,
.fourdeers-no-products h2 {
	margin: 0 0 12px;
	color: var(--shop-forest);
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.8rem, 4vw, 3rem);
}

.fourdeers-shop-page .woocommerce-info,
.fourdeers-shop-page .woocommerce-message,
.fourdeers-shop-page .woocommerce-error {
	margin: 0 0 28px;
	border-top-color: var(--shop-clay);
	background: #fff;
}

.fourdeers-shop-page :focus-visible {
	outline: 3px solid rgba(217, 119, 87, 0.65);
	outline-offset: 3px;
}

@media (max-width: 1099px) {
	.fourdeers-shop-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 799px) {
	.fourdeers-shop-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.fourdeers-shop-shell {
		width: min(calc(100% - 28px), 1400px);
	}

	.fourdeers-shop-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
	}

	.fourdeers-shop-page .woocommerce-ordering,
	.fourdeers-shop-page .woocommerce-ordering select {
		width: 100%;
	}

	.fourdeers-shop-page ul.products {
		gap: 38px 14px;
	}

	.fourdeers-shop-page ul.products li.product .woocommerce-loop-product__title {
		font-size: 1rem;
	}
}

@media (max-width: 560px) {
	.fourdeers-shop-page ul.products {
		grid-template-columns: 1fr;
		gap: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fourdeers-shop-page *,
	.fourdeers-shop-page *::before,
	.fourdeers-shop-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
