/* کارت‌های قیمت سیمان — بدون جاوااسکریپت */

.brz-products {
	padding: 42px 0;
	background: var(--brz-pr-bg, #0d2b4e);
}

.brz-products__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(var(--brz-pr-min, 210px), 1fr));
	gap: 18px;
}

/* ---------- نوار پیوسته ----------
   پنجره برش می‌دهد و تسمه با transform حرکت می‌کند. کارت‌ها عرض ثابت
   می‌گیرند، وگرنه در چیدمان افقی جمع می‌شوند. */

.brz-products__viewport {
	overflow: hidden;
	/* جا برای بالا آمدن کارت هنگام هاور، وگرنه سرش بریده می‌شود */
	margin: -10px -4px;
	padding: 10px 4px;
	cursor: grab;
}

.brz-products__viewport:active { cursor: grabbing; }

.brz-products__grid.is-belt {
	display: flex;
	width: max-content;
	grid-template-columns: none;
}

.brz-products__grid.is-belt > .brz-pr {
	flex: 0 0 var(--brz-pr-min, 210px);
	width: var(--brz-pr-min, 210px);
}

/* بدون جاوااسکریپت یا با «کاهش حرکت»: همان نوار، ولی دستی */
.brz-products__viewport.is-static {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	cursor: default;
	scrollbar-width: none;
}

.brz-products__viewport.is-static::-webkit-scrollbar { display: none; }
.brz-products__viewport.is-static .brz-pr { scroll-snap-align: start; }

/* ظرف این بخش می‌تواند پهن‌تر از بقیه صفحه باشد تا همه کارت‌ها
   در یک ردیف جا شوند. */
.brz-products .brz-shell { max-width: var(--brz-pr-max, 1600px); }

/* در دسکتاپ تعداد ستون‌ها ثابت است، پس هیچ‌وقت به ردیف دوم نمی‌افتد. */
@media (min-width: 1100px) {
	.brz-products__grid {
		grid-template-columns: repeat(var(--brz-pr-cols, 7), minmax(0, 1fr));
	}
}

.brz-pr {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 26px 16px 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 16px rgba(17, 18, 20, .1);
	text-align: center;
	overflow: hidden;
	transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s;
}

.brz-pr:hover { transform: translateY(-7px); box-shadow: 0 18px 34px rgba(17, 18, 20, .2); }

.brz-products__grid.is-belt > .brz-pr:hover { transform: translateY(-5px); }

.brz-pr__ribbon {
	position: absolute;
	top: 20px;
	left: -42px;
	width: 140px;
	padding: 5px 0;
	background: var(--brz-amber, #f5a623);
	color: #111;
	font-size: .7rem;
	font-weight: 800;
	text-align: center;
	transform: rotate(-45deg);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	/* عرض ثابت و بیرون‌زدگی از دو طرف، تا گوشه گرد کارت کامل پوشیده شود */
}

.brz-pr__logo {
	display: grid;
	place-items: center;
	width: var(--brz-pr-logo, 72px);
	height: var(--brz-pr-logo, 72px);
	margin: 6px 0 14px;
}

.brz-pr__logo img { width: 100%; height: 100%; object-fit: contain; }
.brz-pr__ph { color: var(--brz-navy, #0d2b4e); opacity: .5; }

.brz-pr__name { margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; line-height: 1.7; color: #1c1c1e; }
.brz-pr__name a { color: inherit; text-decoration: none; }
.brz-pr__name a:hover { color: var(--brz-orange, #e8791a); }

.brz-pr__price {
	display: flex;
	flex-direction: column;
	gap: 3px;
	width: 100%;
	padding: 11px 8px;
	margin-bottom: 10px;
	border-radius: 10px;
	background: #faf6ee;
}

.brz-pr__type   { font-size: .82rem; color: #8a8f98; }
.brz-pr__amount { font-size: 1.08rem; font-weight: 800; color: #c1660b; }
.brz-pr__amount small { font-size: .7rem; font-weight: 400; color: #8a8f98; }


.brz-pr__updated {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	font-size: .66rem;
	color: #a0a5ae;
}

@media (max-width: 480px) {
	.brz-products__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
	.brz-pr { padding: 20px 10px 14px; }
}

@media (prefers-reduced-motion: reduce) { .brz-pr { transition: none; } }

/* ---------- دکمه «نمایش تمامی محصولات» ---------- */

.brz-products__cta {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}

/*
 * روی زمینه سرمه‌ای بخش می‌نشیند. حاشیه نارنجی محو در حالت عادی، و با هاور
 * از سمت راست با نارنجی پر می‌شود — همان جهت خواندن فارسی.
 */
.brz-products__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	border: 1.5px solid rgba(232, 121, 26, .55);
	border-radius: 999px;
	background: rgba(232, 121, 26, .1);
	color: #fff;
	font-family: inherit;
	font-size: .95rem;
	font-weight: 800;
	text-decoration: none;
	overflow: hidden;
	transition: border-color .3s, color .3s, box-shadow .3s, transform .3s;
}

.brz-products__btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(135deg, #f08a26, #e8791a 55%, #d16a0c);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform .38s cubic-bezier(.2, .8, .3, 1);
}

.brz-products__btn-text,
.brz-products__btn-arrow { position: relative; z-index: 1; }

.brz-products__btn-arrow {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: var(--brz-amber, #f5a623);
	transition: background .3s, color .3s, transform .3s;
}

.brz-products__btn:hover,
.brz-products__btn:focus-visible {
	border-color: #f08a26;
	color: #fff;
	box-shadow: 0 10px 28px rgba(209, 106, 12, .4);
	transform: translateY(-2px);
}

.brz-products__btn:hover::before,
.brz-products__btn:focus-visible::before { transform: scaleX(1); }

.brz-products__btn:hover .brz-products__btn-arrow,
.brz-products__btn:focus-visible .brz-products__btn-arrow {
	background: #fff;
	color: #d16a0c;
	transform: translateX(-4px);
}

.brz-products__btn:active { transform: translateY(0); }

@media (max-width: 480px) {
	.brz-products__cta { margin-top: 20px; }
	.brz-products__btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {

	.brz-products__btn,
	.brz-products__btn::before,
	.brz-products__btn-arrow { transition: none; }

	.brz-products__btn:hover { transform: none; }
	.brz-products__btn:hover::before { transform: scaleX(1); }
	.brz-products__btn:hover .brz-products__btn-arrow { transform: none; }
}


/* ═══════════ کاهش حرکت ═══════════ */

@media (prefers-reduced-motion: reduce) {

	.brz-products__grid.is-belt { transform: none !important; }
	.brz-pr { transition: none; }
	.brz-pr:hover { transform: none; }
}

/* ═══════════ چاپ ═══════════ */

@media print {

	.brz-products__viewport { overflow: visible; }

	.brz-products__grid.is-belt {
		width: auto;
		flex-wrap: wrap;
		transform: none !important;
	}

	.brz-products__grid.is-belt > [data-brz-clone="1"] { display: none; }
}
