.shop-page {
	background-color: var(--color-white);
}

.shop-page__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 5rem; /* 80px */
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 5rem var(--space-inline) 7.5rem; /* 80px top, 120px bottom */
}

.shop-page__sidebar {
	flex: 0 0 22.8125rem; /* 365px */
	max-width: 22.8125rem;
}

.shop-page__title {
	margin: 0 0 5rem; /* 80px */
	font-family: var(--font-serif);
	font-size: 6.25rem; /* 100px */
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.0625rem; /* 1px */
	text-transform: uppercase;
	color: var(--color-dark);
}

.shop-page__head {
	display: block;
}

.shop-page__filter-btn {
	display: none;
}

.shop-page__main {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 62.875rem; /* 1006px — Figma 1003:6535, two 493px cards + 20px gap */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5rem; /* 80px */
}

.shop-page__empty {
	margin: 0;
	font-size: var(--text-body);
	text-transform: uppercase;
	color: var(--color-dark);
}

/* Filters */
.shop-filters {
	display: flex;
	flex-direction: column;
	gap: 5rem; /* 80px */
	margin: 0;
	padding: 0;
	border: 0;
}

.shop-filters__group {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	min-inline-size: 0; /* Safari fieldset quirk */
}

.shop-filters__title {
	display: block;
	float: none; /* Safari <legend> */
	width: 100%;
	max-width: 100%;
	margin: 0 0 2rem; /* 32px */
	padding: 0;
	font-family: var(--font-serif);
	font-size: 1.375rem; /* 22px */
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--color-dark);
}

.shop-filters__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem; /* 12px */
	margin: 0;
	padding: 0;
	list-style: none;
}

.shop-filters__item {
	margin: 0;
}

.shop-filters__label {
	display: flex;
	align-items: center;
	gap: 0.875rem; /* 14px */
	min-height: 1.375rem; /* 22px — match checkbox */
	cursor: pointer;
}

.shop-filters__label input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.shop-filters__checkbox {
	position: relative;
	flex-shrink: 0;
	box-sizing: border-box;
	width: 1.375rem; /* 22px — Figma Checkbox 1169:5990 */
	height: 1.375rem;
	border: 0.0625rem solid var(--color-dark);
	background-color: transparent;
}

.shop-filters__label input:checked + .shop-filters__checkbox {
	background-color: var(--color-dark);
	border-color: var(--color-dark);
}

.shop-filters__label input:checked + .shop-filters__checkbox::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 45%;
	width: 0.3125rem; /* 5px */
	height: 0.5625rem; /* 9px */
	border: solid var(--color-white);
	border-width: 0 0.125rem 0.125rem 0;
	transform: translate(-50%, -50%) rotate(45deg);
}

.shop-filters__text {
	display: block;
	font-family: var(--font-sans);
	font-size: var(--text-body);
	font-weight: 500;
	line-height: 1.375rem; /* lock to checkbox height — stable on Safari/macOS */
	letter-spacing: var(--letter-spacing-link);
	text-transform: uppercase;
	color: var(--color-dark);
	text-box-trim: trim-both;
	text-box-edge: cap alphabetic;
}

/* Product grid */
.woocommerce ul.products.shop-page__products,
.shop-page__main ul.products {
	display: flex;
	flex-wrap: wrap;
	gap: 5rem 1.25rem; /* 80px vertical, 20px horizontal */
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products.shop-page__products > li.product.shop-product,
.shop-page__main ul.products > li.product.shop-product {
	float: none;
	width: calc(50% - 0.625rem);
	margin: 0 !important;
	padding: 0;
	clear: none;
}

.woocommerce ul.products.shop-page__products::before,
.woocommerce ul.products.shop-page__products::after,
.shop-page__main ul.products::before,
.shop-page__main ul.products::after {
	display: none;
}

.shop-product {
	display: flex;
	flex-direction: column;
	gap: 2.5rem; /* 40px */
	width: 100%;
	margin: 0 !important;
	padding: 0;
}

.shop-product__image {
	position: relative;
	width: 100%;
	height: 25rem; /* 400px — Figma 1002:5714 */
	overflow: hidden;
	background-color: var(--color-stroke);
}

.shop-product__image-link,
.shop-product__photo {
	display: block;
	width: 100%;
	height: 100%;
}

.shop-product__photo {
	object-fit: cover;
}

.shop-product__meta {
	display: flex;
	align-items: center;
	gap: 1.625rem; /* 26px */
}

.shop-product__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 0.625rem; /* 12px 10px */
	background-color: var(--color-stroke);
	border: 0.0625rem solid var(--color-stroke);
	font-size: var(--text-body);
	font-weight: 500;
	line-height: var(--line-height-ui);
	text-transform: uppercase;
	color: var(--color-dark);
}

