/**
 * Products page — desktop + mobile.
 */

.page-products .site-main,
body.woocommerce-page .site-main {
	background-color: #fff;
}

.oten-products {
	background: #fff;
}

.oten-products-hero {
	position: relative;
	overflow: hidden;
	background: #f3eee6;
}

.oten-products-hero__media {
	display: block;
	width: 100%;
}

.oten-products-hero__media picture {
	display: block;
	width: 100%;
}

.oten-products-hero__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1520 / 560;
	object-fit: cover;
	object-position: center;
}

.oten-products-hero__content {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	pointer-events: none;
}

.oten-products-hero__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	max-width: min(100%, 280px);
	text-align: center;
}

.oten-products-hero__title {
	margin: 0;
	width: 100%;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--oten-ink);
	text-align: center;
}

.oten-products-hero__subtitle {
	margin: 0;
	width: 100%;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	line-height: 1.5;
	font-weight: 400;
	color: var(--oten-ink);
	text-align: center;
}

.oten-products-hero__mark {
	border-bottom: none;
	padding-bottom: 0;
}

.oten-products-hero__subtitle::after {
	content: "";
	display: block;
	width: 64px;
	height: 2px;
	margin: 6px auto 0;
	background-color: var(--oten-brand);
}

.oten-products-toolbar {
	padding: 16px 0 16px 16px;
}

.oten-products-toolbar__inner {
	box-sizing: border-box;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	overflow-x: auto;
	padding-inline-end: 16px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.oten-products-toolbar__inner::-webkit-scrollbar {
	display: none;
}

.oten-products-toolbar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 0 0 82px;
	width: 82px;
	box-sizing: border-box;
	min-height: 34px;
	padding: 6px 4px;
	border: 1px solid #e1e1e1;
	border-radius: 0;
	background: #fff;
	color: var(--oten-ink);
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 11px;
	line-height: 1.3;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.oten-products-toolbar__btn:hover,
.oten-products-toolbar__btn:focus-visible {
	border-color: var(--oten-ink);
}

.oten-products-toolbar__btn:focus-visible {
	outline: 2px solid var(--oten-brand);
	outline-offset: 2px;
}

.oten-products-toolbar__btn.is-active {
	border-color: var(--oten-black);
	background: var(--oten-black);
	color: #fff;
}

.oten-products-toolbar__btn.is-active .oten-products-toolbar__icon path {
	stroke: #fff;
}

.oten-products-toolbar__icon {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.oten-products-toolbar__clear {
	font-size: 13px;
	line-height: 1;
}

.oten-products-filter-panel {
	box-sizing: border-box;
	margin: 0 16px 8px;
	padding: 16px;
	border: 1px solid #e1e1e1;
	background: #fff;
}

.oten-products-filter-panel[hidden] {
	display: none;
}

.oten-products-filter-panel__fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.oten-products-filter-panel__field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	color: var(--oten-ink);
}

.oten-products-filter-panel__field select {
	min-width: 170px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #e1e1e1;
	border-radius: 0;
	background: #fff;
	color: var(--oten-ink);
	font: inherit;
	cursor: pointer;
}

.oten-products-filter-panel__field select:focus-visible {
	outline: 2px solid var(--oten-brand);
	outline-offset: 1px;
}

.oten-products-filter-panel__price {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 170px;
}

.oten-products-filter-panel__price-input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #e1e1e1;
	border-radius: 0;
	background: #fff;
	color: var(--oten-ink);
	font: inherit;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.oten-products-filter-panel__price-input::-webkit-outer-spin-button,
.oten-products-filter-panel__price-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
}

.oten-products-filter-panel__price-input:focus-visible {
	outline: 2px solid var(--oten-brand);
	outline-offset: 1px;
}

.oten-products-filter-panel__price-sep {
	flex: none;
	color: #9a9a9a;
}

.oten-products-filter-panel__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #e8e8e8;
}

.oten-products-filter-panel__clear {
	color: var(--oten-brand);
	font-family: IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	text-decoration: none;
}

.oten-products-filter-panel__clear:hover,
.oten-products-filter-panel__clear:focus-visible {
	text-decoration: underline;
}

