/* Pixel-parity overrides (parity-pages). Loaded after all theme CSS. */

/* ==================================================================
   CATALOG (reference: category page, banner sits under the header)
================================================================== */
body.tax-product_cat .site-main,
body.post-type-archive-product .site-main,
body.admin-bar.tax-product_cat .site-main,
body.admin-bar.post-type-archive-product .site-main {
	padding-top: 0;
}

.catalog-banner {
	background: transparent;
}

.catalog-main {
	max-width: none;
	padding: 0 0 8rem;
}

.catalog-toolbar {
	align-items: center;
	gap: 0;
	min-height: 0;
	padding: 0 20px;
}

.catalog-toolbar .catalog-title,
.woocommerce .catalog-toolbar .catalog-title {
	font-size: 1.2rem;
	font-weight: 400;
	letter-spacing: 0.1rem;
	line-height: 15.6px;
	text-transform: none;
	color: #999;
}

.catalog-actions .filter-toggle,
.catalog-actions .sort-toggle {
	box-sizing: border-box;
	min-height: 55px;
	padding: 20px 16px;
	font-size: 1.2rem;
	letter-spacing: 0.06rem;
	line-height: 15px;
}

.catalog-actions .catalog-sort:last-child .sort-toggle {
	padding-right: 16px;
}

.catalog-main ul.products,
body .catalog-main ul.products {
	gap: 0;
	padding: 0 16px;
	background: transparent;
}

.products .product-card {
	background: transparent;
	margin-bottom: 1px;
	padding: 0 1px 0 0;
	z-index: 1;
	overflow: visible;
}

.products .product-card:hover {
	z-index: 9;
}

.products .product-card-media {
	aspect-ratio: 351 / 419;
	background: #e7e7e7;
	transition: box-shadow 0.15s;
}

.products .product-card:hover .product-card-media {
	box-shadow: 0 0 10px rgba(170, 170, 170, 0.7);
}

/* Photo box: padding 100/36/40 of the 351x419 tile, shifts up on hover. */
.products .product-card-img,
.products .product-card.is-portrait .product-card-img {
	top: 23.87%;
	right: 10.26%;
	bottom: 9.55%;
	left: 10.26%;
	width: auto;
	height: auto;
	max-height: none;
	transform: none;
	transition: opacity 0.35s var(--be-ease);
}

.products .product-card:hover .product-card-img,
.products .product-card:hover .product-card-main {
	top: 19.09%;
	bottom: 33.41%;
	transform: none;
}

.products .card-heart {
	top: 0;
	right: 0;
	width: 51px;
	height: 51px;
	color: #111;
}

.products .card-heart .icon {
	width: 15px;
	height: 15px;
	opacity: 0.9;
}

.products .card-heart:hover .icon {
	opacity: 1;
}

/* Name and price appear on hover under the photo (display toggle, as in the reference). */
.products .product-card-info,
.catalog-main .product-card .product-card-info {
	position: absolute;
	right: auto;
	bottom: -56px;
	left: 0;
	z-index: 2;
	display: none;
	box-sizing: border-box;
	width: 100%;
	gap: 0;
	padding: 16px;
	background: transparent;
	opacity: 1;
	pointer-events: auto;
	transform: none;
	transition: none;
}

.products .product-card:hover .product-card-info,
.products .product-card:focus-within .product-card-info {
	display: flex;
}

.products .product-card-name {
	display: block;
	box-sizing: border-box;
	padding: 8px 0 12px;
	font-size: 1.4rem;
	font-weight: 400;
	letter-spacing: 0.1rem;
	line-height: 18.2px;
	color: #333;
}

.products .product-card-model,
.products .product-card-color {
	font-size: 1.4rem;
	font-weight: 400;
	letter-spacing: 0.1rem;
	line-height: 18.2px;
	text-transform: none;
	color: #333;
}

.products .product-card-price,
.products .product-card .price {
	font-size: 1.2rem;
	font-weight: 300;
	letter-spacing: 0.1rem;
	line-height: 15.6px;
	color: #111;
}

