/* Rahath Advanced WooCommerce Archive — widget styles.
 * Custom properties (--rahath-wa-*) are set inline by Elementor controls;
 * everything else below is the default marketplace-style look. Uses
 * logical properties (inline/block) so the layout mirrors correctly in RTL
 * without any separate RTL stylesheet or WPML-specific work.
 */

/*
 * Deliberately NOT declaring --rahath-wa-col-gap/-row-gap/-sidebar-w/etc.
 * here with hardcoded defaults: every one of those is also set by an
 * Elementor control via a `{{WRAPPER}}` selector, which targets an
 * ANCESTOR of this element (Elementor's own .elementor-element wrapper
 * around whatever this widget renders). Custom-property inheritance only
 * flows an ancestor's value down when the descendant has no specified
 * value of its own for that property — a same-element rule always wins
 * over an inherited one, no matter how weak its specificity is elsewhere.
 * A `.rahath-wa { --rahath-wa-row-gap: 24px; }` default here would
 * therefore permanently shadow whatever Elementor's control sets upstream,
 * which is exactly the bug this replaced: every one of these controls
 * appeared to do nothing. The fix is to give each `var()` call at its
 * point of use a fallback instead (var(--name, fallback)), so an
 * Elementor-set value cascades through untouched, and only an *absent*
 * value falls back to the default.
 *
 * --rahath-wa-cols-d/-t/-m are the one exception that's fine either way:
 * render_grid() always sets them as an inline style directly on
 * .rahath-wa__grid itself, which already out-specifies anything declared
 * here regardless.
 */
.rahath-wa {
	--rahath-wa-cols-d: 4;
	--rahath-wa-cols-t: 3;
	--rahath-wa-cols-m: 2;
	--rahath-wa-border: #ececec;
	--rahath-wa-text-muted: #6b7280;
	box-sizing: border-box;
}
.rahath-wa *,
.rahath-wa *::before,
.rahath-wa *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------
 * Mobile top bar (☰ Filters / Sort)
 * ------------------------------------------------------------------- */
.rahath-wa__mobile-bar {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-block: 10px;
	margin-block-end: 10px;
	border-block-end: 1px solid var(--rahath-wa-border);
}
.rahath-wa__mobile-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--rahath-wa-border);
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.rahath-wa__mobile-filter-btn::before {
	content: "\2630";
	font-size: 13px;
	line-height: 1;
}

/* ---------------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------------- */
.rahath-wa__layout {
	display: flex;
	align-items: stretch;
	gap: var(--rahath-wa-col-gap, 16px);
}
.rahath-wa-sidebar-none .rahath-wa__layout {
	display: block;
}
.rahath-wa-sidebar-right .rahath-wa__layout {
	flex-direction: row-reverse;
}
.rahath-wa__main {
	flex: 1 1 0%;
	min-width: 0;
}

/* ---------------------------------------------------------------------
 * Sidebar
 * ------------------------------------------------------------------- */
.rahath-wa__sidebar {
	flex: 0 0 var(--rahath-wa-sidebar-w, 280px);
	width: var(--rahath-wa-sidebar-w, 280px);
	/* Stretches to the row's full height (see align-items:stretch above) so
	 * its background/radius cover the same height as the product grid next
	 * to it, however tall that grid is — the actual sticky-while-scrolling
	 * behavior lives on the inner .rahath-wa__sidebar-body below, bounded
	 * by this (now tall) box rather than by its own short content. */
}
.rahath-wa-sticky-yes .rahath-wa__sidebar-body {
	position: sticky;
	top: var(--rahath-wa-sticky-offset, 32px);
	max-height: calc(100vh - var(--rahath-wa-sticky-offset, 32px) - 16px);
	overflow-y: auto;
}
.rahath-wa__drawer-header,
.rahath-wa__drawer-footer,
.rahath-wa__drawer-overlay,
.rahath-wa__drawer-close {
	display: none;
}

