/* ==========================================================================
   WooCommerce — Digikala-style complete design (rayandaya theme)
   RTL-first · Loaded on every WooCommerce page
   ========================================================================== */

:root {
	--rd-red:         #ef394e;
	--rd-red-hover:   #e03145;
	--rd-red-soft:    #fff0f1;
	--rd-dark:        #232933;
	--rd-text:        #3f4064;
	--rd-muted:       #81858b;
	--rd-muted-2:     #62666d;
	--rd-border:      #e0e0e0;
	--rd-border-soft: #f0f0f0;
	--rd-bg:          #f5f5f5;
	--rd-card:        #ffffff;
	--rd-star:        #f9a825;
	--rd-green:       #00bfa5;
	--rd-green-soft:  #e8f9f6;
	--rd-radius:      8px;
	--rd-radius-lg:   12px;
	--rd-shadow:      0 2px 8px rgba(0, 0, 0, .06);
	--rd-shadow-lg:   0 6px 20px rgba(0, 0, 0, .1);
	--rd-font:        "IRANSans", Tahoma, Arial, sans-serif;
}

/* ================================== BASE ================================== */

body.woocommerce #site-content-contain,
body.woocommerce-page #site-content-contain,
body.woocommerce-cart #site-content-contain,
body.woocommerce-checkout #site-content-contain,
body.woocommerce-account #site-content-contain {
	background: var(--rd-bg) !important;
}

.woocommerce,
.woocommerce-page {
	font-family: var(--rd-font);
	color: var(--rd-text);
	line-height: 1.8;
}
.woocommerce a,
.woocommerce-page a { text-decoration: none; }
/* ============ عنوان‌های ووکامرس — سیستم هدینگ اختصاصی ============ */
/* همه قوانین با body.rd-wc نوشته می‌شوند تا specificity بالا باشد و بر
   استایل‌های پیش‌فرض قالب/بوت‌استرپ (h1..h6, .page-title و …) غلبه کند. */

/* تگ‌های h حذف و با div.rd-h جایگزین شدند — این کلاس‌ها همان نقش را دارند */
.rd-h {
	font-family: var(--rd-font);
	color: var(--rd-dark);
	font-weight: 800;
	letter-spacing: -.2px;
	line-height: 1.6;
	border: none;
	margin-top: 0;
	margin-bottom: 15px;
}
.rd-h1 { font-size: 24px; }
.rd-h2 { font-size: 19px; }
.rd-h3 { font-size: 16px; font-weight: 700; }
.rd-h4 { font-size: 14.5px; font-weight: 700; }
.rd-h5 { font-size: 13px; font-weight: 700; }
.rd-h6 { font-size: 12px; font-weight: 700; }
body.rd-wc .rd-h .woocommerce-Price-amount,
body.rd-wc .rd-h2 .woocommerce-Price-amount,
body.rd-wc .rd-h3 .woocommerce-Price-amount { color: var(--rd-red); }

body.rd-wc h1,
body.rd-wc h2,
body.rd-wc h3,
body.rd-wc h4,
body.rd-wc h5,
body.rd-wc h6 {
	font-family: var(--rd-font) !important;
	color: var(--rd-dark) !important;
	font-weight: 800 !important;
	letter-spacing: -.2px;
	line-height: 1.6;
	border: none !important;
	margin-top: 0;
	margin-bottom: 15px;
	background: none;
}

/* h1 — عنوان اصلی صفحه (فروشگاه، سبد، حساب کاربری، ...) */
body.rd-wc h1 {
	font-size: 24px !important;
}


/* h2 — عنوان بخش */
body.rd-wc h2 {
	font-size: 19px !important;
}


/* h3 — عنوان فرعی */
body.rd-wc h3 {
	font-size: 16px !important;
	font-weight: 700 !important;
}

/* h4 — عنوان کوچک */
body.rd-wc h4 {
	font-size: 14.5px !important;
	font-weight: 700 !important;
}

/* قیمت داخل عنوان‌ها */
body.rd-wc h2 .woocommerce-Price-amount,
body.rd-wc h3 .woocommerce-Price-amount { color: var(--rd-red) !important; }

/* استثناها — عنوان‌هایی که استایل اختصاصی خودشان را دارند */
body.rd-wc .rd-pdp-title,
body.rd-wc .rd-cart__heading h1 {
	font-size: 21px !important;
	padding-right: 0;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
body.rd-wc .rd-pdp-title::before { display: none; }
body.rd-wc .rd-cart__heading h1::before {
	content: "\f07a";
	font-family: "FontAwesome";
	color: var(--rd-red);
	font-size: 18px;
	display: inline-block;
	position: static;
	background: none;
}

/* عنوان‌های صفحات پرکاربرد (حساب کاربری، تسویه، مشخصات سفارش) */
body.rd-wc .woocommerce-MyAccount-content h2,
body.rd-wc .woocommerce-MyAccount-content h3,
body.rd-wc .woocommerce-checkout h3,
body.rd-wc .woocommerce-order h2,
body.rd-wc .woocommerce-order h3,
body.rd-wc .rd-checkout__form h3 {
	font-size: 16px !important;
	font-weight: 800 !important;
	color: var(--rd-dark) !important;
	margin: 0 0 14px !important;
}


/* price base */
.woocommerce .price,
.woocommerce-page .price { color: var(--rd-dark); }
.woocommerce .price del,
.woocommerce-page .price del { color: var(--rd-muted); opacity: 1; }
.woocommerce .price ins,
.woocommerce-page .price ins { text-decoration: none; font-weight: 700; }

/* star rating */
.woocommerce .star-rating,
.woocommerce-page .star-rating { color: var(--rd-star); }
.woocommerce .star-rating span::before,
.woocommerce-page .star-rating span::before { color: var(--rd-star); }

/* generic buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
	background: var(--rd-red);
	color: #fff;
	border: none;
	border-radius: var(--rd-radius);
	padding: 10px 18px;
	font-family: var(--rd-font);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.8;
	transition: background .2s ease, transform .15s ease;
	cursor: pointer;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--rd-red-hover);
	color: #fff;
}

/* notices */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-right: 4px solid var(--rd-green);
	border-radius: var(--rd-radius);
	color: var(--rd-text);
	padding: 12px 42px 12px 16px;
	box-shadow: var(--rd-shadow);
}
.woocommerce .woocommerce-error { border-right-color: var(--rd-red); }
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before { color: var(--rd-green); }
.woocommerce .woocommerce-error::before { color: var(--rd-red); }
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-error .button {
	background: var(--rd-red) !important;
	color: #fff !important;
	font-size: 12px;
	padding: 4px 12px;
	border-radius: 6px;
	margin-right: 8px;
}

/* forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection--single,
.woocommerce form input.input-text,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
	border: 1px solid var(--rd-border);
	border-radius: 6px;
	padding: 10px 12px;
	background: #fff;
	color: var(--rd-text);
	font-family: var(--rd-font);
	font-size: 14px;
	box-shadow: none;
	height: auto;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce input.input-text:focus,
.woocommerce select:focus {
	border-color: var(--rd-red);
	outline: none;
}
.woocommerce form .form-row label {
	color: var(--rd-muted-2);
	font-size: 13px;
	margin-bottom: 4px;
}
.woocommerce form .form-row .required { color: var(--rd-red); }
.woocommerce form .form-row .optional { color: var(--rd-muted); font-size: 11px; }

/* breadcrumb (shop) */
.woocommerce .woocommerce-breadcrumb {
	color: var(--rd-muted);
	font-size: 13px;
	margin: 0 0 16px;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--rd-muted); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--rd-red); }

/* ================================ SHOP PAGE =============================== */

.rd-shop {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

/* sidebar */
.rd-sidebar__card,
.rd-sidebar__widgets {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 14px 16px;
	margin-bottom: 16px;
	box-shadow: var(--rd-shadow);
}
.rd-sidebar__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--rd-dark);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rd-border-soft);
	margin: 0 0 8px;
	position: relative;
	padding-right: 12px;
}
.rd-sidebar__title::before {
	content: "";
	position: absolute;
	right: 0;
	top: 3px;
	bottom: 10px;
	width: 3px;
	border-radius: 2px;
	background: var(--rd-red);
}
.rd-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rd-sidebar__list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 4px;
	border-bottom: 1px solid var(--rd-border-soft);
	transition: background .15s ease;
	border-radius: 6px;
}
.rd-sidebar__list li:last-child { border-bottom: none; }
.rd-sidebar__list li:hover { background: var(--rd-red-soft); }
.rd-sidebar__list li.is-active { background: var(--rd-red-soft); }
.rd-sidebar__list li.is-active a { color: var(--rd-red); font-weight: 700; }
.rd-sidebar__list a {
	color: var(--rd-text);
	font-size: 13px;
	flex: 1;
}
.rd-sidebar__list a:hover { color: var(--rd-red); }
.rd-sidebar__count {
	font-size: 11px;
	color: var(--rd-muted);
	background: var(--rd-bg);
	border-radius: 10px;
	padding: 1px 8px;
	font-family: var(--rd-font);
}

/* sidebar widgets (price filter etc.) */
.rd-sidebar__widgets .widget { margin-bottom: 14px; }
.rd-sidebar__widgets .widget:last-child { margin-bottom: 0; }
.rd-sidebar__widgets .widget-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--rd-dark);
	margin: 0 0 8px;
}
.rd-sidebar__widgets .widget ul { list-style: none; margin: 0; padding: 0; }
.rd-sidebar__widgets .widget ul li { padding: 6px 0; border-bottom: 1px dashed var(--rd-border-soft); }
.rd-sidebar__widgets .widget ul li a { color: var(--rd-text); font-size: 13px; }
.rd-sidebar__widgets .widget ul li a:hover { color: var(--rd-red); }
.rd-sidebar__widgets .price_slider_wrapper .ui-slider { margin: 12px 0; }
.rd-sidebar__widgets .price_slider_amount .button {
	background: var(--rd-red) !important;
	color: #fff !important;
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 6px;
}

/* main column */
.rd-shop__main { min-width: 0; }

/* archive title (woocommerce_content prints h1.page-title) */
body.rd-wc .rd-shop__main .page-title,
body.rd-wc .woocommerce-products-header__title {
	font-size: 25px !important;
	font-weight: 800 !important;
	color: var(--rd-dark) !important;
	margin: 0 0 18px !important;
	border: none !important;
	display: inline-block;
	background: none !important;
	line-height: 1.5;
}

.woocommerce .term-description {
	color: var(--rd-muted);
	font-size: 13px;
	margin: -8px 0 14px;
}

/* toolbar */
.rd-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 10px 16px;
	margin-bottom: 16px;
	box-shadow: var(--rd-shadow);
}
.rd-shop__main .woocommerce-NoticeGroup { margin-bottom: 12px; }
.rd-toolbar .woocommerce-ordering { margin: 0; }
.woocommerce .woocommerce-result-count {
	color: var(--rd-muted-2);
	font-size: 13px;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: 20px;
	padding: 6px 14px;
	font-family: var(--rd-font);
	box-shadow: var(--rd-shadow);
}
.woocommerce .woocommerce-result-count::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--rd-green);
	display: inline-block;
	animation: rdPulse 2s ease-in-out infinite;
}
.woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce .woocommerce-ordering select,
.woocommerce .rd-toolbar select {
	border: 1px solid var(--rd-border);
	border-radius: 6px;
	padding: 7px 12px;
	background: #fff;
	color: var(--rd-text);
	font-family: var(--rd-font);
	font-size: 13px;
	cursor: pointer;
}


/* ============================= PRODUCT GRID =============================== */

.woocommerce ul.rd-product-grid,
ul.rd-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 1199px) {
	.woocommerce ul.rd-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	.woocommerce ul.rd-product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* product card */
.woocommerce li.rd-product-card,
li.rd-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 10px;
	margin: 0;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.woocommerce li.rd-product-card:hover,
li.rd-product-card:hover {
	box-shadow: var(--rd-shadow-lg);
	transform: translateY(-3px);
	border-color: #d4d4d4;
}

/* media */
.rd-product-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
}
.rd-product-card__media-link {
	display: block;
}
.rd-product-card__media-link > img,
.rd-product-card__media > img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	display: block;
	transition: transform .35s ease;
}
li.rd-product-card:hover .rd-product-card__media-link > img,
li.rd-product-card:hover .rd-product-card__media > img { transform: scale(1.05); }

/* discount badge (circle) */
.rd-product-card__media .onsale,
.woocommerce ul.rd-product-grid .onsale {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	width: 38px;
	height: 38px;
	background: var(--rd-red);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	margin: 0;
	min-height: auto;
	min-width: auto;
	padding: 0;
}

/* hover swap image */
.rd-product-card__media-hover {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: #fff;
	opacity: 0;
	transition: opacity .35s ease;
}
.rd-product-card__media-hover a {
	display: block;
	width: 100%;
	height: 100%;
}
.rd-product-card__media-hover img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
li.rd-product-card:hover .rd-product-card__media-hover { opacity: 1; }

