/**
 * Product List for Elementor — frontend styles.
 * Defaults match the approved HTML prototype (rrpl-* prefix).
 *
 * @package RRPL
 */

.elementor-widget-rrpl-product-list button,
.elementor-widget-rrpl-product-list input,
.elementor-widget-rrpl-product-list select,
.elementor-widget-rrpl-product-list textarea {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.elementor-widget-rrpl-product-list a:not([class]) {
	color: inherit;
	text-decoration: none;
}

/* Root widget scope — isolated from theme/Elementor inheritance */
.elementor-widget-rrpl-product-list,
.elementor-widget-rrpl-product-list > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
}

.elementor-widget-rrpl-product-list > .elementor-widget-container {
	padding: 0;
	margin: 0;
	overflow: visible;
}

.rrpl-product-list {
	--rrpl-primary: #92003B;
	--rrpl-primary-light: #C13584;
	--rrpl-danger: #E74C3C;
	--rrpl-success: #39B54A;
	--rrpl-warning: #F5A623;
	--rrpl-surface: #FFFFFF;
	--rrpl-bg: #F0F2F5;
	--rrpl-border: #E4E7EC;
	--rrpl-text: #1A1D23;
	--rrpl-text-muted: #6B7280;
	--rrpl-text-light: #9CA3AF;
	--rrpl-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--rrpl-price-font: 'DM Sans', system-ui, sans-serif;
	--rrpl-card-bg: #FFFFFF;
	--rrpl-card-radius: 12px;
	--rrpl-card-padding: 16px;
	--rrpl-card-gap: 12px;
	--rrpl-card-border: #E4E7EC;
	--rrpl-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	--rrpl-card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
	--rrpl-card-transition: 300ms;
	--rrpl-title-size: 15px;
	--rrpl-title-weight: 600;
	--rrpl-title-color: #1A1D23;
	--rrpl-title-spacing: -0.01em;
	--rrpl-title-line-height: 1.4;
	--rrpl-price-size: 16px;
	--rrpl-price-weight: 700;
	--rrpl-price-color: #1A1D23;
	--rrpl-sale-price-color: #E74C3C;
	--rrpl-btn-bg: #1A1D23;
	--rrpl-btn-color: #FFFFFF;
	--rrpl-btn-radius: 8px;
	--rrpl-btn-padding: 10px 20px;
	--rrpl-btn-hover-bg: #92003B;
	--rrpl-btn-hover-color: #FFFFFF;
	--rrpl-grid-gap: 24px;
	--rrpl-grid-cols: 4;
	--rrpl-image-zoom: 1.08;
	--rrpl-section-spacing: 24px;
	--rrpl-search-padding: 14px;
	--rrpl-search-radius: 12px;
	--rrpl-search-border: #E4E7EC;
	--rrpl-search-bg: #FFFFFF;
	--rrpl-search-focus-border: #92003B;
	--rrpl-search-icon-color: #9CA3AF;
	--rrpl-search-font-size: 14px;
	--rrpl-filter-section-gap: 0px;
	--rrpl-filter-sidebar-width: 260px;
	--rrpl-pag-btn-size: 40px;
	--rrpl-pag-btn-radius: 10px;

	/* Layering — kept low so third-party floating widgets (chat, WhatsApp, etc.) stay above. */
	--rrpl-z-card: 1;
	--rrpl-z-toolbar: 5;
	--rrpl-z-dropdown: 20;
	--rrpl-z-sidebar: 30;
	--rrpl-z-sticky-nav: 40;
	--rrpl-z-filter-backdrop: 998;
	--rrpl-z-filter-drawer: 999;
	--rrpl-z-modal: 1000;
	--rrpl-z-modal-dialog: 1001;

	box-sizing: border-box;
	width: 100%;
	position: relative;
	overflow: visible;
	display: flex;
	flex-direction: column;
	gap: var(--rrpl-section-spacing);
	font-family: var(--rrpl-font-family);
	font-size: 14px;
	line-height: 1.5;
	color: var(--rrpl-text);
	-webkit-font-smoothing: antialiased;
}

