/**
 * Rotitoo Shop — Material / Flutter-inspired catalog
 */

body.rotitoo-shop-sheet-open {
	overflow: hidden;
}

body.rotitoo-app-shell.rotitoo-shop-modern {
	--rotitoo-shop-bg: #ffffff;
	--rotitoo-shop-surface: #ffffff;
	--rotitoo-shop-ink: #1e1814;
	--rotitoo-shop-muted: #8a7f78;
	--rotitoo-shop-accent: #b85c4a;
	--rotitoo-shop-radius: 16px;
	--rotitoo-shop-radius-sm: 12px;
	--rotitoo-shop-shadow: 0 2px 12px rgba(30, 24, 20, 0.06);
	--rotitoo-shop-shadow-hover: 0 12px 32px rgba(30, 24, 20, 0.1);
	--rotitoo-shop-cols: 4;
	background: var(--rotitoo-shop-bg);
}

body.rotitoo-app-shell.rotitoo-shop-woodmart {
	--rotitoo-shop-bg: #ffffff;
	--rotitoo-shop-accent: #d48b46;
	--rotitoo-shop-cols: 3;
	background: #fff;
}

body.rotitoo-app-shell.rotitoo-shop-woodmart .site-content,
body.rotitoo-app-shell.rotitoo-shop-woodmart .rotitoo-main {
	background: #fff;
}

/* ─── Woodmart hero (full-width category banner) ────────────── */
.rotitoo-shop-hero {
	position: relative;
	width: 100%;
	height: 372px;
	min-height: 372px;
	max-height: 372px;
	margin: 0;
	padding: 150px 0 60px;
	box-sizing: border-box;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background-image: var(--rotitoo-shop-hero-bg);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	color: #fff;
	text-align: center;
	overflow: hidden;
}

body.admin-bar .rotitoo-shop-hero {
	height: calc(372px + var(--rotitoo-admin-bar-offset, 0px));
	min-height: calc(372px + var(--rotitoo-admin-bar-offset, 0px));
	max-height: calc(372px + var(--rotitoo-admin-bar-offset, 0px));
	padding-top: calc(150px + var(--rotitoo-admin-bar-offset, 0px));
}

.rotitoo-shop-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
	pointer-events: none;
}

.rotitoo-shop-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1180px;
}

.rotitoo-shop-hero__title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 18px;
}

body.rotitoo-shop-woodmart.is-shop .rotitoo-shop-hero__title-row {
	display: none;
}

.rotitoo-shop-hero__back {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.2);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.rotitoo-shop-hero__back:hover {
	background: rgba(0, 0, 0, 0.35);
	border-color: rgba(255, 255, 255, 0.7);
}

.rotitoo-shop-hero__title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.rotitoo-shop-hero__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 18px;
}

.rotitoo-shop-hero__cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 120px;
	padding: 14px 18px 12px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.rotitoo-shop-hero__cat:hover,
.rotitoo-shop-hero__cat.is-active {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.45);
}

.rotitoo-shop-hero__cat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
}

.rotitoo-shop-hero__cat-icon--photo {
	background: #fff;
	border-radius: 2px;
	overflow: hidden;
}

.rotitoo-shop-hero__cat-icon img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	filter: none;
}

.rotitoo-shop-hero__cat-icon--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rotitoo-shop-hero__cat-name {
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
}

.rotitoo-shop-hero__cat-count {
	display: block;
	font-size: 0.72rem;
	opacity: 0.85;
	text-align: center;
}

@media (max-width: 767px) {
	.rotitoo-shop-hero {
		height: 300px;
		min-height: 300px;
		max-height: 300px;
		padding: 120px 0 40px;
	}

	body.admin-bar .rotitoo-shop-hero {
		height: calc(300px + var(--rotitoo-admin-bar-offset, 0px));
		min-height: calc(300px + var(--rotitoo-admin-bar-offset, 0px));
		max-height: calc(300px + var(--rotitoo-admin-bar-offset, 0px));
		padding-top: calc(120px + var(--rotitoo-admin-bar-offset, 0px));
	}

	.rotitoo-shop-hero__cats {
		gap: 10px;
	}

	.rotitoo-shop-hero__cat {
		min-width: 100px;
		padding: 10px 12px;
	}
}