.rahath-wa__filter-group {
	border-block-end: 1px solid var(--rahath-wa-border);
	padding-block: 12px;
}
.rahath-wa__filter-group:first-child {
	padding-block-start: 0;
}
.rahath-wa__accordion-header {
	margin: 0;
}
.rahath-wa__accordion-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: 0;
	padding: 6px 2px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	color: inherit;
}
.rahath-wa__accordion-icon {
	position: relative;
	inline-size: 8px;
	block-size: 8px;
	border-inline-end: 1.5px solid currentColor;
	border-block-end: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	flex: none;
}
.rahath-wa__accordion-toggle[aria-expanded="true"] .rahath-wa__accordion-icon {
	transform: rotate(225deg);
}
.rahath-wa__accordion-panel {
	padding-block-start: 10px;
}
.rahath-wa__accordion-panel[hidden] {
	display: none;
}

.rahath-wa__cat-list,
.rahath-wa__term-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--rahath-wa-filter-gap, 10px);
}
.rahath-wa__cat-list--depth-2,
.rahath-wa__cat-list--depth-3,
.rahath-wa__cat-list--depth-4 {
	padding-inline-start: 16px;
	padding-block-start: var(--rahath-wa-filter-gap, 10px);
}
.rahath-wa__cat-item {
	position: relative;
}
/* The expand/collapse toggle is absolutely positioned at the row's end
 * edge (see .rahath-wa__cat-toggle below) — without this, the count badge
 * (which naturally lands at that same edge, since .rahath-wa__filter-label
 * grows to fill the row) sits directly underneath it, and the toggle's
 * chevron paints on top of the count's leading digit. */
.rahath-wa__cat-item.has-children > .rahath-wa__filter-checkbox {
	padding-inline-end: 22px;
}
.rahath-wa__cat-toggle {
	position: absolute;
	inset-inline-end: 0;
	top: 2px;
	inline-size: 20px;
	block-size: 20px;
	background: none;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rahath-wa__cat-toggle-icon {
	/*
	 * width/height, not inline-size/block-size (see flex-shrink note
	 * below for why logical properties alone weren't the real story).
	 * Square icon, so there's no RTL mirroring downside to using the
	 * physical properties directly here.
	 */
	width: 11px;
	height: 11px;
	/*
	 * The actual cause of the icon disappearing: its parent
	 * (.rahath-wa__cat-toggle) is a flex container, and a flex item's
	 * default `flex-shrink: 1` lets the browser shrink it below its
	 * specified size when computing flex layout — for an SVG with a
	 * viewBox but no width/height *attribute*, Chromium's replaced-element
	 * flex-basis resolution collapses that shrink toward 0 instead of
	 * respecting the CSS width, even though there was clearly enough room
	 * in the 20px button for an 11px icon. flex-shrink:0 opts it out of
	 * that calculation entirely.
	 */
	flex-shrink: 0;
	color: var(--rahath-wa-text-muted);
	transition: transform 0.15s ease;
}
.rahath-wa__cat-toggle[aria-expanded="true"] .rahath-wa__cat-toggle-icon {
	transform: rotate(180deg);
}
.rahath-wa__cat-children[hidden] {
	display: none;
}

.rahath-wa__filter-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	cursor: pointer;
	line-height: 1.4;
}
.rahath-wa__filter-checkbox input {
	inline-size: 15px;
	block-size: 15px;
	flex: none;
	margin: 0;
}
.rahath-wa__filter-label {
	flex: 1 1 auto;
}
.rahath-wa__filter-count {
	color: var(--rahath-wa-text-muted);
	font-size: 12px;
}

.rahath-wa__rating-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-block: 4px;
	cursor: pointer;
	font-size: 13px;
}
.rahath-wa__rating-option input {
	inline-size: 15px;
	block-size: 15px;
}

