/**
 * Persian RTL storefront refresh.
 * Logical properties keep nested LTR values safe and update-friendly.
 */

:root {
	--berelian-radius-sm: 0.25rem;
	--berelian-radius: 0.4rem;
	--berelian-radius-lg: 0.75rem;
	--berelian-shadow: 0 0.5rem 1.5rem rgb(32 31 29 / 6%);
	--berelian-focus: 0 0 0 3px rgb(182 130 53 / 40%);
	--berelian-gold: var(--wp--preset--color--accent-1, #B68235);
	--berelian-gold-deep: var(--wp--preset--color--accent-1-deep, #7D5411);
	--berelian-ink: var(--wp--preset--color--contrast, #201F1D);
	--berelian-paper: var(--wp--preset--color--base, #F3F2F2);
}

html[lang="fa-IR"] body {
	direction: rtl;
	font-feature-settings: "kern", "ss01";
	text-align: start;
}

/* Brand mark — triangle facet, used before the site title in header/footer. */
.berelian-mark {
	display: inline-flex;
	flex-shrink: 0;
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-bottom: 13px solid var(--berelian-ink);
	margin-inline-end: 0.6rem;
}

.berelian-mark--gold {
	border-bottom-color: var(--berelian-gold);
}

.wp-block-group:has(> .berelian-mark) {
	align-items: center;
}

/* Small tracked Latin/number labels, matching the identity's eyebrow style. */
.berelian-eyebrow {
	font-family: var(--wp--preset--font-family--cormorant, 'Cormorant Garamond', serif);
	font-size: 0.8rem;
	letter-spacing: 0.24em;
	color: var(--wp--preset--color--stone-muted, #9B9797);
	text-transform: uppercase;
}

/* Thin gold rule under section headings — the identity's signature line,
 * used instead of filled bands or heavy dividers. */
html[lang="fa-IR"] main h2.wp-block-heading {
	position: relative;
	padding-bottom: 0.9rem;
}

html[lang="fa-IR"] main h2.wp-block-heading::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 50%;
	transform: translateX(50%);
	width: 48px;
	height: 1px;
	background: var(--berelian-gold);
}

html[lang="fa-IR"] main h2.wp-block-heading.has-text-align-left::after,
html[lang="fa-IR"] main h2.wp-block-heading:not(.has-text-align-center)::after {
	inset-inline-start: 0;
	transform: none;
}

html[lang="fa-IR"] :where(input, select, textarea, button) {
	font: inherit;
}

html[lang="fa-IR"] :where(input:not([type="radio"]):not([type="checkbox"]), select, textarea) {
	border: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
	border-radius: var(--berelian-radius-sm);
	min-block-size: 2.75rem;
	padding-block: 0.65rem;
	padding-inline: 0.85rem;
}

html[lang="fa-IR"] :where(a, button, input, select, textarea, summary):focus-visible {
	box-shadow: var(--berelian-focus);
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

html[lang="fa-IR"] :where(bdi, .sku, .order-number, .tracking-number, .payment-reference, [data-bidi="ltr"]) {
	direction: ltr;
	display: inline-block;
	font-variant-numeric: tabular-nums;
	unicode-bidi: isolate;
}

html[lang="fa-IR"] :where(.wp-site-blocks, main) {
	overflow-wrap: break-word;
}

/* Keep images in blog post content inside the readable article column.
 * WordPress generates layout CSS with !important on margin-inline for
 * alignwide/alignfull, so we must match with !important + higher specificity.
 * Also covers wp-block-post-featured-image which lives outside post-content. */
html[lang="fa-IR"] :where(.wp-block-post-content, .entry-content) .wp-block-image {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 100%;
}

html[lang="fa-IR"] :where(.wp-block-post-content, .entry-content) .wp-block-image.alignwide,
html[lang="fa-IR"] :where(.wp-block-post-content, .entry-content) .wp-block-image.alignfull,
html[lang="fa-IR"] .wp-block-post-featured-image.alignwide,
html[lang="fa-IR"] .wp-block-post-featured-image.alignfull {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin-inline-start: 0 !important;
	margin-inline-end: 0 !important;
}

html[lang="fa-IR"] :where(.wp-block-post-content, .entry-content) img,
html[lang="fa-IR"] .wp-block-post-featured-image img {
	block-size: auto;
	display: block;
	max-inline-size: 100%;
	width: 100%;
}

/* WooCommerce product gallery - constrain to column width */
html[lang="fa-IR"] .wp-block-woocommerce-product-image-gallery {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

html[lang="fa-IR"] .woocommerce-product-gallery,
html[lang="fa-IR"] .woocommerce-product-gallery__wrapper,
html[lang="fa-IR"] .product-gallery,
html[lang="fa-IR"] .product-gallery__wrapper {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

html[lang="fa-IR"] .woocommerce-product-gallery img,
html[lang="fa-IR"] .product-gallery img,
html[lang="fa-IR"] .woocommerce-product-gallery .wp-block-image img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
}

html[lang="fa-IR"] .wp-block-woocommerce-product-image-gallery img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}

/* ── Fix: product gallery goes blank on photo 2+ in RTL ──
 * FlexSlider positions slides with a horizontal transform offset that
 * assumes left-to-right layout. In RTL that offset pushes every slide
 * past the first off-screen, and the wrapper (forced to width:100% above)
 * collapses to height:0. FlexSlider already tags the visible slide with
 * .flex-active-slide -- so instead of relying on its (broken, for us)
 * transform math, we neutralize the transform and show/hide slides
 * purely by that class. */
html[lang="fa-IR"] .woocommerce-product-gallery__wrapper {
	transform: none !important;
	height: auto !important;
	position: relative !important;
}

html[lang="fa-IR"] .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
	display: none !important;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

html[lang="fa-IR"] .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image.flex-active-slide {
	display: block !important;
}

html[lang="fa-IR"] .wp-block-navigation__responsive-container-content {
	text-align: start;
}

html[lang="fa-IR"] :where(.products, .wc-block-product-template) {
	gap: clamp(1rem, 2.5vw, 2rem);
}

html[lang="fa-IR"] :where(.product, .wc-block-grid__product, .wc-block-product) {
	border-radius: var(--berelian-radius);
}

html[lang="fa-IR"] :where(.wc-block-grid__product, .wc-block-product-template > li) {
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
	padding: clamp(0.75rem, 2vw, 1.25rem);
	transition: border-color 180ms ease, translate 180ms ease;
}

html[lang="fa-IR"] :where(.wc-block-grid__product, .wc-block-product-template > li):hover {
	border-color: var(--berelian-gold);
	translate: 0 -2px;
}

html[lang="fa-IR"] :where(.price, .wc-block-components-product-price) {
	font-size: 1.05em;
	font-weight: 700;
	white-space: normal;
}

html[lang="fa-IR"] :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) {
	border: 0;
	border-inline-start: 0.3rem solid currentColor;
	border-radius: var(--berelian-radius-sm);
	margin-block: 1rem;
	padding-block: 1rem;
	padding-inline: 1.25rem;
}

html[lang="fa-IR"] :where(.woocommerce-error, .wc-block-components-notice-banner.is-error) {
	color: var(--wp--preset--color--error, #8b1e2d);
}

html[lang="fa-IR"] :where(.woocommerce-message, .wc-block-components-notice-banner.is-success) {
	color: var(--wp--preset--color--success, #176b45);
}

html[lang="fa-IR"] :where(table, .wc-block-components-totals-wrapper) {
	font-variant-numeric: tabular-nums;
}

html[lang="fa-IR"] :where(th, td) {
	text-align: start;
}

html[lang="fa-IR"] .berelian-storefront-hero {
	background: var(--wp--preset--color--stone-surface, #EDEBE7);
	border-radius: var(--berelian-radius-lg);
	border: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
	isolation: isolate;
	overflow: clip;
}

html[lang="fa-IR"] .berelianstone-footer__columns {
	gap: clamp(1.5rem, 4vw, 4rem);
}

html[lang="fa-IR"] :where(.berelianstone-footer__contact-list, .berelianstone-footer__address-list) {
	margin-block: 0.75rem 0;
	padding-inline-start: 1.35rem;
}

html[lang="fa-IR"] .berelianstone-footer__contact-list a {
	direction: ltr;
	display: inline-block;
	unicode-bidi: isolate;
}

html[lang="fa-IR"] .berelianstone-footer__links {
	border-top: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
	margin-top: clamp(1.5rem, 4vw, 3rem);
	padding-top: 1.5rem;
}

html[lang="fa-IR"] .berelianstone-footer__enamad img {
	display: block;
	height: auto;
	max-width: 96px;
}

@media (width <= 600px) {
	html[lang="fa-IR"] .wp-block-navigation__responsive-container.is-menu-open {
		padding: 1.25rem;
	}

	html[lang="fa-IR"] :where(.wp-block-buttons, .wc-block-grid__products) {
		align-items: stretch;
	}

	html[lang="fa-IR"] .wp-block-button__link {
		inline-size: 100%;
	}

	html[lang="fa-IR"] .berelianstone-footer__links {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (width >= 768px) {
	html[lang="fa-IR"] .berelian-storefront-hero {
		padding-inline: clamp(2rem, 5vw, 5rem);
	}
}

/* ── Latest-products Swiper ─────────────────────────────────────── */
.berelian-products-swiper-section {
	padding-block: 1.5rem 3rem;
	overflow: hidden;
}

.berelian-products-swiper {
	overflow: visible;
	padding-bottom: 4rem; /* room for pagination dots + touch targets */
	margin-bottom: 1rem;
}

.berelian-swiper-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
	border-radius: var(--berelian-radius);
	overflow: hidden;
	transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1),
	            transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
}

.berelian-swiper-card:hover,
.berelian-swiper-card:active {
	border-color: var(--berelian-gold);
	transform: translateY(-3px);
}

/* Better touch feedback on mobile */
@media (hover: none) and (pointer: coarse) {
	.berelian-swiper-card:active {
		opacity: 0.9;
	}
}

.berelian-swiper-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	flex-shrink: 0;
}

.berelian-swiper-card__body {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	flex-grow: 1;
	justify-content: space-between;
}

.berelian-swiper-card__title {
	font-size: clamp(0.85rem, 2.5vw, 1rem);
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 0.5rem;
	-webkit-line-clamp: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.berelian-swiper-card__price {
	font-size: clamp(0.8rem, 2.2vw, 1rem);
	font-weight: 700;
	color: var(--wp--preset--color--stone-muted, #9B9797);
	margin: 0;
	margin-top: auto;
}

/* Navigation buttons – 48px minimum touch target */
.berelian-swiper-next,
.berelian-swiper-prev {
	color: var(--berelian-ink);
	width: 48px;
	height: 48px;
	background: rgba(243, 242, 242, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 200ms ease,
	            color 200ms ease;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	cursor: pointer;
	border: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
}

.berelian-swiper-next:hover,
.berelian-swiper-prev:hover {
	border-color: var(--berelian-gold);
	color: var(--berelian-gold-deep);
}

.berelian-swiper-next:active,
.berelian-swiper-prev:active {
	background: var(--wp--preset--color--stone-surface, #EDEBE7);
}

.berelian-swiper-next::after,
.berelian-swiper-prev::after {
	font-size: 1.25rem;
	font-weight: 700;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Pagination dots – larger and more accessible */
.berelian-swiper-pagination {
	padding-block: 1.5rem 0.5rem;
}

.berelian-swiper-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	margin: 0 6px;
	background: var(--wp--preset--color--stone-border, #DAD7D2);
	opacity: 0.6;
	transition: width 200ms ease,
	            background-color 200ms ease,
	            opacity 200ms ease;
	cursor: pointer;
	border: none;
}

.berelian-swiper-pagination .swiper-pagination-bullet:hover {
	opacity: 0.8;
}

.berelian-swiper-pagination .swiper-pagination-bullet-active {
	background: var(--berelian-gold);
	width: 24px;
	opacity: 1;
	border-radius: 5px;
}

/* Mobile-specific adjustments */
@media (width <= 640px) {
	.berelian-swiper-next,
	.berelian-swiper-prev {
		width: 40px;
		height: 40px;
	}

	.berelian-swiper-next::after,
	.berelian-swiper-prev::after {
		font-size: 1.1rem;
	}

	.berelian-swiper-card__body {
		padding: 0.85rem 0.9rem;
	}

	.berelian-products-swiper {
		padding-bottom: 3.5rem;
	}

	.berelian-swiper-pagination .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
		margin: 0 4px;
	}

	.berelian-swiper-pagination .swiper-pagination-bullet-active {
		width: 20px;
	}
}

@media (width <= 480px) {
	.berelian-products-swiper-section {
		padding-block: 1rem 2rem;
	}

	.berelian-swiper-card {
		border-radius: var(--berelian-radius-sm);
	}

	.berelian-swiper-card__title {
		font-size: 0.8rem;
		margin-bottom: 0.35rem;
		-webkit-line-clamp: 1;
	}

	.berelian-swiper-card__price {
		font-size: 0.75rem;
	}

	.berelian-swiper-next,
	.berelian-swiper-prev {
		width: 36px;
		height: 36px;
	}

	.berelian-swiper-next::after,
	.berelian-swiper-prev::after {
		font-size: 0.95rem;
	}
}

/* ── Top contact bar ────────────────────────────────────────────── */
.berelian-topbar {
	background: var(--berelian-ink);
	color: var(--berelian-paper);
	font-size: 0.85rem;
}

.berelian-topbar__inner {
	max-width: 1340px;
	margin-inline: auto;
	padding: 0.55rem clamp(1rem, 4vw, 3rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.berelian-topbar__phones {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.berelian-topbar__phones a {
	color: var(--berelian-paper);
	border-bottom: 1px solid transparent;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--cormorant, 'Cormorant Garamond', serif);
	letter-spacing: 0.03em;
}

.berelian-topbar__phones a:hover {
	color: var(--berelian-gold);
	border-bottom-color: var(--berelian-gold);
}

.berelian-topbar__sep {
	color: var(--wp--preset--color--stone-muted, #9B9797);
}

.berelian-topbar__name {
	color: var(--wp--preset--color--stone-muted, #9B9797);
}

.berelian-topbar__links {
	display: flex;
	align-items: center;
	gap: 1.1rem;
}

.berelian-topbar__links a {
	color: var(--berelian-paper);
	text-decoration: none;
	border-bottom: 1px solid rgb(243 242 242 / 30%);
	transition: color 160ms ease, border-color 160ms ease;
}

.berelian-topbar__links a:hover {
	color: var(--berelian-gold);
	border-bottom-color: var(--berelian-gold);
}

@media (width <= 600px) {
	.berelian-topbar__inner {
		justify-content: center;
		text-align: center;
	}
}

/* ── Promotional strip (under the top contact bar) ─────────────────
 * Text lives in parts/header.html -- edit that when the offer changes. */
.berelian-announcement-bar {
	background: linear-gradient(90deg, var(--berelian-gold), color-mix(in srgb, var(--berelian-gold) 80%, var(--berelian-ink) 20%));
	color: var(--berelian-ink);
	text-align: center;
	padding: 0.6rem 1rem;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
}

@media (width <= 600px) {
	.berelian-announcement-bar {
		font-size: 0.82rem;
		padding: 0.5rem 0.65rem;
	}
}

/* ── Category pill row ──────────────────────────────────────────── */
.berelian-category-row {
	display: block;
	width: 100%;
	border-top: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
	padding-top: 0.85rem;
}

.berelian-category-row__list {
	list-style: none;
	margin: 0;
	padding: 0 0 0.15rem;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: center;
}

/* On narrow screens, scroll horizontally instead of wrapping into a
 * ragged multi-line block — keeps the row compact and thumb-swipeable. */
@media (width <= 640px) {
	.berelian-category-row__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-inline: -1rem;
		padding-inline: 1rem;
	}

	.berelian-category-row__list::-webkit-scrollbar {
		display: none;
	}

	.berelian-category-row__list li {
		flex-shrink: 0;
		scroll-snap-align: start;
	}
}

/* ── Classic add-to-cart form (fallback for the unregistered block) ── */
.berelian-add-to-cart {
	margin-block: 0.5rem 1rem;
}

.berelian-add-to-cart form.cart {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.berelian-add-to-cart .quantity {
	margin: 0;
}

.berelian-add-to-cart .quantity .qty {
	width: 4.5rem;
	min-block-size: 2.75rem;
	border: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
	border-radius: var(--berelian-radius-sm);
	padding-inline: 0.65rem;
	text-align: center;
}

.berelian-add-to-cart .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 2.75rem;
	padding: 0.7rem 1.75rem;
	border: 1px solid var(--berelian-gold);
	border-radius: var(--berelian-radius-sm);
	background: transparent;
	color: var(--berelian-gold-deep);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}

.berelian-add-to-cart .single_add_to_cart_button:hover {
	background: var(--berelian-gold);
	color: var(--berelian-paper);
}

/* Unit label next to the quantity field ("متر مربع"). */
.berelian-qty-unit {
	color: var(--wp--preset--color--stone-muted, #9B9797);
	font-size: 0.85rem;
	margin-inline-start: -0.35rem;
}

/* Optional custom width/length/color note field. */
.berelian-add-to-cart .berelian-custom-note {
	flex-basis: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	order: 10;
	margin-block-start: 0.25rem;
}

.berelian-add-to-cart .berelian-custom-note label {
	font-size: 0.85rem;
	color: var(--wp--preset--color--stone-muted, #9B9797);
}

.berelian-add-to-cart .berelian-custom-note textarea {
	width: 100%;
	min-height: 3rem;
	resize: vertical;
}

.berelian-category-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-block-size: 2.5rem;
	padding: 0.45rem 1.25rem;
	border: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
	border-radius: 999px;
	color: var(--berelian-ink);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	white-space: nowrap;
	transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, translate 180ms ease;
}

.berelian-category-pill:hover {
	border-color: var(--berelian-gold);
	color: var(--berelian-gold-deep);
	background: var(--wp--preset--color--stone-surface, #EDEBE7);
	translate: 0 -1px;
}

/* Current category — filled gold, matches the identity's solid-on-hover
 * button treatment instead of a second, competing accent color. */
.berelian-category-pill.is-active {
	border-color: var(--berelian-gold);
	background: var(--berelian-gold);
	color: var(--berelian-paper);
}

.berelian-category-pill.is-active .berelian-category-pill__count {
	background: rgb(243 242 242 / 25%);
	color: var(--berelian-paper);
}

.berelian-category-pill__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding-inline: 0.3rem;
	border-radius: 999px;
	background: var(--wp--preset--color--stone-surface, #EDEBE7);
	color: var(--wp--preset--color--stone-muted, #9B9797);
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

/* ── Featured flagship product ──────────────────────────────────── */
.berelian-featured-product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	background: var(--wp--preset--color--stone-surface, #EDEBE7);
	border: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
	border-radius: var(--berelian-radius-lg);
	padding: clamp(1.25rem, 3vw, 2.5rem);
}

.berelian-featured-product__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--berelian-radius);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.berelian-featured-product__body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.berelian-featured-product__title {
	margin: 0.25rem 0 0;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 400;
	line-height: 1.5;
}

.berelian-featured-product__name {
	margin: 0;
	color: var(--wp--preset--color--stone-muted, #9B9797);
	font-size: 1.05rem;
}

.berelian-featured-product__price {
	margin: 0;
	font-weight: 700;
	font-size: 1.15rem;
}

.berelian-featured-product__cta {
	display: inline-block;
	margin-top: 0.5rem;
	align-self: flex-start;
	padding: 0.7rem 1.75rem;
	border: 1px solid var(--berelian-gold);
	border-radius: var(--berelian-radius-sm);
	color: var(--berelian-gold-deep);
	text-decoration: none;
	font-weight: 600;
	transition: background-color 180ms ease, color 180ms ease;
}

.berelian-featured-product__cta:hover {
	background: var(--berelian-gold);
	color: var(--berelian-paper);
}

@media (width <= 780px) {
	.berelian-featured-product {
		grid-template-columns: 1fr;
	}

	.berelian-featured-product__cta {
		align-self: stretch;
		text-align: center;
	}
}

/* ── Product video (under the gallery on the single-product page) ── */
.berelian-product-video {
	margin-top: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.berelian-product-video__label {
	display: block;
}

.berelian-product-video video,
.berelian-product-video__embed {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	border-radius: var(--berelian-radius, 0.4rem);
	border: 1px solid var(--wp--preset--color--stone-border, #DAD7D2);
	background: var(--berelian-ink);
	transition: border-color 180ms ease;
}

.berelian-product-video video:hover,
.berelian-product-video__embed:hover {
	border-color: var(--berelian-gold);
}

.berelian-product-video__file {
	display: block;
	height: auto;
	max-height: 70vh;
}

.berelian-product-video__embed {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.berelian-product-video__embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	html[lang="fa-IR"] *,
	html[lang="fa-IR"] *::before,
	html[lang="fa-IR"] *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