body.rotitoo-app-shell.rotitoo-shop-modern .site-content,
body.rotitoo-app-shell.rotitoo-shop-modern .rotitoo-main {
	background: var(--rotitoo-shop-bg);
}

/* ─── Shell ─────────────────────────────────────────────────── */
.rotitoo-shop {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 clamp(12px, 3vw, 24px) clamp(32px, 5vw, 56px);
}

body.rotitoo-shop-woodmart .rotitoo-shop {
	max-width: 1222px;
	padding-top: 24px;
}

.rotitoo-shop__hero {
	padding: clamp(20px, 4vw, 32px) 0 8px;
	text-align: center;
}

.rotitoo-shop__title {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 300;
	letter-spacing: 0.04em;
	color: var(--rotitoo-shop-ink);
	line-height: 1.3;
}

.rotitoo-shop__subtitle {
	margin: 8px 0 0;
	font-size: 0.875rem;
	color: var(--rotitoo-shop-muted);
	font-weight: 400;
}

/* Production-style category ribbon (تشكيلة / حقائب / كروس) */
.rotitoo-shop__cat-ribbon {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 14px;
	padding: 4px 0 16px;
}

.rotitoo-shop__cat-ribbon-link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 10px 18px;
	border-radius: 12px;
	border: 1px solid rgba(30, 24, 20, 0.08);
	background: var(--rotitoo-shop-surface);
	color: var(--rotitoo-shop-ink);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.25;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
	min-width: 120px;
}

.rotitoo-shop__cat-ribbon-link:hover {
	border-color: rgba(184, 92, 74, 0.35);
	box-shadow: var(--rotitoo-shop-shadow);
	color: var(--rotitoo-shop-accent);
}

.rotitoo-shop__cat-ribbon-link.is-active {
	border-color: var(--rotitoo-shop-accent);
	color: var(--rotitoo-shop-accent);
	box-shadow: 0 0 0 1px rgba(184, 92, 74, 0.2);
}

.rotitoo-shop__cat-ribbon-count {
	font-size: 0.72rem;
	font-weight: 400;
	color: var(--rotitoo-shop-muted);
}

.rotitoo-shop__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

@media (min-width: 1025px) {
	.rotitoo-shop__layout {
		grid-template-columns: 280px minmax(0, 1fr);
		gap: 30px;
		align-items: start;
	}

	body.rotitoo-shop-sidebar-hidden .rotitoo-shop__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	body.rotitoo-shop-sidebar-hidden .rotitoo-shop__filters {
		display: none;
	}
}

.rotitoo-shop__main {
	min-width: 0;
}

/* ─── Toolbar ───────────────────────────────────────────────── */
.rotitoo-shop__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0 16px;
	position: sticky;
	top: calc(var(--rotitoo-header-h, 72px) + var(--rotitoo-admin-bar-offset, 0px) - 1px);
	z-index: 40;
	background: linear-gradient(180deg, var(--rotitoo-shop-bg) 70%, transparent);
}

.rotitoo-shop__toolbar--woodmart {
	position: static;
	background: transparent;
	padding: 0 0 20px;
}

.rotitoo-shop__toolbar--woodmart .rotitoo-shop__toolbar-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	width: 100%;
	padding: 14px 18px;
	border: 1px solid rgba(30, 24, 20, 0.1);
	border-radius: 4px;
	background: #fff;
}

.rotitoo-shop__toolbar-left,
.rotitoo-shop__toolbar-center,
.rotitoo-shop__toolbar-right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
}

.rotitoo-shop__toolbar-center {
	flex: 1;
	justify-content: center;
}

.rotitoo-shop__toolbar-right {
	margin-left: auto;
}

.rotitoo-shop__sidebar-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--rotitoo-shop-ink);
	cursor: pointer;
}

@media (min-width: 1025px) {
	.rotitoo-shop__sidebar-toggle {
		display: inline-flex;
	}
}

.rotitoo-shop__sidebar-toggle-icon {
	width: 18px;
	height: 14px;
	background:
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 0 0 / 100% 2px no-repeat,
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 0 6px / 100% 2px no-repeat,
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 0 12px / 100% 2px no-repeat;
}

