/* EconomiBuy v7.6.1 RC4.33 — navegacion, hero monetizable y grid responsive de tiendas */

/* Menu contextual de cada tienda. */
body.page-store.rc46 .rc433-store-nav{
  top:129px;
  z-index:8900;
  overflow:visible;
  border-bottom:1px solid rgba(47,105,217,.2);
  background:#fff;
  box-shadow:0 7px 18px rgba(7,19,72,.08);
}

body.page-store.rc46 .rc433-store-nav-inner{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:50px;
  overflow:visible;
  white-space:nowrap;
}

body.page-store.rc46 .rc433-store-nav a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 11px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#071348;
  font:inherit;
  font-size:.76rem;
  font-weight:850;
  line-height:1.15;
  text-decoration:none;
  cursor:pointer;
}

body.page-store.rc46 .rc433-store-nav a:hover,
body.page-store.rc46 .rc433-store-nav a:focus-visible,
body.page-store.rc46 .rc433-store-nav a.is-active{
  background:#e8f0ff;
  color:#174da9;
}

body.page-store.rc46 .rc433-store-menu-trigger[aria-expanded="true"]{
  background:#e8f0ff;
  color:#174da9;
}

body.page-store.rc46 .rc433-store-menu{
  position:relative;
  flex:0 0 auto;
}


/* Encabezado compacto con espacio visual monetizable. */
body.page-store.rc46 .hero{
  padding:18px 0 16px!important;
  background:linear-gradient(135deg,#f6f9ff,#eef6e9)!important;
}

body.page-store.rc46 .hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr);
  gap:18px;
  align-items:stretch;
}

body.page-store.rc46 .hero-grid.rc433-store-hero-no-media{
  grid-template-columns:minmax(0,820px);
}

body.page-store.rc46 .hero-grid>div{
  align-self:center;
  min-width:0;
}

body.page-store.rc46 .hero h1{
  max-width:760px;
  margin:.32rem 0 .48rem;
  font-size:clamp(2rem,3.7vw,3.35rem)!important;
  line-height:1!important;
  letter-spacing:-.045em;
}

body.page-store.rc46 .hero .lead{
  max-width:760px;
  margin:.3rem 0!important;
  font-size:1rem!important;
  line-height:1.5!important;
}

body.page-store.rc46 .hero .disclosure{
  max-width:820px;
  margin-top:8px!important;
  font-size:.64rem!important;
  line-height:1.4;
}

body.page-store.rc46 .rc46-store-search{
  max-width:540px;
  margin-top:11px;
}

body.page-store.rc46 .rc433-store-media{
  min-width:0;
  min-height:270px;
  overflow:hidden;
  border:1px solid rgba(47,105,217,.28);
  border-radius:20px;
  background:#fff;
  box-shadow:0 14px 34px rgba(34,76,153,.14);
}

body.page-store.rc46 .rc433-store-media-link{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  min-height:270px;
  overflow:hidden;
  color:#fff;
  text-decoration:none;
}