/* out of stock badge */
.rd-product-card__out {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 4;
	background: rgba(35, 41, 51, .75);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	font-family: var(--rd-font);
	padding: 3px 12px;
	border-radius: 14px;
	letter-spacing: 0;
}

/* overlay action buttons (wishlist / quick view / compare) */
.rd-product-card__actions {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 6px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease;
}
li.rd-product-card:hover .rd-product-card__actions {
	opacity: 1;
	transform: none;
}
.rd-product-card__action {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--rd-text);
	font-size: 14px;
	transition: all .2s ease;
}
.rd-product-card__action:hover {
	background: var(--rd-red);
	color: #fff;
	transform: translateY(-2px);
}
@media (hover: none) {
	.rd-product-card__actions { opacity: 1; transform: none; }
}

/* body */
.rd-product-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 8px 4px 4px;
}
.rd-product-card__title {
	font-size: 13px;
	line-height: 1.9;
	color: var(--rd-text);
	font-weight: 400;
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}
.rd-product-card__title a { color: var(--rd-text); }
.rd-product-card__title a:hover { color: var(--rd-red); }
.rd-product-card__cats {
	font-size: 11px;
	color: var(--rd-muted);
	margin: -2px 0 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.rd-product-card__cats a { color: var(--rd-muted); }
.rd-product-card__cats a:hover { color: var(--rd-red); }

/* rating + stock */
.rd-product-card__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.rd-product-card__rating .star-rating {
	font-size: 12px;
	height: 14px;
	width: 68px;
	margin: 0;
}
.rd-product-card__rating .star-rating span::before { font-size: 12px; }
.rd-product-card__rating-num {
	font-size: 12px;
	color: var(--rd-muted);
}
.rd-product-card__stock {
	font-size: 11px;
	color: var(--rd-green);
	background: var(--rd-green-soft);
	border-radius: 4px;
	padding: 1px 8px;
	margin-right: auto;
}
.rd-product-card__stock.is-out { color: var(--rd-red); background: var(--rd-red-soft); }

/* price */
.rd-price {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: auto;
	padding: 4px 0 2px;
	min-height: 32px;
}

/* قیمت فعلی (قیمت فروش) */
.rd-price .woocommerce-Price-amount.amount,
.rd-price .price .woocommerce-Price-amount,
.rd-price ins .woocommerce-Price-amount {
	font-size: 16px;
	font-weight: 800;
	color: var(--rd-dark);
	letter-spacing: -.2px;
	transition: color .2s ease, transform .2s ease;
}
.rd-price .woocommerce-Price-currencySymbol {
	font-size: 12px;
	font-weight: 500;
	color: var(--rd-muted-2);
	margin-right: 2px;
}

/* قیمت قدیمی (خط‌خورده) */
.rd-price del {
	color: var(--rd-muted);
	font-size: 12px;
	order: 2;
	opacity: .85;
}
.rd-price del .woocommerce-Price-amount {
	font-size: 12px;
	color: var(--rd-muted);
	text-decoration: line-through;
	text-decoration-color: rgba(35, 41, 51, .45);
	text-decoration-thickness: 1.5px;
}

/* افکت روی هاور کارت */
li.rd-product-card:hover .rd-price .woocommerce-Price-amount {
	color: var(--rd-red);
	transform: translateY(-1px);
}
li.rd-product-card:hover .rd-price .woocommerce-Price-amount {
	display: inline-block;
}

/* حالت تخفیف‌دار: قیمت فروش قرمز */
.rd-price .onsale ~ .woocommerce-Price-amount,
.rd-product-card .rd-price ins .woocommerce-Price-amount {
	color: var(--rd-red);
}

/* در صورت نبود تخفیف، ins همان قیمت عادی است */
.rd-price ins {
	text-decoration: none;
	order: 1;
}
.rd-price ins,
.rd-price > .woocommerce-Price-amount {
	order: 1;
}
.rd-price > .woocommerce-Price-amount.amount {
	font-size: 16px;
	font-weight: 800;
	color: var(--rd-dark);
}
.rd-price .woocommerce-Price-amount bdi { font-weight: inherit; }

/* add-to-cart — always visible */
.rd-product-card__cta {
	margin-top: 10px;
}
.rd-product-card__cta .button,
.rd-product-card__cta a.add_to_cart_button,
.rd-product-card__cta a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	background: var(--rd-red);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 12.5px;
	font-weight: 600;
	font-family: var(--rd-font);
	cursor: pointer;
	transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
	position: relative;
	overflow: hidden;
}
.rd-product-card__cta .button:hover,
.rd-product-card__cta a.add_to_cart_button:hover {
	background: var(--rd-red-hover);
	color: #fff;
	box-shadow: 0 6px 16px rgba(239, 57, 78, .38);
	transform: translateY(-1px);
}
.rd-product-card__cta .button:active,
.rd-product-card__cta a.add_to_cart_button:active {
	transform: translateY(0) scale(.98);
}
.rd-product-card__cta .button::before,
.rd-product-card__cta a.add_to_cart_button::before {
	content: "\f07a";
	font-family: "FontAwesome";
	font-size: 13px;
	transition: transform .2s ease;
}
.rd-product-card__cta .button:hover::before,
.rd-product-card__cta a.add_to_cart_button:hover::before {
	transform: translateY(-2px) scale(1.15);
}
.rd-product-card__cta a.added_to_cart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 8px;
	background: #fff;
	color: var(--rd-red);
	border: 1px solid var(--rd-red);
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 12.5px;
	font-weight: 700;
	font-family: var(--rd-font);
	text-decoration: none;
	transition: all .2s ease;
}
.rd-product-card__cta a.added_to_cart::before {
	content: "\f07a";
	font-family: "FontAwesome";
	font-size: 13px;
}
.rd-product-card__cta a.added_to_cart:hover {
	background: var(--rd-red);
	color: #fff;
}
.rd-product-card__cta a.button.product_type_variable::before,
.rd-product-card__cta a.add_to_cart_button.product_type_variable::before {
	content: "\f0ca";
}
/* out-of-stock CTA becomes neutral */
.rd-product-card__cta a.button.product_type_simple:not(.add_to_cart_button) {
	background: #e8eaed;
	color: var(--rd-muted-2);
	box-shadow: none;
}
.rd-product-card__cta a.button.product_type_simple:not(.add_to_cart_button):hover {
	background: #dde0e4;
	color: var(--rd-muted-2);
}

/* =============================== PAGINATION =============================== */
.woocommerce nav.woocommerce-pagination { margin-top: 26px; }
.woocommerce nav.woocommerce-pagination ul {
	border: none;
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 0;
}
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: 8px;
	color: var(--rd-text);
	padding: 8px 14px;
	font-size: 13px;
	min-width: 40px;
	text-align: center;
	line-height: 1.6;
	display: block;
	transition: all .2s ease;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--rd-red);
	border-color: var(--rd-red);
	color: #fff;
	font-weight: 700;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
	border-color: var(--rd-red);
	color: var(--rd-red);
	box-shadow: var(--rd-shadow);
}
.woocommerce nav.woocommerce-pagination ul li a.next::before,
.woocommerce nav.woocommerce-pagination ul li a.prev::before {
	font-family: "FontAwesome";
}
.woocommerce nav.woocommerce-pagination ul li a.prev::before { content: "\f104"; }
.woocommerce nav.woocommerce-pagination ul li a.next::before { content: "\f105"; }

/* ============================== SINGLE PRODUCT ============================= */

.woocommerce .rd-product {
	background: transparent;
}

/* breadcrumb */
.rd-breadcrumb {
	margin: 0 0 16px;
}
.rd-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none !important;
	margin: 0;
	padding: 0;
	gap: 2px;
	font-size: 12.5px;
}
.rd-breadcrumb li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	color: var(--rd-muted);
}
.rd-breadcrumb li:not(:last-child)::after {
	content: "\f104";
	font-family: "FontAwesome";
	font-size: 11px;
	margin: 0 8px;
	color: #c9c9c9;
}
.rd-breadcrumb a { color: var(--rd-muted); }
.rd-breadcrumb a:hover { color: var(--rd-red); }
.rd-breadcrumb li.is-current {
	color: var(--rd-text);
	font-weight: 600;
	max-width: 240px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* header */
.rd-pdp-header {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 18px 20px;
	margin-bottom: 16px;
	box-shadow: var(--rd-shadow);
}
.rd-pdp-title {
	font-size: 21px;
	font-weight: 800;
	color: var(--rd-dark);
	margin: 0 0 10px;
	line-height: 1.7;
	border: none;
	letter-spacing: -.3px;
}
.rd-pdp-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--rd-muted);
}
.rd-pdp-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--rd-star);
	font-weight: 700;
}
.rd-pdp-rating .star-rating { margin: 0; font-size: 13px; }
.rd-pdp-rating .star-rating span::before { font-size: 13px; }
.rd-pdp-reviews-link,
.rd-pdp-questions {
	color: var(--rd-muted);
	border-bottom: 1px dashed #c9c9c9;
	font-family: var(--rd-font);
}
.rd-pdp-reviews-link:hover,
.rd-pdp-questions:hover { color: var(--rd-red); }
.rd-pdp-code {
	margin-right: auto;
	font-size: 12px;
	background: var(--rd-bg);
	border-radius: 6px;
	padding: 4px 12px;
}

/* two columns */
.rd-product__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}
.rd-product__cols > * {
	min-width: 0;
}
/* RTL: ستون ۱ سمت راست. گالری راست، تبها وسط، اطلاعات چپ */
.rd-product__cols .rd-product__gallery {
	grid-column: 1;
	grid-row: 1;
}
.rd-product__cols .rd-tabs {
	grid-column: 2;
	grid-row: 1;
	margin-top: 0;
}
.rd-product__cols .rd-pdp-info {
	grid-column: 3;
	grid-row: 1;
}

/* gallery */
.rd-product__gallery {
	min-width: 0;
}
.rd-gallery {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 14px;
	box-shadow: var(--rd-shadow);
	position: sticky;
	top: 16px;
	max-width: 520px;
	margin: 0 auto;
}
.rd-gallery__main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	background: #fff;
	border: 1px solid var(--rd-border-soft);
	border-radius: var(--rd-radius);
	overflow: hidden;
}
.rd-gallery__main-img-btn {
	border: none;
	background: transparent;
	padding: 0;
	cursor: zoom-in;
	display: block;
	max-width: 100%;
}
.rd-gallery__main img {
	max-width: 100%;
	max-height: 440px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	transition: transform .25s ease;
}
.rd-gallery__main-img-btn:hover img { transform: scale(1.02); }
.rd-gallery__count {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 6;
	background: rgba(35, 41, 51, .72);
	color: #fff;
	font-size: 11px;
	font-family: var(--rd-font);
	padding: 4px 12px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.rd-gallery__main .onsale.rd-sale {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 4;
	width: 46px;
	height: 46px;
	background: var(--rd-red);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	margin: 0;
	min-height: auto;
	min-width: auto;
	padding: 0;
}
.rd-gallery__zoom {
	position: absolute;
	bottom: 10px;
	left: 10px;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .95);
	color: var(--rd-text);
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
	transition: all .2s ease;
}
.rd-gallery__zoom:hover { color: var(--rd-red); background: #fff; }

/* overlay action buttons (wishlist / share / alert) */
.rd-gallery__actions {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 20;
	display: flex !important;
	flex-direction: column;
	gap: 8px;
	opacity: 1 !important;
}
.rd-gallery__action {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	color: var(--rd-red);
	font-size: 14px;
	transition: all .2s ease;
	border: 1px solid rgba(239, 57, 78, .25);
}
.rd-gallery__action:hover {
	background: var(--rd-red);
	color: #fff;
	transform: translateY(-2px);
	border-color: var(--rd-red);
}
.rd-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--rd-text);
	font-size: 17px;
	cursor: pointer;
	opacity: 0;
	transition: all .2s ease;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}
.rd-gallery__main:hover .rd-gallery__nav { opacity: 1; }
.rd-gallery__nav:hover { color: var(--rd-red); }
.rd-gallery__nav--prev { right: 10px; }
.rd-gallery__nav--next { left: 10px; }
.rd-gallery__thumbs {
	display: flex;
	gap: 8px;
	list-style: none !important;
	margin: 12px 0 0;
	padding: 0;
	overflow-x: auto;
}
.rd-gallery__thumbs li {
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	border: 2px solid var(--rd-border);
	border-radius: 8px;
	padding: 3px;
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
	background: #fff;
}
.rd-gallery__thumbs li:hover {
	border-color: var(--rd-red);
	transform: translateY(-2px);
	box-shadow: 0 3px 8px rgba(239, 57, 78, .18);
}
.rd-gallery__thumbs li.is-active { border-color: var(--rd-red); }
.rd-gallery__thumbs li img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 5px;
}

/* info column */
.rd-pdp-info { min-width: 0; }

