/**
 * Ron Elements widget styling. Reuses the WooLab theme's CSS custom
 * properties (--ron-color-primary etc.) when the theme is active, with
 * safe fallbacks so widgets still look reasonable on any other theme.
 */

.ron-widget-heading {
	margin-bottom: 24px;
	text-align: center;
}

.ron-widget-heading h2 {
	margin: 0 0 4px;
}

/* Product card (shared by carousel/grid/tabs/onsale widgets) */

.ron-product-card {
	border: 1px solid #eee;
	border-radius: var(--ron-border-radius, 6px);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.ron-product-card:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.ron-product-card-thumb {
	display: block;
	position: relative;
}

/* Round F ("product card images need to show full") — this used to force
   every product-card image into a 1:1 square crop (`aspect-ratio: 1/1` +
   `object-fit: cover`) regardless of the source photo's own shape, on top
   of the theme's own `ron-card` image size ALSO hard-cropping at upload
   time — two independent crops stacking, which could chop a landscape or
   portrait photo in two different directions (reported on the homepage
   "New In"/"On Sale" cards). The store is standardizing on a consistent
   image ratio for product photos going forward, so this now shows the
   image at its own full, uncropped size (matching the same `width:100%;
   height:auto;` pattern the standard shop-grid card already uses in
   ron-woocommerce.css, which never had this cropping problem). */
.ron-product-card-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.ron-product-card-thumb .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--ron-color-link-hover, #2B3990);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
}

.ron-product-card-body {
	padding: 16px;
}

.ron-product-card-title {
	font-size: 1em;
	margin: 6px 0;
}

.ron-product-card-title a {
	color: inherit;
	text-decoration: none;
}

.ron-product-card-price {
	color: var(--ron-color-primary, #E00F7A);
	font-weight: 700;
	margin-bottom: 10px;
}

.ron-product-card-price del {
	color: #999;
	font-weight: 400;
	margin-right: 6px;
}

/* Carousel chrome */

.ron-carousel {
	position: relative;
	overflow: hidden;
}

.ron-carousel-track {
	display: flex;
}

.ron-carousel-slide {
	flex: 0 0 auto;
}

.ron-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e2e2e2;
	background: #fff;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.ron-carousel-arrow--prev { left: -8px; }
.ron-carousel-arrow--next { right: -8px; }

.ron-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 16px;
}

.ron-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ddd;
	border: none;
	cursor: pointer;
	padding: 0;
}

.ron-carousel-dot.is-active {
	background: var(--ron-color-primary, #E00F7A);
}

/* Stacked transition effects (fade / zoom / slide-up) — opt-in via the
   `effect` key in a widget's data-ron-carousel config. Only the Image
   Slider widget currently sends anything but the default "slide", so
   none of this touches Products Carousel, Brands Carousel, Onsale
   Products, or Product Tabs — they never get the `--stacked` classes
   below and keep the original flex/translateX behaviour untouched.

   Stacking uses CSS Grid rather than `position: absolute`: every slide
   is placed in the same cell (`grid-area: 1 / 1`), so they overlap for
   the crossfade/zoom/slide-up effects, but — unlike absolute
   positioning — a grid item is still part of normal layout flow and
   contributes to the grid track's size, so the track (and the carousel
   around it) sizes itself to the tallest slide automatically instead of
   collapsing to zero height. */
.ron-carousel-track.ron-carousel-track--stacked {
	display: grid;
}

.ron-carousel-slide.ron-carousel-slide--stacked {
	grid-area: 1 / 1;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
	transition-property: opacity, visibility, transform;
	transition-timing-function: ease;
	/* transition-duration is set inline per-slide by RonCarousel.init()
	   from the widget's "Transition Speed" control. */
}

.ron-carousel-slide.ron-carousel-slide--stacked.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

/* "fade" needs nothing further — opacity/visibility above is the whole
   effect. "zoom" and "slide-up" add a transform that resolves to none
   once a slide becomes active, on the same transition. */
.ron-carousel-effect-zoom .ron-carousel-slide--stacked {
	transform: scale(1.08);
}

.ron-carousel-effect-zoom .ron-carousel-slide--stacked.is-active {
	transform: scale(1);
}

.ron-carousel-effect-slide-up .ron-carousel-slide--stacked {
	transform: translateY(28px);
}

.ron-carousel-effect-slide-up .ron-carousel-slide--stacked.is-active {
	transform: translateY(0);
}

/* Brands carousel */

.ron-brand-logo-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
}