.shop-product__location {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem; /* 12px */
	font-size: var(--text-body);
	font-weight: 500;
	line-height: var(--line-height-ui);
	text-transform: uppercase;
	color: var(--color-dark);
}

.shop-product__location img {
	display: block;
	flex-shrink: 0;
}

.shop-product__details {
	display: flex;
	flex-direction: column;
	gap: 2.5rem; /* 40px — price group to volume, Figma 307:444 */
	text-transform: uppercase;
	color: var(--color-dark);
}

.shop-product__offer {
	display: flex;
	flex-direction: column;
	gap: 1.5rem; /* 24px — title to price, Figma 1772:11985 */
}

.shop-product__name {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 1.375rem; /* 22px */
	font-weight: 400;
	line-height: 1.1;
	text-box-trim: trim-both;
	text-box-edge: cap alphabetic;
}

.shop-product__name a {
	color: inherit;
	text-decoration: none;
}

.shop-product__name a:hover {
	color: var(--color-muted);
	text-decoration: none;
}

.shop-product__price {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 1.875rem; /* 30px */
	font-weight: 400;
	line-height: 1.1;
	text-box-trim: trim-both;
	text-box-edge: cap alphabetic;
}

.shop-product__price .price,
.shop-product__price .woocommerce-Price-amount {
	margin: 0;
	font-family: inherit;
}

.shop-product__volume {
	margin: 0;
	font-size: var(--text-link);
	font-weight: 500;
	line-height: var(--line-height-ui);
	letter-spacing: var(--letter-spacing-link);
	text-box-trim: trim-both;
	text-box-edge: cap alphabetic;
}

.shop-product__volume--empty {
	visibility: hidden;
}

.shop-product__actions {
	width: 100%;
}

.shop-product__form {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 1.3125rem; /* 21px */
}

.product-size {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.625rem;
	flex: 1 0 100%;
	width: 100%;
	margin: 0;
}

.product-size__label {
	font-size: var(--text-link);
	font-weight: 500;
	line-height: var(--line-height-ui);
	letter-spacing: var(--letter-spacing-link);
	text-transform: uppercase;
	color: var(--color-dark);
}

.product-size__select {
	width: 100%;
	height: 3.375rem;
	padding: 0 1rem;
	border: 0.0625rem solid var(--color-stroke);
	border-radius: 0;
	background-color: var(--color-white);
	font-family: inherit;
	font-size: var(--text-link);
	font-weight: 500;
	line-height: var(--line-height-ui);
	letter-spacing: var(--letter-spacing-link);
	text-transform: uppercase;
	color: var(--color-dark);
}

.shop-product__quantity {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 8.75rem; /* 140px */
	height: 3.375rem; /* 54px */
	padding: 0 1.375rem; /* 22px */
	border: 0.0625rem solid var(--color-stroke);
	background-color: var(--color-white);
}

.shop-product__quantity--disabled {
	opacity: 0.5;
}

.shop-product__qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: var(--text-link);
	font-weight: 500;
	line-height: var(--line-height-ui);
	letter-spacing: var(--letter-spacing-link);
	text-transform: uppercase;
	color: var(--color-dark);
	cursor: pointer;
}

.shop-product__qty-input {
	width: 2rem;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: var(--text-link);
	font-weight: 500;
	line-height: var(--line-height-ui);
	letter-spacing: var(--letter-spacing-link);
	text-align: center;
	text-transform: uppercase;
	color: var(--color-dark);
	-moz-appearance: textfield;
}

