/**
 * ReBit Experience 2026
 * Unified premium layer: industrial precision, retail clarity and accessible motion.
 */

:root {
	--color-background: #eef3f5;
	--color-surface: #ffffff;
	--color-surface-alt: #e7eef1;
	--color-primary: #007c95;
	--color-primary-hover: #005d73;
	--color-text: #071a22;
	--color-text-muted: #52656d;
	--color-outline: #cbd8dc;
	--color-error: #c23b3b;
	--color-price: #007c95;
	--rebit-ink: #06171e;
	--rebit-ink-2: #0a242d;
	--rebit-cyan: #19d3e6;
	--rebit-lime: #bfeef3;
	--rebit-warm: #ffb86b;
	--rebit-line: rgba(7, 26, 34, .14);
	--rebit-shadow-sm: 0 8px 22px rgba(5, 28, 37, .08);
	--rebit-shadow: 0 22px 60px rgba(5, 28, 37, .13);
	--radius-sm: .25rem;
	--radius-default: .375rem;
	--radius-md: .5rem;
	--radius-lg: .625rem;
	--radius-xl: .75rem;
	--max-width: 1360px;
	--font-primary: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
body {
	background:
		linear-gradient(rgba(7, 26, 34, .025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(7, 26, 34, .025) 1px, transparent 1px),
		var(--color-background);
	background-size: 32px 32px;
	color: var(--color-text);
}
body::selection { background: var(--rebit-cyan); color: var(--rebit-ink); }
:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid color-mix(in srgb, var(--rebit-cyan) 75%, white);
	outline-offset: 3px;
}

.rebit-container,
.rebit-header-container { max-width: var(--max-width); }

.rebit-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 700 11px/1 var(--font-mono);
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--color-primary);
}
.rebit-kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; }