.oten-products-filter-panel__submit {
	position: relative;
	min-width: 112px;
	height: 38px;
	padding: 0 16px;
	border: 0;
	background: var(--oten-brand);
	color: #fff;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	cursor: pointer;
}

.oten-products-filter-panel__submit.is-loading {
	color: transparent;
	cursor: wait;
	pointer-events: none;
}

.oten-products-filter-panel__submit.is-loading::after {
	content: '';
	position: absolute;
	inset: 50% auto auto 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: oten-products-filter-spin 0.7s linear infinite;
}

@keyframes oten-products-filter-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (min-width: 768px) {
	.oten-products-hero__image {
		height: auto;
		aspect-ratio: 1440 / 321;
	}

	.oten-products-hero__content {
		padding: 32px 24px;
	}

	.oten-products-hero__text {
		align-items: flex-start;
		gap: 12px;
		max-width: none;
		text-align: right;
	}

	.oten-products-hero__title {
		font-size: 44px;
		line-height: 1.15;
		text-align: right;
	}

	.oten-products-hero__subtitle {
		font-size: 27px;
		line-height: 1.4;
		text-align: right;
	}

	.oten-products-hero__subtitle::after {
		display: none;
	}

	.oten-products-hero__break {
		display: none;
	}

	.oten-products-hero__mark {
		border-bottom: 3px solid var(--oten-brand);
		padding-bottom: 4px;
	}

	.oten-products-toolbar {
		padding: 28px 0 24px;
	}

	.oten-products-toolbar__inner {
		flex-wrap: wrap;
		gap: 12px;
		width: min(1476px, calc(100% - 60px));
		margin-inline: auto;
		overflow: visible;
		padding-inline-end: 0;
	}

	.oten-products-toolbar__btn {
		flex: 0 0 auto;
		width: auto;
		min-height: 44px;
		padding: 10px 18px;
		gap: 8px;
		font-size: 14px;
	}

	.oten-products-toolbar__icon {
		width: 22px;
		height: 22px;
	}

	.oten-products-filter-panel {
		width: min(1476px, calc(100% - 60px));
		margin: 0 auto 8px;
		padding: 20px 24px;
	}

	.oten-products-filter-panel__fields {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
	}

	.oten-products-filter-panel__field {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
		font-size: 14px;
	}

	.oten-products-filter-panel__field select {
		width: 100%;
		height: 44px;
		font-size: 14px;
	}

	.oten-products-filter-panel__field--price {
		grid-column: span 2;
	}

	.oten-products-filter-panel__price {
		width: 100%;
	}

	.oten-products-filter-panel__price-input {
		height: 44px;
		font-size: 14px;
	}

	.oten-products-filter-panel__actions {
		justify-content: flex-start;
	}

	.oten-products-filter-panel__clear {
		font-size: 14px;
	}

	.oten-products-filter-panel__submit {
		height: 44px;
		font-size: 14px;
	}
}

/* Catalog grid */
.oten-products-grid {
	padding: 8px 16px 40px;
}

.oten-products-grid__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 12px;
}

.oten-products-grid__card {
	min-width: 0;
	background: #fff;
}

.oten-products-grid__media {
	position: relative;
	aspect-ratio: 311 / 381;
	min-height: 0;
	overflow: hidden;
	background: #f5f5f5;
}

.oten-products-grid__media-link,
.oten-products-grid__body-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.oten-products-grid__media-link {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.oten-products-grid__media-link:focus-visible .oten-products-grid__image,
.oten-products-grid__body-link:focus-visible {
	outline: 2px solid var(--oten-brand);
	outline-offset: 2px;
}

.oten-products-grid__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	/* Keep every catalog image inside the fixed media frame. */
	height: 100% !important;
	object-fit: cover;
	object-position: center top;
}