.rahath-wa__price-filter {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.rahath-wa__price-inputs {
	display: flex;
	align-items: center;
	gap: 6px;
}
.rahath-wa__price-inputs input[type="number"] {
	width: 0;
	flex: 1 1 0;
	padding: 6px 8px;
	border: 1px solid var(--rahath-wa-border);
	border-radius: 4px;
	font-size: 12px;
}
.rahath-wa__price-range {
	inline-size: 100%;
	accent-color: var(--rahath-wa-range-thumb, #111827);
}
.rahath-wa__price-apply {
	align-self: flex-start;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #111827;
	background: #111827;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.rahath-wa__clear-group {
	margin-block-start: 8px;
	background: none;
	border: 0;
	padding: 0;
	font-size: 12px;
	text-decoration: underline;
	color: var(--rahath-wa-text-muted);
	cursor: pointer;
}

/* ---------------------------------------------------------------------
 * Quick filter bar
 * ------------------------------------------------------------------- */
.rahath-wa__quickbar {
	margin-block-end: 14px;
	border: 1px solid var(--rahath-wa-border);
	border-radius: 8px;
	background: #fff;
}

/* Floating dropdown panel a quick-bar button opens — the corresponding
 * sidebar filter group (category/brand/price) is temporarily moved in here
 * (see widget.js openQuickPopover) so there's exactly one copy of each
 * filter's markup/behavior, just displayed in two different places. */
.rahath-wa__quick-popover {
	position: fixed;
	z-index: 9000;
	min-width: 260px;
	max-width: 320px;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--rahath-wa-border);
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	padding: 4px 16px;
}
.rahath-wa__quick-popover[hidden] {
	display: none;
}
.rahath-wa__quick-popover .rahath-wa__filter-group {
	border: 0;
	padding-block: 12px;
}
.rahath-wa__quickbar-scroll {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	white-space: nowrap;
	padding: 8px 12px;
	scrollbar-width: none;
}
.rahath-wa__quickbar-scroll::-webkit-scrollbar {
	display: none;
}
.rahath-wa__quick-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	border: 1px solid var(--rahath-wa-border);
	border-radius: 999px;
	background: #fff;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	color: inherit;
}
.rahath-wa__quick-btn.is-active {
	background: #111827;
	border-color: #111827;
	color: #fff;
}

/* ---------------------------------------------------------------------
 * Active filter chips
 * ------------------------------------------------------------------- */
.rahath-wa__chips {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}
.rahath-wa__chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid var(--rahath-wa-border);
	border-radius: 999px;
	background: #f6f6f7;
	font-size: 12px;
	cursor: pointer;
	color: inherit;
}
.rahath-wa__chip-remove {
	font-weight: 700;
	opacity: 0.6;
}
.rahath-wa__clear-all,
.rahath-wa__clear-all-footer {
	flex: none;
	background: none;
	border: 0;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	color: var(--rahath-wa-text-muted);
}

/* ---------------------------------------------------------------------
 * Toolbar (result count + sorting)
 * ------------------------------------------------------------------- */
.rahath-wa__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block-end: 14px;
}
.rahath-wa__result-count {
	font-size: 13px;
	color: var(--rahath-wa-text-muted);
}
.rahath-wa__sort {
	padding: 7px 10px;
	border: 1px solid var(--rahath-wa-border);
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
}

/* ---------------------------------------------------------------------
 * Product grid & card
 * ------------------------------------------------------------------- */
.rahath-wa__grid-wrap {
	position: relative;
}
.rahath-wa__grid {
	display: grid;
	grid-template-columns: repeat(var(--rahath-wa-cols-d), minmax(0, 1fr));
	gap: var(--rahath-wa-row-gap, 24px) var(--rahath-wa-col-gap, 16px);
}
.rahath-wa__nothing-found {
	grid-column: 1 / -1;
	padding: 40px 0;
	text-align: center;
	color: var(--rahath-wa-text-muted);
}

/* ---------------------------------------------------------------------
 * Slider mode (Advanced Products widget's "Enable Slider" toggle) — the
 * same .rahath-wa__grid becomes a horizontally-scrolling flex row instead
 * of a wrapping grid; Columns still decides how many cards are visible at
 * once via the same --rahath-wa-cols-* variables the grid layout uses.
 * ------------------------------------------------------------------- */