/* Elementor Global Design System integration */
.rrpl-product-list.rrpl-use-global {
	--rrpl-primary: var(--e-global-color-primary, #92003B);
	--rrpl-primary-light: var(--e-global-color-secondary, #C13584);
	--rrpl-text: var(--e-global-color-text, #1A1D23);
	--rrpl-text-muted: var(--e-global-color-secondary, #6B7280);
	--rrpl-text-light: var(--e-global-color-secondary, #9CA3AF);
	--rrpl-surface: #FFFFFF;
	--rrpl-bg: #F9FAFB;
	--rrpl-border: #E4E7EC;
	--rrpl-btn-bg: var(--e-global-color-accent, #1A1D23);
	--rrpl-btn-hover-bg: var(--e-global-color-primary, #92003B);
	--rrpl-title-color: var(--e-global-color-text, #1A1D23);
	--rrpl-price-color: var(--e-global-color-text, #1A1D23);
	--rrpl-sale-price-color: var(--e-global-color-primary, #E74C3C);
	--rrpl-search-focus-border: var(--e-global-color-primary, #92003B);
	--rrpl-search-icon-color: var(--e-global-color-secondary, #9CA3AF);
	font-family: var(--e-global-typography-text-font-family, var(--rrpl-font-family));
	font-size: var(--e-global-typography-text-font-size, 14px);
	font-weight: var(--e-global-typography-text-font-weight, 400);
	line-height: var(--e-global-typography-text-line-height, 1.5);
}

.rrpl-product-list.rrpl-use-global .rrpl-product-card__title,
.rrpl-product-list.rrpl-use-global .rrpl-product-card__title a {
	font-family: var(--e-global-typography-primary-font-family, var(--rrpl-font-family));
	font-weight: var(--e-global-typography-primary-font-weight, var(--rrpl-title-weight));
	color: var(--e-global-color-text, var(--rrpl-title-color));
}

.rrpl-product-list.rrpl-use-global .rrpl-product-card__price {
	color: var(--e-global-color-text, var(--rrpl-price-color));
}

.rrpl-product-list.rrpl-use-global .rrpl-product-card__btn {
	font-family: var(--e-global-typography-accent-font-family, var(--rrpl-font-family));
	background-color: var(--e-global-color-accent, var(--rrpl-btn-bg));
}

.rrpl-product-list.rrpl-use-global .rrpl-product-card__btn--primary:hover {
	background-color: var(--e-global-color-primary, var(--rrpl-btn-hover-bg));
}

.rrpl-product-list *,
.rrpl-product-list *::before,
.rrpl-product-list *::after {
	box-sizing: border-box;
}

.rrpl-product-list h1,
.rrpl-product-list h2,
.rrpl-product-list h3,
.rrpl-product-list h4,
.rrpl-product-list p {
	margin: 0;
	padding: 0;
	font-weight: inherit;
}

.rrpl-product-list a {
	color: inherit;
	text-decoration: none;
}

.rrpl-product-list button {
	font-family: inherit;
}

.rrpl-product-list img {
	max-width: 100%;
	height: auto;
	border: 0;
}

/* Toolbar */
.rrpl-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
	z-index: var(--rrpl-z-toolbar, 5);
	overflow: visible;
}

.rrpl-toolbar--has-search .rrpl-search-mount--top-bar {
	flex: 1;
	min-width: 0;
}

.rrpl-toolbar--has-search .rrpl-search {
	width: 100%;
}

.rrpl-toolbar--no-search {
	justify-content: flex-end;
}

.rrpl-toolbar--no-search .rrpl-search-mount--top-bar {
	display: none;
}

.rrpl-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.rrpl-sort:empty {
	display: none;
}

.rrpl-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
	border: 1.5px solid var(--rrpl-border);
	background: var(--rrpl-surface);
	border-radius: 10px;
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	font-weight: 600;
	color: var(--rrpl-text);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}

.rrpl-filter-toggle:hover {
	border-color: var(--rrpl-primary);
	color: var(--rrpl-primary);
}

/* Filter bar */
.rrpl-filter-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	overflow: visible;
}

.rrpl-filter-bar--has-search .rrpl-search-mount--filter-bar {
	flex: 0 0 min(280px, 36%);
	min-width: 180px;
}

/* Search — reusable input component tokens */
.rrpl-search-mount {
	width: 100%;
}

.rrpl-search {
	--rrpl-search-height: 44px;
	--rrpl-search-border-width: 2px;
	--rrpl-search-padding-y: var(--rrpl-search-padding, 14px);
	--rrpl-search-icon-size: 18px;
	--rrpl-search-icon-inset: 16px;
	--rrpl-search-icon-gap: 14px;
	--rrpl-search-clear-size: 28px;
	--rrpl-search-clear-inset: 12px;
	--rrpl-search-clear-gap: 4px;
	--rrpl-search-padding-left: calc(var(--rrpl-search-icon-inset) + var(--rrpl-search-icon-size) + var(--rrpl-search-icon-gap));
	--rrpl-search-padding-right: calc(var(--rrpl-search-clear-inset) + var(--rrpl-search-clear-size) + var(--rrpl-search-clear-gap));
	width: 100%;
	margin-bottom: 0;
}

.rrpl-search__field {
	position: relative;
	width: 100%;
	min-width: 0;
	display: block;
}

.rrpl-search__icon {
	position: absolute;
	left: var(--rrpl-search-icon-inset);
	top: 50%;
	transform: translateY(-50%);
	width: var(--rrpl-search-icon-size);
	height: var(--rrpl-search-icon-size);
	color: var(--rrpl-search-icon-color, var(--rrpl-text-muted));
	pointer-events: none;
	transition: color 0.2s;
	z-index: 1;
	font-size: var(--rrpl-search-icon-size);
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: visible;
}

.rrpl-search__icon > i,
.rrpl-search__icon > svg {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: var(--rrpl-search-icon-size) !important;
	height: var(--rrpl-search-icon-size) !important;
	font-size: var(--rrpl-search-icon-size) !important;
	line-height: 1 !important;
	flex-shrink: 0;
}

.rrpl-search__input {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--rrpl-search-height);
	padding: var(--rrpl-search-padding-y) var(--rrpl-search-padding-right) var(--rrpl-search-padding-y) var(--rrpl-search-padding-left);
	border: var(--rrpl-search-border-width) solid var(--rrpl-search-border);
	border-radius: var(--rrpl-search-radius, 12px);
	font-family: var(--rrpl-font-family);
	font-size: var(--rrpl-search-font-size, 14px);
	color: var(--rrpl-text);
	background: var(--rrpl-search-bg);
	outline: none;
	transition: border-color 0.25s, box-shadow 0.25s;
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	line-height: 1.4;
	text-indent: 0;
}

.elementor-widget-rrpl-product-list .rrpl-search__field {
	position: relative;
}

.elementor-widget-rrpl-product-list .rrpl-search__icon {
	position: absolute;
	left: var(--rrpl-search-icon-inset);
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	pointer-events: none;
}

.elementor-widget-rrpl-product-list .rrpl-search__input {
	box-sizing: border-box;
	padding-top: var(--rrpl-search-padding-y);
	padding-bottom: var(--rrpl-search-padding-y);
	padding-left: var(--rrpl-search-padding-left);
	padding-right: var(--rrpl-search-padding-right);
	min-height: var(--rrpl-search-height);
	line-height: 1.4;
}

/* Prevent native browser search clear/decoration from conflicting with our icon */
.rrpl-search__input::-webkit-search-cancel-button,
.rrpl-search__input::-webkit-search-decoration,
.rrpl-search__input::-webkit-search-results-button,
.rrpl-search__input::-webkit-search-results-decoration,
.rrpl-search__input::-ms-clear,
.rrpl-search__input::-ms-reveal {
	display: none;
	width: 0;
	height: 0;
	appearance: none;
	-webkit-appearance: none;
}

.rrpl-search__input:focus {
	border-color: var(--rrpl-search-focus-border);
	box-shadow: 0 0 0 4px rgba(146, 0, 59, 0.08);
}

.rrpl-search__input::placeholder {
	color: var(--rrpl-text-light);
	opacity: 1;
	line-height: 1.4;
}

.rrpl-search__clear {
	position: absolute;
	right: var(--rrpl-search-clear-inset);
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rrpl-search-clear-size);
	height: var(--rrpl-search-clear-size);
	min-width: var(--rrpl-search-clear-size);
	min-height: var(--rrpl-search-clear-size);
	border: none;
	background: var(--rrpl-bg);
	border-radius: 50%;
	color: var(--rrpl-text-muted);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	padding: 0;
	z-index: 2;
	flex-shrink: 0;
}

.rrpl-search__clear-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	font-size: 14px;
	line-height: 1;
	flex-shrink: 0;
	pointer-events: none;
}

.rrpl-search__clear-icon > i,
.rrpl-search__clear-icon > svg {
	display: block;
	width: 14px !important;
	height: 14px !important;
	font-size: 14px !important;
	line-height: 1 !important;
	flex-shrink: 0;
}

.rrpl-search__clear[hidden] {
	display: none !important;
}

.rrpl-search__clear:hover,
.rrpl-search__clear:active {
	background: var(--rrpl-border);
	color: var(--rrpl-text);
}

.rrpl-search-mount--sidebar {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--rrpl-border);
}

.rrpl-search-mount--drawer {
	padding: 16px 20px;
	border-bottom: 1px solid var(--rrpl-border);
	flex-shrink: 0;
}

/* Main layout */
.rrpl-main {
	display: grid;
	gap: 28px;
	align-items: start;
	width: 100%;
	overflow: visible;
}

.rrpl-main--sidebar {
	grid-template-columns: var(--rrpl-filter-sidebar-width) 1fr;
}

.rrpl-main--topbar {
	grid-template-columns: 1fr;
}

.rrpl-sidebar {
	position: sticky;
	top: 16px;
	align-self: start;
	width: 100%;
	z-index: var(--rrpl-z-sidebar, 30);
	overflow: visible;
}

/* Hide empty filter sidebar so the grid is not crushed in Elementor defaults. */
.rrpl-sidebar__body:empty {
	display: none;
}

.rrpl-main--sidebar:not(:has(.rrpl-sidebar__body:not(:empty))) {
	grid-template-columns: 1fr;
}

.rrpl-main--sidebar:not(:has(.rrpl-sidebar__body:not(:empty))) .rrpl-sidebar {
	display: none;
}

.rrpl-content {
	min-width: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow: visible;
}

/* Results bar */
.rrpl-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
}

.rrpl-results-bar__count {
	color: var(--rrpl-text-muted);
	font-weight: 500;
}

.rrpl-results-bar__query {
	color: var(--rrpl-primary);
	font-weight: 600;
	background: rgba(146, 0, 59, 0.06);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
}

/* Product grid */
.rrpl-grid-area {
	width: 100%;
	overflow: visible;
}

.rrpl-empty-state-mount {
	width: 100%;
}

.rrpl-empty-state-mount[hidden] {
	display: none !important;
}

.rrpl-product-grid[hidden] {
	display: none !important;
}

.rrpl-product-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--rrpl-grid-cols, 4), minmax(0, 1fr)) !important;
	gap: var(--rrpl-grid-gap);
	row-gap: var(--rrpl-grid-gap);
	column-gap: var(--rrpl-grid-gap);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: gap 0.3s;
}

.rrpl-product-list.rrpl-grid--cols-2,
.rrpl-grid--cols-2 { --rrpl-grid-cols: 2; }
.rrpl-product-list.rrpl-grid--cols-3,
.rrpl-grid--cols-3 { --rrpl-grid-cols: 3; }
.rrpl-product-list.rrpl-grid--cols-4,
.rrpl-grid--cols-4 { --rrpl-grid-cols: 4; }
.rrpl-product-list.rrpl-grid--cols-5,
.rrpl-grid--cols-5 { --rrpl-grid-cols: 5; }
.rrpl-product-list.rrpl-grid--cols-6,
.rrpl-grid--cols-6 { --rrpl-grid-cols: 6; }

/* Product card */
.rrpl-product-card {
	position: relative;
	background: var(--rrpl-card-bg);
	border-radius: var(--rrpl-card-radius);
	border: 1px solid var(--rrpl-card-border);
	box-shadow: var(--rrpl-card-shadow);
	overflow: hidden;
	transition: transform var(--rrpl-card-transition) ease, box-shadow var(--rrpl-card-transition) ease;
	display: flex;
	flex-direction: column;
	margin: 0;
}

.rrpl-product-card:hover {
	box-shadow: var(--rrpl-card-shadow-hover);
}

.rrpl-product-card__image-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.rrpl-product-card__image-wrap {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: #F3F4F6;
}

.rrpl-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform calc(var(--rrpl-card-transition) * 1.5) ease;
}