/* features card */
.rd-pdp-features {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 20px 22px;
	margin-bottom: 16px;
	box-shadow: var(--rd-shadow);
}
.rd-pdp-features h2,
.rd-pdp-features .rd-h2 {
	font-size: 15px;
	font-weight: 700;
	color: var(--rd-dark);
	margin: 0 0 14px;
	padding-right: 12px;
	position: relative;
	border: none;
	display: flex;
	align-items: center;
	gap: 8px;
}
.rd-pdp-features h2::before,
.rd-pdp-features .rd-h2::before {
	content: "";
	position: absolute;
	right: 0;
	top: 3px;
	bottom: 3px;
	width: 3px;
	border-radius: 2px;
	background: var(--rd-red);
}
.rd-pdp-features ul {
	list-style: none;
	margin: 0 0 6px;
	padding: 0;
}
.rd-pdp-features ul li {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 18px;
	font-size: 13px;
	padding: 10px 8px;
	border-bottom: 1px dashed var(--rd-border-soft);
	color: var(--rd-text);
	border-radius: 8px;
	transition: all .2s ease;
}
.rd-pdp-features ul li:hover {
	background: var(--rd-bg);
	padding-right: 14px;
}
.rd-pdp-features ul li .rd-feature-label {
	color: var(--rd-muted);
	flex-shrink: 0;
	font-size: 12.5px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.rd-pdp-features ul li .rd-feature-label i {
	color: var(--rd-red);
	font-size: 12px;
	opacity: .55;
	transition: all .2s ease;
}
.rd-pdp-features ul li:hover .rd-feature-label i {
	opacity: 1;
	transform: scale(1.2);
}
.rd-pdp-features ul li .rd-feature-value {
	text-align: left;
	font-weight: 600;
	color: var(--rd-dark);
	word-break: break-word;
	transition: color .2s ease;
}
.rd-pdp-features ul li:hover .rd-feature-value { color: var(--rd-red); }
.rd-pdp-features h2 i,
.rd-pdp-features .rd-h2 i {
	color: var(--rd-red);
	font-size: 16px;
	margin-left: 2px;
}
.rd-pdp-features__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--rd-red);
	font-size: 12.5px;
	font-weight: 600;
	font-family: var(--rd-font);
	margin: 6px 0 0;
	transition: color .2s ease;
}
.rd-pdp-features__more:hover { color: var(--rd-red-hover); }
.rd-pdp-features__more::after {
	content: "\f104";
	font-family: "FontAwesome";
	font-size: 11px;
}
.rd-pdp-features .rd-pdp-desc {
	font-size: 13px;
	color: var(--rd-muted-2);
	line-height: 2.2;
	margin-top: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--rd-border-soft);
}
.rd-pdp-features .rd-pdp-desc p { margin: 0 0 8px; }
.rd-pdp-features .rd-pdp-desc p:last-child { margin-bottom: 0; }

/* buy box */
.rd-buybox {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 18px 20px;
	box-shadow: var(--rd-shadow);
	position: sticky;
	top: 16px;
}
.rd-buybox__seller {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rd-border-soft);
	transition: background .25s ease, padding .25s ease;
	border-radius: 10px;
	padding-right: 6px;
	margin-right: -6px;
}
.rd-buybox__seller:hover {
	background: var(--rd-bg);
	padding-right: 12px;
}
.rd-buybox__seller-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--rd-red), #d62839);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	box-shadow: 0 3px 10px rgba(239, 57, 78, .3);
	transition: transform .25s ease, box-shadow .25s ease;
}
.rd-buybox__seller:hover .rd-buybox__seller-avatar {
	transform: scale(1.08);
	box-shadow: 0 5px 14px rgba(239, 57, 78, .42);
}
.rd-buybox__seller-info { flex: 1; }
.rd-buybox__seller-name { font-size: 13px; font-weight: 600; color: var(--rd-dark); }
.rd-buybox__seller-meta { font-size: 11px; color: var(--rd-muted); margin-top: 1px; }
.rd-buybox__seller-status {
	font-size: 11px;
	color: var(--rd-green);
	background: var(--rd-green-soft);
	border-radius: 14px;
	padding: 3px 12px;
	font-family: var(--rd-font);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.rd-buybox__price {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 16px 0 10px;
}
.rd-buybox__price .price {
	font-size: 27px;
	font-weight: 700;
	color: var(--rd-dark);
	order: 2;
	line-height: 1.4;
}
.rd-buybox__price .price del {
	font-size: 13px;
	color: var(--rd-muted);
	margin-left: 8px;
	display: block;
	order: 3;
	flex-basis: 100%;
}
.rd-buybox__price .price del .woocommerce-Price-amount { font-size: 13px; }
.rd-buybox__price .price ins { text-decoration: none; }
.rd-buybox__price .price ins { text-decoration: none; }
.rd-buybox__off {
	order: 1;
	background: var(--rd-red);
	color: #fff;
	border-radius: 50%;
	min-width: 44px;
	height: 44px;
	padding: 0 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
}
.rd-buybox__stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--rd-green);
	font-weight: 600;
	padding: 8px 0 12px;
}
.rd-buybox__stock i {
	font-size: 16px;
}
.rd-buybox__stock:not(.is-out) i {
	animation: rdPulse 2s ease-in-out infinite;
}
@keyframes rdPulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.18); opacity: .75; }
}
.rd-buybox__stock.is-out i { color: var(--rd-red); }
.rd-buybox__stock.is-out { color: var(--rd-red); }
.rd-buybox__warranty {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	color: var(--rd-muted-2);
	background: linear-gradient(135deg, #f0fdfa, #e8f9f6);
	border: 1px solid rgba(0, 191, 165, .18);
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 14px;
	transition: all .25s ease;
}
.rd-buybox__warranty:hover {
	border-color: rgba(0, 191, 165, .4);
	box-shadow: 0 4px 12px rgba(0, 191, 165, .16);
	transform: translateY(-1px);
}
.rd-buybox__warranty i {
	color: var(--rd-green);
	font-size: 15px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform .25s ease;
}
.rd-buybox__warranty:hover i { transform: rotate(-8deg) scale(1.1); }
.rd-buybox__actions {
	border-top: 1px solid var(--rd-border-soft);
	padding-top: 14px;
}
.rd-buybox__actions form.cart {
	display: flex;
	gap: 10px;
	align-items: center;
}
.rd-buybox__actions .quantity { float: none; margin: 0; position: relative; }
.rd-buybox__actions .single_add_to_cart_button {
	flex: 1;
	height: 50px;
	background: linear-gradient(135deg, #ef394e, #d62839);
	color: #fff;
	border: none;
	border-radius: var(--rd-radius);
	font-size: 15px;
	font-weight: 700;
	font-family: var(--rd-font);
	cursor: pointer;
	transition: all .25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(239, 57, 78, .3);
}
.rd-buybox__actions .single_add_to_cart_button::before {
	content: "\f07a";
	font-family: "FontAwesome";
	font-size: 16px;
	transition: transform .25s ease;
}
.rd-buybox__actions .single_add_to_cart_button:hover {
	background: linear-gradient(135deg, #d62839, #c41e31);
	color: #fff;
	box-shadow: 0 8px 22px rgba(239, 57, 78, .42);
	transform: translateY(-2px);
}
.rd-buybox__actions .single_add_to_cart_button:hover::before {
	transform: translateY(-2px) scale(1.15);
}
.rd-buybox__actions .single_add_to_cart_button:active {
	transform: translateY(0) scale(.98);
}
.rd-buybox__actions .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.rd-buybox__actions .single_variation_wrap .woocommerce-variation-price { margin: 10px 0; font-weight: 700; color: var(--rd-dark); }
.rd-buybox__actions .reset_variations { font-size: 12px; color: var(--rd-red); }
.rd-buybox__actions table.variations { margin: 10px 0; }
.rd-buybox__actions table.variations select {
	border: 1px solid var(--rd-border);
	border-radius: 6px;
	padding: 8px 10px;
	font-family: var(--rd-font);
	font-size: 13px;
	background: #fff;
	color: var(--rd-text);
}
.rd-buybox__actions table.variations label { font-size: 13px; color: var(--rd-muted-2); }

/* stepper buttons (added by JS) - FIXED: visible input, centered, not higher */
.rd-qty-stepper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--rd-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: none;
	vertical-align: middle;
	line-height: 1;
	min-height: 42px;
	height: 42px;
	padding: 0;
	margin: 0;
}
.rd-qty-stepper .quantity,
.rd-qty-stepper .rd-qty-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	float: none !important;
	width: auto !important;
}
.rd-qty-stepper .qty,
.rd-qty-stepper input.qty,
.quantity .qty,
.woocommerce .quantity .qty {
	display: inline-block !important;
	vertical-align: middle !important;
	box-sizing: border-box !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
	-webkit-appearance: none !important;
	padding: 0 !important;
	margin: 0 !important;
	height: 40px !important;
	width: 56px !important;
	min-width: 56px !important;
	max-width: 56px !important;
	border: none !important;
	border-left: 1px solid var(--rd-border-soft) !important;
	border-right: 1px solid var(--rd-border-soft) !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 40px !important;
	color: var(--rd-dark) !important;
	background: #fff !important;
	float: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: relative !important;
}
.rd-qty-stepper .qty::-webkit-outer-spin-button,
.rd-qty-stepper .qty::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}
.rd-qty-stepper button,
.rd-qty-stepper .rd-qty-minus,
.rd-qty-stepper .rd-qty-plus {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	vertical-align: middle !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	border: none !important;
	background: #f8fafc !important;
	color: var(--rd-dark) !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	cursor: pointer !important;
	transition: all .18s ease !important;
	font-family: var(--rd-font) !important;
	line-height: 1 !important;
	user-select: none !important;
}
.rd-qty-stepper button:hover,
.rd-qty-stepper .rd-qty-minus:hover,
.rd-qty-stepper .rd-qty-plus:hover {
	background: var(--rd-red-soft) !important;
	color: var(--rd-red) !important;
}
.rd-qty-stepper button.is-disabled,
.rd-qty-stepper button:disabled {
	opacity: .3 !important;
	cursor: not-allowed !important;
}
.rd-qty-stepper button.is-disabled:hover {
	background: #f8fafc !important;
	color: var(--rd-dark) !important;
}
/* Ensure quantity wrapper doesn't collapse */
.woocommerce div.product form.cart div.quantity,
.woocommerce div.product form.cart .rd-qty-stepper {
	float: none !important;
	margin: 0 0 0 10px !important;
	display: inline-flex !important;
}
/* Fix for product page quantity that was simple */
.woocommerce .quantity {
	float: none !important;
	margin: 0 !important;
	display: inline-flex !important;
}

/* delivery methods */
.rd-buybox__delivery {
	margin-top: 14px;
	border-top: 1px solid var(--rd-border-soft);
	padding-top: 12px;
	display: grid;
	gap: 10px;
}
.rd-buybox__delivery-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	border-radius: 8px;
	padding: 4px 6px;
	margin: 0 -6px;
	transition: background .2s ease;
}
.rd-buybox__delivery-row:hover { background: var(--rd-bg); }
.rd-buybox__delivery-row > i {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--rd-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--rd-muted-2);
	font-size: 13px;
	flex-shrink: 0;
	margin-top: 2px;
}
.rd-buybox__delivery-row strong {
	display: block;
	font-size: 12.5px;
	color: var(--rd-dark);
	font-weight: 600;
}
.rd-buybox__delivery-row span {
	font-size: 11.5px;
	color: var(--rd-muted);
}