body.page-store.rc46 .rc433-store-media-link>img{
  display:block;
  width:100%;
  height:100%;
  min-height:270px;
  max-height:330px;
  object-fit:contain;
  background:linear-gradient(145deg,#fff,#f1f5fa);
  transition:transform .24s ease;
}

body.page-store.rc46 .rc433-store-media-copy{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  display:grid;
  gap:3px;
  padding:30px 16px 14px;
  background:linear-gradient(180deg,transparent,rgba(7,19,72,.94));
}

body.page-store.rc46 .rc433-store-media-copy small{
  color:#dce9ff;
  font-size:.61rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.035em;
}

body.page-store.rc46 .rc433-store-media-copy strong{
  color:#fff;
  font-size:.92rem;
  line-height:1.2;
}

body.page-store.rc46 .rc433-store-media-copy>span{
  color:#a9ed66;
  font-size:.73rem;
  font-weight:900;
}

body.page-store.rc46 .rc433-store-video{
  display:grid;
  gap:10px;
  padding:12px;
}

body.page-store.rc46 .rc433-store-video video{
  width:100%;
  max-height:290px;
  border-radius:13px;
  background:#071348;
}

body.page-store.rc46 .rc433-store-video a{
  justify-self:start;
  padding:8px 12px;
  border-radius:999px;
  background:#62b500;
  color:#fff;
  font-size:.76rem;
  font-weight:900;
  text-decoration:none;
}

@media (hover:hover) and (pointer:fine){
  body.page-store.rc46 .rc433-store-media-link:hover>img{transform:scale(1.025)}
}

/* Promociones: solo se genera si los datos incluyen enlace afiliado autorizado y vigencia. */
body.page-store.rc46 .rc433-store-promotions{
  padding:22px 0;
  border-top:1px solid rgba(47,105,217,.16);
  border-bottom:1px solid rgba(47,105,217,.16);
  background:#f7faff;
}

body.page-store.rc46 .rc433-promotions-head h2{margin:5px 0 12px;font-size:1.55rem}
body.page-store.rc46 .rc433-promotions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.page-store.rc46 .rc433-promotions-grid>a{display:grid;gap:6px;padding:14px;border:1px solid rgba(47,105,217,.25);border-radius:15px;background:#fff;color:#071348;text-decoration:none}
body.page-store.rc46 .rc433-promotions-grid p{margin:0;color:#4d5f7d;font-size:.76rem}
body.page-store.rc46 .rc433-promotions-grid span{color:#447f00;font-size:.74rem;font-weight:900}
body.page-store.rc46 .rc433-promotion-note{margin:10px 0 0;color:#58677f;font-size:.66rem}

/* Cuadricula canonica: cinco fichas en desktop, cuatro en laptop, tres en tablet y dos en movil. */
body.page-store.rc46 .product-grid{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
}

body.page-store.rc46 .product-image{
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:auto!important;
  padding:12px!important;
}

/* R12j: las fichas dentro de tienda muestran la foto a todo el ancho útil,
   conservando su proporción natural y el marco blanco compartido. */
body.page-store.rc46 .product-image img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0;
  max-width:100%!important;
  max-height:none!important;
  margin:0 auto!important;
  object-fit:contain!important;
  object-position:center top!important;
  background:transparent!important;
}


body.page-store.rc46 .card-body{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  gap:3px!important;
  padding:10px 12px 12px!important;
}

body.page-store.rc46 .card-body h2{
  display:-webkit-box!important;
  margin:2px 0 0!important;
  overflow:hidden!important;

  font-weight:700!important;
  line-height:1.2!important;
  text-align:left!important;
  text-wrap:balance;
  overflow-wrap:normal!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
}
@media (max-width:1199px){
  body.page-store.rc46 .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

@media (max-width:900px){
  body.page-store.rc46 .hero-grid{grid-template-columns:1fr}
  body.page-store.rc46 .rc433-store-media{min-height:240px}
  body.page-store.rc46 .rc433-store-media-link{min-height:240px}
  body.page-store.rc46 .rc433-store-media-link>img{min-height:240px;max-height:300px}
  body.page-store.rc46 .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.page-store.rc46 .rc433-promotions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:760px){
  body.page-store.rc46 .rc433-store-nav{position:relative;top:auto;z-index:50}
  body.page-store.rc46 .rc433-store-nav-inner{gap:4px;min-height:46px;max-height:min(132px,24vh);padding:5px 0;overflow-x:hidden;overflow-y:auto;flex-wrap:wrap;align-content:flex-start;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  body.page-store.rc46 .rc433-store-nav a{min-height:32px;padding:6px 9px;font-size:.7rem}
  body.page-store.rc46 .rc433-store-menu{position:relative}
  body.page-store.rc46 .hero{padding:14px 0!important}
  body.page-store.rc46 .hero h1{font-size:2.15rem!important}
  body.page-store.rc46 .rc433-store-media{min-height:215px;border-radius:16px}
  body.page-store.rc46 .rc433-store-media-link{min-height:215px}
  body.page-store.rc46 .rc433-store-media-link>img{min-height:215px;max-height:260px}
}

@media (max-width:760px){
  body.page-store.rc46 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
}

@media (max-width:600px){
  body.page-store.rc46 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.page-store.rc46 .card-body{padding:8px 9px 10px!important}
  body.page-store.rc46 .card-body h2{line-height:1.18!important}
  body.page-store.rc46 .rc433-promotions-grid{grid-template-columns:1fr}
}


@media (prefers-reduced-motion:reduce){
  body.page-store.rc46 .rc433-store-media-link>img{transition:none}
  body.page-store.rc46 .rc433-store-media-link:hover>img{transform:none}
}


/* R12g — layout unificado de tienda sin barra de pestañas. */
body.page-store.rc46 .rc433-store-nav{display:none!important}
body.page-store.rc46 .hero-grid>div:first-child{position:relative}
body.page-store.rc46 .breadcrumb{
  padding:1.05rem 0 .55rem;
  color:#5e6d81;
  font-size:.92rem;
  font-weight:400;
  line-height:1.55;
}
body.page-store.rc46 .breadcrumb a{color:inherit;font-size:inherit;font-weight:750;text-decoration:none}
body.page-store.rc46 .breadcrumb.rc433-store-breadcrumb-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
body.page-store.rc46 .rc433-store-breadcrumb-trail{min-width:0}
body.page-store.rc46 .rc433-store-about-link{
  position:static;z-index:4;display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;flex:0 0 auto;
  border:1px solid rgba(7,19,72,.15);border-radius:999px;background:#fff;color:#071348;text-decoration:none;font-size:.76rem;font-weight:850;
}
body.page-store.rc46 .rc433-store-about-link:hover,body.page-store.rc46 .rc433-store-about-link:focus-visible{border-color:#62b500;color:#447f00}
body.page-store.rc46 .rc433-store-controls{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin:14px 0 10px}
body.page-store.rc46 .rc433-store-action{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:10px 15px;border:1px solid #071348;border-radius:12px;
  background:#071348;color:#fff;font:inherit;font-size:14px;font-weight:850;line-height:1.15;text-decoration:none;cursor:pointer;
}
body.page-store.rc46 .rc433-store-action:hover,body.page-store.rc46 .rc433-store-action:focus-visible{background:#132461;color:#fff}
body.page-store.rc46 .rc433-store-search{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;max-width:540px;min-height:44px;margin-top:8px;overflow:visible}
body.page-store.rc46 .rc433-store-search input{min-width:0;height:44px;padding:0 13px;border:1px solid rgba(7,19,72,.2);border-right:0;border-radius:12px 0 0 12px;background:#fff;color:#071348;font:inherit;font-size:.84rem;outline:0}
body.page-store.rc46 .rc433-store-search input:focus-visible{border-color:#62b500;box-shadow:0 0 0 2px rgba(98,181,0,.16)}
body.page-store.rc46 .rc433-store-search>button{min-width:86px;height:44px;padding:0 14px;border:1px solid var(--rc46-green);border-radius:0 12px 12px 0;background:var(--rc46-green);color:#fff;font:inherit;font-size:14px;font-weight:850;cursor:pointer}
body.page-store.rc46 .rc433-store-search-results{top:calc(100% + 6px);right:0;left:0;z-index:80;max-height:min(410px,55vh)}
body.page-store.rc46 .catalog{padding-top:1.35rem!important}
body.page-store.rc46 .catalog .section-head{align-items:center;margin-bottom:.85rem}
body.page-store.rc46 .section-head p{align-self:center}

@media(max-width:760px){
  body.page-store.rc46 .hero-grid>div:first-child{padding-top:0}
  body.page-store.rc46 .breadcrumb.rc433-store-breadcrumb-row{display:block}
  body.page-store.rc46 .rc433-generated-breadcrumb{display:none!important}
  body.page-store.rc46 .rc433-store-about-link{position:static;display:flex;width:max-content;max-width:100%;margin:8px 0 4px}
  body.page-store.rc46 .rc433-store-controls{display:grid;grid-template-columns:1fr;width:100%;gap:8px;margin:12px 0 6px}
  body.page-store.rc46 .rc433-store-action,body.page-store.rc46 .rc433-store-category-action{width:100%}
  body.page-store.rc46 .rc433-store-category-action>.rc433-store-action{width:100%}
  body.page-store.rc46 .rc433-store-search{max-width:none;margin-top:8px}
  body.page-store.rc46 .rc433-store-search-results{max-height:min(330px,46vh)}
  body.page-store.rc46 .catalog{padding-top:1rem!important}
  body.page-store.rc46 .catalog .section-head{align-items:flex-start;gap:.45rem;margin-bottom:.7rem}
}

/* R12h — store category capsules removed; navigation is dropdown-only. */
body.page-store.rc46 .rc433-store-filter-pills,body.page-store.rc46 .catalog>.container>.filters{display:none!important}