.products .product-card-info::after {
	content: "Смотреть";
	display: block;
	margin-top: 18px;
	font-size: 1.2rem;
	letter-spacing: 0.1rem;
	line-height: 15.6px;
	text-transform: uppercase;
	color: #111;
}

body.be-lang-kz .products .product-card-info::after {
	content: "Қарау";
}

/* Pagination (reference .ec-base-paginate) */
.woocommerce-pagination {
	margin: 40px 0 60px;
	text-align: center;
	font-size: 1rem;
}

.woocommerce-pagination ul {
	display: inline-flex;
	gap: 0;
	margin: 0 20px;
}

.woocommerce-pagination ul li {
	margin: 0 2px;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: inline-block;
	min-width: 0;
	height: auto;
	margin: 0 8px;
	padding: 0 6px 4px;
	font-size: 1.2rem;
	line-height: 1.5;
	border: 0;
	border-bottom: 1px solid transparent;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
	border-color: #111;
}

/* ==================================================================
   PRODUCT (reference: #e7e7e7 detail area under the fixed header,
   880px photos stacked at x=100, info column fixed at 120px)
================================================================== */
body.single-product .site-main,
body.admin-bar.single-product .site-main {
	padding-top: 0;
}

.be-single-product .product-layout {
	background: #e7e7e7;
}

@media (min-width: 721px) {
	.be-single-product .product-layout {
		--pp-l: 100px;
		--pp-g: 60px;
		--pp-w: 300px;
		display: grid;
		grid-template-columns: var(--pp-l) minmax(0, 1fr) var(--pp-g) var(--pp-w) var(--pp-l);
		column-gap: 0;
		padding: 0;
	}

	.be-single-product .product-gallery-col {
		grid-column: 2 / 5;
		grid-row: 1;
		padding: 100px 0 40px;
		background: #e7e7e7;
	}

	.be-single-product .pg-track {
		display: flex;
		flex-direction: column;
		overflow: visible;
		width: calc(100% - var(--pp-g) - var(--pp-w));
	}

	.be-single-product .pg-slide {
		flex: none;
	}

	.be-single-product .pg-dots {
		display: none;
	}

	.be-single-product .product-summary-col,
	.woocommerce div.product .be-single-product .product-summary-col.summary {
		position: sticky;
		grid-column: 4;
		grid-row: 1;
		top: 120px;
		margin: 200px 0 0;
		padding: 0;
		z-index: 2;
	}
}

.be-single-product .product-title-row {
	position: relative;
	display: block;
	margin: 0 0 12px;
	padding: 0 32px 12px 0;
	border-bottom: 1px solid #c8c6c5;
}

.woocommerce div.product .product-title-row .product_title {
	font-size: 1.6rem;
	letter-spacing: 0.16rem;
	line-height: 20.8px;
	color: #000;
}

.be-single-product .product-heart {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 39px;
	height: 39px;
	margin: 0;
	color: #111;
}

.be-single-product .product-heart .icon {
	width: 15px;
	height: 15px;
	opacity: 0.3;
	transition: opacity 0.15s ease-in-out;
}

.be-single-product .product-heart:hover .icon,
.be-single-product .product-heart.is-active .icon {
	opacity: 1;
}

.be-single-product .product-price-row {
	margin-top: 0;
}

.woocommerce div.product .product-price-row p.price {
	font-size: 1.3rem;
	letter-spacing: 0.025rem;
	line-height: 16.9px;
	color: #000;
}

.be-single-product .product-price-row {
	padding: 1.3px 0;
}

.be-single-product .product-total-row {
	align-items: center;
	margin-top: 28px;
	padding: 8px 0;
	font-size: 1.1rem;
	letter-spacing: 0.025rem;
	line-height: 15.6px;
	color: #000;
}

.be-single-product .product-total-label {
	font-size: 1.2rem;
	font-weight: 400;
	letter-spacing: 0.025rem;
	line-height: 15.6px;
	text-transform: uppercase;
	color: #000;
}