/* trust bar — full width, bottom of the product */
.rd-buybox__trust {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	box-shadow: var(--rd-shadow);
}
.rd-buybox__trust li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 18px 12px;
	font-size: 12.5px;
	color: var(--rd-muted-2);
	line-height: 1.5;
	text-align: center;
	transition: background .2s ease;
}
.rd-buybox__trust li:hover {
	background: var(--rd-bg);
}
.rd-buybox__trust li + li {
	border-right: 1px solid var(--rd-border-soft);
}
/* دایره خاکستری دور آیکون — مثل دیجی‌کالا */
.rd-buybox__trust-ic {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rd-bg);
	color: var(--rd-muted-2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.rd-buybox__trust-ic svg {
	width: 22px;
	height: 22px;
	display: block;
}
.rd-buybox__trust li:hover .rd-buybox__trust-ic {
	background: var(--rd-red-soft);
	color: var(--rd-red);
	transform: scale(1.08);
}
.rd-buybox__trust-text {
	font-family: var(--rd-font);
}
@media (max-width: 767px) {
	.rd-buybox__trust { grid-template-columns: repeat(2, 1fr); }
	.rd-buybox__trust li:nth-child(2) { border-left: none; }
	.rd-buybox__trust li:nth-child(2),
	.rd-buybox__trust li:nth-child(4) { border-right: none; }
	.rd-buybox__trust li:nth-child(3) { border-right: 1px solid var(--rd-border-soft); }
}

/* meta */
.rd-buybox .product_meta {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed var(--rd-border-soft);
	font-size: 12px;
	color: var(--rd-muted);
	display: grid;
	gap: 5px;
}
.rd-buybox .product_meta > span {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 6px;
	border-radius: 6px;
	transition: background .2s ease;
}
.rd-buybox .product_meta > span:hover { background: var(--rd-bg); }
.rd-buybox .product_meta i {
	color: var(--rd-red);
	font-size: 12px;
	width: 16px;
	text-align: center;
}
.rd-buybox .product_meta .meta-label { color: var(--rd-muted); }
.rd-buybox .product_meta a { color: var(--rd-muted-2); }
.rd-buybox .product_meta a:hover { color: var(--rd-red); }
.rd-buybox .product_meta .sku_wrapper,
.rd-buybox .product_meta .posted_in,
.rd-buybox .product_meta .tagged_as { display: flex; gap: 4px; }

/* ================================= TABS =================================== */
.rd-tabs {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius-lg);
	margin-top: 24px;
	box-shadow: var(--rd-shadow);
	overflow: hidden;
}
.rd-tabs__nav {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 14px 18px;
	border-bottom: 1px solid var(--rd-border-soft);
	background: linear-gradient(180deg, #fafafa, #f5f5f5);
	overflow-x: auto;
}
.rd-tabs__nav li { margin: 0; flex-shrink: 0; }
.rd-tabs__nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 30px;
	color: var(--rd-muted-2);
	font-size: 13.5px;
	font-weight: 600;
	font-family: var(--rd-font);
	white-space: nowrap;
	background: transparent;
	border: 1px solid transparent;
	transition: all .25s ease;
}
.rd-tabs__nav a i {
	font-size: 15px;
	transition: transform .25s ease;
}
.rd-tabs__nav a:hover {
	color: var(--rd-red);
	background: var(--rd-red-soft);
	border-color: rgba(239, 57, 78, .18);
	transform: translateY(-1px);
}
.rd-tabs__nav a:hover i { transform: scale(1.15); }
.rd-tabs__nav a.is-active {
	color: #fff;
	background: linear-gradient(135deg, #ef394e, #d62839);
	border-color: transparent;
	box-shadow: 0 5px 16px rgba(239, 57, 78, .38);
	transform: translateY(-1px);
}
.rd-tabs__nav a.is-active i { transform: scale(1.1); }
.rd-tabs__panel {
	display: none;
	padding: 26px 28px;
	line-height: 2.2;
	font-size: 14px;
	color: var(--rd-text);
	background: #fff;
	overflow-x: auto;
}
.rd-tabs__panel.is-active {
	display: block;
	animation: rdTabFade .35s cubic-bezier(.22, .61, .36, 1);
}
@keyframes rdTabFade {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}
.rd-tabs__panel h2,
.rd-tabs__panel .rd-h2 {
	font-size: 16px;
	color: var(--rd-dark);
	border: none;
	margin: 0 0 12px;
}
.rd-tabs__panel h3,
.rd-tabs__panel .rd-h3 {
	font-size: 15px;
	color: var(--rd-dark);
	border: none;
	margin: 14px 0 8px;
}
.rd-tabs__panel p { margin: 0 0 10px; }
.rd-tabs__panel ul,
.rd-tabs__panel ol {
	padding-right: 22px;
	margin: 0 0 12px;
}
.rd-tabs__panel li { margin: 4px 0; }
.rd-tabs__panel img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.rd-tabs__panel table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
}
.rd-tabs__panel table th,
.rd-tabs__panel table td {
	border: 1px solid var(--rd-border-soft);
	padding: 9px 14px;
	font-size: 13px;
	text-align: right;
}
.rd-tabs__panel table th { background: var(--rd-bg); color: var(--rd-muted-2); font-weight: 600; width: 32%; }
.rd-tabs__panel .woocommerce-Reviews { margin-top: 8px; }

/* ================================ REVIEWS ================================= */
.woocommerce .rd-reviews { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.woocommerce .rd-reviews__summary {
	text-align: center;
	background: var(--rd-bg);
	border-radius: var(--rd-radius);
	padding: 20px 14px;
	align-self: start;
}
.woocommerce .rd-reviews__score {
	font-size: 42px;
	font-weight: 700;
	color: var(--rd-dark);
	line-height: 1.2;
}
.woocommerce .rd-reviews__stars .star-rating { margin: 6px auto; }
.woocommerce .rd-reviews__summary p { margin: 4px 0 0; font-size: 12px; color: var(--rd-muted); }
.woocommerce #reviews ol.commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce #reviews ol.commentlist li {
	margin: 0 0 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--rd-border-soft);
}
.woocommerce #reviews ol.commentlist li img.avatar {
	float: right;
	margin: 0 0 0 12px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: var(--rd-bg);
}
.woocommerce #reviews ol.commentlist li .comment-text { margin: 0 56px 0 0; border: none; padding: 0; }
.woocommerce #reviews ol.commentlist li .comment-text .star-rating { float: left; margin: 0; }
.woocommerce #reviews ol.commentlist li .comment-text p.meta {
	color: var(--rd-muted);
	font-size: 12px;
	margin-bottom: 6px;
}
.woocommerce #reviews ol.commentlist li .comment-text .description p { font-size: 13.5px; color: var(--rd-text); margin: 4px 0; }
.woocommerce #review_form_wrapper { margin-top: 20px; max-width: 560px; }
.woocommerce #review_form #respond {
	background: #fff;
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius-lg);
	padding: 20px 22px;
	box-shadow: var(--rd-shadow);
}
.woocommerce #review_form #respond h3,
.woocommerce #review_form #respond .rd-h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--rd-dark);
	margin: 0 0 6px;
	padding-right: 12px;
	position: relative;
}
.woocommerce #review_form #respond h3::before,
.woocommerce #review_form #respond .rd-h3::before {
	content: "";
	position: absolute;
	right: 0;
	top: 3px;
	bottom: 3px;
	width: 3px;
	border-radius: 2px;
	background: var(--rd-red);
}
.rd-review-form__note { font-size: 11.5px; color: var(--rd-muted); margin: 0 0 14px; }
.woocommerce #review_form #respond .comment-form-author,
.woocommerce #review_form #respond .comment-form-email {
	width: calc(50% - 6px);
	float: right;
	margin: 0 0 10px;
}
.woocommerce #review_form #respond .comment-form-email { float: left; }
.woocommerce #review_form #respond .comment-form-author { margin-left: 12px; }
.woocommerce #review_form #respond label {
	font-size: 12px;
	color: var(--rd-muted-2);
	margin-bottom: 4px;
	display: block;
}
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"] {
	width: 100%;
	border: 1px solid var(--rd-border);
	border-radius: 6px;
	padding: 8px 12px;
	font-family: var(--rd-font);
	font-size: 13px;
	background: #fff;
}
.woocommerce #review_form #respond .comment-form-rating { margin: 0 0 10px; clear: both; }
.woocommerce #review_form #respond .comment-form-rating select {
	border: 1px solid var(--rd-border);
	border-radius: 6px;
	padding: 7px 10px;
	font-family: var(--rd-font);
	background: #fff;
	font-size: 13px;
}
.woocommerce #review_form #respond .comment-form-comment { margin: 0 0 12px; clear: both; }
.woocommerce #review_form #respond textarea {
	width: 100%;
	border: 1px solid var(--rd-border);
	border-radius: 6px;
	padding: 10px 12px;
	font-family: var(--rd-font);
	font-size: 13px;
	min-height: 90px;
	background: #fff;
}
.woocommerce #review_form #respond textarea:focus,
.woocommerce #review_form #respond input:focus { border-color: var(--rd-red); outline: none; }
.woocommerce #review_form #respond .comment-form-cookies-consent {
	clear: both;
	font-size: 11.5px;
	color: var(--rd-muted);
	margin: 0 0 12px;
	display: flex;
	align-items: flex-start;
	gap: 6px;
}
.woocommerce #review_form #respond .form-submit { margin: 0; }
.woocommerce #review_form #respond .form-submit input {
	background: var(--rd-red);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 9px 26px;
	font-family: var(--rd-font);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: all .2s ease;
}
.woocommerce #review_form #respond .form-submit input:hover { background: var(--rd-red-hover); transform: translateY(-1px); }
@media (max-width: 575px) {
	.woocommerce .rd-section__row > li {
		flex-basis: 165px;
		min-width: 165px;
		width: 165px;
	}
	.rd-home-products__row > li {
		flex-basis: 175px;
		min-width: 175px;
		width: 175px;
	}

	.woocommerce #review_form #respond .comment-form-author,
	.woocommerce #review_form #respond .comment-form-email {
		width: 100%;
		float: none;
		margin: 0 0 10px;
	}
}
.woocommerce .woocommerce-noreviews,
.woocommerce .woocommerce-verification-required {
	background: var(--rd-bg);
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 13px;
	color: var(--rd-muted-2);
}
@media (max-width: 767px) {
	.woocommerce .rd-reviews { grid-template-columns: 1fr; }
}

/* ========================== RELATED / UP-SELLS / CROSS ===================== */
.woocommerce .rd-section {
	margin-top: 24px;
}
.rd-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.rd-section__head h2,
.rd-section__head .rd-h2 {
	font-size: 17px;
	font-weight: 700;
	color: var(--rd-dark);
	margin: 0;
	padding-right: 14px;
	position: relative;
}
.rd-section__head h2::before,
.rd-section__head .rd-h2::before {
	content: "";
	position: absolute;
	right: 0;
	top: 3px;
	bottom: 3px;
	width: 4px;
	border-radius: 2px;
	background: var(--rd-red);
}
.rd-section__link {
	color: var(--rd-red);
	font-size: 13px;
	font-weight: 600;
	font-family: var(--rd-font);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color .2s ease;
	background: none;
	border: none;
	padding: 4px 0;
}
.rd-section__link:hover { color: var(--rd-red-hover); }
.rd-section__link::after {
	content: "\f104";
	font-family: "FontAwesome";
	font-size: 12px;
}
.rd-section__head-side {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* nav arrows */
.rd-section__nav {
	display: flex;
	gap: 6px;
}
.rd-section__nav-btn {
	width: 34px;
	height: 34px;
	border: 1px solid var(--rd-border);
	border-radius: 50%;
	background: #fff;
	color: var(--rd-text);
	font-size: 15px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .2s ease;
	font-family: var(--rd-font);
	box-shadow: var(--rd-shadow);
}
.rd-section__nav-btn:hover {
	background: var(--rd-red);
	border-color: var(--rd-red);
	color: #fff;
}
.rd-section__nav-btn.is-disabled {
	opacity: .4;
	cursor: not-allowed;
}
.rd-section__nav-btn.is-disabled:hover {
	background: #fff;
	border-color: var(--rd-border);
	color: var(--rd-text);
}

/* horizontal scroll row */
.woocommerce .rd-section__row,
ul.rd-section__row {
	display: flex;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	overflow-y: hidden;
	gap: 12px;
	list-style: none !important;
	margin: 0 !important;
	padding: 4px 2px 14px !important;
	scrollbar-width: thin;
	scrollbar-color: #d4d4d4 transparent;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	max-width: 100%;
	touch-action: pan-x pan-y;
	overscroll-behavior-x: contain;
	-ms-overflow-style: auto;
}
/* hint the row is scrollable (fade on the left edge) */
.woocommerce .rd-section--slider {
	position: relative;
}
.woocommerce .rd-section__row {
	cursor: grab;
}
.woocommerce .rd-section__row.rd-dragging {
	cursor: grabbing;
	user-select: none;
	-webkit-user-select: none;
}
.woocommerce .rd-section__row.rd-dragging a {
	pointer-events: none;
}
.woocommerce .rd-section__row::-webkit-scrollbar { height: 5px; }
.woocommerce .rd-section__row::-webkit-scrollbar-track { background: transparent; }
.woocommerce .rd-section__row::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 4px; }
.woocommerce .rd-section__row > li {
	flex: 0 0 195px;
	flex-shrink: 0;
	min-width: 195px;
	width: 195px;
	float: none;
	margin: 0;
}
.woocommerce .rd-section__row > li.rd-product-card { min-height: 100%; }
.woocommerce .rd-section__row > li:first-child { padding-right: 0; }

/* legacy grid fallback */


/* ================================== CART ================================== */

/* کل صفحه سبد — عرض محدود و وسط‌چین */
.woocommerce .rd-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 18px;
	align-items: start;
	max-width: 1020px;
	margin: 0 auto;
	padding: 10px 0 30px;
}

/* عنوان سبد */
.rd-cart__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	grid-column: 1 / -1;
	width: 100%;
	background: linear-gradient(135deg, #fff5f6, #ffffff 60%);
	border: 1px solid var(--rd-border);
	border-right: 4px solid var(--rd-red);
	border-radius: 12px;
	padding: 16px 22px;
	margin-bottom: 20px;
	box-shadow: 0 4px 16px rgba(239, 57, 78, .08);
	transition: box-shadow .3s ease, transform .3s ease;
}
.rd-cart__heading:hover {
	box-shadow: 0 8px 26px rgba(239, 57, 78, .14);
	transform: translateY(-1px);
}
.rd-cart__heading .rd-cart__count-badge {
	background: var(--rd-red);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	border-radius: 20px;
	padding: 5px 16px;
	font-family: var(--rd-font);
	box-shadow: 0 3px 10px rgba(239, 57, 78, .3);
}