.rahath-wa__grid-wrap--slider {
	padding-inline: 4px;
}
.rahath-wa__grid-wrap--slider .rahath-wa__grid {
	display: flex;
	grid-template-columns: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.rahath-wa__grid-wrap--slider .rahath-wa__grid::-webkit-scrollbar {
	display: none;
}
.rahath-wa__grid-wrap--slider .rahath-wa__grid > * {
	flex: 0 0 calc((100% - (var(--rahath-wa-cols-d) - 1) * var(--rahath-wa-col-gap, 16px)) / var(--rahath-wa-cols-d));
	scroll-snap-align: start;
}
@media (max-width: 1024px) {
	.rahath-wa__grid-wrap--slider .rahath-wa__grid > * {
		flex-basis: calc((100% - (var(--rahath-wa-cols-t) - 1) * var(--rahath-wa-col-gap, 16px)) / var(--rahath-wa-cols-t));
	}
}
@media (max-width: 767px) {
	.rahath-wa__grid-wrap--slider .rahath-wa__grid > * {
		flex-basis: calc((100% - (var(--rahath-wa-cols-m) - 1) * var(--rahath-wa-col-gap, 16px)) / var(--rahath-wa-cols-m));
	}
}

.rahath-wa__slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	inline-size: 36px;
	block-size: 36px;
	border-radius: 50%;
	border: 1px solid var(--rahath-wa-border);
	background: #fff;
	color: #111827;
	font-size: 22px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.rahath-wa__slider-arrow--prev {
	inset-inline-start: -18px;
}
.rahath-wa__slider-arrow--next {
	inset-inline-end: -18px;
}
.rahath-wa__slider-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

.rahath-wa__slider-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-block-start: 14px;
}
.rahath-wa__slider-dot {
	inline-size: 7px;
	block-size: 7px;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.2);
	border: 0;
	padding: 0;
	cursor: pointer;
}
.rahath-wa__slider-dot.is-active {
	background: #111827;
	transform: scale(1.3);
}

.rahath-wa-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--rahath-wa-border);
	transition: box-shadow 0.15s ease;
}
.rahath-wa-card__media {
	position: relative;
	background: #fff;
	block-size: var(--rahath-wa-image-h, 220px);
	overflow: hidden;
}
.rahath-wa-card__slides {
	position: relative;
	inline-size: 100%;
	block-size: 100%;
}
.rahath-wa-card__image-link {
	display: none;
	position: absolute;
	inset: 0;
}
.rahath-wa-card__image-link.is-active {
	display: block;
}
.rahath-wa-card__image {
	position: absolute;
	inset: 0;
	object-fit: var(--rahath-wa-image-fit, contain);
	padding: 12px;
	box-sizing: border-box;
}
/*
 * width/height (not the max-width:100%/height:auto every theme and
 * WooCommerce ship for responsive inline images) — `.woocommerce img` and
 * `.elementor img` are both class+element (0-1-1) and beat a single-class
 * rule, which is exactly why this box's height was tracking the image's
 * own intrinsic aspect ratio instead of staying fixed as the card's width
 * changed. Same fix as the button specificity issue: repeat an ancestor
 * class to outrank it, and set the actual physical properties those rules
 * contend for (not inline-size/block-size — logical and physical sizing
 * properties compete for the same slot in the cascade, so the specificity
 * problem would still apply either way).
 */
.rahath-wa-card__media .rahath-wa-card__image {
	width: 100%;
	height: 100%;
	max-width: 100%;
}
.rahath-wa-zoom-yes .rahath-wa-card__image {
	transition: transform 0.25s ease;
}
.rahath-wa-zoom-yes .rahath-wa-card:hover .rahath-wa-card__image {
	transform: scale(1.04);
}

/* Carousel arrows + dots — only rendered server-side when a product has
 * more than one image; navigation is plain click (see widget.js), not a
 * swipe/drag gesture library. */