.rrpl-product-card:hover .rrpl-product-card__image {
	transform: scale(var(--rrpl-image-zoom));
}

.rrpl-product-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: var(--rrpl-z-card, 1);
}

.rrpl-product-card__badge {
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.rrpl-product-card__badge--sale {
	background: var(--rrpl-danger);
	color: #fff;
}

.rrpl-product-card__badge--featured {
	background: var(--rrpl-primary);
	color: #fff;
}

.rrpl-product-card__body {
	padding: var(--rrpl-card-padding);
	display: flex;
	flex-direction: column;
	gap: var(--rrpl-card-gap);
	flex: 1;
}

.rrpl-product-categories {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.rrpl-product-categories--inline {
	flex-direction: row;
	flex-wrap: nowrap;
}

.rrpl-product-categories--inline_wrap {
	flex-direction: row;
	flex-wrap: wrap;
}

.rrpl-product-categories--column {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
}

.rrpl-product-categories--grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, max-content));
}

.rrpl-product-category {
	display: inline-flex;
	align-items: center;
	font-family: var(--rrpl-font-family);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rrpl-primary);
	text-decoration: none;
	line-height: 1.2;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

a.rrpl-product-category:hover {
	color: var(--rrpl-text);
}

/* Legacy single-category class kept for existing Elementor selectors */
.rrpl-product-card__category {
	font-family: var(--rrpl-font-family);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rrpl-primary);
}

.rrpl-product-card__title {
	font-family: var(--rrpl-font-family);
	font-size: var(--rrpl-title-size);
	font-weight: var(--rrpl-title-weight);
	color: var(--rrpl-title-color);
	letter-spacing: var(--rrpl-title-spacing);
	line-height: var(--rrpl-title-line-height);
	text-align: left;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--rrpl-card-transition);
	cursor: pointer;
}

.rrpl-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.rrpl-product-card__title:hover,
.rrpl-product-card__title a:hover {
	color: var(--rrpl-primary);
}

.rrpl-product-card__price-wrap {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.rrpl-product-card__price {
	font-family: var(--rrpl-price-font);
	font-size: var(--rrpl-price-size);
	font-weight: var(--rrpl-price-weight);
	color: var(--rrpl-price-color);
	line-height: 1.3;
}

.rrpl-product-card__price del {
	font-size: calc(var(--rrpl-price-size) - 2px);
	font-weight: 400;
	color: var(--rrpl-text-light);
	text-decoration: line-through;
}

.rrpl-product-card__price ins {
	text-decoration: none;
	color: var(--rrpl-sale-price-color);
}

.rrpl-product-card__rating-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rrpl-product-card__stars {
	display: flex;
	gap: 1px;
	color: var(--rrpl-warning);
	font-size: 14px;
	line-height: 1;
}

.rrpl-product-card__review-count {
	font-size: 12px;
	color: var(--rrpl-text-muted);
}

.rrpl-product-card__buttons {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
}

.rrpl-product-card__button {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--rrpl-btn-padding);
	border: none;
	border-radius: var(--rrpl-btn-radius);
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--rrpl-card-transition) ease;
	text-align: center;
	text-decoration: none;
	background: var(--rrpl-btn-bg);
	color: var(--rrpl-btn-color);
}

.rrpl-product-card__button:hover {
	background: var(--rrpl-btn-hover-bg);
	color: var(--rrpl-btn-hover-color);
}

/* Pagination */
.rrpl-pagination-area {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	overflow: visible;
}

.rrpl-pagination {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}

.rrpl-pagination__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--rrpl-pag-btn-size);
	height: var(--rrpl-pag-btn-size);
	padding: 0 8px;
	border: 1.5px solid var(--rrpl-border);
	background: var(--rrpl-surface);
	border-radius: var(--rrpl-pag-btn-radius);
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	font-weight: 500;
	color: var(--rrpl-text-muted);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.rrpl-pagination__btn:hover:not(:disabled) {
	border-color: var(--rrpl-primary);
	color: var(--rrpl-primary);
}