/* اقلام سبد — کارت سفید جدا */
.woocommerce .rd-cart__items {
	grid-column: 1;
	grid-row: 1;
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius-lg);
	padding: 8px 20px;
	box-shadow: var(--rd-shadow);
	min-width: 0;
}

/* هر آیتم — با هاور و گوشه‌های گرد */
.woocommerce .rd-cart__items .rd-cart-item {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 20px 12px;
	border-bottom: 1px solid var(--rd-border-soft);
	border-radius: 12px;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
	margin: 0 -8px;
}
.woocommerce .rd-cart__items .rd-cart-item:hover {
	background: var(--rd-bg);
	transform: translateX(-4px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.woocommerce .rd-cart__items .rd-cart-item:last-child { border-bottom: none; }

/* تصویر — با هاور زوم */
.rd-cart-item__media {
	position: relative;
	flex-shrink: 0;
}
.rd-cart-item__media img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	border: 1px solid var(--rd-border-soft);
	border-radius: var(--rd-radius);
	background: #fff;
	transition: transform .3s ease, box-shadow .3s ease;
}
.rd-cart-item__media:hover img {
	transform: scale(1.06);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.rd-cart-item__body { flex: 1; min-width: 0; }
.rd-cart-item__title {
	font-size: 14px;
	line-height: 1.9;
	color: var(--rd-text);
	margin: 0 0 4px;
	font-weight: 400;
}
.rd-cart-item__title a { color: var(--rd-text); transition: color .2s ease; }
.rd-cart-item__title a:hover { color: var(--rd-red); }
.rd-cart-item__meta { font-size: 12px; color: var(--rd-muted); display: grid; gap: 2px; }
.rd-cart-item__meta .variation dt { display: inline; font-weight: 600; }
.rd-cart-item__meta .variation dd { display: inline; margin: 0 4px 0 0; }
.rd-cart-item__seller {
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--rd-green);
}
.rd-cart-item__seller i { font-size: 13px; }
.rd-cart-item__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 12px;
	flex-wrap: wrap;
}

/* تعداد — استپر کوچک */
.rd-cart-item__qty { display: flex; align-items: center; gap: 8px; }
.rd-cart-item__qty .qty {
	width: 36px;
	height: 30px;
	border: none;
	text-align: center;
	font-family: var(--rd-font);
	font-size: 13px;
	font-weight: 600;
	background: var(--rd-card);
	-moz-appearance: textfield;
	appearance: textfield;
}
.rd-cart-item__qty .qty::-webkit-outer-spin-button,
.rd-cart-item__qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rd-cart-item__qty .rd-qty-stepper { border-radius: 8px; }
.rd-cart-item__qty .rd-qty-stepper button { height: 30px; width: 28px; }
.rd-cart-item__qty .rd-qty-stepper .qty { height: 30px; width: 34px; }

/* حذف */
.rd-cart-item__remove {
	background: var(--rd-red-soft);
	color: var(--rd-red);
	border: none;
	border-radius: 8px;
	padding: 7px 12px;
	font-size: 12px;
	font-family: var(--rd-font);
	cursor: pointer;
	transition: all .2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.rd-cart-item__remove:hover {
	background: var(--rd-red);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(239, 57, 78, .3);
}

/* قیمت — با افکت */
.rd-cart-item__price {
	font-size: 16px;
	font-weight: 800;
	color: var(--rd-dark);
	transition: color .2s ease;
}
.rd-cart-item__price .woocommerce-Price-amount bdi { font-weight: 800; }
.rd-cart-item__price del { font-size: 12px; color: var(--rd-muted); margin-left: 6px; }
.rd-cart-item__price ins { text-decoration: none; }

/* کارت کوپن — جذاب‌تر */
.rd-cart__coupon-card {
	grid-column: 1;
	background: linear-gradient(135deg, #fff5f6, #fff);
	border: 1px dashed var(--rd-red);
	border-radius: var(--rd-radius-lg);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	transition: box-shadow .25s ease, transform .25s ease;
}
.rd-cart__coupon-card:hover {
	box-shadow: 0 6px 18px rgba(239, 57, 78, .12);
	transform: translateY(-1px);
}
.rd-cart__coupon-title {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--rd-dark);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.rd-cart__coupon-title i { color: var(--rd-red); font-size: 18px; }
.rd-cart__coupon { display: flex; gap: 8px; flex: 1; min-width: 220px; }
.rd-cart__coupon input#coupon_code {
	flex: 1;
	border: 1px solid var(--rd-border);
	border-radius: 8px;
	padding: 9px 12px;
	font-family: var(--rd-font);
	font-size: 13px;
	box-shadow: none;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.rd-cart__coupon input#coupon_code:focus {
	border-color: var(--rd-red);
	box-shadow: 0 0 0 3px rgba(239, 57, 78, .12);
	outline: none;
}
.rd-cart__coupon button {
	background: var(--rd-red) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px;
	padding: 9px 22px;
	font-family: var(--rd-font);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all .2s ease;
}
.rd-cart__coupon button:hover {
	background: var(--rd-red-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(239, 57, 78, .3);
}

/* دکمه به‌روزرسانی */
.rd-cart__actions {
	grid-column: 1;
	padding: 6px 2px 0;
	text-align: left;
}
.rd-cart__update {
	background: #fff !important;
	color: var(--rd-red) !important;
	border: 1px solid var(--rd-red) !important;
	padding: 8px 18px;
	font-size: 12.5px;
	border-radius: 8px;
	transition: all .2s ease;
}
.rd-cart__update:hover {
	background: var(--rd-red) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

/* ستون صورتحساب */
.woocommerce .rd-cart__collaterals {
	grid-column: 2;
	grid-row: 1 / span 3;
	min-width: 0;
}
.woocommerce .rd-cart__collaterals .cart_totals { margin: 0; }

/* صورتحساب — با افکت */
.woocommerce .rd-cart-summary {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius-lg);
	padding: 22px 22px 18px;
	box-shadow: var(--rd-shadow);
	position: sticky;
	top: 20px;
	transition: box-shadow .3s ease;
}
.woocommerce .rd-cart-summary:hover {
	box-shadow: var(--rd-shadow-lg);
}
.rd-cart-summary__title {
	font-size: 16px;
	font-weight: 800;
	color: var(--rd-dark);
	margin: 0 0 14px;
	padding-right: 14px;
	position: relative;
	border: none;
	font-family: var(--rd-font);
}
.rd-cart-summary__title::before {
	content: "";
	position: absolute;
	right: 0;
	top: 3px;
	bottom: 3px;
	width: 4px;
	border-radius: 2px;
	background: var(--rd-red);
}
.woocommerce .rd-cart-summary table.shop_table { display: block; }
.woocommerce .rd-cart-summary table.shop_table tbody { display: block; }
.woocommerce .rd-cart-summary table.shop_table tr {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--rd-border-soft);
	gap: 10px;
}
.woocommerce .rd-cart-summary table.shop_table tr:last-child { border-bottom: none; }
.woocommerce .rd-cart-summary table.shop_table th,
.woocommerce .rd-cart-summary table.shop_table td {
	border: none;
	padding: 0;
	font-size: 13px;
	text-align: right;
	width: auto;
}
.woocommerce .rd-cart-summary table.shop_table th { color: var(--rd-muted-2); font-weight: 400; }
.woocommerce .rd-cart-summary table.shop_table td { color: var(--rd-text); font-weight: 600; }
.woocommerce .rd-cart-summary table.shop_table tr.order-total {
	border-top: 2px solid var(--rd-border);
	margin-top: 6px;
	padding-top: 14px;
}
.woocommerce .rd-cart-summary table.shop_table tr.order-total th { font-weight: 700; color: var(--rd-dark); }
.woocommerce .rd-cart-summary table.shop_table tr.order-total td {
	font-size: 20px;
	font-weight: 800;
	color: var(--rd-red);
	transition: transform .2s ease;
}
.woocommerce .rd-cart-summary table.shop_table tr.order-total td .woocommerce-Price-amount { color: var(--rd-red); }

/* دکمه ادامه فرایند خرید */
.woocommerce .rd-cart-summary .wc-proceed-to-checkout { padding: 0; margin-top: 16px; }
.woocommerce .rd-cart-summary .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: linear-gradient(135deg, #ef394e, #d62839);
	color: #fff;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 15px;
	font-weight: 800;
	font-family: var(--rd-font);
	box-shadow: 0 5px 16px rgba(239, 57, 78, .32);
	transition: all .25s ease;
}
.woocommerce .rd-cart-summary .wc-proceed-to-checkout a.checkout-button:hover {
	background: linear-gradient(135deg, #d62839, #c41e31);
	color: #fff;
	box-shadow: 0 8px 24px rgba(239, 57, 78, .42);
	transform: translateY(-2px);
}
.woocommerce .rd-cart-summary .wc-proceed-to-checkout a.checkout-button::before {
	content: "\f07a";
	font-family: "FontAwesome";
	margin-left: 6px;
}
.woocommerce .rd-cart-summary .shipping-calculator-form { font-size: 12px; }
.woocommerce .rd-cart-summary .shipping-calculator-form input,
.woocommerce .rd-cart-summary .shipping-calculator-form select {
	border: 1px solid var(--rd-border);
	border-radius: 6px;
	padding: 6px 10px;
	font-family: var(--rd-font);
	background: #fff;
	font-size: 12px;
	margin: 4px 0;
}
.woocommerce .rd-cart-summary .shipping-calculator-form button {
	background: var(--rd-red) !important;
	color: #fff !important;
	font-size: 12px;
	padding: 7px 14px;
	border-radius: 6px;
}

/* پیشنهاد شگفت‌انگیز — تمام عرض */
.woocommerce .rd-cart > .cross-sells {
	grid-column: 1 / -1;
	grid-row: 4;
	max-width: 100%;
}

/* سبد خالی */
.woocommerce .rd-cart-empty {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius-lg);
	box-shadow: var(--rd-shadow);
	text-align: center;
	padding: 70px 20px;
	max-width: 560px;
	margin: 0 auto;
}
.woocommerce .rd-cart-empty .rd-cart-empty__icon {
	width: 90px;
	height: 90px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--rd-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	color: var(--rd-muted);
	animation: rdFloat 3s ease-in-out infinite;
}
@keyframes rdFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}
.woocommerce .rd-cart-empty h2,
.woocommerce .rd-cart-empty .rd-h2 { font-size: 17px; margin: 0 0 8px; }
.woocommerce .rd-cart-empty p { color: var(--rd-muted); font-size: 13px; margin: 0 0 20px; }
.woocommerce .rd-cart-empty .return-to-shop { margin: 0; }
.woocommerce .rd-cart-empty .return-to-shop .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--rd-red);
	color: #fff;
	padding: 12px 26px;
	border-radius: var(--rd-radius);
	font-weight: 700;
	transition: all .25s ease;
}
.woocommerce .rd-cart-empty .return-to-shop .button:hover {
	background: var(--rd-red-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(239, 57, 78, .3);
}
.woocommerce .rd-cart-empty .return-to-shop .button::before { content: "\f07a"; font-family: "FontAwesome"; }

/* ================================ CHECKOUT ================================ */

.woocommerce .rd-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 16px;
	align-items: start;
}
.woocommerce .rd-checkout__form {
	grid-column: 1;
	grid-row: 1;
}
.woocommerce .rd-checkout .rd-checkout-summary {
	grid-column: 2;
	grid-row: 1;
}
.woocommerce .rd-checkout__form {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 22px 24px;
	box-shadow: var(--rd-shadow);
	min-width: 0;
}
.woocommerce .rd-checkout__form .c-header-total-woo,
.woocommerce .rd-checkout__form h3,
.woocommerce .rd-checkout__form .rd-h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--rd-dark);
	margin: 0 0 16px;
	padding-right: 12px;
	position: relative;
	border: none;
}
.woocommerce .rd-checkout__form .c-header-total-woo::before,
.woocommerce .rd-checkout__form h3::before,
.woocommerce .rd-checkout__form .rd-h3::before {
	content: "";
	position: absolute;
	right: 0;
	top: 3px;
	bottom: 3px;
	width: 3px;
	border-radius: 2px;
	background: var(--rd-red);
}
.woocommerce .rd-checkout__form .c-address__form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.woocommerce .rd-checkout__form .c-address__form-row--full-width,
.woocommerce .rd-checkout__form .c-address__form-row.flex-column { grid-column: 1 / -1; }
.woocommerce .rd-checkout__form .form-row { margin: 0 0 14px; }
.woocommerce .rd-checkout__form .form-row label { display: block; }
.woocommerce .rd-checkout__form .form-row input.input-text,
.woocommerce .rd-checkout__form .form-row textarea,
.woocommerce .rd-checkout__form .form-row select,
.woocommerce .rd-checkout__form input.input-text,
.woocommerce .rd-checkout__form .select2-container .select2-selection--single {
	width: 100%;
	border: 1px solid var(--rd-border);
	border-radius: 6px;
	padding: 10px 12px;
	background: #fff;
	font-family: var(--rd-font);
	font-size: 14px;
	color: var(--rd-text);
	box-shadow: none;
}
.woocommerce .rd-checkout__form .form-row input.input-text:focus,
.woocommerce .rd-checkout__form .form-row textarea:focus,
.woocommerce .rd-checkout__form .select2-container .select2-selection--single:focus { border-color: var(--rd-red); }
.woocommerce .rd-checkout__form .o-form__field-helper {
	font-size: 11px;
	color: var(--rd-muted);
	margin: 2px 0 12px;
}
.woocommerce .rd-checkout__form .woocommerce-input-wrapper { display: block; }
.woocommerce .rd-checkout__form .select2-container--default .select2-selection--single {
	height: auto;
	padding: 4px 6px;
}
.woocommerce .rd-checkout__form .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 2.3;
	color: var(--rd-text);
	font-family: var(--rd-font);
	font-size: 14px;
}
.woocommerce .rd-checkout__form .woocommerce-account-fields { margin-top: 16px; }
.woocommerce .rd-checkout__form .woocommerce-account-fields .checkbox { font-size: 13px; color: var(--rd-text); }