.ron-brand-logo-slide img {
	max-height: 60px;
	width: auto;
	filter: grayscale(0);
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.ron-widget-brands-carousel.ron-brands-grayscale .ron-brand-logo-slide img {
	filter: grayscale(1);
	opacity: 0.6;
}

.ron-widget-brands-carousel.ron-brands-grayscale .ron-brand-logo-slide:hover img {
	filter: grayscale(0);
	opacity: 1;
}

.ron-brand-name-fallback {
	font-weight: 600;
	color: #999;
}

/* Image Slider (general-purpose hero/banner slider — see
   class-ron-widget-image-slider.php). Reuses .ron-carousel/-track/-slide
   from RonCarousel above, so slide widths/transitions/touch-swipe come
   free; everything below is purely the full-bleed "hero" look. */

.ron-widget-image-slider .ron-carousel-track {
	width: 100%;
}

.ron-hero-slide {
	position: relative;
	width: 100%;
	min-height: 480px;
	display: flex;
	background-size: cover;
	background-position: center;
	background-color: #1d2140;
	overflow: hidden;
}

/* Auto height mode (the widget's default — see the "Slide Height"
   control): no fixed box, no `background-image`/`cover` crop at all.
   The slide's own `<img>` (added to the markup only in this mode) is a
   plain block image at `width: 100%; height: auto`, so it always shows
   completely, at its own natural aspect ratio, at whatever width the
   column gives it — the same guarantee a normal `<img>` gives outside
   any slider. The overlay and text content, which used to rely on the
   parent's `display: flex` + `margin: auto 0` to center vertically
   inside a fixed-height box, are repositioned to `inset: 0` here instead
   so they still overlay the image edge-to-edge even though the box's
   height now comes from the image rather than a set number. */
.ron-hero-slide--auto {
	display: block;
	min-height: 0;
	background-image: none !important;
}

.ron-hero-slide--auto .ron-hero-slide-image {
	display: block;
	width: 100%;
	height: auto;
}

.ron-hero-slide--auto .ron-hero-slide-overlay,
.ron-hero-slide--auto .ron-hero-slide-content {
	position: absolute;
	inset: 0;
}

.ron-hero-slide--auto .ron-hero-slide-content {
	margin: 0;
	justify-content: center;
}

.ron-hero-slide-overlay {
	position: absolute;
	inset: 0;
	background-color: #14142B;
	opacity: 0.35;
	pointer-events: none;
}

.ron-hero-slide-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 640px;
	margin: auto 0;
	padding: 48px min(8%, 64px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: #fff;
	animation: ron-hero-content-in 0.5s ease both;
}

@keyframes ron-hero-content-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ron-hero-align-left   { margin-right: auto; text-align: left; align-items: flex-start; }
.ron-hero-align-center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.ron-hero-align-right  { margin-left: auto; text-align: right; align-items: flex-end; }

.ron-hero-slide-heading {
	margin: 0;
	font-size: clamp(1.5em, 3.5vw, 2.5em);
	line-height: 1.15;
	color: #fff;
}

.ron-hero-slide-text {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	max-width: 46ch;
}

.ron-hero-slide-button {
	align-self: inherit;
	margin-top: 6px;
}

/* This slider's own arrows/dots sit inset over the image (unlike the
   card-strip carousels above, whose arrows spill slightly outside a
   narrower widget so they don't need to avoid covering slide content). */
.ron-widget-image-slider .ron-carousel-arrow--prev { left: 20px; }
.ron-widget-image-slider .ron-carousel-arrow--next { right: 20px; }

.ron-widget-image-slider .ron-carousel-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	z-index: 2;
	margin-top: 0;
}