.rotitoo-shop__breadcrumbs {
	font-size: 0.8125rem;
	color: var(--rotitoo-shop-muted);
}

.rotitoo-shop__breadcrumb-link {
	color: var(--rotitoo-shop-muted);
	text-decoration: none;
}

.rotitoo-shop__breadcrumb-link:hover {
	color: var(--rotitoo-shop-ink);
}

.rotitoo-shop__breadcrumb-sep {
	margin: 0 6px;
	opacity: 0.6;
}

.rotitoo-shop__breadcrumb-current {
	color: var(--rotitoo-shop-ink);
}

.rotitoo-shop__per-page-label {
	font-size: 0.8125rem;
	color: var(--rotitoo-shop-muted);
}

.rotitoo-shop__per-page {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.rotitoo-shop__per-page-link {
	padding: 2px 4px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--rotitoo-shop-muted);
	text-decoration: none;
}

.rotitoo-shop__per-page-link:hover,
.rotitoo-shop__per-page-link.is-active {
	color: var(--rotitoo-shop-ink);
}

.rotitoo-shop__per-page-link.is-active {
	font-weight: 600;
}

.rotitoo-shop__grid-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.rotitoo-shop__grid-btn {
	display: block;
	width: 22px;
	height: 18px;
	border: none;
	background: transparent;
	opacity: 0.35;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.rotitoo-shop__grid-btn.is-active,
.rotitoo-shop__grid-btn:hover {
	opacity: 1;
}

.rotitoo-shop__grid-btn--2 {
	background:
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 0 0 / 42% 100% no-repeat,
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 100% 0 / 42% 100% no-repeat;
}

.rotitoo-shop__grid-btn--3 {
	background:
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 0 0 / 28% 100% no-repeat,
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 36% 0 / 28% 100% no-repeat,
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 72% 0 / 28% 100% no-repeat;
}

.rotitoo-shop__grid-btn--4 {
	background:
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 0 0 / 20% 100% no-repeat,
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 27% 0 / 20% 100% no-repeat,
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 54% 0 / 20% 100% no-repeat,
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 81% 0 / 20% 100% no-repeat;
}

.rotitoo-shop__filter-toggle--mobile {
	display: inline-flex;
}

@media (min-width: 1025px) {
	.rotitoo-shop__filter-toggle--mobile {
		display: none;
	}

	.rotitoo-shop__toolbar--woodmart {
		flex-wrap: nowrap;
	}
}

.rotitoo-shop__ordering .woocommerce-ordering {
	margin: 0;
}

.rotitoo-shop__ordering .woocommerce-ordering select {
	appearance: none;
	-webkit-appearance: none;
	min-width: 180px;
	padding: 10px 36px 10px 14px;
	border: 1px solid rgba(30, 24, 20, 0.12);
	border-radius: 4px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a7f78' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--rotitoo-shop-ink);
	cursor: pointer;
}

.rotitoo-shop__toolbar-start,
.rotitoo-shop__toolbar-end {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.rotitoo-shop__filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: none;
	border-radius: 999px;
	background: var(--rotitoo-shop-surface);
	box-shadow: var(--rotitoo-shop-shadow);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--rotitoo-shop-ink);
	cursor: pointer;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

@media (min-width: 1025px) {
	.rotitoo-shop__filter-toggle {
		display: none;
	}
}

.rotitoo-shop__filter-toggle-icon {
	width: 16px;
	height: 16px;
	background:
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 0 3px / 100% 2px no-repeat,
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 0 7px / 70% 2px no-repeat,
		linear-gradient(var(--rotitoo-shop-ink), var(--rotitoo-shop-ink)) 0 11px / 85% 2px no-repeat;
}

.rotitoo-shop__count {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--rotitoo-shop-muted);
}

.rotitoo-shop__density {
	display: none;
	padding: 4px;
	border-radius: 999px;
	background: var(--rotitoo-shop-surface);
	box-shadow: var(--rotitoo-shop-shadow);
}

@media (min-width: 768px) {
	.rotitoo-shop__density {
		display: inline-flex;
	}
}