/* Signal bar + navigation */
.rebit-module-header {
	background: rgba(255, 255, 255, .91);
	backdrop-filter: blur(18px) saturate(1.3);
	-webkit-backdrop-filter: blur(18px) saturate(1.3);
	border-bottom: 0;
	box-shadow: 0 1px 0 rgba(7, 26, 34, .12);
	position: relative;
	z-index: 1000;
}
.rebit-module-header.is-sticky { box-shadow: 0 14px 42px rgba(4, 24, 32, .14); }
.rebit-signal-bar { background: var(--rebit-ink); color: #d9e7eb; }
.rebit-signal-bar .rebit-header-container {
	min-height: 34px;
	padding-top: 5px;
	padding-bottom: 5px;
	font: 600 10px/1.3 var(--font-mono);
	letter-spacing: .045em;
	text-transform: uppercase;
}
.rebit-signal-bar span { display: inline-flex; align-items: center; gap: 8px; }
.rebit-signal-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--rebit-cyan); box-shadow: 0 0 0 4px rgba(25,211,230,.12); }
.rebit-signal-bar a { color: var(--rebit-cyan); font-weight: 800; }
.rebit-header-top { border-bottom: 1px solid rgba(7, 26, 34, .08); }
.rebit-header-top .rebit-header-container { padding-top: 18px; padding-bottom: 18px; gap: 28px; }
.rebit-header-logo img { max-height: 44px; }
.rebit-primary-menu { gap: clamp(22px, 2.4vw, 36px); }
.rebit-primary-menu li a {
	display: inline-flex;
	padding: 10px 12px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .01em;
}
.rebit-primary-menu li a {
	padding: 14px 0 12px !important;
	border-radius: 0 !important;
	background: transparent !important;
}
.rebit-primary-menu li a::after {
	display: block;
	bottom: 5px;
	height: 2px;
	border-radius: 0;
}
.rebit-primary-menu li a:hover,
.rebit-primary-menu li.current-menu-item > a,
.rebit-primary-menu li.current_page_item > a { background: transparent !important; }
.rebit-search-form {
	min-width: 290px;
	background: #f2f6f7;
	border-color: transparent;
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px rgba(7,26,34,.08);
}
.rebit-search-form:focus-within { box-shadow: inset 0 0 0 2px var(--color-primary), 0 8px 24px rgba(0,124,149,.12); }
.rebit-icon-link {
	border-radius: 12px !important;
	background: var(--color-surface-alt) !important;
	transition: transform .2s var(--ease-out), background .2s ease !important;
}
.rebit-icon-link:hover { transform: translateY(-2px); background: #dce9ed !important; }
.rebit-header-bottom { background: rgba(255,255,255,.72); }
.rebit-fast-filters { gap: 8px; }
.rebit-fast-filters > li > a { font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.rebit-fast-filters > li:not(.has-dropdown):not(:last-child)::after {
	content: '·';
	margin-left: 8px;
	color: var(--color-text-muted);
	font: 700 12px/1 var(--font-mono);
	opacity: .55;
}

/* Editorial section rhythm */
.rebit-home-main { overflow: clip; }
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
	.rebit-home-main > .rebit-scroll-pending:not(:focus-within) {
		opacity: 0;
	}
	.rebit-home-main > .rebit-scroll-entered:not(:focus-within) {
		animation: rebit-scroll-enter 950ms cubic-bezier(.25, .55, .3, 1);
	}
	@keyframes rebit-scroll-enter {
		from { opacity: 0; transform: translateY(24px); }
		to { opacity: 1; transform: none; }
	}
}
.rebit-home-main > section,
.rebit-home-main > div { position: relative; }
.rebit-section-title {
	font-size: clamp(24px, 2.3vw, 32px) !important;
	font-weight: 800 !important;
	line-height: 1.12 !important;
	letter-spacing: -.045em !important;
	text-transform: none !important;
	color: var(--rebit-ink) !important;
}
.rebit-section-subtitle { max-width: 620px; margin-inline: auto; color: var(--color-text-muted); }

/* Legacy hero spacing; the current slider owns its layout. */
.rebit-module-hero { padding-top: 28px !important; padding-bottom: 30px !important; }
.rebit-hero-arrow { width: 48px !important; height: 48px !important; border: 1px solid rgba(7,26,34,.12) !important; }

/* Intent-led home navigation */
.rebit-shop-paths { padding-top: 28px; padding-bottom: 44px; }
.rebit-shop-paths-header {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
	gap: 36px;
	align-items: end;
	margin-bottom: 20px;
}
.rebit-shop-paths-header h2 { max-width: 650px; margin: 10px 0 0; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -.035em; }
.rebit-shop-paths-header p { color: var(--color-text-muted); font: 600 11px/1.7 var(--font-mono); }
.rebit-shop-paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rebit-shop-path {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: start;
	min-height: 112px;
	padding: 18px;
	border: 1px solid rgba(7,26,34,.1);
	border-radius: 18px;
	background: #fff;
	color: var(--rebit-ink);
	box-shadow: var(--rebit-shadow-sm);
	transition: transform .28s var(--ease-out), background .28s ease, color .28s ease;
}
.rebit-shop-path:hover { transform: translateY(-5px); background: var(--rebit-ink); color: #fff; }
.rebit-shop-path.path-reconditioned { background: #e4f5f7; border-color: transparent; }
.rebit-shop-path.path-reconditioned:hover { background: var(--rebit-ink); }
.path-index { font: 700 10px/1 var(--font-mono); color: var(--color-primary); }
.path-copy { display: flex; flex-direction: column; align-self: start; gap: 8px; }
.path-copy small { font: 700 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--color-primary); }
.path-copy strong { max-width: 280px; margin-top: 0; font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.path-copy em { margin-top: 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.45; font-style: normal; }
.rebit-shop-path:hover .path-copy em { color: #a9bbc1; }
.path-arrow { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font-size: 13px; }

/* Product cards */
.rebit-shared-product-card,
.rebit-product-card {
	background: rgba(255,255,255,.96) !important;
	border: 1px solid rgba(7,26,34,.1) !important;
	border-radius: 18px !important;
	box-shadow: 0 1px 0 rgba(255,255,255,.8), var(--rebit-shadow-sm) !important;
	overflow: hidden !important;
	transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out), border-color .2s ease !important;
}
@media (hover:hover) and (pointer:fine) {
	.rebit-shared-product-card:hover,
	.rebit-product-card:hover { transform: translateY(-7px) !important; box-shadow: var(--rebit-shadow) !important; border-color: rgba(0,124,149,.35) !important; }
}
.rebit-spc-image-wrapper,
.rebit-product-img-wrapper { background: linear-gradient(145deg, #f7fafb, #dfe9ec) !important; }
.rebit-spc-image-wrapper::after {
	content: none;
	position: absolute;
	inset: auto 12px 12px auto;
	width: 24px;
	height: 8px;
	border-right: 2px solid rgba(7,26,34,.18);
	border-bottom: 2px solid rgba(7,26,34,.18);
	pointer-events: none;
}
.rebit-spc-image-wrapper.is-image-missing,
.rebit-product-img-wrapper.is-image-missing { display: grid; place-items: center; background: linear-gradient(145deg, #edf4f5, #dbe7ea) !important; }
.rebit-spc-image-wrapper.is-image-missing img,
.rebit-product-img-wrapper.is-image-missing img { display: none !important; }
.rebit-spc-image-wrapper.is-image-missing::before,
.rebit-product-img-wrapper.is-image-missing::before {
	content: 'IMAGEN EN REVISIÓN';
	padding: 9px 12px;
	border: 1px solid rgba(7,26,34,.16);
	border-radius: 999px;
	color: var(--color-text-muted);
	font: 700 8px/1 var(--font-mono);
	letter-spacing: .12em;
}
.rebit-spc-image-wrapper img { object-fit: contain !important; padding: 7% !important; }
.rebit-spc-info { padding: 18px !important; }
.rebit-spc-title { font-size: 15px !important; font-weight: 700 !important; line-height: 1.35 !important; }
.rebit-spc-price { font-family: var(--font-mono); }
.rebit-spc-badge { border-radius: 999px !important; box-shadow: none !important; font: 700 9px/1 var(--font-mono) !important; letter-spacing: .08em; text-transform: uppercase; }
.rebit-spc-badge.sale { background: var(--rebit-ink) !important; }
.rebit-spc-badge.condition { background: #d7e5e8 !important; color: var(--rebit-ink) !important; }
.rebit-spc-btn { border-radius: 10px !important; }
.rebit-spc-btn.buy-now,
.rebit-btn-primary { background: var(--color-primary) !important; color: #fff !important; border: 1px solid var(--color-primary) !important; box-shadow: none !important; }
.rebit-spc-btn.buy-now:hover,
.rebit-btn-primary:hover { background: var(--color-primary) !important; border-color: var(--color-primary) !important; }
.rebit-spc-btn.add-cart { background: #d8f2f5 !important; color: #005f72 !important; border-color: #a8dce3 !important; }

/* Categories, promos, trust modules */
.rebit-category-banner { border-radius: 22px !important; box-shadow: var(--rebit-shadow-sm); }
.rebit-category-banner::after { background: linear-gradient(0deg, rgba(2,16,22,.88) 0%, rgba(2,16,22,.08) 78%) !important; }
.rebit-category-banner-content h2,
.rebit-category-banner-content h3 { letter-spacing: -.035em; }
.rebit-badges-section,
.rebit-module-badges { position: relative; }

/* Catalog */
.rebit-catalog-wrapper,
.rebit-shop-container { padding-top: 34px; padding-bottom: 72px; }
.rebit-catalog-page-wrapper { padding-top: 40px; padding-bottom: 80px; }
.rebit-catalog-header {
	display: grid !important;
	grid-template-columns: minmax(0,1fr) 330px;
	gap: 50px;
	align-items: end;
	margin: 0 0 30px !important;
	padding: 32px;
	border-radius: 22px;
	background: var(--rebit-ink);
	color: #fff;
}
.rebit-catalog-header .rebit-kicker { color: var(--rebit-cyan); }
.rebit-catalog-header .rebit-section-title { max-width: 760px; margin: 12px 0 !important; color: #fff !important; justify-content: flex-start !important; }
.rebit-catalog-header p { max-width: 760px; color: #a8bac0; font-size: 14px; line-height: 1.65; }
.rebit-catalog-help { display: grid; gap: 5px; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); }
.rebit-catalog-help > span { color: var(--rebit-cyan); font: 700 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.rebit-catalog-help strong { margin: 4px 0 10px; font-size: 14px; }
.rebit-catalog-help a { color: var(--rebit-cyan); font-size: 12px; font-weight: 800; }
.rebit-catalog-loop-header { padding: 10px 2px; }
.rebit-catalog-results-copy { display: grid; gap: 7px; }
.rebit-catalog-results-copy strong { font-size: 18px; }
.rebit-catalog-support-link { padding: 9px 12px; border: 1px solid var(--color-outline); border-radius: 10px; color: var(--color-text); font-size: 11px; font-weight: 700; }
.rebit-catalog-filter-horizontal-form {
	background: rgba(255,255,255,.88) !important;
	border: 1px solid rgba(7,26,34,.1) !important;
	border-radius: 18px !important;
	box-shadow: var(--rebit-shadow-sm) !important;
	backdrop-filter: blur(14px);
}
.rebit-filter-dropdown-btn,
.rebit-pill-span { border-radius: 10px !important; font-weight: 700 !important; }
.rebit-filter-dropdown-content { border: 1px solid rgba(7,26,34,.1) !important; border-radius: 15px !important; box-shadow: var(--rebit-shadow) !important; }
.rebit-catalog-pagination ul li a,
.rebit-catalog-pagination ul li span { border-radius: 10px !important; }

/* Product detail */
.rebit-single-product-wrapper { padding-top: 28px !important; padding-bottom: 48px !important; }
.rebit-single-product-layout { gap: clamp(24px, 3vw, 40px) !important; align-items: start; }
.rebit-main-image-wrapper {
	background: linear-gradient(145deg, #fff, #e5edef) !important;
	border: 1px solid rgba(7,26,34,.09) !important;
	border-radius: 24px !important;
	box-shadow: var(--rebit-shadow) !important;
}
.rebit-main-image-wrapper img { object-fit: contain !important; padding: 6%; }
.thumb-item { border-radius: 12px !important; background: #fff; }
.rebit-product-info-col { position: static; }
.rebit-single-title { font-size: clamp(25px, 2.6vw, 34px) !important; line-height: 1.16 !important; letter-spacing: -.025em !important; }
.rebit-single-price-box { border: 1px solid rgba(0,124,149,.24); padding: 12px 14px; }
.rebit-single-price { font-family: var(--font-mono); }
.rebit-state-radio-cards { gap: 10px !important; }
.state-radio-card .card-inner { border-radius: 14px !important; }
.rebit-add-to-cart-action-row { padding: 10px; background: #fff; border: 1px solid rgba(7,26,34,.1); border-radius: 16px; box-shadow: var(--rebit-shadow-sm); }
.rebit-add-to-cart-action-row .rebit-btn { min-height: 48px; border-radius: 11px !important; }
.rebit-purchase-confidence {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin-top: 18px;
	background: var(--color-outline);
	border: 1px solid var(--color-outline);
	border-radius: var(--radius-md);
	overflow: hidden;
}
.rebit-purchase-confidence > div { display: flex; gap: 10px; padding: 14px 12px; background: #fff; }
.rebit-purchase-confidence strong { color: var(--color-primary); font: 800 11px/1 var(--font-mono); }
.rebit-purchase-confidence span { display: flex; flex-direction: column; gap: 3px; color: var(--color-text-muted); font-size: 12px; line-height: 1.4; }
.rebit-purchase-confidence b { color: var(--color-text); font-size: 12px; }
.rebit-product-bottom-grid > *,
.rebit-warranty-info-box > * { border-radius: 18px !important; box-shadow: var(--rebit-shadow-sm); }

/* Cart and checkout: a guided path */
.rebit-cart-page-wrapper,
.rebit-checkout-page-wrapper { padding-top: 24px !important; padding-bottom: 48px !important; }
.rebit-cart-page-left,
.rebit-cart-totals-card,
.rebit-checkout-card,
.rebit-checkout-totals-card {
	background: rgba(255,255,255,.96) !important;
	border: 1px solid rgba(7,26,34,.1) !important;
	border-radius: 20px !important;
	box-shadow: var(--rebit-shadow-sm) !important;
}
.rebit-cart-totals-card,
.rebit-checkout-totals-card { position: sticky; top: 148px; }
.rebit-cart-reassurance { display: grid; gap: 9px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-outline); }
.rebit-cart-reassurance span { position: relative; padding-left: 20px; color: var(--color-text-muted); font-size: 11px; }
.rebit-cart-reassurance span::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: 800; }
.rebit-checkout-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 36px;
	align-items: end;
	margin: 0 0 24px;
	padding: 22px;
	border-radius: 22px;
	background: var(--rebit-ink);
	color: #fff;
	overflow: hidden;
	position: relative;
}
.rebit-checkout-intro::after { content:''; position:absolute; width:280px; height:280px; right:-100px; top:-140px; border:1px solid rgba(25,211,230,.32); border-radius:50%; box-shadow:0 0 0 35px rgba(25,211,230,.04),0 0 0 70px rgba(25,211,230,.03); }
.rebit-checkout-intro h1 { color: #fff; max-width: 760px; margin: 10px 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.14; letter-spacing: -.03em; }
.rebit-checkout-intro p { max-width: 720px; color: #aabdc3; font-size: 14px; }
.rebit-checkout-intro .rebit-kicker { color: var(--rebit-cyan); }
.rebit-checkout-live-status { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.06); }
.rebit-checkout-live-status .status-dot { grid-row: span 2; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--color-text-muted); }
.rebit-checkout-live-status.is-ready .status-dot { background: var(--rebit-cyan); box-shadow: 0 0 0 5px rgba(25,211,230,.12); }
.rebit-checkout-live-status strong { font-size: 12px; }
.rebit-checkout-live-status small { color: #91a8af; font-size: 10px; }
.rebit-custom-checkout-form input,
.rebit-custom-checkout-form textarea { border-radius: 10px !important; background: #f2f6f7 !important; border: 1px solid transparent !important; min-height: 46px; }
.rebit-custom-checkout-form input:focus,
.rebit-custom-checkout-form textarea:focus { border-color: var(--color-primary) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(0,124,149,.1); }
.rebit-field-help { display: block; margin-top: 6px; color: var(--color-text-muted); font-size: 10px; }
.rebit-checkout-totals-card .rebit-btn { width: 100%; min-height: 52px; justify-content: center; border-radius: 12px !important; }

/* Contact */
.rebit-contact-page-container { padding-top: 32px !important; padding-bottom: 48px !important; }
.rebit-contact-title { font-size: clamp(28px, 3.2vw, 40px) !important; line-height: 1.12 !important; letter-spacing: -.035em; }
.rebit-contact-hero-img-wrapper img { border-radius: 24px !important; box-shadow: var(--rebit-shadow) !important; }
.rebit-cm-card,
.rebit-contact-form-card,
.rebit-contact-map-wrapper-card,
.faq-item { border: 1px solid rgba(7,26,34,.09) !important; border-radius: 18px !important; box-shadow: var(--rebit-shadow-sm) !important; }
.cm-icon { border-radius: 6px !important; background: #e9f4f6 !important; color: var(--color-primary) !important; }

/* Footer */
.rebit-dark-footer { background: var(--rebit-ink) !important; position: relative; overflow: hidden; }
.rebit-dark-footer::before { content: 'REBIT'; position: absolute; right: -16px; bottom: -54px; color: rgba(255,255,255,.025); font-size: clamp(120px, 19vw, 300px); font-weight: 800; letter-spacing: -.08em; pointer-events: none; }

/* Admin command center */
body.rebit-editor-body { --sidebar-width: 300px; background: #edf3f5 !important; }
.rebit-editor-sidebar { background: var(--rebit-ink) !important; border-right: 1px solid rgba(25,211,230,.14); box-shadow: 12px 0 40px rgba(4,24,32,.12) !important; }
.rebit-sidebar-logo h2 { color: #fff !important; font-size: 24px !important; }
.rebit-sidebar-logo span { color: var(--rebit-cyan) !important; }
.rebit-sidebar-tab-btn,
.rebit-sidebar-link { border-radius: 11px !important; }
.rebit-sidebar-tab-btn.active { background: var(--rebit-cyan) !important; color: var(--rebit-ink) !important; }
.rebit-editor-main-content { max-width: 1380px !important; padding: 36px 48px 120px !important; }
.rebit-editor-header { border-bottom: 0 !important; margin-bottom: 22px !important; }
.rebit-editor-title h1 { color: var(--rebit-ink) !important; font-size: 34px !important; letter-spacing: -.04em; }
.rebit-editor-actions-fixed { bottom: 22px !important; border: 1px solid rgba(7,26,34,.12); border-radius: 16px !important; box-shadow: var(--rebit-shadow) !important; }
.rebit-editor-card { border: 1px solid rgba(7,26,34,.1) !important; border-radius: 18px !important; box-shadow: var(--rebit-shadow-sm) !important; }
.rebit-editor-card h2 { border-bottom: 1px solid var(--color-outline) !important; color: var(--rebit-ink) !important; }
.rebit-editor-command-deck {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1.15fr;
	gap: 18px;
	align-items: center;
	margin-bottom: 26px;
	padding: 22px;
	background: var(--rebit-ink);
	border-radius: 18px;
	box-shadow: var(--rebit-shadow);
	color: #fff;
}
.command-deck-heading { display: grid; gap: 7px; }
.command-deck-heading .rebit-kicker { color: var(--rebit-cyan); }
.command-deck-heading strong { font-size: 16px; }
.rebit-editor-search { display: grid; gap: 6px; color: #8ea7ae; font: 700 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.rebit-editor-search input { width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; }
.command-deck-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.command-deck-status span { display: flex; align-items: center; gap: 7px; color: #b9c9ce; font-size: 10px; }
.command-deck-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-muted); }
.command-deck-status i.ok { background: var(--rebit-cyan); }
#rebit-unsaved-state.has-changes { color: #fff; }
#rebit-unsaved-state.has-changes i { background: var(--rebit-warm); box-shadow: 0 0 0 4px rgba(255,184,107,.12); }
.rebit-editor-card.is-search-hidden { display: none !important; }

/* Mobile purchase bar inserted by progressive enhancement */
.rebit-mobile-buy-dock { display: none; }

@media (max-width: 991px) {
	.rebit-signal-bar .rebit-header-container span:nth-child(2) { display: none; }
	.rebit-search-form { min-width: 0; }
	.rebit-product-info-col { position: static; }
	.rebit-checkout-intro { grid-template-columns: 1fr; gap: 22px; }
	.rebit-shop-paths-header,
	.rebit-catalog-header { grid-template-columns: 1fr; gap: 22px; }
	.rebit-shop-paths-grid { grid-template-columns: 1fr; }
	.rebit-shop-path { min-height: 100px; }
	.rebit-cart-totals-card,
	.rebit-checkout-totals-card { position: static; }
	body.rebit-editor-body { --sidebar-width: 230px; }
	.rebit-editor-main-content { padding: 26px 24px 110px !important; }
	.rebit-editor-command-deck { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	body { background-size: 24px 24px; }
	.rebit-signal-bar .rebit-header-container { justify-content: center; min-height: 30px; }
	.rebit-signal-bar .rebit-header-container > span { display: none; }
	.rebit-signal-bar a { font-size: 9px; }
	.rebit-header-top .rebit-header-container { padding-top: 10px; padding-bottom: 10px; }
	.rebit-header-logo img { max-height: 30px; }
	.rebit-module-hero { padding-top: 12px !important; }
	.rebit-section-title { font-size: 25px !important; }
	.rebit-shop-paths { padding-top: 18px; padding-bottom: 32px; }
	.rebit-shop-paths-header { margin-bottom: 14px; }
	.rebit-shop-paths-header h2 { font-size: 29px; }
	.rebit-shop-path { min-height: 100px; padding: 16px; }
	.rebit-catalog-page-wrapper { padding-top: 20px; }
	.rebit-catalog-header { padding: 22px; border-radius: 17px; }
	.rebit-catalog-header .rebit-section-title { font-size: 31px !important; }
	.rebit-catalog-loop-header { align-items: end !important; }
	.rebit-catalog-results-copy strong { font-size: 14px; }
	.rebit-catalog-support-link { max-width: 128px; text-align: center; }
	.rebit-shared-product-card { padding: 8px !important; border-radius: 14px !important; }
	.rebit-spc-image-wrapper { border-radius: 10px; }
	.rebit-spc-image-wrapper img { padding: 4% !important; }
	.rebit-spc-info { padding: 11px 2px 2px !important; }
	.rebit-single-product-wrapper { padding-top: 24px !important; padding-bottom: 110px !important; }
	.rebit-single-title { font-size: 30px !important; }
	.rebit-add-to-cart-action-row { flex-wrap: wrap; }
	.rebit-purchase-confidence { grid-template-columns: 1fr; }
	.rebit-checkout-intro { padding: 22px; border-radius: 17px; }
	.rebit-checkout-intro h1 { font-size: 29px; }
	.rebit-mobile-buy-dock {
		display: grid;
		grid-template-columns: minmax(0,1fr) auto;
		gap: 12px;
		align-items: center;
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: 10px;
		z-index: 999;
		padding: 11px 11px 11px 15px;
		border: 1px solid var(--color-outline);
		border-radius: 6px;
		background: rgba(255,255,255,.97);
		backdrop-filter: blur(18px);
		box-shadow: 0 18px 50px rgba(0,0,0,.28);
		color: var(--color-text);
		transform: translateY(130%);
		transition: transform .35s var(--ease-out);
	}
	.rebit-mobile-buy-dock.is-visible { transform: translateY(0); }
	.rebit-mobile-buy-dock span { display:grid; gap:2px; min-width:0; }
	.rebit-mobile-buy-dock small { color:var(--color-text-muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
	.rebit-mobile-buy-dock strong { color:var(--color-primary); font:700 13px/1.2 var(--font-mono); }
	.rebit-mobile-buy-dock button { min-height:42px; padding:0 16px; border:0; border-radius:6px; background:var(--color-primary); color:#fff; font-weight:700; }
	body.rebit-editor-body { display: block; }
	.rebit-editor-sidebar { position: relative !important; width: 100% !important; padding: 14px 0 !important; }
	.rebit-sidebar-nav { flex-direction: row !important; overflow-x: auto; padding: 10px 12px !important; }
	.rebit-sidebar-section-title,
	.rebit-sidebar-link { display: none !important; }
	.rebit-sidebar-tab-btn { flex: 0 0 auto; width: auto !important; white-space: nowrap; }
	.rebit-editor-main-content { margin-left: 0 !important; width: 100% !important; padding: 22px 14px 110px !important; }
	.rebit-editor-header { align-items: flex-start !important; }
	.rebit-editor-title h1 { font-size: 27px !important; }
	.rebit-editor-actions-fixed { left: 10px !important; right: 10px !important; bottom: 10px !important; transform: none !important; justify-content: center; gap: 7px !important; padding: 9px !important; }
	.rebit-editor-actions-fixed .rebit-back-site-btn { display: none; }
	.rebit-editor-actions-fixed button { padding: 10px 12px !important; }
	.rebit-editor-card { padding: 20px !important; }
}

/* Light-only direction: sharp retail UI, dark surfaces reserved for a future mode. */
.rebit-shop-path,
.rebit-shop-path.path-reconditioned,
.rebit-shop-path:hover,
.rebit-shop-path.path-reconditioned:hover {
	background: #fff;
	color: var(--rebit-ink);
}
.rebit-shop-path.path-reconditioned { border: 1px solid rgba(7,26,34,.1); }
.rebit-shop-path:hover { background: #f2f7f8; border-color: rgba(0,124,149,.34); }
.rebit-shop-path:hover .path-copy em { color: var(--color-text-muted); }


.rebit-catalog-header,
.rebit-checkout-intro {
	background: #fff;
	color: var(--color-text);
	border: 1px solid rgba(7,26,34,.11);
	box-shadow: var(--rebit-shadow-sm);
}
.rebit-catalog-header .rebit-kicker,
.rebit-checkout-intro .rebit-kicker { color: var(--color-primary); }
.rebit-catalog-header .rebit-section-title,
.rebit-checkout-intro h1 { color: var(--color-text) !important; }
.rebit-catalog-header p,
.rebit-checkout-intro p { color: var(--color-text-muted); }
.rebit-catalog-help,
.rebit-checkout-live-status { background: #f0f5f6; border-color: var(--color-outline); }
.rebit-catalog-help > span { color: var(--color-primary); }
.rebit-catalog-help a { color: var(--color-primary); }
.rebit-checkout-live-status small { color: var(--color-text-muted); }
.rebit-checkout-intro::after { content: none; }

.rebit-dark-footer {
	position: relative;
	overflow: hidden;
	background: var(--rebit-ink) !important;
	color: #fff !important;
	border: 0;
}
.rebit-dark-footer::before {
	content: 'REBIT';
	position: absolute;
	left: auto;
	right: 22px;
	bottom: 12px;
	transform: none;
	color: rgba(255,255,255,.035);
	font-size: clamp(100px, 13vw, 180px);
	font-weight: 800;
	line-height: .72;
	letter-spacing: -.08em;
	white-space: nowrap;
	pointer-events: none;
}
.rebit-dark-footer .rebit-footer-container,
.rebit-dark-footer .rebit-footer-bottom { position: relative; z-index: 1; }
.rebit-dark-footer :is(h2,h3,h4,strong) { color: #fff !important; }
.rebit-dark-footer :is(p,li,span) { color: #b8c8cd; }
.rebit-dark-footer a { color: #d4e1e4 !important; }
.rebit-dark-footer a:hover { color: var(--rebit-cyan) !important; }

body.rebit-editor-body { background: #f3f6f7 !important; }
.rebit-editor-sidebar { background: #fff !important; color: var(--color-text) !important; border-right: 1px solid var(--color-outline); }
.rebit-sidebar-logo { border-bottom-color: var(--color-outline) !important; }
.rebit-sidebar-logo h2 { color: var(--color-text) !important; }
.rebit-sidebar-logo span { color: var(--color-primary) !important; }
.rebit-sidebar-section-title { color: var(--color-text-muted) !important; }
.rebit-sidebar-tab-btn,
.rebit-sidebar-link { color: var(--color-text-muted) !important; }
.rebit-sidebar-tab-btn:hover,
.rebit-sidebar-link:hover { background: var(--color-surface-alt) !important; color: var(--color-text) !important; }
.rebit-sidebar-tab-btn.active { background: #dcebed !important; color: var(--color-primary) !important; box-shadow: none; }
.rebit-editor-command-deck { background: #fff; color: var(--color-text); border: 1px solid var(--color-outline); box-shadow: var(--rebit-shadow-sm); }
.command-deck-heading .rebit-kicker { color: var(--color-primary); }
.rebit-editor-search { color: var(--color-text-muted); }
.rebit-editor-search input { background: #f0f5f6; border-color: var(--color-outline); color: var(--color-text); }
.command-deck-status span { color: var(--color-text-muted); }

/* A drier radius language avoids the generic rounded-card look. */
:is(.rebit-shared-product-card,.rebit-product-card,.rebit-category-banner,.rebit-badge-card,.rebit-shop-path,.rebit-catalog-header,.rebit-checkout-intro,.rebit-main-image-wrapper,.rebit-cart-page-left,.rebit-cart-totals-card,.rebit-checkout-card,.rebit-checkout-totals-card,.rebit-cm-card,.rebit-contact-form-card,.rebit-contact-map-wrapper-card,.faq-item,.rebit-editor-card,.rebit-editor-command-deck) { border-radius: 8px !important; }
:is(.rebit-search-form,.rebit-icon-link,.rebit-filter-dropdown-btn,.rebit-pill-span,.rebit-spc-btn,.rebit-btn,.rebit-add-to-cart-action-row,.state-radio-card .card-inner,.rebit-editor-actions-fixed) { border-radius: 6px !important; }

/* Filter behavior and layering */
.rebit-catalog-filters-bar { position: relative; z-index: 40; margin-bottom: 34px !important; }
.rebit-catalog-filter-horizontal-form {
	position: relative;
	border-radius: 8px !important;
	box-shadow: 0 6px 18px rgba(5,28,37,.07) !important;
	transition: opacity .2s ease;
}
.rebit-catalog-filter-horizontal-form.is-updating { opacity: .58; pointer-events: none; }
.rebit-catalog-filter-horizontal-form.is-updating::after {
	content: 'Actualizando productos…';
	position: absolute;
	right: 16px;
	bottom: -25px;
	color: var(--color-primary);
	font: 700 9px/1 var(--font-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
}
.rebit-filter-dropdown-content {
	z-index: 500 !important;
	border-radius: 6px !important;
	box-shadow: 0 18px 40px rgba(5,28,37,.15) !important;
}
.rebit-filter-dropdown-btn.has-selection { border-color: var(--color-primary); color: var(--color-primary); background: #edf7f8; }
.rebit-filter-dropdown-content.price-range-dropdown { padding: 14px !important; }
.rebit-price-input { border-radius: 5px !important; }
.rebit-filter-dropdown-content .rebit-product-btn { min-height: 38px; background: var(--color-primary) !important; }
.rebit-filter-sort-wrapper { position: relative; display: flex; align-items: center; gap: 8px; }
.rebit-sort-trigger {
	display: inline-flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-width: 190px;
	height: 42px;
	padding: 0 12px !important;
	border: 1px solid var(--color-outline) !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: var(--color-primary) !important;
	font-size: 12px;
	font-weight: 800;
}
.rebit-sort-trigger svg { transition: transform .18s ease; }
.rebit-filter-sort-wrapper.active .rebit-sort-trigger svg { transform: rotate(180deg); }
.rebit-sort-options { left: auto !important; right: 0; top: calc(100% + 6px) !important; min-width: 230px; padding: 6px !important; }
.rebit-sort-option { display: block; cursor: pointer; }
.rebit-sort-option input { position: absolute; opacity: 0; pointer-events: none; }
.rebit-sort-option span { display: block; padding: 10px 11px; border-radius: 4px; color: var(--color-text); font-size: 12px; font-weight: 650; }
.rebit-sort-option:hover span { background: #edf7f8; color: var(--color-primary); }
.rebit-sort-option input:checked + span { background: var(--color-primary); color: #fff; }
.rebit-sort-option input:focus-visible + span { outline: 2px solid var(--rebit-cyan); outline-offset: 1px; }

@media (max-width: 991px) {
	.rebit-filter-dropdown-content { box-shadow: none !important; }
	.rebit-catalog-filters-bar { margin-bottom: 24px !important; }
	.rebit-filters-right { width: 100%; }
	.rebit-filter-sort-wrapper { width: 100%; justify-content: space-between; flex-wrap: wrap; }
	.rebit-filter-sort-wrapper .sort-label { flex: 0 0 auto; white-space: nowrap; }
	.rebit-sort-trigger { flex: 1; min-width: 0; }
	.rebit-sort-options { flex: 0 0 100%; width: 100%; min-width: 0; }
}

/* Product-first catalog: compact orientation, then filters and inventory. */
.rebit-catalog-page-wrapper { margin-top: 0 !important; padding-top: 24px !important; padding-bottom: 48px; }
.rebit-catalog-header {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 10px !important;
	padding: 14px 16px !important;
	box-shadow: none !important;
}
.rebit-catalog-header > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 15px; }
.rebit-catalog-header .rebit-kicker { font-size: 8px !important; white-space: nowrap; }
.rebit-catalog-header .rebit-section-title { grid-row: 1 / span 2; margin: 0 !important; font-size: 28px !important; letter-spacing: -.035em !important; }
.rebit-catalog-header p { grid-column: 2; max-width: 650px; margin: 0 !important; font-size: 12px; line-height: 1.45; }
.rebit-catalog-help {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 0 0 auto;
	padding: 9px 11px;
	border-radius: 5px;
	text-decoration: none;
}
.rebit-catalog-help > span { font-size: 8px; }
.rebit-catalog-help strong { margin: 0; color: var(--color-primary); font-size: 11px; white-space: nowrap; }

.rebit-catalog-top-categories {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 8px !important;
	margin: 0 0 10px !important;
}
.rebit-catalog-top-categories .rebit-cat-card {
	display: flex !important;
	align-items: center;
	min-height: 48px !important;
	height: 48px !important;
	padding: 0 13px !important;
	border: 1px solid var(--color-outline) !important;
	border-radius: 5px !important;
	background: #fff !important;
	overflow: hidden;
	box-shadow: none !important;
}
.rebit-catalog-top-categories .rebit-cat-card::before {
	content: '';
	width: 7px;
	height: 7px;
	margin-right: 10px;
	border: 2px solid var(--color-primary);
	border-radius: 1px;
	transform: rotate(45deg);
}
.rebit-catalog-top-categories .rebit-cat-card img { display: none !important; }
.rebit-catalog-top-categories .rebit-cat-card-overlay {
	position: static !important;
	display: block !important;
	padding: 0 !important;
	background: none !important;
	transform: none !important;
}
.rebit-catalog-top-categories .rebit-cat-card h3 { margin: 0 !important; color: var(--color-text) !important; font-size: 11px !important; line-height: 1.2; text-shadow: none !important; }
.rebit-catalog-top-categories .rebit-cat-card:hover { border-color: var(--color-primary) !important; background: #eef8f9 !important; }
.rebit-catalog-filters-bar { margin-bottom: 18px !important; }
.rebit-catalog-filter-horizontal-form { box-shadow: none !important; }

@media (max-width: 767px) {
	.rebit-catalog-page-wrapper { padding-top: 10px !important; }
	.rebit-catalog-header { align-items: flex-start; gap: 12px; padding: 12px !important; }
	.rebit-catalog-header > div { display: block; }
	.rebit-catalog-header .rebit-kicker { display: none; }
	.rebit-catalog-header .rebit-section-title { font-size: 22px !important; }
	.rebit-catalog-header p { margin-top: 3px !important; font-size: 11px; }
	.rebit-catalog-help > span { display: none; }
	.rebit-catalog-help { padding: 8px 9px; }
	.rebit-catalog-help strong { white-space: normal; text-align: right; }
	.rebit-catalog-top-categories { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
	.rebit-catalog-top-categories .rebit-cat-card { min-height: 42px !important; height: 42px !important; padding: 0 9px !important; }
	.rebit-catalog-top-categories .rebit-cat-card::before { margin-right: 7px; }
	.rebit-catalog-top-categories .rebit-cat-card h3 { font-size: 10px !important; }
	.rebit-catalog-filters-bar { margin-bottom: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
