/* RedBajas 2026 — capa visual nueva sobre la tienda (Bootstrap 3).
   Layout: cabecera blanca con buscador protagonista, barra de departamentos negra, contenido en tarjetas sobre gris cálido; rojo de marca solo para precio y acciones. */
:root {
	--rb-red: #e2231a;
	--rb-red-dark: #b9180f;
	--rb-ink: #17191c;
	--rb-ink-2: #2a2d32;
	--rb-text: #24272b;
	--rb-muted: #6b7078;
	--rb-line: #e4e1dc;
	--rb-bg: #f5f3f0;
	--rb-surface: #ffffff;
	--rb-ok: #138a4a;
	--rb-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--rb-body: "DM Sans", "Segoe UI", Roboto, Arial, sans-serif;
	--rb-wrap: 1280px;
	--rb-r: 10px;
}

body.rb2026 { background: var(--rb-bg); color: var(--rb-text); font-family: var(--rb-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.rb2026 #wrapper { background: transparent; overflow: visible; }
body.rb2026 h1, body.rb2026 h2, body.rb2026 h3, body.rb2026 h4 { font-family: var(--rb-display); color: var(--rb-ink); letter-spacing: -.01em; }
:where(body.rb2026) a { color: inherit; }
body.rb2026 a:focus-visible, body.rb2026 button:focus-visible, body.rb2026 input:focus-visible { outline: 2px solid var(--rb-red); outline-offset: 2px; }
.rb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rb-wrap { max-width: var(--rb-wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.rb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--rb-red); color: #fff !important; border: 0; border-radius: 8px; padding: 11px 18px; font: 700 14px/1 var(--rb-body); text-decoration: none !important; cursor: pointer; transition: background .15s; }
.rb-btn:hover { background: var(--rb-red-dark); }
.rb-btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.rb-header { background: var(--rb-surface); position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 0 var(--rb-line); }
.rb-topbar { background: var(--rb-ink); color: #c9ccd1; font-size: 13px; }
.rb-topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.rb-topbar-msg { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-topbar-tools { display: flex; align-items: center; gap: 18px; flex: none; }
.rb-topbar-tools > a { color: #fff; text-decoration: none; }
.rb-topbar-tools > a:hover { text-decoration: underline; }
.rb-drop { position: relative; }
.rb-drop-btn { background: none; border: 0; color: #fff; font: inherit; padding: 8px 0; cursor: pointer; }
.rb-drop-btn::after { content: "▾"; margin-left: 5px; font-size: 10px; opacity: .7; }
.rb-drop-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 200px; background: var(--rb-surface); border-radius: 8px; box-shadow: 0 14px 34px -14px rgba(0,0,0,.4); list-style: none; padding: 6px; margin: 0; z-index: 30; }
.rb-drop:hover .rb-drop-menu, .rb-drop:focus-within .rb-drop-menu { display: block; }
.rb-drop-menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--rb-text); text-decoration: none; }
.rb-drop-menu a:hover { background: var(--rb-bg); }

.rb-mainbar-in { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.rb-logo { flex: none; display: block; }
.rb-logo img { height: 42px; width: auto; display: block; }
.rb-search { flex: 1; position: relative; display: flex; max-width: 720px; margin: 0 auto; }
.rb-search input { flex: 1; min-width: 0; height: 48px; border: 2px solid var(--rb-ink); border-right: 0; border-radius: 10px 0 0 10px; padding: 0 16px; font: 15px var(--rb-body); color: var(--rb-text); background: #fff; box-shadow: none; }
.rb-search input:focus { outline: none; border-color: var(--rb-red); }
.rb-search button { width: 58px; height: 48px; border: 0; border-radius: 0 10px 10px 0; background: var(--rb-ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.rb-search input:focus + button { background: var(--rb-red); }
.rb-search #display { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); max-height: 60vh; overflow: auto; }
.rb-search #display ul { list-style: none; margin: 0; padding: 6px; }
.rb-search #display li { padding: 10px 12px; border-radius: 6px; font-size: 14px; color: var(--rb-text); }
.rb-search #display li:hover { background: var(--rb-bg); }
.rb-search #display a { text-decoration: none; }
.rb-cart { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--rb-ink) !important; }
.rb-cart-ic { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--rb-bg); display: grid; place-items: center; }
.rb-cart-n { position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rb-red); color: #fff; font: 700 11px/20px var(--rb-body); text-align: center; padding: 0 5px; }
.rb-cart-txt { display: flex; flex-direction: column; font: 700 15px/1.2 var(--rb-body); }
.rb-cart-txt small { font: 500 12px var(--rb-body); color: var(--rb-muted); }
.rb-burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.rb-burger span, .rb-burger span::before, .rb-burger span::after { display: block; height: 2px; width: 22px; background: var(--rb-ink); position: relative; content: ""; }
.rb-burger span::before { position: absolute; top: -7px; } .rb-burger span::after { position: absolute; top: 7px; }

.rb-nav { background: var(--rb-ink-2); }
.rb-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.rb-nav-item > a { display: block; padding: 13px 16px; color: #fff; font: 600 14px/1.2 var(--rb-body); text-decoration: none; }
.rb-nav-item:first-child > a { padding-left: 0; }
.rb-nav-item > a:hover, .rb-nav-item:hover > a { color: #ffb3ae; }
.rb-nav-sep { margin-left: auto; }
.rb-nav-item.has-mega { position: static; }
.rb-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 24px 40px -24px rgba(0,0,0,.45); border-top: 3px solid var(--rb-red); padding: 28px max(16px, calc((100vw - var(--rb-wrap)) / 2 + 16px)); grid-template-columns: 1fr 260px; gap: 32px; max-height: 70vh; overflow: auto; }
.rb-nav-item.has-mega:hover .rb-mega, .rb-nav-item.has-mega:focus-within .rb-mega { display: grid; }
.rb-mega-cols { columns: 4 180px; column-gap: 28px; }
.rb-mega-col { break-inside: avoid; margin-bottom: 20px; }
.rb-mega-title { display: block; font: 700 14px var(--rb-display); color: var(--rb-ink) !important; text-decoration: none; margin-bottom: 8px; }
.rb-mega-title:hover { color: var(--rb-red) !important; }
.rb-mega-col ul { list-style: none; margin: 0; padding: 0; }
.rb-mega-col li a { display: block; padding: 4px 0; color: var(--rb-muted); font-size: 14px; text-decoration: none; }
.rb-mega-col li a:hover { color: var(--rb-red); }
.rb-mega-img { width: 100%; border-radius: 8px; align-self: start; }

@media (max-width: 991px) {
	.rb-topbar-msg { display: none; }
	.rb-topbar-in { justify-content: flex-end; }
	.rb-mainbar-in { flex-wrap: wrap; gap: 12px; }
	.rb-burger { display: block; }
	.rb-logo img { height: 34px; }
	.rb-cart { margin-left: auto; }
	.rb-cart-txt { display: none; }
	.rb-search { order: 5; flex-basis: 100%; max-width: none; }
	.rb-nav { display: none; max-height: calc(100vh - 160px); overflow: auto; }
	.rb-nav-open .rb-nav { display: block; }
	.rb-nav-list { flex-direction: column; }
	.rb-nav-item > a, .rb-nav-item:first-child > a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.rb-nav-sep { margin-left: 0; }
	.rb-mega, .rb-nav-item.has-mega:hover .rb-mega { display: none; }
}
@media (max-width: 560px) { .rb-topbar-tools { gap: 12px; font-size: 12px; } }

/* ---------- Portada ---------- */
.rb-hero { position: relative; background: #111; }
.rb-hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.rb-hero-track::-webkit-scrollbar { display: none; }
.rb-hero-slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.rb-hero-slide img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.rb-hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--rb-ink); font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.rb-hero-prev { left: 16px; } .rb-hero-next { right: 16px; }
.rb-hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.rb-hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; }
.rb-hero-dots button[aria-selected="true"] { background: #fff; width: 26px; border-radius: 5px; }
@media (max-width: 600px) { .rb-hero-nav { display: none; } }

.rb-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.rb-banner { display: block; border-radius: var(--rb-r); overflow: hidden; background: #fff; }
.rb-banner img { width: 100%; height: auto; display: block; transition: transform .3s; }
.rb-banner:hover img { transform: scale(1.03); }
@media (max-width: 767px) { .rb-banners { gap: 10px; margin-top: 16px; } }
@media (max-width: 991px) { .rb-header { position: relative; } }

.rb-section { margin-top: 44px; }
.rb-sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.rb-sec-head h2 { margin: 0; font-size: 26px; font-weight: 800; }

.rb-deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.rb-dep { display: flex; flex-direction: column; background: #fff; border-radius: var(--rb-r); overflow: hidden; text-decoration: none !important; border: 1px solid var(--rb-line); transition: border-color .15s, transform .15s; }
.rb-dep:hover { border-color: var(--rb-ink); transform: translateY(-2px); }
.rb-dep img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--rb-bg); }
.rb-dep span { padding: 12px 14px; font: 700 15px var(--rb-display); color: var(--rb-ink); }

.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.rb-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.rb-row > * { scroll-snap-align: start; }

.rb-card { background: #fff; border-radius: var(--rb-r); border: 1px solid var(--rb-line); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, border-color .2s; min-width: 0; }
.rb-card:hover { border-color: #cfcac2; box-shadow: 0 16px 34px -22px rgba(0,0,0,.45); }
.rb-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; padding: 14px; }
.rb-card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rb-card-hover { position: absolute; inset: 14px; width: calc(100% - 28px) !important; height: calc(100% - 28px) !important; opacity: 0; transition: opacity .25s; background: #fff; }
.rb-card:hover .rb-card-hover { opacity: 1; }
.rb-card-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rb-card-name { margin: 0; font: 600 14px/1.35 var(--rb-body) !important; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-card-name a { text-decoration: none; color: var(--rb-text); }
.rb-card-name a:hover { color: var(--rb-red); }
.rb-card-price { margin: 0 0 4px; font: 800 20px/1.1 var(--rb-display); color: var(--rb-ink); margin-top: auto; }
.rb-cur { font-size: 12px; font-weight: 700; color: var(--rb-muted); margin-right: 3px; }

/* ---------- Páginas existentes (categoría, búsqueda, producto, carrito, cuenta) ---------- */
body.rb2026 #content { padding-bottom: 40px; }
body.rb2026 .container { max-width: var(--rb-wrap); width: auto; }
body.rb2026 #category-header { background: #fff; border-bottom: 1px solid var(--rb-line); margin-bottom: 24px; }
body.rb2026 .category-title h2 { font-weight: 800; }
body.rb2026 .breadcrumb { background: none; padding: 8px 0; font-size: 13px; }
body.rb2026 .breadcrumb a { color: var(--rb-muted); }
body.rb2026 .sidebar .widget, body.rb2026 .panel { background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-r); box-shadow: none; }
body.rb2026 .sidebar .widget { padding: 16px; }
body.rb2026 .category-filter-list a { color: var(--rb-text); }
body.rb2026 .category-filter-list a:hover { color: var(--rb-red); }

body.rb2026 #content .item { background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-r); overflow: hidden; margin-bottom: 18px; padding: 0 0 14px; display: flex; flex-direction: column; transition: box-shadow .2s; }
body.rb2026 #content .item:hover { box-shadow: 0 16px 34px -22px rgba(0,0,0,.45); }
body.rb2026 #content .item .item-image-container { padding: 14px; background: #fff; }
body.rb2026 #content .item figure { margin: 0; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
body.rb2026 #content .item figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
body.rb2026 #content .item .item-name { margin: 6px 14px 0; font: 600 14px/1.35 var(--rb-body); min-height: 2.7em; }
body.rb2026 #content .item .item-name a { color: var(--rb-text); }
body.rb2026 #content .item .item-meta-container { padding: 0 14px; }
body.rb2026 .item-price, body.rb2026 .item-price-container-home .item-price { font: 800 20px/1.1 var(--rb-display); color: var(--rb-ink); background: none; }
body.rb2026 .sub-price { font-size: 12px; color: var(--rb-muted); }
body.rb2026 #content .item .item-action { padding: 10px 14px 0; margin-top: auto; }
body.rb2026 .item-add-btn, body.rb2026 .btn-custom, body.rb2026 .btn-custom-2 { background: var(--rb-red) !important; border: 0 !important; color: #fff !important; border-radius: 8px !important; font-weight: 700; text-shadow: none; box-shadow: none; }
body.rb2026 .item-add-btn { display: block; text-align: center; padding: 10px 12px; text-decoration: none; }
body.rb2026 .item-add-btn:hover, body.rb2026 .btn-custom:hover, body.rb2026 .btn-custom-2:hover { background: var(--rb-red-dark) !important; }
body.rb2026 .icon-cart-text-b { background: none !important; padding: 0 !important; color: #fff; font-size: 14px; }

body.rb2026 .product-details, body.rb2026 #product-container, body.rb2026 .cart-table, body.rb2026 .table { background: #fff; }
body.rb2026 .table { border-radius: var(--rb-r); overflow: hidden; }
body.rb2026 .form-control { border-radius: 8px; border-color: var(--rb-line); box-shadow: none; height: 44px; }
body.rb2026 textarea.form-control { height: auto; }
body.rb2026 .form-control:focus { border-color: var(--rb-ink); box-shadow: 0 0 0 3px rgba(23,25,28,.08); }
body.rb2026 .title-bg { border: 0; background: none; }
body.rb2026 .title-bg .title, body.rb2026 .content-title .title { font: 800 24px var(--rb-display); text-transform: none; color: var(--rb-ink); background: none; }

/* ---------- Franja de confianza y pie ---------- */
.rb-trust { background: #fff; border-top: 1px solid var(--rb-line); margin-top: 56px; }
.rb-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.rb-trust-item { display: flex; gap: 12px; align-items: center; color: var(--rb-red); }
.rb-trust-item strong { display: block; color: var(--rb-ink); font: 700 15px var(--rb-display); }
.rb-trust-item span { display: block; color: var(--rb-muted); font-size: 13px; }
@media (max-width: 991px) { .rb-trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rb-trust-grid { grid-template-columns: 1fr; } }

.rb-footer { background: var(--rb-ink); color: #b7bbc1; font-size: 14px; }
.rb-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 52px; padding-bottom: 40px; }
.rb-footer-grid > div { min-width: 0; }
.rb-footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.rb-footer-brand p { max-width: 34ch; }
.rb-footer-h { color: #fff !important; font: 700 13px var(--rb-body) !important; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.rb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rb-footer a { color: #b7bbc1; text-decoration: none; }
.rb-footer a:hover { color: #fff; }
.rb-social { display: flex; gap: 10px; margin-top: 14px; }
.rb-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.rb-social a:hover { background: var(--rb-red); }
.rb-footer-base { border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.rb-footer-base-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 900px) { .rb-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rb-footer-grid { grid-template-columns: 1fr; gap: 26px; } }

.rb-preview-flag { position: fixed; left: 12px; bottom: 12px; z-index: 2000; background: var(--rb-red); color: #fff; font: 600 13px/1.3 var(--rb-body); padding: 10px 14px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.rb-preview-flag a { color: #fff; text-decoration: underline; }
body.rb2026 #scroll-top { display: none !important; }

@media (prefers-reduced-motion: reduce) { .rb2026 * { transition: none !important; scroll-behavior: auto !important; } }

/* Ajustes de páginas internas */
body.rb2026 h5, body.rb2026 h6, body.rb2026 .sidebar .widget .panel-title, body.rb2026 .accordion-title { font-family: var(--rb-display); color: var(--rb-ink); text-transform: none; letter-spacing: 0; }
body.rb2026 .ratings-container, body.rb2026 .ratings, body.rb2026 .ratings-result { display: none !important; }
body.rb2026 .accordion-header { background: #fff; border: 0; }
body.rb2026 .panel-body { border: 0 !important; }
body.rb2026 .category-filter-list li a { font-size: 15px; text-transform: none; }
body.rb2026 .featured-product h5 { font: 600 14px/1.35 var(--rb-body); text-transform: none; }
body.rb2026 .featured-price, body.rb2026 .featured-product .item-price { font: 800 17px var(--rb-display); color: var(--rb-ink); }
@media (max-width: 991px) {
	body.rb2026 #content .row:has(> aside.sidebar) { display: flex; flex-direction: column; }
	body.rb2026 #content .row:has(> aside.sidebar) > aside.sidebar { order: 2; margin-top: 24px; }
	body.rb2026 .sidebar .widget.featured { display: none; }
}

/* Producto y migas de pan */
body.rb2026 #wrapper { overflow-x: hidden; overflow-x: clip; }
body.rb2026 #breadcrumb-container { background: #fff !important; border-bottom: 1px solid var(--rb-line); padding: 6px 0; margin-bottom: 24px; }
body.rb2026 .breadcrumb, body.rb2026 .breadcrumb a, body.rb2026 .breadcrumb li { font: 500 13px var(--rb-body) !important; color: var(--rb-muted) !important; text-transform: none; }
body.rb2026 .breadcrumb > li + li::before { color: var(--rb-line); }
body.rb2026 .breadcrumb .active { color: var(--rb-ink) !important; }
body.rb2026 .product-name { font: 800 clamp(24px, 3vw, 34px)/1.15 var(--rb-display) !important; color: var(--rb-ink); text-transform: none; }
body.rb2026 .item-price-container-detail { text-align: left; margin: 10px 0; }
body.rb2026 .item-price-container-detail .item-price { font: 800 30px/1 var(--rb-display); color: var(--rb-red); }
body.rb2026 .nav-tabs a, body.rb2026 .tab-content, body.rb2026 .tab-content * { font-family: var(--rb-body) !important; text-transform: none; }
body.rb2026 .tab-content h1, body.rb2026 .tab-content h2, body.rb2026 .tab-content h3 { font-family: var(--rb-display) !important; font-size: 22px; }
body.rb2026 .tab-content { background: #fff; border-radius: 0 0 var(--rb-r) var(--rb-r); padding: 20px; }
body.rb2026 .owl-carousel .item { margin: 0 8px; }
body.rb2026 th, body.rb2026 td, body.rb2026 label, body.rb2026 .btn { font-family: var(--rb-body) !important; text-transform: none; }
body.rb2026 th { font-weight: 700; color: var(--rb-ink); }
@media (max-width: 600px) {
	.rb-deps { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.rb-dep span { padding: 10px 12px; font-size: 14px; }
	.rb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.rb-row { grid-auto-columns: 46%; gap: 10px; }
	.rb-card-media { padding: 10px; }
	.rb-card-body { padding: 0 10px 12px; }
	.rb-card-price { font-size: 17px; }
	.rb-btn { padding: 10px 8px; font-size: 13px; }
	.rb-sec-head h2 { font-size: 21px; }
	.rb-section { margin-top: 32px; }
}