.rotitoo-shop__density-btn {
	border: none;
	background: transparent;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--rotitoo-shop-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.rotitoo-shop__density-btn.is-active {
	background: var(--rotitoo-shop-ink);
	color: #fff;
}

.rotitoo-shop__toolbar .woocommerce-ordering {
	margin: 0;
}

.rotitoo-shop__toolbar .woocommerce-ordering select {
	appearance: none;
	-webkit-appearance: none;
	padding: 10px 36px 10px 14px;
	border: none;
	border-radius: 999px;
	background: var(--rotitoo-shop-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a7f78' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
	box-shadow: var(--rotitoo-shop-shadow);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--rotitoo-shop-ink);
	cursor: pointer;
	min-width: 160px;
}

.rotitoo-shop__active-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 12px;
}

.rotitoo-shop__active-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--rotitoo-shop-surface);
	box-shadow: var(--rotitoo-shop-shadow);
	font-size: 0.75rem;
	color: var(--rotitoo-shop-ink);
	text-decoration: none;
}

/* ─── Sidebar filters (desktop) ─────────────────────────────── */
.rotitoo-shop__filters {
	display: none;
}

@media (min-width: 1025px) {
	.rotitoo-shop__filters {
		display: block;
		position: sticky;
		top: calc(var(--rotitoo-header-h, 72px) + var(--rotitoo-admin-bar-offset, 0px) + 12px);
		padding: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.rotitoo-shop__filters--woodmart {
		padding-right: 8px;
	}
}

.rotitoo-shop__widget {
	margin-bottom: 28px;
}

.rotitoo-shop__widget-title {
	margin: 0 0 16px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rotitoo-shop-ink);
}

.rotitoo-price-slider__track {
	position: relative;
	height: 4px;
	margin: 22px 8px 18px;
	border-radius: 2px;
	background: #e8e4e0;
}

.rotitoo-price-slider__range {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 2px;
	background: var(--rotitoo-shop-accent);
	pointer-events: none;
}

.rotitoo-price-slider__input {
	position: absolute;
	top: 50%;
	width: calc(100% + 16px);
	left: -8px;
	margin: 0;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.rotitoo-price-slider__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	border: 2px solid var(--rotitoo-shop-accent);
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
}

.rotitoo-price-slider__input::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 2px solid var(--rotitoo-shop-accent);
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
}

.rotitoo-price-slider__input--min {
	z-index: 3;
}

.rotitoo-price-slider__input--max {
	z-index: 4;
}

.rotitoo-price-slider__label {
	margin: 0 0 14px;
	font-size: 0.8125rem;
	color: var(--rotitoo-shop-muted);
}

.rotitoo-price-slider__label strong {
	color: var(--rotitoo-shop-ink);
	font-weight: 600;
}

.rotitoo-shop__filter-btn {
	display: block;
	width: 100%;
	padding: 11px 16px;
	border: 1px solid rgba(30, 24, 20, 0.15);
	border-radius: 2px;
	background: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rotitoo-shop-ink);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.rotitoo-shop__filter-btn:hover {
	border-color: var(--rotitoo-shop-ink);
	background: #fafafa;
}

.rotitoo-shop__top-rated {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rotitoo-shop__top-rated-item + .rotitoo-shop__top-rated-item {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(30, 24, 20, 0.08);
}

.rotitoo-shop__top-rated-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}

.rotitoo-shop__top-rated-thumb {
	flex: 0 0 64px;
	width: 64px;
}

.rotitoo-shop__top-rated-thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 2px;
}

.rotitoo-shop__top-rated-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.rotitoo-shop__top-rated-name {
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--rotitoo-shop-ink);
}

.rotitoo-shop__top-rated-price {
	font-size: 0.75rem;
	color: var(--rotitoo-shop-muted);
}

.rotitoo-shop__top-rated-price .amount {
	color: var(--rotitoo-shop-ink);
}

.rotitoo-shop__filter-section + .rotitoo-shop__filter-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(30, 24, 20, 0.06);
}

.rotitoo-shop__filter-title {
	margin: 0 0 12px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rotitoo-shop-muted);
}

.rotitoo-shop__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rotitoo-shop__chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: #f5f1ed;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--rotitoo-shop-ink);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rotitoo-shop__chip:hover {
	background: #ebe5df;
}