.oten-products-grid__wishlist {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: #fff;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.oten-products-grid__wishlist:hover,
.oten-products-grid__wishlist:focus-visible {
	transform: scale(1.05);
}

.oten-products-grid__wishlist:focus-visible {
	outline: 2px solid var(--oten-brand);
	outline-offset: 2px;
}

.oten-products-grid__wishlist.is-active {
	background: var(--oten-brand);
}

.oten-products-grid__wishlist.is-active .oten-products-grid__wishlist-icon path {
	fill: #fff;
}

.oten-products-grid__wishlist-icon {
	display: block;
	width: 18px;
	height: 18px;
}

.oten-products-grid__title {
	margin: 10px 0 8px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	line-height: 1.45;
	font-weight: 400;
	color: var(--oten-ink);
	text-align: right;
}

.oten-products-grid__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.oten-products-grid__swatches {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.oten-products-grid__swatch {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 9999px;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.oten-products-grid__price {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	line-height: 1;
	font-weight: 400;
	color: #898989;
}

.oten-products-grid__price-currency {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.oten-products-grid {
		padding: 8px 0 40px;
	}

	.oten-products-grid__inner {
		width: min(1476px, calc(100% - 60px));
		margin-inline: auto;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.oten-products-grid__title {
		font-size: 14px;
		margin: 12px 0 10px;
	}

	.oten-products-grid__swatch {
		width: 16px;
		height: 16px;
	}

	.oten-products-grid__price {
		font-size: 14px;
		gap: 10px;
	}

	.oten-products-grid__price-currency {
		width: 22px;
		height: 22px;
	}

	.oten-products-grid__wishlist {
		width: 36px;
		height: 36px;
	}

	.oten-products-grid__wishlist-icon {
		width: 20px;
		height: 20px;
	}
}

/* Pagination */
.oten-products-pagination {
	display: block;
	padding: 8px 16px 40px;
	text-align: center;
}

.oten-products-pagination__inner {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-width: 0;
	max-width: 100%;
	margin-inline: auto;
	padding: 10px 14px;
	border: 1px solid #f0f0f0;
	border-radius: 10px;
	background: #fff;
}

.oten-products-pagination__pages {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oten-products-pagination__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.oten-products-pagination__arrow--prev {
	background: #d9d9d9;
	color: #fff;
}

.oten-products-pagination__arrow--prev:disabled {
	cursor: default;
	opacity: 1;
}

.oten-products-pagination__arrow--next {
	background: var(--oten-brand);
	color: #fff;
}

.oten-products-pagination__arrow--next:hover,
.oten-products-pagination__arrow--next:focus-visible {
	background: var(--oten-brand-dark);
}

.oten-products-pagination__arrow:focus-visible {
	outline: 2px solid var(--oten-brand);
	outline-offset: 2px;
}

.oten-products-pagination__arrow-icon {
	display: block;
	width: 6px;
	height: 11px;
}

.oten-products-pagination__page {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 1em;
	padding: 0 0 3px;
	border-bottom: 1.5px solid transparent;
	color: #9a9a9a;
	font-family: IRANSans, IRANYekanX, Tahoma, sans-serif;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 400;
	text-decoration: none;
	transition: color 0.2s ease;
}

.oten-products-pagination__page:hover,
.oten-products-pagination__page:focus-visible {
	color: var(--oten-brand);
}

.oten-products-pagination__page:focus-visible {
	outline: 2px solid var(--oten-brand);
	outline-offset: 2px;
}

.oten-products-pagination__page.is-active {
	color: var(--oten-brand);
	border-bottom-color: var(--oten-brand);
	font-weight: 400;
}

.oten-products-pagination__ellipsis {
	color: #9a9a9a;
	font-family: IRANSans, IRANYekanX, Tahoma, sans-serif;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.08em;
}

@media (min-width: 768px) {
	.oten-products-pagination {
		padding: 8px 0 72px;
	}

	.oten-products-pagination__inner {
		gap: 28px;
		min-width: 420px;
		padding: 14px 22px;
		border-radius: 12px;
	}

	.oten-products-pagination__pages {
		gap: 22px;
	}

	.oten-products-pagination__arrow {
		width: 40px;
		height: 40px;
		border-radius: 8px;
	}

	.oten-products-pagination__arrow-icon {
		width: 8px;
		height: 14px;
	}

	.oten-products-pagination__page {
		min-width: 1.2em;
		padding: 0 0 4px;
		border-bottom-width: 2px;
		font-size: 18px;
	}

	.oten-products-pagination__ellipsis {
		font-size: 18px;
	}
}