/* checkout summary (review order) */
.woocommerce .rd-checkout-summary {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 18px 20px;
	box-shadow: var(--rd-shadow);
	position: sticky;
	top: 16px;
}
.rd-checkout-summary__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--rd-dark);
	margin: 0 0 12px;
	padding-right: 12px;
	position: relative;
	border: none;
}
.rd-checkout-summary__title::before {
	content: "";
	position: absolute;
	right: 0;
	top: 3px;
	bottom: 3px;
	width: 3px;
	border-radius: 2px;
	background: var(--rd-red);
}
.woocommerce .rd-checkout-summary table.shop_table { display: block; width: 100%; }
.woocommerce .rd-checkout-summary table.shop_table thead,
.woocommerce .rd-checkout-summary table.shop_table tbody,
.woocommerce .rd-checkout-summary table.shop_table tfoot { display: block; }
.woocommerce .rd-checkout-summary table.shop_table tr {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--rd-border-soft);
	gap: 10px;
}
.woocommerce .rd-checkout-summary table.shop_table tr.cart_item { padding: 10px 0; }

/* قاب دور جدول خلاصه سفارش */
.woocommerce .rd-checkout-summary table.shop_table.woocommerce-checkout-review-order-table {
	border: 1px solid var(--rd-border);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--rd-shadow);
	background: #fff;
}
.woocommerce .rd-checkout-summary table.shop_table.woocommerce-checkout-review-order-table tbody tr:last-child,
.woocommerce .rd-checkout-summary table.shop_table.woocommerce-checkout-review-order-table tfoot tr:last-child { border-bottom: none; }
.woocommerce .rd-checkout-summary table.shop_table th,
.woocommerce .rd-checkout-summary table.shop_table td {
	border: none;
	padding: 0;
	font-size: 13px;
	text-align: right;
}
.woocommerce .rd-checkout-summary table.shop_table thead { display: none; }
.woocommerce .rd-checkout-summary table.shop_table td.product-name { flex: 1; color: var(--rd-text); }
.woocommerce .rd-checkout-summary table.shop_table td.product-name .product-quantity { color: var(--rd-muted); font-size: 12px; }
.woocommerce .rd-checkout-summary table.shop_table td.product-total { font-weight: 600; color: var(--rd-dark); }
.woocommerce .rd-checkout-summary table.shop_table tr.cart-subtotal th,
.woocommerce .rd-checkout-summary table.shop_table tr.cart-subtotal td { color: var(--rd-muted-2); font-weight: 400; }
.woocommerce .rd-checkout-summary table.shop_table tr.order-total {
	border-top: 2px solid var(--rd-border);
	margin-top: 6px;
	padding-top: 12px;
}
.woocommerce .rd-checkout-summary table.shop_table tr.order-total th { font-weight: 700; color: var(--rd-dark); }
.woocommerce .rd-checkout-summary table.shop_table tr.order-total td {
	font-size: 19px;
	font-weight: 700;
	color: var(--rd-red);
}
.woocommerce .rd-checkout-summary table.shop_table tr.order-total td .woocommerce-Price-amount { color: var(--rd-red); }

/* payment */
.woocommerce .rd-checkout-summary #payment {
	background: transparent;
	border: none;
	border-radius: 0;
	margin-top: 14px;
}
.woocommerce .rd-checkout-summary #payment ul.payment_methods {
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 6px 14px;
	background: var(--rd-bg);
}
.woocommerce .rd-checkout-summary #payment ul.payment_methods li {
	padding: 9px 0;
	font-size: 13px;
	border-bottom: 1px solid var(--rd-border-soft);
	display: flex;
	align-items: center;
	gap: 8px;
}
.woocommerce .rd-checkout-summary #payment ul.payment_methods li:last-child { border-bottom: none; }
.woocommerce .rd-checkout-summary #payment ul.payment_methods li label { font-size: 13px; color: var(--rd-text); }
.woocommerce .rd-checkout-summary #payment ul.payment_methods li img { max-height: 24px; }
.woocommerce .rd-checkout-summary #payment .payment_box {
	background: #fff;
	border: 1px solid var(--rd-border-soft);
	border-radius: 6px;
	margin: 6px 0;
	padding: 10px 14px;
	font-size: 12px;
	color: var(--rd-muted-2);
}
.woocommerce .rd-checkout-summary #payment .payment_box::before { display: none; }
.woocommerce .rd-checkout-summary #payment div.form-row.place-order { padding: 14px 0 0; }
.woocommerce .rd-checkout-summary #place_order {
	width: 100%;
	background: var(--rd-red);
	color: #fff;
	border: none;
	border-radius: var(--rd-radius);
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 700;
	font-family: var(--rd-font);
	cursor: pointer;
	transition: background .2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.woocommerce .rd-checkout-summary #place_order:hover { background: var(--rd-red-hover); color: #fff; }
.woocommerce .rd-checkout-summary #place_order::before { content: "\f00c"; font-family: "FontAwesome"; }
.woocommerce .rd-checkout-summary .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: var(--rd-muted-2); margin-bottom: 10px; }

/* =============================== THANK YOU ================================ */
.woocommerce .rd-thankyou {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius-lg);
	box-shadow: var(--rd-shadow);
	padding: 40px 30px;
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
}
.woocommerce .rd-thankyou__icon {
	width: 84px;
	height: 84px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--rd-green-soft);
	color: var(--rd-green);
	font-size: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.woocommerce .rd-thankyou h2,
.woocommerce .rd-thankyou .rd-h2 { font-size: 18px; margin: 0 0 6px; }
.woocommerce .rd-thankyou p { color: var(--rd-muted); font-size: 13.5px; }
.woocommerce .rd-thankyou .order_details {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
	margin: 22px 0;
	padding: 16px;
	background: var(--rd-bg);
	border-radius: var(--rd-radius);
}
.woocommerce .rd-thankyou .order_details li { font-size: 12.5px; color: var(--rd-muted); }
.woocommerce .rd-thankyou .order_details li strong { display: block; color: var(--rd-dark); font-size: 14px; margin-top: 4px; }
.woocommerce .rd-thankyou table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0;
	text-align: right;
}
.woocommerce .rd-thankyou table.shop_table th,
.woocommerce .rd-thankyou table.shop_table td {
	border: 1px solid var(--rd-border-soft);
	padding: 10px 14px;
	font-size: 13px;
}
.woocommerce .rd-thankyou table.shop_table th { background: var(--rd-bg); color: var(--rd-muted-2); }
.woocommerce .rd-thankyou .button {
	background: var(--rd-red);
	color: #fff;
	border-radius: var(--rd-radius);
	padding: 12px 28px;
	font-weight: 700;
	display: inline-block;
}

/* ================================ MY ACCOUNT ============================== */
.woocommerce .rd-account {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}
.woocommerce .rd-account > .woocommerce {
	min-width: 0;
}
.woocommerce .rd-account nav.woocommerce-MyAccount-navigation {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 10px;
	box-shadow: var(--rd-shadow);
}
.woocommerce .rd-account nav.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce .rd-account nav.woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 10px 14px;
	border-radius: 6px;
	color: var(--rd-text);
	font-size: 13.5px;
	transition: all .15s ease;
}
.woocommerce .rd-account nav.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce .rd-account nav.woocommerce-MyAccount-navigation ul li a:hover {
	background: var(--rd-red-soft);
	color: var(--rd-red);
	font-weight: 600;
}
.woocommerce .rd-account .woocommerce-MyAccount-content {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 22px 24px;
	box-shadow: var(--rd-shadow);
	min-width: 0;
}
.woocommerce .rd-account .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border-collapse: collapse;
}
.woocommerce .rd-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce .rd-account .woocommerce-MyAccount-content table.shop_table td {
	border: 1px solid var(--rd-border-soft);
	padding: 10px 14px;
	font-size: 13px;
	text-align: right;
}
.woocommerce .rd-account .woocommerce-MyAccount-content table.shop_table th { background: var(--rd-bg); }
@media (max-width: 767px) {
	.woocommerce .rd-account { grid-template-columns: 1fr; }
}

/* ============================== TAGS & Q&A ================================ */
.rd-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: var(--rd-radius);
	padding: 12px 16px;
	box-shadow: var(--rd-shadow);
}
.rd-tags__label {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--rd-dark);
}
.rd-tags__tag {
	font-size: 11.5px;
	color: var(--rd-muted-2);
	background: var(--rd-bg);
	border: 1px solid var(--rd-border-soft);
	border-radius: 20px;
	padding: 4px 14px;
	transition: all .2s ease;
}
.rd-tags__tag:hover {
	background: var(--rd-red-soft);
	border-color: var(--rd-red);
	color: var(--rd-red);
}

/* Q&A tab */
.rd-qa {
	background: var(--rd-bg);
	border-radius: var(--rd-radius);
	padding: 26px;
	text-align: center;
}
.rd-qa__notice {
	font-size: 14px;
	font-weight: 600;
	color: var(--rd-dark);
	margin: 0 0 6px !important;
}
.rd-qa__hint {
	font-size: 12.5px;
	color: var(--rd-muted);
	margin: 0 !important;
}

/* =============================== LIGHTBOX ================================ */
.rd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 18, 24, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.rd-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}
.rd-lightbox__inner {
	position: relative;
	max-width: min(90vw, 900px);
	max-height: 88vh;
	text-align: center;
}
.rd-lightbox__img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.rd-lightbox__close {
	position: absolute;
	top: -46px;
	left: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	transition: all .2s ease;
}
.rd-lightbox__close:hover { background: var(--rd-red); }
.rd-lightbox__prev,
.rd-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, .18);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: all .2s ease;
}
.rd-lightbox__prev { right: -70px; }
.rd-lightbox__next { left: -70px; }
.rd-lightbox__prev:hover,
.rd-lightbox__next:hover { background: var(--rd-red); }
.rd-lightbox__counter {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .85);
	font-size: 13px;
	font-family: var(--rd-font);
}
@media (max-width: 991px) {
	.rd-lightbox__prev { right: 8px; }
	.rd-lightbox__next { left: 8px; }
	.rd-lightbox__close { top: 8px; left: 8px; }
}

/* ============================== INTRO TAB =============================== */
.rd-intro__head {
	margin-bottom: 16px;
}
.rd-intro__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--rd-dark);
	margin: 0;
	padding-right: 14px;
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}
.rd-intro__title::before {
	content: "";
	position: absolute;
	right: 0;
	top: 3px;
	bottom: 3px;
	width: 4px;
	border-radius: 2px;
	background: var(--rd-red);
}
.rd-intro__title i { color: var(--rd-red); font-size: 16px; }
.rd-intro__content {
	font-size: 14px;
	line-height: 2.3;
	color: var(--rd-text);
}
.rd-intro__content p { margin: 0 0 14px; }
.rd-intro__content h1,
.rd-intro__content h2,
.rd-intro__content h3,
.rd-intro__content h4,
.rd-intro__content .rd-h1,
.rd-intro__content .rd-h2,
.rd-intro__content .rd-h3,
.rd-intro__content .rd-h4 {
	color: var(--rd-dark);
	margin: 18px 0 10px;
}
.rd-intro__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: var(--rd-shadow);
}
.rd-intro__content ul,
.rd-intro__content ol { padding-right: 22px; margin: 0 0 14px; }
.rd-intro__content li { margin: 4px 0; }
.rd-intro__empty {
	color: var(--rd-muted);
	background: var(--rd-bg);
	border-radius: var(--rd-radius);
	padding: 20px;
	text-align: center;
}