.shop-product__qty-input:focus {
	outline: none;
	box-shadow: none;
}

.shop-product__qty-input::-webkit-outer-spin-button,
.shop-product__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.shop-product__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
	height: 3.375rem; /* 54px */
	padding: 0 3.125rem; /* 50px */
	border: 0;
	background-color: var(--color-dark);
	font-size: var(--text-link);
	font-weight: 500;
	line-height: var(--line-height-ui);
	letter-spacing: var(--letter-spacing-link);
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--color-white);
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.shop-product__add:hover {
	opacity: 0.85;
	color: var(--color-white);
	text-decoration: none;
}

.shop-product__add--out {
	flex: 1 1 auto;
	background-color: var(--color-stroke);
	color: var(--color-dark);
	opacity: 0.5;
	cursor: default;
}

.shop-product__actions--out {
	display: flex;
	align-items: flex-end;
	gap: 1.3125rem;
}

/* Pagination */
.shop-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem; /* 8px */
}

.shop-pagination__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.375rem; /* 54px */
	height: 3.375rem;
	border: 0.0625rem solid var(--color-stroke);
	font-size: var(--text-body);
	font-weight: 500;
	line-height: var(--line-height-ui);
	text-transform: uppercase;
	color: var(--color-dark);
	text-decoration: none;
}

.shop-pagination__item:hover {
	color: var(--color-muted);
	text-decoration: none;
}

.shop-pagination__item.is-active,
.shop-pagination__item.is-active:hover {
	background-color: var(--color-stroke);
	border-color: var(--color-stroke);
	color: var(--color-dark);
	text-decoration: none;
}

.shop-pagination__item--arrow {
	padding: 0;
}

.shop-pagination__item.is-disabled {
	opacity: 0.35;
	cursor: default;
}

.shop-pagination__arrow {
	display: block;
	width: 0.5rem;
	height: 0.5rem;
	border-top: 0.125rem solid currentColor;
	border-right: 0.125rem solid currentColor;
}

.shop-pagination__arrow--prev {
	transform: rotate(-135deg);
}

.shop-pagination__arrow--next {
	transform: rotate(45deg);
}

/* Mobile filter modal */
.shop-filter-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	overflow: hidden;
}

.shop-filter-modal[hidden] {
	display: none;
}

.shop-filter-modal__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.8);
}

.shop-filter-modal__panel {
	position: absolute;
	top: 7.5rem; /* 120px */
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100vh - 7.5rem);
	max-height: calc(100dvh - 7.5rem);
	background-color: var(--color-white);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.shop-filter-modal__head {
	display: flex;
	flex-shrink: 0;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2.4375rem; /* 39px */
	padding: 1.875rem 1.25rem; /* 30px 20px */
	border-bottom: 0.0625rem solid var(--color-stroke);
}

.shop-filter-modal__title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--font-serif);
	font-size: 1.875rem; /* 30px */
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--color-dark);
}

.shop-filter-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.5rem; /* 24px */
	height: 1.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.shop-filter-modal__close-icon {
	position: relative;
	display: block;
	width: 1rem; /* 16px */
	height: 1rem;
}

.shop-filter-modal__close-icon::before,
.shop-filter-modal__close-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1.2725rem; /* ~20.37px */
	height: 0.1414rem; /* ~2.26px */
	background-color: var(--color-dark);
	transform-origin: center;
}

.shop-filter-modal__close-icon::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.shop-filter-modal__close-icon::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.shop-filters--modal {
	display: flex;
	flex-direction: column;
	gap: 1.875rem; /* 30px — filters to button */
	margin: 0;
	padding: 1.875rem 0 0; /* 30px below modal head */
	border: 0;
}

.shop-filter-modal__body {
	display: flex;
	flex-direction: column;
	gap: 1.875rem; /* 30px */
	padding: 0 1.25rem; /* 20px */
}