.ron-widget-image-slider .ron-carousel-dot {
	background: rgba(255, 255, 255, 0.5);
}

.ron-widget-image-slider .ron-carousel-dot.is-active {
	background: #fff;
}

@media (max-width: 600px) {
	.ron-hero-slide-content {
		padding: 32px 24px;
		max-width: none;
	}

	/* Auto-height slides (see .ron-hero-slide--auto above) can render
	   very short on a narrow phone viewport — a wide banner image keeps
	   its own aspect ratio when scaled down, so its shorter side shrinks
	   too, sometimes to well under what the overlaid caption's own text
	   needs to fit inside `inset: 0`. `.ron-hero-slide`'s own
	   `overflow: hidden` (needed elsewhere to contain Fixed-mode's
	   background-cover crop) then clips whatever doesn't fit. Reported
	   directly: "slider caption not showing fully into mobile screen".
	   Rather than forcing a minimum height on the slide — which would
	   leave dead space under a short image and undercut the very
	   "no cropping, natural size" promise Auto mode exists for (see the
	   long comment on .ron-hero-slide--auto above, from the fix for
	   "images are not showing max-width 100% and height auto, its cut
	   my images") — the caption drops out of the overlay at this
	   breakpoint and becomes a normal block below the image instead:
	   guaranteed as much height as its text needs, at the cost of no
	   longer sitting over the photo on this one breakpoint. Desktop and
	   tablet keep the overlay look untouched; Fixed-height mode (a real,
	   deliberately-sized box) is unaffected either way. */
	.ron-hero-slide--auto .ron-hero-slide-overlay {
		display: none;
	}

	.ron-hero-slide--auto .ron-hero-slide-content {
		position: static;
		inset: auto;
		background: var(--ron-color-secondary, #14142B);
	}
}

/* Product grid + mosaic layouts */

.ron-product-grid {
	display: grid;
	grid-template-columns: repeat(var(--ron-grid-columns, 4), 1fr);
	gap: 24px;
}

.ron-product-grid--2-1-2 {
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
}

.ron-product-grid--2-1-2 .ron-grid-slot-hero {
	grid-row: span 2;
}

.ron-product-grid--6-1 {
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 1fr);
}

.ron-product-grid--6-1 .ron-grid-slot-hero {
	grid-column: span 2;
	grid-row: span 2;
}

.ron-grid-slot .ron-product-card,
.ron-grid-slot-hero .ron-product-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ron-grid-slot-hero .ron-product-card-thumb img {
	aspect-ratio: auto;
	height: 100%;
}

@media (max-width: 900px) {
	.ron-product-grid,
	.ron-product-grid--2-1-2,
	.ron-product-grid--6-1 {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: none;
	}
	.ron-product-grid--2-1-2 .ron-grid-slot-hero,
	.ron-product-grid--6-1 .ron-grid-slot-hero {
		grid-column: span 2;
		grid-row: auto;
	}
}
@media (max-width: 560px) {
	.ron-product-grid,
	.ron-product-grid--2-1-2,
	.ron-product-grid--6-1 {
		grid-template-columns: 1fr;
	}
	.ron-product-grid--2-1-2 .ron-grid-slot-hero,
	.ron-product-grid--6-1 .ron-grid-slot-hero {
		grid-column: span 1;
	}
}

/* Category list/grid */

.ron-category-grid {
	display: grid;
	grid-template-columns: repeat(var(--ron-grid-columns, 4), 1fr);
	gap: 20px;
}

/* Missing entirely before this fix — unlike its sibling .ron-product-grid
   just above (which has had these same two breakpoints all along), this
   widget stayed at its full configured column count (e.g. 4) at every
   width, including mobile. Reported directly: "Shop by category that
   comes from 'Product category list' widget, did not responsive showing
   4 column that i set, its need to show 1 column for responsive mobile
   screen." Same breakpoints as .ron-product-grid for consistency. */