.be-single-product .product-total-value,
.be-single-product .product-total-value .price,
.be-single-product .product-total-value .amount {
	font-size: 1.2rem;
	font-style: normal;
	font-weight: 400;
	line-height: 15.6px;
	color: #000;
}

.be-single-product .product-buy {
	margin-top: 20px;
}

.be-single-product .product-buy form.cart {
	justify-content: flex-start;
	gap: 0;
}

.be-single-product .product-buy form.cart::before,
.be-single-product .product-buy form.cart::after {
	content: none;
	display: none;
}

.woocommerce div.product .product-buy .single_add_to_cart_button {
	box-sizing: border-box;
	width: 148px;
	min-width: 0;
	height: auto;
	min-height: 0;
	padding: 10px 0;
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.12rem;
	line-height: 15.6px;
	white-space: nowrap;
	background: #333;
	border-bottom: 1px solid transparent;
	transition: 0.15s ease-in-out;
}

.woocommerce div.product .product-buy .single_add_to_cart_button:hover {
	background: #333;
}

.be-single-product .product-accordions {
	margin-top: 91px;
	border-top: 1px solid #c8c6c5;
}

.be-single-product .product-accordion {
	border-bottom: 1px solid #c8c6c5;
}

.be-single-product .product-accordion summary {
	min-height: 0;
	padding: 14px 0;
	font-size: 1.3rem;
	font-weight: 400;
	letter-spacing: 0.065rem;
	line-height: 16.9px;
	text-transform: none;
	color: #555;
}

.be-single-product .product-accordion[open] summary {
	color: #111;
}

.be-single-product .product-accordion summary span {
	padding: 1.3px 0;
	font-size: 1.1rem;
	line-height: 14.3px;
	text-transform: uppercase;
}

.be-single-product .product-accordion summary .icon {
	width: 11px;
	height: 11px;
	margin-right: 8px;
}

.be-single-product .accordion-body {
	margin: 0;
	padding: 16px 0 40px;
	font-size: 1.1rem;
	font-weight: 400;
	letter-spacing: 0.05rem;
	line-height: 14.3px;
	color: #111;
}

/* ==================================================================
   ABOUT
================================================================== */
.be-page-hero {
	background: transparent;
}

.be-page-hero,
.be-page-hero.is-dark {
	height: 296px;
}

.be-page-hero-title {
	padding-top: 68px;
	font-size: 2.2rem;
	letter-spacing: 3.3px;
	line-height: 28.6px;
}

.be-hero-content .be-about {
	padding-right: 0;
	padding-left: 0;
}

.be-hero-content .be-about-title {
	font-size: 2rem;
	letter-spacing: 3px;
	line-height: 26px;
}

.be-hero-content .be-about-text {
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 25.2px;
}

.be-hero-content .be-about {
	padding-top: 100px;
	padding-bottom: 200px;
}


