/*
 * Luso Gaming Neon 2.0
 * Adaptación de la plantilla Gaming Neon sobre WooCommerce real.
 */
:root{
  --gaming-navy:#09070f;
  --gaming-panel:#0f0b16;
  --gaming-red:#ef233c;
  --gaming-purple:#8b2dff;
  --gaming-ink:#111827;
  --gaming-paper:#f4f5f7;
  --gaming-line:#e2e5ea;
  --gaming-display:'Barlow Condensed',Impact,sans-serif;
  --gaming-body:'DM Sans',Manrope,Arial,sans-serif;
  --shell:min(1320px,92%);
}
html,body{background:var(--gaming-paper)!important;color:var(--gaming-ink);font-family:var(--gaming-body)}
body::before{display:none}
.shell{width:var(--shell)}

/* Encabezado comercial de dos niveles */
.site-header{position:relative;z-index:50;border:0;background:var(--gaming-navy);box-shadow:none;backdrop-filter:none}
.site-promo-bar{min-height:30px;background:linear-gradient(90deg,#6f20c8,#e21d42);font-size:10px;letter-spacing:.08em}
.site-promo-bar .shell{min-height:30px;justify-content:space-between}
.site-promo-bar span{color:#fff}
.header-main{min-height:96px;gap:28px;background:linear-gradient(115deg,#09070f,#180811 62%,#09070f)}
.brand{flex:0 0 178px}
.brand img{width:175px;max-height:76px;filter:drop-shadow(0 0 16px rgba(255,41,77,.24))}
.header-search{order:0;max-width:none;flex:1}
.woocommerce-product-search{overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:5px;background:#fff}
.woocommerce-product-search::before{left:18px;color:#7b8491}
.search-field{height:48px;border:0!important;border-radius:0;background:#fff!important;color:#242b36!important;box-shadow:none!important;font-family:var(--gaming-body);font-size:14px}
.woocommerce-product-search button{width:52px;border:0;background:linear-gradient(135deg,var(--gaming-red),#c61650);color:#fff}
.header-build-link,.account-links a,.account-links button{display:flex;align-items:center;gap:9px;color:#fff;font-weight:800;white-space:nowrap}
.header-build-link{font-size:14px}
.header-build-link>span:first-child{font-size:21px}
.account-links{gap:20px;font-family:var(--gaming-body);font-size:14px}
.account-links .account-link,.account-links .cart-link{flex-direction:row;text-transform:none;letter-spacing:0}
.category-nav,body .site-header .category-nav{display:flex;min-height:64px;align-items:flex-start;justify-content:center;gap:25px;padding-top:4px;padding-bottom:24px;border:0;background:#070711;color:#fff;overflow:visible}
.catalog-trigger{display:flex!important;min-height:38px!important;align-items:center;gap:9px;padding:0!important;color:#fff!important;font-size:14px!important;font-weight:800!important}
.category-nav>div{min-width:0}
.category-nav ul{justify-content:center;gap:24px;font-family:var(--gaming-body);font-size:14px;letter-spacing:0}
.category-nav a,body .site-header .category-nav a{min-height:38px;color:#fff;font-weight:700}
.category-nav .menu>li:first-child>a,.category-nav .menu>li:last-child>a{height:36px;min-height:36px;padding:0 16px;border:0!important;border-radius:20px;background:linear-gradient(90deg,var(--gaming-red),var(--gaming-purple));color:#fff!important}
.category-nav .menu>li>a::after{display:none}
.category-nav a:hover{color:#ff5570!important}

/* Hero */
body.home .home-hero-stage{padding:0;background:var(--gaming-paper)!important}
.home-hero-stage::before{display:none}
.gaming-home-layout{display:block;width:100%;max-width:none}
.gaming-hero{position:relative;min-height:430px;overflow:hidden;background:#08070c;color:#fff}
.gaming-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%}
.gaming-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#050307f8 0%,#0b0609e4 34%,#15040a55 62%,transparent 86%),linear-gradient(0deg,#05030780,transparent 55%)}
.gaming-hero-copy{position:relative;z-index:1;width:var(--shell);margin:auto;padding:70px 0 58px}
.gaming-hero-copy>span{display:block;color:#ff4766;font:900 clamp(40px,5vw,64px)/.88 var(--gaming-display);letter-spacing:-.02em;text-transform:uppercase;text-shadow:0 3px 0 #97051e,0 4px 14px rgba(255,41,77,.45)}
.gaming-hero h1{margin:0 0 22px;color:#fff;font:900 clamp(66px,7vw,96px)/.8 var(--gaming-display);letter-spacing:-.03em;text-transform:uppercase;text-shadow:0 4px 0 #8c1930,0 8px 24px rgba(255,41,77,.42)}
.gaming-hero-copy>div{display:flex;gap:9px;margin-bottom:25px}
.gaming-hero-copy b{padding:6px 10px;border:1px solid rgba(255,255,255,.65);border-radius:4px;background:rgba(255,255,255,.08);font-size:11px;font-weight:600;backdrop-filter:blur(4px)}
.gaming-hero-copy>a{display:inline-flex;min-height:43px;align-items:center;padding:0 20px;border-radius:22px;background:linear-gradient(90deg,var(--gaming-red),var(--gaming-purple));color:#fff;font-size:13px;font-weight:800;box-shadow:0 9px 28px rgba(239,35,60,.28)}

/* Beneficios */
.home-benefits{display:grid;width:var(--shell);grid-template-columns:repeat(4,1fr);gap:26px;margin:10px auto 0}
.home-benefits article,body.home .home-benefits article{min-height:74px;align-items:center;padding:12px 17px;border:1px solid var(--gaming-line)!important;border-radius:10px;background:#fff;box-shadow:0 4px 13px rgba(16,24,40,.07)}
.home-benefits .benefit-icon{width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#fff0f3;color:var(--gaming-red)}
.home-benefits .benefit-icon svg{width:22px;height:22px}
.home-benefits b{margin-bottom:3px;color:#172033;font-family:var(--gaming-body);font-size:12px;letter-spacing:.01em}
.home-benefits span{color:#737b88;font-family:var(--gaming-body);font-size:11px;line-height:1.35}

/* Secciones y catálogo */
body.home .products-section,body.home .home-feature-showcase,body.home .home-brands,body.home .home-gamer,body.home .category-showcase{background:transparent!important}
.products-section,.home-feature-showcase,.home-brands,.home-gamer,.category-showcase{padding-block:34px}
.section-title{gap:14px;margin-bottom:18px}
body.home .section-title h2,.section-title h2{color:#c91f48;font:800 31px/1.05 var(--gaming-body);letter-spacing:-.035em;text-transform:none}
.title-line{display:none}
.category-all{margin-left:auto;padding:7px 14px;border:1px solid #d8dce3;border-radius:18px;background:#fff;color:#1b2433;font-size:12px}
.featured-slider-controls{margin-left:auto}
.featured-slider-controls button{border-color:var(--gaming-red)!important;color:var(--gaming-red)!important}
.offers-layout{display:block}
.build-pc{display:none}
.featured-slider{overflow-x:auto}
.featured-products>.woocommerce{min-width:0}
body.home .featured-products ul.products{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
.woocommerce ul.products{gap:13px}
.woocommerce ul.products li.product,body.home .woocommerce ul.products li.product,body.archive.woocommerce ul.products li.product,body.search.woocommerce ul.products li.product{overflow:hidden;min-width:0;padding:0 12px 14px!important;border:0;border-radius:9px;background:linear-gradient(180deg,#fff 0 47%,var(--gaming-navy) 47% 100%);box-shadow:none}
.woocommerce ul.products li.product:hover{border:0;box-shadow:0 9px 25px rgba(10,7,18,.2);transform:translateY(-3px)}
.woocommerce ul.products li.product a img,body.home .woocommerce ul.products li.product a img{height:190px!important;margin:0 -12px 12px!important;width:calc(100% + 24px)!important;padding:20px 16px 10px;border:0;border-radius:0;background:#fff;box-shadow:none;object-fit:contain}
.woocommerce ul.products li.product .woocommerce-loop-product__title,body.home .woocommerce ul.products li.product .woocommerce-loop-product__title,body.archive.woocommerce ul.products li.product .woocommerce-loop-product__title,body.search.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:58px;color:#fff!important;font-family:var(--gaming-body);font-size:14px;line-height:1.35;text-align:center}
.woocommerce ul.products li.product .luso-price-label{display:none}
.woocommerce ul.products li.product .luso-payment-details{border-color:rgba(255,255,255,.12)!important;text-align:center}
.woocommerce ul.products li.product .luso-transfer{display:block!important;text-align:center!important}
.woocommerce ul.products li.product .luso-transfer-head{justify-content:center;border:0}
.woocommerce ul.products li.product .luso-transfer-head small{color:#d7d9e0!important}
.woocommerce ul.products li.product .luso-transfer>strong,.woocommerce ul.products li.product .luso-transfer>strong *,body.home .woocommerce ul.products li.product .luso-transfer>strong *{color:#fff!important;font-family:var(--gaming-body)!important;font-size:26px!important;font-weight:500}
.woocommerce ul.products li.product .luso-list-inline,.woocommerce ul.products li.product .luso-list-inline *{color:#a7a7b1!important}
.woocommerce ul.products li.product .luso-saving{border:0;background:var(--gaming-red);color:#fff;box-shadow:none}
.woocommerce ul.products li.product .luso-saving *{color:#fff!important}
.woocommerce ul.products li.product .installments{border:0;background:transparent;color:#fff}
.woocommerce ul.products li.product .installments small,.woocommerce ul.products li.product .installments strong,.woocommerce ul.products li.product .installments *{color:#fff!important}
.woocommerce ul.products li.product .button,body.home .woocommerce ul.products li.product .button{min-height:38px;border:0!important;border-radius:20px;background:linear-gradient(90deg,var(--gaming-red),var(--gaming-purple))!important;color:#fff!important;box-shadow:none!important;font-size:10px!important;text-transform:uppercase}

/* Categorías con imágenes tomadas del catálogo real */
.gaming-category-showcase{padding-top:24px}
.gaming-category-showcase .category-grid{display:grid;grid-template-columns:1.8fr repeat(3,1fr);grid-template-rows:188px 188px;gap:16px}
.gaming-category-showcase .category-card{position:relative;min-height:0;overflow:hidden;padding:18px;border:0!important;border-radius:14px;background:linear-gradient(135deg,var(--gaming-red),var(--gaming-purple));box-shadow:none;isolation:isolate}
.gaming-category-showcase .category-card:first-child{grid-row:1/3}
.gaming-category-showcase .category-card:nth-child(3n){background:linear-gradient(135deg,#7c2ac7,#ef233c)}
.gaming-category-showcase .category-card:nth-child(3n+1){background:linear-gradient(135deg,#ef233c,#531c93)}
.gaming-category-showcase .category-card::before{display:none}
.gaming-category-showcase .category-card::after{position:absolute;z-index:-1;inset:0;background:linear-gradient(0deg,rgba(8,5,14,.72),transparent 58%);content:''}
.gaming-category-showcase .category-card img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:contain;padding:16px;mix-blend-mode:multiply;filter:saturate(1.25) contrast(1.08)}
.gaming-category-showcase .category-card span{position:absolute;left:16px;bottom:51px;color:#fff;font-size:10px;text-shadow:0 2px 5px #000}
.gaming-category-showcase .category-card strong{position:absolute;left:16px;bottom:23px;color:#fff!important;font:900 22px/.9 var(--gaming-display);text-transform:uppercase;text-shadow:0 2px 5px #000}
.gaming-category-showcase .category-card small{position:absolute;right:14px;top:13px;color:#fff}
.gaming-category-showcase .category-card b{display:none}
.gaming-category-showcase .category-card:hover{transform:translateY(-4px);box-shadow:0 13px 28px rgba(55,11,78,.2)}

/* Bloques secundarios y pie */
.home-feature-layout{border-color:#e0e3e8;background:#fff;box-shadow:none}
.home-feature-banner,.home-gamer-products,.home-feature-products{border-radius:9px}
.home-brand-list a,body.home .home-brand-list a{border:0;border-radius:0;background:transparent;box-shadow:none;filter:grayscale(1);opacity:.7}
.home-brand-list a:hover{transform:none;filter:none;opacity:1;box-shadow:none}
.trust-strip{border-color:var(--gaming-line);background:#fff}
.site-footer{padding-top:50px;border:0;background:var(--gaming-navy)}
.site-footer .brand img{width:165px;filter:drop-shadow(0 0 15px rgba(255,41,77,.2))}

/* Páginas internas */
body:not(.home) main{background:var(--gaming-paper)!important}
.woocommerce-products-header,.woocommerce div.product,.woocommerce-cart-form,.cart_totals,.woocommerce-checkout-review-order{font-family:var(--gaming-body)}
body.archive.woocommerce ul.products,body.search.woocommerce ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}

@media(max-width:1100px){
  .header-main{gap:16px}.header-build-link{display:none}
  .category-nav,body .site-header .category-nav{justify-content:flex-start;overflow-x:auto;padding-bottom:8px}
  body.home .featured-products ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .home-benefits{gap:10px}
  .gaming-category-showcase .category-grid{grid-template-columns:1.5fr repeat(2,1fr);grid-template-rows:190px 190px 190px}
}
@media(max-width:760px){
  .site-promo-bar span:nth-child(2),.site-promo-bar span:nth-child(3){display:none}
  .header-main{min-height:78px;padding-block:8px}.brand{flex-basis:130px}.brand img{width:128px;height:58px}
  .header-search{order:3;width:100%;flex-basis:100%}.account-links{margin-left:auto}.account-link{display:none!important}
  .category-nav,body .site-header .category-nav{display:none}
  .gaming-hero{min-height:310px}.gaming-hero>img{object-position:64% center}.gaming-hero-copy{padding:50px 0 40px}
  .gaming-hero-copy>span{font-size:38px}.gaming-hero h1{font-size:62px}.gaming-hero-copy>a{min-height:39px}
  .home-benefits{grid-template-columns:1fr 1fr;gap:8px}.home-benefits article{min-height:105px!important;align-items:flex-start!important;flex-direction:column;padding:12px!important}
  body.home .featured-products ul.products{display:flex!important;grid-template-columns:none!important;gap:10px!important;overflow-x:auto;scroll-snap-type:x mandatory}
  body.home .featured-products ul.products li.product{flex:0 0 calc((100% - 10px)/2)!important;scroll-snap-align:start}
  .woocommerce ul.products li.product a img,body.home .woocommerce ul.products li.product a img{height:150px!important}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:12px!important}
  .gaming-category-showcase .category-grid{grid-template-columns:1fr 1fr;grid-template-rows:220px repeat(3,150px);gap:10px}
  .gaming-category-showcase .category-card:first-child{grid-column:1/3;grid-row:auto}
  .gaming-category-showcase .category-card strong{font-size:18px}.gaming-category-showcase .category-card span{display:none}
  body.archive.woocommerce ul.products,body.search.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Ajustes de estabilidad visual tras validar el tema con el catálogo real. */
html,body{max-width:100%;overflow-x:clip}

.category-nav,body .site-header .category-nav{
  justify-content:space-between;
  gap:10px;
  overflow:hidden;
}
.category-nav>div{flex:1}
.category-nav ul{
  width:100%;
  justify-content:space-between;
  gap:0;
}
.category-nav .menu>li>a{padding-inline:10px;font-size:13px}

.home-benefits,body.home .home-benefits{
  height:auto!important;
  min-height:0!important;
  grid-template-rows:auto!important;
}
.home-benefits article,body.home .home-benefits article{height:auto!important}

body.home .featured-slider{overflow:hidden}
body.home .featured-products ul.products{
  display:flex!important;
  grid-template-columns:none!important;
  flex-wrap:nowrap!important;
  gap:18px!important;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
body.home .featured-products ul.products::-webkit-scrollbar{display:none}
body.home .featured-products ul.products li.product{
  flex:0 0 calc((100% - 54px)/4)!important;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}

.woocommerce ul.products li.product,
body.home .woocommerce ul.products li.product,
body.archive.woocommerce ul.products li.product,
body.search.woocommerce ul.products li.product{
  display:flex!important;
  flex-direction:column;
  background:var(--gaming-navy);
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{
  display:flex!important;
  min-height:0;
  flex:1;
  flex-direction:column;
}
.woocommerce ul.products li.product .luso-payment-details{margin-top:auto}

@media(max-width:1250px) and (min-width:761px){
  body.home .featured-products ul.products li.product{flex-basis:calc((100% - 36px)/3)!important}
}
@media(max-width:1100px) and (min-width:761px){
  .category-nav,body .site-header .category-nav{justify-content:flex-start;gap:0;overflow-x:auto}
  .category-nav>div{flex:0 0 auto}
  .category-nav ul{width:auto;justify-content:flex-start}
}
@media(max-width:760px){
  body.home .featured-products ul.products{gap:10px!important}
  body.home .featured-products ul.products li.product{flex-basis:calc((100% - 10px)/2)!important}
  .home-benefits,body.home .home-benefits{grid-template-rows:auto auto!important}
}