.rahath-wa-card__carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	inline-size: 26px;
	block-size: 26px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.85);
	color: #111827;
	font-size: 18px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s ease;
}
.rahath-wa-card:hover .rahath-wa-card__carousel-arrow {
	opacity: 1;
}
.rahath-wa-card__carousel-arrow--prev {
	inset-inline-start: 6px;
}
.rahath-wa-card__carousel-arrow--next {
	inset-inline-end: 6px;
}
.rahath-wa-card__carousel-dots {
	position: absolute;
	inset-block-end: 8px;
	inset-inline: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.rahath-wa-card__dot {
	inline-size: 5px;
	block-size: 5px;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.25);
	cursor: pointer;
}
.rahath-wa-card__dot.is-active {
	background: #111827;
	transform: scale(1.3);
}

.rahath-wa-card__badges {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 2;
}
.rahath-wa-card__badge {
	display: inline-block;
	padding: 3px 7px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-radius: 3px;
	background: #111827;
	color: #fff;
}
.rahath-wa-card__badge--sale {
	background: #e53935;
}
.rahath-wa-card__badge--out-of-stock {
	background: #9ca3af;
}

.rahath-wa-card__wishlist {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-end: 8px;
	z-index: 2;
	inline-size: 28px;
	block-size: 28px;
	border-radius: 50%;
	border: 1px solid var(--rahath-wa-border);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.rahath-wa-card__wishlist-icon {
	inline-size: 16px;
	block-size: 16px;
	stroke: #6b7280;
	stroke-width: 1.6;
	fill: none;
}

.rahath-wa-card__quickadd {
	position: absolute;
	inset-block-end: 8px;
	inset-inline-end: 8px;
	z-index: 2;
	inline-size: 32px;
	block-size: 32px;
	border-radius: 50%;
	border: 0;
	background: #111827;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-decoration: none;
}
.rahath-wa-card__quickadd[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}
.rahath-wa-card__quickadd.is-loading {
	opacity: 0.6;
	pointer-events: none;
}
.rahath-wa-card .rahath-wa-card__quickadd.is-added {
	background: #1a7f37;
}

/* "Added to cart" toast — one shared instance per widget, shown briefly
 * after a successful quick-add so there is visible confirmation beyond the
 * button's own momentary color change. */
.rahath-wa__toast {
	position: fixed;
	inset-block-end: 24px;
	inset-inline-start: 50%;
	transform: translateX(-50%) translateY(12px);
	background: #111827;
	color: #fff;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	z-index: 100000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.rahath-wa__toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.rahath-wa-card__body {
	padding: 10px 4px 4px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 6px;
}
.rahath-wa-card__title {
	font-size: 13px;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
	line-height: 1.4;
}
.rahath-wa-card__title--lines-1 {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rahath-wa-card__title--lines-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rahath-wa-card__title--lines-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rahath-wa-card__rating {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
}
.rahath-wa-card__stars.star-rating {
	overflow: hidden;
	position: relative;
	block-size: 1em;
	line-height: 1em;
	inline-size: 5.4em;
	font-family: star;
	font-weight: 400;
}
.rahath-wa-card__stars.star-rating::before {
	content: "\53\53\53\53\53";
	color: #d9d9d9;
	float: inline-start;
	inset-inline-start: 0;
	position: absolute;
}
.rahath-wa-card__stars.star-rating span {
	overflow: hidden;
	float: inline-start;
	top: 0;
	inset-inline-start: 0;
	position: absolute;
	/*
	 * The span's own text content is the real "Rated X out of 5" label
	 * (kept for accessibility, same as WooCommerce's own star-rating
	 * markup). It isn't clipped by anything on the span itself — this
	 * padding pushes it down past the *parent* `.star-rating`'s own
	 * overflow:hidden 1-line-tall box (see the rule above) before it ever
	 * paints, so only the ::before star glyphs stay inside that visible
	 * window. Same technique, same value, as WooCommerce's own
	 * woocommerce.css `.star-rating span{padding-top:1.5em}` — omitting it
	 * is exactly why the label text was showing through behind the stars.
	 */
	padding-block-start: 1.5em;
}
.rahath-wa-card__stars.star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	inset-inline-start: 0;
}
.rahath-wa-card__rating-value {
	font-weight: 700;
}
.rahath-wa-card__reviews {
	color: var(--rahath-wa-text-muted);
}

.rahath-wa-card__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 14px;
}
.rahath-wa-card__price-current {
	font-weight: 700;
}
.rahath-wa-card__price-regular {
	font-size: 12px;
	color: var(--rahath-wa-text-muted);
	text-decoration: line-through;
}
.rahath-wa-card__discount {
	font-size: 11.5px;
	font-weight: 700;
	color: #1a7f37;
}