.rotitoo-shop__chip.is-active {
	background: var(--rotitoo-shop-ink);
	color: #fff;
	box-shadow: 0 2px 8px rgba(30, 24, 20, 0.15);
}

.rotitoo-shop__color-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.rotitoo-shop__color-opt {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 4px;
	border-radius: var(--rotitoo-shop-radius-sm);
	cursor: pointer;
	transition: background 0.15s ease;
}

.rotitoo-shop__color-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rotitoo-shop__color-opt.is-active,
.rotitoo-shop__color-opt:has(input:checked) {
	background: #f5f1ed;
}

.rotitoo-shop__color-swatch {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 0 1px rgba(30, 24, 20, 0.12);
}

.rotitoo-shop__color-label {
	font-size: 0.65rem;
	color: var(--rotitoo-shop-muted);
	text-align: center;
	line-height: 1.2;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rotitoo-shop__price-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.rotitoo-shop__field span {
	display: block;
	margin-bottom: 6px;
	font-size: 0.6875rem;
	color: var(--rotitoo-shop-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rotitoo-shop__field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(30, 24, 20, 0.1);
	border-radius: 10px;
	font-size: 0.875rem;
	background: #faf8f6;
	color: var(--rotitoo-shop-ink);
}

.rotitoo-shop__toggle-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	cursor: pointer;
}

.rotitoo-shop__filter-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
}

.rotitoo-shop__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: none;
	border-radius: var(--rotitoo-shop-radius-sm);
	background: var(--rotitoo-shop-ink);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.rotitoo-shop__apply--block {
	width: 100%;
}

.rotitoo-shop__apply:active {
	transform: scale(0.98);
}

.rotitoo-shop__clear {
	font-size: 0.8125rem;
	color: var(--rotitoo-shop-muted);
	text-align: center;
	text-decoration: none;
}

/* ─── Mobile filter sheet ───────────────────────────────────── */
.rotitoo-shop__sheet[hidden] {
	display: none !important;
}

.rotitoo-shop__sheet {
	position: fixed;
	inset: 0;
	z-index: 500;
}

.rotitoo-shop__sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(30, 24, 20, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.rotitoo-shop__sheet-panel {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	max-height: min(88vh, 720px);
	display: flex;
	flex-direction: column;
	background: var(--rotitoo-shop-surface);
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -8px 40px rgba(30, 24, 20, 0.12);
	animation: rotitoo-shop-sheet-in 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rotitoo-shop-sheet-in {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

.rotitoo-shop__sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 12px;
	border-bottom: 1px solid rgba(30, 24, 20, 0.06);
}

.rotitoo-shop__sheet-head h2 {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
}

.rotitoo-shop__sheet-close {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: #f5f1ed;
	cursor: pointer;
	position: relative;
}

.rotitoo-shop__sheet-close::before,
.rotitoo-shop__sheet-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	background: var(--rotitoo-shop-ink);
	transform: translate(-50%, -50%) rotate(45deg);
}

.rotitoo-shop__sheet-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.rotitoo-shop__sheet-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
	-webkit-overflow-scrolling: touch;
}

.rotitoo-shop__sheet-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid rgba(30, 24, 20, 0.06);
}

.rotitoo-shop__sheet-foot .rotitoo-shop__apply {
	flex: 1;
}

/* ─── Product grid ──────────────────────────────────────────── */
.rotitoo-shop ul.products.rotitoo-shop__grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(10px, 2vw, 16px);
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
}

/* WC clearfix ::before/::after become empty grid cells and shift every product */
.rotitoo-shop ul.products.rotitoo-shop__grid::before,
.rotitoo-shop ul.products.rotitoo-shop__grid::after {
	content: none !important;
	display: none !important;
}

@media (min-width: 640px) {
	.rotitoo-shop ul.products.rotitoo-shop__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.rotitoo-shop ul.products.rotitoo-shop__grid,
	body.rotitoo-shop-cols-2 .rotitoo-shop ul.products.rotitoo-shop__grid,
	body.rotitoo-shop-cols-3 .rotitoo-shop ul.products.rotitoo-shop__grid,
	body.rotitoo-shop-cols-4 .rotitoo-shop ul.products.rotitoo-shop__grid {
		grid-template-columns: repeat(var(--rotitoo-shop-cols, 3), minmax(0, 1fr));
		gap: 18px;
	}
}

