/* ============================================================
   Rastromáquinas FX — sistema de diseño global (Hello child)
   ============================================================ */
:root{
  --bg:#ffffff; --soft:#f4f6f9; --soft-2:#eef1f5; --line:#e4e8ee; --line-2:#d7dce4;
  --ink:#15202b; --ink-2:#25313d; --muted:#5d6b7a; --muted-2:#8794a2;
  --brand:#e0261c; --brand-2:#bf1a12; --brand-soft:#fdeceb;
  --navy:#101c28; --ok:#1f9d55;
  --shadow:0 6px 24px rgba(21,32,43,.08); --shadow-lg:0 20px 50px rgba(21,32,43,.16);
  --r:16px; --r-sm:11px; --wrap:1300px; --ease:cubic-bezier(.22,.7,.28,1);
}
body{background:var(--bg);color:var(--ink);font-family:'Manrope',system-ui,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:'Sora',sans-serif;line-height:1.14;letter-spacing:-.02em;font-weight:700;color:var(--ink)}
img{max-width:100%;height:auto}
.rm-wrap{max-width:var(--wrap);margin:0 auto;padding:0 28px}
.rm-btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;font-family:'Sora';font-weight:600;font-size:.95rem;padding:.85rem 1.5rem;border-radius:var(--r-sm);border:1.5px solid transparent;cursor:pointer;transition:.2s var(--ease);white-space:nowrap}
.rm-btn svg{width:18px;height:18px}
.rm-btn.primary{background:var(--brand);color:#fff;box-shadow:0 8px 20px rgba(224,38,28,.28)}
.rm-btn.primary:hover{background:var(--brand-2);transform:translateY(-2px)}
.rm-btn.out{background:#fff;color:var(--ink);border-color:var(--line-2)}.rm-btn.out:hover{border-color:var(--ink)}

/* ===== TOPBAR ===== */
.rm-topbar{background:var(--navy);color:#aeb9c5;font-size:.83rem}
.rm-topbar .in{max-width:var(--wrap);margin:0 auto;padding:0 28px;display:flex;justify-content:space-between;align-items:center;height:40px}
.rm-topbar a{color:#c4cdd7}.rm-topbar a:hover{color:#fff}.rm-topbar .r{display:flex;gap:1.6rem}

/* ===== HEADER ===== */
.rm-header{position:sticky;top:0;z-index:200;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.rm-nav{max-width:var(--wrap);margin:0 auto;padding:0 28px;display:flex;align-items:center;gap:1.6rem;height:76px}
.rm-logo{display:flex;align-items:center;gap:.8rem;flex:none}
.rm-logo img{height:46px;width:auto}
.rm-logo .lx{display:flex;flex-direction:column;line-height:1.05}
.rm-logo .lx b{font-family:'Sora';font-weight:800;font-size:1.18rem;letter-spacing:-.02em;color:var(--ink)}
.rm-logo .lx small{font-size:.64rem;letter-spacing:.14em;color:var(--muted-2);text-transform:uppercase}
.rm-menu{display:flex;gap:1.6rem;align-items:center;list-style:none;margin:0;padding:0}
.rm-menu a{font-family:'Manrope';font-weight:600;font-size:.95rem;color:var(--ink-2);position:relative;padding:.3rem 0}
.rm-menu a:hover,.rm-menu .current-menu-item>a{color:var(--brand)}
.rm-menu .current-menu-item>a::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;background:var(--brand);border-radius:2px}
.rm-menu .sub-menu{display:none}
.rm-sp{flex:1}
.rm-act{display:flex;align-items:center;gap:.8rem;flex:none}
.rm-ic{width:44px;height:44px;border-radius:11px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;color:var(--ink)}
.rm-ic:hover{border-color:var(--brand);color:var(--brand)}.rm-ic svg{width:20px;height:20px}
.rm-burger{display:none;width:44px;height:44px;border-radius:11px;border:1px solid var(--line);background:#fff;flex-direction:column;gap:5px;align-items:center;justify-content:center;cursor:pointer}
.rm-burger span{width:22px;height:2px;background:var(--ink);border-radius:2px}

/* ===== FOOTER ===== */
.rm-footer{background:var(--navy);color:#93a0ad;padding:60px 0 26px;margin-top:60px}
.rm-fgrid{max-width:var(--wrap);margin:0 auto;padding:0 28px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:2.4rem;padding-bottom:2.4rem;border-bottom:1px solid #223140}
.rm-footer .rm-logo .lx b{color:#fff}
.rm-fdesc{margin:1rem 0;font-size:.93rem;max-width:32ch;color:#a9b4bf}
.rm-footer h4{color:#fff;font-family:'Sora';font-weight:700;font-size:1rem;margin-bottom:1rem}
.rm-footer ul{list-style:none;display:flex;flex-direction:column;gap:.6rem;margin:0;padding:0}
.rm-footer a{color:#93a0ad;font-size:.93rem}.rm-footer a:hover{color:#fff}
.rm-fbot{max-width:var(--wrap);margin:0 auto;padding:1.5rem 28px 0;display:flex;justify-content:space-between;font-size:.84rem;color:#7a8794;flex-wrap:wrap;gap:.6rem}
.rm-wa{position:fixed;right:22px;bottom:22px;width:58px;height:58px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;box-shadow:0 10px 26px rgba(31,157,85,.4);z-index:210;transition:.2s}
.rm-wa:hover{transform:scale(1.07)}.rm-wa svg{width:30px;height:30px}

/* ===== PAGE / ARCHIVE HEAD ===== */
.rm-pagehead{background:var(--soft);border-bottom:1px solid var(--line)}
.rm-pagehead .in{max-width:var(--wrap);margin:0 auto;padding:34px 28px 30px}
.rm-pagehead h1{font-size:clamp(1.9rem,3.6vw,2.6rem);font-weight:800}
.rm-pagehead .bc{font-size:.86rem;color:var(--muted);margin-bottom:.7rem}

/* ============================================================
   WOOCOMMERCE — tienda (archivo) y ficha (producto)
   ============================================================ */
.woocommerce, .woocommerce-page{max-width:var(--wrap);margin:0 auto;padding:34px 28px 60px}
.woocommerce .woocommerce-result-count{color:var(--muted);font-size:.92rem}
.woocommerce .woocommerce-ordering select{font-family:'Manrope';border:1.5px solid var(--line-2);border-radius:10px;padding:.5rem .8rem}

/* grid de productos como tarjetas */
.woocommerce ul.products{display:grid !important;grid-template-columns:repeat(3,1fr);gap:22px;margin:24px 0 0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product{width:auto !important;margin:0 !important;float:none !important;
  background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:.25s var(--ease);display:flex;flex-direction:column;padding:0}
.woocommerce ul.products li.product:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:var(--line-2)}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;height:100%}
.woocommerce ul.products li.product img{margin:0;border-radius:0;aspect-ratio:4/3;object-fit:cover;width:100%;background:var(--soft-2)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:'Manrope';font-weight:700;font-size:1rem;line-height:1.3;color:var(--ink);padding:1rem 1.2rem .3rem}
.woocommerce ul.products li.product .price{color:var(--ink);font-family:'Sora';font-weight:700;padding:0 1.2rem;font-size:1rem}
.woocommerce ul.products li.product .price .amount{color:var(--ink)}
.woocommerce ul.products li.product .button{margin:.9rem 1.2rem 1.2rem;background:var(--brand);color:#fff;border-radius:var(--r-sm);
  font-family:'Sora';font-weight:600;text-align:center;padding:.7rem 1rem;transition:.2s}
.woocommerce ul.products li.product .button:hover{background:var(--brand-2)}
.woocommerce span.onsale{background:var(--brand);border-radius:7px;top:12px;left:12px;right:auto;min-height:0;min-width:0;padding:.3rem .6rem;font-family:'Sora';font-weight:700;font-size:.68rem}

/* paginación */
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:.5rem;justify-content:center}
.woocommerce nav.woocommerce-pagination ul li{border:0}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{
  border:1.5px solid var(--line-2);border-radius:11px;min-width:44px;height:44px;display:grid;place-items:center;font-family:'Sora';font-weight:600}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--brand);border-color:var(--brand);color:#fff}

/* sidebar filtros (widgets) */
.woocommerce .widget{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.2rem 1.3rem;margin-bottom:20px;box-shadow:var(--shadow)}
.woocommerce .widget .widgettitle,.woocommerce .widget h2{font-family:'Sora';font-size:1rem;font-weight:700;margin-bottom:.8rem}

/* ===== FICHA DE PRODUCTO ===== */
.woocommerce div.product .product_title{font-family:'Sora';font-weight:800;font-size:clamp(1.6rem,3vw,2.2rem);letter-spacing:-.02em}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink);font-family:'Sora';font-weight:800;font-size:1.5rem}
.woocommerce div.product .woocommerce-product-gallery{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
.woocommerce div.product form.cart .button,.woocommerce div.product .single_add_to_cart_button,
.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{
  background:var(--brand);color:#fff;border-radius:var(--r-sm);font-family:'Sora';font-weight:600;padding:.9rem 1.5rem;transition:.2s}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce div.product .single_add_to_cart_button:hover{background:var(--brand-2)}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border:0;background:transparent;border-radius:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-bottom:2px solid var(--brand)}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--ink);font-family:'Sora';font-weight:600}
.woocommerce table.shop_attributes th{color:var(--muted);font-weight:600}
.woocommerce table.shop_attributes{border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.woocommerce .related.products>h2,.woocommerce .upsells>h2{font-family:'Sora';font-weight:800;font-size:1.6rem;margin:2rem 0 1rem}

/* ===== Sidebar de filtros combinables ===== */
.rm-shop-wrap{display:grid;grid-template-columns:290px 1fr;gap:30px;align-items:start}
.rm-shop-content,.rm-shop-content #primary,.rm-shop-content main{width:100%;max-width:100%;margin:0;float:none}
.rm-shop-side{position:sticky;top:96px}
.rm-side-inner{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:1.3rem;display:flex;flex-direction:column;gap:1.2rem}
.rm-search{display:flex;border:1.5px solid var(--line-2);border-radius:11px;overflow:hidden}
.rm-search input{flex:1;border:0;outline:none;padding:.7rem .8rem;font-family:'Manrope';font-size:.92rem;background:transparent;min-width:0}
.rm-search button{border:0;background:var(--brand);color:#fff;padding:0 .9rem;display:grid;place-items:center;cursor:pointer}
.rm-search button:hover{background:var(--brand-2)}.rm-search button svg{width:18px;height:18px}
.rm-filters{display:flex;flex-direction:column;gap:0}
.rm-fg{border-top:1px solid var(--line);padding:1rem 0}
.rm-fg:first-child{border-top:0;padding-top:0}
.rm-fg h3{font-family:'Sora';font-size:.95rem;font-weight:700;margin:0 0 .7rem}
.rm-opt{display:flex;align-items:center;gap:.55rem;padding:.3rem 0;cursor:pointer;font-size:.93rem;color:var(--ink-2)}
.rm-opt:hover{color:var(--brand)}
.rm-opt input{width:17px;height:17px;accent-color:var(--brand);cursor:pointer;flex:none;margin:0}
.rm-opt .n{margin-left:auto;font-size:.78rem;color:var(--muted-2);font-variant-numeric:tabular-nums}
.rm-apply{margin-top:1.1rem;width:100%;text-align:center}
.rm-clear{display:block;text-align:center;margin-top:.7rem;font-size:.86rem;color:var(--muted);font-weight:600}
.rm-clear:hover{color:var(--brand)}
/* rejilla de producto dentro del contenido con sidebar */
.rm-shop-content .woocommerce ul.products,.woocommerce.rm-shop-content ul.products{grid-template-columns:repeat(3,1fr)}
@media(max-width:1200px){.rm-shop-wrap .woocommerce ul.products,.rm-shop-content ul.products{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1024px){
  .rm-shop-wrap{grid-template-columns:1fr}
  .rm-shop-side{position:static}
  .rm-filters{flex-direction:row;flex-wrap:wrap;gap:1.5rem}
  .rm-fg{border-top:0;padding:0;flex:1;min-width:180px}
  .rm-apply{flex-basis:100%}
}

/* ocultar mensaje "not available for purchase" del plugin catálogo */
.catc-not-purchasable-notice,.catc-disabled-message{display:none !important}
/* botones catálogo */
.woocommerce ul.products li.product .rm-verficha-btn{display:block;text-align:center;margin:.9rem 1.2rem 1.2rem}
.woocommerce div.product .rm-quote-btn{display:inline-block;margin-top:1rem}

@media(max-width:1024px){
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr)}
  .rm-fgrid{grid-template-columns:1fr 1fr;gap:2rem}
}
@media(max-width:760px){
  .rm-menu,.rm-topbar,.rm-act .rm-ic{display:none}
  .rm-burger{display:flex}
  .rm-menu.open{display:flex;position:absolute;top:76px;left:0;right:0;flex-direction:column;background:#fff;padding:1.4rem 28px;gap:1.1rem;border-bottom:1px solid var(--line);box-shadow:var(--shadow)}
  .woocommerce ul.products{grid-template-columns:1fr}
  .rm-fgrid{grid-template-columns:1fr}
}