.rahath-wa-card__promo {
	font-size: 11.5px;
	color: #1a7f37;
}
.rahath-wa-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.rahath-wa-card__chip {
	font-size: 10.5px;
	padding: 2px 6px;
	border: 1px solid var(--rahath-wa-border);
	border-radius: 4px;
	background: #f6f6f7;
}
.rahath-wa-card__price-badge {
	display: flex;
	align-items: center;
	/* Pinned to the bottom of the card regardless of how much (or little)
	 * content — title length, promo/delivery text — sits above it, so this
	 * badge lines up at the same height across every card in a row. Needs
	 * .rahath-wa-card__body to actually fill the stretched card height for
	 * "the bottom" to mean anything — see its flex:1 1 auto above. */
	margin-block-start: auto;
	padding-block-start: 8px;
}
/* Same specificity reasoning as .rahath-wa-card__image elsewhere in this
 * file — the theme/WooCommerce/Elementor `img{height:auto}` resets are
 * class+element (0-1-1) and would otherwise beat this single-class rule. */
.rahath-wa .rahath-wa-card__price-badge-img {
	display: block;
	height: 20px;
	width: auto;
}
.rahath-wa-card__delivery {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
}
.rahath-wa-card__delivery-badge {
	font-weight: 700;
	color: #0a7ea4;
}

/* ---------------------------------------------------------------------
 * Pagination / Load More / Infinite Scroll
 * ------------------------------------------------------------------- */
.rahath-wa__pagination-wrap {
	margin-block-start: 24px;
	display: flex;
	justify-content: center;
}
.rahath-wa__pagination {
	display: flex;
	gap: 6px;
}
.rahath-wa__page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 34px;
	block-size: 34px;
	border: 1px solid var(--rahath-wa-border);
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	font-size: 13px;
}
.rahath-wa__page-link.is-active {
	background: #111827;
	border-color: #111827;
	color: #fff;
}
.rahath-wa__load-more {
	padding: 10px 24px;
	border: 1px solid #111827;
	background: #111827;
	color: #fff;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.rahath-wa__load-more.is-loading {
	opacity: 0.6;
	pointer-events: none;
}
.rahath-wa__infinite-sentinel {
	block-size: 1px;
}

/* ---------------------------------------------------------------------
 * Loading states
 * ------------------------------------------------------------------- */
