/* Rey Buscador */
.rbus{--rb-ink:#1b1b1b;--rb-mut:#6b6458;--rb-line:#ece6da;--rb-soft:#f6f3ee;--rb-side:#faf8f4;--rb-gold:#c9a24a;--rb-gold-t:#8a6420;position:relative;width:100%;display:flex;align-items:center;gap:8px;color:var(--rb-ink);font-size:15px;line-height:1.35}
.rbus *{box-sizing:border-box}
.rbus-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rbus .rbus-form{flex:1;min-width:0;display:flex;align-items:center;gap:10px;height:50px;margin:0;padding:0 5px 0 18px;border-radius:999px;background:var(--rb-soft);border:1.5px solid #ddd5c6;transition:border-color .15s,background .15s}
.rbus.is-open .rbus-form,.rbus .rbus-form:focus-within{border-color:var(--rb-ink);background:#fff}
.rbus .rbus-ico{flex-shrink:0;color:var(--rb-mut)}
.rbus input.rbus-input{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;font-size:16px;color:var(--rb-ink);border-radius:0}
.rbus input.rbus-input:focus{outline:none}
.rbus input.rbus-input::placeholder{color:#7a7368;opacity:1}
.rbus input.rbus-input::-webkit-search-cancel-button{display:none}
.rbus .rbus-clear{flex-shrink:0;width:34px;height:34px;min-height:0;padding:0;border:0;border-radius:50%;background:#e9e2d4;color:var(--rb-ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.rbus .rbus-clear[hidden]{display:none}
.rbus .rbus-go{flex-shrink:0;height:40px;min-height:0;padding:0 22px;border:0;border-radius:999px;background:var(--rb-gold);color:var(--rb-ink);font-weight:700;font-size:15px;cursor:pointer;line-height:1}
.rbus .rbus-go:hover{background:#b8892f}
.rbus .rbus-cancel{flex-shrink:0;height:40px;min-height:0;padding:0 14px;border:0;border-radius:999px;background:var(--rb-soft);color:var(--rb-ink);font-weight:600;font-size:14px;line-height:1;cursor:pointer}
.rbus .added_to_cart{display:none!important}
.rbus-main{max-height:calc(100vh - 190px);overflow-y:auto;overscroll-behavior:contain}
.rbus .rbus-cancel[hidden]{display:none}
.rbus button:focus-visible,.rbus a:focus-visible{outline:2px solid #b8892f;outline-offset:2px}

/* panel */
.rbus-panel{position:absolute;top:calc(100% + 8px);left:0;width:940px;max-width:calc(100vw - 32px);z-index:1000;background:#fff;border:1px solid var(--rb-line);border-radius:20px;box-shadow:0 28px 70px rgba(27,27,27,.22);overflow:hidden;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);text-align:left}
.rbus-panel[hidden]{display:none}
.rbus-panel.rbus-one{grid-template-columns:1fr}
.rbus-main{padding:20px 22px;display:flex;flex-direction:column;gap:4px;min-width:0}
.rbus-side{background:var(--rb-side);border-left:1px solid var(--rb-line);padding:22px;display:flex;flex-direction:column;gap:22px;min-width:0}
.rbus-h{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--rb-mut)}
.rbus-head{display:flex;justify-content:space-between;align-items:baseline;padding:0 8px 6px;font-size:13px;color:var(--rb-mut)}
.rbus-msg{padding:24px 8px;display:flex;flex-direction:column;gap:6px;color:var(--rb-mut);font-size:15px}
.rbus-msg strong{font-size:19px;color:var(--rb-ink)}

/* fila de producto */
.rbus-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:16px;align-items:center;padding:12px 8px;border-radius:14px}
.rbus-row:hover{background:var(--rb-side)}
.rbus-thumb{display:flex}
.rbus-thumb img,.rbus-noimg{width:72px;height:72px;object-fit:cover;border-radius:12px;background:#f4f1ea;display:block}
.rbus-noimg{display:flex;align-items:center;justify-content:center;color:var(--rb-gold-t);background:#f1ece2}
.rbus-info{min-width:0;display:flex;flex-direction:column;gap:5px}
.rbus a.rbus-name{font-size:16px;line-height:1.3;font-weight:500;color:var(--rb-ink);text-decoration:none}
.rbus a.rbus-name b{font-weight:700}
.rbus a.rbus-name:hover{color:var(--rb-gold-t)}
.rbus-sub{font-size:13px;color:var(--rb-mut)}
.rbus-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
.rbus .rbus-chip{display:flex;gap:6px;align-items:center;min-height:0;height:auto;margin:0;padding:5px 11px;border:1px solid #d9d2c4;border-radius:999px;background:#fff;color:var(--rb-ink);font-size:13px;line-height:1.2;font-weight:400;text-transform:none;letter-spacing:0;cursor:pointer}
.rbus .rbus-chip b{font-weight:700}
.rbus .rbus-chip:hover{border-color:var(--rb-ink)}
.rbus .rbus-chip.is-on{background:var(--rb-ink);border-color:var(--rb-ink);color:#fff}
.rbus .rbus-chip[disabled]{color:#8a8378;border-color:#e6e0d4;cursor:not-allowed}
.rbus-buy{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.rbus-price{display:flex;flex-direction:column;align-items:flex-end;line-height:1.15}
.rbus-price s{font-size:13px;color:var(--rb-mut)}
.rbus-price strong{font-size:19px;font-weight:700}
.rbus .rbus-add{display:flex;align-items:center;gap:6px;height:40px;min-height:0;padding:0 16px;border:0;border-radius:999px;background:var(--rb-ink);color:#fff;font-size:14px;font-weight:600;line-height:1;text-transform:none;letter-spacing:0;white-space:nowrap;cursor:pointer;text-decoration:none}
.rbus .rbus-add:hover{background:#333;color:#fff}
.rbus .rbus-add.is-busy{opacity:.6;cursor:progress}
.rbus .rbus-add.is-done{background:#2f6b3a}
.rbus .rbus-add.is-out{background:#fff;color:var(--rb-ink);border:1px solid #d9d2c4}
.rbus a.rbus-all{margin-top:8px;height:48px;border-radius:14px;background:var(--rb-soft);display:flex;align-items:center;justify-content:center;gap:8px;font-size:15px;font-weight:600;color:var(--rb-ink);text-decoration:none}
.rbus a.rbus-all:hover{background:#ece6da}

/* sin texto: más vendidos */
.rbus-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:8px 8px 0}
.rbus a.rbus-card{display:flex;flex-direction:column;gap:5px;color:var(--rb-ink);text-decoration:none}
.rbus-card img,.rbus-card .rbus-noimg{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:14px}
.rbus-card-n{font-size:14px;font-weight:600;line-height:1.3}
.rbus-card-p{font-size:13px;color:var(--rb-mut)}

/* columna lateral */
.rbus-blk{display:flex;flex-direction:column;gap:10px}
.rbus a.rbus-rel{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:15px;padding:3px 0;color:var(--rb-ink);text-decoration:none}
.rbus a.rbus-rel:hover{color:var(--rb-gold-t)}
.rbus-rel em{font-style:normal;font-size:12.5px;color:var(--rb-mut);background:#fff;border:1px solid var(--rb-line);border-radius:999px;padding:2px 9px}
.rbus-pills{display:flex;flex-wrap:wrap;gap:8px}
.rbus .rbus-pill,.rbus a.rbus-brand{display:flex;align-items:center;gap:6px;min-height:0;height:auto;margin:0;padding:7px 13px;border:1px solid #ddd5c6;border-radius:999px;background:#fff;color:var(--rb-ink);font-size:14px;font-weight:400;line-height:1.2;text-transform:none;letter-spacing:0;cursor:pointer;text-decoration:none}
.rbus .rbus-pill svg{color:var(--rb-gold-t)}
.rbus a.rbus-brand{border-radius:10px;font-weight:600}
.rbus a.rbus-brand span{font-weight:400;color:var(--rb-mut)}
.rbus .rbus-pill:hover,.rbus a.rbus-brand:hover{border-color:var(--rb-ink)}

/* encaje en el header de WoodMart: el buscador ocupa el centro */
.whb-header .wd-header-html:has(.rbus),.whb-header .wd-header-text:has(.rbus){flex:1 1 auto;width:100%;max-width:820px;margin-left:auto;margin-right:auto;padding:0}
.whb-header .whb-col-center:has(.rbus){justify-content:center}
.whb-header .whb-col-mobile .wd-header-text:has(.rbus){max-width:none}
.whb-header .wd-header-text:has(.rbus) p{margin:0}

/* fila inferior: menú en su línea y la franja de imagen (Despacho gratis) a todo el ancho debajo */
.whb-header:has(.rbus) .whb-header-bottom-inner{height:auto!important;max-height:none!important}
.whb-header:has(.rbus) .whb-header-bottom .whb-column{flex-wrap:wrap;height:auto}
.whb-header:has(.rbus) .whb-header-bottom .wd-header-main-nav{flex:1 1 100%;min-height:50px;display:flex;align-items:center;justify-content:center}
.whb-header:has(.rbus) .whb-header-bottom .wd-header-text:has(.full-width-img){flex:1 1 100%;max-width:none;width:100%;padding:0;margin:0;line-height:0}
.whb-header:has(.rbus) .whb-header-bottom .full-width-img{display:block;margin-top:0;margin-bottom:0}
.whb-header:has(.rbus) .whb-header-bottom .whb-flex-row{padding-bottom:0}

/* fondo oscuro detrás (escritorio) */
.rbus-dim{position:fixed;inset:0;background:rgba(27,27,27,.4);z-index:389;opacity:0;pointer-events:none;transition:opacity .15s}
.rbus-dim.is-on{opacity:1;pointer-events:auto}

/* móvil */
@media (max-width:767px){
	.rbus .rbus-form{height:46px;padding:0 5px 0 14px;gap:8px}
	.rbus .rbus-go{display:none}
	.rbus-panel{position:fixed;top:var(--rbus-top,120px);left:0!important;right:0;bottom:0;width:auto!important;max-width:none;border-radius:0;border:0;border-top:1px solid var(--rb-line);box-shadow:none;grid-template-columns:1fr;align-content:start;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
	.rbus-main{padding:10px 12px;max-height:none;overflow:visible}
	.rbus-side{border-left:0;border-top:1px solid var(--rb-line);padding:18px 12px 32px}
	.rbus-row{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:12px 4px;border-radius:0;border-bottom:1px solid #f0ebe1}
	.rbus-row:hover{background:transparent}
	.rbus-thumb img,.rbus-row .rbus-noimg{width:64px;height:64px}
	.rbus a.rbus-name{font-size:15px}
	.rbus-chips{flex-wrap:nowrap}
	.rbus .rbus-chip{flex:1;flex-direction:column;justify-content:center;gap:1px;min-height:44px;padding:4px 2px;border-radius:10px;font-size:12px}
	.rbus .rbus-chip b{font-size:13px}
	.rbus-buy{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;margin-top:-4px}
	.rbus-price{flex-direction:row-reverse;align-items:baseline;gap:8px}
	.rbus-price strong{font-size:17px}
	.rbus-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
	html.rbus-lock,html.rbus-lock body{overflow:hidden}
}

/* ===== Mega menú "Todas las categorías" ===== */
.rmm{position:relative;color:#1b1b1b;font-size:15px;line-height:1.35}
.rmm *{box-sizing:border-box}
.rmm .rmm-btn{display:flex;align-items:center;gap:10px;height:50px;min-height:0;padding:0 18px;margin:0;border:0;border-radius:999px;background:#c9a24a;color:#1b1b1b;font-size:15px;font-weight:700;line-height:1;text-transform:none;letter-spacing:0;white-space:nowrap;cursor:pointer}
.rmm .rmm-btn:hover,.rmm.is-open .rmm-btn{background:#e0bd6a}
.rmm .rmm-btn svg:last-child{transition:transform .15s}
.rmm.is-open .rmm-btn svg:last-child{transform:rotate(180deg)}
.rmm-panel{position:absolute;z-index:1000;width:1100px;background:#fff;border:1px solid #ece6da;border-radius:20px;box-shadow:0 28px 70px rgba(27,27,27,.25);overflow:hidden;display:grid;grid-template-columns:260px minmax(0,1fr);text-align:left}
.rmm-panel[hidden]{display:none}
.rmm-cats{background:#faf8f4;border-right:1px solid #ece6da;padding:12px;display:flex;flex-direction:column;gap:3px}
.rmm a.rmm-cat{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 14px;border-radius:12px;color:#1b1b1b;font-size:15px;font-weight:500;text-decoration:none}
.rmm a.rmm-cat span{flex:1}
.rmm a.rmm-cat em{font-style:normal;font-size:13px;color:#6b6458}
.rmm a.rmm-cat.is-on{background:#1b1b1b;color:#fff;font-weight:700}
.rmm a.rmm-cat.is-on em{color:#d9d2c4}
.rmm a.rmm-cat-off{color:#b3261e;font-weight:700}
.rmm a.rmm-cat-off.is-on{background:#b3261e;color:#fff}
.rmm-body{padding:22px 26px 26px;display:flex;flex-direction:column;gap:24px;min-width:0}
.rmm-pane-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px}
.rmm-pane-h span{font-size:19px;font-weight:700}
.rmm-pane-h a{font-size:14px;font-weight:600;color:#8a6420;text-decoration:none}
.rmm-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rmm a.rmm-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border:1px solid #ece6da;border-radius:14px;color:#1b1b1b;text-decoration:none}
.rmm a.rmm-card:hover{border-color:#1b1b1b}
.rmm-card img{width:64px;height:64px;object-fit:cover;border-radius:10px;background:#f4f1ea;display:block}
.rmm-card span{display:flex;flex-direction:column;gap:2px;min-width:0}
.rmm-card b{font-size:14px;font-weight:600;line-height:1.25}
.rmm-card em{font-style:normal;font-size:12.5px;color:#6b6458}
.rmm-card strong{font-size:13px;font-weight:700}
.rmm-cols{display:grid;grid-template-columns:1.4fr 1fr 1.2fr;gap:28px;align-items:start;border-top:1px solid #f0ebe1;padding-top:20px}
.rmm-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.rmm-h{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6b6458}
.rmm-aromas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.rmm-aromas a{display:flex;align-items:center;gap:8px;font-size:14.5px;color:#1b1b1b;text-decoration:none}
.rmm-aromas a:hover{color:#8a6420}
.rmm-aromas i{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.rmm-seasons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.rmm-seasons a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 6px;border-radius:12px;background:#faf8f4;border:1px solid #ece6da;font-size:14px;font-weight:600;color:#1b1b1b;text-decoration:none}
.rmm-seasons a svg{color:#8a6420}
.rmm-seasons a:hover{border-color:#1b1b1b}
.rmm-brands{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.rmm-brands a{height:46px;display:flex;align-items:center;justify-content:center;text-align:center;padding:4px 8px;border:1px solid #ece6da;border-radius:10px;font-size:13px;font-weight:700;color:#1b1b1b;text-decoration:none;line-height:1.15}
.rmm-brands a:hover{border-color:#1b1b1b}
.rmm-brands img{max-height:30px;max-width:100%;width:auto;object-fit:contain}
@media (max-width:1199px){.rmm-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.rmm .rmm-btn span{display:none}}
@media (max-width:1024px){.rmm{display:none}}

/* menú del header: Ofertas y Novedades destacados */
.whb-header .wd-nav > li.rey-nav-ofertas > a,.whb-header .wd-nav > li.rey-nav-ofertas > a .nav-link-text{color:#ff6b5e!important;font-weight:700}
.whb-header .wd-nav > li.rey-nav-novedades > a,.whb-header .wd-nav > li.rey-nav-novedades > a .nav-link-text{color:#e2c27a!important}

/* ===== Modo ícono (móvil): lupa junto al carrito ===== */
.rbus .rbus-toggle{display:none}
.rbus.rbus-mode-icon{width:auto;color:inherit}
.rbus-mode-icon .rbus-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:0;padding:0;margin:0;border:0;background:transparent;color:inherit;cursor:pointer}
.rbus-mode-icon .rbus-sheet{display:none}
.rbus-mode-icon.is-sheet .rbus-sheet{display:flex;align-items:center;gap:8px;position:fixed;top:0;left:0;right:0;z-index:100001;padding:10px 12px;background:#fff;color:#1b1b1b;box-shadow:0 2px 12px rgba(0,0,0,.12)}
.rbus-mode-icon.is-sheet .rbus-panel{z-index:100000}
.rbus-mode-icon .rbus-go{display:none}
.whb-header .wd-header-text:has(.rbus-mode-icon){flex:0 0 auto;width:auto;max-width:none;margin:0}
.whb-header .whb-column .wd-header-text:has(.rbus-mode-icon){order:-1}

/* alineación vertical del buscador con el botón de categorías y los íconos (el bloque HTML deja <p> vacíos) */
.whb-header .wd-header-html:has(.rbus){display:flex!important;align-items:center!important;justify-content:center!important;height:100%}
.whb-header .wd-header-html:has(.rbus) p:empty,.whb-header .wd-header-text:has(.rbus) p:empty,.whb-header .wd-header-text:has(.rmm) p:empty{display:none!important}
.whb-header .wd-header-text:has(.rmm){display:flex;align-items:center}

/* fila del menú */
.whb-header:has(.rbus) .whb-header-bottom{background-color:#101010!important}
.whb-header:has(.rbus) .whb-header-bottom-inner{background-color:transparent!important}
/* WoodMart pone margin-bottom:20px a los bloques de contenido: dentro del header se anula para que todo quede a la misma altura */
.whb-header .rbus,.whb-header .rmm{margin:0!important}