.rrpl-pagination__btn.is-active {
	background: var(--rrpl-primary);
	border-color: var(--rrpl-primary);
	color: #fff;
}

.rrpl-pagination__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.rrpl-load-more {
	padding: 14px 40px;
	border: 2px solid var(--rrpl-border);
	background: var(--rrpl-surface);
	border-radius: 12px;
	font-family: var(--rrpl-font-family);
	font-size: 14px;
	font-weight: 600;
	color: var(--rrpl-text);
	cursor: pointer;
	transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.rrpl-load-more:hover {
	border-color: var(--rrpl-primary);
	color: var(--rrpl-primary);
	background: rgba(146, 0, 59, 0.04);
}

.rrpl-load-more.is-loading,
.rrpl-load-more:disabled {
	opacity: 0.7;
	cursor: wait;
	pointer-events: none;
}

.rrpl-pagination--prev-next {
	gap: 12px;
}

.rrpl-pagination__status {
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	font-weight: 500;
	color: var(--rrpl-text-muted);
	min-width: 6rem;
	text-align: center;
}

/* Filter drawer */
.rrpl-filter-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(360px, 90vw);
	background: var(--rrpl-surface, #fff);
	z-index: var(--rrpl-z-filter-drawer, 999);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	pointer-events: auto;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rrpl-filter-drawer.is-open {
	transform: translateX(0);
}

.rrpl-filter-drawer[hidden] {
	display: none !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

.rrpl-filter-drawer__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid var(--rrpl-border);
}

.rrpl-filter-drawer__header strong {
	font-size: 15px;
	font-weight: 700;
}

.rrpl-filter-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--rrpl-text-muted);
	padding: 0;
}

.rrpl-filter-drawer__body {
	padding: 16px 20px;
	overflow-y: auto;
	flex: 1;
}

/* Category dropdown — mirrors Sort control visual system */
.rrpl-filter-bar__dropdown {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.rrpl-cat-dropdown {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
}

.rrpl-cat-dropdown__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 16px;
	border: 1.5px solid var(--rrpl-border);
	background: var(--rrpl-surface);
	border-radius: 10px;
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	font-weight: 600;
	color: var(--rrpl-text);
	cursor: pointer;
	min-height: 44px;
	line-height: 1.3;
	text-align: left;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.rrpl-cat-dropdown__label {
	flex: 1;
	min-width: 0;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rrpl-cat-dropdown__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: inherit;
	transition: color 0.2s, background-color 0.2s, transform 0.2s;
	font-size: 14px;
	line-height: 1;
	width: 1em;
	height: 1em;
	min-width: 1em;
	min-height: 1em;
}

.rrpl-cat-dropdown__chevron > i,
.rrpl-cat-dropdown__chevron > svg {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 1em !important;
	height: 1em !important;
	font-size: inherit !important;
	line-height: 1 !important;
	flex-shrink: 0;
	fill: currentColor;
}

.rrpl-cat-dropdown__trigger:hover {
	border-color: var(--rrpl-primary);
}

.rrpl-cat-dropdown__trigger:focus {
	outline: 2px solid var(--rrpl-primary);
	outline-offset: 2px;
}

.rrpl-cat-dropdown__trigger:active {
	border-color: var(--rrpl-primary);
}

.rrpl-cat-dropdown__trigger[aria-expanded="true"] {
	border-color: var(--rrpl-primary);
}

.rrpl-cat-dropdown__trigger[aria-expanded="true"] .rrpl-cat-dropdown__chevron {
	transform: rotate(180deg);
}

.rrpl-cat-dropdown__trigger:disabled,
.rrpl-cat-dropdown.is-disabled .rrpl-cat-dropdown__trigger {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.rrpl-cat-dropdown__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: var(--rrpl-surface);
	border: 1px solid var(--rrpl-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	z-index: var(--rrpl-z-dropdown, 20);
	overflow-x: hidden;
	overflow-y: auto;
	max-height: 280px;
	padding: 4px 0;
	animation: rrpl-cat-dropdown-in 0.18s ease;
}

.rrpl-cat-dropdown__menu[hidden] {
	display: none !important;
	animation: none;
}

@keyframes rrpl-cat-dropdown-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rrpl-cat-dropdown__item {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: none;
	background: transparent;
	text-align: left;
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	font-weight: 500;
	color: var(--rrpl-text);
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s;
}

.rrpl-cat-dropdown__item:hover {
	background: var(--rrpl-bg);
	color: var(--rrpl-primary);
}

.rrpl-cat-dropdown__item.is-active,
.rrpl-cat-dropdown__item[aria-selected="true"] {
	background: var(--rrpl-bg);
	color: var(--rrpl-primary);
	font-weight: 600;
}

/* Sort dropdown — parity with category dropdown */
.rrpl-sort {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
}

.rrpl-sort__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-width: 120px;
	padding: 10px 16px;
	border: 1.5px solid var(--rrpl-border);
	background: var(--rrpl-surface);
	border-radius: 10px;
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	font-weight: 600;
	color: var(--rrpl-text);
	cursor: pointer;
	min-height: 44px;
	line-height: 1.3;
	text-align: left;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.rrpl-sort__label {
	flex: 1;
	min-width: 0;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rrpl-sort__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: inherit;
	transition: color 0.2s, background-color 0.2s, transform 0.2s;
	font-size: 14px;
	line-height: 1;
	width: 1em;
	height: 1em;
	min-width: 1em;
	min-height: 1em;
}

.rrpl-sort__chevron > i,
.rrpl-sort__chevron > svg {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 1em !important;
	height: 1em !important;
	font-size: inherit !important;
	line-height: 1 !important;
	flex-shrink: 0;
	fill: currentColor;
}

.rrpl-sort__trigger:hover {
	border-color: var(--rrpl-primary);
}

.rrpl-sort__trigger:focus {
	outline: 2px solid var(--rrpl-primary);
	outline-offset: 2px;
}

.rrpl-sort__trigger[aria-expanded="true"] {
	border-color: var(--rrpl-primary);
}

.rrpl-sort__trigger[aria-expanded="true"] .rrpl-sort__chevron {
	transform: rotate(180deg);
}

.rrpl-sort__trigger:disabled,
.rrpl-sort.is-disabled .rrpl-sort__trigger {
	opacity: 0.55;
	cursor: not-allowed;
}

.rrpl-sort__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	width: 100%;
	min-width: 200px;
	max-height: 280px;
	overflow-x: hidden;
	overflow-y: auto;
	background: var(--rrpl-surface);
	border: 1px solid var(--rrpl-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	z-index: var(--rrpl-z-dropdown, 20);
	animation: rrpl-cat-dropdown-in 0.18s ease;
}

.rrpl-sort__menu[hidden] {
	display: none !important;
}

.rrpl-sort__item {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: none;
	background: transparent;
	text-align: left;
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	color: var(--rrpl-text);
	cursor: pointer;
}

.rrpl-sort__item:hover,
.rrpl-sort__item:focus,
.rrpl-sort__item.is-active {
	background: var(--rrpl-bg);
	color: var(--rrpl-primary);
	font-weight: 600;
}

.rrpl-sort__item:focus-visible {
	outline: 2px solid var(--rrpl-primary);
	outline-offset: -2px;
}

/* Filter chips */
.rrpl-filter-chips { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--rrpl-bg); border-radius: 10px; }
.rrpl-filter-chips[hidden] { display: none !important; }
.rrpl-filter-chips__label { font-size: 12px; font-weight: 600; color: var(--rrpl-text-muted); }
.rrpl-filter-chips__list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.rrpl-filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--rrpl-surface); border: 1px solid var(--rrpl-border); border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--rrpl-text); cursor: pointer; }
.rrpl-filter-chip:hover { border-color: var(--rrpl-danger); color: var(--rrpl-danger); }
.rrpl-filter-chips__clear { border: none; background: transparent; font-size: 12px; font-weight: 600; color: var(--rrpl-primary); cursor: pointer; }