body.rotitoo-shop-cols-2 {
	--rotitoo-shop-cols: 2;
}

body.rotitoo-shop-cols-3 {
	--rotitoo-shop-cols: 3;
}

body.rotitoo-shop-cols-4 {
	--rotitoo-shop-cols: 4;
}

body.rotitoo-shop-density-compact .rotitoo-shop ul.products.rotitoo-shop__grid {
	--rotitoo-shop-cols: 5;
}

@media (max-width: 1024px) {
	body.rotitoo-shop-density-compact .rotitoo-shop ul.products.rotitoo-shop__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	body.rotitoo-shop-density-compact .rotitoo-shop ul.products.rotitoo-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}
}

.rotitoo-shop ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
}

/* ─── Product cards (homepage.css + rotitoo-home-catalog on shop shell) ─ */
.rotitoo-shop.rotitoo-home-catalog ul.products.rotitoo-shop__grid {
	gap: clamp(12px, 2vw, 18px);
	align-items: stretch;
}

.rotitoo-shop.rotitoo-home-catalog .rotitoo-var-swatches {
	position: relative;
	z-index: 4;
	pointer-events: auto;
	justify-content: center;
	overflow-x: visible;
	flex-wrap: nowrap;
}

.rotitoo-shop.rotitoo-home-catalog .rotitoo-var-more-wrap {
	flex: 0 0 auto;
}

/* Picker is teleported to body — scope via body class, not .rotitoo-shop ancestor */
body.rotitoo-shop-modern .rotitoo-var-picker {
	z-index: 9999;
	max-width: calc(100vw - 16px);
	padding: 0;
	border: 1px solid rgba(210, 185, 168, 0.55);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(30, 24, 20, 0.12), 0 24px 48px rgba(30, 24, 20, 0.1);
	overflow: hidden;
}

body.rotitoo-shop-modern .rotitoo-var-picker.is-open {
	animation: rotitoo-var-picker-in 0.18s ease;
}

@media (max-width: 768px) {
	body.rotitoo-shop-modern .rotitoo-var-more-btn {
		min-width: 44px;
		min-height: 44px;
		width: 44px;
		height: 44px;
	}

	body.rotitoo-shop-modern .rotitoo-var-picker.is-open {
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		top: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		border-radius: 16px 16px 0 0;
	}

	body.rotitoo-shop-modern .rotitoo-var-picker__grid {
		max-height: min(60vh, 360px);
		-webkit-overflow-scrolling: touch;
	}
}

/* Hide default WC loop link overlays */
.rotitoo-shop ul.products li.product > a:not(.rotitoo-product-card__title):not(.rotitoo-var-more) {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.rotitoo-shop ul.products li.product::before,
.rotitoo-shop ul.products li.product::after,
.rotitoo-shop ul.products li.product a::before,
.rotitoo-shop ul.products li.product a::after {
	content: none !important;
	display: none !important;
}

/* Infinite scroll load more */
.rotitoo-shop__load-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 28px 0 8px;
	padding: 0 12px;
}

.rotitoo-shop__load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	min-height: 44px;
	padding: 0 24px;
	border: 1px solid rgba(30, 24, 20, 0.14);
	border-radius: 999px;
	background: #fff;
	color: var(--rotitoo-shop-ink);
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
	box-shadow: var(--rotitoo-shop-shadow);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.rotitoo-shop__load-more:hover:not(:disabled) {
	border-color: var(--rotitoo-shop-accent);
	color: var(--rotitoo-shop-accent);
}

.rotitoo-shop__load-more:disabled {
	opacity: 0.6;
	cursor: wait;
}

.rotitoo-shop__load-more[hidden],
.rotitoo-shop__load-status[hidden] {
	display: none !important;
}

.rotitoo-shop__load-status {
	font-size: 0.8125rem;
	color: var(--rotitoo-shop-muted);
}

.rotitoo-shop__sentinel {
	width: 100%;
	height: 1px;
	pointer-events: none;
}

/* Pagination — hidden; infinite scroll replaces numbered pages */
.rotitoo-shop .woocommerce-pagination {
	display: none !important;
}