@media (max-width: 900px) {
	.ron-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 560px) {
	.ron-category-grid {
		grid-template-columns: 1fr;
	}
}

.ron-category-card {
	display: block;
	text-align: center;
	text-decoration: none;
	color: inherit;
}

.ron-category-image {
	display: block;
	border-radius: var(--ron-border-radius, 6px);
	overflow: hidden;
	margin-bottom: 10px;
}

.ron-category-image img {
	max-width: 100%;
	height: auto;
}

.ron-category-name {
	display: block;
	font-weight: 600;
}

.ron-category-count {
	display: block;
	font-size: 0.85em;
	color: #888;
}

.ron-category-list li {
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
}

/* Feature / icon block */

.ron-feature-block {
	display: grid;
	grid-template-columns: repeat(var(--ron-grid-columns, 4), 1fr);
	gap: 20px;
}

.ron-feature-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
}

.ron-feature-block--boxed .ron-feature-item {
	padding: 20px;
	border: 1px solid #eee;
	border-radius: var(--ron-border-radius, 6px);
}

.ron-feature-icon {
	font-size: 28px;
	color: var(--ron-color-primary, #E00F7A);
	flex: 0 0 auto;
}

/* Elementor's Icons control can render an icon as an inline <svg> (when
   "SVG" is the icon library's render method) instead of a webfont <i>.
   An inline <svg> with only a viewBox and no explicit width/height —
   exactly what Icons_Manager::render_icon() outputs — has no guaranteed
   rendered size in every browser unless something gives it one; Elementor
   normally does this itself via CSS scoped to ITS OWN icon-widget wrapper
   classes, which this plugin's own .ron-feature-icon wrapper doesn't
   match, so the icon could take up zero visible space even though the
   markup is correct. Sizing any svg inside our own wrapper to 1em (so it
   scales with the wrapper's font-size) and filling it with currentColor
   (so it inherits the wrapper's color instead of defaulting to black or
   transparent) fixes this regardless of which Elementor version/icon
   library produced the markup — no dependency on Elementor's own CSS
   classes or internals at all. */
.ron-feature-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ron-feature-title {
	display: block;
	margin-bottom: 4px;
}

.ron-feature-text {
	display: block;
	color: #777;
	font-size: 0.9em;
}

@media (max-width: 900px) { .ron-feature-block { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ron-feature-block { grid-template-columns: 1fr; } }

/* Ad block */

.ron-ad-block {
	position: relative;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	border-radius: var(--ron-border-radius, 6px);
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	padding: 40px;
}

.ron-ad-block--center { justify-content: center; text-align: center; }
.ron-ad-block--right { justify-content: flex-end; text-align: right; }

/* The whole block is one <a>, so without this it also picks up the
   sitewide `a:hover, a:focus { color: var(--ron-color-link-hover); }` rule
   (ron-base.css), which cascades to every un-colored descendant — eyebrow,
   heading, text — recoloring the entire block on hover instead of just the
   button. Pinning color here keeps that generic rule from reaching in,
   while `.ron-ad-block-button` (via `.ron-btn`, and now its own Style tab
   hover controls) keeps its own distinct hover treatment. */
.ron-ad-block:hover,
.ron-ad-block:focus {
	color: #fff;
}

.ron-ad-block-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
}

.ron-ad-block--center .ron-ad-block-overlay,
.ron-ad-block--right .ron-ad-block-overlay {
	background: rgba(0, 0, 0, 0.4);
}

.ron-ad-block-content {
	position: relative;
	z-index: 1;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ron-ad-block-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8em;
	opacity: 0.85;
}

.ron-ad-block-heading {
	font-size: 1.8em;
	font-weight: 700;
	font-family: var(--ron-font-heading, inherit);
}

.ron-ad-block-button {
	align-self: flex-start;
	margin-top: 10px;
}

.ron-ad-block--center .ron-ad-block-button { align-self: center; }
.ron-ad-block--right .ron-ad-block-button { align-self: flex-end; }

/* Team member */

.ron-team-grid {
	display: grid;
	grid-template-columns: repeat(var(--ron-grid-columns, 3), 1fr);
	gap: 32px;
}

@media (max-width: 900px) { .ron-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ron-team-grid { grid-template-columns: 1fr; } }

.ron-team-member {
	text-align: center;
}

.ron-team-photo img {
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto 16px;
}

.ron-team-name { margin: 0 0 2px; }

.ron-team-role {
	color: var(--ron-color-primary, #E00F7A);
	font-size: 0.9em;
	margin-bottom: 10px;
}

.ron-team-bio {
	color: #777;
	font-size: 0.9em;
}

.ron-team-social {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 12px;
}

.ron-team-social a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f2f2f2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

/* Same fix as .ron-feature-icon svg above — an Elementor SVG-mode icon
   has no guaranteed rendered size without this. */
.ron-team-social a svg {
	width: 1em;
	height: 1em;
	font-size: 16px;
	fill: currentColor;
}

/* Deal / countdown block */

.ron-deal-block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: center;
	border: 1px solid #eee;
	border-radius: var(--ron-border-radius, 6px);
	padding: 24px;
}

@media (max-width: 700px) {
	.ron-deal-block { grid-template-columns: 1fr; }
}

.ron-deal-block-media img {
	width: 100%;
	border-radius: var(--ron-border-radius, 6px);
	display: block;
}

.ron-deal-block-info h3 {
	margin: 0 0 10px;
}

.ron-countdown {
	display: flex;
	gap: 14px;
	margin-top: 16px;
}

.ron-countdown-unit {
	text-align: center;
	background: #f6f6f6;
	border-radius: var(--ron-border-radius, 6px);
	padding: 10px 14px;
	min-width: 56px;
}

.ron-countdown-unit span {
	display: block;
	font-size: 1.4em;
	font-weight: 700;
}

.ron-countdown-unit small {
	color: #888;
	font-size: 0.7em;
	text-transform: uppercase;
}

.ron-countdown-expired {
	font-weight: 600;
	color: var(--ron-color-link-hover, #2B3990);
}

/* Product tabs — pill-shaped filter bar (active = filled brand pill,
   inactive = white/outlined pill), matching the CodelabIT category-filter
   reference sample. */

.ron-tabs-nav {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 24px;
	border-bottom: none;
}

.ron-tab-trigger {
	background: #fff;
	border: 2px solid #e2e2e2;
	border-radius: var(--ron-radius-pill, 999px);
	padding: 9px 22px;
	cursor: pointer;
	font-weight: 600;
	color: #555;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ron-tab-trigger:hover {
	border-color: var(--ron-color-primary, #E00F7A);
	color: var(--ron-color-primary, #E00F7A);
}

.ron-tab-trigger.is-active {
	background: var(--ron-color-primary, #E00F7A);
	border-color: var(--ron-color-primary, #E00F7A);
	color: #fff;
}

.ron-tab-panel {
	display: none;
}

.ron-tab-panel.is-active {
	display: block;
}

/* Category Vertical Menu (class-ron-widget-category-menu.php) — a
   standalone, place-anywhere vertical category list with an optional
   per-category "mega menu" flyout. Interaction pattern deliberately
   mirrors the theme's own primary-nav mega menu: hover opens the flyout
   on desktop (pure CSS, no JS needed there), and a touch device instead
   gets a first-tap-opens/second-tap-follows toggle via
   `.ron-cat-menu-open` (see initCategoryMenu() in
   ron-elements-widgets.js) — same division of labor as
   `.ron-has-megamenu:hover` + `initTouchDropdowns()` in the theme's own
   ron-megamenu.css / ron-theme.js, so anyone maintaining one recognizes
   the other. */
.ron-widget-category-menu {
	--ron-cat-menu-radius: var(--ron-border-radius, 8px);
	position: relative;
}

/* IMPORTANT — no `overflow: hidden` here (deliberately removed): the
   flyout panel below is an absolutely-positioned descendant of this list
   (`left: 100%` of its `<li>`, escaping the list's own box to sit beside
   it). `overflow: hidden` on an ancestor clips ANY descendant's painted
   content that overflows its box — including absolutely-positioned
   children — regardless of the descendant's own containing block. With
   it set, the flyout's computed styles all read as fully visible
   (opacity:1, visibility:visible, a real non-zero bounding rect) yet
   nothing actually paints on screen, because the list silently clips it.
   The rounded "card" look this used to achieve for free is instead done
   explicitly below, only on the first/last row's own link (so a hover
   background can't square off past the list's rounded corners) — list
   style reset and this radius are otherwise unaffected. */
.ron-cat-menu-list {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: var(--ron-cat-menu-radius);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ron-cat-menu-item {
	position: relative;
	border-bottom: 1px solid #f2f2f2;
}

.ron-cat-menu-item:last-child {
	border-bottom: none;
}

/* Optional title bar (the widget's "Title" control, above) — sits as its
   own bar directly above the category list, sharing the same card look
   (border, background) so the two read as one connected block. When a
   title is present the LIST's own first-row rounding is switched off
   (`.ron-cat-menu-list--has-title` below) so only the title bar itself
   has the rounded top corners — otherwise the first category row's own
   `:first-child` rounding (further below) would still apply underneath
   the title bar and never actually show. */
/* A real <button> (see class-ron-widget-category-menu.php) so it can
   double as the mobile collapse/expand toggle — reset to look exactly
   like the plain bar this used to be (a <div>) on every width, since the
   collapse behavior itself is mobile-only (further below). */
.ron-cat-menu-title-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: #fff;
	border: 1px solid #ececec;
	border-bottom: none;
	border-radius: var(--ron-cat-menu-radius) var(--ron-cat-menu-radius) 0 0;
	padding: 13px 16px;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

/* Blank-title fallback bar (class-ron-widget-category-menu.php renders
   this whenever the widget's own "Title" field is empty) — hidden on
   desktop, matching that control's "leave blank for no title"
   description; it only exists to give the mobile collapse feature
   something to tap when there's no real title bar already doing that
   job (see the `@media (max-width: 782px)` rules below). */
.ron-cat-menu-title-bar--auto {
	display: none;
}

.ron-cat-menu-title-text {
	display: block;
	font-weight: 700;
	font-size: 1.05em;
	color: var(--ron-color-secondary, #222);
}

/* Collapse/expand indicator — hidden on desktop (the title bar isn't a
   collapse toggle there, just a heading), shown and rotated by the
   `@media (max-width: 782px)` rules below. */
.ron-cat-menu-toggle-arrow {
	display: none;
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--ron-color-secondary, #222);
	border-bottom: 2px solid var(--ron-color-secondary, #222);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.ron-cat-menu-list--has-title {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.ron-cat-menu-list--has-title .ron-cat-menu-item:first-child .ron-cat-menu-link {
	border-radius: 0;
}

.ron-cat-menu-item:first-child .ron-cat-menu-link {
	border-radius: var(--ron-cat-menu-radius) var(--ron-cat-menu-radius) 0 0;
}

.ron-cat-menu-item:last-child .ron-cat-menu-link {
	border-radius: 0 0 var(--ron-cat-menu-radius) var(--ron-cat-menu-radius);
}

.ron-cat-menu-item:only-child .ron-cat-menu-link {
	border-radius: var(--ron-cat-menu-radius);
}

.ron-cat-menu-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	color: var(--ron-color-secondary, #222);
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ron-cat-menu-link--all {
	font-weight: 700;
}

.ron-cat-menu-icon,
.ron-cat-menu-flyout-item-icon {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.ron-cat-menu-icon img,
.ron-cat-menu-flyout-item-icon img {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	object-fit: cover;
	display: block;
}

.ron-cat-menu-flyout-item-icon img {
	width: 36px;
	height: 36px;
}

.ron-cat-menu-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ron-cat-menu-count {
	flex: 0 0 auto;
	font-size: 0.8em;
	color: #999;
	background: #f2f2f2;
	border-radius: 999px;
	padding: 1px 8px;
}

.ron-cat-menu-arrow {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-right: 2px solid #bbb;
	border-bottom: 2px solid #bbb;
	transform: rotate(-45deg);
	transition: border-color 0.15s ease;
}

.ron-cat-menu-link:hover,
.ron-cat-menu-item.ron-cat-menu-open > .ron-cat-menu-link {
	background: #faf5f8;
	color: var(--ron-color-primary, #E00F7A);
}

.ron-cat-menu-link:hover .ron-cat-menu-arrow,
.ron-cat-menu-item.ron-cat-menu-open > .ron-cat-menu-link .ron-cat-menu-arrow {
	border-color: var(--ron-color-primary, #E00F7A);
}

/* Flyout panel — hidden via opacity/visibility (not display:none) so it
   can transition smoothly, and so `.ron-cat-menu-open` on the parent
   `<li>` (the touch-device fallback) shows it exactly the same way a
   hover does. `position: absolute` relative to the `<li>` (below), not
   the whole list, so each flyout's vertical position lines up with the
   row that opened it. */
.ron-cat-menu-item {
	position: relative;
}

.ron-cat-menu-flyout {
	position: absolute;
	top: 0;
	left: 100%;
	margin-left: 10px;
	min-width: 280px;
	max-width: 640px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: var(--ron-cat-menu-radius);
	box-shadow: var(--ron-shadow-md, 0 14px 30px rgba(20, 20, 43, 0.14));
	padding: 18px;
	z-index: 50;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	pointer-events: none;
}

.ron-cat-menu-direction-left .ron-cat-menu-flyout {
	left: auto;
	right: 100%;
	margin-left: 0;
	margin-right: 10px;
	transform: translateX(6px);
}

.ron-cat-menu-item.ron-has-flyout:hover > .ron-cat-menu-flyout,
.ron-cat-menu-item.ron-cat-menu-open > .ron-cat-menu-flyout {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	pointer-events: auto;
}

.ron-cat-menu-flyout-inner {
	display: flex;
	gap: 28px;
}

.ron-cat-menu-flyout-col {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 160px;
}

.ron-cat-menu-flyout-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px;
	border-radius: 6px;
	color: var(--ron-color-secondary, #222);
	text-decoration: none;
}

.ron-cat-menu-flyout-item:hover {
	background: #faf5f8;
	color: var(--ron-color-primary, #E00F7A);
}

.ron-cat-menu-flyout-viewall {
	display: inline-block;
	margin-top: 14px;
	font-size: 0.85em;
	font-weight: 700;
	color: var(--ron-color-primary, #E00F7A);
	text-decoration: none;
}

/* Below a typical mobile breakpoint an absolutely-positioned side panel
   has nowhere good to go — this widget can be placed in any narrow
   column, so there's no reliable viewport-edge detection possible in
   pure CSS. Degrade to an inline accordion instead (same mechanics as
   WooLab's own sidebar Categories widget: max-height reveal directly
   below the row, no side panel). */
@media (max-width: 782px) {
	.ron-cat-menu-flyout {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: none;
		max-height: 0;
		overflow: hidden;
		margin: 0;
		border: none;
		box-shadow: none;
		padding: 0;
		transition: max-height 0.25s ease;
	}

	.ron-cat-menu-item.ron-has-flyout:hover > .ron-cat-menu-flyout,
	.ron-cat-menu-item.ron-cat-menu-open > .ron-cat-menu-flyout {
		max-height: 1200px;
		pointer-events: auto;
		padding: 10px 16px 14px;
	}

	.ron-cat-menu-flyout-inner {
		flex-direction: column;
		gap: 4px;
	}

	/* Whole-widget collapse — "Category vertical menu will be
	   collapsible for mobile screen, it showing long if we open it".
	   Collapsed by default on mobile (max-height: 0); tapping the title
	   bar (real or the auto "Categories" fallback — both are <button>s,
	   see class-ron-widget-category-menu.php) toggles
	   `.ron-cat-menu-open-mobile` on the widget via
	   initCategoryMenuCollapse() in ron-elements-widgets.js. A large
	   fixed max-height (rather than `none`) keeps this a transitionable
	   property — same technique already used above for each row's own
	   flyout — generous enough that a long expanded list with an open
	   flyout of its own never gets clipped. */
	.ron-cat-menu-title-bar {
		cursor: pointer;
	}

	.ron-cat-menu-toggle-arrow {
		display: block;
	}

	.ron-widget-category-menu.ron-cat-menu-open-mobile .ron-cat-menu-toggle-arrow {
		transform: rotate(-135deg);
	}

	.ron-cat-menu-title-bar--auto {
		display: flex;
	}

	.ron-cat-menu-title-bar--auto + .ron-cat-menu-list {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
	}

	.ron-cat-menu-list {
		max-height: 0;
		overflow: hidden;
		border-top: none;
		transition: max-height 0.3s ease;
	}

	.ron-widget-category-menu.ron-cat-menu-open-mobile .ron-cat-menu-list {
		max-height: 4000px;
		border-top: 1px solid #ececec;
	}
}

/* Video Channel widget (class-ron-widget-video-channel.php) — "need to add
   a Elementor widget for show videos, we just give channel url/link".
   Column/breakpoint pattern deliberately mirrors .ron-product-grid /
   .ron-category-grid above (--ron-grid-columns custom property for the
   desktop column count, same two hardcoded breakpoints for tablet/mobile)
   for visual consistency across every Ron Elements grid widget. */

.ron-widget-video-channel .ron-widget-title {
	margin: 0 0 16px;
	font-family: var(--ron-font-heading, inherit);
	font-size: 1.3em;
}

.ron-video-grid {
	display: grid;
	grid-template-columns: repeat(var(--ron-grid-columns, 3), 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.ron-video-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.ron-video-grid {
		grid-template-columns: 1fr;
	}
}

.ron-video-card {
	border: 1px solid #eee;
	border-radius: var(--ron-border-radius, 6px);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.ron-video-card:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* 16:9 box via the padding-top percentage trick rather than the CSS
   `aspect-ratio` property — keeps this widget's markup safe on an older
   browser too, since aspect-ratio support isn't guaranteed on every visitor
   the way it would be for an admin-only editor surface. */
.ron-video-thumb {
	position: relative;
	display: block;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
	cursor: pointer;
	overflow: hidden;
}

.ron-video-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ron-video-thumb iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ron-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(224, 15, 122, 0.92);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
	padding: 0;
}

.ron-video-thumb:hover .ron-video-play {
	transform: translate(-50%, -50%) scale(1.08);
	background: var(--ron-color-primary, #E00F7A);
}

.ron-video-play svg {
	width: 22px;
	height: 22px;
	fill: #fff;
	margin-left: 3px; /* optically center the play triangle inside the circle */
}

.ron-video-thumb.ron-video-playing .ron-video-play {
	display: none;
}

.ron-video-body {
	padding: 14px 16px;
}

.ron-video-title {
	margin: 0 0 6px;
	font-size: 1em;
	line-height: 1.35;
}

.ron-video-title a {
	color: inherit;
	text-decoration: none;
}

.ron-video-title a:hover {
	color: var(--ron-color-primary, #E00F7A);
}

.ron-video-date {
	display: block;
	font-size: 0.82em;
	color: #888;
	margin-bottom: 6px;
}

.ron-video-desc {
	margin: 0;
	font-size: 0.88em;
	color: #666;
	line-height: 1.5;
}