.rahath-wa__grid-wrap.is-loading .rahath-wa__grid {
	opacity: 0.4;
	pointer-events: none;
}
.rahath-wa__skeleton {
	display: none;
	grid-template-columns: repeat(var(--rahath-wa-cols-d), minmax(0, 1fr));
	gap: var(--rahath-wa-row-gap, 24px) var(--rahath-wa-col-gap, 16px);
}
.rahath-wa__grid-wrap.is-loading[data-loading-style="skeleton"] .rahath-wa__skeleton {
	display: grid;
}
.rahath-wa__grid-wrap.is-loading[data-loading-style="skeleton"] .rahath-wa__grid {
	display: none;
}
.rahath-wa__skeleton-card {
	block-size: 320px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--rahath-wa-skeleton, #e9e9e9) 25%, #f5f5f5 37%, var(--rahath-wa-skeleton, #e9e9e9) 63%);
	background-size: 400% 100%;
	animation: rahath-wa-shimmer 1.4s ease infinite;
}
@keyframes rahath-wa-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}
.rahath-wa__grid-wrap.is-loading[data-loading-style="spinner"]::after {
	content: "";
	position: absolute;
	top: 40px;
	left: 50%;
	inline-size: 32px;
	block-size: 32px;
	margin-inline-start: -16px;
	border: 3px solid var(--rahath-wa-skeleton, #e9e9e9);
	border-block-start-color: #111827;
	border-radius: 50%;
	animation: rahath-wa-spin 0.7s linear infinite;
}
@keyframes rahath-wa-spin {
	to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.rahath-wa__grid {
		grid-template-columns: repeat(var(--rahath-wa-cols-t), minmax(0, 1fr));
	}
	.rahath-wa__skeleton {
		grid-template-columns: repeat(var(--rahath-wa-cols-t), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rahath-wa__mobile-bar {
		display: flex;
	}
	/* The mobile top bar already carries its own sort <select>; the
	 * toolbar's copy (positioned for desktop/tablet) would otherwise show
	 * twice on the same page. */
	.rahath-wa__toolbar .rahath-wa__sort {
		display: none;
	}
	.rahath-wa__grid {
		grid-template-columns: repeat(var(--rahath-wa-cols-m), minmax(0, 1fr));
	}
	.rahath-wa__skeleton {
		grid-template-columns: repeat(var(--rahath-wa-cols-m), minmax(0, 1fr));
	}
	.rahath-wa-card__body {
		padding-block-start: 8px;
		gap: 4px;
	}
	.rahath-wa-card__title {
		font-size: 12px;
	}
	.rahath-wa-arrows-hide-mobile-yes .rahath-wa__slider-arrow {
		display: none;
	}

	/* Off-canvas drawer */
	.rahath-wa__sidebar {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		z-index: 10000;
		inline-size: var(--rahath-wa-drawer-w, 320px);
		max-inline-size: 88vw;
		max-height: none;
		background: #fff;
		display: flex;
		flex-direction: column;
		transform: translateX(-105%);
		transition: transform 0.25s ease;
	}
	.rahath-wa-drawer-right .rahath-wa__sidebar {
		inset-inline-start: auto;
		inset-inline-end: 0;
		transform: translateX(105%);
	}
	.rahath-wa__sidebar.is-open {
		transform: translateX(0);
	}
	.rahath-wa__sidebar-body {
		flex: 1 1 auto;
		overflow-y: auto;
		padding: 0 16px;
	}
	.rahath-wa__drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px;
		border-block-end: 1px solid var(--rahath-wa-border);
		flex: none;
	}
	.rahath-wa__drawer-close {
		display: block;
		background: none;
		border: 0;
		font-size: 22px;
		line-height: 1;
		cursor: pointer;
	}
	.rahath-wa__drawer-footer {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 14px 16px;
		border-block-start: 1px solid var(--rahath-wa-border);
		flex: none;
		position: sticky;
		bottom: 0;
		background: #fff;
	}
	.rahath-wa__drawer-apply {
		flex: 1 1 auto;
		padding: 11px 14px;
		border: 0;
		border-radius: 6px;
		background: #111827;
		color: #fff;
		font-size: 13px;
		font-weight: 700;
		cursor: pointer;
	}
	.rahath-wa__drawer-overlay {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 9999;
		background: rgba(0, 0, 0, 0.45);
	}
	.rahath-wa__drawer-overlay.is-open {
		display: block;
	}
}

/* ---------------------------------------------------------------------
 * Defensive button reset.
 *
 * Many themes/Kits ship a global `button { background: ...; color: ...; }`
 * rule (Elementor's own "Theme Style > Buttons" default is exactly this —
 * a bare `button` element selector, generated as `.elementor-kit-N button`,
 * specificity 0-1-1). Every rule above that styles one of this widget's
 * own `<button>`s by its single BEM class alone is only 0-1-0 and would
 * silently lose to that — repeating the widget's own root class as an
 * ancestor bumps these to 0-2-0, which reliably wins regardless of what
 * the host theme/Kit does, without resorting to !important.
 * ------------------------------------------------------------------- */
.rahath-wa .rahath-wa__accordion-toggle,
.rahath-wa .rahath-wa__cat-toggle,
.rahath-wa .rahath-wa__drawer-close,
.rahath-wa .rahath-wa__clear-all,
.rahath-wa .rahath-wa__clear-all-footer,
.rahath-wa .rahath-wa__clear-group {
	background: none;
	border: 0;
	color: inherit;
	border-radius: 0;
}
.rahath-wa .rahath-wa__quick-btn {
	background: #fff;
	color: inherit;
}
.rahath-wa .rahath-wa__quick-btn.is-active {
	background: #111827;
	color: #fff;
}
.rahath-wa .rahath-wa__chip {
	background: #f6f6f7;
	color: inherit;
}
.rahath-wa .rahath-wa__mobile-filter-btn {
	background: #fff;
	color: inherit;
}
.rahath-wa .rahath-wa__page-link {
	background: #fff;
	color: inherit;
}
.rahath-wa .rahath-wa__page-link.is-active {
	background: #111827;
	color: #fff;
}
.rahath-wa .rahath-wa__load-more,
.rahath-wa .rahath-wa__price-apply,
.rahath-wa .rahath-wa__drawer-apply {
	background: #111827;
	color: #fff;
	border-radius: 4px;
}
.rahath-wa-card .rahath-wa-card__carousel-arrow {
	background: rgba(255, 255, 255, 0.85);
	color: #111827;
}
.rahath-wa .rahath-wa__slider-arrow {
	background: #fff;
	color: #111827;
}
.rahath-wa .rahath-wa__slider-dot {
	background: rgba(17, 24, 39, 0.2);
}
.rahath-wa .rahath-wa__slider-dot.is-active {
	background: #111827;
}
.rahath-wa-card .rahath-wa-card__wishlist {
	background: #fff;
	border-radius: 50%;
}
.rahath-wa-card .rahath-wa-card__quickadd {
	background: #111827;
	color: #fff;
	border-radius: 50%;
}

/* ---------------------------------------------------------------------
 * Brand card (Brands Slider widget) — plain grid/slider item, no product
 * data, so it doesn't share Rahath_Woo_Archive_Renderer::render_card()
 * markup, just the same .rahath-wa__grid / slider wrapper.
 * ------------------------------------------------------------------- */
.rahath-wa-brand-card {
	background: #fff;
	border: 1px solid var(--rahath-wa-border);
}
.rahath-wa-brand-card__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px;
	text-decoration: none;
	color: inherit;
	text-align: center;
}
.rahath-wa-brand-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	block-size: 70px;
}
/* Same specificity reasoning as .rahath-wa-card__image elsewhere in this
 * file: the theme/WooCommerce/Elementor's own `img{height:auto;max-width:
 * 100%}` resets are class+element (0-1-1), tying a single-class-plus-
 * element selector here — repeating the widget root as an ancestor bumps
 * this safely above that regardless of stylesheet load order. */
.rahath-wa .rahath-wa-brand-card__logo img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.rahath-wa-brand-card__placeholder {
	font-weight: 700;
	color: var(--rahath-wa-text-muted);
}
.rahath-wa-brand-card__name {
	font-size: 13px;
	font-weight: 600;
}
.rahath-wa-brand-card__count {
	font-size: 12px;
	color: var(--rahath-wa-text-muted);
}
.rahath-wa-brand-grayscale-yes .rahath-wa-brand-card__logo img {
	filter: grayscale(1);
	opacity: 0.7;
	transition: filter 0.2s ease, opacity 0.2s ease;
}
.rahath-wa-brand-grayscale-yes .rahath-wa-brand-card:hover .rahath-wa-brand-card__logo img {
	filter: grayscale(0);
	opacity: 1;
}