/* ========================== HOMEPAGE PRODUCTS ============================ */
.rd-home-products {
	background: var(--rd-card);
	padding: 46px 0;
}
.rd-home-products__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
}
.rd-home-products__title {
	font-size: 19px;
	font-weight: 700;
	color: var(--rd-dark);
	margin: 0;
	padding-right: 14px;
	position: relative;
	font-family: var(--rd-font);
}
.rd-home-products__title::before {
	content: "";
	position: absolute;
	right: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	border-radius: 2px;
	background: var(--rd-red);
}
.rd-home-products__link {
	color: var(--rd-red);
	font-size: 13px;
	font-weight: 600;
	font-family: var(--rd-font);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color .2s ease;
}
.rd-home-products__link::after {
	content: "\f104";
	font-family: "FontAwesome";
	font-size: 12px;
}
.rd-home-products__link:hover { color: var(--rd-red-hover); }

/* reveal animation (JS adds .is-inview on scroll) */
.rd-home-products__row > li {
	flex-basis: 230px;
	min-width: 230px;
	width: 230px;
}
.rd-home-products__row > li {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .55s ease, transform .55s ease;
}
.rd-home-products.is-inview .rd-home-products__row > li {
	opacity: 1;
	transform: none;
}
.rd-home-products.is-inview .rd-home-products__row > li:nth-child(1) { transition-delay: .04s; }
.rd-home-products.is-inview .rd-home-products__row > li:nth-child(2) { transition-delay: .1s; }
.rd-home-products.is-inview .rd-home-products__row > li:nth-child(3) { transition-delay: .16s; }
.rd-home-products.is-inview .rd-home-products__row > li:nth-child(4) { transition-delay: .22s; }
.rd-home-products.is-inview .rd-home-products__row > li:nth-child(5) { transition-delay: .28s; }
.rd-home-products.is-inview .rd-home-products__row > li:nth-child(6) { transition-delay: .34s; }
.rd-home-products.is-inview .rd-home-products__row > li:nth-child(7) { transition-delay: .4s; }
.rd-home-products.is-inview .rd-home-products__row > li:nth-child(8) { transition-delay: .46s; }
.rd-home-products.is-inview .rd-home-products__row > li:nth-child(9) { transition-delay: .52s; }
.rd-home-products.is-inview .rd-home-products__row > li:nth-child(10) { transition-delay: .58s; }
@media (prefers-reduced-motion: reduce) {
	.rd-home-products__row > li {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ============================ INFINITE SCROLL ============================= */
body.rd-infinite-active .woocommerce nav.woocommerce-pagination {
	display: none;
}
.rd-infinite {
	text-align: center;
	padding: 26px 0 10px;
}
.rd-infinite__btn {
	background: var(--rd-card);
	color: var(--rd-red);
	border: 1px solid var(--rd-red);
	border-radius: 30px;
	padding: 11px 34px;
	font-family: var(--rd-font);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all .25s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.rd-infinite__btn:hover {
	background: var(--rd-red);
	color: #fff;
	box-shadow: 0 6px 18px rgba(239, 57, 78, .35);
	transform: translateY(-1px);
}
.rd-infinite__loader {
	display: none;
	align-items: center;
	gap: 8px;
	color: var(--rd-muted);
	font-family: var(--rd-font);
	font-size: 13.5px;
	padding: 11px 20px;
}
.rd-infinite__loader i { font-size: 16px; color: var(--rd-red); }
.rd-infinite.is-loading .rd-infinite__btn { display: none !important; }
.rd-infinite.is-loading .rd-infinite__loader { display: inline-flex !important; }

/* ===================== ADD-TO-CART LOADING STATE ======================= */
.rd-product-card__cta .button.rd-loading,
.rd-product-card__cta a.add_to_cart_button.rd-loading,
.rd-buybox__actions .single_add_to_cart_button.rd-loading {
	pointer-events: none;
	opacity: .85;
}
.rd-product-card__cta .button.rd-loading::before,
.rd-product-card__cta a.add_to_cart_button.rd-loading::before,
.rd-buybox__actions .single_add_to_cart_button.rd-loading::before {
	content: "";
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rdSpin .7s linear infinite;
	font-family: inherit;
	margin: 0;
}
@keyframes rdSpin {
	to { transform: rotate(360deg); }
}

/* ==================== VIEW CART BUTTON (مشاهده سبد خرید) ================= */
.rd-buybox__actions a.added_to_cart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	background: #fff;
	color: var(--rd-red);
	border: 1px solid var(--rd-red);
	border-radius: var(--rd-radius);
	padding: 11px 16px;
	font-size: 13.5px;
	font-weight: 700;
	font-family: var(--rd-font);
	text-decoration: none;
	transition: all .2s ease;
}
.rd-buybox__actions a.added_to_cart::before {
	content: "\f07a";
	font-family: "FontAwesome";
	font-size: 14px;
}
.rd-buybox__actions a.added_to_cart:hover {
	background: var(--rd-red);
	color: #fff;
}

/* =============================== MSGBOX TOASTS ============================ */
.msgbox-area {
	position: fixed;
	top: 24px;
	left: 24px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 380px;
	width: calc(100vw - 48px);
	pointer-events: none;
}
.msgbox-box {
	background: var(--rd-card);
	border-radius: var(--rd-radius-lg);
	box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
	padding: 14px 42px 14px 16px;
	position: relative;
	font-family: var(--rd-font);
	font-size: 13px;
	line-height: 1.9;
	color: var(--rd-text);
	border-right: 4px solid var(--rd-green);
	animation: rdMsgIn .35s cubic-bezier(.22, .61, .36, 1);
	pointer-events: auto;
}
.msgbox-box.msgbox-error { border-right-color: var(--rd-red); }
.msgbox-box.msgbox-notice { border-right-color: #4a90e2; }
.msgbox-box.msgbox-success { border-right-color: var(--rd-green); }
.msgbox-content a { color: var(--rd-red); font-weight: 600; }
.msgbox-close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--rd-bg);
	color: var(--rd-muted-2);
	font-size: 13px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .2s ease;
}
.msgbox-close:hover { background: var(--rd-red); color: #fff; }
.msgbox-box.is-leaving { animation: rdMsgOut .3s ease forwards; }
@keyframes rdMsgIn {
	from { opacity: 0; transform: translateX(40px); }
	to   { opacity: 1; transform: none; }
}
@keyframes rdMsgOut {
	from { opacity: 1; transform: none; }
	to   { opacity: 0; transform: translateX(40px); }
}
@media (max-width: 575px) {
	.msgbox-area { top: 12px; left: 12px; right: auto; width: calc(100vw - 24px); }
}

/* ======================= CART COUPON CARD (برجسته) ======================== */
.rd-cart__coupon-card {
	background: var(--rd-card);
	border: 1px dashed var(--rd-red);
	border-radius: var(--rd-radius);
	padding: 14px 16px;
	margin-top: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.rd-cart__coupon-title {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--rd-dark);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.rd-cart__coupon-title i { color: var(--rd-red); font-size: 16px; }
.rd-cart__coupon { display: flex; gap: 8px; flex: 1; min-width: 220px; }
.rd-cart__coupon input#coupon_code {
	flex: 1;
	border: 1px solid var(--rd-border);
	border-radius: 8px;
	padding: 9px 12px;
	font-family: var(--rd-font);
	font-size: 13px;
	box-shadow: none;
	background: #fff;
}
.rd-cart__coupon input#coupon_code:focus { border-color: var(--rd-red); outline: none; }
.rd-cart__coupon button {
	background: var(--rd-red) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px;
	padding: 9px 20px;
	font-family: var(--rd-font);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all .2s ease;
}
.rd-cart__coupon button:hover { background: var(--rd-red-hover) !important; }
.rd-cart__actions {
	padding: 14px 2px 4px;
	text-align: left;
}
.rd-cart__update {
	background: #fff !important;
	color: var(--rd-red) !important;
	border: 1px solid var(--rd-red) !important;
	padding: 8px 18px;
	font-size: 12.5px;
	border-radius: 8px;
}
.rd-cart__update:hover { background: var(--rd-red) !important; color: #fff !important; }

/* ======================= BUYBOX LIVE PRICE + COUPON ======================= */
.rd-buybox__live {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--rd-bg);
	border-radius: 8px;
	padding: 10px 14px;
	margin: 12px 0 0;
}
.rd-buybox__live-label {
	font-size: 12.5px;
	color: var(--rd-muted-2);
}
.rd-buybox__live-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--rd-red);
}
.rd-buybox__live-price .woocommerce-Price-amount bdi { color: var(--rd-red); }

.rd-buybox__coupon {
	margin-top: 10px;
}
.rd-buybox__coupon-toggle {
	background: none;
	border: none;
	color: var(--rd-muted-2);
	font-size: 12.5px;
	font-family: var(--rd-font);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 0;
	transition: color .2s ease;
}
.rd-buybox__coupon-toggle i { color: var(--rd-red); font-size: 14px; }
.rd-buybox__coupon-toggle:hover { color: var(--rd-red); }
.rd-buybox__coupon-form {
	display: none;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}
.rd-buybox__coupon-form.is-open { display: flex; }
.rd-buybox__coupon-form .rd-coupon-input {
	flex: 1;
	border: 1px solid var(--rd-border);
	border-radius: 8px;
	padding: 9px 12px;
	font-family: var(--rd-font);
	font-size: 13px;
	background: #fff;
}
.rd-buybox__coupon-form .rd-coupon-input:focus { border-color: var(--rd-red); outline: none; }
.rd-buybox__coupon-form .rd-coupon-apply {
	background: var(--rd-red);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 9px 18px;
	font-family: var(--rd-font);
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease;
}
.rd-buybox__coupon-form .rd-coupon-apply:hover { background: var(--rd-red-hover); }
.rd-coupon-msg { font-size: 12px; margin-top: 6px; }
.rd-coupon-msg.is-ok { color: var(--rd-green); }
.rd-coupon-msg.is-err { color: var(--rd-red); }



/* ================================ RESPONSIVE ============================== */
@media (max-width: 991px) {
	.rd-shop { grid-template-columns: 1fr; }
	.rd-sidebar { order: 2; }
	.rd-shop__main { order: 1; }
	.rd-product__cols { grid-template-columns: 1fr; }
	.rd-product__cols .rd-product__gallery,
	.rd-product__cols .rd-tabs,
	.rd-product__cols .rd-pdp-info {
		grid-column: 1;
		grid-row: auto;
	}
	.rd-product__cols .rd-product__gallery { order: -1; }
	.rd-gallery { position: static; }
	.rd-buybox { position: static; }
	.woocommerce .rd-cart,
	.woocommerce .rd-checkout { grid-template-columns: 1fr; }
	.woocommerce .rd-cart__items,
	.woocommerce .rd-cart__collaterals,
	.woocommerce .rd-cart > .cross-sells,
	.woocommerce .rd-cart__coupon-card,
	.woocommerce .rd-cart__actions,
	.woocommerce .rd-checkout__form,
	.woocommerce .rd-checkout .rd-checkout-summary {
		grid-column: 1;
		grid-row: auto;
	}
	.woocommerce .rd-cart-summary,
	.woocommerce .rd-checkout-summary { position: static; }
}

@media (max-width: 575px) {
	li.rd-product-card { padding: 8px; }
	.rd-product-card__title { font-size: 12px; }
	.rd-pdp-title { font-size: 16px; }
	.woocommerce .rd-checkout__form { padding: 16px; }
	.woocommerce .rd-checkout__form .c-address__form-row { grid-template-columns: 1fr; }
	.woocommerce .rd-cart__items .rd-cart-item { flex-direction: column; }
	.rd-cart-item__media img { width: 100%; height: auto; max-height: 180px; }
	.rd-buybox__actions form.cart { flex-wrap: wrap; }
	.rd-buybox__actions .single_add_to_cart_button { flex-basis: 100%; }
}

/* ===== Rayandaya Fix: bootstrap-select compatibility (selectpicker) ===== */
.bootstrap-select.form-control,
.bootstrap-select .dropdown-toggle {
  font-family: var(--rd-font);
  font-size: 13px;
  border: 1px solid var(--rd-border) !important;
  border-radius: 6px;
  background: #fff !important;
  color: var(--rd-text) !important;
  box-shadow: none !important;
  height: 42px;
}
.bootstrap-select .dropdown-menu {
  font-family: var(--rd-font);
  font-size: 13px;
  border-radius: var(--rd-radius);
  border: 1px solid var(--rd-border);
  box-shadow: var(--rd-shadow-lg);
}
.bootstrap-select .dropdown-menu li a {
  color: var(--rd-text);
  padding: 8px 12px;
}
.bootstrap-select .dropdown-menu li.active a,
.bootstrap-select .dropdown-menu li a:hover {
  background: var(--rd-red-soft);
  color: var(--rd-red);
}
.bootstrap-select .bs-searchbox .form-control {
  border: 1px solid var(--rd-border);
  border-radius: 6px;
}
/* Fix RTL bootstrap-select */
.bootstrap-select.btn-group .dropdown-toggle .filter-option {
  text-align: right;
  direction: rtl;
}
.bootstrap-select.btn-group .dropdown-menu { text-align: right; }

/* ===== Fix: staticBackdrop modal aria-hidden & loading ===== */
#staticBackdrop .modal-content {
  border-radius: var(--rd-radius-lg);
  border: none;
  box-shadow: var(--rd-shadow-lg);
}
#staticBackdrop .lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 20px;
}
#staticBackdrop .lds-ellipsis div {
  position: absolute;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rd-red);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