.shop-filters--modal .shop-filters__group {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

.shop-filters--modal .shop-filters__title {
	display: block;
	width: 100%;
	margin: 0 0 1.25rem; /* 20px — title to checkboxes */
	padding: 0;
	float: none;
}

.shop-filters--modal .shop-filters__list {
	gap: 0;
	margin: 0;
}

.shop-filters--modal .shop-filters__label {
	padding: 0.5rem 0; /* 8px */
}

.shop-filters--modal .shop-filters__checkbox {
	width: 1.375rem; /* 22px */
	height: 1.375rem;
}

.shop-filter-modal__footer {
	flex-shrink: 0;
	padding: 0 1.25rem 1.25rem; /* 20px */
}

.shop-filter-modal__actions {
	display: flex;
	width: 100%;
}

.shop-filter-modal__apply,
.shop-filter-modal__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 3.375rem; /* 54px */
	padding: 0 3.125rem; /* 50px */
	border: 0.0625rem solid transparent;
	font-family: var(--font-sans);
	font-size: var(--text-link);
	font-weight: 500;
	line-height: var(--line-height-ui);
	letter-spacing: var(--letter-spacing-link);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.shop-filter-modal__apply {
	background-color: var(--color-dark);
	color: var(--color-white);
}

.shop-filter-modal__clear {
	display: none;
	background-color: var(--color-white);
	border-color: var(--color-stroke);
	color: var(--color-dark);
}

.shop-filter-modal__actions--applied {
	gap: 0.5rem; /* 8px */
}

.shop-filter-modal__actions--applied .shop-filter-modal__apply,
.shop-filter-modal__actions--applied .shop-filter-modal__clear {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}

.shop-filter-modal__actions--applied .shop-filter-modal__clear {
	display: inline-flex;
}

body.is-shop-filter-open {
	overflow: hidden;
}

html.is-shop-filter-open {
	overflow: hidden;
}

html.is-shop-filter-open body {
	position: fixed;
	width: 100%;
}

@media (max-width: 75rem) {
	.shop-page__inner {
		flex-direction: column;
		gap: 2.5rem; /* 40px — head to first product */
		padding-top: 3.75rem; /* 60px below 64px header */
		padding-bottom: 5rem;
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.shop-page__sidebar {
		flex: none;
		width: 100%;
		max-width: none;
	}

	.shop-page__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1.25rem;
		width: 100%;
		margin-bottom: 0;
	}

	.shop-page__title {
		margin: 0;
		font-size: 3rem; /* 48px */
		line-height: 1.1;
		letter-spacing: 0;
	}

	.shop-page__filter-btn {
		display: inline-flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem; /* 8px */
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.shop-page__filter-btn-text {
		font-size: var(--text-link);
		font-weight: 500;
		line-height: var(--line-height-ui);
		letter-spacing: var(--letter-spacing-link);
		text-transform: uppercase;
		color: var(--color-dark);
	}

	.shop-page__filter-btn::after {
		content: "";
		display: block;
		width: 100%;
		height: 0.0625rem;
		background-color: var(--color-dark);
	}

	.shop-page__sidebar-filters {
		display: none;
	}

	.shop-page__main {
		align-items: stretch;
		width: 100%;
		max-width: none;
		gap: 3.75rem; /* 60px — products to pagination */
	}

	.woocommerce ul.products.shop-page__products,
	.shop-page__main ul.products {
		gap: 3.75rem; /* 60px between products */
	}

	.woocommerce ul.products.shop-page__products > li.product.shop-product,
	.shop-page__main ul.products > li.product.shop-product {
		width: 100%;
	}

	.shop-filters {
		gap: 3.75rem;
	}

	.shop-product__image {
		height: 23.75rem; /* 380px — Figma 1170:7519 */
	}

	.shop-product {
		gap: 1.875rem; /* 30px */
	}

	.shop-product__details {
		gap: 1.875rem; /* 30px */
	}

	.shop-product__offer {
		gap: 1.875rem; /* 30px — equal stack on mobile Figma */
	}

	.shop-product__form,
	.shop-product__actions--out {
		flex-direction: row;
		align-items: flex-end;
		gap: 0.75rem; /* 12px */
	}

	.shop-product__quantity {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}

	.shop-product__add,
	.shop-product__add--out {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}
}

@media (min-width: 75.0625rem) {
	.shop-filter-modal {
		display: none !important;
	}
}