/* Sidebar filters */
.rrpl-sidebar__header { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rrpl-border); }
.rrpl-sidebar__header h3 { font-size: 15px; font-weight: 700; margin: 0; }
.rrpl-sidebar__subtitle { font-size: 11px; color: var(--rrpl-text-muted); }
.rrpl-sidebar__body,
.rrpl-filter-drawer__body {
	display: flex;
	flex-direction: column;
	gap: var(--rrpl-filter-section-gap, 0px);
}
.rrpl-filter-block { border-bottom: 1px solid var(--rrpl-border); }
.rrpl-filter-block__header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; border: none; background: transparent; font-family: var(--rrpl-font-family); font-size: 13px; font-weight: 600; color: var(--rrpl-text); cursor: pointer; }
.rrpl-filter-block__icons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 1em;
	min-height: 1em;
	line-height: 1;
}
.rrpl-filter-block__icon,
.rrpl-filter-block__icon > i,
.rrpl-filter-block__icon > svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--rrpl-text-muted);
	font-size: 14px;
	line-height: 1;
	width: 1em;
	height: 1em;
	min-width: 1em;
	min-height: 1em;
	flex-shrink: 0;
}
.rrpl-filter-block.is-open .rrpl-filter-block__icon--expand { display: none !important; }
.rrpl-filter-block:not(.is-open) .rrpl-filter-block__icon--collapse { display: none !important; }
.rrpl-filter-block__body { display: none; padding-bottom: 16px; }
.rrpl-filter-block.is-open .rrpl-filter-block__body { display: block; }
.rrpl-filter-checklist { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
.rrpl-filter-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--rrpl-text); }
.rrpl-filter-check input { display: none; }
.rrpl-filter-check__box { width: 18px; height: 18px; border: 1.5px solid var(--rrpl-border); border-radius: 4px; flex-shrink: 0; position: relative; }
.rrpl-filter-check input:checked + .rrpl-filter-check__box { background: var(--rrpl-primary); border-color: var(--rrpl-primary); }
.rrpl-filter-check input:checked + .rrpl-filter-check__box::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rrpl-filter-check__count { margin-left: auto; font-size: 11px; color: var(--rrpl-text-light); }
.rrpl-filter-radio-list { display: flex; flex-direction: column; gap: 8px; }
.rrpl-filter-radio { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.rrpl-filter-radio input { display: none; }
.rrpl-filter-radio__dot { width: 18px; height: 18px; border: 1.5px solid var(--rrpl-border); border-radius: 50%; position: relative; }
.rrpl-filter-radio input:checked + .rrpl-filter-radio__dot { border-color: var(--rrpl-primary); }
.rrpl-filter-radio input:checked + .rrpl-filter-radio__dot::after { content: ''; position: absolute; inset: 4px; background: var(--rrpl-primary); border-radius: 50%; }
.rrpl-filter-rating { display: flex; flex-direction: column; gap: 6px; }
.rrpl-filter-rating__btn {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 8px 12px;
	border: 1.5px solid var(--rrpl-border);
	background: var(--rrpl-surface);
	border-radius: 8px;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	color: var(--rrpl-warning);
	letter-spacing: 0.04em;
}
.rrpl-filter-rating__stars { display: inline-flex; align-items: center; line-height: 1; }
.rrpl-filter-rating__btn.is-active { border-color: var(--rrpl-primary); background: rgba(146, 0, 59, 0.04); }
.rrpl-filter-price__fields { display: grid; gap: 12px; }
.rrpl-filter-price__field { display: flex; flex-direction: column; gap: 6px; }
.rrpl-filter-price__label { font-size: 12px; font-weight: 600; color: var(--rrpl-text-muted); }
.rrpl-filter-price__input-wrap {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 12px;
	min-height: 42px;
	border: 1.5px solid var(--rrpl-border);
	border-radius: 8px;
	background: var(--rrpl-surface);
	transition: border-color 0.2s, box-shadow 0.2s;
	box-shadow: none;
}
.rrpl-filter-price__input-wrap:focus-within {
	border-color: var(--rrpl-primary);
	box-shadow: 0 0 0 3px rgba(146, 0, 59, 0.08);
}
.rrpl-filter-price__affix {
	font-size: 13px;
	font-weight: 600;
	color: var(--rrpl-text-muted);
	flex-shrink: 0;
	white-space: nowrap;
	line-height: 1;
}
.rrpl-filter-price__input {
	flex: 1;
	min-width: 0;
	width: 100%;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	font-family: var(--rrpl-font-family);
	font-size: 14px;
	font-weight: 600;
	color: var(--rrpl-text);
	outline: none !important;
	box-shadow: none !important;
	padding: 10px 0;
	margin: 0;
	line-height: 1.4;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: textfield;
}
.rrpl-filter-price__input:focus,
.rrpl-filter-price__input:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	border: 0 !important;
}
.elementor-widget-rrpl-product-list .rrpl-filter-price__input {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}
.rrpl-filter-price__input::-webkit-outer-spin-button,
.rrpl-filter-price__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.rrpl-filter-price__input::placeholder {
	color: var(--rrpl-text-light);
	opacity: 1;
}
.rrpl-filter-price__hint {
	margin: 10px 0 0;
	font-size: 11px;
	color: var(--rrpl-text-light);
	line-height: 1.4;
}
.rrpl-filter-toggle__badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--rrpl-primary); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rrpl-filter-toggle { position: relative; }
.rrpl-filter-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: var(--rrpl-z-filter-backdrop, 998); pointer-events: auto; opacity: 0; transition: opacity 0.3s ease; }
.rrpl-filter-backdrop.is-visible { opacity: 1; }
.rrpl-filter-backdrop[hidden] { display: none !important; pointer-events: none !important; visibility: hidden !important; }

/* Attributes */
.rrpl-attr-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rrpl-attr-block { background: var(--rrpl-bg); border-radius: 8px; padding: 8px 10px; }
.rrpl-attr-block__label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--rrpl-text-muted); margin-bottom: 2px; }
.rrpl-attr-block__value { margin: 0; font-size: 12px; font-weight: 600; color: var(--rrpl-text); }