#staticBackdrop .lds-ellipsis div:nth-child(1) { left: 8px; animation: lds-ellipsis1 0.6s infinite; }
#staticBackdrop .lds-ellipsis div:nth-child(2) { left: 8px; animation: lds-ellipsis2 0.6s infinite; }
#staticBackdrop .lds-ellipsis div:nth-child(3) { left: 32px; animation: lds-ellipsis2 0.6s infinite; }
#staticBackdrop .lds-ellipsis div:nth-child(4) { left: 56px; animation: lds-ellipsis3 0.6s infinite; }
@keyframes lds-ellipsis1 { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes lds-ellipsis3 { 0% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes lds-ellipsis2 { 0% { transform: translate(0, 0); } 100% { transform: translate(24px, 0); } }

/* Prevent modal focus trap warning from covering page.
 * NOTE: We previously used `display: none !important` here, but that broke
 * the Bootstrap modal hide transition (BS4 sets aria-hidden="true" BEFORE
 * the fade-out transition starts, and our `display:none !important` would
 * remove the element from the layout immediately, leaving the focus
 * trapped inside a hidden subtree and triggering the
 * "Blocked aria-hidden on an element because its descendant retained focus"
 * warning in Chrome/Edge console.
 *
 * Correct fix: let Bootstrap's own CSS (`.modal { display: none; }` and
 * `.modal.show { display: block; }`) control visibility. The aria-hidden
 * attribute is then flipped in lockstep with `display`, so a focused
 * descendant never outlives a visible ancestor.
 */
#staticBackdrop,
#rdConfirmModal { display: none; }
#staticBackdrop.show,
#rdConfirmModal.show { display: block; }
/* Hard fallback: only force-hide when Bootstrap fully removed the show
 * class AND the focus has already been moved off the modal by the
 * rayandaya-ajax-fix.js blur handler. */
#staticBackdrop:not(.show)[aria-hidden="true"]:focus-within,
#rdConfirmModal:not(.show)[aria-hidden="true"]:focus-within {
  outline: none;
}

/* ===== Fix: cart / checkout quantity + coupon flow ===== */
.rd-cart__coupon .input-text,
.rd-cart__coupon-card .input-text {
  direction: ltr;
  text-align: center;
}
.woocommerce .rd-cart__coupon button.button {
  background: var(--rd-red);
  color: #fff;
}
.woocommerce .rd-cart__coupon button.button:hover {
  background: var(--rd-red-hover);
}

/* Ensure checkout fields validation visible */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
  border-color: var(--rd-red);
}
.woocommerce form .form-row .o-form__field-helper {
  font-size: 11.5px;
  color: var(--rd-muted);
  margin-top: 4px;
}

/* Account page selectpicker spacing */
#select-state, #select-city {
  width: 100% !important;
}
.bootstrap-select {
  width: 100% !important;
}

/* Digikala-style fixes for empty cart */
.c-checkout-empty__title { font-size: 16px; font-weight: 700; }
.c-checkout-empty__links a { color: var(--rd-red); }

/* Fix for WooCommerce notices inside our custom containers */
.rd-cart .woocommerce-message,
.rd-cart .woocommerce-error,
.rd-cart .woocommerce-info,
.rd-checkout .woocommerce-message,
.rd-checkout .woocommerce-error {
  margin-bottom: 16px;
}

/* Quantity stepper fix */
.rd-cart-item__qty .quantity .qty {
  text-align: center;
  min-width: 60px;
}

/* ===== Popup_c_woo mini-cart improvements ===== */
#popup_c_woo {
  background: var(--rd-card);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius-lg);
  box-shadow: var(--rd-shadow-lg);
  min-width: 320px;
  max-height: 70vh;
  overflow:auto;
}
#popup_c_woo .c-header__basket-list {
  max-height: 50vh;
  overflow-y:auto;
}
#popup_c_woo .rd-delete-btn {
  color:#81858b;
  cursor:pointer;
  font-size:14px;
  width:28px;height:28px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  transition:all .2s;
}
#popup_c_woo .rd-delete-btn:hover {
  background:#fff0f1;
  color:#ef394e;
}
#rdConfirmModal .modal-content {
  border-radius: var(--rd-radius-lg);
  border:none;
}
#rdConfirmModal .btn-danger {
  background:#ef394e;
}
#rdConfirmModal .btn-danger:hover {
  background:#e03145;
}
#rdToastContainer .undo-product-item {
  color:#fff !important;
  text-decoration:underline;
  margin-right:8px;
  cursor:pointer;
  pointer-events:auto;
}

/* Ensure basket button shows count */
.basket-count {
  background:#ef394e;
  color:#fff;
  border-radius:50%;
  min-width:18px;height:18px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:11px;
  line-height:1;
}

/* ===== NEW: Main Slider - Slick based, more compatible (replaces flexslider) ===== */
.main-slider,
.rd-main-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.main-slider .rd-main-slide,
.rd-main-slider .rd-main-slide {
  position: relative;
  min-height: 400px;
  display: flex !important;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.main-slider .image-slider,
.rd-main-slider .image-slider {
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.main-slider .image-slider::before,
.rd-main-slider .image-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
  z-index: 1;
}
.main-slider .slider-content,
.rd-main-slider .slider-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 40px;
  color: #fff;
}
.main-slider .slider-title,
.rd-main-slider .slider-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.4;
}
.main-slider .slider-title a,
.rd-main-slider .slider-title a {
  color: #fff;
  text-decoration: none;
}
.main-slider .slider-text,
.rd-main-slider .slider-text {
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 20px;
  color: rgba(255,255,255,.9);
}
.main-slider .slider-buttons,
.rd-main-slider .slider-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.main-slider .btn-default,
.rd-main-slider .btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.main-slider .btn-default.vivid-red,
.rd-main-slider .btn-default.vivid-red {
  background: #ef394e;
  color: #fff;
}
.main-slider .btn-default.vivid-blue,
.rd-main-slider .btn-default.vivid-blue {
  background: #fff;
  color: #232933;
}
.main-slider .btn-default:hover,
.rd-main-slider .btn-default:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* Slick dots for main slider */
.main-slider .slick-dots,
.rd-main-slider .slick-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 3;
}
.main-slider .slick-dots li,
.rd-main-slider .slick-dots li {
  margin: 0;
}
.main-slider .slick-dots button,
.rd-main-slider .slick-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  font-size: 0;
  cursor: pointer;
  transition: all .2s ease;
  padding: 0;
}
.main-slider .slick-dots li.slick-active button,
.rd-main-slider .slick-dots li.slick-active button {
  background: #ef394e;
  width: 28px;
  border-radius: 10px;
}

/* Slick arrows for main slider */
.main-slider .slick-arrow,
.rd-main-slider .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  color: #232933;
  font-size: 18px;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: all .2s ease;
}
.main-slider .slick-prev,
.rd-main-slider .slick-prev {
  right: 20px;
}
.main-slider .slick-next,
.rd-main-slider .slick-next {
  left: 20px;
}
.main-slider .slick-arrow:hover,
.rd-main-slider .slick-arrow:hover {
  background: #ef394e;
  color: #fff;
}
@media (max-width: 768px) {
  .main-slider .image-slider,
  .rd-main-slider .image-slider {
    min-height: 300px;
  }
  .main-slider .slider-content,
  .rd-main-slider .slider-content {
    padding: 24px;
  }
  .main-slider .slider-title,
  .rd-main-slider .slider-title {
    font-size: 20px;
  }
  .main-slider .slick-arrow,
  .rd-main-slider .slick-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .main-slider .slick-prev,
  .rd-main-slider .slick-prev {
    right: 10px;
  }
  .main-slider .slick-next,
  .rd-main-slider .slick-next {
    left: 10px;
  }
}

/* Hide old flexslider controls if still present from cache */
.main-slider .flex-direction-nav,
.main-slider .flex-control-nav,
.rd-main-slider .flex-direction-nav,
.rd-main-slider .flex-control-nav {
  display: none !important;
}

/* Anti-FOUC for main-slider: hide all but first slide before Slick init to prevent stacked images */
/* Anti-FOUC for main-slider: hide all but first slide before Slick/Vanilla init to prevent stacked images */
.main-slider:not(.slick-initialized):not(.rd-vanilla-initialized) .rd-main-slide:not(:first-child),
.rd-main-slider:not(.slick-initialized):not(.rd-vanilla-initialized) .rd-main-slide:not(:first-child) {
  display: none;
}
.main-slider:not(.slick-initialized):not(.rd-vanilla-initialized),
.rd-main-slider:not(.slick-initialized):not(.rd-vanilla-initialized) {
  overflow: hidden;
  max-height: 500px;
}
.main-slider.slick-initialized,
.rd-main-slider.slick-initialized,
.main-slider.rd-vanilla-initialized,
.rd-main-slider.rd-vanilla-initialized {
  max-height: none;
  overflow: visible;
}
/* Ensure vanilla slider has fixed height to prevent collapse during fade */
.main-slider.rd-vanilla-initialized,
.rd-main-slider.rd-vanilla-initialized {
  min-height: 550px;
  height: 550px;
  position: relative;
}
@media (max-width: 768px) {
  .main-slider.rd-vanilla-initialized,
  .rd-main-slider.rd-vanilla-initialized {
    min-height: 400px;
    height: 400px;
  }
}
.main-slider .rd-main-slide,
.rd-main-slider .rd-main-slide {
  width: 100%;
  height: 100%;
  min-height: 550px;
}
@media (max-width: 768px) {
  .main-slider .rd-main-slide,
  .rd-main-slider .rd-main-slide {
    min-height: 400px;
  }
}
.main-slider .rd-main-slide .image-slider,
.rd-main-slider .rd-main-slide .image-slider {
  height: 100%;
  min-height: 550px;
}
@media (max-width: 768px) {
  .main-slider .rd-main-slide .image-slider,
  .rd-main-slider .rd-main-slide .image-slider {
    min-height: 400px;
  }
}

/* Vanilla Main Slider - no jQuery needed, most compatible */
.rd-main-slider.rd-vanilla-initialized,
.main-slider.rd-vanilla-initialized {
  position: relative;
}
.rd-vanilla-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rd-vanilla-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: all .2s ease;
}
.rd-vanilla-dot.is-active {
  background: #ef394e;
  width: 28px;
  border-radius: 10px;
}
.rd-vanilla-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  color: #232933;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: all .2s ease;
}
.rd-vanilla-prev { right: 20px; }
.rd-vanilla-next { left: 20px; }
.rd-vanilla-arrow:hover { background: #ef394e; color: #fff; }
@media (max-width: 768px) {
  .rd-vanilla-arrow { width: 36px; height: 36px; font-size: 14px; }
  .rd-vanilla-prev { right: 10px; }
  .rd-vanilla-next { left: 10px; }
}

/* Fix for vanilla main-slider disappearing on transition */
.main-slider.rd-vanilla-initialized,
.rd-main-slider.rd-vanilla-initialized {
  min-height: 400px;
  position: relative;
  background: #f5f5f5;
}
.main-slider .rd-main-slide,
.rd-main-slider .rd-main-slide {
  min-height: 400px;
  width: 100%;
}
.main-slider .rd-main-slide[style*="opacity: 0"],
.rd-main-slider .rd-main-slide[style*="opacity: 0"] {
  pointer-events: none;
}
.main-slider .rd-main-slide[style*="opacity: 1"],
.rd-main-slider .rd-main-slide[style*="opacity: 1"] {
  pointer-events: auto;
}


/* Fix slider-content angle - should be at right 15% vertically centered */
.main-slider .slider-content,
.rd-main-slider .slider-content {
  position: absolute !important;
  right: 8% !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  max-width: 520px !important;
  text-align: right !important;
  z-index: 3 !important;
}
.main-slider .image-slider,
.rd-main-slider .image-slider {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
/* Equalize image sizes */
.main-slider .rd-main-slide,
.rd-main-slider .rd-main-slide {
  background: #f5f5f5;
}

/* Fix for quantity_... inputs with top offset - reported as quantity_6a7a399ddacc0 top should be 0 */
input[id^="quantity_"] {
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  position: relative !important;
  transform: none !important;
  margin-top: 0 !important;
}
/* Ensure quantity wrapper doesn't have top offset */
.quantity {
  top: 0 !important;
  position: relative !important;
}

/* Fix rdConfirmModal display - ensure opacity is correct */
#rdConfirmModal {
  display: none;
  opacity: 0;
}
#rdConfirmModal.show {
  display: block !important;
  opacity: 1 !important;
}
#rdConfirmModal .modal-dialog {
  opacity: 1 !important;
  transform: none !important;
}
#rdConfirmModal.show .modal-dialog {
  transform: none !important;
}
#staticBackdrop {
  display: none;
  opacity: 0;
}
#staticBackdrop.show {
  display: block !important;
  opacity: 1 !important;
}
#staticBackdrop.show .modal-dialog {
  opacity: 1 !important;
}