/* ==================================================================
   TABLET / DESKTOP (reference: > 720px)
================================================================== */
@media (min-width: 721px) {
	/* catalog: fixed-px photo padding on a square photo, 3 columns up to 1080 */
	.catalog-banner {
		height: 40vw;
		max-height: 576px;
	}

	.catalog-toolbar {
		display: flex;
		height: auto;
		margin: 0;
		padding: 0 20px;
		border: 0;
		background: transparent;
	}

	.catalog-toolbar .catalog-title {
		position: static;
		display: block;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
	}

	.catalog-actions {
		position: static;
		display: flex;
		width: auto;
	}

	.catalog-actions .filter-toggle,
	.catalog-actions .sort-toggle {
		width: auto;
		min-height: 55px;
		padding: 20px 16px;
		justify-content: flex-start;
		border-bottom: 0;
	}

	.catalog-actions .filter-toggle::after,
	.catalog-actions .sort-toggle::after {
		position: static;
		margin: -3px 0 0;
	}

	.catalog-actions .filter-toggle,
	.catalog-actions .catalog-sort {
		width: auto;
		min-height: 0;
	}

	.catalog-main ul.products,
	body .catalog-main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding: 0 16px;
	}

	.products .product-card-media {
		box-sizing: border-box;
		aspect-ratio: auto;
		padding: 100px 36px 40px;
	}

	.products .product-card-media::before {
		content: "";
		display: block;
		padding-bottom: 100%;
	}

	.products .product-card-img,
	.products .product-card.is-portrait .product-card-img {
		top: 100px;
		right: 36px;
		bottom: 40px;
		left: 36px;
	}

	.products .product-card:hover .product-card-img,
	.products .product-card:hover .product-card-main {
		top: 80px;
		bottom: 140px;
	}

	.products .product-card-info,
	.catalog-main .product-card .product-card-info {
		bottom: -56px;
		display: none;
		padding: 16px;
	}

	.products .product-card:hover .product-card-info,
	.products .product-card:focus-within .product-card-info {
		display: flex;
	}

	.products .product-card-name {
		height: auto;
		overflow: visible;
		font-size: 1.4rem;
		color: #333;
		text-transform: none;
	}

	.products .product-card-model,
	.products .product-card-color {
		font-size: 1.4rem;
		color: #333;
		text-transform: none;
	}

	.products .product-card-price {
		display: block;
	}

	.products .product-card-info::after {
		display: block;
	}

	.woocommerce-pagination {
		margin: 40px 0 60px;
	}

	/* product: stacked photos until 720 (the theme slider starts at 900) */
	.be-single-product .product-layout {
		display: grid;
		padding: 0;
	}

	.be-single-product .product-summary-col,
	.woocommerce div.product .be-single-product .product-summary-col.summary {
		position: sticky;
		padding: 0;
	}

	.woocommerce div.product .product-buy .single_add_to_cart_button {
		width: var(--pp-btn, 148px);
		height: auto;
		min-height: 0;
	}

	.be-single-product .product-accordions {
		margin: 91px 0 0;
	}

	.be-single-product .product-accordion summary {
		padding: 14px 0;
	}

	.be-single-product .accordion-body {
		padding: 16px 0 40px;
	}

	.be-single-product .pg-img {
		height: auto;
		padding: 0;
	}

	/* about */
	.be-page-hero {
		height: 296px;
	}

	.be-hero-content .be-about {
		padding: 100px 0 200px;
	}
}

@media (min-width: 721px) and (max-width: 900px) {
	.be-single-product .product-layout {
		--pp-l: 40px;
		--pp-g: 40px;
		--pp-w: 260px;
		--pp-btn: 128px;
	}
}