/* Card actions / badges / buttons / layouts */
.rrpl-product-card__actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: var(--rrpl-z-card, 1); opacity: 0; transform: translateX(8px); transition: opacity var(--rrpl-card-transition) ease, transform var(--rrpl-card-transition) ease; }
.rrpl-product-list--qv-always .rrpl-product-card__actions,
.rrpl-product-card:hover .rrpl-product-card__actions { opacity: 1; transform: translateX(0); }
.rrpl-product-list--qv-hover .rrpl-product-card__actions { opacity: 0; transform: translateX(8px); }
.rrpl-product-list--qv-hover .rrpl-product-card:hover .rrpl-product-card__actions { opacity: 1; transform: translateX(0); }
.rrpl-product-card__action-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; }
.rrpl-product-card__action-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: rgba(255,255,255,0.95); border-radius: 50%; color: var(--rrpl-text); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rrpl-product-card__action-btn:hover, .rrpl-product-card__action-btn.is-active { background: var(--rrpl-primary); color: #fff; }
.rrpl-product-card__action-btn:hover .rrpl-product-card__action-icon,
.rrpl-product-card__action-btn.is-active .rrpl-product-card__action-icon { color: #fff; }
.rrpl-product-card__badge--discount { background: var(--rrpl-danger); color: #fff; }
.rrpl-product-card__badge--out-of-stock { background: #6B7280; color: #fff; }
.rrpl-product-card__gallery-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: var(--rrpl-z-card, 1); }
.rrpl-product-card__gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.rrpl-product-card__gallery-dot.is-active { background: #fff; width: 18px; border-radius: 3px; }
.rrpl-product-card__hover-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; z-index: var(--rrpl-z-card, 1); opacity: 0; background: rgba(0,0,0,0.15); transition: opacity var(--rrpl-card-transition) ease; pointer-events: none; }
.rrpl-product-card:hover .rrpl-product-card__hover-overlay { opacity: 1; pointer-events: auto; }
.rrpl-product-card__hover-btn { padding: 8px 16px; border: none; background: #fff; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--rrpl-text); }
.rrpl-product-card__star { width: 14px; height: 14px; color: #E5E7EB; }
.rrpl-product-card__star--filled { color: var(--rrpl-warning); }
.rrpl-product-card__price--original { font-size: calc(var(--rrpl-price-size) - 2px); font-weight: 400; color: var(--rrpl-text-light); text-decoration: line-through; }
.rrpl-product-card__price--sale { color: var(--rrpl-sale-price-color); }
.rrpl-product-card__desc { font-size: 13px; color: var(--rrpl-text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.rrpl-product-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--rrpl-text-light); }
.rrpl-product-card__stock { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.rrpl-product-card__stock--in { color: var(--rrpl-success); }
.rrpl-product-card__stock--out { color: var(--rrpl-danger); }
.rrpl-product-card__stock-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rrpl-product-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.rrpl-product-card__tag { padding: 3px 8px; background: var(--rrpl-bg); border-radius: 4px; font-size: 11px; color: var(--rrpl-text-muted); font-weight: 500; }
.rrpl-product-card__buttons { display: flex; flex-direction: column; gap: var(--rrpl-btn-gap, 8px); margin-top: auto; padding-top: 4px; }
.rrpl-product-list--btn-inline .rrpl-product-card__buttons { flex-direction: row; }
.rrpl-loop-add-to-cart { width: 100%; }
.rrpl-loop-add-to-cart > a,
.rrpl-loop-add-to-cart > button {
	width: 100%;
}
.rrpl-product-list--btn-inline .rrpl-loop-add-to-cart {
	flex: 1;
	min-width: 0;
}
.rrpl-wc-plugin-actions {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--rrpl-btn-gap, 8px);
}
.rrpl-wc-plugin-actions > a,
.rrpl-wc-plugin-actions > button,
.rrpl-wc-plugin-actions .button,
.rrpl-wc-plugin-actions input[type="button"],
.rrpl-wc-plugin-actions input[type="submit"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: var(--rrpl-btn-padding);
	border-radius: var(--rrpl-btn-radius);
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}
.rrpl-product-list--btn-inline .rrpl-wc-plugin-actions {
	flex: 1;
	min-width: 0;
}
.rrpl-product-card__btn {
	width: 100%;
	flex: none;
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: var(--rrpl-btn-padding);
	border-radius: var(--rrpl-btn-radius);
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: all var(--rrpl-card-transition) ease;
	border: 1.5px solid transparent;
}
.rrpl-product-list--btn-inline .rrpl-product-card__btn { width: auto; flex: 1; }
.rrpl-product-card__btn--primary { background: var(--rrpl-btn-bg); color: var(--rrpl-btn-color); border-color: var(--rrpl-btn-bg); }
.rrpl-product-card__btn--primary:hover { background: var(--rrpl-btn-hover-bg); border-color: var(--rrpl-btn-hover-bg); color: var(--rrpl-btn-hover-color); }
.rrpl-product-card__btn--secondary { background: transparent; color: var(--rrpl-text); border-color: var(--rrpl-border); }
.rrpl-product-card__btn--secondary:hover { border-color: var(--rrpl-primary); color: var(--rrpl-primary); }
.rrpl-product-card__footer { display: flex; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--rrpl-border); font-size: 11px; color: var(--rrpl-text-muted); }

.rrpl-product-card--horizontal { flex-direction: row; align-items: stretch; }
.rrpl-product-card--horizontal .rrpl-product-card__image-wrap { width: 40%; flex-shrink: 0; aspect-ratio: auto; min-height: 180px; }
.rrpl-product-card--horizontal .rrpl-product-card__body { flex: 1; }
.rrpl-product-card--minimal .rrpl-product-card__body { padding: 12px; }
.rrpl-product-card--layout-3 .rrpl-product-card__body,
.rrpl-product-card--overlay .rrpl-product-card__body { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; z-index: var(--rrpl-z-card, 1); }
.rrpl-product-card--layout-3 .rrpl-product-card__title,
.rrpl-product-card--layout-3 .rrpl-product-card__price,
.rrpl-product-card--overlay .rrpl-product-card__title,
.rrpl-product-card--overlay .rrpl-product-card__price { color: #fff; }
.rrpl-pagination-area--left { align-items: flex-start; }
.rrpl-pagination-area--center { align-items: center; }
.rrpl-pagination-area--right { align-items: flex-end; }

.rrpl-pagination__dots {
	padding: 0 4px;
	color: var(--rrpl-text-light);
	font-size: 13px;
	line-height: var(--rrpl-pag-btn-size);
}

.rrpl-pagination__btn.is-disabled,
.rrpl-pagination__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* Grid layout modes */
.rrpl-product-grid--masonry {
	display: block !important;
	columns: var(--rrpl-grid-cols, 4);
	column-gap: var(--rrpl-grid-gap);
}

.rrpl-product-grid--masonry .rrpl-product-card {
	break-inside: avoid;
	margin-bottom: var(--rrpl-grid-gap);
	display: inline-block;
	width: 100%;
}

.rrpl-product-grid--carousel {
	display: flex !important;
	grid-template-columns: none !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 8px;
}

.rrpl-product-grid--carousel::-webkit-scrollbar {
	display: none;
}

.rrpl-product-grid--carousel .rrpl-product-card {
	flex: 0 0 calc((100% - var(--rrpl-grid-gap) * (var(--rrpl-grid-cols, 4) - 1)) / var(--rrpl-grid-cols, 4));
	scroll-snap-align: start;
	min-width: 220px;
}

.rrpl-product-grid--list {
	display: flex !important;
	flex-direction: column;
	gap: var(--rrpl-grid-gap);
}

.rrpl-product-grid--list .rrpl-product-card {
	flex-direction: row;
	align-items: stretch;
	max-width: 100%;
}

.rrpl-product-grid--list .rrpl-product-card__image-wrap {
	width: 200px;
	flex-shrink: 0;
	aspect-ratio: 1;
}

.rrpl-product-grid--list .rrpl-product-card__body {
	flex: 1;
}

.rrpl-empty-state {
	text-align: center;
	padding: 48px 24px;
	background: var(--rrpl-bg);
	border-radius: 12px;
	border: 1px dashed var(--rrpl-border);
	width: 100%;
	box-sizing: border-box;
}

.rrpl-empty-state__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--rrpl-text);
}

.rrpl-empty-state__text {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--rrpl-text-muted);
}

.rrpl-empty-state__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 20px;
	border-radius: 8px;
	border: 1px solid var(--rrpl-primary);
	background: var(--rrpl-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.rrpl-empty-state__btn:hover {
	opacity: 0.92;
}

.rrpl-filter-price__error {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--rrpl-error, #E74C3C);
}

.rrpl-filter-price__input.is-invalid {
	border-color: var(--rrpl-error, #E74C3C);
}

.rrpl-product-list--equal-height .rrpl-product-grid { align-items: stretch; }
.rrpl-product-list--equal-height .rrpl-product-card { height: 100%; }
.rrpl-product-grid--equal_height { align-items: stretch; }
.rrpl-product-grid--equal_height .rrpl-product-card { height: 100%; }
.rrpl-is-loading { opacity: 0.65; pointer-events: none; transition: opacity 0.2s; }

.rrpl-has-error .rrpl-empty-state--error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 32px 16px;
	text-align: center;
	color: var(--rrpl-text-muted, #6b7280);
	border: 1px dashed var(--rrpl-border, #E4E7EC);
	border-radius: 12px;
	background: var(--rrpl-surface, #fff);
}

.rrpl-has-error .rrpl-empty-state--error p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}
.rrpl-infinite-scroll { width: 100%; height: 1px; }

/* Entrance animations */
.rrpl-product-card[data-rrpl-animation="fadeIn"] { animation: rrpl-fadeIn 0.5s ease both; }
.rrpl-product-card[data-rrpl-animation="fadeInUp"] { animation: rrpl-fadeInUp 0.5s ease both; }
.rrpl-product-card[data-rrpl-animation="fadeInDown"] { animation: rrpl-fadeInDown 0.5s ease both; }
.rrpl-product-card[data-rrpl-animation="zoomIn"] { animation: rrpl-zoomIn 0.5s ease both; }
.rrpl-product-card[data-rrpl-animation="slideInLeft"] { animation: rrpl-slideInLeft 0.5s ease both; }

@keyframes rrpl-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rrpl-fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rrpl-fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rrpl-zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes rrpl-slideInLeft { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }

/* Modal — isolated viewport layer; closed state must not intercept clicks. */
body.rrpl-modal-open,
body.rrpl-filter-open {
	overflow: hidden;
}

.rrpl-modal[hidden] {
	display: none !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

.rrpl-modal {
	position: fixed;
	inset: 0;
	z-index: var(--rrpl-z-modal, 1000);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	pointer-events: none;
}

.rrpl-modal:not([hidden]) {
	pointer-events: auto;
}

.rrpl-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.6);
	z-index: 0;
}

.rrpl-modal__dialog {
	position: relative;
	z-index: var(--rrpl-z-modal-dialog, 1001);
	width: min(960px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: var(--rrpl-surface, #fff);
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
	padding: 24px;
	animation: rrpl-modal-in 0.25s ease;
}

.rrpl-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1.5px solid var(--rrpl-border, #E4E7EC);
	background: var(--rrpl-surface, #fff);
	border-radius: 50%;
	cursor: pointer;
	color: var(--rrpl-text, #111827);
	z-index: 1;
}

.rrpl-modal__loader {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
}

.rrpl-modal__state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 200px;
	text-align: center;
	padding: 24px;
	color: var(--rrpl-text-muted);
}

.rrpl-modal__state p {
	margin: 0;
	font-size: 14px;
}

.rrpl-modal__loader-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: var(--rrpl-primary);
}

.rrpl-modal__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(146, 0, 59, 0.15);
	border-top-color: var(--rrpl-primary, #92003B);
	border-radius: 50%;
	animation: rrpl-spin 0.8s linear infinite;
}

.rrpl-modal__body[hidden],
.rrpl-modal__loader[hidden] { display: none !important; }

@keyframes rrpl-modal-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rrpl-spin {
	to { transform: rotate(360deg); }
}

/* Quick view */
.rrpl-qv {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 28px;
}

.rrpl-qv__main-image {
	border-radius: 12px;
	overflow: hidden;
	background: #F3F4F6;
}

.rrpl-qv__image {
	display: block;
	width: 100%;
	height: auto;
}

.rrpl-qv__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.rrpl-qv__thumb {
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 0;
	background: transparent;
	cursor: pointer;
	overflow: hidden;
}

.rrpl-qv__thumb.is-active { border-color: var(--rrpl-primary, #92003B); }

.rrpl-qv__title {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 700;
	color: var(--rrpl-text, #111827);
}

.rrpl-qv__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

.rrpl-qv__price {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--rrpl-text, #111827);
}

.rrpl-qv__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 16px;
}

.rrpl-qv__stock--in { color: var(--rrpl-success, #39B54A); }
.rrpl-qv__stock--out { color: var(--rrpl-danger, #E74C3C); }
.rrpl-qv__stock-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.rrpl-qv__description {
	font-size: 14px;
	line-height: 1.6;
	color: var(--rrpl-text-muted, #6B7280);
	margin-bottom: 16px;
}

.rrpl-qv__attributes {
	width: 100%;
	margin-bottom: 16px;
	border-collapse: collapse;
}

.rrpl-qv__attributes th,
.rrpl-qv__attributes td {
	padding: 8px 0;
	border-bottom: 1px solid var(--rrpl-border, #E4E7EC);
	font-size: 13px;
	text-align: left;
}

.rrpl-qv__cart .quantity { margin-right: 8px; }

.rrpl-qv__meta {
	font-size: 13px;
	color: var(--rrpl-text-muted, #6B7280);
	margin-top: 16px;
}

.rrpl-qv__meta p { margin: 0 0 8px; }

.rrpl-qv__details-link {
	display: inline-flex;
	margin-top: 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rrpl-primary, #92003B);
	text-decoration: none;
}

/* Button states */
.rrpl-product-card__btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.rrpl-product-card__btn.is-loading .rrpl-product-card__btn-icon {
	display: none;
}

.rrpl-product-card__btn.is-loading .rrpl-product-card__btn-loader {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}

.rrpl-product-card__btn.is-added .rrpl-product-card__btn-icon {
	display: none;
}

.rrpl-product-card__btn-loader {
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.rrpl-product-card__btn.is-loading .rrpl-product-card__btn-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rrpl-spin 0.8s linear infinite;
}

.rrpl-product-card__btn.is-added {
	background: var(--rrpl-success, #39B54A) !important;
	border-color: var(--rrpl-success, #39B54A) !important;
}

.rrpl-product-card__btn--disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.rrpl-product-card__stars .star-rating {
	margin: 0;
}

.rrpl-filter-chip__remove,
.rrpl-filter-chip__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 1;
}

.rrpl-state-icon {
	font-size: 32px;
}
.rrpl-state-icon--error { color: var(--rrpl-danger); }
.rrpl-state-icon--success { color: var(--rrpl-success); }

/*
 * Icon layout helpers — RRPL wrapper classes only.
 * Never target .eicon, .elementor-icon, .fa, or other global icon libraries.
 */
.rrpl-product-card__action-icon,
.rrpl-product-card__action-icon > i,
.rrpl-product-card__action-icon > svg,
.rrpl-filter-toggle__icon,
.rrpl-filter-toggle__icon > i,
.rrpl-filter-toggle__icon > svg,
.rrpl-sort__chevron,
.rrpl-sort__chevron > i,
.rrpl-sort__chevron > svg,
.rrpl-search__icon,
.rrpl-search__icon > i,
.rrpl-search__icon > svg,
.rrpl-search__clear-icon,
.rrpl-search__clear-icon > i,
.rrpl-search__clear-icon > svg,
.rrpl-pagination__icon,
.rrpl-pagination__icon > i,
.rrpl-pagination__icon > svg,
.rrpl-filter-block__icon,
.rrpl-filter-block__icon > i,
.rrpl-filter-block__icon > svg,
.rrpl-cat-dropdown__chevron,
.rrpl-cat-dropdown__chevron > i,
.rrpl-cat-dropdown__chevron > svg,
.rrpl-modal__close,
.rrpl-modal__close > i,
.rrpl-modal__close > svg,
.rrpl-filter-drawer__close,
.rrpl-filter-drawer__close > i,
.rrpl-filter-drawer__close > svg,
.rrpl-empty-state__icon,
.rrpl-empty-state__icon > i,
.rrpl-empty-state__icon > svg,
.rrpl-modal__loader-icon,
.rrpl-modal__loader-icon > i,
.rrpl-modal__loader-icon > svg,
.rrpl-product-card__btn-icon,
.rrpl-product-card__btn-icon > i,
.rrpl-product-card__btn-icon > svg,
.rrpl-product-card__btn-loader,
.rrpl-product-card__btn-loader > i,
.rrpl-product-card__btn-loader > svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: inherit;
	box-sizing: border-box;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.rrpl-product-card__btn-loader,
.rrpl-product-card__btn-loader[hidden] {
	display: none !important;
}

.rrpl-modal__loader-icon > i,
.rrpl-modal__loader-icon > svg,
.rrpl-product-card__btn-loader > i,
.rrpl-product-card__btn-loader > svg {
	animation: rrpl-spin 0.8s linear infinite;
}

.rrpl-filter-toggle__icon { font-size: 16px; color: inherit; min-width: 1em; min-height: 1em; }
.rrpl-product-card__action-icon { font-size: 16px; width: auto; height: auto; min-width: 1em; min-height: 1em; }
.rrpl-filter-block__icon { font-size: 14px; min-width: 1em; min-height: 1em; color: inherit; }
.rrpl-sort__chevron { font-size: 14px; min-width: 1em; min-height: 1em; color: inherit; }
.rrpl-pagination__btn .rrpl-pagination__icon { font-size: 14px; }
.rrpl-cat-dropdown__chevron { font-size: 14px; min-width: 1em; min-height: 1em; color: inherit; }
.rrpl-empty-state__icon { font-size: 32px; color: var(--rrpl-text-muted); }
.rrpl-modal__close,
.rrpl-filter-drawer__close { font-size: 18px; }

.rrpl-empty-state__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
	width: auto;
	height: auto;
}

.rrpl-search__icon,
.rrpl-sort__chevron,
.rrpl-filter-toggle__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rrpl-pagination__icon { display: inline-flex; }

@media (max-width: 767px) {
	.rrpl-qv {
		grid-template-columns: 1fr;
	}
}

/* Responsive */
@media (max-width: 1024px) {
	.rrpl-main--sidebar {
		grid-template-columns: 1fr;
	}

	.rrpl-sidebar {
		display: none;
	}

	.rrpl-filter-toggle--drawer-only {
		display: inline-flex;
	}
}

@media (min-width: 1025px) {
	.rrpl-main--sidebar .rrpl-filter-toggle--drawer-only {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.rrpl-toolbar--has-search {
		flex-direction: column;
		align-items: stretch;
	}

	.rrpl-empty-state {
		padding: 32px 16px;
	}

	.rrpl-empty-state__title {
		font-size: 16px;
	}

	.rrpl-empty-state__text {
		font-size: 13px;
	}
}

.rrpl-filter-drawer__footer {
	padding: 12px 16px 16px;
	border-top: 1px solid var(--rrpl-border, #E4E7EC);
}

.rrpl-filter-drawer__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 8px 14px;
	border: 1.5px solid var(--rrpl-border, #E4E7EC);
	border-radius: 10px;
	background: var(--rrpl-surface, #fff);
	color: var(--rrpl-text, #111827);
	font-family: var(--rrpl-font-family);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.rrpl-filter-drawer__reset:hover,
.rrpl-filter-drawer__reset:focus-visible {
	border-color: var(--rrpl-primary);
	color: var(--rrpl-primary);
	outline: none;
}

.rrpl-filter-toggle:focus-visible,
.rrpl-search__clear:focus-visible,
.rrpl-filter-chip:focus-visible,
.rrpl-filter-chips__clear:focus-visible,
.rrpl-pagination__btn:focus-visible,
.rrpl-load-more:focus-visible,
.rrpl-product-card__action-btn:focus-visible {
	outline: 2px solid var(--rrpl-primary);
	outline-offset: 2px;
}

.rrpl-product-list .rrpl-grid--cols-1 {
	--rrpl-grid-cols: 1;
}

.rrpl-product-card--layout-2 .rrpl-product-card__body {
	padding-top: 4px;
}

.rrpl-product-card--layout-2 .rrpl-product-card__title {
	font-size: 1.05em;
}