@media (min-width: 1081px) {
	.catalog-main ul.products,
	body .catalog-main ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ==================================================================
   MOBILE (reference breakpoint <= 720px)
================================================================== */
@media (max-width: 720px) {
	/* catalog */
	.catalog-banner {
		height: 200px;
	}

	.catalog-main {
		display: flow-root;
		padding: 0 0 6rem;
	}

	.catalog-toolbar {
		position: relative;
		height: 0;
		margin: 0 0 41px;
		padding: 0;
		border: 0;
		background: transparent;
	}

	.catalog-toolbar .catalog-title {
		display: none;
	}

	.catalog-actions {
		position: absolute;
		top: 1px;
		left: 0;
		display: flex;
		width: auto;
	}

	.catalog-actions .filter-toggle,
	.catalog-actions .catalog-sort {
		flex: none;
		width: 130px;
		min-height: 0;
		border-left: 0;
	}

	.catalog-actions .filter-toggle,
	.catalog-actions .sort-toggle {
		box-sizing: border-box;
		width: 130px;
		height: 40px;
		min-height: 0;
		padding: 12px 8px;
		border-bottom: 1px solid #e5dfd9;
	}

	.catalog-actions .catalog-sort:last-child .sort-toggle {
		padding-right: 8px;
	}

	.catalog-actions .filter-toggle,
	.catalog-actions .sort-toggle {
		justify-content: center;
	}

	.catalog-actions .filter-toggle::after,
	.catalog-actions .sort-toggle::after {
		position: absolute;
		top: 50%;
		right: 14px;
		margin-top: -4px;
	}

	.catalog-main ul.products,
	body .catalog-main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0;
	}

	.catalog-filters {
		margin: 0 8px 8px;
	}

	.products .product-card-media {
		aspect-ratio: 194 / 324;
	}

	.products .product-card:hover .product-card-media {
		box-shadow: none;
	}

	.products .product-card-img,
	.products .product-card.is-portrait .product-card-img,
	.products .product-card:hover .product-card-img,
	.products .product-card:hover .product-card-main {
		top: 24.69%;
		right: 10.31%;
		bottom: 27.78%;
		left: 10.31%;
	}

	.products .card-heart {
		right: 0;
	}

	.products .product-card-info,
	.catalog-main .product-card .product-card-info {
		bottom: 0;
		display: flex;
		padding: 16px 8px 12px;
	}

	.products .product-card-name {
		height: 48px;
		padding: 8px 0 4px;
		overflow: hidden;
		font-size: 1.3rem;
		letter-spacing: 0.1rem;
		color: #555;
		text-transform: capitalize;
	}

	.products .product-card-model,
	.products .product-card-color {
		font-size: 1.3rem;
		color: #555;
		text-transform: capitalize;
	}

	.products .product-card-price,
	.products .product-card-info::after {
		display: none;
	}

	.woocommerce-pagination {
		margin: 28px 0;
	}

	/* product */
	.be-single-product .product-layout {
		padding: 0 0 40px;
	}

	.be-single-product .product-gallery-col {
		padding: 0;
		background: #e7e7e7;
	}

	.be-single-product .pg {
		position: relative;
	}

	.be-single-product .pg-img {
		box-sizing: border-box;
		height: 586px;
		padding: 128px 0 68px;
		object-fit: contain;
	}

	.be-single-product .pg-dots {
		position: absolute;
		right: 0;
		bottom: 20px;
		left: 0;
		height: 10px;
		margin: 0;
	}

	.be-single-product .pg-dot {
		width: 16px;
		height: 10px;
	}

	.be-single-product .pg-dot span {
		width: 4px;
		height: 4px;
		background: #aaa;
	}

	.be-single-product .pg-dot.is-active span {
		background: #111;
	}

	.be-single-product .product-summary-col,
	.woocommerce div.product .be-single-product .product-summary-col.summary {
		margin: 0;
		padding: 16px 44px 0;
	}

	.woocommerce div.product .product-buy .single_add_to_cart_button {
		width: 148px;
		height: auto;
		min-height: 0;
	}

	.be-single-product .product-total-row {
		margin-top: 56px;
	}

	.be-single-product .product-accordions {
		margin-top: 114px;
		margin-right: -20px;
		margin-left: -20px;
	}

	.be-single-product .product-accordion summary {
		padding-right: 16px;
		padding-left: 16px;
	}

	.be-single-product .accordion-body {
		padding: 16px 16px 40px;
	}

	/* about */
	.be-page-hero,
	.be-page-hero.is-dark {
		height: 200px;
	}

	.be-page-hero-title {
		padding-top: 55px;
		font-size: 1.8rem;
		letter-spacing: 2.7px;
		line-height: 23.4px;
	}

	.be-hero-content .be-about {
		padding: 60px 28px 160px;
	}

	.be-hero-content .be-about-title {
		font-size: 1.8rem;
		letter-spacing: 2.7px;
		line-height: 23.4px;
	}

	.be-hero-content .be-about-text {
		margin-top: 40px;
		font-size: 1.3rem;
		line-height: 23.4px;
	}
}

/* Russian/Kazakh labels are longer than the reference's "ADD TO BAG": keep its 148px as a minimum, never clip. */
.woocommerce div.product .product-buy .single_add_to_cart_button {
	width: auto;
	min-width: 148px;
	padding-right: 22px;
	padding-left: 22px;
}
